Esempio n. 1
0
        public void InvalidateData()
        {
            ADConfigValuesController objConfigValuesController = new ADConfigValuesController();
            DataSet ds = objConfigValuesController.GetADConfigValuesByGroup(ConfigValueGroup.RewardType.ToString());

            RewardTypesList.Invalidate(ds);

            ds = objConfigValuesController.GetADConfigValuesByGroup(ConfigValueGroup.DisciplineType.ToString());
            DisciplineTypesList.Invalidate(ds);

            ADWorkingShiftGroupsController  objWorkingShiftGroupsController = new ADWorkingShiftGroupsController();
            List <ADWorkingShiftGroupsInfo> wsgList = objWorkingShiftGroupsController.GetAllWorkingShiftGroup();

            WorkingShiftGroupsList.Invalidate(wsgList);

            HRFormAllowancesController  objFormAllowancesController = new HRFormAllowancesController();
            List <HRFormAllowancesInfo> faList = objFormAllowancesController.GetAllFormAllowances();

            FormAllowancesList.Invalidate(faList);

            ADOTFactorsController  objOTFactorsController = new ADOTFactorsController();
            List <ADOTFactorsInfo> otfList = objOTFactorsController.GetAllOTFactors();

            OTFactorsList.Invalidate(otfList);

            HRTimesheetEmployeeLateConfigsController  objTimesheetEmployeeLateConfigsController = new HRTimesheetEmployeeLateConfigsController();
            List <HRTimesheetEmployeeLateConfigsInfo> telcList = objTimesheetEmployeeLateConfigsController.GetAllTimesheetEmployeeLateConfigs();

            TimesheetEmployeeLateConfigsList.Invalidate(telcList);

            ADTimesheetConfigsController objTimesheetConfigsController = new ADTimesheetConfigsController();

            ds = objTimesheetConfigsController.GetAllObjects();
            TimesheetConfigsList.Invalidate(ds);

            ADWorkingShiftsController objWorkingShiftsController = new ADWorkingShiftsController();

            ds = objWorkingShiftsController.GetAllObjects();
            WorkingShiftsList.Invalidate(ds);

            HRTimeSheetParamsController objTimeSheetParamsController = new HRTimeSheetParamsController();

            ds = objTimeSheetParamsController.GetAllObjects();
            List <HRTimeSheetParamsInfo> list = new List <HRTimeSheetParamsInfo>();

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                HRTimeSheetParamsInfo objTimeSheetParamsInfo = new HRTimeSheetParamsInfo();
                objTimeSheetParamsInfo = (HRTimeSheetParamsInfo)objTimeSheetParamsController.GetObjectFromDataRow(row);
                objTimeSheetParamsInfo.HRTimeSheetParamValue2 = objTimeSheetParamsInfo.HRTimeSheetParamValue2 * 100;
                if (!objTimeSheetParamsInfo.IsOTCalculated)
                {
                    list.Add(objTimeSheetParamsInfo);
                }
            }
            TimeSheetParamsList.Invalidate(list);

            List <HRTimeSheetParamsInfo> list2 = new List <HRTimeSheetParamsInfo>();
            List <HRTimeSheetParamsInfo> lst   = objTimeSheetParamsController.GetOTTimeSheetParamsList();

            foreach (HRTimeSheetParamsInfo info in lst)
            {
                info.HRTimeSheetParamValue2 = info.HRTimeSheetParamValue2 * 100;
                list2.Add(info);
            }
            TimeSheetParam2sList.Invalidate(list2);
        }
Esempio n. 2
0
        public override void InitializeControl()
        {
            GridViewMain = new GridView();
            this.EmbeddedNavigator.Buttons.CustomButtons.Clear();
            base.InitializeControl();
            //Init banded view and make it the main view
            BandedGridView bandedView = InitializeBandedGridView(GridViewMain);

            MainView = bandedView;
            ViewCollection.AddRange(new BaseView[] { bandedView });
            ShowOnlyPredefinedDetails = false;
            WorkingShiftList          = (List <ADWorkingShiftsInfo>)objWorkingShiftsController.GetListFromDataSet(objWorkingShiftsController.GetAllObjects());
            //UseEmbeddedNavigator = false;
        }
Esempio n. 3
0
        public ArrangementShiftEntities()
            : base()
        {
            EmployeeArrangementShiftsList = new VinaList <HREmployeeArrangementShiftsInfo>();
            EmployeesList = new List <HREmployeesInfo>();

            ADWorkingShiftsController objWorkingShiftsController = new ADWorkingShiftsController();

            WorkingShifts = (List <ADWorkingShiftsInfo>)objWorkingShiftsController.GetListFromDataSet(objWorkingShiftsController.GetAllObjects());
        }
Esempio n. 4
0
        public void InitColumnRepository()
        {
            ArrangementShiftEntities          entity = (ArrangementShiftEntities)CurrentModuleEntity;
            VinaGridControl                   employeeArrangementShiftsGridControl = (VinaGridControl)Controls["fld_dgcHREmployeeArrangementShifts"];
            RepositoryItemCheckedComboBoxEdit reposItemCheckedCombo = new RepositoryItemCheckedComboBoxEdit();

            ADWorkingShiftsController  objWorkingShiftsController = new ADWorkingShiftsController();
            List <ADWorkingShiftsInfo> mainParams = (List <ADWorkingShiftsInfo>)objWorkingShiftsController.GetListFromDataSet(objWorkingShiftsController.GetAllObjects());

            reposItemCheckedCombo.DataSource = mainParams;

            reposItemCheckedCombo.DisplayMember = "ADWorkingShiftName";
            reposItemCheckedCombo.ValueMember   = "ADWorkingShiftName";
            employeeArrangementShiftsGridControl.RepositoryItems.Add(reposItemCheckedCombo);
            GridView gridView = (GridView)employeeArrangementShiftsGridControl.MainView;

            for (int i = 4; i < gridView.Columns.Count; i++)
            {
                gridView.Columns[i].ColumnEdit = reposItemCheckedCombo;
            }
            reposItemCheckedCombo.EditValueChanged += new EventHandler(ReposItemCheckedCombo_EditValueChanged);
        }