业务实践题
一、概念题
请对以下系统名词的作用意义做出解释(5分)
立项信息登记

智能建模
数据权限
岗位智能计算
审后编辑
二、实际操作题
请将一下图片表单在系统中进行新增,且增加对应列表,需要根据具体需求选择控件,且将列表样式,查询条件,且超链接进行优化(10分)
三、Sql业务题
根据一下需要实现的业务,写出对应的sql语句。
选择项目带出对应项目的立项人,立项人控件的带入sql(2分)
选择人员带出对应部门,部门控件的带入sql(4分)
将立项表单中,项目状态为“落标”的数据,全部修改为“放弃”(3分)

四、请解释一下sql的具体含义
举例:
SELECT t.id,t.appTime,t.gjzt,t.bianhao,c.xiangmu,c1.kemu,SUM(c1.jiner) as ljbx,c.bumen,c.FlowStatus FROM C_feiyongbaoxiao c,T_lixiang t,C_feiyongbaoxiaobxmx c1
WHERE 1=1 AND C.sc=0 and c1.sc=0 and c.FlowStatus='3' and t.id=c.xiangmuid and t.FlowStatus='3' and c.id=c1.parentid GROUP BY t.id,t.appTime,t.gjzt,t.bianhao,c.xiangmu,c1.kemu,c.bumen,c.FlowStatus
order by t.ID desc
通过泛普软件立项表单的id和费用报销的项目id相等,费用报销的id和项目费用明细表的parentid相等的条件下,将立项表单,费用报销表单,费用报销明细表单 三张表进行联动查询。
且过滤掉费用报销已删除的数据和费用报销明细表已删除的数据。
查询出立项表的id字段,立项日期字段,项目状态,项目编号字段,

费用报销:所属项目,部门,流程状态
费用报销明细表:费用科目,累积报销金额
列表使用了sum()......group by 函数进行求和,order by...desc 进行排序
(1)来源于工程监理系统(6分)
select a.id,a.name,a.UnitA,a.UnitAid,a.ContractPerformance,a.Expire,
case when (select count(id) from Payment where sc=0 and ContractNameid=a.id)=0 then '未申请' else '已申请' End as sqState from LedgerContract a where a.sc=0
(2)来源于工程管理系统(10分)
SELECT aa.xmmc as 项目名称,B as 材料,aa.appTime as 立项日期,aa.bianhao as 项目编号,aa.gjzt as 项目状态,(isnull(c1,0)+isnull(c2,0)) as 劳务,(isnull(d1,0)+isnull(d2,0)) as 租赁,E as 分包,F as 间接费,
(isnull(b,0)+isnull(c1,0)+isnull(c2,0)+isnull(d1,0)+isnull(d2,0)+isnull(e,0)+isnull (f,0)) as 合计
FROM
(SELECT xmmc,appTime,bianhao,gjzt FROM T_lixiang where sc=0 and FlowStatus='3') aa
FULL JOIN
(SELECT SUM(fkje) as b,xiangmu FROM C_cailiaofukuan where sc=0 and FlowStatus='3' GROUP BY xiangmu) b on aa.xmmc=b.xiangmu/*材料*/
FULL JOIN
(SELECT SUM(yfhj) as C1,xmmc FROM L_xmgz where sc=0 and FlowStatus='3' GROUP BY xmmc) c1 on aa.xmmc=c1.xmmc/*劳务人工费*/
FULL JOIN
(SELECT SUM(jiner) as c2,xiangmu FROM L_laowufukuan where sc=0 and FlowStatus='3' GROUP BY xiangmu)c2 on aa.xmmc=c2.xiangmu/*劳务付款*/
FULL JOIN
(SELECT SUM(bcfk) as D1,xiangmu FROM Z_zulinfukuan where sc=0 and FlowStatus='3' GROUP BY xiangmu)d1 on aa.xmmc=d1.xiangmu/*租赁付款*/
FULL JOIN

(SELECT SUM(hjje) as D2,ssxm FROM Z_jxf where sc=0 and FlowStatus='3' GROUP BY ssxm)d2 on aa.xmmc=d2.ssxm/*机械费*/
FULL JOIN
(SELECT SUM(fkje) as E,xiangmu FROM F_fenbaofukuan where sc=0 and FlowStatus='3' GROUP BY xiangmu) e on aa.xmmc=e.xiangmu/*分包*/
FULL JOIN
(SELECT SUM(jine) as F,xiangmu FROM C_feiyongbaoxiao d where sc=0 and FlowStatus='3' GROUP BY xiangmu) f on aa.xmmc=f.xiangmu/*间接费*/

阅读时间:5 分钟
浏览量:次

