private void BORPop_Load(object sender, EventArgs e) { R_survice = new ResourceService(); #region 콤보박스 바인딩 common_service = new CommonCodeService(); common_list = common_service.GetCommonCodeAll(); { //공정 var mCode = (from item in common_list where item.common_type == "route" select item).ToList(); ComboUtil.ComboBinding <CommonVO>(cboRoute, mCode, "common_value", "common_name", "미선택"); } { //사용유무 var mCode = (from item in common_list where item.common_type == "user_flag" select item).ToList(); ComboUtil.ComboBinding <CommonVO>(cboYN, mCode, "common_value", "common_name"); } R_survice = new ResourceService(); List <MachineVO> lst = R_survice.GetMachineAll(); ComboUtil.ComboBinding <MachineVO>(cboM_name, lst, "m_id", "m_name", "미선택"); ProductService product_service = new ProductService(); List <ProductVO> list = product_service.GetAllProducts(); ComboUtil.ComboBinding <ProductVO>(cboP_Name, list, "product_id", "product_name", "미선택"); #endregion if (mode == EditMode.Update) { R_survice = new ResourceService(); vo = R_survice.GetBORByID(Convert.ToInt32(lblID.Text), lblRoute.Text); lblID.Text = vo.bor_id.ToString(); cboP_Name.Text = vo.product_name; cboM_name.Text = vo.m_name; cboYN.Text = vo.bor_yn; cboRoute.Text = vo.common_name; txtComment.Text = vo.bor_comment; txtReadyTime.Text = vo.bor_readytime.ToString(); txtTactTime.Text = vo.bor_tacktime.ToString(); } }