Exemplo n.º 1
0
        protected void btnGenReceiptAll_Click(object sender, EventArgs e)
        {
            if (lsGenRecive.Count == 0)
            {
                this.MasterSite.ModelError.ShowMessageError = SysMessage.ChooseData;
                this.MasterSite.ModelError.ShowModalError();
            }
            else
            {
                BLL.PaymentBiz             biz = new BLL.PaymentBiz();
                DTO.ResponseMessage <bool> res = biz.GenReceiptAll(lsGenRecive.ToArray());
                if (res.ResultMessage == false)
                {
                    this.MasterSite.ModelError.ShowMessageError = res.ErrorMsg;
                    this.MasterSite.ModelError.ShowModalError();
                }
                else
                {
                    this.MasterSite.ModelSuccess.ShowMessageSuccess = Resources.infoGenPayment_001;
                    this.MasterSite.ModelSuccess.ShowModalSuccess();
                    lsGenRecive.Clear();
                }

                BindDataInGridView();
                this.UpdatePanelSearch.Update();
            }
        }
Exemplo n.º 2
0
        //log4net
        protected void StatusA_Click(object sender, EventArgs e)
        {
            GridViewRow gr               = (GridViewRow)((LinkButton)sender).NamingContainer;
            Label       group_request    = (Label)gr.FindControl("lblGroupRequsetNo");
            Label       lblReceiptNo     = (Label)gr.FindControl("lblReceiptNo");
            Label       lblHEADREQUESTNO = (Label)gr.FindControl("lblHEADREQUESTNO");
            Label       lblPAYMENTNO     = (Label)gr.FindControl("lblPAYMENTNO");

            lsGenRecive.Add(new DTO.GenReceipt
            {
                RECEIPT_NO      = lblReceiptNo.Text,
                HEAD_REQUEST_NO = lblHEADREQUESTNO.Text,
                PAYMENT_NO      = lblPAYMENTNO.Text,
                RECEIPT_BY_ID   = base.UserProfile.Id,
            });
            if (lsGenRecive.Count == 0)
            {
                this.MasterSite.ModelError.ShowMessageError = SysMessage.ChooseData;
                this.MasterSite.ModelError.ShowModalError();
            }
            else
            {
                BLL.PaymentBiz             biz = new BLL.PaymentBiz();
                DTO.ResponseMessage <bool> res = biz.GenReceiptAll(lsGenRecive.ToArray());
                if (res.ResultMessage == false)
                {
                    this.MasterSite.ModelError.ShowMessageError = res.ErrorMsg;
                    this.MasterSite.ModelError.ShowModalError();
                }
                else
                {
                    this.MasterSite.ModelSuccess.ShowMessageSuccess = Resources.infoGenPayment_001;
                    this.MasterSite.ModelSuccess.ShowModalSuccess();
                }
                BindDataInGridView();
                lsGenRecive.Clear();
                this.UpdatePanelSearch.Update();
            }
        }