Esempio n. 1
0
        private void NewCalSalary(Bu_CalSalaryGen v)
        {
            SalaryCal salaryCal = SalaryFactory.GetSalaryCal(v.Odr_Type, v.Odr_No_Main, v);

            bool hasSalary = salaryCal.HasSalary();

            if (hasSalary)
            {
                salaryCal.DoCal();
            }
        }
Esempio n. 2
0
        private bool NewCalSalary(Bu_CalSalaryGen v)
        {
            SalaryCal salaryCal = SalaryFactory.GetSalaryCal(v.Odr_Type, v.Odr_No_Main, v);

            bool hasSalary = salaryCal.HasSalary();

            if (hasSalary)
            {
                return(salaryCal.DoCal());
            }

            return(false);
        }