示例#1
0
 private void pnl_later_Click(object sender, EventArgs e)
 {
     try
     {
         Cursor.Current = Cursors.WaitCursor;
         if (this.cus.status == "0")
         {
             bll.SignRead(this.cus.cus_no);
         }
         //
         var new_cus     = new body.customer();
         int un_read_num = 0;
         if (bll.GetFirstNewCustomer(out new_cus, out un_read_num) == true)
         {
             this.DialogResult = DialogResult.No;
             var frm = new frmCusHand(new_cus, "新货商审核", un_read_num);
             frm.ShowDialog();
         }
         else
         {
             this.DialogResult = DialogResult.OK;
         }
     }
     catch (Exception ex)
     {
         Program.frmMsg(ex.Message);
     }
     finally
     {
         Cursor.Current = Cursors.Default;
     }
 }
示例#2
0
 private void newCusMsg1_Click(object sender, EventArgs e)
 {
     try
     {
         BLL.ICustomer cbll        = new BLL.Customer();
         var           cus         = new body.customer();
         int           un_read_num = 0;
         if (cbll.GetFirstNewCustomer(out cus, out un_read_num) == true)
         {
             var frm = new customer.frmCusHand(cus, "新客户审核", un_read_num);
             frm.ShowDialog();
         }
         else
         {
             throw new Exception("不存在未阅读的货商信息");
         }
     }
     catch (Exception ex)
     {
         Program.frmMsg(ex.Message);
     }
 }