private void frmdefective_Load(object sender, EventArgs e) { string[] gubun = { "불량유형" }; CheckListService cService = new CheckListService(); List <ComboItemVO> allCheckType = cService.GetCheckTypeInfoByCodeTypes(gubun); CommonUtil.ComboBinding(cboDef, allCheckType, "불량유형"); }
/// <summary> /// 콤보박스바인딩 이벤트 /// </summary> private void comboBinding() { string[] gubun = { "검사구분" }; CheckListService cService = new CheckListService(); List <ComboItemVO> allCheckType = cService.GetCheckTypeInfoByCodeTypes(gubun); ProductService pService = new ProductService(); List <ProdCBOBindingVO> allProItem = pService.GetProductInfo(); CommonUtil.ComboBinding(cboCheckType, allCheckType, "검사구분"); CommonUtil.ProdNameBinding(cboProductName, allProItem); }
/// <summary> /// 폼로드 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmCheckList_Load(object sender, EventArgs e) { string[] gubun = { "검사구분" }; CheckListService cService = new CheckListService(); List <ComboItemVO> allCheckType = cService.GetCheckTypeInfoByCodeTypes(gubun); CommonUtil.ComboBinding(cboCheckType, allCheckType, "검사구분"); CommonUtil.SetInitGridView(dgvCheckList); CommonUtil.AddGridTextColumn(dgvCheckList, "검사ID", "cl_id", 60); CommonUtil.AddGridTextColumn(dgvCheckList, "검사명", "cl_name", 150); CommonUtil.AddGridTextColumn(dgvCheckList, "품목ID", "product_id", 60); CommonUtil.AddGridTextColumn(dgvCheckList, "품목명", "product_name", 150); CommonUtil.AddGridTextColumn(dgvCheckList, "검사타입", "cl_type", 120); CommonUtil.AddGridTextColumn(dgvCheckList, "기준", "cl_stnd", 100); CommonUtil.AddGridTextColumn(dgvCheckList, "비고", "cl_comment", 150); CommonUtil.AddGridTextColumn(dgvCheckList, "수정자", "cl_uadmin", 100); CommonUtil.AddGridTextColumn(dgvCheckList, "수정일", "cl_udate", 150); DGV_Binding(); }