From 2fe70195e1d6334ef74a5d0ad7dee89b28ae6092 Mon Sep 17 00:00:00 2001
From: cwjbxqmz <1134865194@qq.com>
Date: 星期四, 12 十月 2023 09:54:59 +0800
Subject: [PATCH] 1.采购退料单维护:增加 审核,反审核,关闭,反关闭,作废,反作废、条码明细、列设置,按钮设置 等 按钮;其他入库单维护、生产入库单维护: 增加 作废,反作废、条码明细 等 按钮; 委外加工入库单维护: 增加 关闭,反关闭,作废,反作废 等 按钮; 生产退库单维护、分布式调入单维护: 增加 关闭,反关闭,作废,反作废、条码明细 等 按钮; 2.增加 领用申请单 单据新增编制 模块;增加 领用申请单列表 单据列表 模块;

---
 WebAPI/Controllers/工资管理/Pay_SalaryCalculateController.cs |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SalaryCalculateController.cs" "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SalaryCalculateController.cs"
index 1a2a60f..f39f0ed 100644
--- "a/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SalaryCalculateController.cs"
+++ "b/WebAPI/Controllers/\345\267\245\350\265\204\347\256\241\347\220\206/Pay_SalaryCalculateController.cs"
@@ -113,6 +113,17 @@
                     return objJsonResult;
                 }
 
+                ds = oCN.RunProcReturn("select * from Pay_SingleBalBillMain where HAutoCreate = 1 and CONVERT(varchar(100),HDate, 23) >= '" + HBeginDate + "' and CONVERT(varchar(100),HDate, 23) <= '" + HEndDate + "'", "Pay_SingleBalBillMain");
+                if (ds.Tables[0].Rows.Count > 0)
+                {
+                    for(int i = 0; i < ds.Tables[0].Rows.Count; i++)
+                    {
+                        int HInterID = int.Parse(ds.Tables[0].Rows[i]["HInterID"].ToString());
+                        oCN.RunProc("delete from Pay_SingleBalBillMain where HInterID = " + HInterID);
+                        oCN.RunProc("delete from Pay_SingleBalBillSub where HInterID = " + HInterID);
+                    }
+                }
+
                 //鑾峰彇宸ュ簭鍑虹珯姹囨姤鍗曟暟鎹�
                 string sql = "exec h_p_Pay_SalaryCalculate_getData " + HOperatorType + ",'" + HBeginDate + "','" + HEndDate + "'";
                 ds = oCN.RunProcReturn(sql, "h_p_Pay_SalaryCalculate_getData");
@@ -466,6 +477,18 @@
                     objJsonResult.data = null;
                     return objJsonResult;
                 }
+                ds = oCN.RunProcReturn("select * from Pay_GroupBalBillMain where HAutoCreate = 1 and CONVERT(varchar(100),HDate, 23) >= '" + HBeginDate + "' and CONVERT(varchar(100),HDate, 23) <= '" + HEndDate + "'", "Pay_GroupBalBillMain");
+                if (ds.Tables[0].Rows.Count > 0)
+                {
+                    for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
+                    {
+                        int HInterID = int.Parse(ds.Tables[0].Rows[i]["HInterID"].ToString());
+                        oCN.RunProc("delete from Pay_GroupBalBillMain where HInterID = " + HInterID);
+                        oCN.RunProc("delete from Pay_GroupBalBillSub where HInterID = " + HInterID);
+                        oCN.RunProc("delete from Pay_GroupBalBillEmp where HInterID = " + HInterID);
+                    }
+                }
+
 
 
                 //鑾峰彇宸ュ簭鍑虹珯姹囨姤鍗曟暟鎹�

--
Gitblit v1.9.1