修正日月報問題

This commit is contained in:
b110212000 2021-08-10 16:45:54 +08:00
parent 2808c039e6
commit e81b7e2a2e

View File

@ -743,7 +743,6 @@ namespace SolarPower.Controllers
#endregion
foreach (var powerstationid in postObject.PowerStation)
{
var sheet = workbook.CreateSheet(powerstationid.Name);
Select_table select_Table = new Select_table
{
FormType = postObject.FormType,
@ -756,8 +755,16 @@ namespace SolarPower.Controllers
var getinvsql = k.Result[0] as IDictionary<string, object>;
if (getinvsql["mySelect"] == null)
{
return "";
if(postObject.PowerStation.Count > 1)
{
continue;
}
else
{
return "";
}
}
var sheet = workbook.CreateSheet(powerstationid.Name);
var Formbody = GetForm(select_Table);//取body
var Formhead = GetTableHead(select_Table);//取head
int RowPosition = 0;