This commit is contained in:
2026-07-03 15:29:24 +08:00
16 changed files with 1726 additions and 67 deletions
@@ -0,0 +1,99 @@
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
values('33509812-66CE-41BC-81BA-1EF5E779EE8D','试压包划分','SYBData/TestPackageDivision.aspx',5,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
go
insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
values('4D6F0D04-C9B1-46F0-BAB6-DC12EE82EB45','33509812-66CE-41BC-81BA-1EF5E779EE8D','保存',1)
go
CREATE TABLE [dbo].[SYBData_TestPackageDivision](
[TestPackageDivisionId] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[TestPackageCode] [nvarchar](50) NULL,
[CompileMan] [nvarchar](50) NULL,
[CompileDate] [datetime] NULL,
CONSTRAINT [PK_SYBData_TestPackageDivision] PRIMARY KEY CLUSTERED
(
[TestPackageDivisionId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SYBData_TestPackageDivision] WITH CHECK ADD CONSTRAINT [FK_SYBData_TestPackageDivision_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO
ALTER TABLE [dbo].[SYBData_TestPackageDivision] CHECK CONSTRAINT [FK_SYBData_TestPackageDivision_Base_Project]
GO
ALTER TABLE [dbo].[SYBData_TestPackageDivision] WITH CHECK ADD CONSTRAINT [FK_SYBData_TestPackageDivision_Sys_User] FOREIGN KEY([CompileMan])
REFERENCES [dbo].[Sys_User] ([UserId])
GO
ALTER TABLE [dbo].[SYBData_TestPackageDivision] CHECK CONSTRAINT [FK_SYBData_TestPackageDivision_Sys_User]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_TestPackageDivision', @level2type=N'COLUMN',@level2name=N'TestPackageDivisionId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_TestPackageDivision', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压包号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_TestPackageDivision', @level2type=N'COLUMN',@level2name=N'TestPackageCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_TestPackageDivision', @level2type=N'COLUMN',@level2name=N'CompileMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_TestPackageDivision', @level2type=N'COLUMN',@level2name=N'CompileDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压包划分表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_TestPackageDivision'
GO
CREATE TABLE [dbo].[SYBData_ToIsoList](
[ToIsoId] [nvarchar](50) NOT NULL,
[TestPackageDivisionId] [nvarchar](50) NOT NULL,
[ISO_ID] [varchar](50) NOT NULL,
CONSTRAINT [PK_SYBData_ToIsoList] PRIMARY KEY CLUSTERED
(
[ToIsoId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SYBData_ToIsoList] WITH CHECK ADD CONSTRAINT [FK_SYBData_ToIsoList_HJGL_PW_IsoInfo] FOREIGN KEY([ISO_ID])
REFERENCES [dbo].[HJGL_PW_IsoInfo] ([ISO_ID])
GO
ALTER TABLE [dbo].[SYBData_ToIsoList] CHECK CONSTRAINT [FK_SYBData_ToIsoList_HJGL_PW_IsoInfo]
GO
ALTER TABLE [dbo].[SYBData_ToIsoList] WITH CHECK ADD CONSTRAINT [FK_SYBData_ToIsoList_SYBData_TestPackageDivision] FOREIGN KEY([TestPackageDivisionId])
REFERENCES [dbo].[SYBData_TestPackageDivision] ([TestPackageDivisionId])
GO
ALTER TABLE [dbo].[SYBData_ToIsoList] CHECK CONSTRAINT [FK_SYBData_ToIsoList_SYBData_TestPackageDivision]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ToIsoList', @level2type=N'COLUMN',@level2name=N'ToIsoId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压包划分id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ToIsoList', @level2type=N'COLUMN',@level2name=N'TestPackageDivisionId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管线id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ToIsoList', @level2type=N'COLUMN',@level2name=N'ISO_ID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'试压包管线列表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_ToIsoList'
GO
alter table SYBData_Cover add TestPackageDivisionId nvarchar(50)
go
ALTER TABLE [dbo].[SYBData_Cover] WITH CHECK ADD CONSTRAINT [FK_SYBData_Cover_SYBData_TestPackageDivision] FOREIGN KEY([TestPackageDivisionId])
REFERENCES [dbo].[SYBData_TestPackageDivision] ([TestPackageDivisionId])
GO
ALTER TABLE [dbo].[SYBData_Cover] CHECK CONSTRAINT [FK_SYBData_Cover_SYBData_TestPackageDivision]
GO
+2
View File
@@ -316,6 +316,8 @@
<Compile Include="SYBData\SlidingFixedService.cs" />
<Compile Include="SYBData\SpringSupportHangBracketService.cs" />
<Compile Include="SYBData\SYBData_FileDirectoryService.cs" />
<Compile Include="SYBData\TestPackageDivisionService.cs" />
<Compile Include="SYBData\ToIsoListService.cs" />
<Compile Include="WeldMat\BaseInfo\SpecificationsService.cs" />
<Compile Include="WeldMat\BaseInfo\StoremanInfoService.cs" />
<Compile Include="WeldMat\BaseInfo\SupplierService.cs" />
+12
View File
@@ -22,6 +22,16 @@ namespace BLL
return Funs.DB.SYBData_Cover.FirstOrDefault(e => e.ProjectId == projectId);
}
/// <summary>
/// 根据试压包id获取封面信息
/// </summary>
/// <param name="testPackageDivisionId"></param>
/// <returns></returns>
public static Model.SYBData_Cover GetConverByTestPackageDivisionId(string testPackageDivisionId)
{
return Funs.DB.SYBData_Cover.FirstOrDefault(e => e.TestPackageDivisionId == testPackageDivisionId);
}
/// <summary>
/// 添加封面
/// </summary>
@@ -37,6 +47,7 @@ namespace BLL
newCovert.PressureTestPackageCode = cover.PressureTestPackageCode;
newCovert.TestPressure = cover.TestPressure;
newCovert.TestDate = cover.TestDate;
newCovert.TestPackageDivisionId=cover.TestPackageDivisionId;
db.SYBData_Cover.InsertOnSubmit(newCovert);
db.SubmitChanges();
}
@@ -56,6 +67,7 @@ namespace BLL
newCovert.PressureTestPackageCode = cover.PressureTestPackageCode;
newCovert.TestPressure = cover.TestPressure;
newCovert.TestDate = cover.TestDate;
newCovert.TestPackageDivisionId = cover.TestPackageDivisionId;
db.SubmitChanges();
}
}
@@ -0,0 +1,63 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 试压包划分
/// </summary>
public class TestPackageDivisionService
{
/// <summary>
/// 根据主键获取试压包信息
/// </summary>
/// <param name="testPackageDivisionId"></param>
/// <returns></returns>
public static Model.SYBData_TestPackageDivision GetTestPackageDivisionById(string testPackageDivisionId)
{
return Funs.DB.SYBData_TestPackageDivision.FirstOrDefault(e => e.TestPackageDivisionId == testPackageDivisionId);
}
/// <summary>
/// 根据试压包号获取试压包信息
/// </summary>
/// <param name="projectId"></param>
/// <param name="code"></param>
/// <returns></returns>
public static Model.SYBData_TestPackageDivision GetTestPackageDivisionByCode(string projectId,string code)
{
return Funs.DB.SYBData_TestPackageDivision.FirstOrDefault(e => e.ProjectId == projectId && e.TestPackageCode == code);
}
/// <summary>
/// 根据项目id获取试压包信息列表
/// </summary>
/// <param name="projectId"></param>
/// <returns></returns>
public static List<Model.SYBData_TestPackageDivision> GetTestPackageDivisionListByProjectId(string projectId)
{
return (from x in Funs.DB.SYBData_TestPackageDivision where x.ProjectId == projectId select x).ToList();
}
/// <summary>
/// 添加
/// </summary>
/// <param name="testPackageDivision"></param>
public static void AddTestPackageDivision(Model.SYBData_TestPackageDivision testPackageDivision)
{
SGGLDB db = Funs.DB;
Model.SYBData_TestPackageDivision newData = new SYBData_TestPackageDivision();
newData.TestPackageDivisionId = testPackageDivision.TestPackageDivisionId;
newData.ProjectId = testPackageDivision.ProjectId;
newData.TestPackageCode = testPackageDivision.TestPackageCode;
newData.CompileMan = testPackageDivision.CompileMan;
newData.CompileDate = testPackageDivision.CompileDate;
db.SYBData_TestPackageDivision.InsertOnSubmit(newData);
db.SubmitChanges();
}
}
}
+31
View File
@@ -0,0 +1,31 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 试压包管线列表
/// </summary>
public class ToIsoListService
{
/// <summary>
/// 增加试压包管线列表
/// </summary>
/// <param name="toIsoList"></param>
public static void AddToIsoList(Model.SYBData_ToIsoList toIsoList)
{
SGGLDB db = Funs.DB;
Model.SYBData_ToIsoList newToIsoList = new SYBData_ToIsoList();
newToIsoList.ToIsoId = toIsoList.ToIsoId;
newToIsoList.TestPackageDivisionId= toIsoList.TestPackageDivisionId;
newToIsoList.ISO_ID = toIsoList.ISO_ID;
db.SYBData_ToIsoList.InsertOnSubmit(newToIsoList);
db.SubmitChanges();
}
}
}
@@ -1604,6 +1604,7 @@
<Content Include="SYBData\SlidingFixed.aspx" />
<Content Include="SYBData\SpringSupportHangBracket.aspx" />
<Content Include="SYBData\SYBDataList.aspx" />
<Content Include="SYBData\TestPackageDivision.aspx" />
<Content Include="WebService1.asmx" />
<Content Include="Welder\FilmInfoQuery.aspx" />
<Content Include="Welder\PerformanceInquiry.aspx" />
@@ -7733,6 +7734,13 @@
<Compile Include="SYBData\SYBDataList.aspx.designer.cs">
<DependentUpon>SYBDataList.aspx</DependentUpon>
</Compile>
<Compile Include="SYBData\TestPackageDivision.aspx.cs">
<DependentUpon>TestPackageDivision.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="SYBData\TestPackageDivision.aspx.designer.cs">
<DependentUpon>TestPackageDivision.aspx</DependentUpon>
</Compile>
<Compile Include="WebService1.asmx.cs">
<DependentUpon>WebService1.asmx</DependentUpon>
<SubType>Component</SubType>
+57 -8
View File
@@ -1,5 +1,7 @@
using Aspose.Words;
using Aspose.Words.Notes;
using BLL;
using FineUIPro.Web.common.BaseInfo;
using System;
using System.Collections.Generic;
using System.Data;
@@ -45,6 +47,21 @@ namespace FineUIPro.Web.SYBData
ViewState["ProjectId"] = value;
}
}
/// <summary>
/// 试压包号
/// </summary>
private string TestPackageDivisionId
{
get
{
return (string)ViewState["TestPackageDivisionId"];
}
set
{
ViewState["TestPackageDivisionId"] = value;
}
}
#endregion
#region
@@ -65,9 +82,9 @@ namespace FineUIPro.Web.SYBData
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.InitTreeMenu();//加载树
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.ProjectId = this.tvControlItem.SelectedNodeID;
DataInfo();
//this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
//this.ProjectId = this.tvControlItem.SelectedNodeID;
//DataInfo();
}
}
@@ -81,9 +98,9 @@ namespace FineUIPro.Web.SYBData
this.txtTestPressure.Text = string.Empty;
this.txtTestDate.Text = string.Empty;
if (!string.IsNullOrEmpty(this.ProjectId))
if (!string.IsNullOrEmpty(this.TestPackageDivisionId))
{
var data = BLL.CoverService.GetConverByProjectId(this.ProjectId);
var data = BLL.CoverService.GetConverByTestPackageDivisionId(this.TestPackageDivisionId);
if (data != null)
{
this.CoverId = data.CoverId;
@@ -99,6 +116,11 @@ namespace FineUIPro.Web.SYBData
//默认值
this.txtProjectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName;
this.txtUnitWorkName.Text = "管道安装工程";
var tp = BLL.TestPackageDivisionService.GetTestPackageDivisionById(this.TestPackageDivisionId);
if (tp != null)
{
this.txtPressureTestPackageCode.Text = tp.TestPackageCode;
}
}
}
}
@@ -133,6 +155,19 @@ namespace FineUIPro.Web.SYBData
rootProjectNode.ToolTip = item.ProjectName;
rootProjectNode.CommandName = "项目名称";
rootNode.Nodes.Add(rootProjectNode);
var testpackageList = BLL.TestPackageDivisionService.GetTestPackageDivisionListByProjectId(item.ProjectId);
foreach (var tp in testpackageList)
{
TreeNode newNode = new TreeNode();//定义根节点
newNode.Text = tp.TestPackageCode;
newNode.NodeID = tp.TestPackageDivisionId;
newNode.EnableClickEvent = true;
newNode.Expanded = true;
newNode.ToolTip = tp.TestPackageCode;
newNode.CommandName = "试压包号";
rootProjectNode.Nodes.Add(newNode);
}
}
}
#endregion
@@ -147,8 +182,16 @@ namespace FineUIPro.Web.SYBData
{
if (this.tvControlItem.SelectedNodeID != "0")
{
this.ProjectId = this.tvControlItem.SelectedNodeID;
DataInfo();
if (this.tvControlItem.SelectedNode.CommandName == "项目名称")
{
this.ProjectId = this.tvControlItem.SelectedNodeID;
}
else if (this.tvControlItem.SelectedNode.CommandName == "试压包号")
{
this.TestPackageDivisionId = this.tvControlItem.SelectedNodeID;
this.ProjectId = this.tvControlItem.SelectedNode.ParentNode.NodeID;
DataInfo();
}
}
}
#endregion
@@ -163,7 +206,7 @@ namespace FineUIPro.Web.SYBData
{
this.ProjectId = this.drpProjectId.SelectedValue;
this.InitTreeMenu();
this.tvControlItem.SelectedNodeID = this.ProjectId;
//this.tvControlItem.SelectedNodeID = this.ProjectId;
}
#endregion
@@ -172,7 +215,13 @@ namespace FineUIPro.Web.SYBData
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.SYBData_CoverMenuId, Const.BtnSave))
{
if(string.IsNullOrEmpty(this.TestPackageDivisionId))
{
Alert.ShowInTop("请选择试压包号!", MessageBoxIcon.Warning);
return;
}
Model.SYBData_Cover newData = new Model.SYBData_Cover();
newData.TestPackageDivisionId = this.TestPackageDivisionId;
newData.ProjectId = this.ProjectId;
newData.InstallationName = this.txtInstallationName.Text.Trim();
newData.UnitWorkName = this.txtUnitWorkName.Text.Trim();
@@ -13,6 +13,38 @@ namespace FineUIPro.Web.SYBData
{
public partial class SYBDataList : PageBase
{
#region
/// <summary>
/// 项目Id
/// </summary>
private string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
/// <summary>
/// 试压包号
/// </summary>
private string TestPackageDivisionId
{
get
{
return (string)ViewState["TestPackageDivisionId"];
}
set
{
ViewState["TestPackageDivisionId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
@@ -31,8 +63,8 @@ namespace FineUIPro.Web.SYBData
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.InitTreeMenu();//加载树
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.BindGrid();
//this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
//this.BindGrid();
}
}
#endregion
@@ -66,6 +98,19 @@ namespace FineUIPro.Web.SYBData
rootProjectNode.ToolTip = item.ProjectName;
rootProjectNode.CommandName = "项目名称";
rootNode.Nodes.Add(rootProjectNode);
var testpackageList = BLL.TestPackageDivisionService.GetTestPackageDivisionListByProjectId(item.ProjectId);
foreach (var tp in testpackageList)
{
TreeNode newNode = new TreeNode();//定义根节点
newNode.Text = tp.TestPackageCode;
newNode.NodeID = tp.TestPackageDivisionId;
newNode.EnableClickEvent = true;
newNode.Expanded = true;
newNode.ToolTip = tp.TestPackageCode;
newNode.CommandName = "试压包号";
rootProjectNode.Nodes.Add(newNode);
}
}
}
#endregion
@@ -80,7 +125,16 @@ namespace FineUIPro.Web.SYBData
{
if (this.tvControlItem.SelectedNodeID != "0")
{
this.BindGrid();
if (this.tvControlItem.SelectedNode.CommandName == "项目名称")
{
this.ProjectId = this.tvControlItem.SelectedNodeID;
}
else if (this.tvControlItem.SelectedNode.CommandName == "试压包号")
{
this.TestPackageDivisionId = this.tvControlItem.SelectedNodeID;
this.ProjectId = this.tvControlItem.SelectedNode.ParentNode.NodeID;
this.BindGrid();
}
}
}
#endregion
@@ -155,9 +209,10 @@ namespace FineUIPro.Web.SYBData
///<param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.ProjectId = this.drpProjectId.SelectedValue;
//this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
this.InitTreeMenu();
BindGrid();
//BindGrid();
}
#endregion
@@ -237,9 +292,7 @@ namespace FineUIPro.Web.SYBData
/// <param name="e"></param>
protected void btnPrint_Click(object sender, EventArgs e)
{
string projectId = this.tvControlItem.SelectedNodeID;
if (projectId != null)
if (!string.IsNullOrEmpty(this.ProjectId))
{
string initTemplatePath = "";
string rootPath = Server.MapPath("~/");
@@ -271,7 +324,11 @@ namespace FineUIPro.Web.SYBData
BLL.Common.FastReportService.AddFastreportTable(dt);
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
keyValuePairs.Add("PressureTestPackageCode", "");
var tp = BLL.TestPackageDivisionService.GetTestPackageDivisionById(this.TestPackageDivisionId);
if (tp != null)
{
keyValuePairs.Add("PressureTestPackageCode", tp.TestPackageCode);
}
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
initTemplatePath = "File\\Fastreport\\SYBData\\试压包资料目录.frx";
@@ -0,0 +1,139 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestPackageDivision.aspx.cs" Inherits="FineUIPro.Web.SYBData.TestPackageDivision" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>试压包划分</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="管线信息"
TitleToolTip="管线信息" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="施工号" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged"></f:DropDownList>
<f:DropDownList ID="drpIsoId" runat="server" Label="管线号" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged"></f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:TextBox ID="txtTestPackageCode" runat="server" Label="试压包号" LabelAlign="Right" ShowRedStar="true"></f:TextBox>
<f:Button ID="btnSave" Text="保存" Icon="SystemSave" runat="server" OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管线信息" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ISO_ID" AllowCellEditing="true" AllowColumnLocking="true"
EnableColumnLines="true" ClicksToEdit="2" DataIDField="ISO_ID" AllowSorting="true"
SortField="ISO_IsoNo" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true"
IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" AutoScroll="true" OnRowCommand="Grid1_RowCommand">
<Columns>
<f:CheckBoxField ColumnID="CheckBoxField2" RenderAsStaticField="false" DataField="ISO_ID"
AutoPostBack="true" CommandName="selected" Locked="true" Width="40px" />
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField HeaderText="管线号" ColumnID="ISO_IsoNo" DataField="ISO_IsoNo" SortField="ISO_IsoNo"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" Locked="true">
</f:RenderField>
<f:RenderField HeaderText="管道等级" ColumnID="IDName" DataField="IDName" SortField="IDName"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px" Locked="true">
</f:RenderField>
<f:RenderField HeaderText="执行标准" ColumnID="ISO_Executive" DataField="ISO_Executive"
SortField="ISO_Executive" FieldType="String" HeaderTextAlign="Center" TextAlign="Left"
Width="150px" Locked="true">
</f:RenderField>
<f:RenderField HeaderText="材质" ColumnID="STECode" DataField="STECode" SortField="STECode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" Locked="true">
</f:RenderField>
<f:RenderField HeaderText="材质标准" ColumnID="MaterialStandardCode" DataField="MaterialStandardCode"
SortField="MaterialStandardCode" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="120px" Locked="true">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="SERName" DataField="SERName" SortField="SERName"
FieldType="String" HeaderText="介质" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="ISO_TotalDin" DataField="ISO_TotalDin" FieldType="Double"
HeaderText="总达因数" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="ISO_JointQty" DataField="ISO_JointQty" FieldType="Int"
HeaderText="总焊口量" HeaderTextAlign="Center" TextAlign="Right">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PressureTestPackageNo" DataField="PressureTestPackageNo"
SortField="PressureTestPackageNo" FieldType="String" HeaderText="试压包号" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="OperatingPressure" DataField="OperatingPressure"
SortField="OperatingPressure" FieldType="String" HeaderText="操作压力" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="OperatingTemperature" DataField="OperatingTemperature"
SortField="OperatingTemperature" FieldType="String" HeaderText="操作温度" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PipeLineClass" DataField="PipeLineClass" SortField="PipeLineClass"
FieldType="String" HeaderText="管道类别" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PipeLineLength" DataField="PipeLineLength"
SortField="PipeLineLength" FieldType="Float" HeaderText="管线长度" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="ISO_Paint" DataField="ISO_Paint" SortField="ISO_Paint"
FieldType="String" HeaderText="涂漆类别" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField ColumnID="ISO_Insulator" DataField="ISO_Insulator" SortField="ISO_Insulator"
FieldType="String" HeaderText="绝热类别" HeaderTextAlign="Center" TextAlign="Left"
Width="100px">
</f:RenderField>
<f:RenderField HeaderText="设计压力" ColumnID="ISO_DesignPress" DataField="ISO_DesignPress"
FieldType="Double" HeaderTextAlign="Center" TextAlign="Right" Width="90px">
</f:RenderField>
<f:RenderField HeaderText="设计温度" ColumnID="ISO_DesignTemperature" DataField="ISO_DesignTemperature"
FieldType="Double" HeaderTextAlign="Center" TextAlign="Right" Width="90px">
</f:RenderField>
<f:RenderField HeaderText="耐压试验" ColumnID="ISO_TestPress" DataField="ISO_TestPress"
FieldType="Double" HeaderTextAlign="Center" TextAlign="Right" Width="90px">
</f:RenderField>
<f:RenderField HeaderText="泄露性试验" ColumnID="LeakageTest" DataField="LeakageTest"
FieldType="String" HeaderTextAlign="Center" TextAlign="Right" Width="90px">
</f:RenderField>
<f:RenderField HeaderText="检测类别序号" ColumnID="TestCategoryNum" DataField="TestCategoryNum"
SortField="TestCategoryNum" FieldType="String" HeaderTextAlign="Center" TextAlign="Left"
Width="100px">
</f:RenderField>
<f:RenderField HeaderText="备注" ColumnID="ISO_Remark" DataField="ISO_Remark" SortField="ISO_Remark"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
</f:RenderField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="30" Value="30" />
<f:ListItem Text="50" Value="50" />
<f:ListItem Text="100" Value="100" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="管线信息维护" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="960px" Height="560px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,264 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
namespace FineUIPro.Web.SYBData
{
public partial class TestPackageDivision : PageBase
{
#region
/// <summary>
/// 选中项
/// </summary>
public string SelectedList
{
get
{
return (string)ViewState["SelectedList"];
}
set
{
ViewState["SelectedList"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.drpProjectId.DataTextField = "ProjectCode";
this.drpProjectId.DataValueField = "ProjectId";
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUser(this.CurrUser.UserId, "1");
this.drpProjectId.DataBind();
Funs.FineUIPleaseSelect(this.drpProjectId);
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
this.drpIsoId.DataTextField = "ISO_IsoNo";
this.drpIsoId.DataValueField = "ISO_ID";
this.drpIsoId.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.CurrUser.LoginProjectId);
this.drpIsoId.DataBind();
Funs.FineUIPleaseSelect(this.drpIsoId);
BindGrid();
}
}
/// <summary>
/// 数据绑定
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT ProjectId,ISO_ID,STE_ID,SER_ID,SERName,ISO_IsoNo,ISO_TotalDin
,ISO_Insulator,STECode,ISO_Executive,ISO_Specification,ISO_JointQty,IDName
,ISO_DesignPress,ISO_DesignTemperature,ISO_TestPress,ISO_TestTemperature
,ISO_Remark,MaterialStandardId,PressureTestPackageNo,OperatingPressure
,OperatingTemperature,PipeLineClass,PipeLineLength,LeakageTest
,TestCategoryNum,MaterialStandardCode
FROM HJGL_View_IsoInfo WHERE ProjectId= @ProjectId
and NOT EXISTS (SELECT 1 FROM SYBData_ToIsoList toIsoList WHERE toIsoList.ISO_ID = HJGL_View_IsoInfo.ISO_ID)";
List<SqlParameter> listStr = new List<SqlParameter>();
if (this.drpProjectId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpProjectId.SelectedValue))
{
listStr.Add(new SqlParameter("@ProjectId", this.drpProjectId.SelectedValue));
}
else
{
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
}
if (!string.IsNullOrEmpty(this.drpIsoId.SelectedValue) && this.drpIsoId.SelectedValue != BLL.Const._Null)
{
strSql += " AND ISO_ID = @isoId";
listStr.Add(new SqlParameter("@isoId", this.drpIsoId.SelectedValue));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
// 2.获取当前分页数据
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
}
#endregion
#region
#region
/// <summary>
/// 页索引改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
#endregion
#region
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, GridSortEventArgs e)
{
Grid1.SortDirection = e.SortDirection;
Grid1.SortField = e.SortField;
BindGrid();
}
#endregion
#region
/// <summary>
/// 分页选择下拉改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
#endregion
#endregion
#region DropDownLists下拉选择事件
/// <summary>
/// 项目下拉选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.drpIsoId.Items.Clear();
if (this.drpProjectId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpProjectId.SelectedValue))
{
this.drpIsoId.DataTextField = "ISO_IsoNo";
this.drpIsoId.DataValueField = "ISO_ID";
this.drpIsoId.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.drpProjectId.SelectedValue);
this.drpIsoId.DataBind();
Funs.FineUIPleaseSelect(this.drpIsoId);
this.drpProjectId.SelectedIndex = 0;
}
BindGrid();
}
#endregion
#region
/// <summary>
/// 保存
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
string testPackageDivisionId = string.Empty;
if (string.IsNullOrWhiteSpace(SelectedList))
{
Alert.Show("请先勾选要划分试压包的管线!");
return;
}
else
{
SelectedList = SelectedList.Substring(0, SelectedList.LastIndexOf('|'));
}
if (string.IsNullOrEmpty(this.txtTestPackageCode.Text.Trim()))
{
Alert.Show("请输入试压包号!");
return;
}
var tp = BLL.TestPackageDivisionService.GetTestPackageDivisionByCode(this.drpProjectId.SelectedValue, this.txtTestPackageCode.Text.Trim());
if (tp == null)
{
Model.SYBData_TestPackageDivision newTestPackage = new Model.SYBData_TestPackageDivision();
testPackageDivisionId = SQLHelper.GetNewID();
newTestPackage.TestPackageDivisionId = testPackageDivisionId;
newTestPackage.ProjectId = this.drpProjectId.SelectedValue;
newTestPackage.TestPackageCode = this.txtTestPackageCode.Text.Trim();
newTestPackage.CompileMan = this.CurrUser.UserId;
newTestPackage.CompileDate = DateTime.Now;
BLL.TestPackageDivisionService.AddTestPackageDivision(newTestPackage);
}
else
{
testPackageDivisionId = tp.TestPackageDivisionId;
}
List<string> list = Funs.GetStrListByStr(SelectedList, '|');
foreach (var isoId in list)
{
Model.SYBData_ToIsoList newToIsoList = new Model.SYBData_ToIsoList();
newToIsoList.ToIsoId = SQLHelper.GetNewID();
newToIsoList.TestPackageDivisionId = testPackageDivisionId;
newToIsoList.ISO_ID = isoId;
BLL.ToIsoListService.AddToIsoList(newToIsoList);
}
SelectedList = string.Empty;
ShowNotify("保存成功!", MessageBoxIcon.Success);
BindGrid();
}
#endregion
#region
/// <summary>
/// 关闭弹出窗体
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
#endregion
#region Grid选择事件
/// <summary>
/// Grid选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "selected")
{
CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn(e.ColumnIndex);
bool checkState = checkField.GetCheckedState(e.RowIndex);
string isoId = Grid1.DataKeys[e.RowIndex][0].ToString();
if (checkState)
{
// 追加选中ID,分隔符|
if (!string.IsNullOrEmpty(SelectedList))
{
if (!SelectedList.Contains(isoId))
{
SelectedList += isoId + "|";
}
}
else
{
SelectedList += isoId + "|";
}
}
else
{
// 取消勾选,移除对应ID
SelectedList = SelectedList.Replace(isoId + "|", "");
}
}
}
#endregion
}
}
@@ -0,0 +1,152 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.SYBData
{
public partial class TestPackageDivision
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// drpProjectId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectId;
/// <summary>
/// drpIsoId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIsoId;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// txtTestPackageCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTestPackageCode;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
}
}
+80 -49
View File
@@ -133,55 +133,86 @@
</f:Panel>
<f:Panel ID="Panel8" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="true" Title="焊口返修超期未处理预警" AutoScroll="true">
<Items>
<f:TabStrip ID="TabStrip1" ShowBorder="true" TabPosition="Top"
EnableTabCloseMenu="false" ActiveTabIndex="0" runat="server" Height="285">
<Tabs>
<f:Tab Title="焊口返修超期未焊接" BodyPadding="0px" Layout="Fit" runat="server">
<Items>
<f:Grid ID="GridRepair" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="true" runat="server" BoxFlex="0" DataKeyNames="RepairItemRecordId"
AllowSorting="true" SortField="FeedbackDate" SortDirection="ASC" OnSort="GridRepair_Sort"
EnableColumnLines="false" EnableRowLines="false" DataIDField="RepairItemRecordId">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:DropDownList ID="drpPro" runat="server" Label="项目号" LabelAlign="Right" EnableEdit="true"
Width="250px" LabelWidth="70px" AutoPostBack="true" OnSelectedIndexChanged="drpPro_SelectedIndexChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill3" runat="server">
</f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField ColumnID="ProjectCode" DataField="ProjectCode" FieldType="String"
HeaderText="施工号" HeaderTextAlign="Center" TextAlign="left" Width="130px">
</f:RenderField>
<f:RenderField ColumnID="ISO_IsoNo" DataField="ISO_IsoNo" FieldType="String"
HeaderText="管线号" HeaderTextAlign="Center" TextAlign="left" Width="180px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField ColumnID="JOT_JointNo" DataField="JOT_JointNo" FieldType="String"
HeaderText="焊口号" HeaderTextAlign="Center" TextAlign="left" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="FilmNum" DataField="FilmNum" FieldType="String"
HeaderText="底片编号" HeaderTextAlign="Center" TextAlign="left" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="FeedbackDate" DataField="FeedbackDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="反馈日期" HeaderTextAlign="Center" TextAlign="left" Width="120px">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Tab>
<f:Tab Title="焊口返修超期未委托" BodyPadding="10px"
runat="server">
<Items>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
<f:TabStrip ID="TabStrip1" ShowBorder="true" TabPosition="Top" AutoPostBack="true" OnTabIndexChanged="TabStrip1_TabIndexChanged"
EnableTabCloseMenu="false" ActiveTabIndex="0" runat="server" Height="285">
<Tabs>
<f:Tab Title="焊口返修超期未焊接" BodyPadding="0px" Layout="Fit" runat="server">
<Items>
<f:Grid ID="GridRepair" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="true" runat="server" BoxFlex="0" DataKeyNames="RepairItemRecordId"
AllowSorting="true" SortField="FeedbackDate" SortDirection="ASC" OnSort="GridRepair_Sort"
EnableColumnLines="false" EnableRowLines="false" DataIDField="RepairItemRecordId">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:DropDownList ID="drpPro" runat="server" Label="项目号" LabelAlign="Right" EnableEdit="true"
Width="250px" LabelWidth="70px" AutoPostBack="true" OnSelectedIndexChanged="drpPro_SelectedIndexChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill3" runat="server">
</f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField ColumnID="ProjectCode" DataField="ProjectCode" FieldType="String"
HeaderText="施工号" HeaderTextAlign="Center" TextAlign="left" Width="130px">
</f:RenderField>
<f:RenderField ColumnID="ISO_IsoNo" DataField="ISO_IsoNo" FieldType="String"
HeaderText="管线号" HeaderTextAlign="Center" TextAlign="left" Width="180px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField ColumnID="JOT_JointNo" DataField="JOT_JointNo" FieldType="String"
HeaderText="焊口号" HeaderTextAlign="Center" TextAlign="left" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="FilmNum" DataField="FilmNum" FieldType="String"
HeaderText="底片编号" HeaderTextAlign="Center" TextAlign="left" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="FeedbackDate" DataField="FeedbackDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="反馈日期" HeaderTextAlign="Center" TextAlign="left" Width="120px">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Tab>
<f:Tab Title="焊口返修超期未委托" BodyPadding="0px"
runat="server">
<Items>
<f:Grid ID="GridRepairNoTrust" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="true" runat="server" BoxFlex="0" DataKeyNames="RepairItemRecordId"
AllowSorting="true" SortField="FeedbackDate" SortDirection="ASC" OnSort="GridRepair_Sort"
EnableColumnLines="false" EnableRowLines="false" DataIDField="RepairItemRecordId">
<Toolbars>
<f:Toolbar ID="Toolbar4" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:DropDownList ID="drpProject2" runat="server" Label="项目号" LabelAlign="Right" EnableEdit="true"
Width="250px" LabelWidth="70px" AutoPostBack="true" OnSelectedIndexChanged="drpProject2_SelectedIndexChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill4" runat="server">
</f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField ColumnID="ProjectCode" DataField="ProjectCode" FieldType="String"
HeaderText="施工号" HeaderTextAlign="Center" TextAlign="left" Width="130px">
</f:RenderField>
<f:RenderField ColumnID="ISO_IsoNo" DataField="ISO_IsoNo" FieldType="String"
HeaderText="管线号" HeaderTextAlign="Center" TextAlign="left" Width="180px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField ColumnID="JOT_JointNo" DataField="JOT_JointNo" FieldType="String"
HeaderText="焊口号" HeaderTextAlign="Center" TextAlign="left" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="FilmNum" DataField="FilmNum" FieldType="String"
HeaderText="底片编号" HeaderTextAlign="Center" TextAlign="left" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="FeedbackDate" DataField="FeedbackDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="反馈日期" HeaderTextAlign="Center" TextAlign="left" Width="120px">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Tab>
</Tabs>
</f:TabStrip>
</Items>
</f:Panel>
</Items>
@@ -34,6 +34,7 @@ namespace FineUIPro.Web.common
Funs.FineUIPleaseSelect(this.drpPro);
this.drpPro.SelectedValue = this.CurrUser.LoginProjectId;
//委托单不为null且 对应批明细的委托单明细状态为2
List<Model.HJGL_BO_Batch> Allbatch = (from x in Funs.DB.HJGL_BO_Batch
where x.ProjectId == this.drpProject.SelectedValue && !x.AskCompleteDate.HasValue
@@ -409,6 +410,7 @@ namespace FineUIPro.Web.common
BindBatch();
}
#region
private void BindRepair()
{
string strSql = @"select repairItemRecord.RepairItemRecordId,repairItemRecord.ProjectId,repairItemRecord.ISO_ID,repairItemRecord.JOT_ID,repairItemRecord.FilmNum,repairItemRecord.FeedbackDate,
@@ -442,5 +444,60 @@ namespace FineUIPro.Web.common
{
BindRepair();
}
#endregion
#region
private void BindRepairNoTrust()
{
string strSql = @"select repairItemRecord.RepairItemRecordId,repairItemRecord.ProjectId,repairItemRecord.ISO_ID,repairItemRecord.JOT_ID,repairItemRecord.FilmNum,repairItemRecord.FeedbackDate,
jointInfo.JOT_JointNo,isoInfo.ISO_IsoNo,project.ProjectCode from HJGL_CH_RepairItemRecord repairItemRecord
left join HJGL_PW_JointInfo jointInfo on jointInfo.JOT_ID = repairItemRecord.JOT_ID
left join HJGL_PW_IsoInfo isoInfo on isoInfo.ISO_ID = jointInfo.ISO_ID
left join Base_Project project on project.ProjectId = repairItemRecord.ProjectId
where repairItemRecord.ProjectId = @projectId";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.drpProject2.SelectedValue) && this.drpProject2.SelectedValue != BLL.Const._Null)
{
listStr.Add(new SqlParameter("@projectId", this.drpPro.SelectedValue));
}
else
{
listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
}
strSql += " AND DateDiff(d, repairItemRecord.FeedbackDate, GETDATE()) > 3 and repairItemRecord.IsWeld = 1 and NOT EXISTS (SELECT 1 FROM HJGL_CH_RepairItem repairItem WHERE repairItem.RepairItemRecordId = repairItemRecord.RepairItemRecordId) order by repairItemRecord.FeedbackDate,repairItemRecord.FilmNum asc";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
this.GridRepairNoTrust.DataSource = tb;
this.GridRepairNoTrust.DataBind();
}
protected void GridRepairNoTrust_Sort(object sender, GridSortEventArgs e)
{
BindRepairNoTrust();
}
protected void drpProject2_SelectedIndexChanged(object sender, EventArgs e)
{
BindRepairNoTrust();
}
#endregion
protected void TabStrip1_TabIndexChanged(object sender, EventArgs e)
{
if (TabStrip1.ActiveTabIndex == 1)//返修超期已焊接未委托
{
this.drpProject2.DataTextField = "ProjectCode";
this.drpProject2.DataValueField = "ProjectId";
this.drpProject2.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
this.drpProject2.DataBind();
Funs.FineUIPleaseSelect(this.drpProject2);
this.drpProject2.SelectedValue = this.CurrUser.LoginProjectId;
BindRepairNoTrust();
}
else //返修超期未焊接
{
BindRepair();
}
}
}
}
+36
View File
@@ -293,6 +293,42 @@ namespace FineUIPro.Web.common
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill3;
/// <summary>
/// GridRepairNoTrust 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid GridRepairNoTrust;
/// <summary>
/// Toolbar4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar4;
/// <summary>
/// drpProject2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProject2;
/// <summary>
/// ToolbarFill4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill4;
/// <summary>
/// Window1 控件。
/// </summary>
+659
View File
@@ -620,6 +620,12 @@ namespace Model
partial void InsertSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance);
partial void UpdateSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance);
partial void DeleteSYBData_SpringSupportHangBracket(SYBData_SpringSupportHangBracket instance);
partial void InsertSYBData_TestPackageDivision(SYBData_TestPackageDivision instance);
partial void UpdateSYBData_TestPackageDivision(SYBData_TestPackageDivision instance);
partial void DeleteSYBData_TestPackageDivision(SYBData_TestPackageDivision instance);
partial void InsertSYBData_ToIsoList(SYBData_ToIsoList instance);
partial void UpdateSYBData_ToIsoList(SYBData_ToIsoList instance);
partial void DeleteSYBData_ToIsoList(SYBData_ToIsoList instance);
partial void InsertSys_ButtonPower(Sys_ButtonPower instance);
partial void UpdateSys_ButtonPower(Sys_ButtonPower instance);
partial void DeleteSys_ButtonPower(Sys_ButtonPower instance);
@@ -2605,6 +2611,22 @@ namespace Model
}
}
public System.Data.Linq.Table<SYBData_TestPackageDivision> SYBData_TestPackageDivision
{
get
{
return this.GetTable<SYBData_TestPackageDivision>();
}
}
public System.Data.Linq.Table<SYBData_ToIsoList> SYBData_ToIsoList
{
get
{
return this.GetTable<SYBData_ToIsoList>();
}
}
public System.Data.Linq.Table<Sys_ButtonPower> Sys_ButtonPower
{
get
@@ -4978,6 +5000,8 @@ namespace Model
private EntitySet<SYBData_SpringSupportHangBracket> _SYBData_SpringSupportHangBracket;
private EntitySet<SYBData_TestPackageDivision> _SYBData_TestPackageDivision;
private EntitySet<Sys_DataInTemp> _Sys_DataInTemp;
private EntitySet<Weld_ProjectPlan> _Weld_ProjectPlan;
@@ -5138,6 +5162,7 @@ namespace Model
this._SYBData_PressureTestPackageList = new EntitySet<SYBData_PressureTestPackageList>(new Action<SYBData_PressureTestPackageList>(this.attach_SYBData_PressureTestPackageList), new Action<SYBData_PressureTestPackageList>(this.detach_SYBData_PressureTestPackageList));
this._SYBData_SlidingFixed = new EntitySet<SYBData_SlidingFixed>(new Action<SYBData_SlidingFixed>(this.attach_SYBData_SlidingFixed), new Action<SYBData_SlidingFixed>(this.detach_SYBData_SlidingFixed));
this._SYBData_SpringSupportHangBracket = new EntitySet<SYBData_SpringSupportHangBracket>(new Action<SYBData_SpringSupportHangBracket>(this.attach_SYBData_SpringSupportHangBracket), new Action<SYBData_SpringSupportHangBracket>(this.detach_SYBData_SpringSupportHangBracket));
this._SYBData_TestPackageDivision = new EntitySet<SYBData_TestPackageDivision>(new Action<SYBData_TestPackageDivision>(this.attach_SYBData_TestPackageDivision), new Action<SYBData_TestPackageDivision>(this.detach_SYBData_TestPackageDivision));
this._Sys_DataInTemp = new EntitySet<Sys_DataInTemp>(new Action<Sys_DataInTemp>(this.attach_Sys_DataInTemp), new Action<Sys_DataInTemp>(this.detach_Sys_DataInTemp));
this._Weld_ProjectPlan = new EntitySet<Weld_ProjectPlan>(new Action<Weld_ProjectPlan>(this.attach_Weld_ProjectPlan), new Action<Weld_ProjectPlan>(this.detach_Weld_ProjectPlan));
this._Weld_RecycleMat = new EntitySet<Weld_RecycleMat>(new Action<Weld_RecycleMat>(this.attach_Weld_RecycleMat), new Action<Weld_RecycleMat>(this.detach_Weld_RecycleMat));
@@ -6886,6 +6911,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_TestPackageDivision_Base_Project", Storage="_SYBData_TestPackageDivision", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<SYBData_TestPackageDivision> SYBData_TestPackageDivision
{
get
{
return this._SYBData_TestPackageDivision;
}
set
{
this._SYBData_TestPackageDivision.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Sys_DataInTemp_Base_Project", Storage="_Sys_DataInTemp", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet<Sys_DataInTemp> Sys_DataInTemp
{
@@ -8027,6 +8065,18 @@ namespace Model
entity.Base_Project = null;
}
private void attach_SYBData_TestPackageDivision(SYBData_TestPackageDivision entity)
{
this.SendPropertyChanging();
entity.Base_Project = this;
}
private void detach_SYBData_TestPackageDivision(SYBData_TestPackageDivision entity)
{
this.SendPropertyChanging();
entity.Base_Project = null;
}
private void attach_Sys_DataInTemp(Sys_DataInTemp entity)
{
this.SendPropertyChanging();
@@ -46865,6 +46915,8 @@ namespace Model
private EntitySet<HJGL_PW_JointInfo> _HJGL_PW_JointInfo;
private EntitySet<SYBData_ToIsoList> _SYBData_ToIsoList;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -46971,6 +47023,7 @@ namespace Model
this._HJGL_BS_Steel = default(EntityRef<HJGL_BS_Steel>);
this._Project_WorkArea = default(EntityRef<Project_WorkArea>);
this._HJGL_PW_JointInfo = new EntitySet<HJGL_PW_JointInfo>(new Action<HJGL_PW_JointInfo>(this.attach_HJGL_PW_JointInfo), new Action<HJGL_PW_JointInfo>(this.detach_HJGL_PW_JointInfo));
this._SYBData_ToIsoList = new EntitySet<SYBData_ToIsoList>(new Action<SYBData_ToIsoList>(this.attach_SYBData_ToIsoList), new Action<SYBData_ToIsoList>(this.detach_SYBData_ToIsoList));
OnCreated();
}
@@ -48183,6 +48236,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_ToIsoList_HJGL_PW_IsoInfo", Storage="_SYBData_ToIsoList", ThisKey="ISO_ID", OtherKey="ISO_ID", DeleteRule="NO ACTION")]
public EntitySet<SYBData_ToIsoList> SYBData_ToIsoList
{
get
{
return this._SYBData_ToIsoList;
}
set
{
this._SYBData_ToIsoList.Assign(value);
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -48334,6 +48400,18 @@ namespace Model
this.SendPropertyChanging();
entity.HJGL_PW_IsoInfo = null;
}
private void attach_SYBData_ToIsoList(SYBData_ToIsoList entity)
{
this.SendPropertyChanging();
entity.HJGL_PW_IsoInfo = this;
}
private void detach_SYBData_ToIsoList(SYBData_ToIsoList entity)
{
this.SendPropertyChanging();
entity.HJGL_PW_IsoInfo = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.HJGL_PW_JointChange")]
@@ -118017,8 +118095,12 @@ namespace Model
private System.Nullable<System.DateTime> _TestDate;
private string _TestPackageDivisionId;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<SYBData_TestPackageDivision> _SYBData_TestPackageDivision;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -118037,11 +118119,14 @@ namespace Model
partial void OnTestPressureChanged();
partial void OnTestDateChanging(System.Nullable<System.DateTime> value);
partial void OnTestDateChanged();
partial void OnTestPackageDivisionIdChanging(string value);
partial void OnTestPackageDivisionIdChanged();
#endregion
public SYBData_Cover()
{
this._Base_Project = default(EntityRef<Base_Project>);
this._SYBData_TestPackageDivision = default(EntityRef<SYBData_TestPackageDivision>);
OnCreated();
}
@@ -118189,6 +118274,30 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackageDivisionId", DbType="NVarChar(50)")]
public string TestPackageDivisionId
{
get
{
return this._TestPackageDivisionId;
}
set
{
if ((this._TestPackageDivisionId != value))
{
if (this._SYBData_TestPackageDivision.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnTestPackageDivisionIdChanging(value);
this.SendPropertyChanging();
this._TestPackageDivisionId = value;
this.SendPropertyChanged("TestPackageDivisionId");
this.OnTestPackageDivisionIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_Cover_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@@ -118223,6 +118332,40 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_Cover_SYBData_TestPackageDivision", Storage="_SYBData_TestPackageDivision", ThisKey="TestPackageDivisionId", OtherKey="TestPackageDivisionId", IsForeignKey=true)]
public SYBData_TestPackageDivision SYBData_TestPackageDivision
{
get
{
return this._SYBData_TestPackageDivision.Entity;
}
set
{
SYBData_TestPackageDivision previousValue = this._SYBData_TestPackageDivision.Entity;
if (((previousValue != value)
|| (this._SYBData_TestPackageDivision.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._SYBData_TestPackageDivision.Entity = null;
previousValue.SYBData_Cover.Remove(this);
}
this._SYBData_TestPackageDivision.Entity = value;
if ((value != null))
{
value.SYBData_Cover.Add(this);
this._TestPackageDivisionId = value.TestPackageDivisionId;
}
else
{
this._TestPackageDivisionId = default(string);
}
this.SendPropertyChanged("SYBData_TestPackageDivision");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -119671,6 +119814,494 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_TestPackageDivision")]
public partial class SYBData_TestPackageDivision : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _TestPackageDivisionId;
private string _ProjectId;
private string _TestPackageCode;
private string _CompileMan;
private System.Nullable<System.DateTime> _CompileDate;
private EntitySet<SYBData_Cover> _SYBData_Cover;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Sys_User> _Sys_User;
private EntitySet<SYBData_ToIsoList> _SYBData_ToIsoList;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnTestPackageDivisionIdChanging(string value);
partial void OnTestPackageDivisionIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnTestPackageCodeChanging(string value);
partial void OnTestPackageCodeChanged();
partial void OnCompileManChanging(string value);
partial void OnCompileManChanged();
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
partial void OnCompileDateChanged();
#endregion
public SYBData_TestPackageDivision()
{
this._SYBData_Cover = new EntitySet<SYBData_Cover>(new Action<SYBData_Cover>(this.attach_SYBData_Cover), new Action<SYBData_Cover>(this.detach_SYBData_Cover));
this._Base_Project = default(EntityRef<Base_Project>);
this._Sys_User = default(EntityRef<Sys_User>);
this._SYBData_ToIsoList = new EntitySet<SYBData_ToIsoList>(new Action<SYBData_ToIsoList>(this.attach_SYBData_ToIsoList), new Action<SYBData_ToIsoList>(this.detach_SYBData_ToIsoList));
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackageDivisionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string TestPackageDivisionId
{
get
{
return this._TestPackageDivisionId;
}
set
{
if ((this._TestPackageDivisionId != value))
{
this.OnTestPackageDivisionIdChanging(value);
this.SendPropertyChanging();
this._TestPackageDivisionId = value;
this.SendPropertyChanged("TestPackageDivisionId");
this.OnTestPackageDivisionIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
if (this._Base_Project.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackageCode", DbType="NVarChar(50)")]
public string TestPackageCode
{
get
{
return this._TestPackageCode;
}
set
{
if ((this._TestPackageCode != value))
{
this.OnTestPackageCodeChanging(value);
this.SendPropertyChanging();
this._TestPackageCode = value;
this.SendPropertyChanged("TestPackageCode");
this.OnTestPackageCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
public string CompileMan
{
get
{
return this._CompileMan;
}
set
{
if ((this._CompileMan != value))
{
if (this._Sys_User.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnCompileManChanging(value);
this.SendPropertyChanging();
this._CompileMan = value;
this.SendPropertyChanged("CompileMan");
this.OnCompileManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CompileDate
{
get
{
return this._CompileDate;
}
set
{
if ((this._CompileDate != value))
{
this.OnCompileDateChanging(value);
this.SendPropertyChanging();
this._CompileDate = value;
this.SendPropertyChanged("CompileDate");
this.OnCompileDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_Cover_SYBData_TestPackageDivision", Storage="_SYBData_Cover", ThisKey="TestPackageDivisionId", OtherKey="TestPackageDivisionId", DeleteRule="NO ACTION")]
public EntitySet<SYBData_Cover> SYBData_Cover
{
get
{
return this._SYBData_Cover;
}
set
{
this._SYBData_Cover.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_TestPackageDivision_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
get
{
return this._Base_Project.Entity;
}
set
{
Base_Project previousValue = this._Base_Project.Entity;
if (((previousValue != value)
|| (this._Base_Project.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Project.Entity = null;
previousValue.SYBData_TestPackageDivision.Remove(this);
}
this._Base_Project.Entity = value;
if ((value != null))
{
value.SYBData_TestPackageDivision.Add(this);
this._ProjectId = value.ProjectId;
}
else
{
this._ProjectId = default(string);
}
this.SendPropertyChanged("Base_Project");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_TestPackageDivision_Sys_User", Storage="_Sys_User", ThisKey="CompileMan", OtherKey="UserId", IsForeignKey=true)]
public Sys_User Sys_User
{
get
{
return this._Sys_User.Entity;
}
set
{
Sys_User previousValue = this._Sys_User.Entity;
if (((previousValue != value)
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Sys_User.Entity = null;
previousValue.SYBData_TestPackageDivision.Remove(this);
}
this._Sys_User.Entity = value;
if ((value != null))
{
value.SYBData_TestPackageDivision.Add(this);
this._CompileMan = value.UserId;
}
else
{
this._CompileMan = default(string);
}
this.SendPropertyChanged("Sys_User");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_ToIsoList_SYBData_TestPackageDivision", Storage="_SYBData_ToIsoList", ThisKey="TestPackageDivisionId", OtherKey="TestPackageDivisionId", DeleteRule="NO ACTION")]
public EntitySet<SYBData_ToIsoList> SYBData_ToIsoList
{
get
{
return this._SYBData_ToIsoList;
}
set
{
this._SYBData_ToIsoList.Assign(value);
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
private void attach_SYBData_Cover(SYBData_Cover entity)
{
this.SendPropertyChanging();
entity.SYBData_TestPackageDivision = this;
}
private void detach_SYBData_Cover(SYBData_Cover entity)
{
this.SendPropertyChanging();
entity.SYBData_TestPackageDivision = null;
}
private void attach_SYBData_ToIsoList(SYBData_ToIsoList entity)
{
this.SendPropertyChanging();
entity.SYBData_TestPackageDivision = this;
}
private void detach_SYBData_ToIsoList(SYBData_ToIsoList entity)
{
this.SendPropertyChanging();
entity.SYBData_TestPackageDivision = null;
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_ToIsoList")]
public partial class SYBData_ToIsoList : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ToIsoId;
private string _TestPackageDivisionId;
private string _ISO_ID;
private EntityRef<HJGL_PW_IsoInfo> _HJGL_PW_IsoInfo;
private EntityRef<SYBData_TestPackageDivision> _SYBData_TestPackageDivision;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnToIsoIdChanging(string value);
partial void OnToIsoIdChanged();
partial void OnTestPackageDivisionIdChanging(string value);
partial void OnTestPackageDivisionIdChanged();
partial void OnISO_IDChanging(string value);
partial void OnISO_IDChanged();
#endregion
public SYBData_ToIsoList()
{
this._HJGL_PW_IsoInfo = default(EntityRef<HJGL_PW_IsoInfo>);
this._SYBData_TestPackageDivision = default(EntityRef<SYBData_TestPackageDivision>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ToIsoId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string ToIsoId
{
get
{
return this._ToIsoId;
}
set
{
if ((this._ToIsoId != value))
{
this.OnToIsoIdChanging(value);
this.SendPropertyChanging();
this._ToIsoId = value;
this.SendPropertyChanged("ToIsoId");
this.OnToIsoIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackageDivisionId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string TestPackageDivisionId
{
get
{
return this._TestPackageDivisionId;
}
set
{
if ((this._TestPackageDivisionId != value))
{
if (this._SYBData_TestPackageDivision.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnTestPackageDivisionIdChanging(value);
this.SendPropertyChanging();
this._TestPackageDivisionId = value;
this.SendPropertyChanged("TestPackageDivisionId");
this.OnTestPackageDivisionIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISO_ID", DbType="VarChar(50) NOT NULL", CanBeNull=false)]
public string ISO_ID
{
get
{
return this._ISO_ID;
}
set
{
if ((this._ISO_ID != value))
{
if (this._HJGL_PW_IsoInfo.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnISO_IDChanging(value);
this.SendPropertyChanging();
this._ISO_ID = value;
this.SendPropertyChanged("ISO_ID");
this.OnISO_IDChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_ToIsoList_HJGL_PW_IsoInfo", Storage="_HJGL_PW_IsoInfo", ThisKey="ISO_ID", OtherKey="ISO_ID", IsForeignKey=true)]
public HJGL_PW_IsoInfo HJGL_PW_IsoInfo
{
get
{
return this._HJGL_PW_IsoInfo.Entity;
}
set
{
HJGL_PW_IsoInfo previousValue = this._HJGL_PW_IsoInfo.Entity;
if (((previousValue != value)
|| (this._HJGL_PW_IsoInfo.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._HJGL_PW_IsoInfo.Entity = null;
previousValue.SYBData_ToIsoList.Remove(this);
}
this._HJGL_PW_IsoInfo.Entity = value;
if ((value != null))
{
value.SYBData_ToIsoList.Add(this);
this._ISO_ID = value.ISO_ID;
}
else
{
this._ISO_ID = default(string);
}
this.SendPropertyChanged("HJGL_PW_IsoInfo");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_ToIsoList_SYBData_TestPackageDivision", Storage="_SYBData_TestPackageDivision", ThisKey="TestPackageDivisionId", OtherKey="TestPackageDivisionId", IsForeignKey=true)]
public SYBData_TestPackageDivision SYBData_TestPackageDivision
{
get
{
return this._SYBData_TestPackageDivision.Entity;
}
set
{
SYBData_TestPackageDivision previousValue = this._SYBData_TestPackageDivision.Entity;
if (((previousValue != value)
|| (this._SYBData_TestPackageDivision.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._SYBData_TestPackageDivision.Entity = null;
previousValue.SYBData_ToIsoList.Remove(this);
}
this._SYBData_TestPackageDivision.Entity = value;
if ((value != null))
{
value.SYBData_ToIsoList.Add(this);
this._TestPackageDivisionId = value.TestPackageDivisionId;
}
else
{
this._TestPackageDivisionId = default(string);
}
this.SendPropertyChanged("SYBData_TestPackageDivision");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_ButtonPower")]
public partial class Sys_ButtonPower : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -123416,6 +124047,8 @@ namespace Model
private EntitySet<Project_UserPower> _Project_UserPower;
private EntitySet<SYBData_TestPackageDivision> _SYBData_TestPackageDivision;
private EntitySet<Sys_DataInTemp> _Sys_DataInTemp;
private EntitySet<Sys_Log> _Sys_Log;
@@ -123527,6 +124160,7 @@ namespace Model
this._Project_User = new EntitySet<Project_User>(new Action<Project_User>(this.attach_Project_User), new Action<Project_User>(this.detach_Project_User));
this._Project_UserButtonPower = new EntitySet<Project_UserButtonPower>(new Action<Project_UserButtonPower>(this.attach_Project_UserButtonPower), new Action<Project_UserButtonPower>(this.detach_Project_UserButtonPower));
this._Project_UserPower = new EntitySet<Project_UserPower>(new Action<Project_UserPower>(this.attach_Project_UserPower), new Action<Project_UserPower>(this.detach_Project_UserPower));
this._SYBData_TestPackageDivision = new EntitySet<SYBData_TestPackageDivision>(new Action<SYBData_TestPackageDivision>(this.attach_SYBData_TestPackageDivision), new Action<SYBData_TestPackageDivision>(this.detach_SYBData_TestPackageDivision));
this._Sys_DataInTemp = new EntitySet<Sys_DataInTemp>(new Action<Sys_DataInTemp>(this.attach_Sys_DataInTemp), new Action<Sys_DataInTemp>(this.detach_Sys_DataInTemp));
this._Sys_Log = new EntitySet<Sys_Log>(new Action<Sys_Log>(this.attach_Sys_Log), new Action<Sys_Log>(this.detach_Sys_Log));
this._Base_Depart = default(EntityRef<Base_Depart>);
@@ -124605,6 +125239,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_TestPackageDivision_Sys_User", Storage="_SYBData_TestPackageDivision", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")]
public EntitySet<SYBData_TestPackageDivision> SYBData_TestPackageDivision
{
get
{
return this._SYBData_TestPackageDivision;
}
set
{
this._SYBData_TestPackageDivision.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Sys_DataInTemp_Sys_User", Storage="_Sys_DataInTemp", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")]
public EntitySet<Sys_DataInTemp> Sys_DataInTemp
{
@@ -125354,6 +126001,18 @@ namespace Model
entity.Sys_User = null;
}
private void attach_SYBData_TestPackageDivision(SYBData_TestPackageDivision entity)
{
this.SendPropertyChanging();
entity.Sys_User = this;
}
private void detach_SYBData_TestPackageDivision(SYBData_TestPackageDivision entity)
{
this.SendPropertyChanging();
entity.Sys_User = null;
}
private void attach_Sys_DataInTemp(Sys_DataInTemp entity)
{
this.SendPropertyChanging();
+1 -1
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>