Exemple #1
0
 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);
     }
 }
Exemple #2
0
        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);
            }
        }
Exemple #4
0
 public bool UpdateApprovalByStausInLotteryClaimEntry(ClsRequisition objRequisition, string ReqId, int ClaimType)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalByStausInLotteryClaimEntry(objRequisition, ReqId, ClaimType));
 }
Exemple #5
0
 public bool UpdateLotteryClaimEntrySendToGov(ClsRequisition objRequisition, string ReqId, out string TransactionNo)
 {
     return(objBusinessLogicDbTrx.UpdateLotteryClaimEntrySendToGov(objRequisition, ReqId, out TransactionNo));
 }
Exemple #6
0
 public bool UpdateInRequisitionDealer(ClsRequisition objRequisition, DataTable tblDirectorRequisitionDtl)
 {
     return(objBusinessLogicDbTrx.UpdateInRequisitionDealer(objRequisition, tblDirectorRequisitionDtl));
 }
Exemple #7
0
 public bool UpdateApprovalInRequisitionDealer(ClsRequisition objRequisition, string ReqId)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalInRequisitionDealer(objRequisition, ReqId));
 }
Exemple #8
0
 public bool UpdateApprovalInRequisitionUnClaimTicket(ClsRequisition objRequisition, string ReqId)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalInRequisitionUnClaimTicket(objRequisition, ReqId));
 }
Exemple #9
0
 public bool InsertInRequisitionDealer(ClsRequisition objRequisition, DataTable tblDirectorRequisitionDtl, out string TransactionNo)
 {
     return(objBusinessLogicDbTrx.InsertInRequisitionDealer(objRequisition, tblDirectorRequisitionDtl, out TransactionNo));
 }
Exemple #10
0
 public bool UpdateSendForAdjustment(ClsRequisition objRequisition, string ReqId)
 {
     return(objBusinessLogicDbTrx.UpdateSendForAdjustment(objRequisition, ReqId));
 }
Exemple #11
0
 public bool UpdateCloseTransactionInRequisition(ClsRequisition objRequisition)
 {
     return(objBusinessLogicDbTrx.UpdateCloseTransactionInRequisition(objRequisition));
 }
Exemple #12
0
 public bool UpdateInRequisition(ClsRequisition objRequisition)
 {
     return(objBusinessLogicDbTrx.UpdateInRequisition(objRequisition));
 }
Exemple #13
0
 public bool InsertInRequisition(ClsRequisition objRequisition, out string TransactionNo)
 {
     return(objBusinessLogicDbTrx.InsertInRequisition(objRequisition, out TransactionNo));
 }
Exemple #14
0
 public bool UpdateApprovalInVariableClaim(ClsRequisition objRequisition, string ReqId, DataTable IntblTicketNo)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalInVariableClaim(objRequisition, ReqId, IntblTicketNo));
 }