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); } }
public bool UpdateReconInDealerDeposit(ClsDealerDeposit objDealerDeposit) { return(objBusinessLogicDbTrx.UpdateReconInDealerDeposit(objDealerDeposit)); }
public bool UpdateApprovalInDealerDeposit(ClsDealerDeposit objDealerDeposit, string ReqId) { return(objBusinessLogicDbTrx.UpdateApprovalInDealerDeposit(objDealerDeposit, ReqId)); }
public bool InsertInDealerDeposit(ClsDealerDeposit objDealerDeposit) { return(objBusinessLogicDbTrx.InsertInDealerDeposit(objDealerDeposit)); }