bug fixed
This commit is contained in:
@@ -115,6 +115,51 @@ namespace rmutr_report.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (var boqPrice in building_fours.basic_information)
|
||||||
|
{
|
||||||
|
string str = boqPrice.list;
|
||||||
|
if (str.Length == 4)
|
||||||
|
{
|
||||||
|
for (int i = 1; i <= str.Length - 1; i += 4)
|
||||||
|
{
|
||||||
|
boqPrice.list = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (str.Length == 5)
|
||||||
|
{
|
||||||
|
for (int i = 2; i <= str.Length - 1; i += 5)
|
||||||
|
{
|
||||||
|
boqPrice.list = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (str.Length == 6)
|
||||||
|
{
|
||||||
|
for (int i = 3; i <= str.Length - 1; i += 6)
|
||||||
|
{
|
||||||
|
boqPrice.list = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (str.Length == 7)
|
||||||
|
{
|
||||||
|
for (int i = 4; i <= str.Length - 1; i += 7)
|
||||||
|
{
|
||||||
|
boqPrice.list = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (str.Length == 8)
|
||||||
|
{
|
||||||
|
for (int i = 5; i <= str.Length - 1; i += 8)
|
||||||
|
{
|
||||||
|
boqPrice.list = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 3; i <= str.Length - 1; i += 8)
|
||||||
|
{
|
||||||
|
boqPrice.list = str.Insert(i, ",");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var boqPrice in building_fours.boq)
|
foreach (var boqPrice in building_fours.boq)
|
||||||
{
|
{
|
||||||
if (boqPrice.is_data == "1")
|
if (boqPrice.is_data == "1")
|
||||||
|
|||||||
Reference in New Issue
Block a user