|
|
@ -40,6 +40,9 @@ namespace Swift.web.RemittanceSystem.RemittanceReports |
|
|
|
case "customerregistration": |
|
|
|
path = PrepareCustomerRegistrationReport(); |
|
|
|
break; |
|
|
|
//case "lowTxnReport":
|
|
|
|
// path = PrepareLowTxnReport();
|
|
|
|
// break;
|
|
|
|
} |
|
|
|
return path; |
|
|
|
|
|
|
@ -51,16 +54,34 @@ namespace Swift.web.RemittanceSystem.RemittanceReports |
|
|
|
this.fieldFormatExcel = "T|T|T|T|T|T|T|D|D|T|T|T|D|T|T|D|T|T|T|T|T|T|T"; |
|
|
|
|
|
|
|
string fromDate = GetStatic.ReadQueryString("from", ""); |
|
|
|
//string toDate = GetStatic.ReadQueryString("to", "");
|
|
|
|
//string sAgent = GetStatic.ReadQueryString("sAgent", "");
|
|
|
|
//string sBranch = GetStatic.ReadQueryString("sBranch", "");
|
|
|
|
//string withAgent = GetStatic.ReadQueryString("withAgent", "");
|
|
|
|
DataSet dataset = (new TranAgentReportDao().GetNewRegistrationReport(GetStatic.GetUser(), "txn-report", fromDate)).Result; |
|
|
|
string toDate = GetStatic.ReadQueryString("to", ""); |
|
|
|
string sAgent = GetStatic.ReadQueryString("sAgent", ""); |
|
|
|
string sBranch = GetStatic.ReadQueryString("sBranch", ""); |
|
|
|
string withAgent = GetStatic.ReadQueryString("withAgent", ""); |
|
|
|
DataSet dataset = (new TranAgentReportDao().GetNewRegistrationReport(GetStatic.GetUser(), "customer", fromDate, toDate, sAgent, sBranch, withAgent)).Result; |
|
|
|
this.TotalColumns = dataset.Tables[0].Columns.Count; |
|
|
|
this.TotalRows = dataset.Tables[0].Rows.Count; |
|
|
|
return DataSetToExcelNew(dataset, "CustomerRegistration"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//public string PrepareLowTxnReport()
|
|
|
|
//{
|
|
|
|
// this.UserDefinedHeader = false;
|
|
|
|
// this.ShowTableFilter = false;
|
|
|
|
// this.fieldFormatExcel = "T|T|T|T|T|T|T|D|D|T|T|T|D|T|T|D|T|T|T|T|T|T|T";
|
|
|
|
|
|
|
|
// string fromDate = GetStatic.ReadQueryString("from", "");
|
|
|
|
// //string toDate = GetStatic.ReadQueryString("to", "");
|
|
|
|
// //string sAgent = GetStatic.ReadQueryString("sAgent", "");
|
|
|
|
// //string sBranch = GetStatic.ReadQueryString("sBranch", "");
|
|
|
|
// //string withAgent = GetStatic.ReadQueryString("withAgent", "");
|
|
|
|
// DataSet dataset = (new TranAgentReportDao().GetLowTxnReport(GetStatic.GetUser(), "txn-report", fromDate)).Result;
|
|
|
|
// this.TotalColumns = dataset.Tables[0].Columns.Count;
|
|
|
|
// this.TotalRows = dataset.Tables[0].Rows.Count;
|
|
|
|
// return DataSetToExcelNew(dataset, "CustomerRegistration");
|
|
|
|
|
|
|
|
//}
|
|
|
|
public string PrepareCustomerAndTxnList() |
|
|
|
{ |
|
|
|
this.UserDefinedHeader = false; |
|
|
|