private void btnDelete_Click(object sender, EventArgs e) { ComInfo comInfo = new ComInfo(); DialogResult msgOk = comInfo.deleteConfrim("공정등록", txt_lot_no.Text.ToString()); if (msgOk == DialogResult.No) { return; } wnDm wDm = new wnDm(); int rsNum = wDm.deleteWorkFlow(txt_lot_no.Text.ToString()); if (rsNum == 0) { flow_cnt = 0; //해당 공정 카운트 리셋 btnFlow.Enabled = false; btnDelete.Enabled = false; txt_lot_no.Text = ""; txt_item_nm.Text = ""; txt_item_cd.Text = ""; txt_spec.Text = ""; txt_work_date.Text = ""; txt_inst_amt.Text = "0"; txt_char_amt.Text = "0"; txt_pack_amt.Text = "0"; for (int i = 0; i < flow_cnt; i++) { lbl_flow_cd[i].Text = ""; lbl_flow_nm[i].Text = ""; lbl_flow_pr_type[i].Text = ""; lbl_flow_seq[i].Text = ""; } //btn[flow_cnt - 1].Visible = false; for (int i = 0; i < max_flow_cnt; i++) { dgv[i].Rows.Clear(); //GridView 초기화 } gridList(); MessageBox.Show("성공적으로 삭제하였습니다."); } }