コード例 #1
0
ファイル: FactoryInfo.cs プロジェクト: mwkim0402/Team1_MES2
        private void btnSave_Click(object sender, EventArgs e)
        {
            WorkCenterVo item = new WorkCenterVo();

            item.Wc_Code      = txtWPCodeInput.Text;
            item.Wc_Name      = txtWPNameInput.Text;
            item.Wc_Group     = cmbWPCategory.Text;
            item.Process_Code = cbProcessCode.Text;
            item.Prd_Unit     = cmbPerformUnit.Text;
            item.Prd_Req_Type = "임시";
            //item.Nop_Auto_YN = rbUse_NonOp.Checked ? "Y" : "N";
            //item.Nop_Check_Time = rbUse_NonOp.Checked ? Convert.ToInt32(nuNonTime.Value) : 0;
            item.Mold_Setup_YN = rbUse_MoldEq.Checked ? "Y" : "N";
            item.Use_YN        = rbUseTrue.Checked ? "Y" : "N";
            item.Pallet_YN     = rbUse_Pallet.Checked ? "Y":"N";
            //  item.Auto_Wo_YN = rbUse_OrderCreate.Checked ? "Y" : "N";
            //   item.Auto_Start_YN = rbUse_OrderStart.Checked ? "Y" : "N";
            item.Mold_Setup_YN = rbUse_MoldEq.Checked ? "Y" : "N";
            item.Remark        = rbUse.Text;

            WorkCenterService service = new WorkCenterService();

            service.InsertWorkCenter(item);
            frm.btnS.PerformClick();
            CommonClass.InitControl(panel1);
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            NonOperationMaService service = new NonOperationMaService();

            service.InsertNonOpMi(new NonOpMiVo
            {
                Nop_Ma_Code = cmbNonOpMa.SelectedValue.ToString(),
                Nop_Mi_Code = txtNonOperationDetailCode.Text,
                Nop_Mi_Name = txtNonOperationDetailName.Text,
                Remark      = txtNote.Text,
                Use_YN      = "Y"
            });
            CommonClass.InitControl(panel1);
            Search();
        }
コード例 #3
0
        private void btnInsSave_Click(object sender, EventArgs e)
        {
            ProcessVo insertVo = new ProcessVo();

            insertVo.Process_Group = cbInsertGroup.Text;
            insertVo.Process_Code  = txtInsertCode.Text;
            insertVo.Process_Name  = txtInsertName.Text;
            insertVo.Use_YN        = rbUse.Checked ? "Y" : "N";
            insertVo.Remark        = txtInsRemark.Text;

            ProcessService service = new ProcessService();

            service.InsertProcess(insertVo);
            CommonClass.InitControl(pnlParent1);
            frm.btnS.PerformClick();
        }
コード例 #4
0
        private void btnUpButton_Click(object sender, EventArgs e)
        {
            ProcessVo updateVo = new ProcessVo();

            updateVo.Process_Code  = txtUpCode.Text;
            updateVo.Process_Name  = txtUpName.Text;
            updateVo.Process_Group = cbUpdateGroup.Text;
            updateVo.Use_YN        = rbUpTrue.Checked ? "Y" : "N";
            updateVo.Remark        = txtUpRemark.Text;

            ProcessService service = new ProcessService();

            service.UpdateProcess(updateVo);

            CommonClass.InitControl(panel1);
            frm.btnS.PerformClick();
        }
コード例 #5
0
ファイル: FaultyDetail.cs プロジェクト: mwkim0402/Team1_MES2
        private void button1_Click(object sender, EventArgs e)
        {
            FaultyDetailVo insertVo = new FaultyDetailVo();

            insertVo.Def_Ma_Code = cbInsMasterCode.SelectedValue.ToString();
            insertVo.Def_Mi_Code = txtInsDetailCode.Text;
            insertVo.Def_Mi_Name = txtInsDetailName.Text;
            insertVo.Use_YN      = rbInsTrue.Checked ? "Y" : "F";
            insertVo.Remark      = txtInsRemark.Text;

            FaultyService service = new FaultyService();

            service.InsertFaultyDetail(insertVo);

            frm.lblAlert.Text = "등록되었습니다.";

            faultyDetailList = service.GetFaultyDetail();

            CommonClass.InitControl(panel1);
        }
