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