//반제품의 카테고리 목록을 보여주고 해당하는 카테고리를 선택하면 유저컨트롤 생성 메서드에 해당하는 카테고리의 ID를 보낸다.
        private void cboCategory_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cboCategory.SelectedIndex < 1)
            {
                return;
            }

            if (!cboCategory.SelectedValue.ToString().Contains("CS"))
            {
                return;
            }

            try
            {
                BOMService service = new BOMService();
                if (mode.Equals("Insert"))
                {
                    List <ComboItemVO> resourceList = service.GetComboResourceCategory(cboCategory.SelectedValue.ToString());
                    UtilClass.ComboBinding(cboCategoryDetail, resourceList, "선택");
                    splitContainer2.Panel1.Controls.Clear();
                    CategoryLabelName(resourceList);
                }
            }
            catch (Exception err)
            {
                Log.WriteError(err.Message, err);
            }

            dgvSemiProduct.DataSource = null;
        }
 //반제품 카테고리 목록을 가져오는 콤보 바인딩 메서드
 private void InitCombo()
 {
     try
     {
         BOMService service = new BOMService();
         if (mode.Equals("Insert"))
         {
             List <ComboItemVO> categoryList = (from item in service.GetComboProductCategory() where item.ID.Contains("CS") select item).ToList();
             UtilClass.ComboBinding(cboCategory, categoryList, "선택");
         }
         else
         {
             List <ComboItemVO> categoryList = (from item in service.GetComboProductCategory() where item.ID.Equals(pCategory) select item).ToList();
             UtilClass.ComboBinding(cboCategory, categoryList);
             List <ComboItemVO> resourceList = service.GetComboResourceCategory(pCategory.ToString());
             UtilClass.ComboBinding(cboCategoryDetail, resourceList, "선택");
             CategoryLabelName(resourceList);
         }
         List <ComboItemVO> warehouseList = service.GetComboWarehouse(1);
         UtilClass.ComboBinding(cboWarehouse, warehouseList, "선택");
     }
     catch (Exception err)
     {
         Log.WriteError(err.Message, err);
     }
 }
 //부서목록을 콤보바인딩
 private void InitCombo()
 {
     try
     {
         StandardService    service      = new StandardService();
         List <ComboItemVO> employeeList = service.GetComboEmployee();
         UtilClass.ComboBinding(cboEmployeesCategory, employeeList, "선택");
     }
     catch (Exception err)
     {
         Log.WriteError(err.Message, err);
     }
 }
 private void InitCombo()
 {
     //반제품 카테고리 목록을 콤보바인딩 한다.
     try
     {
         CodeTableService   service      = new CodeTableService();
         List <ComboItemVO> categoryList = (from item in service.GetComboProductCategory() where item.ID.Contains("CS") select item).ToList();
         UtilClass.ComboBinding(cboContext, categoryList, "선택");
     }
     catch (Exception err)
     {
         Log.WriteError(err.Message, err);
     }
 }
 //공정이 속할 공장목록과 공정이 없는 반제품 카테고리 목록을 가져와서 콤보바인딩한다.
 private void InitCombo()
 {
     try
     {
         StandardService    service     = new StandardService();
         List <ComboItemVO> factoryList = service.GetComboFactory();
         UtilClass.ComboBinding(cboFactoryName, factoryList, "선택");
         List <ComboItemVO> categoryList = service.GetComboCategory();
         UtilClass.ComboBinding(cboCategory, categoryList, "선택");
     }
     catch (Exception err)
     {
         Log.WriteError(err.Message, err);
     }
 }
Example #6
0
        //업종목록을 콤보바인딩 한다.
        private void InitCombo()
        {
            try
            {
                StandardService    service     = new StandardService();
                List <ComboItemVO> companyList = service.GetComboSector();
                UtilClass.ComboBinding(cboCompanyDivision, companyList, "선택");
            }
            catch (Exception err)
            {
                Log.WriteError(err.Message, err);
            }

            if (mode.Equals("Update"))
            {
                cboCompanyDivision.SelectedValue = division;
            }
        }
Example #7
0
        private void InitCombo()
        {
            try
            {
                BOMService service = new BOMService();
                //완제품의 모든 카테고리 목록 바인딩
                List <ComboItemVO> productList = (from item in service.GetComboProductCategory() where item.ID.Contains("CP") select item).ToList();
                UtilClass.ComboBinding(cboProductCategory, productList);

                //반제품의 모든 카테고리 목록 바인딩
                List <ComboItemVO> categoryList = (from item in service.GetComboProductCategory() where item.ID.Contains("CS") select item).ToList();
                UtilClass.ComboBinding(cboSemiProductCategory, categoryList, "선택");
                CategoryLabelName(categoryList);
            }
            catch (Exception err)
            {
                Log.WriteError(err.Message, err);
            }
        }
        //원자재가 보관될 창고목록과 원자재가 속하는 카테고리 목록과 어느 거래처와 거래하는지 설정하기 위해 거래처 목록을 콤보바인딩
        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");
            }
        }