Example #1
0
        protected void btnSavePopup_Click(object sender, EventArgs e)
        {
            string ref1 = string.Empty;
            var    biz  = new BLL.PaymentBiz();
            var    res  = biz.NewCreatePayment(lsOderInvoice.ToArray(), txtRemark.Text, base.UserId, base.UserProfile.CompCode, Convert.ToString(base.UserProfile.MemberType), out ref1);

            if (res.IsError)
            {
                //var errorMsg = res.ErrorMsg;

                //AlertMessage.ShowAlertMessage(string.Empty, errorMsg);

                this.MasterSite.ModelError.ShowMessageError = res.ErrorMsg;
                this.MasterSite.ModelError.ShowModalError();
                GetDataInGridView();
            }
            else
            {
                GetDataInGridView();
                this.MasterSite.ModelSuccess.ShowMessageSuccess = Resources.errorSysMessage_CreatePaymentSuccess;
                this.MasterSite.ModelSuccess.ShowModalSuccess();
                lsOderInvoice.Clear();
            }
        }