예제 #1
0
        protected void btnSaveRecordPerPage_Click(object sender, EventArgs e)
        {
            var biz = new BLL.DataCenterBiz();

            PrintPerPage.Add(new DTO.ConfigPrintPayment
            {
                Id         = "08",
                ITEM_VALUE = txtRecordPerBillPayment.Text,
                GROUP_CODE = this.iasgroupCodeRecordPerPage,
                USER_ID    = base.UserId
            });
            var res = biz.SaveConfigPrint(PrintPerPage);

            if (res.IsError)
            {
                UCModalError.ShowMessageError = res.ErrorMsg;
                UCModalError.ShowModalError();
                BindDataRecordPerPage();
            }
            else
            {
                UCModalSuccess.ShowMessageSuccess = "บันทึกข้อมูลสำเร็จ";
                UCModalSuccess.ShowModalSuccess();
                BindDataRecordPerPage();
                PrintPerPage.Clear();
                uplPaymentExpireDay.Update();
            }
        }
예제 #2
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            var biz = new BLL.DataCenterBiz();

            var res = biz.SaveConfigPrint(PrintPayment);

            if (res.IsError)
            {
                UCModalError.ShowMessageError = res.ErrorMsg;
                UCModalError.ShowModalError();
            }
            else
            {
                UCModalSuccess.ShowMessageSuccess = "บันทึกข้อมูลสำเร็จ";
                UCModalSuccess.ShowModalSuccess();
                BindData();
                UpdatePanelSearch.Update();
            }
        }