private void initDeductionItem() { CTable o = GetDbObject(); if (o == null) { return; } ArrayList arr = o.GetChildArray("DEDUCTION_LIST"); if (arr == null) { deductionItems.Clear(); return; } deductionItems.Clear(); foreach (CTable t in arr) { MVPayrollDeductionItem v = new MVPayrollDeductionItem(t); deductionItems.Add(v); v.ExtFlag = "I"; } }
private void LsvDeduct_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (lsvDeduct.SelectedItems.Count == 1) { currentDeductionViewObj = (MVPayrollDeductionItem)lsvDeduct.SelectedItems[0]; showEditDeductWindow(); } }
protected override MBaseModel createObject() { mv = new MVPayrollDeductionItem(new CTable("")); mv.DeductionDate = DateTime.Now; mv.CreateDefaultValue(); return(mv); }
public void AddDeductionItem(MVPayrollDeductionItem m) { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("DEDUCTION_LIST"); if (arr == null) { arr = new ArrayList(); o.AddChildArray("DEDUCTION_LIST", arr); } m.ExtFlag = "A"; arr.Add(m.GetDbObject()); deductionItems.Add(m); }