Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (cmbWork.SelectedIndex != 0 && cmbProcessCode.SelectedIndex != 0 && cmbItemName.SelectedIndex != 0 && cmbInspect.SelectedIndex != 0 && txtValue.Text != "" && txtValue.Text != null)
            {
                InsQualityVO insert = new InsQualityVO();
                insert.Inspect_Code = cmbInspect.SelectedValue.ToString();
                insert.Inspect_Val  = Convert.ToInt32(txtValue.Text);
                insert.Item_Code    = cmbItemName.SelectedValue.ToString();
                insert.Process_Code = cmbProcessCode.SelectedValue.ToString();
                insert.WorkOrderNo  = cmbWork.SelectedValue.ToString();
                service.InsQuality(insert);

                MessageBox.Show("등록되었습니다.");
                this.Close();
            }
            else
            {
                btnOK.DialogResult = DialogResult.No;
                MessageBox.Show("모든 항목에 값을 선택,입력해주세요.");
            }
        }
Esempio n. 2
0
 public QulityRegisterForm(InsQualityVO Ins)
 {
     InitializeComponent();
     allQuality = Ins;
 }