private void LookupData() { string strTableName = EVOFramework.Data.DTOUtility.ReadTableName(typeof(MachineDTO)); LookupDataBIZ biz = new LookupDataBIZ(); LookupData MachineProjectData = biz.LoadLookupClassType(DataDefine.MACHINE_PROJECT.ToNZString()); cboProject.LoadLookupData(MachineProjectData); cboProject.SelectedIndex = -1; NZString[] locationtype = new NZString[1]; locationtype[0] = DataDefine.Convert2ClassCode(DataDefine.eLOCATION_CLS.Production).ToNZString(); LookupData ProductionProcessData = biz.LoadLookupLocation(locationtype); //LookupData ProductionProcessData = biz.LoadLookupClassType(DataDefine.PRODUCTION_PROCESS.ToNZString()); cboProcess.LoadLookupData(ProductionProcessData); cboProcess.SelectedIndex = -1; //LookupData lookupMachineType = biz.LoadLookupTextHelper(strTableName, MachineDTO.eColumns.MACHINE_TYPE.ToString()); //cboMachineType.LoadLookupData(lookupMachineType); //cboMachineType.SelectedIndex = -1; LookupData lookupMachineType = biz.LoadLookupClassType(DataDefine.MACHINE_TYPE.ToNZString()); cboMachineType.LoadLookupData(lookupMachineType); cboMachineType.SelectedIndex = -1; LookupData lookupMachineGroup = biz.LoadLookupTextHelper(strTableName, MachineDTO.eColumns.MACHINE_GROUP.ToString()); cboMachineGroup.LoadLookupData(lookupMachineGroup); cboMachineGroup.SelectedIndex = -1; }