FCRP-D---Fanruan official website simulation questions, report module

1

Require:

Appearance design:

ds1, ds2, realize that according to the selected category, products of this category appear:

Configure controls:

Change colors every other row:

Amounts greater than 1,000 are displayed in red and bold:

Effect:

If the product category is not selected, all product names can be selected:

2

 Require:


Appearance design: using decision-making reports

ds1, ds2, ds3, ds4: 134 with parameters , prepared for linkage (by class), the default value is empty , that is, all class information is displayed by default, M corresponds to male, F corresponds to female

Pie chart configuration:

Pie chart linkage configuration: add 3 hyperlinks and configure them separately for 3 objects

Bar chart: Comparison of average scores between men and women

Bar chart: Comparison of scores in each subject

Table configuration: alternate rows change color, and scores less than 60 turn red

 

Effect: Default is all class data

3

Require:


Appearance design:

ds1,ds2:

select t.m,t.ym,

      t.销量,

      t1.销量 同期,

      (case when t1.销量 is null then '' 

          else (t.销量-t1.销量)/t1.销量 end) 同比,

      t2.销量 上期,

      (case when t2.销量 is null then '' 

          else (t.销量-t2.销量)/t2.销量 end) 环比

from 

(

select strftime('%m',b.订购日期)+0 m,

      strftime('%Y-%m',b.订购日期) ym,

      sum(a.数量) 销量

from 订单明细 a

    left join 订单 b on a.订单ID=b.订单ID

where strftime('%Y',b.订购日期) = '${年份}'

group by strftime('%Y-%m',b.订购日期)

) t   -- 1997年 m月份 ym年月 销量 销售额

left join

(

select strftime('%m',b.订购日期)+0 m,

      strftime('%Y-%m',b.订购日期) ym,

      sum(a.数量) 销量

from 订单明细 a

    left join 订单 b on a.订单ID=b.订单ID

where strftime('%Y',b.订购日期) = '${年份-1}'

group by strftime('%Y-%m',b.订购日期)

) t1 on t.m=t1.m  -- 1996 年 m月份 ym年月 销量 销售额

left join

(

select (case when strftime('%m',b.订购日期)+0 <=11

        then strftime('%m',b.订购日期)+1 end) m, -- 1997年 使用then判断 ym中月份小于等于11 将月份+1

      strftime('%Y-%m',b.订购日期) ym,

      sum(a.数量) 销量

from 订单明细 a

    left join 订单 b on a.订单ID=b.订单ID

where strftime('%Y',b.订购日期) = '${年份}'

group by strftime('%Y-%m',b.订购日期)

union

select (case when strftime('%m',b.订购日期)+0 =12

        then 1 end) m,

      strftime('%Y-%m',b.订购日期) ym,

      sum(a.数量) 销量

from 订单明细 a

    left join 订单 b on a.订单ID=b.订单ID

where strftime('%Y',b.订购日期) = '${年份-1}'

group by strftime('%Y-%m',b.订购日期)

) t2 on t.m=t2.m

Dynamically display the year based on parameters:

Change colors every other row:

Less than 0, turns red and bold:        

Radio drop-down box control configuration data dictionary:

Effect:

 

4

Require:


Appearance design:

data set:

 

Data such as time and average cost are obtained from sql statements

Configure the data dictionary for the control and select the company name from the drop-down list

Change colors every other line

Add and delete buttons:

var cell = this.options.location;
//获取当前控件所在单元格的编号
FR.Msg.confirm("警告", "确定要删除吗?", function(value) {
	if (value) {
		_g().deleteReportRC(cell);
		//删除当前行
		_g().verifyAndWriteReport();
		//校验并提交
	}
})

Not completed: After clicking to confirm the deletion, it cannot be refreshed with parameters, which is mainly reflected in the numerical change of the average cost.

Effect:

 

 

5

Require:


Create a new decision report, set it to the mobile format, and use absolute layout:

Appearance design:

ds1 ds2 ds3 ds4:

select sum(运货费) from 订单;
select sum(应付金额),count(distinct 客户id),
count(distinct 运货商),count(distinct 货主省份) from 订单
select 货主地区,sum(运货费) from 订单
group by 货主地区
order by sum(运货费) desc
select sum(运货费),姓名 from 订单 a,雇员 b
where a.雇员id=b.雇员id
group by 姓名

Insert 4 pictures:

Click details, hyperlinks: do not use the title that comes with the report block , imitate the style of the title, and set it separately for them

Pie chart configuration:

By adjusting the inner diameter ratio, you can set the pie chart into a donut shape:

Note: When previewing on mobile phones, the sections may be misaligned. Uncheck the mobile phone layout.

Effect: Not implemented (gray dividing line)

6

Require:

Picture material https://gitee.com/ipkiss/picture


New: Decision report, set to absolute layout

 

Appearance settings:

Data sets and SQL statements are simple and do not need to be written.

The configurations of the six subtitles are the same, using report blocks.

Map: The specific amount displayed is an additional report added above.

       

The scrolling display does not know which specific question it tests: one is a marquee (automatic), and the other is a mouse wheel (requires rolling the wheel)

Marquee scrolling display: Note that the parameter name is consistent with the report block component name

setTimeout(function(){
     _g().getWidgetByName('report3').startMarquee()
}, 500);

Mouse wheel:

setTimeout(function() {
	//获取报表块的宽度
	var wid = ($("div[widgetname='REPORT3']").width() - 30) + 'px';
	//重置报表块宽度
	$("div[widgetname='REPORT3']").css('width', wid);
}, 1000);

There is a bug: because it is displayed by hiding the scroll bar, the outer frame style of some report blocks will be hidden on the right side of the box.

Effect:

7

Require:

The approval status is divided into:

1. To be reported

2. To be reviewed by the sales manager

3. To be reviewed by the sales director

4. Review completed

5. Sales manager returns

6. Sales manager returns

Salesman (Sun Yang) login interface description:

1. Salespersons only have their own data permissions

2. When the approval status is to be reported, returned by the sales manager, or returned by the sales manager, the salesperson can edit the product sales volume, and the report button can be clicked. If it is in other statuses, the sales volume cannot be edited and the button cannot be clicked

Sales Manager (Zhao Jun) login interface description:

1. Sales managers only have data permissions for their own region

2. When the approval status is pending review by the sales manager, the sales manager can perform approval/return operation. If it is in other status, the button cannot be clicked.

Sales Manager (Li Lili) Login Interface Description:

1. The sales director has all data permissions

2. When the approval status is pending review by the sales manager, the sales manager can perform the approval/return operation. If it is in other status, the button cannot be clicked.

Guess you like

Origin blog.csdn.net/Ipkiss_Yongheng/article/details/125594366