Example #1
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);
        }
Example #2
0
 public virtual void InitVinaListGridControl(VinaGridControl gridControl)
 {
     GridControl = gridControl;
 }