protected void RejectKeyLinkButton_Click(object sender, EventArgs e) { LinkButton lnkBtn = (LinkButton)sender; GridViewRow row = (GridViewRow)lnkBtn.NamingContainer; string Id = GridViewWithdrawRequest.Rows[row.RowIndex].Cells[0].Text.ToString(); UserAccountBLL userAccount = new UserAccountBLL(); userAccount.updateWithdrawRequest(Id, "R"); string message = " <span class='actionTopic'>" + "Transfer Reject successfully." + "</span>."; MyAlertBox( "var callbackOk = function () { window.location = \"/a/stake/stakekeymanage.aspx\"; }; WarningAlert(\"" + "Process Failed" + "\", \"" + message + "\", \"\");"); ViewButton_Click(sender, e); }
public void btnRequestSend_Click(object sender, EventArgs e) { UserAccountBLL account = new UserAccountBLL(); UserBLL userBll = new UserBLL(); account.Type = ddlType.SelectedValue; account.BankAccountNo = ddlPaymentMethod.SelectedItem.Text; account.TransferTo = txtbxTransferTo.Text.Trim(); account.SwiftCode = ddlPaymentMethod.SelectedValue; account.Pin = txtbxTransferPin.Text.Trim(); account.TransferNote = txtbxTransferNote.Text.Trim(); account.Amount = txtbxAmount.Text.Trim(); account.transfarType = ddlType.SelectedValue; string message = ""; if (account.checkUserIncomeAmounttoActin(30, (string)LumexSessionManager.Get("ActiveUserId"))) { if (userBll.varifypin((string)LumexSessionManager.Get("ActiveUserId"), account.Pin)) { if (ddlType.SelectedValue == "1") { if (Convert.ToDecimal(account.Amount) < 4000) { if (account.TransferTo != (string)LumexSessionManager.Get("ActiveUserId") && userBll.CheckDuplicateUser(account.TransferTo)) { account.Status = "A"; bool status = account.RequestToTransfer(); if (status) { account.updateUserAccountforTransfer(); account.updateWithdrawRequest(account.transfarId, "A"); message = "Payment <span class='actionTopic'>Fund Transfer</span> Successfully Done. Thanks."; MyAlertBox( "var callbackOk = function () { MyOverlayStart(); window.location = \"/a/account/withdraw.aspx\"; }; SuccessAlert(\"" + "Process Succeed" + "\", \"" + message + "\", callbackOk);"); } } else { message = "Please Give <span class='actionTopic'>Correct User Info </span> to Transfer."; MyAlertBox( "var callbackOk = function () { MyOverlayStart(); window.location = \"/a/account/withdraw.aspx\"; }; WarningAlert(\"" + "Warning!!" + "\", \"" + message + "\", \"\");"); } } else { account.Status = "P"; bool status = account.RequestToTransfer(); if (status) { account.updateUserAccountforTransfer(); message = "Payment <span class='actionTopic'>Transfer Request</span> Successfully Done. Thanks."; MyAlertBox( "var callbackOk = function () { MyOverlayStart(); window.location = \"/a/account/withdraw.aspx\"; }; SuccessAlert(\"" + "Process Succeed" + "\", \"" + message + "\", callbackOk);"); } } } else if (ddlType.SelectedValue == "0") { if (Convert.ToDecimal(account.Amount) >= 30) { account.Status = "P"; bool status = account.RequestToTransfer(); if (status) { account.updateUserAccountforTransfer(); message = "Payment <span class='actionTopic'>Transfer Request</span> Successfully Done. Thanks."; MyAlertBox( "var callbackOk = function () { MyOverlayStart(); window.location = \"/a/account/withdraw.aspx\"; }; SuccessAlert(\"" + "Process Succeed" + "\", \"" + message + "\", callbackOk);"); } } else { message = "You can not transfer less than <span class='actionTopic'>$30</span>, Thanks."; MyAlertBox("var callbackOk = function () { MyOverlayStart(); window.location = \"/moneygerate.aspx\"; }; SuccessAlert(\"" + "Warning note!!" + "\", \"" + message + "\", \"\");"); } } } else { message = "Please Enter Your Correct <span class='actionTopic'>Pin</span> to Transfer."; MyAlertBox( "var callbackOk = function () { MyOverlayStart(); window.location = \"/a/account/withdraw.aspx\"; }; WarningAlert(\"" + "Warning!!" + "\", \"" + message + "\", \"\");"); } } else { message = "You have no sufficient <span class='actionTopic'>Amount</span> to Transfer."; MyAlertBox( "var callbackOk = function () { MyOverlayStart(); window.location = \"/a/account/withdraw.aspx\"; }; WarningAlert(\"" + "Warning!!" + "\", \"" + message + "\", \"\");"); } }