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.
76 lines
3.5 KiB
76 lines
3.5 KiB
using Swift.DAL.OnlineAgent;
|
|
using Swift.web.Component.Grid;
|
|
using Swift.web.Component.Grid.gridHelper;
|
|
using Swift.web.Library;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Swift.web.AgentNew.TabletMenu
|
|
{
|
|
public partial class CustomerPendingList : System.Web.UI.Page
|
|
{
|
|
private readonly SwiftGrid _grid = new SwiftGrid();
|
|
private readonly RemittanceLibrary swiftLibrary = new RemittanceLibrary();
|
|
private readonly OnlineCustomerDao _cd = new OnlineCustomerDao();
|
|
private const string GridName = "grid_CustomerPendingList";
|
|
private readonly SwiftLibrary sl = new SwiftLibrary();
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
sl.CheckSession();
|
|
GetStatic.PrintMessage(this);
|
|
LoadGrid();
|
|
}
|
|
|
|
private void LoadGrid()
|
|
{
|
|
_grid.FilterList = new List<GridFilter>
|
|
{
|
|
new GridFilter("fullName", "Customer Name", "T"),
|
|
new GridFilter("fromDate", "Registered From", "d"),
|
|
new GridFilter("toDate", "Registered To", "d"),
|
|
};
|
|
|
|
_grid.ColumnList = new List<GridColumn>
|
|
{
|
|
new GridColumn("SN", "SN", "", "T"),
|
|
new GridColumn("FullName", "Customer Name", "", "T"),
|
|
new GridColumn("verifyType", "Verify Type", "", "T"),
|
|
new GridColumn("verifyValue", "Verify Value", "", "T"),
|
|
new GridColumn("country", "Customer Country", "", "T"),
|
|
new GridColumn("address", "Customer Address", "", "T"),
|
|
new GridColumn("mobile", "Customer Mobile", "", "T"),
|
|
new GridColumn("email", "Customer Email", "", "T"),
|
|
new GridColumn("createdDate","Created Date","","D"),
|
|
};
|
|
|
|
_grid.GridType = 1;
|
|
_grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB;
|
|
_grid.GridName = GridName;
|
|
_grid.ShowPagingBar = true;
|
|
_grid.ShowAddButton = false;
|
|
_grid.AllowEdit = false;
|
|
_grid.AllowDelete = false;
|
|
_grid.AlwaysShowFilterForm = true;
|
|
_grid.ShowFilterForm = true;
|
|
_grid.SortOrder = "ASC";
|
|
_grid.RowIdField = "customerId";
|
|
_grid.ThisPage = "List.aspx";
|
|
_grid.InputPerRow = 4;
|
|
_grid.GridMinWidth = 700;
|
|
_grid.GridWidth = 100;
|
|
_grid.IsGridWidthInPercent = true;
|
|
_grid.AllowCustomLink = true;
|
|
//_grid.AllowApprove = swiftLibrary.HasRight(ApproveFunctionId);
|
|
|
|
var getCustomerSignatureLink = "<span class=\"action-icon\"> <btn type=\"button\" class=\"btn btn-xs btn-success\" data-toggle=\"tooltip\" data-placement=\"top\" title = \"Print Details\"> <a href =\"javascript:void(0);\" onclick=\"RedirectToVerify('@customerId', '@membershipId', '@idField', '@verifyType')\"><i class=\"fa fa-check\" ></i></a></btn></span>";
|
|
|
|
_grid.CustomLinkText = getCustomerSignatureLink;
|
|
_grid.CustomLinkVariables = "idField,membershipId,customerId,verifyType";
|
|
string sql = "EXEC [proc_branch_tablet_menu] @flag = 'al'";
|
|
_grid.SetComma();
|
|
|
|
rpt_grid.InnerHtml = _grid.CreateGrid(sql);
|
|
}
|
|
}
|
|
}
|