浏览代码

任务书增加经费及预算

ly 4 月之前
父节点
当前提交
76e6c46405

+ 10 - 0
src/main/java/com/liang/entity/PrjProject.java

@@ -227,5 +227,15 @@ public class PrjProject implements Serializable {
227 227
      * 已付总额
228 228
      */
229 229
     private  Double yfze;
230
+
231
+    /**
232
+     * 经费
233
+     */
234
+    private Double jf;
235
+
236
+    /**
237
+     * 出资总额
238
+     */
239
+    private Double czze;
230 240
 }
231 241
 

+ 5 - 1
src/main/resources/mapper/PrjProjectDao.xml

@@ -45,6 +45,8 @@
45 45
         <result property="sqze" column="SQZE" jdbcType="DOUBLE"/>
46 46
         <result property="bzze" column="BZZE" jdbcType="DOUBLE"/>
47 47
         <result property="yfze" column="YFZE" jdbcType="DOUBLE"/>
48
+        <result property="jf" column="JF" jdbcType="DOUBLE"/>
49
+        <result property="czze" column="CZZE" jdbcType="DOUBLE"/>
48 50
     </resultMap>
49 51
 
50 52
     <resultMap type="com.liang.entity.FeeManagemant" id="FeeManagementMap">
@@ -500,7 +502,9 @@
500 502
         AND sp.SPZT = '审批结束'
501 503
         ) * 10000,
502 504
         0.00
503
-        ) AS YFZE
505
+        ) AS YFZE,
506
+        COALESCE((SELECT SUM(pf.CZJE) FROM prj_FeeScheme pf WHERE pf.ZB=p.ID) * 10000,0.00) AS CZZE,
507
+        COALESCE((SELECT SUM(ps.JF) FROM prj_SubTopic ps WHERE ps.XM = p.ID)*10000,0.00) AS JF
504 508
         FROM
505 509
         prj_Project p
506 510
         LEFT JOIN base_ProjectType t ON t.XMLX = p.XMLX

+ 5 - 3
src/main/resources/templates/prjproject/list.html

@@ -206,9 +206,11 @@
206 206
                     {field: 'zwmc', width: '26%', title: '中文名称'},
207 207
                     {field: 'spzt', width: '10%', title: '审批状态', sort: true},
208 208
                     {field: 'erpbh', width: '10%', title: 'ERP编号'},
209
-                    {field: 'sqze',width: '10%',title: '申请总额(元)',align: 'right'},
210
-                    {field: 'bzze', width: '10%', title: '报账总额(元)',align: 'right'},
211
-                    {field: 'yfze',width: '10%',title: '已付总额(元)',align: 'right'},
209
+                    {field: 'jf',width: '7%' ,title: '子课题经费(元)' ,align: 'right'},
210
+                    {field: 'czze', width: '7%',title: '出资总额(元)', align: 'right'},
211
+                    {field: 'sqze',width: '7%',title: '申请总额(元)',align: 'right'},
212
+                    {field: 'bzze', width: '7%', title: '报账总额(元)',align: 'right'},
213
+                    {field: 'yfze',width: '7%',title: '已付总额(元)',align: 'right'},
212 214
                     {field: 'xmlxmc', width: '15%', title: '项目类型'},
213 215
                     {field: 'qs', width: '8%', title: '起始', align: 'center'},
214 216
                     {field: 'wc', width: '8%', title: '完成', align: 'center'},

+ 5 - 0
src/main/resources/templates/prjproject/list_deptproject.html

@@ -162,6 +162,11 @@
162 162
                     {field: 'zwmc', width: '26%', title: '中文名称'},
163 163
                     {field: 'spzt', width: '10%', title: '审批状态', sort: true},
164 164
                     {field: 'erpbh', width: '10%', title: 'ERP编号'},
165
+                    {field: 'jf',width: '7%' ,title: '子课题经费(元)' ,align: 'right'},
166
+                    {field: 'czze', width: '7%',title: '出资总额(元)', align: 'right'},
167
+                    {field: 'sqze',width: '7%',title: '申请总额(元)',align: 'right'},
168
+                    {field: 'bzze', width: '7%', title: '报账总额(元)',align: 'right'},
169
+                    {field: 'yfze',width: '7%',title: '已付总额(元)',align: 'right'},
165 170
                     {field: 'xmlxmc', width: '15%', title: '项目类型'},
166 171
                     {field: 'qs', width: '8%', title: '起始', align: 'center'},
167 172
                     {field: 'wc', width: '8%', title: '完成', align: 'center'},

+ 5 - 0
src/main/resources/templates/prjproject/list_myproject.html

@@ -157,6 +157,11 @@
157 157
                     {field: 'zwmc', width: '26%', title: '中文名称'},
158 158
                     {field: 'spzt', width: '10%', title: '审批状态', sort: true},
159 159
                     {field: 'erpbh', width: '10%', title: 'ERP编号'},
160
+                    {field: 'jf',width: '7%' ,title: '子课题经费(元)' ,align: 'right'},
161
+                    {field: 'czze', width: '7%',title: '出资总额(元)', align: 'right'},
162
+                    {field: 'sqze',width: '7%',title: '申请总额(元)',align: 'right'},
163
+                    {field: 'bzze', width: '7%', title: '报账总额(元)',align: 'right'},
164
+                    {field: 'yfze',width: '7%',title: '已付总额(元)',align: 'right'},
160 165
                     {field: 'xmlxmc', width: '15%', title: '项目类型'},
161 166
                     {field: 'qs', width: '8%', title: '起始', align: 'center'},
162 167
                     {field: 'wc', width: '8%', title: '完成', align: 'center'},

+ 2 - 2
src/main/resources/templates/prjsubtopic/view.html

@@ -176,7 +176,7 @@
176 176
             data: dataCompany,
177 177
             cols: [
178 178
                 [
179
-                    {field: 'xh', title: '序号', width: '8%', align: 'center'},
179
+                    {type: 'numbers', title: '序号', width: '8%', align: 'center'},
180 180
                     {field: 'dwmc', title: '单位', width: '30%'},
181 181
                     {field: 'zyyjnr', title: '主要研究内容', width: '40%'},
182 182
                     {field: 'jf', title: '经费(万元)'}
@@ -224,7 +224,7 @@
224 224
             data: dataPlan,
225 225
             cols: [
226 226
                 [
227
-                    {type: 'numbers', align: 'center'},
227
+                    {type: 'numbers', align: 'center',title: '序号'},
228 228
                     {field: 'yjnr', title: '研究内容', width: '35%'},
229 229
                     {field: 'khzb', title: '考核指标', width: '25%'},
230 230
                     {field: 'qssj', title: '起始时间', width: '15%', align: 'center'},