示例#1
0
        protected void btnApprove_Click(object sender, EventArgs e)
        {
            try
            {
                ClsDealerDeposit objRequisition = new ClsDealerDeposit();
                string           ReqId          = "";
                string           Status         = "";
                DataTable        dtInfo         = new DataTable();
                if (IsValidDepositSelection() == false)
                {
                    return;
                }
                foreach (GridViewRow row in gvClaimUploadDtl.Rows)
                {
                    CheckBox check = row.FindControl("chkSelect") as CheckBox;
                    if (check.Checked)
                    {
                        ReqId = ReqId + gvClaimUploadDtl.DataKeys[row.RowIndex].Value.ToString() + ",";
                    }
                }
                ReqId = ReqId.TrimEnd(',');

                if (((Button)sender).CommandName == "Confirm")
                {
                    Status = "Confirm";
                    objRequisition.SaveStatus = 4;
                }

                objRequisition.DataUniqueId = hdUniqueId.Value;
                objRequisition.UserId       = ((ClsUserInfo)Session["UserInfo"]).UserId;
                objRequisition.IpAdd        = Request.UserHostAddress;
                bool IsUpdated = objLtmsService.UpdateApprovalInDealerDeposit(objRequisition, ReqId);
                if (IsUpdated == true)
                {
                    ScriptManager.RegisterStartupScript(this, GetType(), "MyMsg", "alert('Selected deposit information " + Status + " successfully.');", true);
                }
                BindClaimGvData();
                //btnCancel_Click(sender, e);
            }
            catch (Exception Ex)
            {
                objValidateData.SaveSystemErrorLog(Ex, Request.UserHostAddress);
                var message = new JavaScriptSerializer().Serialize("Some Error has occurred while performing your activity. Please contact the System Administrator for further assistance.");
                var script  = string.Format("alert({0});", message);
                ScriptManager.RegisterClientScriptBlock(this, GetType(), "", script, true);
            }
        }
示例#2
0
 public bool UpdateReconInDealerDeposit(ClsDealerDeposit objDealerDeposit)
 {
     return(objBusinessLogicDbTrx.UpdateReconInDealerDeposit(objDealerDeposit));
 }
示例#3
0
 public bool UpdateApprovalInDealerDeposit(ClsDealerDeposit objDealerDeposit, string ReqId)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalInDealerDeposit(objDealerDeposit, ReqId));
 }
示例#4
0
 public bool InsertInDealerDeposit(ClsDealerDeposit objDealerDeposit)
 {
     return(objBusinessLogicDbTrx.InsertInDealerDeposit(objDealerDeposit));
 }