| | |
| | | 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"); |
| | |
| | | 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); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | //è·åå·¥åºåºç«æ±æ¥åæ°æ® |