private void tsbCheck_Click(object sender, EventArgs e) { try { if (!MyLove.PermissionsBalidation(this.Text, "05")) { return; } if (this.dataGrid1.CurrentRow() != null) { string sheet_no = this.dataGrid1.CurrentRow()["sheet_no"].ToString(); IBLL.ICusPriceOrder bll = new BLL.CusPriceOrderBLL(); bll.Check(sheet_no, Program.oper.oper_id); var row = this.dataGrid1.CurrentRow(); row["approve_flag"] = "1"; row["approve_man"] = Program.oper.oper_id; row["approve_date"] = System.DateTime.Now; this.dataGrid1.Refresh(); } } catch (Exception ex) { MsgForm.ShowFrom(ex); } }
private void tsbCheck_Click(object sender, EventArgs e) { try { if (txtsheet_no.Text.Trim() != "") { string sheet_no = txtsheet_no.Text.Trim(); IBLL.ICusPriceOrder bll = new BLL.CusPriceOrderBLL(); bll.Check(sheet_no, Program.oper.oper_id); IOrder ins = this; ins.ShowOrder(sheet_no); } } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message); } }
private void tsbCheck_Click(object sender, EventArgs e) { try { if (this.dataGrid1.CurrentRow() != null) { string sheet_no = this.dataGrid1.CurrentRow()["sheet_no"].ToString(); IBLL.ICusPriceOrder bll = new BLL.CusPriceOrderBLL(); bll.Check(sheet_no, Program.oper.oper_id); var row = this.dataGrid1.CurrentRow(); row["approve_flag"] = "1"; row["approve_man"] = Program.oper.oper_id; row["approve_date"] = System.DateTime.Now; this.dataGrid1.Refresh(); } } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message); } }
private void tsbCheck_Click(object sender, EventArgs e) { try { if (!MyLove.PermissionsBalidation(this.Text, "05")) { return; } if (txtsheet_no.Text.Trim() != "") { string sheet_no = txtsheet_no.Text.Trim(); IBLL.ICusPriceOrder bll = new BLL.CusPriceOrderBLL(); bll.Check(sheet_no, Program.oper.oper_id); IOrder ins = this; ins.ShowOrder(sheet_no); } } catch (Exception ex) { MsgForm.ShowFrom(ex); } }