Esempio n. 1
0
        private void btn_Write_Click(object sender, EventArgs e)
        {
            if (t == null)
            {
                MessageBox.Show("측정항목을 선택해주세요.", "알림");
            }
            else
            {
                Inspect_Service service = new Inspect_Service();
                service.InspectVal(cb_WorkNum.Text, Convert.ToDecimal(txt_MeasuredValue.Text), t.ToString());
                txt_MeasuredValue.Text = "";
                MessageBox.Show("입력완료", "알림");
                SetVal();
            }


            //Inspect_Service service = new Inspect_Service();
            //Inspect_Vo vo = new Inspect_Vo();
            //vo.Item_Name = d;
            //vo.Inspect_Val = Convert.ToDecimal(txt_MeasuredValue.Text);

            //service.InsertInspect(vo);

            //MessageBox.Show("입력 완료");
        }
Esempio n. 2
0
        private void btn_Delete_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("삭제 하시겠습니까?", "알림", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                Inspect_Service service = new Inspect_Service();
                Inspect_Vo      vo      = new Inspect_Vo();
                vo.Item_Name       = txt_Item.Text;
                vo.Condition_Val   = u;
                vo.Wc_Name         = txt_WorkPlace.Text;
                vo.Condition_Group = g;

                service.deleteVal(vo);

                SetVal();
            }
        }
Esempio n. 3
0
        private void SetVal()
        {
            Inspect_Service service = new Inspect_Service();

            dataGridView2.DataSource = service.GetInspectHis(cb_WorkNum.Text, t.ToString());
        }
Esempio n. 4
0
        private void GetCon()
        {
            Inspect_Service service = new Inspect_Service();

            dataGridView1.DataSource = service.GetInspetMaster(cb_WorkNum.Text);
        }