Release - 1.0.0.9-2
Bill message api fix
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -36,7 +36,7 @@ namespace SocietyToolboxAPI.Controllers
|
|||||||
UnitNo = (dt.Rows[i]["UnitNo"].ToString()),
|
UnitNo = (dt.Rows[i]["UnitNo"].ToString()),
|
||||||
PropertyUnitType = dt.Rows[i]["PropertyUnitType"].ToString(),
|
PropertyUnitType = dt.Rows[i]["PropertyUnitType"].ToString(),
|
||||||
MemberName = (dt.Rows[i]["MemberName"].ToString()),
|
MemberName = (dt.Rows[i]["MemberName"].ToString()),
|
||||||
UnitArea= decimal.Parse(dt.Rows[i]["UnitArea"].ToString()),
|
UnitArea = decimal.Parse(dt.Rows[i]["UnitArea"].ToString()),
|
||||||
UnitOpenArea = decimal.Parse(dt.Rows[i]["UnitOpenArea"].ToString()),
|
UnitOpenArea = decimal.Parse(dt.Rows[i]["UnitOpenArea"].ToString()),
|
||||||
BuildingNo = (dt.Rows[i]["BuildingNo"].ToString()),
|
BuildingNo = (dt.Rows[i]["BuildingNo"].ToString()),
|
||||||
ParkingNo = (dt.Rows[i]["ParkingNo"].ToString()),
|
ParkingNo = (dt.Rows[i]["ParkingNo"].ToString()),
|
||||||
@@ -73,7 +73,7 @@ namespace SocietyToolboxAPI.Controllers
|
|||||||
|
|
||||||
DataTable dt = new DataTable();
|
DataTable dt = new DataTable();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
dt = DBReports.GenerateMemberMonthBillDetails(PropertyID,BillMonth);
|
dt = DBReports.GenerateMemberMonthBillDetails(PropertyID, BillMonth);
|
||||||
if (dt.Rows.Count > 0)
|
if (dt.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
for (i = 0; i <= dt.Rows.Count - 1; i++)
|
for (i = 0; i <= dt.Rows.Count - 1; i++)
|
||||||
@@ -81,14 +81,14 @@ namespace SocietyToolboxAPI.Controllers
|
|||||||
oData.Add(new MemberBillDetailsModel
|
oData.Add(new MemberBillDetailsModel
|
||||||
{
|
{
|
||||||
|
|
||||||
BillNo = (dt.Rows[i]["BILLNO"].ToString()),
|
BillNo = (dt.Rows[i]["BILLNO"].ToString()),
|
||||||
BillDate = DateTime.Parse(dt.Rows[i]["BILLDATE"].ToString()).ToString("dd-MM-yyyy"),
|
BillDate = DateTime.Parse(dt.Rows[i]["BILLDATE"].ToString()).ToString("dd-MM-yyyy"),
|
||||||
UnitNo = (dt.Rows[i]["UnitNo"].ToString()),
|
UnitNo = (dt.Rows[i]["UnitNo"].ToString()),
|
||||||
MemberName = (dt.Rows[i]["MemberName"].ToString()),
|
MemberName = (dt.Rows[i]["MemberName"].ToString()),
|
||||||
BillAmount = decimal.Parse(dt.Rows[i]["BillAmount"].ToString()),
|
BillAmount = decimal.Parse(dt.Rows[i]["BillAmount"].ToString()),
|
||||||
ChargeDetail = (dt.Rows[i]["CHARGEDETAILS"].ToString()),
|
ChargeDetail = (dt.Rows[i]["CHARGEDETAILS"].ToString()),
|
||||||
ChargeAmount = decimal.Parse(dt.Rows[i]["CHARGEAMOUNT"].ToString()),
|
ChargeAmount = decimal.Parse(dt.Rows[i]["CHARGEAMOUNT"].ToString()),
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -117,37 +117,46 @@ namespace SocietyToolboxAPI.Controllers
|
|||||||
GenerateDemandbillMessages oReponse = new GenerateDemandbillMessages();
|
GenerateDemandbillMessages oReponse = new GenerateDemandbillMessages();
|
||||||
List<DeamndBillMessagesModel> oData = new List<DeamndBillMessagesModel>();
|
List<DeamndBillMessagesModel> oData = new List<DeamndBillMessagesModel>();
|
||||||
|
|
||||||
DataTable dt = new DataTable();
|
try
|
||||||
int i = 0;
|
|
||||||
dt = DBReports.GenerateMemberMonthBillDetails(PropertyID, BillMonth);
|
|
||||||
if (dt.Rows.Count > 0)
|
|
||||||
{
|
{
|
||||||
for (i = 0; i <= dt.Rows.Count - 1; i++)
|
|
||||||
|
DataTable dt = new DataTable();
|
||||||
|
int i = 0;
|
||||||
|
dt = DBReports.GenerateDemandBillMessage(PropertyID, BillMonth);
|
||||||
|
if (dt.Rows.Count > 0)
|
||||||
{
|
{
|
||||||
oData.Add(new DeamndBillMessagesModel
|
for (i = 0; i <= dt.Rows.Count - 1; i++)
|
||||||
{
|
{
|
||||||
SNO = (dt.Rows[i]["SNO"].ToString()),
|
oData.Add(new DeamndBillMessagesModel
|
||||||
MobileNo = (dt.Rows[i]["MobileNo"].ToString()),
|
{
|
||||||
DemandBillmessage = (dt.Rows[i]["DemandBillmessage"].ToString()),
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
oReponse.Status = "200";
|
|
||||||
oReponse.Message = "Success";
|
|
||||||
oReponse.Data = oData;
|
|
||||||
}
|
}
|
||||||
else
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
oReponse.Status = "500";
|
||||||
oReponse.Status = "200";
|
oReponse.Message = ex.Message;
|
||||||
oReponse.Message = "Records 0";
|
|
||||||
oReponse.Data = oData;
|
oReponse.Data = oData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return oReponse;
|
return oReponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,7 +259,7 @@ namespace SocietyToolboxAPI.Controllers
|
|||||||
string pStrRequestURL = dt.Rows[0]["PARAMETERVALUE"].ToString();
|
string pStrRequestURL = dt.Rows[0]["PARAMETERVALUE"].ToString();
|
||||||
pStrRequestURL = pStrRequestURL + "api/Reports/GenerateReportXLS?TransactionID=" + TransactionID + "&ReportTypeID=" + ReportTypeID;
|
pStrRequestURL = pStrRequestURL + "api/Reports/GenerateReportXLS?TransactionID=" + TransactionID + "&ReportTypeID=" + ReportTypeID;
|
||||||
|
|
||||||
|
|
||||||
Task<String> oReponseString = DBClass.WebAccess.GetWebRequest(pStrRequestURL);
|
Task<String> oReponseString = DBClass.WebAccess.GetWebRequest(pStrRequestURL);
|
||||||
|
|
||||||
if (oReponseString.IsCompleted == true)
|
if (oReponseString.IsCompleted == true)
|
||||||
@@ -306,7 +315,7 @@ namespace SocietyToolboxAPI.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,23 @@ namespace SocietyToolboxAPI.DBClass
|
|||||||
|
|
||||||
return dt;
|
return dt;
|
||||||
}
|
}
|
||||||
|
public static DataTable GenerateDemandBillMessage(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_generateDemandBillMessages", parameterList, System.Data.CommandType.StoredProcedure);
|
||||||
|
|
||||||
|
|
||||||
|
return dt;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,6 +54,5 @@ namespace SocietyToolboxAPI.Models
|
|||||||
public string MobileNo { get; set; }
|
public string MobileNo { get; set; }
|
||||||
public string DemandBillmessage { get; set; }
|
public string DemandBillmessage { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user