示例#1
0
        protected void hplView_Click(object sender, EventArgs e)
        {
            var gr = (GridViewRow)((LinkButton)sender).NamingContainer;

            var HeadNo    = (Label)gr.FindControl("lblHeadNoGv");
            var PaymentNo = (Label)gr.FindControl("lblPaymentNoGv");

            MPDetail.Show();
            lblpaymentNo.Text = HeadNo.Text;
            var biz = new BLL.PaymentBiz();
            var res = biz.GetRecriptByHeadRequestNoAndPaymentNo(HeadNo.Text, PaymentNo.Text);


            if (res == null)
            {
                var errorMsg = res.ErrorMsg;

                UCModalError.ShowMessageError = res.ErrorMsg;
                UCModalError.ShowModalError();
            }
            else
            {
                GVPopupReceipt.DataSource = res.DataResponse;
                GVPopupReceipt.DataBind();
                UpdatePanelSearch.Update();
            }
        }
示例#2
0
 // protected string ExpDate = ConfigurationManager.AppSettings["
 protected void btnConfirm_Click(object sender, EventArgs e)
 {
     GvInvoicePopup.Visible    = true;
     GvInvoicePopup.DataSource = lsOderInvoice.ToList();
     GvInvoicePopup.DataBind();
     MPDetail.Show();
     remark.Visible = true;
     UpdatePanelSearch.Update();
 }
示例#3
0
        protected void GvInvoicePopup__RowCommand(object sender, GridViewCommandEventArgs e)
        {
            GridViewRow gvr          = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
            int         CurrentIndex = gvr.RowIndex;

            List <DTO.OrderInvoice> newls = new Class.InvoiceSortDescriptions().PaymentSortDesc(this.lsOderInvoice, CurrentIndex, e.CommandName);

            //Rebind
            this.GvInvoicePopup.DataSource = newls;
            this.GvInvoicePopup.DataBind();
            MPDetail.Show();
        }