Exemple #1
0
 public static void AddingPayment(string description)
 {
     try
     {
         var paymentBLL = new PaymentBLL();
         paymentBLL.AddPayment(description);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
        public dynamic AddPayment()
        {
            string     name = Fun.Form("name");
            PaymentBLL bll  = new PaymentBLL();

            if (!bll.AddPayment(name))
            {
                return("失败");
            }
            else
            {
                return("成功");
            }
        }
 private void btnPay_Click(object sender, EventArgs e)
 {
     try
     {
         if (paymentController.AddPayment(DateTime.Now, (float)moneyReceive.Value, cusChosen.Id()))
         {
             MessageBox.Show("Thu tien thanh cong");
             Clear();
             Load();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Vui long kiem tra lai thong tin");
     }
 }