You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.9 KiB
79 lines
2.9 KiB
using Swift.web.Component.Grid;
|
|
using Swift.web.Component.Grid.gridHelper;
|
|
using Swift.web.Library;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace Swift.web.Remit.CashAndVault
|
|
{
|
|
public partial class ApproveTransferToVaultList : System.Web.UI.Page
|
|
{
|
|
protected const string GridName = "ApproveVaultTransfer";
|
|
private string ViewFunctionId = "20202100";
|
|
private const string ApproveFunctionId = "20202110";
|
|
private readonly RemittanceLibrary _sl = new RemittanceLibrary();
|
|
private readonly SwiftGrid _grid = new SwiftGrid();
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
GetStatic.PrintMessage(Page);
|
|
//Authenticate();
|
|
}
|
|
LoadGrid();
|
|
|
|
}
|
|
private void Authenticate()
|
|
{
|
|
_sl.CheckAuthentication(ViewFunctionId);
|
|
}
|
|
|
|
private void LoadGrid()
|
|
{
|
|
_grid.FilterList = new List<GridFilter>
|
|
{
|
|
|
|
};
|
|
|
|
_grid.ColumnList = new List<GridColumn>
|
|
{
|
|
new GridColumn("SN", "SN", "", "T"),
|
|
new GridColumn("userName", "User Name", "", "T"),
|
|
new GridColumn("TransferredAmount", "Transferred Amount", "", "M"),
|
|
new GridColumn("mode", "Transfer Mode", "", "T"),
|
|
new GridColumn("toAcc", "To Account", "", "T"),
|
|
new GridColumn("isApproved", "Approved Status", "", "T"),
|
|
new GridColumn("TransferredDate", "Transferred Date", "", "D"),
|
|
};
|
|
_grid.GridType = 1;
|
|
_grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB;
|
|
_grid.GridName = GridName;
|
|
_grid.ShowPagingBar = true;
|
|
_grid.AllowApprove = _sl.HasRight(ApproveFunctionId);
|
|
_grid.ApproveFunctionId = ApproveFunctionId;
|
|
_grid.AlwaysShowFilterForm = false;
|
|
_grid.ShowFilterForm = false;
|
|
_grid.RowIdField = "rowId";
|
|
_grid.ThisPage = "ApproveTransferToVaultList.aspx";
|
|
_grid.InputPerRow = 4;
|
|
_grid.GridMinWidth = 700;
|
|
_grid.GridWidth = 100;
|
|
_grid.IsGridWidthInPercent = true;
|
|
|
|
string sql = "EXEC PROC_VAULTTRANSFER @flag = 's-forAdmin', @branchId=" + _sl.FilterString(GetStatic.GetBranch());
|
|
_grid.SetComma();
|
|
|
|
rpt_grid.InnerHtml = _grid.CreateGrid(sql);
|
|
}
|
|
|
|
protected string GetUserId()
|
|
{
|
|
return GetStatic.ReadQueryString("userId", "");
|
|
}
|
|
|
|
}
|
|
}
|