bug fixed
This commit is contained in:
@@ -30,22 +30,21 @@ namespace rmutr_report.Controllers
|
||||
[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);
|
||||
if (a1!=null)
|
||||
{
|
||||
durable_articles_threes.total_amount = a1;
|
||||
|
||||
}
|
||||
// var a1 = durable_articles_threes.data.Sum(o => o.amount);
|
||||
// if (durable_articles_threes.data!=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)
|
||||
// {
|
||||
//
|
||||
// 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