private void metrialFrm_Load(object sender, EventArgs e) { CommonService service = new CommonService(); List <CommonVO> allList = service.GetCodeInfo(); List <CommonVO> cList = (from item in allList where item.CodeType == "Metrial" select item).ToList(); CommonUtil.ComboBinding(cboMetrialCategory, cList, "선택"); CommonUtil.InitSettingGridView(dgvMetrial); CommonUtil.AddNewColumnToDataGridView(dgvMetrial, "유형", "Metrial_category", true); CommonUtil.AddNewColumnToDataGridView(dgvMetrial, "원재료명", "Metrial_name", true); CommonUtil.AddNewColumnToDataGridView(dgvMetrial, "원재료아이디", "Metrial_ID", false); CommonUtil.AddNewColumnToDataGridView(dgvMetrial, "단위", "Metrial_unit", true); CommonUtil.AddNewColumnToDataGridView(dgvMetrial, "이미지", "Metrial_Image", true); CommonUtil.AddNewColumnToDataGridView(dgvMetrial, "위험재고", "emergency_stock", true); CommonUtil.AddNewColumnToDataGridView(dgvMetrial, "안전재고", "safe_stock", true); MerialService metrialService = new MerialService(); dgvMetrial.DataSource = metrialService.GetMetrialinfo(); }
private void ProductManager_Load(object sender, EventArgs e) { InitControl(); CommonUtil.InitSettingGridView(dgvProduct); CommonUtil.AddNewColumnToDataGridView(dgvProduct, "제품 이름", "Pro_Name", true, 60); CommonUtil.AddNewColumnToDataGridView(dgvProduct, "제품 코드", "Pro_Code", true, 80); CommonUtil.AddNewColumnToDataGridView(dgvProduct, "제품 가격", "Pro_Price", true, 80); CommonUtil.AddNewColumnToDataGridView(dgvProduct, "제품 수량", "Pro_Count", true, 80); CommonUtil.AddNewColumnToDataGridView(dgvProduct, "제품 설명", "Pro_Note", true, 100); LoadData(); }