Exemplo n.º 1
0
        protected override DevExpress.XtraGrid.Views.Grid.GridView InitializeGridView()
        {
            GridView gridView = base.InitializeGridView();

            GridViewMain           = gridView;
            WorkingShiftGroupsList = (List <ADWorkingShiftGroupsInfo>)objWorkingShiftGroupsController.GetListFromDataSet(objWorkingShiftGroupsController.GetAllObjects());
            OTFactorlist           = (List <ADOTFactorsInfo>)objOTFactorsController.GetListFromDataSet(objOTFactorsController.GetAllObjects());
            return(gridView);
        }
Exemplo n.º 2
0
        void repositoryItemLookUpEdit_QueryPopUp2(object sender, System.ComponentModel.CancelEventArgs e)
        {
            LookUpEdit             lookUpEdit             = (LookUpEdit)sender;
            ADOTFactorsController  objOTFactorsController = new ADOTFactorsController();
            List <ADOTFactorsInfo> list      = (List <ADOTFactorsInfo>)objOTFactorsController.GetListFromDataSet(objOTFactorsController.GetAllObjects());
            List <ADOTFactorsInfo> finalList = new List <ADOTFactorsInfo>();

            finalList.Add(new ADOTFactorsInfo());
            finalList.AddRange(list);
            lookUpEdit.Properties.DataSource    = finalList;
            lookUpEdit.Properties.DisplayMember = "ADOTFactorName";
            lookUpEdit.Properties.ValueMember   = "ADOTFactorID";
        }