| | |
| | | { |
| | | public class ClsPay_GroupBalBill : DBUtility.ClsXt_BaseBill |
| | | { |
| | | public Model.ClsPay_GroupBalBillMain omodel = new Model.ClsPay_GroupBalBillMain(); |
| | | public List<Model.ClsPay_GroupBalBillSub> DetailColl = new List<Model.ClsPay_GroupBalBillSub>(); |
| | | public List<Model.ClsPay_GroupBalBillEmp> DetailEmpColl = new List<Model.ClsPay_GroupBalBillEmp>(); |
| | | public Models.ClsPay_GroupBalBillMain omodel = new Models.ClsPay_GroupBalBillMain(); |
| | | public List<Models.ClsPay_GroupBalBillSub> DetailColl = new List<Models.ClsPay_GroupBalBillSub>(); |
| | | public List<Models.ClsPay_GroupBalBillEmp> DetailEmpColl = new List<Models.ClsPay_GroupBalBillEmp>(); |
| | | |
| | | public ClsPay_GroupBalBill() |
| | | { |
| | |
| | | DeleteBillSub2(lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillSub " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | } |
| | | // |
| | | //æå
¥å表2 |
| | | foreach (Model.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | foreach (Models.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillEmp " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | "," + oSubSec.HBaseDays.ToString() + "," + oSubSec.HOverDays.ToString() + "," + oSubSec.HLeaveDays.ToString() + "," + oSubSec.HYf.ToString() + |
| | | "," + oSubSec.HMoney.ToString() + "," + oSubSec.HOtherSubsidy.ToString() + "," + oSubSec.HOtherDeduct.ToString() + "," + Convert.ToString(oSubSec.HIsPay ? 1 : 0) + "," + Convert.ToString(oSubSec.HAvgFlag ? 1 : 0) + ") "); |
| | | } |
| | | //foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //{ |
| | | // Ds = oCn.RunProcReturn("exec h_p_Pay_GroupBalBill_Qty " + oSub.HICMOInterID, ""); |
| | | // if (Ds.Tables[0].Rows.Count == 0) |
| | |
| | | ") "); |
| | | // |
| | | //æå
¥å表 |
| | | foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillSub " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | } |
| | | // |
| | | //æå
¥å表2 |
| | | foreach (Model.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | foreach (Models.ClsPay_GroupBalBillEmp oSubSec in DetailEmpColl) |
| | | { |
| | | oCn.RunProc("Insert into Pay_GroupBalBillEmp " + |
| | | " (HInterID,HEntryID,HRemark" + |
| | |
| | | "," + oSubSec.HMoney.ToString() + "," + oSubSec.HOtherSubsidy.ToString() + "," + oSubSec.HOtherDeduct.ToString() + "," + Convert.ToString(oSubSec.HIsPay ? 1 : 0) + "," + Convert.ToString(oSubSec.HAvgFlag ? 1 : 0) + ") "); |
| | | } |
| | | // |
| | | //foreach (Model.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //foreach (Models.ClsPay_GroupBalBillSub oSub in DetailColl) |
| | | //{ |
| | | // Ds = oCn.RunProcReturn("exec h_p_Pay_GroupBalBill_Qty " + oSub.HICMOInterID, ""); |
| | | // if (Ds.Tables[0].Rows.Count == 0) |
| | |
| | | DetailColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) |
| | | { |
| | | Model.ClsPay_GroupBalBillSub oSub = new Model.ClsPay_GroupBalBillSub(); |
| | | Models.ClsPay_GroupBalBillSub oSub = new Models.ClsPay_GroupBalBillSub(); |
| | | // åºå®èµå¼=============================================== |
| | | oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]); |
| | | oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]); |
| | |
| | | DetailEmpColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSubSec.Tables[0].Rows.Count; i++) |
| | | { |
| | | Model.ClsPay_GroupBalBillEmp oSubSec = new Model.ClsPay_GroupBalBillEmp(); |
| | | Models.ClsPay_GroupBalBillEmp oSubSec = new Models.ClsPay_GroupBalBillEmp(); |
| | | // åºå®èµå¼=============================================== |
| | | oSubSec.HInterID = DBUtility.ClsPub.isLong(DsSubSec.Tables[0].Rows[i]["HInterID"]); |
| | | oSubSec.HEntryID = DBUtility.ClsPub.isLong(DsSubSec.Tables[0].Rows[i]["HEntryID"]); |