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.
 
 
 
 
 

64 lines
2.6 KiB

using System;
using System.Collections.Generic;
using Swift.web.Component.Grid;
using Swift.web.Component.Grid.gridHelper;
using Swift.web.Library;
namespace Swift.web.SwiftSystem.Notification.CommissionLogs
{
public partial class AgentVsGroup : System.Web.UI.Page
{
private readonly SwiftGrid grid = new SwiftGrid();
private readonly RemittanceLibrary _swiftLibrary = new RemittanceLibrary();
private const string ViewFunctionId = "10122500";
private const string GridName = "grdSAgentVsGroupLog";
protected void Page_Load(object sender, EventArgs e)
{
Authenticate();
LoadGrid();
}
private void LoadGrid()
{
grid.FilterList = new List<GridFilter>
{
new GridFilter("fromDate", "From Date", "z"),
new GridFilter("toDate", "To Date", "z")
};
grid.ColumnList = new List<GridColumn>
{
new GridColumn("agentName", "Agent Name", "", "T"),
new GridColumn("GroupCat", "Group", "", "T"),
new GridColumn("SubGroup", "Sub Group", "", "T"),
new GridColumn("createdBy", "Created By", "", "T"),
new GridColumn("createdDate", "Created Date", "", "T"),
new GridColumn("approvedBy", "Approved By", "", "T"),
new GridColumn("approvedDate", "Approved Date", "", "T"),
};
grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB;
grid.GridType = 1;
grid.GridName = GridName;
grid.InputLabelOnLeftSide = true;
grid.InputPerRow = 2;
grid.ShowAddButton = false;
grid.ShowFilterForm = true;
grid.ShowPagingBar = true;
grid.RowIdField = "rowId";
grid.ThisPage = "AgentVsGroup.aspx";
grid.AlwaysShowFilterForm = true;
grid.LoadGridOnFilterOnly = true;
grid.AllowEdit = false;
var sql = "exec proc_agentGroup @flag = 'agentVsGroup'";
grid.SetComma();
rpt_grid.InnerHtml = grid.CreateGrid(sql);
}
private void Authenticate()
{
_swiftLibrary.CheckAuthentication(ViewFunctionId);
}
}
}