Example #1
0
        private void LoadList()
        {
            WorkCenterService workService = new WorkCenterService();

            workCombo = (from item in workService.GetAllWorkCenter()
                         select new ComboItem
            {
                comboText = item.Wc_Code,
                comboValue = item.Wc_Name
            }).ToList();
            ProcessService proService = new ProcessService();

            processCombo = (from item in proService.GetAllProcess()
                            select new ComboItem
            {
                comboText = item.Process_Code,
                comboValue = item.Process_Name
            }).ToList();
            ItemService itemService = new ItemService();

            itemList  = itemService.GetAllItemInfo();
            ItemCombo = (from item in itemList
                         select new ComboItem
            {
                comboText = item.Item_Code,
                comboValue = item.Item_Name
            }).ToList();
            dgvSelect.DataSource = ItemCombo;
            ConditionSpecService condService = new ConditionSpecService();

            condSpecMaster = condService.GetAllCond();
        }
Example #2
0
        private void SetLoad()
        {
            WorkOrderService service2 = new WorkOrderService();

            processWorkList = service2.GetPrcocess_Workorder(processName);
            ItemService service3 = new ItemService();

            itemList = service3.GetAllItemInfo();
            WorkCenterService workService = new WorkCenterService();

            label5.Text = workService.GetAllWorkCenter().Find(x => x.Wc_Code == workCenterNo).Wc_Name;
        }
Example #3
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;
            }
        }
Example #4
0
        private void LoadList()
        {
            WorkCenterService service = new WorkCenterService();

            list = service.GetAllWorkCenter();
            dataGridView1.DataSource = list;

            ProcessService proService = new ProcessService();

            processCombo = (from item in proService.GetAllProcess()
                            select new ComboItem
            {
                comboText = item.Process_Code,
                comboValue = item.Process_Name
            }).ToList();
        }