This commit is contained in:
parent
4023edecf9
commit
98029fa93c
|
@ -0,0 +1,64 @@
|
|||
ALTER TABLE Transfer_Piping ADD PWD nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD Apunchclosed nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD NDTReport nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD TemperaryMeasurement nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD FWDfinished nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD HydrostaticTest nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD Report nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD Blowingflushing nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD Systemreinstalled nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Piping ADD BlowingReport nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
-----------------------------------------
|
||||
ALTER TABLE Transfer_StaticEquipment ADD Internalinspection nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_StaticEquipment ADD InternalsPacking nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_StaticEquipment ADD BOXupRecord nvarchar(50) NULL
|
||||
GO
|
||||
-----------------------------------------
|
||||
ALTER TABLE Transfer_RotatingEquipment ADD Alignment nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_RotatingEquipment ADD Motorsoloruntest nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_RotatingEquipment ADD Standalonetest nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
------------------------------------------------
|
||||
ALTER TABLE Transfer_Instrumentation ADD InstallationCalibration nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Instrumentation ADD PipingPressuretest nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Instrumentation ADD PipingLeak nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Instrumentation ADD PipingBlowing nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Instrumentation ADD Looptest nvarchar(50) NULL
|
||||
GO
|
|
@ -0,0 +1,41 @@
|
|||
|
||||
UPDATE SYS_MENU SET IsUsed=0 WHERE MENUID='05442049-1310-45B1-9D3D-CAAE759D8F3E';
|
||||
|
||||
ALTER TABLE Transfer_Electrical ADD Installation nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Electrical ADD Communicationtest nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Electrical ADD CableLaying nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Electrical ADD LoopTest nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
------------------------------------------------------------------------
|
||||
ALTER TABLE Transfer_Civil_Structure ADD Foundation nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Civil_Structure ADD Mainstructure nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Civil_Structure ADD Buildingdecoration nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Civil_Structure ADD Equipment nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Civil_Structure ADD Instrument nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Civil_Structure ADD Electrical nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Civil_Structure ADD FireFighting nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
ALTER TABLE Transfer_Civil_Structure ADD HVAC nvarchar(50) NULL
|
||||
GO
|
||||
|
||||
-----------------------------------------------
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -26,13 +26,19 @@
|
|||
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||
<f:ListItem Value="Not Start" Text="Not Start"/>
|
||||
<f:ListItem Value="In progress" Text="In progress"/>
|
||||
<f:ListItem Value="Completed" Text="Completed"/>
|
||||
</f:DropDownList>
|
||||
<%--<f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
Width="280px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="至">
|
||||
</f:Label>
|
||||
<f:DatePicker runat="server" ID="txtEndTime" LabelAlign="Right" Width="150px">
|
||||
</f:DatePicker>
|
||||
</f:DatePicker>--%>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
|
||||
</f:Button>
|
||||
|
@ -62,12 +68,39 @@
|
|||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
<f:GroupField HeaderText="Test Package Schedule" TextAlign="Center" MinWidth="400px">
|
||||
<f:GroupField HeaderText="Test Package Schedule" TextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField Width="200px" ColumnID="Test_Package_START" DataField="Test_Package_START" HeaderText="Test Package START" TextAlign="Center"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"/>
|
||||
<f:RenderField Width="200px" ColumnID="Test_Package_FINISH" DataField="Test_Package_FINISH" HeaderText="Test Package FINISH" TextAlign="Center"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"/>
|
||||
<f:RenderField ColumnID="Foundation" DataField="Foundation" FieldType="String" HeaderText="Foundation" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Mainstructure" DataField="Mainstructure" FieldType="String" HeaderText="Main structure<br/> acceptance" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Buildingdecoration" DataField="Buildingdecoration" FieldType="String" HeaderText="Building<br/> decoration" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Equipment" DataField="Equipment" FieldType="String" HeaderText="Equipment" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Instrument" DataField="Instrument" FieldType="String" HeaderText="Instrument" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Electrical" DataField="Electrical" FieldType="String" HeaderText="Electrical" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="FireFighting" DataField="FireFighting" FieldType="String" HeaderText="Fire<br/> Fighting" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="HVAC" DataField="HVAC" FieldType="String" HeaderText="HVAC" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
|
|
|
@ -40,22 +40,27 @@ namespace FineUIPro.Web.Transfer
|
|||
strSql += " AND Civil_Structure like @Civil_Structure";
|
||||
listStr.Add(new SqlParameter("@Civil_Structure", "%" + this.txtCivil_Structure.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Test_Package_START >= @InspectionDateA";
|
||||
listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Test_Package_START <= @InspectionDateZ";
|
||||
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND Test_Package_START >= @InspectionDateA";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND Test_Package_START <= @InspectionDateZ";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
{
|
||||
strSql += " AND SystemName like @SystemName";
|
||||
listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%"));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(ddStatus.SelectedValue))
|
||||
{
|
||||
strSql += " And FINAL_Status='" + ddStatus.SelectedValue + "' ";
|
||||
}
|
||||
|
||||
strSql += " order by Civil_Structure ";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
|
|
@ -78,31 +78,13 @@ namespace FineUIPro.Web.Transfer
|
|||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtStarTime 控件。
|
||||
/// ddStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStarTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
protected global::FineUIPro.DropDownList ddStatus;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
|
|
|
@ -130,7 +130,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL(ds.Tables[0], 7);
|
||||
AddDatasetToSQL(ds.Tables[0], 12);
|
||||
hdCheckResult.Text = "1";
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
@ -168,30 +168,12 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
string row4 = pds.Rows[i][4].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
string row4 = pds.Rows[i][0].ToString();
|
||||
if (string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row4.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
}
|
||||
string row5 = pds.Rows[i][5].ToString();
|
||||
if (!string.IsNullOrEmpty(row5))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row5.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
result += (i + 3).ToString() + "," + "Structure/Civil/Architecture" + "," + "不能为空!" + "|";
|
||||
}
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
|
@ -298,7 +280,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL2(ds.Tables[0], 7);
|
||||
AddDatasetToSQL2(ds.Tables[0], 12);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -329,57 +311,95 @@ namespace FineUIPro.Web.Transfer
|
|||
List<Model.Transfer_Civil_Structure> list = new List<Model.Transfer_Civil_Structure>();
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim()))
|
||||
//if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim()))
|
||||
//{
|
||||
// //查询第一列,没查到的情况下作导入处理
|
||||
// var modelOnly = Funs.DB.Transfer_Civil_Structure.FirstOrDefault(x => x.Civil_Structure == pds.Rows[i][0].ToString().Trim()
|
||||
//&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
// if (modelOnly == null)
|
||||
// {
|
||||
Model.Transfer_Civil_Structure model = new Model.Transfer_Civil_Structure();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.Civil_Structure = pds.Rows[i][0].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
|
||||
var obj1 = model.Foundation = pds.Rows[i][4].ToString().Trim();
|
||||
var obj2 = model.Mainstructure = pds.Rows[i][5].ToString().Trim();
|
||||
var obj3 = model.Buildingdecoration = pds.Rows[i][6].ToString().Trim();
|
||||
var obj4 = model.Equipment = pds.Rows[i][7].ToString().Trim();
|
||||
var obj5 = model.Instrument = pds.Rows[i][8].ToString().Trim();
|
||||
var obj6 = model.Electrical = pds.Rows[i][9].ToString().Trim();
|
||||
var obj7 = model.FireFighting = pds.Rows[i][10].ToString().Trim();
|
||||
var obj8 = model.HVAC = pds.Rows[i][11].ToString().Trim();
|
||||
#region 判断状态
|
||||
var listObj = new List<string>();
|
||||
listObj.Add(obj1);
|
||||
listObj.Add(obj2);
|
||||
listObj.Add(obj3);
|
||||
listObj.Add(obj4);
|
||||
listObj.Add(obj5);
|
||||
listObj.Add(obj6);
|
||||
listObj.Add(obj7);
|
||||
listObj.Add(obj8);
|
||||
//全是NA或Completed 状态是Completed
|
||||
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 8)
|
||||
{
|
||||
//查询第一列,没查到的情况下作导入处理
|
||||
var modelOnly = Funs.DB.Transfer_Civil_Structure.FirstOrDefault(x => x.Civil_Structure == pds.Rows[i][0].ToString().Trim()
|
||||
&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
if (modelOnly == null)
|
||||
{
|
||||
Model.Transfer_Civil_Structure model = new Model.Transfer_Civil_Structure();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.Civil_Structure = pds.Rows[i][0].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
model.Test_Package_START = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
model.Test_Package_FINISH = t2;
|
||||
|
||||
model.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
if (model.FINAL_Status.ToLower() == "finished")
|
||||
{
|
||||
model.CompleteTime = DateTime.Now;
|
||||
}
|
||||
list.Add(model);
|
||||
}
|
||||
else
|
||||
{
|
||||
//修改
|
||||
modelOnly.Civil_Structure = pds.Rows[i][0].ToString().Trim();
|
||||
modelOnly.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
modelOnly.Test_Package_START = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
modelOnly.Test_Package_FINISH = t2;
|
||||
|
||||
//更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
if (modelOnly.FINAL_Status.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim()== "finished")
|
||||
{
|
||||
modelOnly.CompleteTime = DateTime.Now;
|
||||
}
|
||||
modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
model.FINAL_Status = "Completed";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//如果全是Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "Not Start").ToList().Count == 8)
|
||||
{
|
||||
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)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
model.FINAL_Status = "Not Start";
|
||||
list.Add(model);
|
||||
|
||||
#endregion
|
||||
|
||||
list.Add(model);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// //修改
|
||||
// modelOnly.Civil_Structure = pds.Rows[i][0].ToString().Trim();
|
||||
// modelOnly.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
// modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
// modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
// DateTime t1, t2;
|
||||
// if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
// modelOnly.Test_Package_START = t1;
|
||||
// if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
// modelOnly.Test_Package_FINISH = t2;
|
||||
|
||||
// //更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
// if (modelOnly.FINAL_Status.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim()== "finished")
|
||||
// {
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
// }
|
||||
// modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
|
||||
|
||||
// Funs.DB.SubmitChanges();
|
||||
// }
|
||||
//}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
|
|
|
@ -22,17 +22,24 @@
|
|||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
|
||||
<f:TextBox runat="server" ID="txtELECTRICAL" Label="ELECTRICAL" LabelWidth="150px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtELECTRICAL" Label="Tag. No" LabelWidth="110px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="System" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||
<f:ListItem Value="Not Start" Text="Not Start"/>
|
||||
<f:ListItem Value="In progress" Text="In progress"/>
|
||||
<f:ListItem Value="Completed" Text="Completed"/>
|
||||
</f:DropDownList>
|
||||
|
||||
<%-- <f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
Width="280px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="至">
|
||||
</f:Label>
|
||||
<f:DatePicker runat="server" ID="txtEndTime" LabelAlign="Right" Width="150px">
|
||||
</f:DatePicker>
|
||||
</f:DatePicker>--%>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
|
||||
</f:Button>
|
||||
|
@ -50,24 +57,35 @@
|
|||
|
||||
<f:GroupField HeaderText="ELECTRICAL" TextAlign="Center" MinWidth="200px">
|
||||
<Columns>
|
||||
<f:BoundField Width="200px" TextAlign="Center" ColumnID="ELECTRICAL" DataField="ELECTRICAL" HeaderText="ELECTRICAL" />
|
||||
<f:BoundField Width="200px" TextAlign="Center" ColumnID="ELECTRICAL" DataField="ELECTRICAL" HeaderText="Tag. No" />
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||
<Columns>
|
||||
<f:BoundField Width="150px" ColumnID="SystemName" DataField="SystemName" HeaderText="SYSTEM" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="SystemName" DataField="SystemName" HeaderText="System" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Sub-System" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Turn over Package" TextAlign="Center"/>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
<f:GroupField HeaderText="Test Package Schedule" TextAlign="Center" MinWidth="400px">
|
||||
<Columns>
|
||||
<f:RenderField Width="200px" ColumnID="Test_Package_START" DataField="Test_Package_START" HeaderText="Test Package START" TextAlign="Center"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"/>
|
||||
<f:RenderField Width="200px" ColumnID="Test_Package_FINISH" DataField="Test_Package_FINISH" HeaderText="Test Package FINISH" TextAlign="Center"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"/>
|
||||
<f:RenderField ColumnID="Installation" DataField="Installation" FieldType="String" HeaderText="Installation<br/> &Inspection Reocrd" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Communicationtest" DataField="Communicationtest" FieldType="String" HeaderText="Communication<br/> test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="CableLaying" DataField="CableLaying" FieldType="String" HeaderText="Cable Laying and<br/> Insulation Test<br/> Record" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="LoopTest" DataField="LoopTest" FieldType="String" HeaderText="Loop Test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
|
|
|
@ -40,16 +40,7 @@ namespace FineUIPro.Web.Transfer
|
|||
strSql += " AND ELECTRICAL like @ELECTRICAL";
|
||||
listStr.Add(new SqlParameter("@ELECTRICAL", "%" + this.txtELECTRICAL.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Test_Package_START >= @InspectionDateA";
|
||||
listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Test_Package_START <= @InspectionDateZ";
|
||||
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
}
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
{
|
||||
|
@ -57,6 +48,11 @@ namespace FineUIPro.Web.Transfer
|
|||
listStr.Add(new SqlParameter("@SystemName", "%" + this.txtSystem.Text.Trim() + "%"));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(ddStatus.SelectedValue))
|
||||
{
|
||||
strSql += " And FINAL_Status='" + ddStatus.SelectedValue + "' ";
|
||||
}
|
||||
|
||||
strSql += " order by ELECTRICAL ";
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
|
|
|
@ -78,31 +78,13 @@ namespace FineUIPro.Web.Transfer
|
|||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtStarTime 控件。
|
||||
/// ddStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStarTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
protected global::FineUIPro.DropDownList ddStatus;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
|
|
|
@ -129,7 +129,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL(ds.Tables[0], 7);
|
||||
AddDatasetToSQL(ds.Tables[0], 8);
|
||||
hdCheckResult.Text = "1";
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
@ -156,9 +156,9 @@ namespace FineUIPro.Web.Transfer
|
|||
string result = string.Empty;
|
||||
int ic, ir;
|
||||
ic = pds.Columns.Count;
|
||||
if (ic < Cols)
|
||||
if (ic != Cols)
|
||||
{
|
||||
ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
ShowNotify("导入Excel格式错误!Excel必须是" + Cols.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -167,30 +167,12 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
string row4 = pds.Rows[i][4].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
string row4 = pds.Rows[i][0].ToString();
|
||||
if (string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row4.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
}
|
||||
string row5 = pds.Rows[i][5].ToString();
|
||||
if (!string.IsNullOrEmpty(row5))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row5.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
result += (i + 2).ToString() + "," + "Tag. No" + "," + "不能为空!" + "|";
|
||||
}
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
|
@ -297,7 +279,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL2(ds.Tables[0], 7);
|
||||
AddDatasetToSQL2(ds.Tables[0], 9);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -328,60 +310,90 @@ namespace FineUIPro.Web.Transfer
|
|||
List<Model.Transfer_Electrical> list = new List<Model.Transfer_Electrical>();
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim()))
|
||||
//if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim()))
|
||||
//{
|
||||
// //查询第一列,没查到的情况下作导入处理
|
||||
// var modelOnly = Funs.DB.Transfer_Electrical.FirstOrDefault(x => x.ELECTRICAL == pds.Rows[i][0].ToString().Trim()
|
||||
//&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
// if (modelOnly == null)
|
||||
// {
|
||||
Model.Transfer_Electrical model = new Model.Transfer_Electrical();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.ELECTRICAL = pds.Rows[i][0].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
|
||||
var obj1 = model.Installation = pds.Rows[i][4].ToString().Trim();
|
||||
var obj2 = model.Communicationtest = pds.Rows[i][5].ToString().Trim();
|
||||
var obj3 = model.CableLaying = pds.Rows[i][6].ToString().Trim();
|
||||
var obj4 = model.LoopTest = pds.Rows[i][7].ToString().Trim();
|
||||
#region 判断状态
|
||||
var listObj = new List<string>();
|
||||
listObj.Add(obj1);
|
||||
listObj.Add(obj2);
|
||||
listObj.Add(obj3);
|
||||
listObj.Add(obj4);
|
||||
//全是NA或Completed 状态是Completed
|
||||
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 4)
|
||||
{
|
||||
//查询第一列,没查到的情况下作导入处理
|
||||
var modelOnly = Funs.DB.Transfer_Electrical.FirstOrDefault(x => x.ELECTRICAL == pds.Rows[i][0].ToString().Trim()
|
||||
&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
if (modelOnly == null)
|
||||
{
|
||||
Model.Transfer_Electrical model = new Model.Transfer_Electrical();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.ELECTRICAL = pds.Rows[i][0].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
model.Test_Package_START = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
model.Test_Package_FINISH = t2;
|
||||
|
||||
model.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
if (model.FINAL_Status.ToLower() == "finished")
|
||||
{
|
||||
model.CompleteTime = DateTime.Now;
|
||||
}
|
||||
|
||||
list.Add(model);
|
||||
}
|
||||
else
|
||||
{
|
||||
//修改
|
||||
modelOnly.ELECTRICAL = pds.Rows[i][0].ToString().Trim();
|
||||
modelOnly.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
modelOnly.Test_Package_START = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
modelOnly.Test_Package_FINISH = t2;
|
||||
|
||||
//更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
if (modelOnly.FINAL_Status.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
{
|
||||
modelOnly.CompleteTime = DateTime.Now;
|
||||
}
|
||||
modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
//if (modelOnly.FINAL_Status.ToLower() == "finished")
|
||||
//{
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
//}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
model.FINAL_Status = "Completed";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//如果全是Not Start 就是 Not Start
|
||||
if (listObj.Where(x => 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)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
model.FINAL_Status = "Not Start";
|
||||
list.Add(model);
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
list.Add(model);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// //修改
|
||||
// modelOnly.ELECTRICAL = pds.Rows[i][0].ToString().Trim();
|
||||
// modelOnly.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
// modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
// modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
// DateTime t1, t2;
|
||||
// if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
// modelOnly.Test_Package_START = t1;
|
||||
// if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
// modelOnly.Test_Package_FINISH = t2;
|
||||
|
||||
// //更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
// if (modelOnly.FINAL_Status.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
// {
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
// }
|
||||
// modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
// //if (modelOnly.FINAL_Status.ToLower() == "finished")
|
||||
// //{
|
||||
// // modelOnly.CompleteTime = DateTime.Now;
|
||||
// //}
|
||||
// Funs.DB.SubmitChanges();
|
||||
// }
|
||||
//}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
|
|
|
@ -22,17 +22,24 @@
|
|||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
|
||||
<f:TextBox runat="server" ID="txtINSTRUMENTATION" Label="INSTRUMENTATION" LabelWidth="150px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtINSTRUMENTATION" Label="Tag No" LabelWidth="120px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="System" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||
<f:ListItem Value="Not Start" Text="Not Start"/>
|
||||
<f:ListItem Value="In progress" Text="In progress"/>
|
||||
<f:ListItem Value="Completed" Text="Completed"/>
|
||||
</f:DropDownList>
|
||||
|
||||
<%-- <f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
Width="280px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="至">
|
||||
</f:Label>
|
||||
<f:DatePicker runat="server" ID="txtEndTime" LabelAlign="Right" Width="150px">
|
||||
</f:DatePicker>
|
||||
</f:DatePicker>--%>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
|
||||
</f:Button>
|
||||
|
@ -50,28 +57,43 @@
|
|||
|
||||
<f:GroupField HeaderText="INSTRUMENTATION" TextAlign="Center" MinWidth="200px">
|
||||
<Columns>
|
||||
<f:BoundField Width="200px" TextAlign="Center" ColumnID="INSTRUMENTATION" DataField="INSTRUMENTATION" HeaderText="INSTRUMENTATION" />
|
||||
<f:BoundField Width="200px" TextAlign="Center" ColumnID="INSTRUMENTATION" DataField="INSTRUMENTATION" HeaderText="Tag No" />
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||
<Columns>
|
||||
<f:BoundField Width="150px" ColumnID="SystemName" DataField="SystemName" HeaderText="SYSTEM" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="SystemName" DataField="SystemName" HeaderText="System" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Sub-System" TextAlign="Center"/>
|
||||
<f:BoundField Width="150px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Turn over Package" TextAlign="Center"/>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
<f:GroupField HeaderText="Test Package Schedule" TextAlign="Center" MinWidth="400px">
|
||||
<Columns>
|
||||
<f:RenderField Width="200px" ColumnID="Test_Package_START" DataField="Test_Package_START" HeaderText="Test Package START" TextAlign="Center"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"/>
|
||||
<f:RenderField Width="200px" ColumnID="Test_Package_FINISH" DataField="Test_Package_FINISH" HeaderText="Test Package FINISH" TextAlign="Center"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"/>
|
||||
<f:RenderField ColumnID="InstallationCalibration" DataField="InstallationCalibration" FieldType="String" HeaderText="Installation<br/> &Calibration " TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="PipingPressuretest" DataField="PipingPressuretest" FieldType="String" HeaderText="Piping Pressure test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="PipingLeak" DataField="PipingLeak" FieldType="String" HeaderText="Piping Leak/<br/>Vacuum Test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="PipingBlowing" DataField="PipingBlowing" FieldType="String" HeaderText="Piping Blowing" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Looptest" DataField="Looptest" FieldType="String" HeaderText="Loop test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
<f:BoundField MinWidth="200px" ColumnID="FINAL_Status" DataField="FINAL_Status" HeaderText="FINAL Status" TextAlign="Center"/>
|
||||
<f:BoundField MinWidth="200px" ColumnID="FINAL_Status" DataField="FINAL_Status" HeaderText="Mechanical FINAL Status" TextAlign="Center"/>
|
||||
|
||||
</Columns>
|
||||
<Listeners>
|
||||
|
|
|
@ -40,17 +40,23 @@ namespace FineUIPro.Web.Transfer
|
|||
strSql += " AND INSTRUMENTATION like @INSTRUMENTATION";
|
||||
listStr.Add(new SqlParameter("@INSTRUMENTATION", "%" + this.txtINSTRUMENTATION.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
|
||||
if (!string.IsNullOrEmpty(ddStatus.SelectedValue))
|
||||
{
|
||||
strSql += " AND Test_Package_START >= @InspectionDateA";
|
||||
listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND Test_Package_START <= @InspectionDateZ";
|
||||
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
strSql += " And FINAL_Status='" + ddStatus.SelectedValue + "' ";
|
||||
}
|
||||
|
||||
//if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND Test_Package_START >= @InspectionDateA";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND Test_Package_START <= @InspectionDateZ";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
//}
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
{
|
||||
strSql += " AND SystemName like @SystemName";
|
||||
|
|
|
@ -78,31 +78,13 @@ namespace FineUIPro.Web.Transfer
|
|||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtStarTime 控件。
|
||||
/// ddStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStarTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
protected global::FineUIPro.DropDownList ddStatus;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
|
|
|
@ -130,7 +130,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL(ds.Tables[0], 7);
|
||||
AddDatasetToSQL(ds.Tables[0], 9);
|
||||
hdCheckResult.Text = "1";
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
@ -157,9 +157,9 @@ namespace FineUIPro.Web.Transfer
|
|||
string result = string.Empty;
|
||||
int ic, ir;
|
||||
ic = pds.Columns.Count;
|
||||
if (ic < Cols)
|
||||
if (ic != Cols)
|
||||
{
|
||||
ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
ShowNotify("导入Excel格式错误!Excel必须是" + Cols.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -169,29 +169,11 @@ namespace FineUIPro.Web.Transfer
|
|||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
string row4 = pds.Rows[i][4].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
if (string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row4.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
}
|
||||
string row5 = pds.Rows[i][5].ToString();
|
||||
if (!string.IsNullOrEmpty(row5))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row5.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
result += (i + 2).ToString() + "," + "Tag No" + "," + "不能为空!" + "|";
|
||||
}
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
|
@ -298,7 +280,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL2(ds.Tables[0], 7);
|
||||
AddDatasetToSQL2(ds.Tables[0], 9);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -318,9 +300,9 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
int ic, ir;
|
||||
ic = pds.Columns.Count;
|
||||
if (ic < Cols)
|
||||
if (ic != Cols)
|
||||
{
|
||||
ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
ShowNotify("导入Excel格式错误!Excel只能有" + Cols.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
}
|
||||
string result = string.Empty;
|
||||
ir = pds.Rows.Count;
|
||||
|
@ -331,58 +313,90 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
if (!string.IsNullOrEmpty(pds.Rows[i][0].ToString().Trim()))
|
||||
{
|
||||
//查询第一列,没查到的情况下作导入处理
|
||||
var modelOnly = Funs.DB.Transfer_Instrumentation.FirstOrDefault(x => x.INSTRUMENTATION == pds.Rows[i][0].ToString().Trim()
|
||||
&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
if (modelOnly == null)
|
||||
////查询第一列,没查到的情况下作导入处理
|
||||
//var modelOnly = Funs.DB.Transfer_Instrumentation.FirstOrDefault(x => x.INSTRUMENTATION == pds.Rows[i][0].ToString().Trim()
|
||||
//&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
//if (modelOnly == null)
|
||||
//{
|
||||
Model.Transfer_Instrumentation model = new Model.Transfer_Instrumentation();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.INSTRUMENTATION = pds.Rows[i][0].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
|
||||
var obj1 = model.InstallationCalibration = pds.Rows[i][4].ToString().Trim();
|
||||
var obj2 = model.PipingPressuretest = pds.Rows[i][5].ToString().Trim();
|
||||
var obj3 = model.PipingLeak = pds.Rows[i][6].ToString().Trim();
|
||||
var obj4 = model.PipingBlowing = pds.Rows[i][7].ToString().Trim();
|
||||
var obj5 = model.Looptest = pds.Rows[i][8].ToString().Trim();
|
||||
#region 判断状态
|
||||
var listObj = new List<string>();
|
||||
listObj.Add(obj1);
|
||||
listObj.Add(obj2);
|
||||
listObj.Add(obj3);
|
||||
listObj.Add(obj4);
|
||||
listObj.Add(obj5);
|
||||
//全是NA或Completed 状态是Completed
|
||||
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 5)
|
||||
{
|
||||
Model.Transfer_Instrumentation model = new Model.Transfer_Instrumentation();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.INSTRUMENTATION = pds.Rows[i][0].ToString().Trim();
|
||||
model.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
model.Test_Package_START = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
model.Test_Package_FINISH = t2;
|
||||
|
||||
model.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
if (model.FINAL_Status.ToLower() == "finished")
|
||||
{
|
||||
model.CompleteTime = DateTime.Now;
|
||||
}
|
||||
|
||||
model.FINAL_Status = "Completed";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
//修改
|
||||
modelOnly.INSTRUMENTATION = pds.Rows[i][0].ToString().Trim();
|
||||
modelOnly.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
modelOnly.Test_Package_START = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
modelOnly.Test_Package_FINISH = t2;
|
||||
|
||||
//更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
if (modelOnly.FINAL_Status.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
{
|
||||
modelOnly.CompleteTime = DateTime.Now;
|
||||
}
|
||||
modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
//if (modelOnly.FINAL_Status.ToLower() == "finished")
|
||||
//{
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
//}
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
//如果全是Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "Not Start").ToList().Count == 5)
|
||||
{
|
||||
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)
|
||||
{
|
||||
model.FINAL_Status = "In progress";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
model.FINAL_Status = "Not Start";
|
||||
list.Add(model);
|
||||
|
||||
#endregion
|
||||
|
||||
list.Add(model);
|
||||
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// //修改
|
||||
// modelOnly.INSTRUMENTATION = pds.Rows[i][0].ToString().Trim();
|
||||
// modelOnly.SystemName = pds.Rows[i][1].ToString().Trim();
|
||||
// modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
// modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim();
|
||||
// DateTime t1, t2;
|
||||
// if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
// modelOnly.Test_Package_START = t1;
|
||||
// if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
// modelOnly.Test_Package_FINISH = t2;
|
||||
|
||||
// //更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
// if (modelOnly.FINAL_Status.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
// {
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
// }
|
||||
// modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim();
|
||||
// //if (modelOnly.FINAL_Status.ToLower() == "finished")
|
||||
// //{
|
||||
// // modelOnly.CompleteTime = DateTime.Now;
|
||||
// //}
|
||||
// Funs.DB.SubmitChanges();
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -22,17 +22,17 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtPIPINGLINENUMBER" Label="PIPINGLINENUMBER" LabelWidth="180px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtPIPINGLINENUMBER" Label="Test Package No" LabelWidth="180px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM NO" LabelWidth="120px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||
<f:ListItem Value="Not Start" Text="Not Start"/>
|
||||
<f:ListItem Value="In progress" Text="In progress"/>
|
||||
<f:ListItem Value="Completed" Text="Completed"/>
|
||||
</f:DropDownList>
|
||||
|
||||
<f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
Width="280px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="至">
|
||||
</f:Label>
|
||||
<f:DatePicker runat="server" ID="txtEndTime" LabelAlign="Right" Width="150px">
|
||||
</f:DatePicker>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
|
||||
</f:Button>
|
||||
|
@ -43,59 +43,83 @@
|
|||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:GroupField ID="g1" HeaderText="PIPING" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="PIPINGLINENUMBER" DataField="PIPINGLINENUMBER" FieldType="String" HeaderText="PIPING/LINE NUMBER" TextAlign="Center"
|
||||
<f:RenderField ColumnID="PIPINGLINENUMBER" DataField="PIPINGLINENUMBER" FieldType="String" HeaderText="Test Package No" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="170px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g2" HeaderText="SYSTEM AND TEST PACKAGE SELECTION" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="SYSTEM" TextAlign="Center"
|
||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="SYSTEM No" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Subsystem" TextAlign="Center"
|
||||
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Sub-System" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="TestPackage" DataField="TestPackage" FieldType="String" HeaderText="Test Package" TextAlign="Center"
|
||||
<f:RenderField ColumnID="TestPackage" DataField="TestPackage" FieldType="String" HeaderText="Turn over Package" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g3" HeaderText="Test Package Schedule" HeaderTextAlign="Center">
|
||||
|
||||
<f:GroupField ID="g3" HeaderText="Ready for Test " HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="TestPackageSTART" DataField="TestPackageSTART" FieldType="Date" Renderer="Date" HeaderText="Test Package<br/>START" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="130px">
|
||||
<f:RenderField ColumnID="PWD" DataField="PWD" FieldType="String" HeaderText="PWD" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="TestPackageFINISH" DataField="TestPackageFINISH" FieldType="Date" Renderer="Date" HeaderText="Test Package<br/>FINISH" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="130px">
|
||||
|
||||
<f:RenderField ColumnID="Apunchclosed" DataField="Apunchclosed" FieldType="String" HeaderText="A punch closed" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="NDTReport" DataField="NDTReport" FieldType="String" HeaderText="NDT Report" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="TemperaryMeasurement" DataField="TemperaryMeasurement" FieldType="String" HeaderText="Temperary<br/> Measurement" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="FWDfinished" DataField="FWDfinished" FieldType="String" HeaderText="FWD finished" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g4" HeaderText="PRE-TEST/CHECK" HeaderTextAlign="Center">
|
||||
|
||||
<f:GroupField ID="g4" HeaderText="Hydrostatic test schedule" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="PreTestFINISHED" DataField="PreTestFINISHED" FieldType="String" HeaderText="Ready for test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="170px">
|
||||
<f:RenderField ColumnID="HydrostaticTest" DataField="HydrostaticTest" FieldType="String" HeaderText="Hydrostatic Test<br/>(Golden joint) " TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="FINALStatus" DataField="FINALStatus" FieldType="String" HeaderText="FINAL Status" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="130px">
|
||||
|
||||
<f:RenderField ColumnID="Report" DataField="Report" FieldType="String" HeaderText="Report" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g5" HeaderText="WITNESS TEST/CHECK<br/>BY OWNER" HeaderTextAlign="Center">
|
||||
|
||||
<f:GroupField ID="g5" HeaderText="Pre-Commissioning" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="FinalTestFINISHED" DataField="FinalTestFINISHED" FieldType="String" HeaderText="Final Test FINISHED?" ExpandUnusedSpace="true" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
<f:RenderField ColumnID="Blowingflushing" DataField="Blowingflushing" FieldType="String" HeaderText="Blowing /flushing &<br/> Dry out" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Systemreinstalled" DataField="Systemreinstalled" FieldType="String" HeaderText="System reinstalled" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="150px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="BlowingReport" DataField="BlowingReport" FieldType="String" HeaderText="Blowing & flushing<br/> Report" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="150px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
||||
<f:RenderField ColumnID="FINALStatus" DataField="FINALStatus" FieldType="String" HeaderText="Final Status" TextAlign="Center"
|
||||
HeaderTextAlign="Center" MinWidth="120px">
|
||||
</f:RenderField>
|
||||
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
|
|
|
@ -39,15 +39,19 @@ namespace FineUIPro.Web.Transfer
|
|||
strSql += " AND PIPINGLINENUMBER like @PIPINGLINENUMBER";
|
||||
listStr.Add(new SqlParameter("@PIPINGLINENUMBER", "%" + this.txtPIPINGLINENUMBER.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
//if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND TestPackageSTART >= @InspectionDateA";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND TestPackageSTART <= @InspectionDateZ";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(ddStatus.SelectedValue))
|
||||
{
|
||||
strSql += " AND TestPackageSTART >= @InspectionDateA";
|
||||
listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND TestPackageSTART <= @InspectionDateZ";
|
||||
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
strSql += " And FINALStatus='" + ddStatus.SelectedValue + "' ";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
{
|
||||
|
|
|
@ -78,31 +78,13 @@ namespace FineUIPro.Web.Transfer
|
|||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtStarTime 控件。
|
||||
/// ddStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStarTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
protected global::FineUIPro.DropDownList ddStatus;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
|
@ -122,15 +104,6 @@ namespace FineUIPro.Web.Transfer
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// g1 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -126,7 +126,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL(ds.Tables[0], 9);
|
||||
AddDatasetToSQL(ds.Tables[0], 13);
|
||||
hdCheckResult.Text = "1";
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
@ -164,30 +164,12 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
string row4 = pds.Rows[i][4].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
string row4 = pds.Rows[i][0].ToString();
|
||||
if (string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row4.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
}
|
||||
string row5 = pds.Rows[i][5].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row5.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
result += (i + 3).ToString() + "," + "Test Package No" + "," + "不能为空!" + "|";
|
||||
}
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
|
@ -294,7 +276,7 @@ namespace FineUIPro.Web.Transfer
|
|||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL2(ds.Tables[0], 9);
|
||||
AddDatasetToSQL2(ds.Tables[0], 13);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -325,61 +307,102 @@ namespace FineUIPro.Web.Transfer
|
|||
List<Model.Transfer_Piping> list = new List<Model.Transfer_Piping>();
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
//查询第一列,没查到的情况下作导入处理
|
||||
var modelOnly = Funs.DB.Transfer_Piping.FirstOrDefault(x => x.PIPINGLINENUMBER == pds.Rows[i][0].ToString().Trim()
|
||||
&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
if (modelOnly == null)
|
||||
////查询第一列,没查到的情况下作导入处理
|
||||
//var modelOnly = Funs.DB.Transfer_Piping.FirstOrDefault(x => x.PIPINGLINENUMBER == pds.Rows[i][0].ToString().Trim()
|
||||
//&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
//if (modelOnly == null)
|
||||
//{
|
||||
Model.Transfer_Piping model = new Model.Transfer_Piping();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.PIPINGLINENUMBER = pds.Rows[i][0].ToString().Trim();
|
||||
model.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
|
||||
var obj1 = model.PWD= pds.Rows[i][4].ToString().Trim();
|
||||
var obj2 =model.Apunchclosed = pds.Rows[i][5].ToString().Trim();
|
||||
var obj3 =model.NDTReport = pds.Rows[i][6].ToString().Trim();
|
||||
var obj4 =model.TemperaryMeasurement = pds.Rows[i][7].ToString().Trim();
|
||||
var obj5 =model.FWDfinished = pds.Rows[i][8].ToString().Trim();
|
||||
var obj6 =model.HydrostaticTest = pds.Rows[i][9].ToString().Trim();
|
||||
var obj7 =model.Report = pds.Rows[i][10].ToString().Trim();
|
||||
var obj8 =model.Blowingflushing = pds.Rows[i][11].ToString().Trim();
|
||||
var obj9 = model.Systemreinstalled = pds.Rows[i][12].ToString().Trim();
|
||||
|
||||
model.BlowingReport= pds.Rows[i][13].ToString().Trim();
|
||||
|
||||
#region 判断状态
|
||||
var listObj = new List<string>();
|
||||
listObj.Add(obj1);
|
||||
listObj.Add(obj2);
|
||||
listObj.Add(obj3);
|
||||
listObj.Add(obj4);
|
||||
listObj.Add(obj5);
|
||||
listObj.Add(obj6);
|
||||
listObj.Add(obj7);
|
||||
listObj.Add(obj8);
|
||||
listObj.Add(obj9);
|
||||
//全是NA或Completed 状态是Completed
|
||||
if (listObj.Where(x=>x=="NA" || x== "Completed").ToList().Count==9)
|
||||
{
|
||||
Model.Transfer_Piping model = new Model.Transfer_Piping();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.PIPINGLINENUMBER = pds.Rows[i][0].ToString().Trim();
|
||||
model.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
model.TestPackageSTART = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
model.TestPackageFINISH = t2;
|
||||
|
||||
model.FINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
if (model.FINALStatus.ToLower()== "finished")
|
||||
{
|
||||
model.CompleteTime = DateTime.Now;
|
||||
}
|
||||
|
||||
model.PreTestFINISHED = pds.Rows[i][7].ToString().Trim();
|
||||
model.FinalTestFINISHED = pds.Rows[i][8].ToString().Trim();
|
||||
model.FINALStatus = "Completed";
|
||||
list.Add(model);
|
||||
continue ;
|
||||
}
|
||||
else
|
||||
{
|
||||
//修改
|
||||
modelOnly.PIPINGLINENUMBER = pds.Rows[i][0].ToString().Trim();
|
||||
modelOnly.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
modelOnly.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
modelOnly.TestPackageSTART = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
modelOnly.TestPackageFINISH = t2;
|
||||
|
||||
|
||||
//更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
if (modelOnly.FINALStatus.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
{
|
||||
modelOnly.CompleteTime = DateTime.Now;
|
||||
}
|
||||
modelOnly.FINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
//if (modelOnly.FINALStatus.ToLower() == "finished")
|
||||
//{
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
//}
|
||||
modelOnly.PreTestFINISHED = pds.Rows[i][7].ToString().Trim();
|
||||
modelOnly.FinalTestFINISHED = pds.Rows[i][8].ToString().Trim();
|
||||
Funs.DB.SubmitChanges();
|
||||
//如果全是Not Start 就是 Not Start
|
||||
if (listObj.Where(x=>x== "Not Start").ToList().Count==9)
|
||||
{
|
||||
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)
|
||||
{
|
||||
model.FINALStatus = "In progress";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
model.FINALStatus = "Not Start";
|
||||
list.Add(model);
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// //修改
|
||||
// modelOnly.PIPINGLINENUMBER = pds.Rows[i][0].ToString().Trim();
|
||||
// modelOnly.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
// modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
// modelOnly.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
// DateTime t1, t2;
|
||||
// if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
// modelOnly.TestPackageSTART = t1;
|
||||
// if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
// modelOnly.TestPackageFINISH = t2;
|
||||
|
||||
// //更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
// if (modelOnly.FINALStatus.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
// {
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
// }
|
||||
// modelOnly.FINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
// //if (modelOnly.FINALStatus.ToLower() == "finished")
|
||||
// //{
|
||||
// // modelOnly.CompleteTime = DateTime.Now;
|
||||
// //}
|
||||
// modelOnly.PreTestFINISHED = pds.Rows[i][7].ToString().Trim();
|
||||
// modelOnly.FinalTestFINISHED = pds.Rows[i][8].ToString().Trim();
|
||||
// Funs.DB.SubmitChanges();
|
||||
//}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -22,17 +22,24 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtRotatingEquipment" Label="Rotating Equipment" LabelWidth="180px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtRotatingEquipment" Label="Tag. No" LabelWidth="120px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="System" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
Width="280px">
|
||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||
<f:ListItem Value="Not Start" Text="Not Start"/>
|
||||
<f:ListItem Value="In progress" Text="In progress"/>
|
||||
<f:ListItem Value="Completed" Text="Completed"/>
|
||||
</f:DropDownList>
|
||||
|
||||
<%-- <f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
Width="280px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="至">
|
||||
</f:Label>
|
||||
<f:DatePicker runat="server" ID="txtEndTime" LabelAlign="Right" Width="150px">
|
||||
</f:DatePicker>
|
||||
</f:DatePicker>--%>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
|
||||
</f:Button>
|
||||
|
@ -43,49 +50,44 @@
|
|||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
<%-- <f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:GroupField ID="g1" HeaderText="MECHANICAL" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="RotatingEquipment" DataField="RotatingEquipment" FieldType="String" HeaderText="Rotating Equipment" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="170px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g2" HeaderText="SYSTEM AND TEST PACKAGE SELECTION" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="SYSTEM" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Subsystem" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="TestPackage" DataField="TestPackage" FieldType="String" HeaderText="Test Package" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g3" HeaderText="Test Package Schedule" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="TestPackageSTART" DataField="TestPackageSTART" FieldType="Date" Renderer="Date" HeaderText="Test Package<br/>START" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="130px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="TestPackageFINISH" DataField="TestPackageFINISH" FieldType="Date" Renderer="Date" HeaderText="Test Package<br/>FINISH" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="130px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g5" HeaderText="" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="MechanicalFINALStatus" DataField="MechanicalFINALStatus" FieldType="String" HeaderText="Mechanical FINAL Status" ExpandUnusedSpace="true" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
</f:TemplateField>--%>
|
||||
<f:RenderField ColumnID="RotatingEquipment" DataField="RotatingEquipment" FieldType="String" HeaderText="Tag. No" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="System" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Sub-System" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="TestPackage" DataField="TestPackage" FieldType="String" HeaderText="Turn over Package" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Alignment" DataField="Alignment" FieldType="String" HeaderText="Alignment" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Motorsoloruntest" DataField="Motorsoloruntest" FieldType="String" HeaderText="Motor solorun test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="Standalonetest" DataField="Standalonetest" FieldType="String" HeaderText="Standalone test" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
|
||||
<f:RenderField ColumnID="MechanicalFINALStatus" DataField="MechanicalFINALStatus" FieldType="String" HeaderText="FINAL Status" ExpandUnusedSpace="true" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
|
|
|
@ -39,16 +39,22 @@ namespace FineUIPro.Web.Transfer
|
|||
strSql += " AND RotatingEquipment like @RotatingEquipment";
|
||||
listStr.Add(new SqlParameter("@RotatingEquipment", "%" + this.txtRotatingEquipment.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
|
||||
if (!string.IsNullOrEmpty(ddStatus.SelectedValue))
|
||||
{
|
||||
strSql += " AND TestPackageSTART >= @InspectionDateA";
|
||||
listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND TestPackageSTART <= @InspectionDateZ";
|
||||
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
strSql += " And MechanicalFINALStatus='" + ddStatus.SelectedValue + "' ";
|
||||
}
|
||||
|
||||
//if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND TestPackageSTART >= @InspectionDateA";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND TestPackageSTART <= @InspectionDateZ";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
{
|
||||
strSql += " AND SYSTEM like @SYSTEM";
|
||||
|
|
|
@ -78,31 +78,13 @@ namespace FineUIPro.Web.Transfer
|
|||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtStarTime 控件。
|
||||
/// ddStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStarTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
protected global::FineUIPro.DropDownList ddStatus;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
|
@ -122,51 +104,6 @@ namespace FineUIPro.Web.Transfer
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// g1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupField g1;
|
||||
|
||||
/// <summary>
|
||||
/// g2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupField g2;
|
||||
|
||||
/// <summary>
|
||||
/// g3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupField g3;
|
||||
|
||||
/// <summary>
|
||||
/// g5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupField g5;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -153,9 +153,9 @@ namespace FineUIPro.Web.Transfer
|
|||
string result = string.Empty;
|
||||
int ic, ir;
|
||||
ic = pds.Columns.Count;
|
||||
if (ic < Cols)
|
||||
if (ic != Cols)
|
||||
{
|
||||
ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
ShowNotify("导入Excel格式错误!Excel必须是" + Cols.ToString().Trim() + "列", MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -164,30 +164,12 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
string row4 = pds.Rows[i][4].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
string row4 = pds.Rows[i][0].ToString();
|
||||
if (string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row4.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
}
|
||||
string row5 = pds.Rows[i][5].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row5.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
result += (i + 3).ToString() + "," + "Tag. No" + "," + "不能为空!" + "|";
|
||||
}
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
|
@ -325,58 +307,92 @@ namespace FineUIPro.Web.Transfer
|
|||
List<Model.Transfer_RotatingEquipment> list = new List<Model.Transfer_RotatingEquipment>();
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
//查询第一列,没查到的情况下作导入处理
|
||||
var modelOnly = Funs.DB.Transfer_RotatingEquipment.FirstOrDefault(x => x.RotatingEquipment == pds.Rows[i][0].ToString().Trim()
|
||||
&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
if (modelOnly == null)
|
||||
{
|
||||
Model.Transfer_RotatingEquipment model = new Model.Transfer_RotatingEquipment();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.RotatingEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
model.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
model.TestPackageSTART = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
model.TestPackageFINISH = t2;
|
||||
////查询第一列,没查到的情况下作导入处理
|
||||
//var modelOnly = Funs.DB.Transfer_RotatingEquipment.FirstOrDefault(x => x.RotatingEquipment == pds.Rows[i][0].ToString().Trim()
|
||||
//&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
//if (modelOnly == null)
|
||||
//{
|
||||
Model.Transfer_RotatingEquipment model = new Model.Transfer_RotatingEquipment();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.RotatingEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
model.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
|
||||
model.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
if (model.MechanicalFINALStatus.ToLower() == "finished")
|
||||
{
|
||||
model.CompleteTime = DateTime.Now;
|
||||
}
|
||||
var obj1 = model.Alignment = pds.Rows[i][4].ToString().Trim();
|
||||
var obj2 = model.Motorsoloruntest = pds.Rows[i][5].ToString().Trim();
|
||||
var obj3 = model.Standalonetest = pds.Rows[i][6].ToString().Trim();
|
||||
#region 判断状态
|
||||
var listObj = new List<string>();
|
||||
listObj.Add(obj1);
|
||||
listObj.Add(obj2);
|
||||
listObj.Add(obj3);
|
||||
|
||||
//全是NA或Completed 状态是Completed
|
||||
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 3)
|
||||
{
|
||||
model.MechanicalFINALStatus = "Completed";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
|
||||
|
||||
//如果全是Not Start 就是 Not Start
|
||||
if (listObj.Where(x => x == "Not Start").ToList().Count == 3)
|
||||
{
|
||||
//修改
|
||||
modelOnly.RotatingEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
modelOnly.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
modelOnly.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
modelOnly.TestPackageSTART = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
modelOnly.TestPackageFINISH = t2;
|
||||
|
||||
//更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
if (modelOnly.MechanicalFINALStatus.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
{
|
||||
modelOnly.CompleteTime = DateTime.Now;
|
||||
}
|
||||
modelOnly.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
|
||||
//if (modelOnly.MechanicalFINALStatus.ToLower() == "finished")
|
||||
//{
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
//}
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
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)
|
||||
{
|
||||
model.MechanicalFINALStatus = "In progress";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
model.MechanicalFINALStatus = "Not Start";
|
||||
list.Add(model);
|
||||
|
||||
#endregion
|
||||
|
||||
model.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
if (model.MechanicalFINALStatus.ToLower() == "finished")
|
||||
{
|
||||
model.CompleteTime = DateTime.Now;
|
||||
}
|
||||
list.Add(model);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// //修改
|
||||
// modelOnly.RotatingEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
// modelOnly.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
// modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
// modelOnly.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
// DateTime t1, t2;
|
||||
// if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
// modelOnly.TestPackageSTART = t1;
|
||||
// if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
// modelOnly.TestPackageFINISH = t2;
|
||||
|
||||
// //更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
// if (modelOnly.MechanicalFINALStatus.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
// {
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
// }
|
||||
// modelOnly.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
|
||||
// //if (modelOnly.MechanicalFINALStatus.ToLower() == "finished")
|
||||
// //{
|
||||
// // modelOnly.CompleteTime = DateTime.Now;
|
||||
// //}
|
||||
|
||||
// Funs.DB.SubmitChanges();
|
||||
//}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
|
|
|
@ -22,17 +22,24 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtStaticEquipment" Label="Static Equipment" LabelWidth="180px" LabelAlign="Right"></f:TextBox>
|
||||
<f:TextBox runat="server" ID="txtStaticEquipment" Label="Tag No" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||
|
||||
<f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
<%-- <f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||
Width="280px">
|
||||
</f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server" Text="至">
|
||||
</f:Label>
|
||||
<f:DatePicker runat="server" ID="txtEndTime" LabelAlign="Right" Width="150px">
|
||||
</f:DatePicker>
|
||||
</f:DatePicker>--%>
|
||||
|
||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||
<f:ListItem Value="Not Start" Text="Not Start"/>
|
||||
<f:ListItem Value="In progress" Text="In progress"/>
|
||||
<f:ListItem Value="Completed" Text="Completed"/>
|
||||
</f:DropDownList>
|
||||
|
||||
<f:Button ID="btnSearch" Icon="SystemSearch" EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="查询">
|
||||
</f:Button>
|
||||
|
@ -43,39 +50,44 @@
|
|||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
<%-- <f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</f:TemplateField>--%>
|
||||
<f:GroupField ID="g1" HeaderText="MECHANICAL" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="StaticEquipment" DataField="StaticEquipment" FieldType="String" HeaderText="Static Equipment" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="170px">
|
||||
<f:RenderField ColumnID="StaticEquipment" DataField="StaticEquipment" FieldType="String" HeaderText="Tag No" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g2" HeaderText="SYSTEM AND TEST PACKAGE SELECTION" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="SYSTEM" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
HeaderTextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Subsystem" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="120px">
|
||||
HeaderTextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="TestPackage" DataField="TestPackage" FieldType="String" HeaderText="Test Package" TextAlign="Center"
|
||||
<f:RenderField ColumnID="TestPackage" DataField="TestPackage" FieldType="String" HeaderText="Turn over Package" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:GroupField ID="g3" HeaderText="Test Package Schedule" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:RenderField ColumnID="TestPackageSTART" DataField="TestPackageSTART" FieldType="Date" Renderer="Date" HeaderText="Test Package<br/>START" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="130px">
|
||||
<f:RenderField ColumnID="Internalinspection" DataField="Internalinspection" FieldType="String" HeaderText="Internal inspection " TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="TestPackageFINISH" DataField="TestPackageFINISH" FieldType="Date" Renderer="Date" HeaderText="Test Package<br/>FINISH" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="130px">
|
||||
|
||||
<f:RenderField ColumnID="InternalsPacking" DataField="InternalsPacking" FieldType="String" HeaderText="Internals/Packing<br/> installation " TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField ColumnID="BOXupRecord" DataField="BOXupRecord" FieldType="String" HeaderText="BOX-up Record" TextAlign="Center"
|
||||
HeaderTextAlign="Center" Width="200px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
|
|
|
@ -39,22 +39,26 @@ namespace FineUIPro.Web.Transfer
|
|||
strSql += " AND StaticEquipment like @StaticEquipment";
|
||||
listStr.Add(new SqlParameter("@StaticEquipment", "%" + this.txtStaticEquipment.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND TestPackageSTART >= @InspectionDateA";
|
||||
listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
{
|
||||
strSql += " AND TestPackageSTART <= @InspectionDateZ";
|
||||
listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(txtStarTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND TestPackageSTART >= @InspectionDateA";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim())));
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(txtEndTime.Text.Trim()))
|
||||
//{
|
||||
// strSql += " AND TestPackageSTART <= @InspectionDateZ";
|
||||
// listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim())));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(this.txtSystem.Text.Trim()))
|
||||
{
|
||||
strSql += " AND SYSTEM like @SYSTEM";
|
||||
listStr.Add(new SqlParameter("@SYSTEM", "%" + this.txtSystem.Text.Trim() + "%"));
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(ddStatus.SelectedValue))
|
||||
{
|
||||
strSql += " And MechanicalFINALStatus='" + ddStatus.SelectedValue + "' ";
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
|
|
|
@ -78,31 +78,13 @@ namespace FineUIPro.Web.Transfer
|
|||
protected global::FineUIPro.TextBox txtSystem;
|
||||
|
||||
/// <summary>
|
||||
/// txtStarTime 控件。
|
||||
/// ddStatus 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStarTime;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndTime;
|
||||
protected global::FineUIPro.DropDownList ddStatus;
|
||||
|
||||
/// <summary>
|
||||
/// btnSearch 控件。
|
||||
|
@ -122,15 +104,6 @@ namespace FineUIPro.Web.Transfer
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
/// <summary>
|
||||
/// lblPageIndex 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||
|
||||
/// <summary>
|
||||
/// g1 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -164,30 +164,12 @@ namespace FineUIPro.Web.Transfer
|
|||
{
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
string row4 = pds.Rows[i][4].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
string row4 = pds.Rows[i][0].ToString();
|
||||
if (string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row4.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
}
|
||||
string row5 = pds.Rows[i][5].ToString();
|
||||
if (!string.IsNullOrEmpty(row4))
|
||||
{
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(row5.Trim());
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
result += (i + 3).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|";
|
||||
}
|
||||
result += (i + 3).ToString() + "," + "Tag No" + "," + "不能为空!" + "|";
|
||||
}
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(result))
|
||||
{
|
||||
|
@ -325,57 +307,97 @@ namespace FineUIPro.Web.Transfer
|
|||
List<Model.Transfer_StaticEquipment> list = new List<Model.Transfer_StaticEquipment>();
|
||||
for (int i = 1; i < ir; i++)
|
||||
{
|
||||
//查询第一列,没查到的情况下作导入处理
|
||||
var modelOnly = Funs.DB.Transfer_StaticEquipment.FirstOrDefault(x => x.StaticEquipment == pds.Rows[i][0].ToString().Trim()
|
||||
&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
if (modelOnly == null)
|
||||
////查询第一列,没查到的情况下作导入处理
|
||||
//var modelOnly = Funs.DB.Transfer_StaticEquipment.FirstOrDefault(x => x.StaticEquipment == pds.Rows[i][0].ToString().Trim()
|
||||
//&& x.ProjectId == CurrUser.LoginProjectId);
|
||||
//if (modelOnly == null)
|
||||
//{
|
||||
Model.Transfer_StaticEquipment model = new Model.Transfer_StaticEquipment();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.StaticEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
model.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
|
||||
var obj1 = model.Internalinspection = pds.Rows[i][4].ToString().Trim();
|
||||
var obj2 = model.InternalsPacking = pds.Rows[i][5].ToString().Trim();
|
||||
var obj3 = model.BOXupRecord = pds.Rows[i][6].ToString().Trim();
|
||||
#region 判断状态
|
||||
var listObj = new List<string>();
|
||||
listObj.Add(obj1);
|
||||
listObj.Add(obj2);
|
||||
listObj.Add(obj3);
|
||||
|
||||
//全是NA或Completed 状态是Completed
|
||||
if (listObj.Where(x => x == "NA" || x == "Completed").ToList().Count == 3)
|
||||
{
|
||||
Model.Transfer_StaticEquipment model = new Model.Transfer_StaticEquipment();
|
||||
model.Id = Guid.NewGuid().ToString();
|
||||
model.ProjectId = CurrUser.LoginProjectId;
|
||||
model.StaticEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
model.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
model.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
model.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
model.TestPackageSTART = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
model.TestPackageFINISH = t2;
|
||||
|
||||
model.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
if (model.MechanicalFINALStatus.ToLower() == "finished")
|
||||
{
|
||||
model.CompleteTime = DateTime.Now;
|
||||
}
|
||||
|
||||
model.MechanicalFINALStatus = "Completed";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
//修改
|
||||
modelOnly.StaticEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
modelOnly.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
modelOnly.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
DateTime t1, t2;
|
||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
modelOnly.TestPackageSTART = t1;
|
||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
modelOnly.TestPackageFINISH = t2;
|
||||
|
||||
//更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
if (modelOnly.MechanicalFINALStatus.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
{
|
||||
modelOnly.CompleteTime = DateTime.Now;
|
||||
}
|
||||
modelOnly.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
//if (modelOnly.MechanicalFINALStatus.ToLower() == "finished")
|
||||
//{
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
//}
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
//如果全是Not Start 就是 Not Start
|
||||
if (listObj.Where(x => 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)
|
||||
{
|
||||
model.MechanicalFINALStatus = "In progress";
|
||||
list.Add(model);
|
||||
continue;
|
||||
}
|
||||
|
||||
model.MechanicalFINALStatus = "Not Start";
|
||||
list.Add(model);
|
||||
|
||||
#endregion
|
||||
|
||||
//DateTime t1, t2;
|
||||
//if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
// model.TestPackageSTART = t1;
|
||||
//if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
// model.TestPackageFINISH = t2;
|
||||
|
||||
//model.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
//if (model.MechanicalFINALStatus.ToLower() == "finished")
|
||||
//{
|
||||
// model.CompleteTime = DateTime.Now;
|
||||
//}
|
||||
|
||||
list.Add(model);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// //修改
|
||||
// modelOnly.StaticEquipment = pds.Rows[i][0].ToString().Trim();
|
||||
// modelOnly.SYSTEM = pds.Rows[i][1].ToString().Trim();
|
||||
// modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim();
|
||||
// modelOnly.TestPackage = pds.Rows[i][3].ToString().Trim();
|
||||
// DateTime t1, t2;
|
||||
// if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||
// modelOnly.TestPackageSTART = t1;
|
||||
// if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString()))
|
||||
// modelOnly.TestPackageFINISH = t2;
|
||||
|
||||
// //更改前不是finished,更改后是finished的,才修改实际完成时间
|
||||
// if (modelOnly.MechanicalFINALStatus.ToLower() != "finished" && pds.Rows[i][6].ToString().Trim() == "finished")
|
||||
// {
|
||||
// modelOnly.CompleteTime = DateTime.Now;
|
||||
// }
|
||||
// modelOnly.MechanicalFINALStatus = pds.Rows[i][6].ToString().Trim();
|
||||
// //if (modelOnly.MechanicalFINALStatus.ToLower() == "finished")
|
||||
// //{
|
||||
// // modelOnly.CompleteTime = DateTime.Now;
|
||||
// //}
|
||||
// Funs.DB.SubmitChanges();
|
||||
//}
|
||||
}
|
||||
if (list.Count > 0)
|
||||
{
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
<TreeNode id="80F786CB-E8CA-44AD-A08C-8E4D12BFDCA1" Text="总部检查" NavigateUrl="HSSE/Check/OfficeCheck.aspx"></TreeNode>
|
||||
<TreeNode id="7B272C3F-39D2-496D-A87C-E2C89A20E4EF" Text="HSE巡检统计(图表)" NavigateUrl="HSSE/HiddenInspection/RiskAnalysisChart.aspx"></TreeNode>
|
||||
<TreeNode id="4E312813-1A2E-4AF7-8106-9210A6E83926" Text="隐患整改统计" NavigateUrl="HSSE/Check/RectifyNoticesStatistics.aspx"></TreeNode>
|
||||
<TreeNode id="5DC49905-6A1C-4353-A06C-D9D1A8D6B6F9" Text="隐患排查与治理统计" NavigateUrl="HSSE/Check/HiddenTroubleManager.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="5309E7E0-395E-4F11-8F5E-D52E11526A2A" Text="HSE会议" NavigateUrl=""><TreeNode id="DFB56743-17BA-40BA-82EA-FCB9B0DBFAFF" Text="安全领导小组会议" NavigateUrl="HSSE/Meeting/SafetyLeaderGroupMeeting.aspx"></TreeNode>
|
||||
<TreeNode id="5236B1D9-8B57-495E-8644-231DF5D066CE" Text="HSE周例会" NavigateUrl="HSSE/Meeting/WeekMeeting.aspx"></TreeNode>
|
||||
|
@ -99,14 +100,12 @@
|
|||
<TreeNode id="D58B9DEC-A09B-45B0-BD54-18592119BB49" Text="车辆交通安全管理" NavigateUrl=""><TreeNode id="CF82805A-84BE-400A-B939-83F7612D76F5" Text="现场车辆管理" NavigateUrl="HSSE/Administrative/CarManager.aspx"></TreeNode>
|
||||
<TreeNode id="754C23CA-F1BC-4F44-9D34-B185099EDCA0" Text="现场驾驶员管理" NavigateUrl="HSSE/Administrative/DriverManager.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="28C8EDB9-F1C2-4287-8013-28A976B093E2" Text="施工机具" NavigateUrl=""><TreeNode id="3E167389-4775-4AC3-9D31-2E570682EDA1" Text="特种设备机具入场报批" NavigateUrl="HSSE/InApproveManager/EquipmentIn.aspx"></TreeNode>
|
||||
<TreeNode id="A4832598-E3D4-4906-88E5-A3886A85FC5A" Text="特种设备机具出场报批" NavigateUrl="HSSE/InApproveManager/EquipmentOut.aspx"></TreeNode>
|
||||
<TreeNode id="06EA1483-7397-46DD-818D-56911EA7B679" Text="一般设备机具入场报批" NavigateUrl="HSSE/InApproveManager/GeneralEquipmentIn.aspx"></TreeNode>
|
||||
<TreeNode id="56F241A9-0AA3-4EDB-8C5C-999C487C06DA" Text="一般设备机具出场报批" NavigateUrl="HSSE/InApproveManager/GeneralEquipmentOut.aspx"></TreeNode>
|
||||
<TreeNode id="42E7E869-67EA-446E-A910-BE7BF95EDC00" Text="特种设备审批" NavigateUrl="HSSE/InApproveManager/EquipmentQualityIn.aspx"></TreeNode>
|
||||
<TreeNode id="2DEDD752-8BAF-43CD-933D-932AF9AF2F58" Text="特殊机具设备资质" NavigateUrl="HSSE/QualityAudit/EquipmentQuality.aspx"></TreeNode>
|
||||
<TreeNode id="BFD62699-47F0-49FA-AD39-FAEE8A6C3313" Text="一般机具设备资质" NavigateUrl="HSSE/QualityAudit/GeneralEquipmentQuality.aspx"></TreeNode>
|
||||
<TreeNode id="9703D711-85DA-4A0B-B08B-70F791418696" Text="施工机具、安全设施检查验收" NavigateUrl="HSSE/License/EquipmentSafetyList.aspx"></TreeNode>
|
||||
<TreeNode id="28C8EDB9-F1C2-4287-8013-28A976B093E2" Text="施工机具和设备" NavigateUrl=""><TreeNode id="2556CFA6-63F7-4FC1-9B2B-5E43A84640EC" Text="特种设备" NavigateUrl=""><TreeNode id="2DEDD752-8BAF-43CD-933D-932AF9AF2F58" Text="资质报审及检验报告" NavigateUrl="HSSE/QualityAudit/EquipmentQuality.aspx"></TreeNode>
|
||||
<TreeNode id="9703D711-85DA-4A0B-B08B-70F791418696" Text="入场验收记录" NavigateUrl="HSSE/License/EquipmentSafetyList.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="8E2FB782-66B3-46C4-8F71-8A5A37585785" Text="普通机具设备" NavigateUrl=""><TreeNode id="BFD62699-47F0-49FA-AD39-FAEE8A6C3313" Text="资质报审及检验记录" NavigateUrl="HSSE/QualityAudit/GeneralEquipmentQuality.aspx"></TreeNode>
|
||||
<TreeNode id="CE2687BF-7BBB-4FD5-8FFE-B3B26F712D34" Text="入场验收记录" NavigateUrl="HSSE/License/EquipmentSafetyList.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="012DF857-AD6B-49AA-87A8-030CD5F66D4C" Text="HSE奖惩" NavigateUrl=""><TreeNode id="96F21A83-6871-4CC4-8901-1B99C376395C" Text="奖励通知单" NavigateUrl="HSSE/Check/IncentiveNotice.aspx"></TreeNode>
|
||||
<TreeNode id="C13F1CE7-DAEF-4604-A13F-192621D28DF5" Text="奖励统计" NavigateUrl="HSSE/Check/IncentiveNoticeStatistics.aspx"></TreeNode>
|
||||
|
|
|
@ -6,7 +6,4 @@
|
|||
<TreeNode id="C6EF06E5-9019-4583-8122-EA94FCC545C6" Text="员工总结" NavigateUrl=""></TreeNode>
|
||||
<TreeNode id="AAF841AA-2EE8-4FEC-B1FB-B978736C6E1F" Text="员工责任书" NavigateUrl="Personal/PersonDuty.aspx"></TreeNode>
|
||||
<TreeNode id="CB373458-30B0-4850-ABFF-B38D40A04D43" Text="员工绩效考核结果" NavigateUrl="Personal/PersonCheckInfo.aspx"></TreeNode>
|
||||
<TreeNode id="522EAECC-3D40-4804-A066-A43BA8F6BFC1" Text="员工出差记录" NavigateUrl="Personal/BusinessTrip.aspx"></TreeNode>
|
||||
<TreeNode id="16229932-671B-4E04-BB61-A5C7DE4CE47F" Text="员工开车绩效记录" NavigateUrl="Personal/TestRunPerformance.aspx"></TreeNode>
|
||||
<TreeNode id="F0792B77-AEE4-4834-82C2-E5B75D0B0AB7" Text="开车月技术总结" NavigateUrl="Personal/TestRunMonthSummary.aspx"></TreeNode>
|
||||
</Tree>
|
|
@ -1,7 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Tree>
|
||||
<TreeNode id="48545C6A-9D10-47F4-810F-DAB0CFCD5BF9" Text="Project Set up" NavigateUrl="Transfer/ProjectSetup.aspx">
|
||||
<TreeNode id="197F9A9A-480C-4CC3-B6B7-3A7D382DC3EB" Text="LHC System List(Process)" NavigateUrl="Transfer/LHCSystemList.aspx?Type=0">
|
||||
</TreeNode>
|
||||
<TreeNode id="022428DC-FC99-4916-B8AF-6A9DC885DFAF" Text="LHC System List(Non-Process)" NavigateUrl="Transfer/LHCSystemList.aspx?Type=1"></TreeNode>
|
||||
<TreeNode id="D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B" Text="Piping" NavigateUrl="Transfer/Piping.aspx"></TreeNode>
|
||||
<TreeNode id="982F746C-084C-445C-9AE8-8C37BDFE7994" Text="Static Equipment" NavigateUrl="Transfer/StaticEquipment.aspx"></TreeNode>
|
||||
<TreeNode id="7E2FB5F9-FB99-4455-B68F-460F1F9A2676" Text="Rotating Equipment" NavigateUrl="Transfer/RotatingEquipment.aspx"></TreeNode>
|
||||
|
@ -11,11 +12,9 @@
|
|||
<TreeNode id="794E64E2-FDD2-4B7D-8408-F7FB06F9C92A" Text="Firefighting" NavigateUrl="Transfer/Firefighting.aspx"></TreeNode>
|
||||
<TreeNode id="58FFBD80-ACB9-4830-A18A-E025D9600D94" Text="Telecom" NavigateUrl="Transfer/Telecom.aspx"></TreeNode>
|
||||
<TreeNode id="95295BF7-FB51-480D-9902-6ADA4E8427FC" Text="Plumbing" NavigateUrl="Transfer/Plumbing.aspx"></TreeNode>
|
||||
<TreeNode id="05442049-1310-45B1-9D3D-CAAE759D8F3E" Text="HVAC" NavigateUrl="Transfer/HVAC.aspx"></TreeNode>
|
||||
<TreeNode id="016903B1-3B86-4CF5-AFF8-FF8BE389BEE5" Text="Punchlist from" NavigateUrl="Transfer/PunchlistFrom.aspx"></TreeNode>
|
||||
<TreeNode id="3517DBE2-9728-4BA0-9EA5-AE2147DB883B" Text="移交图表" NavigateUrl=""><TreeNode id="E6F5125D-DD94-4978-B7EB-D9C26694D86D" Text="全厂移交统计表" NavigateUrl="Transfer/Chart/Instrumentation.aspx"></TreeNode>
|
||||
<TreeNode id="F97BCF55-E450-4007-AD84-AB64B3496204" Text="全厂移交统计递增表" NavigateUrl="Transfer/Chart/TransferChart.aspx"></TreeNode>
|
||||
<TreeNode id="C2DD3E9E-DB18-466F-8FA0-19AD6E21EEF0" Text="Punchlist from" NavigateUrl="Transfer/Chart/PunchlistFrom.aspx"></TreeNode>
|
||||
<TreeNode id="BB5EC5E1-A23D-4A3F-8772-CD40757974EC" Text="Punchlist from统计递增表" NavigateUrl="Transfer/Chart/PunchlistFromChart.aspx"></TreeNode>
|
||||
<TreeNode id="3517DBE2-9728-4BA0-9EA5-AE2147DB883B" Text="移交图表" NavigateUrl=""><TreeNode id="2352E44F-BE12-4012-B43F-AAF649EDAC32" Text="Punchlist from完成统计表" NavigateUrl="Transfer/Chart/PunchlistFromChartNew.aspx"></TreeNode>
|
||||
<TreeNode id="CB76462E-9444-4946-B787-ECB33C21E6D0" Text="Punchlist from分类表" NavigateUrl="Transfer/Chart/PunchlistFromSort.aspx"></TreeNode>
|
||||
<TreeNode id="549DD0B6-05CB-4C75-B8F5-9AADDEDF399F" Text="Punchlist from进度跟踪表" NavigateUrl="Transfer/Chart/PunchlistFromProgress.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
|
@ -84,7 +84,5 @@
|
|||
<TreeNode id="EA413D2A-8D29-4DE2-932D-8511BB7F6CB2" Text="各项目巡查汇总" NavigateUrl="ZHGL/InspectionSummary/InspectionSummary.aspx"></TreeNode>
|
||||
<TreeNode id="F2133BD6-C786-407A-AD6F-3EEF613229A8" Text="施工管理绩效数据" NavigateUrl="ZHGL/Performance/PerformanceAllData.aspx"></TreeNode>
|
||||
<TreeNode id="53D8CED2-9AA7-43EA-B27D-EA10A06DF713" Text="开车人员绩效管理" NavigateUrl=""><TreeNode id="383290E0-60AE-4D16-8B5E-3899B85EC2ED" Text="开车绩效评分标准" NavigateUrl="ZHGL/TestRunPerformance/TestRunPerformanceStandard.aspx"></TreeNode>
|
||||
<TreeNode id="C1240FCB-4C72-445E-82B5-EBFAA87D0AC6" Text="开车人员月绩效报告" NavigateUrl="ZHGL/TestRunPerformance/TestRunPerformanceMonthReport.aspx"></TreeNode>
|
||||
<TreeNode id="0C6BB051-6BD1-4E35-90CE-9376F3C2D454" Text="开车人员月技术总结" NavigateUrl="ZHGL/TestRunPerformance/TestRunMonthSummaryReport.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
|
@ -390737,6 +390737,22 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _CompleteTime;
|
||||
|
||||
private string _Foundation;
|
||||
|
||||
private string _Mainstructure;
|
||||
|
||||
private string _Buildingdecoration;
|
||||
|
||||
private string _Equipment;
|
||||
|
||||
private string _Instrument;
|
||||
|
||||
private string _Electrical;
|
||||
|
||||
private string _FireFighting;
|
||||
|
||||
private string _HVAC;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -390761,6 +390777,22 @@ namespace Model
|
|||
partial void OnFINAL_StatusChanged();
|
||||
partial void OnCompleteTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompleteTimeChanged();
|
||||
partial void OnFoundationChanging(string value);
|
||||
partial void OnFoundationChanged();
|
||||
partial void OnMainstructureChanging(string value);
|
||||
partial void OnMainstructureChanged();
|
||||
partial void OnBuildingdecorationChanging(string value);
|
||||
partial void OnBuildingdecorationChanged();
|
||||
partial void OnEquipmentChanging(string value);
|
||||
partial void OnEquipmentChanged();
|
||||
partial void OnInstrumentChanging(string value);
|
||||
partial void OnInstrumentChanged();
|
||||
partial void OnElectricalChanging(string value);
|
||||
partial void OnElectricalChanged();
|
||||
partial void OnFireFightingChanging(string value);
|
||||
partial void OnFireFightingChanged();
|
||||
partial void OnHVACChanging(string value);
|
||||
partial void OnHVACChanged();
|
||||
#endregion
|
||||
|
||||
public Transfer_Civil_Structure()
|
||||
|
@ -390968,6 +391000,166 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Foundation", DbType="NVarChar(50)")]
|
||||
public string Foundation
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Foundation;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Foundation != value))
|
||||
{
|
||||
this.OnFoundationChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Foundation = value;
|
||||
this.SendPropertyChanged("Foundation");
|
||||
this.OnFoundationChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Mainstructure", DbType="NVarChar(50)")]
|
||||
public string Mainstructure
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Mainstructure;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Mainstructure != value))
|
||||
{
|
||||
this.OnMainstructureChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Mainstructure = value;
|
||||
this.SendPropertyChanged("Mainstructure");
|
||||
this.OnMainstructureChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Buildingdecoration", DbType="NVarChar(50)")]
|
||||
public string Buildingdecoration
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Buildingdecoration;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Buildingdecoration != value))
|
||||
{
|
||||
this.OnBuildingdecorationChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Buildingdecoration = value;
|
||||
this.SendPropertyChanged("Buildingdecoration");
|
||||
this.OnBuildingdecorationChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Equipment", DbType="NVarChar(50)")]
|
||||
public string Equipment
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Equipment;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Equipment != value))
|
||||
{
|
||||
this.OnEquipmentChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Equipment = value;
|
||||
this.SendPropertyChanged("Equipment");
|
||||
this.OnEquipmentChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Instrument", DbType="NVarChar(50)")]
|
||||
public string Instrument
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Instrument;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Instrument != value))
|
||||
{
|
||||
this.OnInstrumentChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Instrument = value;
|
||||
this.SendPropertyChanged("Instrument");
|
||||
this.OnInstrumentChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Electrical", DbType="NVarChar(50)")]
|
||||
public string Electrical
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Electrical;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Electrical != value))
|
||||
{
|
||||
this.OnElectricalChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Electrical = value;
|
||||
this.SendPropertyChanged("Electrical");
|
||||
this.OnElectricalChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FireFighting", DbType="NVarChar(50)")]
|
||||
public string FireFighting
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FireFighting;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FireFighting != value))
|
||||
{
|
||||
this.OnFireFightingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FireFighting = value;
|
||||
this.SendPropertyChanged("FireFighting");
|
||||
this.OnFireFightingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HVAC", DbType="NVarChar(50)")]
|
||||
public string HVAC
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HVAC;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HVAC != value))
|
||||
{
|
||||
this.OnHVACChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HVAC = value;
|
||||
this.SendPropertyChanged("HVAC");
|
||||
this.OnHVACChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -391015,6 +391207,14 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _CompleteTime;
|
||||
|
||||
private string _Installation;
|
||||
|
||||
private string _Communicationtest;
|
||||
|
||||
private string _CableLaying;
|
||||
|
||||
private string _LoopTest;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -391039,6 +391239,14 @@ namespace Model
|
|||
partial void OnFINAL_StatusChanged();
|
||||
partial void OnCompleteTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompleteTimeChanged();
|
||||
partial void OnInstallationChanging(string value);
|
||||
partial void OnInstallationChanged();
|
||||
partial void OnCommunicationtestChanging(string value);
|
||||
partial void OnCommunicationtestChanged();
|
||||
partial void OnCableLayingChanging(string value);
|
||||
partial void OnCableLayingChanged();
|
||||
partial void OnLoopTestChanging(string value);
|
||||
partial void OnLoopTestChanged();
|
||||
#endregion
|
||||
|
||||
public Transfer_Electrical()
|
||||
|
@ -391246,6 +391454,86 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Installation", DbType="NVarChar(50)")]
|
||||
public string Installation
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Installation;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Installation != value))
|
||||
{
|
||||
this.OnInstallationChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Installation = value;
|
||||
this.SendPropertyChanged("Installation");
|
||||
this.OnInstallationChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Communicationtest", DbType="NVarChar(50)")]
|
||||
public string Communicationtest
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Communicationtest;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Communicationtest != value))
|
||||
{
|
||||
this.OnCommunicationtestChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Communicationtest = value;
|
||||
this.SendPropertyChanged("Communicationtest");
|
||||
this.OnCommunicationtestChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CableLaying", DbType="NVarChar(50)")]
|
||||
public string CableLaying
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CableLaying;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CableLaying != value))
|
||||
{
|
||||
this.OnCableLayingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CableLaying = value;
|
||||
this.SendPropertyChanged("CableLaying");
|
||||
this.OnCableLayingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LoopTest", DbType="NVarChar(50)")]
|
||||
public string LoopTest
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._LoopTest;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._LoopTest != value))
|
||||
{
|
||||
this.OnLoopTestChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._LoopTest = value;
|
||||
this.SendPropertyChanged("LoopTest");
|
||||
this.OnLoopTestChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -391849,6 +392137,16 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _CompleteTime;
|
||||
|
||||
private string _InstallationCalibration;
|
||||
|
||||
private string _PipingPressuretest;
|
||||
|
||||
private string _PipingLeak;
|
||||
|
||||
private string _PipingBlowing;
|
||||
|
||||
private string _Looptest;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -391873,6 +392171,16 @@ namespace Model
|
|||
partial void OnFINAL_StatusChanged();
|
||||
partial void OnCompleteTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompleteTimeChanged();
|
||||
partial void OnInstallationCalibrationChanging(string value);
|
||||
partial void OnInstallationCalibrationChanged();
|
||||
partial void OnPipingPressuretestChanging(string value);
|
||||
partial void OnPipingPressuretestChanged();
|
||||
partial void OnPipingLeakChanging(string value);
|
||||
partial void OnPipingLeakChanged();
|
||||
partial void OnPipingBlowingChanging(string value);
|
||||
partial void OnPipingBlowingChanged();
|
||||
partial void OnLooptestChanging(string value);
|
||||
partial void OnLooptestChanged();
|
||||
#endregion
|
||||
|
||||
public Transfer_Instrumentation()
|
||||
|
@ -392080,6 +392388,106 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationCalibration", DbType="NVarChar(50)")]
|
||||
public string InstallationCalibration
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InstallationCalibration;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InstallationCalibration != value))
|
||||
{
|
||||
this.OnInstallationCalibrationChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InstallationCalibration = value;
|
||||
this.SendPropertyChanged("InstallationCalibration");
|
||||
this.OnInstallationCalibrationChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipingPressuretest", DbType="NVarChar(50)")]
|
||||
public string PipingPressuretest
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PipingPressuretest;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PipingPressuretest != value))
|
||||
{
|
||||
this.OnPipingPressuretestChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PipingPressuretest = value;
|
||||
this.SendPropertyChanged("PipingPressuretest");
|
||||
this.OnPipingPressuretestChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipingLeak", DbType="NVarChar(50)")]
|
||||
public string PipingLeak
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PipingLeak;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PipingLeak != value))
|
||||
{
|
||||
this.OnPipingLeakChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PipingLeak = value;
|
||||
this.SendPropertyChanged("PipingLeak");
|
||||
this.OnPipingLeakChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipingBlowing", DbType="NVarChar(50)")]
|
||||
public string PipingBlowing
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PipingBlowing;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PipingBlowing != value))
|
||||
{
|
||||
this.OnPipingBlowingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PipingBlowing = value;
|
||||
this.SendPropertyChanged("PipingBlowing");
|
||||
this.OnPipingBlowingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Looptest", DbType="NVarChar(50)")]
|
||||
public string Looptest
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Looptest;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Looptest != value))
|
||||
{
|
||||
this.OnLooptestChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Looptest = value;
|
||||
this.SendPropertyChanged("Looptest");
|
||||
this.OnLooptestChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -392481,6 +392889,26 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _CompleteTime;
|
||||
|
||||
private string _PWD;
|
||||
|
||||
private string _Apunchclosed;
|
||||
|
||||
private string _NDTReport;
|
||||
|
||||
private string _TemperaryMeasurement;
|
||||
|
||||
private string _FWDfinished;
|
||||
|
||||
private string _HydrostaticTest;
|
||||
|
||||
private string _Report;
|
||||
|
||||
private string _Blowingflushing;
|
||||
|
||||
private string _Systemreinstalled;
|
||||
|
||||
private string _BlowingReport;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -392509,6 +392937,26 @@ namespace Model
|
|||
partial void OnFinalTestFINISHEDChanged();
|
||||
partial void OnCompleteTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompleteTimeChanged();
|
||||
partial void OnPWDChanging(string value);
|
||||
partial void OnPWDChanged();
|
||||
partial void OnApunchclosedChanging(string value);
|
||||
partial void OnApunchclosedChanged();
|
||||
partial void OnNDTReportChanging(string value);
|
||||
partial void OnNDTReportChanged();
|
||||
partial void OnTemperaryMeasurementChanging(string value);
|
||||
partial void OnTemperaryMeasurementChanged();
|
||||
partial void OnFWDfinishedChanging(string value);
|
||||
partial void OnFWDfinishedChanged();
|
||||
partial void OnHydrostaticTestChanging(string value);
|
||||
partial void OnHydrostaticTestChanged();
|
||||
partial void OnReportChanging(string value);
|
||||
partial void OnReportChanged();
|
||||
partial void OnBlowingflushingChanging(string value);
|
||||
partial void OnBlowingflushingChanged();
|
||||
partial void OnSystemreinstalledChanging(string value);
|
||||
partial void OnSystemreinstalledChanged();
|
||||
partial void OnBlowingReportChanging(string value);
|
||||
partial void OnBlowingReportChanged();
|
||||
#endregion
|
||||
|
||||
public Transfer_Piping()
|
||||
|
@ -392756,6 +393204,206 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PWD", DbType="NVarChar(50)")]
|
||||
public string PWD
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PWD;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PWD != value))
|
||||
{
|
||||
this.OnPWDChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PWD = value;
|
||||
this.SendPropertyChanged("PWD");
|
||||
this.OnPWDChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Apunchclosed", DbType="NVarChar(50)")]
|
||||
public string Apunchclosed
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Apunchclosed;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Apunchclosed != value))
|
||||
{
|
||||
this.OnApunchclosedChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Apunchclosed = value;
|
||||
this.SendPropertyChanged("Apunchclosed");
|
||||
this.OnApunchclosedChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTReport", DbType="NVarChar(50)")]
|
||||
public string NDTReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._NDTReport;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._NDTReport != value))
|
||||
{
|
||||
this.OnNDTReportChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._NDTReport = value;
|
||||
this.SendPropertyChanged("NDTReport");
|
||||
this.OnNDTReportChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TemperaryMeasurement", DbType="NVarChar(50)")]
|
||||
public string TemperaryMeasurement
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TemperaryMeasurement;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TemperaryMeasurement != value))
|
||||
{
|
||||
this.OnTemperaryMeasurementChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TemperaryMeasurement = value;
|
||||
this.SendPropertyChanged("TemperaryMeasurement");
|
||||
this.OnTemperaryMeasurementChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FWDfinished", DbType="NVarChar(50)")]
|
||||
public string FWDfinished
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FWDfinished;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._FWDfinished != value))
|
||||
{
|
||||
this.OnFWDfinishedChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FWDfinished = value;
|
||||
this.SendPropertyChanged("FWDfinished");
|
||||
this.OnFWDfinishedChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HydrostaticTest", DbType="NVarChar(50)")]
|
||||
public string HydrostaticTest
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HydrostaticTest;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HydrostaticTest != value))
|
||||
{
|
||||
this.OnHydrostaticTestChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HydrostaticTest = value;
|
||||
this.SendPropertyChanged("HydrostaticTest");
|
||||
this.OnHydrostaticTestChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Report", DbType="NVarChar(50)")]
|
||||
public string Report
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Report;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Report != value))
|
||||
{
|
||||
this.OnReportChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Report = value;
|
||||
this.SendPropertyChanged("Report");
|
||||
this.OnReportChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Blowingflushing", DbType="NVarChar(50)")]
|
||||
public string Blowingflushing
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Blowingflushing;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Blowingflushing != value))
|
||||
{
|
||||
this.OnBlowingflushingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Blowingflushing = value;
|
||||
this.SendPropertyChanged("Blowingflushing");
|
||||
this.OnBlowingflushingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Systemreinstalled", DbType="NVarChar(50)")]
|
||||
public string Systemreinstalled
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Systemreinstalled;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Systemreinstalled != value))
|
||||
{
|
||||
this.OnSystemreinstalledChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Systemreinstalled = value;
|
||||
this.SendPropertyChanged("Systemreinstalled");
|
||||
this.OnSystemreinstalledChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BlowingReport", DbType="NVarChar(50)")]
|
||||
public string BlowingReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._BlowingReport;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._BlowingReport != value))
|
||||
{
|
||||
this.OnBlowingReportChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._BlowingReport = value;
|
||||
this.SendPropertyChanged("BlowingReport");
|
||||
this.OnBlowingReportChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -394453,6 +395101,12 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _CompleteTime;
|
||||
|
||||
private string _Alignment;
|
||||
|
||||
private string _Motorsoloruntest;
|
||||
|
||||
private string _Standalonetest;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -394477,6 +395131,12 @@ namespace Model
|
|||
partial void OnMechanicalFINALStatusChanged();
|
||||
partial void OnCompleteTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompleteTimeChanged();
|
||||
partial void OnAlignmentChanging(string value);
|
||||
partial void OnAlignmentChanged();
|
||||
partial void OnMotorsoloruntestChanging(string value);
|
||||
partial void OnMotorsoloruntestChanged();
|
||||
partial void OnStandalonetestChanging(string value);
|
||||
partial void OnStandalonetestChanged();
|
||||
#endregion
|
||||
|
||||
public Transfer_RotatingEquipment()
|
||||
|
@ -394684,6 +395344,66 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Alignment", DbType="NVarChar(50)")]
|
||||
public string Alignment
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Alignment;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Alignment != value))
|
||||
{
|
||||
this.OnAlignmentChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Alignment = value;
|
||||
this.SendPropertyChanged("Alignment");
|
||||
this.OnAlignmentChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Motorsoloruntest", DbType="NVarChar(50)")]
|
||||
public string Motorsoloruntest
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Motorsoloruntest;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Motorsoloruntest != value))
|
||||
{
|
||||
this.OnMotorsoloruntestChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Motorsoloruntest = value;
|
||||
this.SendPropertyChanged("Motorsoloruntest");
|
||||
this.OnMotorsoloruntestChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Standalonetest", DbType="NVarChar(50)")]
|
||||
public string Standalonetest
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Standalonetest;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Standalonetest != value))
|
||||
{
|
||||
this.OnStandalonetestChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Standalonetest = value;
|
||||
this.SendPropertyChanged("Standalonetest");
|
||||
this.OnStandalonetestChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -394731,6 +395451,12 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _CompleteTime;
|
||||
|
||||
private string _Internalinspection;
|
||||
|
||||
private string _InternalsPacking;
|
||||
|
||||
private string _BOXupRecord;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -394755,6 +395481,12 @@ namespace Model
|
|||
partial void OnMechanicalFINALStatusChanged();
|
||||
partial void OnCompleteTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompleteTimeChanged();
|
||||
partial void OnInternalinspectionChanging(string value);
|
||||
partial void OnInternalinspectionChanged();
|
||||
partial void OnInternalsPackingChanging(string value);
|
||||
partial void OnInternalsPackingChanged();
|
||||
partial void OnBOXupRecordChanging(string value);
|
||||
partial void OnBOXupRecordChanged();
|
||||
#endregion
|
||||
|
||||
public Transfer_StaticEquipment()
|
||||
|
@ -394962,6 +395694,66 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Internalinspection", DbType="NVarChar(50)")]
|
||||
public string Internalinspection
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Internalinspection;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Internalinspection != value))
|
||||
{
|
||||
this.OnInternalinspectionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Internalinspection = value;
|
||||
this.SendPropertyChanged("Internalinspection");
|
||||
this.OnInternalinspectionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InternalsPacking", DbType="NVarChar(50)")]
|
||||
public string InternalsPacking
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InternalsPacking;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InternalsPacking != value))
|
||||
{
|
||||
this.OnInternalsPackingChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InternalsPacking = value;
|
||||
this.SendPropertyChanged("InternalsPacking");
|
||||
this.OnInternalsPackingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BOXupRecord", DbType="NVarChar(50)")]
|
||||
public string BOXupRecord
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._BOXupRecord;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._BOXupRecord != value))
|
||||
{
|
||||
this.OnBOXupRecordChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._BOXupRecord = value;
|
||||
this.SendPropertyChanged("BOXupRecord");
|
||||
this.OnBOXupRecordChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
|
Loading…
Reference in New Issue