Esempio n. 1
0
        private void btnCopy_Click(object sender, EventArgs e)
        {
            if (dgvSearchResult.SelectedRows.Count < 1)
            {
                //frm.lblAlert.Text = "복사할 상품의 정보를 선택하세요";
                return;
            }
            InspectVo copyVo = inspectMaster.Find(x => x.Inspect_Code == dgvSearchResult.SelectedRows[0].Cells[2].Value.ToString());

            txtUSL.Text       = copyVo.USL.ToString();
            txtSL.Text        = copyVo.SL.ToString();
            txtLSL.Text       = copyVo.LSL.ToString();
            txtDataDESC.Text  = copyVo.Spec_Desc;
            cbSampleSize.Text = copyVo.Inspect_Group.ToString();
            txtUnit.Text      = copyVo.Inspect_Unit;
        }
Esempio n. 2
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();
        }