示例#1
0
        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";
            }
        }
示例#2
0
 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);
        }
示例#4
0
        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);
        }