请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
huangcheng1017(uid:540985)
职业资格认证:FCA-FineReport
  •  DECLARE @DAY DATE,@COUNT INT SET @DAY='${V4}'/*=对应参数 开始日期  如20201101*/ SET @COUNT=0 WHILE @DAY<='${X4}'   /*对应参数  结束日期20201130*/ BEGIN SET @COUNT=@COUNT+( CASE DATEPART(WEEKDAY,@DAY) WHEN 1 THEN 0                                                          ELSE 1 END ) SET @DAY=DATEADD(DAY,1,@DAY) END SELECT @COUNT 应当出勤 ,LEFT(DATEADD(DAY,1,@DAY),7)月份 into #a SELECT *FROM #aQ1:日期参数带进去  查询出来的是0  用日期带进去,比如20201101和20201130  可以正常显示天数Q2:比如20201101和20201130   输进去   月份会显示12
  • /*===================*/SELECT GZF002,GZF006,GZF010 INTO #A1 FROM SFCGZF WHERE GZF010 LIKE '%21:%'SELECT COUNT(*)*5 晚班补贴,GZF006 FROM #A1 WHERE SUBSTRING(GZF002,6,2)=SUBSTRING('${W5}',6,2)/*==获取月份==*/GROUP BY GZF006DROP TABLE #A1 /*===================*/获取起始日期里的月份
  •  DECLARE @DAY DATE,@COUNT INT SET @DAY='+S5+' SET @COUNT=0 WHILE @DAY<='+T5+' BEGIN SET @COUNT=@COUNT+( CASE DATEPART(WEEKDAY,@DAY) WHEN 1 THEN 0                                                          ELSE 1 END ) SET @DAY=DATEADD(DAY,1,@DAY) END SELECT @COUNT 应当出勤 ,LEFT(DATEADD(DAY,1,@DAY),7)月份 into #a /*===========================================*/单元格属性为日期型  YYMMDD单元格内的值为 参数值
  • 品质状况.frm上面是数据柱形图和折线图的数据,折线图是合格率折线图设置Y2坐标轴查看不显示折线图
  • SELECT RIQI,QAC011,QAC009,QAC003,QAC005,QAC006,QAC007,LPS,(CASE WHEN BLS IS NULL THEN '0'ELSE BLS END) AS BLS, CASE WHEN BLS  IS NULL THEN '0%'    WHEN LPS = 0 THEN '100%'   WHEN BLS != 0 THEN concat(cast(ROUND(BLS*1.00/(LPS+BLPS)*100,2) as decimal(10,2)),'%') END AS BLLFROM  (SELECT LEFT(QAC017,10) AS RIQI,QAC011,QAC009,QAC003,QAC005,QAC006,QAC007,SUM(QAC019)LPS,SUM(QAC020)BLPS FROM WOMQAC   WHERE QAC009 NOT IN ('包装','包装投入','AI投入','curGXMC','DIP投 入','FQC')  GROUP BY LEFT(QAC017,10),QAC011,QAC009,QAC003,QAC005,QAC006,QAC007) AS A                 /*投入时间 线别 工序名称  指定单号 产品编码 产品名称 产品规格 */LEFT JOIN  ( SELECT case when len(CREATETIME) = 19 then substring(CREATETIME,1,10)    when len(CREATETIME) = 14 then concat(substring(CREATETIME,1,4),'-',substring(CREATETIME,5,2),'-',substring(CREATETIME,7,2))    end AS RQ,    QAI007,QAI008,QAI009,COUNT(QAI002) BLS FROM WOMQAI  GROUP BY case when len(CREATETIME) = 19 then substring(CREATETIME,1,10)    when len(CREATETIME) = 14 then concat(substring(CREATETIME,1,4),'-',substring(CREATETIME,5,2),'-',substring(CREATETIME,7,2))    end,QAI007,QAI008,QAI009 ) AS BON A.QAC003 = B.QAI008 AND A.QAC011 = B.QAI007 AND A.RIQI = B.RQ 需要 按每天8:00到第二天8:00分类算出这天的LPS
  • 当QAC017为11点和16时,得到的BZ值减半输出QAC017  BZ         11         BZ/2       12          BZ 

10

1

10

10

没有更多
个人成就
内容被浏览5,380
加入社区4年7天
返回顶部