コード例 #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);
     }
 }
コード例 #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);
            }
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateApprovalByStausInLotteryClaimEntry(ClsRequisition objRequisition, string ReqId, int ClaimType)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalByStausInLotteryClaimEntry(objRequisition, ReqId, ClaimType));
 }
コード例 #5
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateLotteryClaimEntrySendToGov(ClsRequisition objRequisition, string ReqId, out string TransactionNo)
 {
     return(objBusinessLogicDbTrx.UpdateLotteryClaimEntrySendToGov(objRequisition, ReqId, out TransactionNo));
 }
コード例 #6
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateInRequisitionDealer(ClsRequisition objRequisition, DataTable tblDirectorRequisitionDtl)
 {
     return(objBusinessLogicDbTrx.UpdateInRequisitionDealer(objRequisition, tblDirectorRequisitionDtl));
 }
コード例 #7
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateApprovalInRequisitionDealer(ClsRequisition objRequisition, string ReqId)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalInRequisitionDealer(objRequisition, ReqId));
 }
コード例 #8
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateApprovalInRequisitionUnClaimTicket(ClsRequisition objRequisition, string ReqId)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalInRequisitionUnClaimTicket(objRequisition, ReqId));
 }
コード例 #9
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool InsertInRequisitionDealer(ClsRequisition objRequisition, DataTable tblDirectorRequisitionDtl, out string TransactionNo)
 {
     return(objBusinessLogicDbTrx.InsertInRequisitionDealer(objRequisition, tblDirectorRequisitionDtl, out TransactionNo));
 }
コード例 #10
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateSendForAdjustment(ClsRequisition objRequisition, string ReqId)
 {
     return(objBusinessLogicDbTrx.UpdateSendForAdjustment(objRequisition, ReqId));
 }
コード例 #11
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateCloseTransactionInRequisition(ClsRequisition objRequisition)
 {
     return(objBusinessLogicDbTrx.UpdateCloseTransactionInRequisition(objRequisition));
 }
コード例 #12
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateInRequisition(ClsRequisition objRequisition)
 {
     return(objBusinessLogicDbTrx.UpdateInRequisition(objRequisition));
 }
コード例 #13
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool InsertInRequisition(ClsRequisition objRequisition, out string TransactionNo)
 {
     return(objBusinessLogicDbTrx.InsertInRequisition(objRequisition, out TransactionNo));
 }
コード例 #14
0
ファイル: LTMSService.svc.cs プロジェクト: joyspl/spllottery
 public bool UpdateApprovalInVariableClaim(ClsRequisition objRequisition, string ReqId, DataTable IntblTicketNo)
 {
     return(objBusinessLogicDbTrx.UpdateApprovalInVariableClaim(objRequisition, ReqId, IntblTicketNo));
 }