Release 1.0..1.3
API Add- GetBillMessages
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -160,6 +160,58 @@ namespace SocietyToolboxAPI.Controllers
|
||||
return oReponse;
|
||||
}
|
||||
|
||||
[Route("api/[controller]/GenerateReceiptMessages")]
|
||||
[HttpGet]
|
||||
public GenerateDemandbillMessages GenerateReceiptMessages([FromQuery]int PropertyID, [FromQuery]string BillMonth)
|
||||
{
|
||||
GenerateDemandbillMessages oReponse = new GenerateDemandbillMessages();
|
||||
List<DeamndBillMessagesModel> oData = new List<DeamndBillMessagesModel>();
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
DataTable dt = new DataTable();
|
||||
int i = 0;
|
||||
dt = DBReports.GenerateReceiptMessage(PropertyID, BillMonth);
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
for (i = 0; i <= dt.Rows.Count - 1; i++)
|
||||
{
|
||||
oData.Add(new DeamndBillMessagesModel
|
||||
{
|
||||
SNO = (dt.Rows[i]["RNUM"].ToString()),
|
||||
MobileNo = (dt.Rows[i]["MobileNo"].ToString()),
|
||||
DemandBillmessage = (dt.Rows[i]["DemandBillmessage"].ToString()),
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
oReponse.Status = "200";
|
||||
oReponse.Message = "Success";
|
||||
oReponse.Data = oData;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
oReponse.Status = "200";
|
||||
oReponse.Message = "Records 0";
|
||||
oReponse.Data = oData;
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
oReponse.Status = "500";
|
||||
oReponse.Message = ex.Message;
|
||||
oReponse.Data = oData;
|
||||
}
|
||||
return oReponse;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[Route("api/[controller]/GenerateReportsPDF")]
|
||||
[HttpGet]
|
||||
public GenerateReport GenerateDemandBillReportsPDF([FromQuery]string MasterID, [FromQuery]int ReportTypeID)
|
||||
|
||||
@@ -60,6 +60,23 @@ namespace SocietyToolboxAPI.DBClass
|
||||
return dt;
|
||||
}
|
||||
|
||||
public static DataTable GenerateReceiptMessage(int pIntPropertyID, string pStrBillMonth)
|
||||
{
|
||||
|
||||
var varConnectionString = DBConnectionLayer.getConnectionString();
|
||||
DataTable dt = new DataTable();
|
||||
oLibDbCommon.ConnectionString = varConnectionString;
|
||||
List<SqlParameter> parameterList = new List<SqlParameter>();
|
||||
|
||||
parameterList.Add(oLibDbCommon.GetParameter("PropertyID", pIntPropertyID));
|
||||
parameterList.Add(oLibDbCommon.GetParameter("Month", pStrBillMonth));
|
||||
|
||||
dt = oLibDbCommon.GetDataTable("sp_generateReceiptMessages", parameterList, System.Data.CommandType.StoredProcedure);
|
||||
|
||||
|
||||
return dt;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<AssemblyVersion>1.0.1.2</AssemblyVersion>
|
||||
<Version>1.0.1.2</Version>
|
||||
<AssemblyVersion>1.0.1.3</AssemblyVersion>
|
||||
<Version>1.0.1.3</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v2.0": {
|
||||
"SocietyToolboxAPI/1.0.1.2": {
|
||||
"SocietyToolboxAPI/1.0.1.3": {
|
||||
"dependencies": {
|
||||
"LibDbCommon": "1.0.9",
|
||||
"LibSecurity": "1.0.1",
|
||||
@@ -4844,7 +4844,7 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"SocietyToolboxAPI/1.0.1.2": {
|
||||
"SocietyToolboxAPI/1.0.1.3": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -13,11 +13,11 @@ using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("SocietyToolboxAPI")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1.2")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.1.2")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1.3")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.1.3")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("SocietyToolboxAPI")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("SocietyToolboxAPI")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.1.2")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.1.3")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
cd5b199f68187a8d429b8f53d46f939268bab910
|
||||
c4eb1692d6e92d443f2c8afe4018c290e917e0e9
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": 1,
|
||||
"dgSpecHash": "FxxGFThaXe74+XXs+wcgySmU/EIC3lU4hPxUbazUbRiRI0ZZhitWsWOdiKRko/WwdYLttZaiaPL1Oye6DYNrAQ==",
|
||||
"dgSpecHash": "Z8/KMZn/971RjgQYSXf+SrDiaf4y/DoFvOJmSNH/IBSNNNCIBtX0ecSh2Wss9ZSi1a+go0ArXWCgGzkK7RdDYA==",
|
||||
"success": true
|
||||
}
|
||||
@@ -13526,7 +13526,7 @@
|
||||
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.1.2",
|
||||
"version": "1.0.1.3",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\Projects\\SocietyToolbox\\Development\\API\\SocietyToolboxAPI\\SocietyToolboxAPI\\SocietyToolboxAPI.csproj",
|
||||
"projectName": "SocietyToolboxAPI",
|
||||
|
||||
Reference in New Issue
Block a user