public ActionResult Index() { BL = new TestBL(); GetTestResponse response = BL.GetTestList(new GetTestRequest()); return(View(response.TestList)); }
private void gridTestMaster_Click(object sender, EventArgs e) { if (gridTest.GetFocusedRowCellValue("TestCode") != null) { LISClient processClient = (LISClient)cboLocations.SelectedItem; TestBL wkList = new TestBL(); Int32 sWlId = Convert.ToInt32(gridTest.GetFocusedRowCellValue("TestCode").ToString()); List <CentreParam> list = wkList.getParamList(processClient.vCenCode, sWlId, processClient.Server, processClient.Login, processClient.Password); gridParameters.DataSource = list; gridProcessingCentre.Columns[1].BestFit(); gridProcessingCentre.Columns[6].BestFit(); gridProcessingCentre.Columns[0].Width = 50; gridProcessingCentre.Columns[2].Width = 50; gridProcessingCentre.Columns[3].Width = 50; gridProcessingCentre.Columns[4].Width = 50; } }
private void btnLoad_Click(object sender, EventArgs e) { LISClient processClient = (LISClient)cboLocations.SelectedItem; TestBL wkList = new TestBL(); List <CentreTest> list = wkList.getTestList(processClient.vCenCode, processClient.Server, processClient.Login, processClient.Password); gridTestMaster.DataSource = list; gridTest.Columns[2].BestFit(); gridTest.Columns[3].BestFit(); MachineMasterManager mManager = new MachineMasterManager(); List <MachineMaster> listMachine = mManager.getMachineMaster(processClient.vCenCode, processClient.Server, processClient.Login, processClient.Password); gridMachineMaster.DataSource = listMachine; loadMachineParam("%"); }
static void Main(string[] args) { var bl = new TestBL(); bl.Test(); }