1移交子表状态判断逻辑调整
This commit is contained in:
parent
8039877553
commit
d7504526a4
|
@ -19357,7 +19357,7 @@
|
|||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
|
|
@ -363,16 +363,16 @@ namespace FineUIPro.Web.Transfer
|
|||
continue;
|
||||
}
|
||||
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 2)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 2)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
list.Add(model);
|
||||
|
|
|
@ -118,15 +118,15 @@ namespace FineUIPro.Web.Transfer
|
|||
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 2)
|
||||
{
|
||||
model.FINAL_Status = "Completed";
|
||||
}
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
else if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 2)
|
||||
}
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 2)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
else if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
}
|
||||
|
|
|
@ -359,16 +359,16 @@ namespace FineUIPro.Web.Transfer
|
|||
continue;
|
||||
}
|
||||
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
list.Add(model);
|
||||
|
|
|
@ -105,14 +105,14 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
model.FINAL_Status = "Completed";
|
||||
}
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
else if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
else if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
}
|
||||
|
|
|
@ -316,7 +316,8 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
Sn = 1000;
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
Sn = snModel.SN;
|
||||
}
|
||||
for (int i = 1; i < ir; i++)
|
||||
|
@ -329,7 +330,7 @@ namespace FineUIPro.Web.Transfer
|
|||
//if (modelOnly == null)
|
||||
//{
|
||||
Model.Transfer_Instrumentation model = new Model.Transfer_Instrumentation();
|
||||
model.Descriptions= pds.Rows[i][1].ToString().Trim();
|
||||
model.Descriptions = pds.Rows[i][1].ToString().Trim();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
|
||||
|
@ -337,7 +338,7 @@ namespace FineUIPro.Web.Transfer
|
|||
model.SN = Sn;
|
||||
|
||||
model.INSTRUMENTATION = pds.Rows[i][0].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1+1].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1 + 1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2 + 1].ToString().Trim();
|
||||
model.Test_Package = pds.Rows[i][3 + 1].ToString().Trim();
|
||||
|
||||
|
@ -370,16 +371,16 @@ namespace FineUIPro.Web.Transfer
|
|||
continue;
|
||||
}
|
||||
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
list.Add(model);
|
||||
|
|
|
@ -111,14 +111,14 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
model.FINAL_Status = "Completed";
|
||||
}
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
else if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
else if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
}
|
||||
|
|
|
@ -414,16 +414,16 @@ namespace FineUIPro.Web.Transfer
|
|||
continue;
|
||||
}
|
||||
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
{
|
||||
model.FINALStatus = "Not Start";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINALStatus = "In progress";
|
||||
list.Add(model);
|
||||
|
|
|
@ -147,14 +147,14 @@ namespace FineUIPro.Web.Transfer
|
|||
model.FINALStatus = "Completed";
|
||||
|
||||
}
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
else if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
{
|
||||
model.FINALStatus = "Not Start";
|
||||
|
||||
}
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
else if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINALStatus = "In progress";
|
||||
}
|
||||
|
|
|
@ -355,16 +355,16 @@ namespace FineUIPro.Web.Transfer
|
|||
continue;
|
||||
}
|
||||
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
{
|
||||
model.MechanicalFINALStatus = "Not Start";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.MechanicalFINALStatus = "In progress";
|
||||
list.Add(model);
|
||||
|
|
|
@ -103,14 +103,14 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
model.MechanicalFINALStatus = "Completed";
|
||||
}
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
else if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
{
|
||||
model.MechanicalFINALStatus = "Not Start";
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
else if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.MechanicalFINALStatus = "In progress";
|
||||
}
|
||||
|
|
|
@ -353,16 +353,16 @@ namespace FineUIPro.Web.Transfer
|
|||
continue;
|
||||
}
|
||||
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
{
|
||||
model.MechanicalFINALStatus = "Not Start";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.MechanicalFINALStatus = "In progress";
|
||||
list.Add(model);
|
||||
|
|
|
@ -101,14 +101,14 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
model.MechanicalFINALStatus = "Completed";
|
||||
}
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
else if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 3)
|
||||
{
|
||||
model.MechanicalFINALStatus = "Not Start";
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
else if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.MechanicalFINALStatus = "In progress";
|
||||
}
|
||||
|
|
|
@ -359,16 +359,16 @@ namespace FineUIPro.Web.Transfer
|
|||
continue;
|
||||
}
|
||||
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress、空 或Not Start 是 In progress
|
||||
if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
list.Add(model);
|
||||
|
|
|
@ -103,13 +103,13 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
model.FINAL_Status = "Completed";
|
||||
}
|
||||
//如果全是NA或Not Start 就是 Not Start
|
||||
else if (listObj.Where(x => x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
//如果全是NA或Not Start、空 就是 Not Start
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "NA" || x == "Not Start").ToList().Count == 4)
|
||||
{
|
||||
model.FINAL_Status = "Not Start";
|
||||
}
|
||||
//如果其中有一项是In progress 或Not Start 是 In progress
|
||||
else if (listObj.Where(x => x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
//如果其中有一项是In progress 或Not Start、空 是 In progress
|
||||
else if (listObj.Where(x => string.IsNullOrWhiteSpace(x) || x == "In progress" || x == "Not Start").ToList().Count >= 1)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<FineUIPro DebugMode="true" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
|
||||
<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
|
||||
<!--<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
|
||||
<!--系统名称-->
|
||||
<add key="SystemName" value="智慧施工管理信息系统V1.0"/>
|
||||
|
@ -77,7 +77,7 @@
|
|||
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false"/>
|
||||
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
||||
</httpHandlers>
|
||||
<compilation debug="false" targetFramework="4.6.1"/>
|
||||
<compilation debug="true" targetFramework="4.6.1"/>
|
||||
<httpRuntime requestValidationMode="2.0" maxRequestLength="2147483647" executionTimeout="36000"/>
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="Login.aspx" name="PUBLISHERCOOKIE" protection="All" timeout="1440" path="/"/>
|
||||
|
|
Loading…
Reference in New Issue