Beispiel #1
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();
        }