Ejemplo n.º 1
0
 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.IInOutBLL bll      = new BLL.InOutBLL();
             bll.CheckSaleSSSheet(sheet_no, Program.oper.oper_id, update_time);
             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);
         Helper.LogHelper.writeLog("frmSaleSSSheetList->tsbDel_Click()", ex.ToString());
     }
 }
Ejemplo n.º 2
0
 private void tsbCheck_Click(object sender, EventArgs e)
 {
     try
     {
         if (!MyLove.PermissionsBalidation(this.Text, "05"))
         {
             return;
         }
         if (sheet_no != null && sheet_no != "")
         {
             IBLL.IInOutBLL bll = new BLL.InOutBLL();
             bll.CheckSaleSSSheet(sheet_no, Program.oper.oper_id, update_time);
             IOrder ins = this;
             ins.ShowOrder(sheet_no);
         }
     }
     catch (Exception ex)
     {
         MsgForm.ShowFrom("审核单据异常[" + ex.Message + "]");
         Helper.LogHelper.writeLog("frmSaleSheer->tsbCheck_Click()", ex.ToString(), sheet_no);
     }
 }