Exemple #1
0
        private void BindCombo()
        {
            List <ComboItem> comboItems = new List <ComboItem>();

            comboItems.Add(new ComboItem
            {
                comboText  = "압연",
                comboValue = "압연"
            });
            comboItems.Add(new ComboItem
            {
                comboText  = "제선",
                comboValue = "제선"
            });
            comboItems.Add(new ComboItem
            {
                comboText  = "제강",
                comboValue = "제강"
            });
            comboItems.Add(new ComboItem
            {
                comboText  = "포장",
                comboValue = "포장"
            });
            ComboClass.ComboBind(comboItems, cbInsertGroup, false);
            ComboClass.ComboBind(comboItems, cbUpdateGroup, false);
        }
Exemple #2
0
        private void ItemGroupComboBind()
        {
            // ComboBox[] comboArr= { cmbLv1, cmbLv2, cmbLv3, cmbLv4, cmbLv5 };
            //  ComboBox[] comboUpArr = { cmbUpLvl1, cmbUpLvl2, cmbUpLvl3, cmbUpLvl4, cmbUpLvl5 };
            for (int i = 0; i < 5; i++)
            {
                List <ComboItem> comboList = (from value in ItemGroupList
                                              where value.Level == "Level" + (i + 1)
                                              select new ComboItem
                {
                    comboText = value.Level_Code,
                    comboValue = value.Level_Name
                }).ToList();
                //   ComboClass.ComboBind(comboList, comboArr[i], true);
                //  ComboClass.ComboBind(comboList, comboUpArr[i], false) ;
            }
            List <ComboItem> cmbItem = new List <ComboItem>();

            cmbItem.Add(new ComboItem
            {
                comboText  = "완제품",
                comboValue = "완제품"
            });
            cmbItem.Add(new ComboItem
            {
                comboText  = "원재료",
                comboValue = "원재료"
            });

            ComboClass.ComboBind(cmbItem, cmbInType, false);
            ComboClass.ComboBind(cmbItem, cbUpType, false);
            ComboClass.ComboBind(cmbItem, cmbProdCat, true);
        }
Exemple #3
0
 private void ComboBind()
 {
     //ComboClass.ComboBind(processCombo, cbProGroup, false);
     ComboClass.ComboBind(ItemCombo, cbItemCd, false);
     ComboClass.ComboBind(workCombo, cbWorkCd, false);
     cbProGroup.SelectedIndex = 0;
     cbItemCd.SelectedIndex   = 0;
 }
 private void ComboBind()
 {
     ComboClass.ComboBind(processCombo, cbProcessCd, false);
     ComboClass.ComboBind(ItemCombo, cbItemCd, false);
     cbProcessCd.SelectedIndex  = 1;
     cbItemCd.SelectedIndex     = 1;
     cbSampleSize.SelectedIndex = 0;
 }
 private void ComboBind()
 {
     comboList = (from item in nonOpMaList
                  select new ComboItem
     {
         comboText = item.Nop_Ma_Name,
         comboValue = item.Nop_Ma_Code
     }).ToList();
     ComboClass.ComboBind(comboList, cmbNonOpMa, false);
 }
Exemple #6
0
        private void ComboBind()
        {
            List <ComboItem> list = (from item in faultyMasterList
                                     select new ComboItem
            {
                comboText = item.Def_Ma_Name,
                comboValue = item.Def_Ma_Code
            }).ToList();

            ComboClass.ComboBind(list, cbInsMasterCode, false);
        }
Exemple #7
0
        private void ComboBind()
        {
            ItemService      service = new ItemService();
            List <ComboItem> cbItem  = (from item in service.GetAllItemInfo()
                                        where item.Item_Type == "완제품"
                                        select new ComboItem
            {
                comboText = item.Item_Name,
                comboValue = item.Item_Code
            }).ToList();

            ComboClass.ComboBind(cbItem, cmbItemName, false);
        }
Exemple #8
0
        private void CreateWorkOrder_Load(object sender, EventArgs e)
        {
            WorkCenterService centerService = new WorkCenterService();

            workCenters = centerService.GetAllWorkCenter().FindAll(x => x.Wc_Group == pType);
            List <ComboItem> cbItem = new List <ComboItem>();

            foreach (var item in workCenters)
            {
                ComboItem a = new ComboItem
                {
                    comboText  = item.Wc_Name,
                    comboValue = item.Wc_Code
                };
                cbItem.Add(a);
            }
            ComboClass.ComboBind(cbItem, cbWorkCenter, false);

            WorkOrderService service = new WorkOrderService();

            workReq            = service.GetAllWorkReq().Find(x => x.Wo_Req_No == workOrdNo);
            txtWorkReqNo.Text  = workReq.Wo_Req_No;
            txtClient.Text     = workReq.Cust_Name;
            txtIem.Text        = workReq.Item_Name;
            nuQty.Value        = workReq.Req_Qty;
            dtpEndDate.Value   = workReq.Prd_Plan_Date;
            nuDefaultQty.Value = workReq.Req_Qty - service.SumWoReq(pType, workOrdNo);

            ItemService itemService = new ItemService();

            itemUphList = itemService.ItemUph(txtIem.Text);
            if (pType == "압연")
            {
                uph = itemUphList[0].RollingUPH;
            }
            else if (pType == "제선")
            {
                uph = itemUphList[0].IronUPH;
            }
            else if (pType == "제강")
            {
                uph = itemUphList[0].SteelUPH;
            }
            else
            {
                uph = itemUphList[0].PackageUPH;
            }
        }
