protected void btnSave_Click(object sender, EventArgs e) { try { if (Convert.ToDouble(txtRemainingBalence.Text) != 0) { ScriptManager.RegisterStartupScript(this, GetType(), "MyMsg", "alert('Transaction can not be closed as Remaining Balence is not yet zero');", true); txtDrawDate.Focus(); return; } ClsRequisition objRequisition = new ClsRequisition(); objRequisition.UserId = ((ClsUserInfo)Session["UserInfo"]).UserId; objRequisition.IpAdd = Request.UserHostAddress; objRequisition.DataUniqueId = hdUniqueId.Value.ToString().Trim(); bool IsUpdated = objLtmsService.UpdateCloseTransactionInRequisition(objRequisition); if (IsUpdated == true) { ScriptManager.RegisterStartupScript(this, GetType(), "MyMsg", "alert('Adjustment information updated successfully.');", true); } 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. The error is as below " + Ex.Message + ""); var script = string.Format("alert({0});", message); ScriptManager.RegisterClientScriptBlock(this, GetType(), "", script, true); } }
protected void btnSave_Click(object sender, EventArgs e) { try { string ReqId = ""; ClsRequisition objRequisition = new ClsRequisition(); objRequisition.UserId = ((ClsUserInfo)Session["UserInfo"]).UserId; objRequisition.IpAdd = Request.UserHostAddress; objRequisition.DataUniqueId = hdUniqueId.Value.ToString().Trim(); foreach (GridViewRow row in GvTransaction.Rows) { CheckBox check = row.FindControl("chkSelect") as CheckBox; if (check.Checked) { ReqId = ReqId + GvTransaction.DataKeys[row.RowIndex].Value.ToString() + ","; } } ReqId = ReqId.TrimEnd(','); bool IsUpdated = objLtmsService.UpdateSendForAdjustment(objRequisition, ReqId); if (IsUpdated == true) { ScriptManager.RegisterStartupScript(this, GetType(), "MyMsg", "alert('Requisition information sent for Adjustment successfully.');", true); } 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. The error is as below " + Ex.Message + ""); var script = string.Format("alert({0});", message); ScriptManager.RegisterClientScriptBlock(this, GetType(), "", script, true); } }
protected void btnApprove_Click(object sender, EventArgs e) { try { ClsRequisition objRequisition = new ClsRequisition(); 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 = 2; } objRequisition.DataUniqueId = hdUniqueId.Value; objRequisition.UserId = ((ClsUserInfo)Session["UserInfo"]).UserId; objRequisition.IpAdd = Request.UserHostAddress; bool IsUpdated = objLtmsService.UpdateApprovalInReqDealerDeposit(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 UpdateApprovalByStausInLotteryClaimEntry(ClsRequisition objRequisition, string ReqId, int ClaimType) { return(objBusinessLogicDbTrx.UpdateApprovalByStausInLotteryClaimEntry(objRequisition, ReqId, ClaimType)); }
public bool UpdateLotteryClaimEntrySendToGov(ClsRequisition objRequisition, string ReqId, out string TransactionNo) { return(objBusinessLogicDbTrx.UpdateLotteryClaimEntrySendToGov(objRequisition, ReqId, out TransactionNo)); }
public bool UpdateInRequisitionDealer(ClsRequisition objRequisition, DataTable tblDirectorRequisitionDtl) { return(objBusinessLogicDbTrx.UpdateInRequisitionDealer(objRequisition, tblDirectorRequisitionDtl)); }
public bool UpdateApprovalInRequisitionDealer(ClsRequisition objRequisition, string ReqId) { return(objBusinessLogicDbTrx.UpdateApprovalInRequisitionDealer(objRequisition, ReqId)); }
public bool UpdateApprovalInRequisitionUnClaimTicket(ClsRequisition objRequisition, string ReqId) { return(objBusinessLogicDbTrx.UpdateApprovalInRequisitionUnClaimTicket(objRequisition, ReqId)); }
public bool InsertInRequisitionDealer(ClsRequisition objRequisition, DataTable tblDirectorRequisitionDtl, out string TransactionNo) { return(objBusinessLogicDbTrx.InsertInRequisitionDealer(objRequisition, tblDirectorRequisitionDtl, out TransactionNo)); }
public bool UpdateSendForAdjustment(ClsRequisition objRequisition, string ReqId) { return(objBusinessLogicDbTrx.UpdateSendForAdjustment(objRequisition, ReqId)); }
public bool UpdateCloseTransactionInRequisition(ClsRequisition objRequisition) { return(objBusinessLogicDbTrx.UpdateCloseTransactionInRequisition(objRequisition)); }
public bool UpdateInRequisition(ClsRequisition objRequisition) { return(objBusinessLogicDbTrx.UpdateInRequisition(objRequisition)); }
public bool InsertInRequisition(ClsRequisition objRequisition, out string TransactionNo) { return(objBusinessLogicDbTrx.InsertInRequisition(objRequisition, out TransactionNo)); }
public bool UpdateApprovalInVariableClaim(ClsRequisition objRequisition, string ReqId, DataTable IntblTicketNo) { return(objBusinessLogicDbTrx.UpdateApprovalInVariableClaim(objRequisition, ReqId, IntblTicketNo)); }