Exemplo n.º 1
0
        public void UpdateInsPaymentAmt()
        {
            if (Toolbar.IsNullOrNoneAction())
            {
                return;
            }

            EmployeeEntities entity           = (EmployeeEntities)CurrentModuleEntity;
            HREmployeesInfo  objEmployeesInfo = (HREmployeesInfo)entity.MainObject;

            objEmployeesInfo.HREmployeeSocialInsPaymentAmount      = objEmployeesInfo.HREmployeeSocialInsPaymentPercent * objEmployeesInfo.HREmployeeContractSlrAmt / 100;
            objEmployeesInfo.HREmployeeHealthInsPaymentAmount      = objEmployeesInfo.HREmployeeHealthInsPaymentPercent * objEmployeesInfo.HREmployeeContractSlrAmt / 100;
            objEmployeesInfo.HREmployeeOutOfWorkInsPaymentAmount   = objEmployeesInfo.HREmployeeOutOfWorkInsPaymentPercent * objEmployeesInfo.HREmployeeContractSlrAmt / 100;
            objEmployeesInfo.HREmployeeSocialInsPaymentAmountDN    = objEmployeesInfo.HREmployeeSocialInsPaymentPercentDN * objEmployeesInfo.HREmployeeContractSlrAmt / 100;
            objEmployeesInfo.HREmployeeHealthInsPaymentAmountDN    = objEmployeesInfo.HREmployeeHealthInsPaymentPercentDN * objEmployeesInfo.HREmployeeContractSlrAmt / 100;
            objEmployeesInfo.HREmployeeOutOfWorkInsPaymentAmountDN = objEmployeesInfo.HREmployeeOutOfWorkInsPaymentPercentDN * objEmployeesInfo.HREmployeeContractSlrAmt / 100;
            objEmployeesInfo.HREmployeeInsPaymentTotalAmount       = objEmployeesInfo.HREmployeeSocialInsPaymentAmount
                                                                     + objEmployeesInfo.HREmployeeHealthInsPaymentAmount
                                                                     + objEmployeesInfo.HREmployeeOutOfWorkInsPaymentAmount;
            objEmployeesInfo.HREmployeeInsPaymentTotalAmountDN = objEmployeesInfo.HREmployeeSocialInsPaymentAmountDN
                                                                 + objEmployeesInfo.HREmployeeHealthInsPaymentAmountDN
                                                                 + objEmployeesInfo.HREmployeeOutOfWorkInsPaymentAmountDN;
            objEmployeesInfo.HREmployeeSyndicatePaymentAmount = objEmployeesInfo.HREmployeeSyndicatePaymentPercent * objEmployeesInfo.HREmployeeContractSlrAmt / 100;
            entity.UpdateMainObjectBindingSource();
        }
Exemplo n.º 2
0
        public void UpdateWorkingSlrAmtDateTotal()
        {
            if (Toolbar.IsNullOrNoneAction())
            {
                return;
            }

            EmployeeEntities entity           = (EmployeeEntities)CurrentModuleEntity;
            HREmployeesInfo  objEmployeesInfo = (HREmployeesInfo)entity.MainObject;

            objEmployeesInfo.HREmployeeWorkingSlrAmtDateTotal = objEmployeesInfo.HREmployeeAllowanceProgress +
                                                                objEmployeesInfo.HREmployeeAllowanceResponsibility +
                                                                objEmployeesInfo.HREmployeeAllowanceEffective +
                                                                objEmployeesInfo.HREmployeeAllowancePerennial +
                                                                objEmployeesInfo.HREmployeeAllowanceOther +
                                                                objEmployeesInfo.HREmployeeWorkingSlrAmtDate;
            entity.UpdateMainObjectBindingSource();
        }
Exemplo n.º 3
0
        public void UpdateWorkingSlrAmt()
        {
            if (Toolbar.IsNullOrNoneAction())
            {
                return;
            }

            EmployeeEntities entity           = (EmployeeEntities)CurrentModuleEntity;
            HREmployeesInfo  objEmployeesInfo = (HREmployeesInfo)entity.MainObject;

            ADConfigValuesController objConfigValuesController = new ADConfigValuesController();
            ADConfigValuesInfo       objConfigValuesInfo       = new ADConfigValuesInfo();

            objConfigValuesInfo = objConfigValuesController.GetObjectByConfigKey("DaysPerMonth");
            decimal dateWorking = 0;

            if (objConfigValuesInfo != null)
            {
                Decimal.TryParse(objConfigValuesInfo.ADConfigKeyValue, out dateWorking);
                objEmployeesInfo.HREmployeeWorkingSlrAmt = objEmployeesInfo.HREmployeeWorkingSlrAmtDate * dateWorking;
            }
            entity.UpdateMainObjectBindingSource();
        }