Exemple #9
0
        private void MoldInformationRegister_Load(object sender, EventArgs e)
        {
            //dgv 추가
            frm = (MainForm)this.MdiParent;
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "금형코드", "Mold_Code", true, 110);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "금형명", "Mold_Name", true, 120);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "금형그룹", "Mold_Group", true, 140);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "금형상태", "Mold_Status", true, 110);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "금형누적타수", "Cum_Shot_Cnt", true, 150, DataGridViewContentAlignment.MiddleRight);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "금형누적생산량", "Cum_Prd_Qty", true, 150, DataGridViewContentAlignment.MiddleRight);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "금형누적사용시간", "Cum_Time", true, 160, DataGridViewContentAlignment.MiddleRight);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "보장타수", "Guar_Shot_Cnt", true, 110, DataGridViewContentAlignment.MiddleRight);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "구입금액", "Purchase_Amt", true, 110, DataGridViewContentAlignment.MiddleRight);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "입고일자", "In_Date", true, 150, DataGridViewContentAlignment.MiddleCenter);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "최종장착일시", "Last_Setup_Time", true, 150, DataGridViewContentAlignment.MiddleCenter);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "비고", "Remark", true, 80);
            CommonClass.AddNewColumnToDataGridView(dgvSearchResult, "사용유무", "Use_YN", true, 110, DataGridViewContentAlignment.MiddleCenter);
            LoadList();
            dgvSearchResult.DataSource = List;

            dgvSearchResult.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;

            dgvSearchResult.Columns[0].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dgvSearchResult.Columns[1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dgvSearchResult.Columns[2].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dgvSearchResult.Columns[3].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.dgvSearchResult.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvSearchResult_DoubleClick);
            this.dgvSearchResult.CellClick       += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSearchResult_Click);
            //콤보바인딩
            List <ComboItem> item = (from items in List
                                     select  new ComboItem
            {
                comboText = items.Mold_Group.ToString(),
                comboValue = items.Mold_Group.ToString()
            }).Distinct().ToList();

            ComboClass.ComboBind(item, cmbMoldGroupSearch, true);
            //ComboClass.ComboBind(item, cmbMoldGroupI, false);
            //ComboClass.ComboBind(item, cmbMoldGroupM, false);
            cmbMoldGroupSearch.DataSource = item.Select(items => items.comboText).Distinct().ToList();
            cmbMoldGroupM.DataSource      = item.Select(items => items.comboText).Distinct().ToList();
            cmbMoldGroupI.DataSource      = item.Select(items => items.comboText).Distinct().ToList();
        }
Exemple #10
0
        private void ComboBoxBinding()
        {
            service = new QualityService();
            List <ItemCodeListVO> GetAllItemList = new List <ItemCodeListVO>();

            GetAllItemList = service.comboItemList();
            bool             check       = true;
            List <ComboItem> itemlist    = new List <ComboItem>();
            List <ComboItem> Processlist = new List <ComboItem>();
            List <ComboItem> Inspectlist = new List <ComboItem>();
            List <ComboItem> Worklist    = new List <ComboItem>();

            foreach (var item in GetAllItemList)
            {
                if (item.type == "item")
                {
                    InsertCombo(itemlist, item);
                }
                else if (item.type == "Process")
                {
                    InsertCombo(Processlist, item);
                }
                else if (item.type == "Inspect")
                {
                    InsertCombo(Inspectlist, item);
                }
                else if (item.type == "Work")
                {
                    InsertCombo(Worklist, item);
                }
            }

            ComboClass.ComboBind(itemlist, cmbItemName, check);
            ComboClass.ComboBind(Processlist, cmbProcessCode, check);
            ComboClass.ComboBind(Inspectlist, cmbInspect, check);
            ComboClass.ComboBind(Worklist, cmbWork, check);
        }
Exemple #11
0
        private void UserManager_Load(object sender, EventArgs e)
        {
            cmbEditProcess.SelectedIndex   = 0;
            cmbProcess.SelectedIndex       = 0;
            cmbGroupCode.SelectedIndex     = 0;
            cmbEditGroupCode.SelectedIndex = 0;
            cmbUserType.SelectedIndex      = 0;
            cmbEditUserType.SelectedIndex  = 0;
            frm = (MainForm)this.MdiParent;
            ShowDgv();
            CommonClass.Userauthority(btnSave, btnEdit);

            UserInfoService  ser         = new UserInfoService();
            List <ProCodeVo> processList = ser.GetList();
            List <ComboItem> proList     = new List <ComboItem>();

            foreach (var item in processList)
            {
                InsertCombo(proList, item);
            }

            ComboClass.ComboBind(proList, cmbProcess, true);
            ComboClass.ComboBind(proList, cmbEditProcess, true);
        }
Exemple #12
0
 private void ComboBind()
 {
     ComboClass.ComboBind(processCombo, cbProcessCode, false);
     cbProcessCode.SelectedIndex = 1;
     cmbWPCategory.SelectedIndex = 1;
 }