//원자재가 보관될 창고목록과 원자재가 속하는 카테고리 목록과 어느 거래처와 거래하는지 설정하기 위해 거래처 목록을 콤보바인딩 private void InitCombo() { try { StandardService service = new StandardService(); List <ComboItemVO> warehouseList = service.GetComboWarehouse(0); UtilClass.ComboBinding(cboResourceWarehouse, warehouseList, "선택"); List <ComboItemVO> meterialList = (from item in service.GetComboMeterial() where item.ID.Contains("M") select item).ToList(); UtilClass.ComboBinding(cboResourceCategory, meterialList, "선택"); List <ComboItemVO> companyList = service.GetComboCompany(); UtilClass.ComboBinding(cboCompany, companyList, "선택"); } catch (Exception err) { Log.WriteError(err.Message, err); } if (mode.Equals("Update")) { cboResourceCategory.SelectedValue = category; cboCompany.SelectedValue = cID.ToString("0000"); cboResourceWarehouse.SelectedValue = wID.ToString("0000"); } }