コード例 #6
0
        private void BtnSave_Click(object sender, EventArgs e)
        {
            WoReqService service = new WoReqService();
            int          req_Num = (woReqList.FindAll(x => x.Prd_Plan_Date.Date == dtpPlanDate.Value.Date).Count) + 1;

            service.InsertWoReq(new Wo_Req
            {
                Wo_Req_No     = txtJobOrderCodeInput.Text,
                Cust_Name     = txtCustName.Text,
                Project_Name  = txtProjectName.Text,
                Req_Qty       = Convert.ToInt32(nuPlanAmount.Text),
                Prd_Plan_Date = dtpPlanDate.Value.Date,
                Item_Code     = cmbItemName.SelectedValue.ToString(),
                Req_Seq       = req_Num,
                Ins_Date      = DateTime.Now.Date
            });
            CommonClass.InitControl(pnlParent1);
            RefreshList();
            CreateWoReqNo();
        }
コード例 #7
0
        private void btnSave_Click_1(object sender, EventArgs e)
        {
            ConditionSpecVo conVo = new ConditionSpecVo
            {
                Wc_Code         = cbWorkCd.Text,
                Item_Code       = cbItemCd.Text,
                Condition_Code  = txtCondCode.Text,
                Condition_Name  = txtCondName.Text,
                Spec_Desc       = txtDataDESC.Text,
                USL             = Convert.ToDecimal(txtUSL.Text),
                SL              = Convert.ToDecimal(txtSL.Text),
                LSL             = Convert.ToDecimal(txtLSL.Text),
                Condition_Group = cbProGroup.Text,
                Condition_Unit  = txtUnit.Text,
                Use_YN          = rbY.Checked ? "Y" : "N",
                Remark          = txtNote.Text
            };
            ConditionSpecService service = new ConditionSpecService();

            service.InsertCondSpecsMaster(conVo);
            CommonClass.InitControl(panel1);
            frm.btnS.PerformClick();
        }
コード例 #8
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            InspectVo inspectVo = new InspectVo
            {
                Process_Code  = cbProcessCd.Text,
                Item_Code     = cbItemCd.Text,
                Inspect_Code  = txtInsepctCode.Text,
                Inspect_Name  = txtInspectName.Text,
                Spec_Desc     = txtDataDESC.Text,
                USL           = Convert.ToDecimal(txtUSL.Text),
                SL            = Convert.ToDecimal(txtSL.Text),
                LSL           = Convert.ToDecimal(txtLSL.Text),
                Inspect_Group = cbSampleSize.Text,
                Inspect_Unit  = txtUnit.Text,
                Use_YN        = rbY.Checked ? "Y" : "N",
                Remark        = txtNote.Text
            };
            InspectService service = new InspectService();

            service.InsertInspectMaster(inspectVo);
            CommonClass.InitControl(panel1);
            frm.btnS.PerformClick();
        }
コード例 #9
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            GvInfoVo gvVo = new GvInfoVo
            {
                GV_Code   = txtTruckCodeInput.Text,
                GV_Name   = txtTruckNameInput.Text,
                GV_Group  = cmbGVGroup.Text,
                GV_Status = "빈대차",
                Use_YN    = rbY.Checked ? "Y" : "N"
            };
            GVInfoService service = new GVInfoService();

            if (service.InsertGVInfo(gvVo))
            {
                frm.lblAlert.Text = "등록완료되었습니다";
                CommonClass.InitControl(pnlParent1);
                frm.btnS.PerformClick();
                cmbGVGroup.SelectedIndex = 1;
            }
            else
            {
                frm.lblAlert.Text = "등록 실패하였습니다.";
            }
        }