提交试车代码
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
<Tabs>
|
||||
<f:Tab Title="管道一览表" BodyPadding="10px" Layout="Fit" runat="server">
|
||||
<Items>
|
||||
<f:Grid Height="450px" ID="GridZxtgd" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="PropertyId" DataKeyNames="PropertyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="GridZxtgd_PageIndexChange" OnSort="GridZxtgd_Sort" OnRowCommand="GridZxtgd_RowCommand">
|
||||
<f:Grid Height="550px" ID="GridZxtgd" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="PropertyId" DataKeyNames="PropertyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="GridZxtgd_PageIndexChange" OnSort="GridZxtgd_Sort" OnRowCommand="GridZxtgd_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" runat="server">
|
||||
<Items>
|
||||
@@ -262,7 +262,7 @@
|
||||
</f:Tab>
|
||||
<f:Tab Title="工艺设备一览表" BodyPadding="10px" runat="server">
|
||||
<Items>
|
||||
<f:Grid Height="450px" ID="GridZxtgy" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="TechnologyId" DataKeyNames="TechnologyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="GridZxtgy_PageIndexChange" OnSort="GridZxtgy_Sort" OnRowCommand="GridZxtgy_RowCommand">
|
||||
<f:Grid Height="550px" ID="GridZxtgy" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="TechnologyId" DataKeyNames="TechnologyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="GridZxtgy_PageIndexChange" OnSort="GridZxtgy_Sort" OnRowCommand="GridZxtgy_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" runat="server">
|
||||
<Items>
|
||||
@@ -374,7 +374,7 @@
|
||||
<Tabs>
|
||||
<f:Tab Title="SS子系统管道一览表" BodyPadding="10px" Layout="Fit" runat="server">
|
||||
<Items>
|
||||
<f:Grid Height="450px" ID="gvSsxtgdxz" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="PropertyId" DataKeyNames="PropertyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="gvSsxtgdxz_PageIndexChange" OnSort="gvSsxtgdxz_Sort" OnRowCommand="gvSsxtgdxz_RowCommand">
|
||||
<f:Grid Height="550px" ID="gvSsxtgdxz" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="PropertyId" DataKeyNames="PropertyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="gvSsxtgdxz_PageIndexChange" OnSort="gvSsxtgdxz_Sort" OnRowCommand="gvSsxtgdxz_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar4" runat="server">
|
||||
<Items>
|
||||
@@ -513,7 +513,7 @@
|
||||
|
||||
<f:Tab Title="SS子系统工艺设备一览表" BodyPadding="10px" runat="server">
|
||||
<Items>
|
||||
<f:Grid Height="450px" ID="gvSsxtgyxz" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="TechnologyId" DataKeyNames="TechnologyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="gvSsxtgyxz_PageIndexChange" OnSort="gvSsxtgyxz_Sort" OnRowCommand="gvSsxtgyxz_RowCommand">
|
||||
<f:Grid Height="550px" ID="gvSsxtgyxz" ShowBorder="true" ShowHeader="true" EnableCollapse="true" runat="server" DataIDField="TechnologyId" DataKeyNames="TechnologyId" AllowSorting="true" SortField="Sort" SortDirection="ASC" EnableColumnLines="true" AllowCellEditing="true" EnableMultiSelect="false" AllowPaging="true" IsDatabasePaging="true" PageSize="10" AllowFilters="true" OnPageIndexChange="gvSsxtgyxz_PageIndexChange" OnSort="gvSsxtgyxz_Sort" OnRowCommand="gvSsxtgyxz_RowCommand">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar5" runat="server">
|
||||
<Items>
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
rootNode.EnableClickEvent = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
var allPreRunLs = Funs.DB.PreRun_SysDevice.Where(p => p.ProjectId == this.CurrUser.LoginProjectId).ToList();
|
||||
var onePreRunLs = allPreRunLs.Where(p => p.PreRunLevel == 1);
|
||||
var onePreRunLs = allPreRunLs.Where(p => p.PreRunLevel == 1).OrderBy(x => x.Sort);
|
||||
foreach (var item in onePreRunLs)
|
||||
{
|
||||
TreeNode rootUnitNode = new TreeNode();//定义根节点
|
||||
@@ -71,7 +71,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
private void BindNodes(TreeNode node, List<PreRun_SysDevice> list, string parentId)
|
||||
{
|
||||
|
||||
var itemList = list.Where(p => p.ParentId == parentId).ToList();
|
||||
var itemList = list.Where(p => p.ParentId == parentId).OrderBy(x => x.Sort).ToList();
|
||||
if (itemList.Count > 0)
|
||||
{
|
||||
foreach (var item in itemList)
|
||||
@@ -305,8 +305,11 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
var existPropertys = Funs.DB.PreRun_PropertySysPiping.Where(a => pipingCodes.Contains(a.PipingCode) && a.SystemId == tvControlItem.SelectedNodeID && a.ProjectId == this.CurrUser.LoginProjectId).ToList();
|
||||
if (existPropertys.Count > 0)
|
||||
{
|
||||
ShowNotify($"管道号({string.Join(",", existPropertys.ConvertAll(s => s.PipingCode))})已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
//删除已经存在的信息
|
||||
Funs.DB.PreRun_PropertySysPiping.DeleteAllOnSubmit(existPropertys);
|
||||
Funs.DB.SubmitChanges();
|
||||
//ShowNotify($"管道号({string.Join(",", existPropertys.ConvertAll(s => s.PipingCode))})已存在!", MessageBoxIcon.Warning);
|
||||
//return;
|
||||
}
|
||||
List<PreRun_PropertySysPiping> list = new List<PreRun_PropertySysPiping>();
|
||||
//数据导入
|
||||
@@ -350,6 +353,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
ShowNotify("文件无数据!", MessageBoxIcon.Warning);
|
||||
}
|
||||
ZxtgdBrid();
|
||||
ShowNotify("导入成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -533,8 +537,11 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
var existTechnologys = Funs.DB.PreRun_TechnologySysPiping.Where(a => tagNumbers.Contains(a.TagNumber) && a.SystemId == tvControlItem.SelectedNodeID && a.ProjectId == this.CurrUser.LoginProjectId).ToList();
|
||||
if (existTechnologys.Count > 0)
|
||||
{
|
||||
ShowNotify($"设备位号({string.Join(",", existTechnologys.ConvertAll(s => s.TagNumber))})已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
//删除已经存在的信息
|
||||
Funs.DB.PreRun_TechnologySysPiping.DeleteAllOnSubmit(existTechnologys);
|
||||
Funs.DB.SubmitChanges();
|
||||
//ShowNotify($"设备位号({string.Join(",", existTechnologys.ConvertAll(s => s.TagNumber))})已存在!", MessageBoxIcon.Warning);
|
||||
//return;
|
||||
}
|
||||
string nameSpecificationStr = string.Empty;
|
||||
string materialStr = string.Empty;
|
||||
@@ -621,6 +628,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||
ShowNotify("文件无数据!", MessageBoxIcon.Warning);
|
||||
}
|
||||
ZxtgyBrid();
|
||||
ShowNotify("导入成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user