bug fixed
This commit is contained in:
@@ -29,25 +29,25 @@ namespace rmutr_report.Controllers
|
|||||||
public IActionResult GetHrReport([FromRoute] string type,
|
public IActionResult GetHrReport([FromRoute] string type,
|
||||||
[FromBody] durable_articles_three durable_articles_threes)
|
[FromBody] durable_articles_three durable_articles_threes)
|
||||||
{
|
{
|
||||||
Console.WriteLine(durable_articles_threes.specification_data[0].data_detail[0].data_detail2);
|
//Console.WriteLine(durable_articles_threes.specification_data[0].data_detail[0].data_detail2);
|
||||||
var a1 = durable_articles_threes.data.Where(d => d.amount == d.amount)
|
var a1 = durable_articles_threes.data.Where(d => d.amount == d.amount)
|
||||||
.Sum(o => o.amount);
|
.Sum(o => o.amount);
|
||||||
durable_articles_threes.total_amount = a1;
|
if (a1!=null)
|
||||||
|
{
|
||||||
|
durable_articles_threes.total_amount = a1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
int a = 1;
|
int a = 1;
|
||||||
foreach (var q in durable_articles_threes.quotation)
|
foreach (var q in durable_articles_threes.quotation)
|
||||||
{
|
{
|
||||||
|
|
||||||
string t = "ใบเสนอราคาบริษัทที่ " + a++ +" ";
|
string t = "ใบเสนอราคาบริษัทที่ " + a++ +" ";
|
||||||
q.company = t + q.company;
|
q.company = t + q.company;
|
||||||
//a++;
|
//a++;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var detail in durable_articles_threes.invest_detail)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var _durable_articles_three = new List<durable_articles_three>() {durable_articles_threes};
|
var _durable_articles_three = new List<durable_articles_three>() {durable_articles_threes};
|
||||||
|
|
||||||
Report report = new Report();
|
Report report = new Report();
|
||||||
|
|||||||
Reference in New Issue
Block a user