Пример #1
0
 protected void hplFindPaymentControl_OnClick(Object sender, EventArgs e)
 {
     try
     {
         var   gv        = (GridViewRow)((LinkButton)sender).NamingContainer;
         Label paymentID = (Label)gv.FindControl("lblgvPaymentMissingId");
         txtFindPaymentSelected.Text = paymentID.Text;
         ModFindPayment.Show();
     }
     catch (Exception ex)
     {
         UCModalError.ShowMessageError = "";
         UCModalError.ShowModalError();
     }
 }
Пример #2
0
 protected void hplFindPaymentControl_OnClick(Object sender, EventArgs e)
 {
     try
     {
         var   gv        = (GridViewRow)((LinkButton)sender).NamingContainer;
         Label paymentID = (Label)gv.FindControl("lblgvPaymentMissingId");
         txtFindPaymentSelected.Text = paymentID.Text;
         ModFindPayment.Show();
     }
     catch (Exception ex)
     {
         ((Site1)Master).ModelError.ShowMessageError = "ไม่สามารถเลือกข้อมูลได้";
         ((Site1)Master).ModelError.ShowModalError();
         LoggerFactory.CreateLog().LogError("ไม่สามารถเลือกข้อมูลได้", ex);
     }
 }
Пример #3
0
        protected void btnFindPayment_OnClick(object sender, EventArgs e)
        {
            //DTO.BankTransaction bankTransaction = GvPaymentMissingSource.SingleOrDefault(a => a.Ref1 == txtFindPaymentSelected.Text);

            var biz = new BLL.PaymentBiz();

            gvFindPaymentResult.DataSource = null;
            DTO.GetPaymentByRangeRequest request = new DTO.GetPaymentByRangeRequest();
            request.PaymentStarting = txtPaymentNumberStart.Text.Trim();
            request.PaymentEnding   = txtPaymentNumberEnd.Text.Trim();
            //request.Amount = bankTransaction.Amount;

            var result = biz.GetPaymentByRange(request);

            gvFindPaymentResult.DataSource = result.DataResponse.PaymentByRangeResults;
            gvFindPaymentResult.DataBind();


            ModFindPayment.Show();
        }