111
This commit is contained in:
commit
75d5c6cab5
|
@ -25,9 +25,9 @@ REM --------------
|
|||
|
||||
@echo 设置.net控制台环境
|
||||
@echo.
|
||||
@call "%VS100COMNTOOLS%"vsvars32.bat
|
||||
@call "%VS150%"
|
||||
|
||||
SqlMetal /views /server:.\SQL2016 /database:HJGLDB_ZJBSF /code:%Model_ROOT%\Model.cs /namespace:Model
|
||||
SqlMetal /views /server:. /database:HJGLDB_ZJBSF /code:%Model_ROOT%\Model.cs /namespace:Model
|
||||
|
||||
@ECHO 完成
|
||||
pause
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
</site>
|
||||
<site name="WebApi" id="2">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="E:\work\project\巴斯夫焊接\Basf_TCC7\HJGL\WebApi" />
|
||||
<virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\WebApi" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:3862:localhost" />
|
||||
|
@ -256,6 +256,14 @@
|
|||
<binding protocol="http" bindingInformation="*:13960:localhost" />
|
||||
</bindings>
|
||||
</site>
|
||||
<site name="FineUIPro.Web(11)" id="14">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\FineUIPro.Web" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:57613:localhost" />
|
||||
</bindings>
|
||||
</site>
|
||||
<siteDefaults>
|
||||
<!-- To enable logging, please change the below attribute "enabled" to "true" -->
|
||||
<logFile logFormat="W3C" directory="%AppData%\Microsoft\IISExpressLogs" enabled="false" />
|
||||
|
|
|
@ -163,6 +163,7 @@
|
|||
<Compile Include="WeldingProcess\CheckManage\Batch_NDEService.cs" />
|
||||
<Compile Include="WeldingProcess\CheckManage\RepairRecordService.cs" />
|
||||
<Compile Include="WeldingProcess\DataIn\DataInTempService.cs" />
|
||||
<Compile Include="WeldingProcess\PMI\PMIDelegation_Service.cs" />
|
||||
<Compile Include="WeldingProcess\TestPackageManage\AItemEndCheckService.cs" />
|
||||
<Compile Include="WeldingProcess\TestPackageManage\BItemEndCheckService.cs" />
|
||||
<Compile Include="WeldingProcess\TestPackageManage\TestPackageManageAuditService.cs" />
|
||||
|
|
|
@ -527,12 +527,21 @@ namespace BLL
|
|||
|
||||
#endregion
|
||||
|
||||
|
||||
#region PMI 处理
|
||||
|
||||
public const string PMIDelegationId = "A6FB44C3-0920-4F77-862F-D814FD5E5D23";
|
||||
#endregion
|
||||
|
||||
|
||||
#region 热处理/硬度委托
|
||||
/// <summary>
|
||||
/// 热处理委托及数据录入
|
||||
/// </summary>
|
||||
public const string HotProessTrustMenuId = "90579BE7-E38C-4CD2-A3BC-755169FF3BB2";
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 热处理反馈及硬度委托
|
||||
/// </summary>
|
||||
|
|
|
@ -0,0 +1,61 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class PMIDelegation_Service
|
||||
{
|
||||
/// <summary>
|
||||
/// 查找后返回集合增加到列表
|
||||
/// </summary>
|
||||
/// <param name="hdItemsString"></param>
|
||||
/// <returns></returns>
|
||||
public static List<Model.View_PMI_DelegationDetails> GetPMI_DelegationAddItem(string hdItemsString)
|
||||
{
|
||||
var jointInfos = from x in Funs.DB.View_Pipeline_WeldJoint select x;
|
||||
List<Model.View_PMI_DelegationDetails> returnViewMatch = new List<Model.View_PMI_DelegationDetails>();
|
||||
if (!string.IsNullOrEmpty(hdItemsString))
|
||||
{
|
||||
List<string> jotIds = Funs.GetStrListByStr(hdItemsString, '|');
|
||||
foreach (var jotItem in jotIds)
|
||||
{
|
||||
string[] strs = jotItem.Split(',');
|
||||
var jotInfo = jointInfos.FirstOrDefault(x => x.WeldJointId == strs[0]);
|
||||
Model.View_PMI_DelegationDetails newItem = new Model.View_PMI_DelegationDetails();
|
||||
newItem.Id = SQLHelper.GetNewID(typeof(Model.View_PMI_DelegationDetails));
|
||||
newItem.WeldJointId = jotInfo.WeldJointId;
|
||||
newItem.WeldJointCode = jotInfo.WeldJointCode;
|
||||
newItem.PipelineCode = jotInfo.PipelineCode;
|
||||
newItem.Specification = jotInfo.Specification;
|
||||
newItem.MaterialCode = jotInfo.Material1Code;
|
||||
newItem.QualityNo = string.Empty;
|
||||
newItem.Acceptance = string.Empty;
|
||||
newItem.Status = 0;
|
||||
newItem.PMIId = string.Empty;
|
||||
newItem.WorkAreaId = jotInfo.WorkAreaId;
|
||||
newItem.CreatedTime = DateTime.Now;
|
||||
newItem.DelegationDate= DateTime.Now;
|
||||
newItem.DelegationNo = string.Empty;
|
||||
returnViewMatch.Add(newItem);
|
||||
}
|
||||
}
|
||||
return returnViewMatch;
|
||||
}
|
||||
/// <summary>
|
||||
/// 返回视图列表集合
|
||||
/// </summary>
|
||||
|
||||
public static List<Model.View_PMI_DelegationDetails> GetPMI_DelegationItem(string projectId, string pmiId)
|
||||
{
|
||||
List<Model.View_PMI_DelegationDetails> returnViewMatch = (from x in Funs.DB.View_PMI_DelegationDetails
|
||||
where x.ProjectId == projectId && x.PMIId == pmiId
|
||||
select x).ToList();
|
||||
return returnViewMatch;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -145,6 +145,7 @@ namespace BLL
|
|||
newWeldJoint.PrepareTemp = weldJoint.PrepareTemp;
|
||||
newWeldJoint.Electricity = weldJoint.Electricity;
|
||||
newWeldJoint.Voltage = weldJoint.Voltage;
|
||||
newWeldJoint.IsPMI= weldJoint.IsPMI;
|
||||
newWeldJoint.TestPackageNo = weldJoint.TestPackageNo;
|
||||
newWeldJoint.WeldingDailyCode = weldJoint.WeldingDailyCode;
|
||||
newWeldJoint.BackingWelderId = weldJoint.BackingWelderId;
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
use HJGLDB_ZJBSF
|
||||
go
|
||||
create table PMI_Delegation
|
||||
(
|
||||
Id nvarchar(50) not null primary key,
|
||||
DelegationNo nvarchar(50) not null,
|
||||
DelegationDate datetime,
|
||||
ProjectId nvarchar(50) not null,
|
||||
InstallationId nvarchar(50),
|
||||
UnitId nvarchar(50),
|
||||
DetectionStandard nvarchar(50),
|
||||
Remark nvarchar(255),
|
||||
CreatedTime datetime default getdate()
|
||||
)
|
||||
go
|
||||
create table PMI_DelegationDetails
|
||||
(
|
||||
Id nvarchar(50) not null primary key,
|
||||
PMIId nvarchar(50) not null,
|
||||
JointId nvarchar(50) not null,
|
||||
QualityNo nvarchar(255),
|
||||
Acceptance nvarchar(255),
|
||||
Status int not null,
|
||||
CreatedTime datetime default getdate()
|
||||
)
|
||||
go
|
||||
|
||||
-- 管线焊工 增加是否 PMI处理
|
||||
alter table Pipeline_WeldJoint add isPMI bit null
|
||||
update Pipeline_WeldJoint set isPMI=0
|
||||
-- 插入PMI委托菜单
|
||||
insert into Sys_Menu values('A6FB44C3-0920-4F77-862F-D814FD5E5D23','PMI检测管理','PMI detection management','',21,0,3,NUll,1)
|
||||
insert into Sys_Menu values(NEWID(),'PMI委托','PMI delegation','/WeldingProcess/PMI/PMIDelegation.aspx',0,'A6FB44C3-0920-4F77-862F-D814FD5E5D23',3,NULL,1)
|
||||
insert into Sys_Menu values(NEWID(),'PMI检测录入','PMI detection entry','/WeldingProcess/PMI/PMIDetectionEntry.aspx',0,'A6FB44C3-0920-4F77-862F-D814FD5E5D23',3,NULL,1)
|
||||
|
||||
|
||||
|
||||
CREATE VIEW [dbo].[View_PMI_DelegationDetails]
|
||||
AS
|
||||
/*******硬度委托明细***********/
|
||||
SELECT
|
||||
B.PMIId,
|
||||
B.JointId,
|
||||
B.QualityNo,
|
||||
B.Acceptance,
|
||||
B.CreatedTime,
|
||||
B.status,
|
||||
Pipeline.PipelineCode,
|
||||
WeldJoint.WeldJointCode,
|
||||
WeldJoint.Specification,
|
||||
WeldJoint.Remark,
|
||||
Pipeline.SingleNumber,
|
||||
(CASE WHEN WeldJoint.CoverWelderCode IS NOT NULL AND WeldJoint.BackingWelderCode IS NOT NULL
|
||||
THEN WeldJoint.CoverWelderCode + '/' + WeldJoint.BackingWelderCode
|
||||
ELSE (ISNULL(WeldJoint.CoverWelderCode,'') + ISNULL(WeldJoint.BackingWelderCode,'')) END) AS WelderCode, --焊工
|
||||
(CASE WHEN WeldJoint.Material1Code IS NOT NULL AND WeldJoint.Material2Code IS NOT NULL
|
||||
THEN WeldJoint.Material1Code + '/' + WeldJoint.Material2Code
|
||||
ELSE (ISNULL(WeldJoint.Material1Code,'') + ISNULL(WeldJoint.Material2Code,'')) END) AS MaterialCode --材质
|
||||
FROM PMI_Delegation AS A INNER JOIN
|
||||
PMI_DelegationDetails AS B ON A.Id=B.PMIId
|
||||
LEFT JOIN View_Pipeline_WeldJoint AS WeldJoint ON WeldJoint.WeldJointId=B.JointId
|
||||
LEFT JOIN Pipeline_Pipeline AS Pipeline ON Pipeline.PipelineId=WeldJoint.PipelineId
|
||||
|
||||
GO
|
||||
|
||||
|
|
@ -0,0 +1,117 @@
|
|||
USE [HJGLDB_ZJBSF]
|
||||
GO
|
||||
|
||||
/****** Object: View [dbo].[View_Pipeline_WeldJoint] Script Date: 2024-5-11 14:44:42 ******/
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
|
||||
|
||||
ALTER VIEW [dbo].[View_Pipeline_WeldJoint]
|
||||
AS
|
||||
/************焊口信息视图*****************/
|
||||
SELECT WeldJoint.WeldJointId,
|
||||
WeldJoint.ProjectId,
|
||||
WeldJoint.PipelineId,
|
||||
WeldJoint.WeldJointCode,
|
||||
dbo.Fun_GetParseInt(WeldJoint.WeldJointCode) AS ConvertWeldJoint,
|
||||
WeldJoint.WeldTypeId,
|
||||
WeldJoint.Material1Id,
|
||||
WeldJoint.Material2Id,
|
||||
WeldJoint.ANSISCH,
|
||||
WeldJoint.Thickness,
|
||||
WeldJoint.Dia,
|
||||
WeldJoint.Size,
|
||||
WeldJoint.JointAttribute,
|
||||
WeldJoint.JointArea,
|
||||
WeldJoint.WeldingMethodId,
|
||||
WeldJoint.IsHotProess,
|
||||
WeldJoint.WeldingLocationId,
|
||||
WeldJoint.WeldMatId,
|
||||
WeldJoint.WeldSilkId,
|
||||
WeldJoint.GrooveTypeId,
|
||||
WeldJoint.PipeSegment,
|
||||
WeldJoint.PipeAssembly1Id,
|
||||
WeldJoint.PipeAssembly2Id,
|
||||
WeldJoint.PipeAssemblyCount,
|
||||
WeldJoint.HeartNo1,
|
||||
WeldJoint.HeartNo2,
|
||||
WeldJoint.LastTemp,
|
||||
WeldJoint.CellTemp,
|
||||
WeldJoint.PrepareTemp,
|
||||
WeldJoint.Electricity,
|
||||
WeldJoint.SystemNumber,
|
||||
WeldJoint.Remark,
|
||||
WeldJoint.DoneDin,
|
||||
WeldJoint.Voltage,
|
||||
WeldJoint.TestPackageNo,
|
||||
WeldJoint.WeldingDailyCode,
|
||||
WeldJoint.WeldingDailyId,
|
||||
WeldJoint.BackingWelderId,
|
||||
WeldJoint.CoverWelderId,
|
||||
WeldJoint.PipingClassId,
|
||||
WeldJoint.Specification,
|
||||
WeldJoint.CancelResult,
|
||||
Project.ProjectCode,
|
||||
Project.ProjectName,
|
||||
Pipeline.PipelineCode,
|
||||
Pipeline.InstallationId,
|
||||
Pipeline.UnitId,
|
||||
Pipeline.SingleNumber,
|
||||
Pipeline.WorkAreaId,
|
||||
WeldType.WeldTypeCode,
|
||||
Material1.MaterialCode AS Material1Code,
|
||||
Material2.MaterialCode AS Material2Code,
|
||||
WeldingMethod.WeldingMethodCode,
|
||||
WeldingLocation.WeldingLocationCode,
|
||||
WeldMat.ConsumablesCode AS WeldMatCode,
|
||||
--WeldSilk.ConsumablesCode AS WeldSilkCode,
|
||||
'' AS WeldSilkCode,
|
||||
GrooveType.GrooveTypeCode,
|
||||
CASE WHEN WeldJoint.WeldingDailyId IS NULL THEN '否' ELSE '是' END AS Is_hjName,
|
||||
CASE WHEN WeldJoint.IsHotProess=1 THEN '是' ELSE '否' END AS IsHotProessStr,
|
||||
Components1.ComponentsCode AS ComponentsCode1,
|
||||
Components2.ComponentsCode AS ComponentsCode2,
|
||||
BackingWelder.WelderCode AS BackingWelderCode,
|
||||
BackingWelder.WelderName AS BackingWelderName,
|
||||
CoverWelder.WelderCode AS CoverWelderCode,
|
||||
CoverWelder.WelderName AS CoverWelderName,
|
||||
(CASE WHEN CoverWelder.WelderCode IS NOT NULL AND BackingWelder.WelderCode IS NOT NULL
|
||||
THEN CoverWelder.WelderCode + '/' + BackingWelder.WelderCode
|
||||
ELSE (ISNULL(CoverWelder.WelderCode,'') + ISNULL(BackingWelder.WelderCode,'')) END) AS WelderCode, --焊工
|
||||
(CASE WHEN Material1.MaterialCode IS NOT NULL AND Material2.MaterialCode IS NOT NULL
|
||||
THEN Material1.MaterialCode + '/' + Material2.MaterialCode
|
||||
ELSE (ISNULL(Material1.MaterialCode,'') + ISNULL(Material2.MaterialCode,'')) END) AS MaterialCode, --材质
|
||||
pipingClass.PipingClassCode,
|
||||
CONVERT(VARCHAR(100), WeldingDaily.WeldingDate, 23) AS WeldingDate,
|
||||
WeldJoint.IsCancel,
|
||||
WeldJoint.IsPMI,
|
||||
WeldJoint.IsGoldJoint,
|
||||
WeldJoint.WPQId,wps.WPQCode,
|
||||
WeldJoint.DetectionType,
|
||||
WeldJoint.PageNum
|
||||
FROM Pipeline_WeldJoint AS WeldJoint
|
||||
LEFT JOIN Base_Project AS Project ON Project.ProjectId=WeldJoint.ProjectId
|
||||
LEFT JOIN Pipeline_Pipeline AS Pipeline ON Pipeline.PipelineId = WeldJoint.PipelineId
|
||||
LEFT JOIN Base_WeldType AS WeldType ON WeldType.WeldTypeId=WeldJoint.WeldTypeId
|
||||
LEFT JOIN Base_Material AS Material1 ON Material1.MaterialId = WeldJoint.Material1Id
|
||||
LEFT JOIN Base_Material AS Material2 ON Material2.MaterialId = WeldJoint.Material2Id
|
||||
LEFT JOIN Base_WeldingMethod AS WeldingMethod ON WeldingMethod.WeldingMethodId=WeldJoint.WeldingMethodId
|
||||
LEFT JOIN Base_WeldingLocation AS WeldingLocation ON WeldingLocation.WeldingLocationId=WeldJoint.WeldingLocationId
|
||||
LEFT JOIN Base_Consumables AS WeldMat ON WeldMat.ConsumablesId=WeldJoint.WeldMatId
|
||||
--LEFT JOIN Base_Consumables AS WeldSilk ON WeldSilk.ConsumablesId=WeldJoint.WeldSilkId
|
||||
LEFT JOIN Base_GrooveType AS GrooveType ON GrooveType.GrooveTypeId=WeldJoint.GrooveTypeId
|
||||
LEFT JOIN Base_Components AS Components1 ON Components1.ComponentsId = WeldJoint.PipeAssembly1Id
|
||||
LEFT JOIN Base_Components AS Components2 ON Components2.ComponentsId = WeldJoint.PipeAssembly2Id
|
||||
LEFT JOIN Welder_Welder AS BackingWelder ON BackingWelder.WelderId=WeldJoint.BackingWelderId
|
||||
LEFT JOIN Welder_Welder AS CoverWelder ON CoverWelder.WelderId=WeldJoint.CoverWelderId
|
||||
LEFT JOIN Pipeline_WeldingDaily AS WeldingDaily ON WeldingDaily.WeldingDailyId=WeldJoint.WeldingDailyId
|
||||
LEFT JOIN Base_PipingClass AS pipingClass ON pipingClass.PipingClassId=WeldJoint.PipingClassId
|
||||
LEFT JOIN dbo.WPQ_WPQList wps ON wps.WPQId=WeldJoint.WPQId
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
|
@ -69,6 +69,15 @@ namespace Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 制造/验收标准 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string Acceptance {
|
||||
get {
|
||||
return ResourceManager.GetString("Acceptance", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 账号 的本地化字符串。
|
||||
/// </summary>
|
||||
|
@ -1221,6 +1230,15 @@ namespace Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 检测日期 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string DelegationDate {
|
||||
get {
|
||||
return ResourceManager.GetString("DelegationDate", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 删除 的本地化字符串。
|
||||
/// </summary>
|
||||
|
@ -1311,6 +1329,15 @@ namespace Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 确定要删除PMI委托吗 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string DeletePMITrust {
|
||||
get {
|
||||
return ResourceManager.GetString("DeletePMITrust", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 删除项目信息 的本地化字符串。
|
||||
/// </summary>
|
||||
|
@ -1419,6 +1446,24 @@ namespace Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 检测方法 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string DetectionMethod {
|
||||
get {
|
||||
return ResourceManager.GetString("DetectionMethod", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 检测标准 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string DetectionStandard {
|
||||
get {
|
||||
return ResourceManager.GetString("DetectionStandard", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 寸径 的本地化字符串。
|
||||
/// </summary>
|
||||
|
@ -3651,6 +3696,42 @@ namespace Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 PMI委托单号已存在 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string PMICodeExists {
|
||||
get {
|
||||
return ResourceManager.GetString("PMICodeExists", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 不存在此PMI委托 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string PMICodeNotExists {
|
||||
get {
|
||||
return ResourceManager.GetString("PMICodeNotExists", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 PMI处理委托 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string PMIDelegationTrust {
|
||||
get {
|
||||
return ResourceManager.GetString("PMIDelegationTrust", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 PMI委托单保存失败 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string PMIError {
|
||||
get {
|
||||
return ResourceManager.GetString("PMIError", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 点口编号 的本地化字符串。
|
||||
/// </summary>
|
||||
|
@ -4119,6 +4200,15 @@ namespace Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 质量证明文件编号 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string QualityNo {
|
||||
get {
|
||||
return ResourceManager.GetString("QualityNo", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 返修原因 的本地化字符串。
|
||||
/// </summary>
|
||||
|
|
|
@ -2106,4 +2106,34 @@
|
|||
<data name="HomePage" xml:space="preserve">
|
||||
<value>首页</value>
|
||||
</data>
|
||||
<data name="DelegationDate" xml:space="preserve">
|
||||
<value>检测日期</value>
|
||||
</data>
|
||||
<data name="DetectionMethod" xml:space="preserve">
|
||||
<value>检测方法</value>
|
||||
</data>
|
||||
<data name="DetectionStandard" xml:space="preserve">
|
||||
<value>检测标准</value>
|
||||
</data>
|
||||
<data name="Acceptance" xml:space="preserve">
|
||||
<value>制造/验收标准</value>
|
||||
</data>
|
||||
<data name="QualityNo" xml:space="preserve">
|
||||
<value>质量证明文件编号</value>
|
||||
</data>
|
||||
<data name="PMIDelegationTrust" xml:space="preserve">
|
||||
<value>PMI处理委托</value>
|
||||
</data>
|
||||
<data name="PMICodeExists" xml:space="preserve">
|
||||
<value>PMI委托单号已存在</value>
|
||||
</data>
|
||||
<data name="PMIError" xml:space="preserve">
|
||||
<value>PMI委托单保存失败</value>
|
||||
</data>
|
||||
<data name="DeletePMITrust" xml:space="preserve">
|
||||
<value>确定要删除PMI委托吗</value>
|
||||
</data>
|
||||
<data name="PMICodeNotExists" xml:space="preserve">
|
||||
<value>不存在此PMI委托</value>
|
||||
</data>
|
||||
</root>
|
|
@ -395,6 +395,10 @@
|
|||
<Content Include="WeldingProcess\CheckManage\SeeFilm.aspx" />
|
||||
<Content Include="WeldingProcess\DataIn\DataIn.aspx" />
|
||||
<Content Include="WeldingProcess\DataIn\DataInEdit.aspx" />
|
||||
<Content Include="WeldingProcess\PMI\PMIDelegation.aspx" />
|
||||
<Content Include="WeldingProcess\PMI\PMIDelegationEdit.aspx" />
|
||||
<Content Include="WeldingProcess\PMI\PMIDetectionEntry.aspx" />
|
||||
<Content Include="WeldingProcess\PMI\PMISelectList.aspx" />
|
||||
<Content Include="WeldingProcess\TestPackageManage\AItemEndCheck.aspx" />
|
||||
<Content Include="WeldingProcess\TestPackageManage\BItemEndCheck.aspx" />
|
||||
<Content Include="WeldingProcess\TestPackageManage\TestPackageManageAudit.aspx" />
|
||||
|
@ -4445,6 +4449,33 @@
|
|||
<Compile Include="WeldingProcess\DataIn\DataInEdit.aspx.designer.cs">
|
||||
<DependentUpon>DataInEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMIDelegation.aspx.cs">
|
||||
<DependentUpon>PMIDelegation.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMIDelegation.aspx.designer.cs">
|
||||
<DependentUpon>PMIDelegation.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMIDelegationEdit.aspx.cs">
|
||||
<DependentUpon>PMIDelegationEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMIDelegationEdit.aspx.designer.cs">
|
||||
<DependentUpon>PMIDelegationEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMIDetectionEntry.aspx.cs">
|
||||
<DependentUpon>PMIDetectionEntry.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMIDetectionEntry.aspx.designer.cs">
|
||||
<DependentUpon>PMIDetectionEntry.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMISelectList.aspx.cs">
|
||||
<DependentUpon>PMISelectList.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\PMI\PMISelectList.aspx.designer.cs">
|
||||
<DependentUpon>PMISelectList.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WeldingProcess\TestPackageManage\AItemEndCheck.aspx.cs">
|
||||
<DependentUpon>AItemEndCheck.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
@ -4871,6 +4902,7 @@
|
|||
<Content Include="App_GlobalResources\Lan.resx">
|
||||
<Generator>GlobalResourceProxyGenerator</Generator>
|
||||
<LastGenOutput>Lan.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>0</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:13960/</IISUrl>
|
||||
<IISUrl>http://localhost:57613/</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
|
|
|
@ -2,16 +2,18 @@
|
|||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HotProcessHard {
|
||||
|
||||
|
||||
public partial class HotProessTrustEdit {
|
||||
|
||||
namespace FineUIPro.Web.HotProcessHard
|
||||
{
|
||||
|
||||
|
||||
public partial class HotProessTrustEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdItemsString 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdItemsString;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHotProessTrustNo 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHotProessTrustNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtProessDate 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtProessDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpInstallationId 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpInstallationId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitId 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +130,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtProessMethod 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +139,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProessMethod;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtProessEquipment 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +148,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProessEquipment;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTabler 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +157,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTabler;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +166,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +175,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +184,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete 控件。
|
||||
/// </summary>
|
||||
|
@ -191,7 +193,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ckSelect 控件。
|
||||
/// </summary>
|
||||
|
@ -200,7 +202,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button ckSelect;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
@ -209,7 +211,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
@ -218,7 +220,7 @@ namespace FineUIPro.Web.HotProcessHard {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -0,0 +1,199 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PMIDelegation.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.PMI.PMIDelegation" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>PMI处理委托</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</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="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="320px" Title="<%$ Resources:Lan,PMIDelegationTrust %>"
|
||||
ShowBorder="true" Layout="VBox" ShowHeader="false" AutoScroll="true" BodyPadding="5px"
|
||||
IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox ID="txtSearchNo" runat="server" EmptyText="<%$ Resources:Lan,EnterQueryConditions %>"
|
||||
AutoPostBack="true" Label="<%$ Resources:Lan,RequestSheetNumber %>" LabelWidth="100px"
|
||||
OnTextChanged="Tree_TextChanged" Width="300px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="PMI委托节点树" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
Height="470px" runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="<%$ Resources:Lan,HotProessTrust %>"
|
||||
TitleToolTip="<%$ Resources:Lan,HotProessTrust %>" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:HiddenField runat="server" ID="hdPMIDelegationId">
|
||||
</f:HiddenField>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnNew" Text="<%$ Resources:Lan,Add %>" ToolTip="<%$ Resources:Lan,Add %>"
|
||||
Icon="Add" runat="server" OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnEdit" Text="<%$ Resources:Lan,Edit %>" ToolTip="<%$ Resources:Lan,Edit %>"
|
||||
Icon="TableEdit" runat="server" OnClick="btnEdit_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDelete" Text="<%$ Resources:Lan,Delete %>" ToolTip="<%$ Resources:Lan,Delete %>"
|
||||
ConfirmText="<%$ Resources:Lan,DeletePMITrust %>" ConfirmTarget="Top" Icon="Delete"
|
||||
runat="server" OnClick="btnDelete_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="txtDelegationNo" Label="<%$ Resources:Lan,RequestSheetNumber %>"
|
||||
runat="server" LabelAlign="Right" LabelWidth="170px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtDelegationDate" Label="<%$ Resources:Lan,DelegationDate %>" runat="server"
|
||||
LabelAlign="Right" LabelWidth="170px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="txtInstallationName" Label="<%$ Resources:Lan,InstallationName %>" runat="server"
|
||||
LabelAlign="Right" LabelWidth="170px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtUnitName" Label="<%$ Resources:Lan,UnitName %>" runat="server" LabelAlign="Right"
|
||||
LabelWidth="170px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="txtDetectionMethod" Label="<%$ Resources:Lan,DetectionMethod %>" runat="server"
|
||||
LabelAlign="Right" LabelWidth="170px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtDetectionStandard" Label="<%$ Resources:Lan,DetectionStandard %>" runat="server"
|
||||
LabelAlign="Right" LabelWidth="170px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="txtTabler" Label="<%$ Resources:Lan,Lister %>" runat="server" LabelAlign="Right"
|
||||
LabelWidth="170px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtRemark" Label="<%$ Resources:Lan,Remark %>" runat="server" LabelAlign="Right"
|
||||
LabelWidth="170px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,HotProessTrust %>"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="ID"
|
||||
AllowCellEditing="true" AllowColumnLocking="true" EnableColumnLines="true" ClicksToEdit="2"
|
||||
DataIDField="ID" AllowSorting="true" SortField="PipelineCode,WeldJointCode"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:TextBox ID="txtIsoNo" Label="<%$ Resources:Lan,PipelineCode %>" runat="server"
|
||||
LabelWidth="120px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="TextBox_TextChanged">
|
||||
</f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="<%$ Resources:Lan,SerialNumber %>"
|
||||
Width="50px" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,PipelineCode %>" ColumnID="PipelineCode"
|
||||
DataField="PipelineCode" SortField="PipelineCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="220px" Locked="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,WeldingJointNumber %>" ColumnID="WeldJointCode"
|
||||
DataField="WeldJointCode" SortField="WeldJointCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="90px" Locked="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,Specifications %>" ColumnID="Specification"
|
||||
DataField="Specification" SortField="Specification" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="170px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,MaterialSpecificationCode %>" ColumnID="MaterialCode"
|
||||
DataField="MaterialCode" SortField="MaterialCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,TrustDate %>" ColumnID="CreatedTime"
|
||||
DataField="CreatedTime" SortField="CreatedTime" FieldType="Date" Renderer="Date"
|
||||
HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,QualityNo %>" ColumnID="QualityNo" DataField="QualityNo"
|
||||
FieldType="String" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="tbxEditorQualityNo" Required="true" runat="server">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,Acceptance %>" ColumnID="Acceptance"
|
||||
DataField="Acceptance" FieldType="String" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtEditorAcceptance" Required="true" runat="server">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="<%$ Resources:Lan,NumberOfRecordsPerPage %>">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window2" Title="<%$ Resources:Lan,PopForm %>" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Parent" EnableResize="true" runat="server" OnClose="Window2_Close"
|
||||
IsModal="true" Width="1090px" Height="660px">
|
||||
</f:Window>
|
||||
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['PipelineCode']);
|
||||
this.mergeColumns(['WeldJointCode']);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,388 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
public partial class PMIDelegation : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// PMI委托主键
|
||||
/// </summary>
|
||||
public string PMIDelegationId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["PMIDelegationId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["PMIDelegationId"] = 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.PMIDelegationId = string.Empty;
|
||||
this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
string projectName = string.Empty;
|
||||
var pro = BLL.Base_ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||
if (pro != null)
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "[" + pro.ProjectCode + "]" + pro.ProjectName;
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
rootNode.EnableClickEvent = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.PMI_Delegation> trustLists = new List<Model.PMI_Delegation>(); ///PMI委托单
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtSearchNo.Text.Trim()))
|
||||
{
|
||||
trustLists = (from x in Funs.DB.PMI_Delegation where x.ProjectId == CurrUser.LoginProjectId && x.DelegationNo.Contains(this.txtSearchNo.Text.Trim()) orderby x.DelegationNo select x).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
trustLists = (from x in Funs.DB.PMI_Delegation where x.ProjectId == CurrUser.LoginProjectId orderby x.DelegationNo select x).ToList();
|
||||
}
|
||||
this.BindNodes(rootNode, trustLists);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 绑定树节点
|
||||
/// <summary>
|
||||
/// 绑定树节点
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
private void BindNodes(TreeNode node, List<Model.PMI_Delegation> trustList)
|
||||
{
|
||||
foreach (var item in trustList)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = item.DelegationNo;
|
||||
newNode.NodeID = item.Id;
|
||||
newNode.ToolTip = item.DelegationNo;
|
||||
newNode.CommandName = Resources.Lan.RequestSheetNumber;
|
||||
newNode.EnableClickEvent = true;
|
||||
node.Nodes.Add(newNode);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.PMIDelegationId = tvControlItem.SelectedNodeID;
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region DropDownList下拉选择事件
|
||||
/// <summary>
|
||||
/// 项目下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = string.Empty;
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
this.SetTextTemp();
|
||||
this.PageInfoLoad(); ///页面输入提交信息
|
||||
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
var result = Funs.DB.PMI_Delegation.FirstOrDefault(t=>t.Id==this.tvControlItem.SelectedNodeID);
|
||||
if (result != null)
|
||||
{
|
||||
this.PMIDelegationId = result.Id;
|
||||
strSql = @"SELECT *FROM [View_PMI_DelegationDetails] WHERE ProjectId= @ProjectId AND PMIID=@PMIDelegationId ";
|
||||
|
||||
listStr.Add(new SqlParameter("@ProjectId", result != null ? result.ProjectId : this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@PMIDelegationId", this.PMIDelegationId));
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtIsoNo.Text.Trim()))
|
||||
{
|
||||
strSql += @" and PipelineCode like '%'+@PipelineCode+'%' ";
|
||||
listStr.Add(new SqlParameter("@PipelineCode", this.txtIsoNo.Text.Trim()));
|
||||
}
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#region 加载页面输入提交信息
|
||||
/// <summary>
|
||||
/// 加载页面输入提交信息
|
||||
/// </summary>
|
||||
private void PageInfoLoad()
|
||||
{
|
||||
var trust =Funs.DB.PMI_Delegation.FirstOrDefault(t=>t.Id==this.PMIDelegationId);
|
||||
if (trust != null)
|
||||
{
|
||||
this.txtDelegationNo.Text = trust.DelegationNo;
|
||||
if (trust.DelegationDate.HasValue)
|
||||
{
|
||||
this.txtDelegationDate.Text = string.Format("{0:yyyy-MM-dd}", trust.DelegationDate);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(trust.InstallationId))
|
||||
{
|
||||
this.txtInstallationName.Text = BLL.Project_InstallationService.GetProject_InstallationNameByInstallationId(trust.InstallationId);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(trust.UnitId))
|
||||
{
|
||||
this.txtUnitName.Text = BLL.Base_UnitService.GetUnitNameByUnitId(trust.UnitId);
|
||||
}
|
||||
this.txtDetectionMethod.Text = "PMI光谱分析";
|
||||
this.txtDetectionStandard.Text = trust.DetectionStandard;
|
||||
if (!string.IsNullOrEmpty(trust.Tabler))
|
||||
{
|
||||
this.txtTabler.Text = BLL.Sys_UserService.GetUserNameByUserId(trust.Tabler);
|
||||
}
|
||||
this.txtRemark.Text = trust.Remark;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 清空文本
|
||||
/// <summary>
|
||||
/// 清空文本
|
||||
/// </summary>
|
||||
private void SetTextTemp()
|
||||
{
|
||||
this.txtDelegationNo.Text = string.Empty;
|
||||
this.txtDelegationDate.Text = string.Empty;
|
||||
this.txtInstallationName.Text = string.Empty;
|
||||
this.txtUnitName.Text = string.Empty;
|
||||
this.txtDetectionMethod.Text = string.Empty;
|
||||
this.txtDetectionStandard.Text = string.Empty;
|
||||
this.txtTabler.Text = string.Empty;
|
||||
this.txtRemark.Text = string.Empty;
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 分页排序
|
||||
#region 页索引改变事件
|
||||
/// <summary>
|
||||
/// 页索引改变事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
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 PMI委托 维护事件
|
||||
/// <summary>
|
||||
/// 增加PMI委托
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.PMIDelegationId, Const.BtnAdd))
|
||||
{
|
||||
this.SetTextTemp();
|
||||
string window = String.Format("PMIDelegationEdit.aspx?PMIDelegationId={0}", string.Empty, "新增 - ") ;
|
||||
PageContext.RegisterStartupScript(Window2.GetSaveStateReference(this.hdPMIDelegationId.ClientID)
|
||||
+ Window2.GetShowReference(window));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
#region 编辑PMI委托
|
||||
/// <summary>
|
||||
/// 编辑PMI委托
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HotProessTrustMenuId, Const.BtnSave))
|
||||
{
|
||||
var trustManage = Funs.DB.PMI_Delegation.FirstOrDefault (t=>t.Id==this.PMIDelegationId);
|
||||
if (trustManage != null)
|
||||
{
|
||||
string openUrl = String.Format("PMIDelegationEdit.aspx?PMIDelegationId={0}", this.PMIDelegationId, "编辑 - ");
|
||||
PageContext.RegisterStartupScript(Window2.GetSaveStateReference(this.hdPMIDelegationId.ClientID)
|
||||
+ Window2.GetShowReference(openUrl));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.PleaseSelectModifyHotProessTrust, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 删除PMI委托
|
||||
/// <summary>
|
||||
/// 删除PMI委托
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.PMIDelegationId, Const.BtnDelete))
|
||||
{
|
||||
var trustManage =Funs.DB.PMI_Delegation.FirstOrDefault (t=>t.Id==this.PMIDelegationId);
|
||||
if (trustManage != null)
|
||||
{
|
||||
//删除主表数据
|
||||
Funs.DB.PMI_Delegation.DeleteOnSubmit(trustManage);
|
||||
//删除 明细表
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
Alert.ShowInTop(Resources.Lan.DeletedSuccessfully, MessageBoxIcon.Success);
|
||||
this.InitTreeMenu();
|
||||
SetTextTemp();
|
||||
this.Grid1.DataSource = null;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.PleaseSelectDeleteHotProessTrust, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗口及刷新页面
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window2_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
this.BindGrid();
|
||||
|
||||
}
|
||||
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Tree_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,314 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
|
||||
|
||||
public partial class PMIDelegation
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// txtSearchNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSearchNo;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// hdPMIDelegationId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdPMIDelegationId;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// btnEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtDelegationNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtDelegationNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtDelegationDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtDelegationDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtInstallationName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtInstallationName;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// txtDetectionMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtDetectionMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtDetectionStandard 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtDetectionStandard;
|
||||
|
||||
/// <summary>
|
||||
/// txtTabler 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTabler;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsoNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtIsoNo;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// tbxEditorQualityNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox tbxEditorQualityNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtEditorAcceptance 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtEditorAcceptance;
|
||||
|
||||
/// <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>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,177 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PMIDelegationEdit.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.PMI.PMIDelegationEdit" %>
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>编辑PMI处理委托</title>
|
||||
<base target="_self" />
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</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="<%$ Resources:Lan,PMIDelegationTrust %>"
|
||||
TitleToolTip="<%$ Resources:Lan,PMIDelegationTrust %>" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:HiddenField runat="server" ID="hdItemsString">
|
||||
</f:HiddenField>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Text="<%$ Resources:Lan,Save %>" ToolTip="<%$ Resources:Lan,Save %>"
|
||||
Icon="SystemSave" ValidateForms="SimpleForm1" runat="server" OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDelegationNo" Label="<%$ Resources:Lan,RequestSheetNumber %>"
|
||||
runat="server" LabelAlign="Right" Required="true" ShowRedStar="true" FocusOnPageLoad="true"
|
||||
LabelWidth="180px">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="txtDelegationDate" runat="server" Label="<%$ Resources:Lan,DelegationDate %>"
|
||||
LabelAlign="Right" Required="true" ShowRedStar="true" LabelWidth="140px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpInstallationId" Label="<%$ Resources:Lan,InstallationName %>"
|
||||
runat="server" ShowRedStar="true" Required="true" EnableEdit="true" LabelAlign="Right"
|
||||
LabelWidth="180px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpUnitId" Label="<%$ Resources:Lan,UnitName %>" runat="server"
|
||||
ShowRedStar="true" Required="true" EnableEdit="true" LabelAlign="Right" LabelWidth="140px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDetectionMethod" Label="<%$ Resources:Lan,DetectionMethod %>" runat="server"
|
||||
LabelAlign="Right" MaxLength="50" LabelWidth="180px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtDetectionStandard" Label="<%$ Resources:Lan,DetectionStandard %>" runat="server"
|
||||
LabelAlign="Right" MaxLength="50" LabelWidth="140px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtTabler" Label="<%$ Resources:Lan,Lister %>" runat="server" LabelAlign="Right"
|
||||
MaxLength="50" LabelWidth="180px">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtRemark" Label="<%$ Resources:Lan,Remark %>" runat="server" LabelAlign="Right"
|
||||
MaxLength="100" LabelWidth="140px">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,PMIDelegationTrust %>"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="WeldJointId,Id"
|
||||
EnableColumnLines="true" AllowCellEditing="true" ClicksToEdit="1" DataIDField="Id"
|
||||
AllowSorting="true" SortField="PipelineCode,WeldJointCode" SortDirection="ASC"
|
||||
AllowPaging="false" IsDatabasePaging="true" PageSize="10000" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnDelete" Text="<%$ Resources:Lan,DeleteRows %>" ToolTip="<%$ Resources:Lan,DeleteData %>"
|
||||
ConfirmText="<%$ Resources:Lan,DeleteReminder %>" ConfirmTarget="Top" Icon="Delete"
|
||||
runat="server" OnClick="btnMenuDelete_Click">
|
||||
</f:Button>
|
||||
<f:Button runat="server" ID="ckSelect" Text="<%$ Resources:Lan,Find %>" Icon="Find"
|
||||
OnClick="ckSelect_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="<%$ Resources:Lan,SerialNumber %>"
|
||||
Width="90px" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,PipelineCode %>" ColumnID="PipelineCode"
|
||||
DataField="PipelineCode" SortField="PipelineCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,WeldingJointNumber %>" ColumnID="WeldJointCode"
|
||||
DataField="WeldJointCode" SortField="WeldJointCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,Specifications %>" ColumnID="Specification"
|
||||
DataField="Specification" SortField="Specification" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,MaterialSpecificationCode %>" ColumnID="MaterialCode"
|
||||
DataField="MaterialCode" SortField="MaterialCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="220px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,QualityNo %>" ColumnID="QualityNo" DataField="QualityNo"
|
||||
FieldType="String" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="tbxEditorQualityNo" Required="true" runat="server">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,Acceptance %>" ColumnID="Acceptance"
|
||||
DataField="Acceptance" FieldType="String" TextAlign="Left" Width="150px">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtEditorAcceptance" Required="true" runat="server">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="WeldJointId" ColumnID="WeldJointId" DataField="WeldJointId"
|
||||
FieldType="String" Hidden="true">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField HeaderText="Id" ColumnID="Id"
|
||||
DataField="Id" FieldType="String" Hidden="true">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="<%$ Resources:Lan,PopForm %>" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close"
|
||||
IsModal="true" Width="1200px" Height="560px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
Icon="Delete" ConfirmText="<%$ Resources:Lan,DeleteReminder %>" ConfirmTarget="Top"
|
||||
runat="server" Text="<%$ Resources:Lan,Delete %>">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['PipelineCode']);
|
||||
this.mergeColumns(['WeldJointCode']);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,339 @@
|
|||
using BLL;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Services.Description;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
public partial class PMIDelegationEdit : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// PMI委托主键
|
||||
/// </summary>
|
||||
public string PMIDelegationId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["PMIDelegationId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["PMIDelegationId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.PMIDelegationId = Request.QueryString["PMIDelegationId"];
|
||||
BLL.Project_InstallationService.InitInstallationDropDownList(this.drpInstallationId, true, this.CurrUser.LoginProjectId, Resources.Lan.PleaseSelect);//装置
|
||||
BLL.Base_UnitService.InitUnitDropDownList(this.drpUnitId, true, BLL.Const.UnitType_5, Resources.Lan.PleaseSelect);//单位
|
||||
|
||||
this.PageInfoLoad(); ///加载页面
|
||||
this.txtDetectionMethod.Text = "PMI光谱分析";
|
||||
this.txtDetectionMethod.Enabled = false;
|
||||
var viewData=Funs.DB.View_PMI_DelegationDetails.Where(t=>t.PMIId==this.PMIDelegationId).ToList();
|
||||
this.BindGrid(viewData); ////初始化页面
|
||||
this.txtDelegationDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 加载页面输入提交信息
|
||||
/// <summary>
|
||||
/// 加载页面输入提交信息
|
||||
/// </summary>
|
||||
private void PageInfoLoad()
|
||||
{
|
||||
var trust = Funs.DB.PMI_Delegation.FirstOrDefault(t=>t.Id==this.PMIDelegationId);
|
||||
if (trust != null)
|
||||
{
|
||||
//this.ProjectId = trust.ProjectId;
|
||||
this.txtDelegationNo.Text = trust.DelegationNo;
|
||||
if (trust.DelegationDate.HasValue)
|
||||
{
|
||||
this.txtDelegationDate.Text = string.Format("{0:yyyy-MM-dd}", trust.DelegationDate);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(trust.InstallationId))
|
||||
{
|
||||
this.drpInstallationId.SelectedValue = trust.InstallationId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(trust.UnitId))
|
||||
{
|
||||
this.drpUnitId.SelectedValue = trust.UnitId;
|
||||
}
|
||||
this.txtDetectionMethod.Text = "PMI光谱分析";
|
||||
this.txtDetectionStandard.Text = trust.DetectionStandard;
|
||||
if (!string.IsNullOrEmpty(trust.Tabler))
|
||||
{
|
||||
this.txtTabler.Text = BLL.Sys_UserService.GetUserNameByUserId(trust.Tabler);
|
||||
}
|
||||
this.txtRemark.Text = trust.Remark;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtTabler.Text = this.CurrUser.UserName;
|
||||
this.SimpleForm1.Reset(); //重置所有字段
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid(List<Model.View_PMI_DelegationDetails> lists)
|
||||
{
|
||||
DataTable tb = this.LINQToDataTable(lists);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查找需要热处理的焊口
|
||||
/// <summary>
|
||||
/// 查找需要PMI处理的焊口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ckSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.drpUnitId.SelectedValue) && this.drpUnitId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
string weldJointIds = string.Empty;
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
{
|
||||
string jotId = Grid1.DataKeys[i][0].ToString();
|
||||
weldJointIds += jotId + "|";
|
||||
}
|
||||
if (weldJointIds != string.Empty)
|
||||
{
|
||||
weldJointIds = weldJointIds.Substring(0, weldJointIds.Length - 1);
|
||||
}
|
||||
|
||||
//url查询
|
||||
string window = String.Format($"PMISelectList.aspx?unitId={this.drpUnitId.SelectedValue}&projectId={this.CurrUser.LoginProjectId}&weldJointIds={weldJointIds}", "编辑 - ");
|
||||
PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdItemsString.ClientID) + Window1.GetShowReference(window));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(Resources.Lan.PleaseSelectCompany, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Grid 关闭弹出窗口事件
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
string weldJointIds = string.Empty;
|
||||
if (!string.IsNullOrEmpty(hdItemsString.Text))
|
||||
{
|
||||
weldJointIds = hdItemsString.Text.Substring(0, hdItemsString.Text.LastIndexOf('|'));
|
||||
|
||||
List<Model.View_PMI_DelegationDetails> lists = BLL.PMIDelegation_Service.GetPMI_DelegationAddItem(weldJointIds);
|
||||
this.BindGrid(lists);
|
||||
//获取单位
|
||||
string unitCode = Funs.DB.Base_Unit.FirstOrDefault(t => t.UnitId == drpUnitId.SelectedValue)?.UnitCode;
|
||||
//获取区域code
|
||||
var workdAreaIdList = lists.Select(t => t.WorkAreaId).ToList();
|
||||
|
||||
var workAreaCode = Funs.DB.Project_WorkArea.AsQueryable().Where(t => workdAreaIdList.Contains(t.WorkAreaId)).Distinct().FirstOrDefault()?.WorkAreaCode;
|
||||
|
||||
this.txtDelegationNo.Text = $"PMI-{unitCode}-{workAreaCode}-PI-";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region PMI委托 提交事件
|
||||
/// <summary>
|
||||
/// 编辑PMI委托
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.PMIDelegationId, Const.BtnSave))
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
SaveData();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
BLL.ErrLogInfo.WriteLog(ex);
|
||||
ShowNotify(Resources.Lan.PMIError, MessageBoxIcon.Error);
|
||||
return;
|
||||
}
|
||||
|
||||
ShowNotify(Resources.Lan.SaveSuccessfully, MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(this.PMIDelegationId)
|
||||
+ ActiveWindow.GetHideReference());
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void SaveData()
|
||||
{
|
||||
|
||||
if (!string.IsNullOrEmpty(this.PMIDelegationId))
|
||||
{
|
||||
|
||||
var isExists = Funs.DB.PMI_Delegation.Any(t => t.DelegationNo == this.txtDelegationNo.Text.Trim()
|
||||
&& t.ProjectId == this.CurrUser.LoginProjectId && t.Id!=this.PMIDelegationId);
|
||||
if (isExists)
|
||||
{
|
||||
ShowNotify(Resources.Lan.PMICodeExists, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var result = Funs.DB.PMI_Delegation.FirstOrDefault(t => t.Id == this.PMIDelegationId);
|
||||
if(result==null)
|
||||
{
|
||||
ShowNotify(Resources.Lan.PMICodeNotExists, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
result.DelegationNo = txtDelegationNo.Text.Trim();
|
||||
result.DelegationDate = !string.IsNullOrEmpty(txtDelegationDate.Text.Trim()) ? DateTime.Parse(txtDelegationDate.Text.Trim()) : DateTime.Now;
|
||||
result.InstallationId = drpInstallationId.SelectedValue;
|
||||
result.UnitId = drpUnitId.SelectedValue;
|
||||
result.ProjectId = this.CurrUser.LoginProjectId;
|
||||
result.Remark = txtRemark.Text.Trim();
|
||||
result.DetectionStandard = txtDetectionStandard.Text.Trim();
|
||||
result.Tabler = this.CurrUser.UserId;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
var isExists = Funs.DB.PMI_Delegation.Any(t => t.DelegationNo == this.txtDelegationNo.Text.Trim() && t.ProjectId == this.CurrUser.LoginProjectId);
|
||||
if (isExists)
|
||||
{
|
||||
ShowNotify(Resources.Lan.PMICodeExists, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var pmiModel = new Model.PMI_Delegation();
|
||||
pmiModel.DelegationNo = txtDelegationNo.Text.Trim();
|
||||
pmiModel.DelegationDate = !string.IsNullOrEmpty(txtDelegationDate.Text.Trim()) ? DateTime.Parse(txtDelegationDate.Text.Trim()) : DateTime.Now;
|
||||
pmiModel.InstallationId = drpInstallationId.SelectedValue;
|
||||
pmiModel.UnitId = drpUnitId.SelectedValue;
|
||||
pmiModel.ProjectId = this.CurrUser.LoginProjectId;
|
||||
pmiModel.Remark = txtRemark.Text.Trim();
|
||||
pmiModel.DetectionStandard = txtDetectionStandard.Text.Trim();
|
||||
pmiModel.Tabler = this.CurrUser.UserId;
|
||||
pmiModel.Id = SQLHelper.GetNewID(typeof(Model.PMI_Delegation));
|
||||
this.PMIDelegationId = pmiModel.Id;
|
||||
pmiModel.CreatedTime = DateTime.Now;
|
||||
Funs.DB.PMI_Delegation.InsertOnSubmit(pmiModel);
|
||||
}
|
||||
|
||||
//先删除明细表
|
||||
var deleteEntity = Funs.DB.PMI_DelegationDetails.Where(t => t.PMIId == this.PMIDelegationId).ToList();
|
||||
if (deleteEntity.Any())
|
||||
{
|
||||
Funs.DB.PMI_DelegationDetails.DeleteAllOnSubmit(deleteEntity);
|
||||
}
|
||||
//再插入明细表
|
||||
this.CollectGridJointInfo();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 收集Grid页面信息,提交明细
|
||||
/// <summary>
|
||||
/// 收集Grid页面信息,提交明细
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private void CollectGridJointInfo()
|
||||
{
|
||||
var listData = new List<Model.PMI_DelegationDetails>();
|
||||
JArray mergedData = Grid1.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
Model.PMI_DelegationDetails newTrustItem = new Model.PMI_DelegationDetails();
|
||||
newTrustItem.Id = SQLHelper.GetNewID(typeof(PMI_DelegationDetails));
|
||||
newTrustItem.JointId = values.Value<string>("WeldJointId").ToString();
|
||||
newTrustItem.Acceptance = values.Value<string>("Acceptance").ToString();
|
||||
newTrustItem.QualityNo = values.Value<string>("QualityNo").ToString();
|
||||
newTrustItem.Status = 0;
|
||||
newTrustItem.CreatedTime = DateTime.Now;
|
||||
newTrustItem.PMIId = this.PMIDelegationId;
|
||||
listData.Add(newTrustItem);
|
||||
}
|
||||
Funs.DB.PMI_DelegationDetails.InsertAllOnSubmit(listData);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 右键删除事件
|
||||
/// <summary>
|
||||
/// 右键删除事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdItemsString.Text))
|
||||
{
|
||||
this.hdItemsString.Text = this.hdItemsString.Text.Substring(0, this.hdItemsString.Text.LastIndexOf('|'));
|
||||
}
|
||||
var trust = Funs.DB.PMI_Delegation.FirstOrDefault(t=>t.Id==this.PMIDelegationId);
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
List<Model.View_PMI_DelegationDetails> GetHotProessTrustItem = new List<Model.View_PMI_DelegationDetails>();
|
||||
if (!string.IsNullOrEmpty(this.hdItemsString.Text))
|
||||
{
|
||||
GetHotProessTrustItem = BLL.PMIDelegation_Service.GetPMI_DelegationAddItem(this.hdItemsString.Text);
|
||||
}
|
||||
else if (string.IsNullOrEmpty(this.hdItemsString.Text) && this.PMIDelegationId != null)
|
||||
{
|
||||
GetHotProessTrustItem = BLL.PMIDelegation_Service.GetPMI_DelegationItem(this.CurrUser.LoginProjectId, this.PMIDelegationId);
|
||||
}
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var item = GetHotProessTrustItem.FirstOrDefault(x => x.WeldJointId == rowID);
|
||||
if (item != null)
|
||||
{
|
||||
GetHotProessTrustItem.Remove(item);
|
||||
}
|
||||
}
|
||||
BindGrid(GetHotProessTrustItem);
|
||||
ShowNotify(Resources.Lan.DeletedSuccessfully, MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,251 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
|
||||
|
||||
public partial class PMIDelegationEdit
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// hdItemsString 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdItemsString;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtDelegationNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDelegationNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtDelegationDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtDelegationDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpInstallationId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpInstallationId;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnitId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnitId;
|
||||
|
||||
/// <summary>
|
||||
/// txtDetectionMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDetectionMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtDetectionStandard 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDetectionStandard;
|
||||
|
||||
/// <summary>
|
||||
/// txtTabler 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTabler;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDelete;
|
||||
|
||||
/// <summary>
|
||||
/// ckSelect 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button ckSelect;
|
||||
|
||||
/// <summary>
|
||||
/// tbxEditorQualityNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox tbxEditorQualityNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtEditorAcceptance 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtEditorAcceptance;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
|
@ -42,7 +42,7 @@
|
|||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="检测单节点树" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
Height="640px" runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableTextSelection="true" >
|
||||
AutoLeafIdentification="true" EnableTextSelection="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
@ -107,12 +107,23 @@
|
|||
</f:Form>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="检测单明细" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="NDEItemID" AllowCellEditing="true" AllowColumnLocking="true"
|
||||
EnableColumnLines="true" ClicksToEdit="2" DataIDField="NDEItemID" AllowSorting="true"
|
||||
SortField="PipelineCode,WeldJointCode" SortDirection="ASC" OnSort="Grid1_Sort"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableTextSelection="True">
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,HotProessTrust %>"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="ID"
|
||||
AllowCellEditing="true" AllowColumnLocking="true" EnableColumnLines="true" ClicksToEdit="2"
|
||||
DataIDField="ID" AllowSorting="true" SortField="PipelineCode,WeldJointCode"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:TextBox ID="txtIsoNo" Label="<%$ Resources:Lan,PipelineCode %>" runat="server"
|
||||
LabelWidth="120px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="TextBox_TextChanged">
|
||||
</f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="<%$ Resources:Lan,SerialNumber %>"
|
||||
Width="50px" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
|
@ -132,10 +143,20 @@
|
|||
DataField="MaterialCode" SortField="MaterialCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,TrustDate %>" ColumnID="ProessDate"
|
||||
DataField="ProessDate" SortField="ProessDate" FieldType="Date" Renderer="Date"
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,TrustDate %>" ColumnID="CreatedTime"
|
||||
DataField="CreatedTime" SortField="CreatedTime" FieldType="Date" Renderer="Date"
|
||||
HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,QualityNo %>" ColumnID="QualityNo" DataField="QualityNo"
|
||||
FieldType="String" TextAlign="Left" Width="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,Acceptance %>" ColumnID="Acceptance"
|
||||
DataField="Acceptance" FieldType="String" TextAlign="Left" Width="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,IsPass %>" ColumnID="StatusText"
|
||||
DataField="StatusText" SortField="status" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
|
|
|
@ -8,6 +8,7 @@ using System.Web;
|
|||
using System.Collections;
|
||||
using Model;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
using FineUIPro.Web.common.ProjectSet;
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
|
@ -48,8 +49,6 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
{
|
||||
if (!string.IsNullOrEmpty(this.txtNDEDateMonth.Text.Trim()))
|
||||
{
|
||||
DateTime startTime = Convert.ToDateTime(this.txtNDEDateMonth.Text.Trim() + "-01");
|
||||
DateTime endTime = startTime.AddMonths(1);
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
List<Model.Base_Unit> units = new List<Model.Base_Unit>();
|
||||
Model.Project_Unit pUnit = BLL.Project_UnitService.GetProject_UnitByProjectIdUnitId(this.CurrUser.LoginProjectId, this.CurrUser.UnitId);
|
||||
|
@ -96,30 +95,20 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
/// <param name="node"></param>
|
||||
private void BindNodes(TreeNode node)
|
||||
{
|
||||
DateTime startTime = Convert.ToDateTime(this.txtNDEDateMonth.Text.Trim() + "-01");
|
||||
DateTime endTime = startTime.AddMonths(1);
|
||||
string searchCode = this.txtSearchCode.Text.Trim();
|
||||
if (node.ToolTip == "Unit")
|
||||
{
|
||||
///装置
|
||||
var install = (from x in Funs.DB.Project_Installation
|
||||
join y in Funs.DB.PMI_Delegation on x.InstallationId equals y.InstallationId
|
||||
where y.UnitId == node.NodeID && x.ProjectId == this.CurrUser.LoginProjectId
|
||||
orderby x.InstallationCode
|
||||
select x).Distinct();
|
||||
foreach (var q in install)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = q.InstallationName;
|
||||
newNode.NodeID = q.InstallationId + "|" + node.NodeID;
|
||||
newNode.ToolTip = "Installation";
|
||||
node.Nodes.Add(newNode);
|
||||
BindNodes(newNode);
|
||||
}
|
||||
}
|
||||
else if (node.ToolTip == "Installation")
|
||||
{
|
||||
string[] unitAndInstallationArr= node.NodeID.Split('|');
|
||||
var ndt = from x in Funs.DB.PMI_Delegation where x.UnitId == unitAndInstallationArr[1]
|
||||
&& x.InstallationId == unitAndInstallationArr[0]
|
||||
&& x.ProjectId == this.CurrUser.LoginProjectId select x;
|
||||
string unitId = node.NodeID;
|
||||
var ndt = from x in Funs.DB.PMI_Delegation
|
||||
where x.UnitId == unitId
|
||||
&& x.ProjectId == this.CurrUser.LoginProjectId
|
||||
&& x.DelegationDate >= startTime && x.DelegationDate <= endTime
|
||||
&&( x.DelegationNo.Contains(searchCode)|| searchCode=="")
|
||||
select x;
|
||||
//if (!string.IsNullOrWhiteSpace(searchCode))
|
||||
// ndt = ndt.Where(q => q.DelegationNo.Contains(searchCode));
|
||||
foreach (var q in ndt)
|
||||
{
|
||||
|
||||
|
@ -130,8 +119,8 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
newNode.EnableClickEvent = true;
|
||||
node.Nodes.Add(newNode);
|
||||
BindNodes(newNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -162,12 +151,51 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
{
|
||||
if (!string.IsNullOrWhiteSpace(this.hdPMIId.Text) && this.tvControlItem.SelectedNode.ToolTip == "DelegationNo")
|
||||
{
|
||||
string strSql = string.Empty;
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
this.SetTextTemp();
|
||||
this.PageInfoLoad(); ///页面输入提交信息
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
var result = Funs.DB.PMI_Delegation.FirstOrDefault(t => t.Id == this.tvControlItem.SelectedNodeID);
|
||||
if (result != null)
|
||||
{
|
||||
this.PMIID = result.Id;
|
||||
strSql = @"SELECT *,
|
||||
(case status when 0 then '合格' else '不合格' end) StatusText
|
||||
FROM [View_PMI_DelegationDetails] WHERE ProjectId= @ProjectId AND PMIID=@PMIDelegationId ";
|
||||
|
||||
listStr.Add(new SqlParameter("@ProjectId", result != null ? result.ProjectId : this.CurrUser.LoginProjectId));
|
||||
listStr.Add(new SqlParameter("@PMIDelegationId", this.PMIID));
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtIsoNo.Text.Trim()))
|
||||
{
|
||||
strSql += @" and PipelineCode like '%'+@PipelineCode+'%' ";
|
||||
listStr.Add(new SqlParameter("@PipelineCode", this.txtIsoNo.Text.Trim()));
|
||||
}
|
||||
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// 2.获取当前分页数据
|
||||
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private string StatusText(int status) {
|
||||
if (status == 0)
|
||||
return "合格";
|
||||
else
|
||||
return "不合格";
|
||||
}
|
||||
|
||||
#region 加载页面输入提交信息
|
||||
/// <summary>
|
||||
/// 加载页面输入提交信息
|
||||
|
@ -185,9 +213,10 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
DelegationDate=x.DelegationDate,
|
||||
InstallationName=n.InstallationName,
|
||||
UnitName=y.UnitName,
|
||||
DetectionMethod="待定",
|
||||
DetectionMethod="PMI光谱分析",
|
||||
Tabler=x.Tabler,
|
||||
Remark=x.Remark,
|
||||
DetectionStandard=x.DetectionStandard,
|
||||
}).ToList();
|
||||
if (pageInfo.Count>0)
|
||||
{
|
||||
|
@ -198,6 +227,7 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
this.txtDetectionMethod.Text = pageInfo[0].DetectionMethod;
|
||||
this.txtTabler.Text = pageInfo[0].Tabler;
|
||||
this.txtRemark.Text = pageInfo[0].Remark;
|
||||
this.txtDetectionStandard.Text= pageInfo[0].DetectionStandard;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
@ -214,6 +244,7 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
this.txtDetectionMethod.Text = string.Empty;
|
||||
this.txtTabler.Text = string.Empty;
|
||||
this.txtRemark.Text = string.Empty;
|
||||
this.txtDetectionStandard.Text = string.Empty;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -221,6 +221,33 @@ namespace FineUIPro.Web.WeldingProcess.PMI
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsoNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtIsoNo;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -0,0 +1,100 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PMISelectList.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.PMI.PMISelectList" %>
|
||||
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>查找管线焊口信息</title>
|
||||
<base target="_self" />
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</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="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="250px" Title="<%$ Resources:Lan,Pipeline %>" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox ID="txtIsono" runat="server" Label="<%$ Resources:Lan,PipelineCode %>"
|
||||
EmptyText="<%$ Resources:Lan,EnterQueryConditions %>" AutoPostBack="true" OnTextChanged="Tree_TextChanged"
|
||||
Width="230px" LabelWidth="110px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Height="450px" Title="管线列表" OnNodeCommand="tvControlItem_NodeCommand"
|
||||
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
|
||||
AutoLeafIdentification="true" EnableTextSelection="true" Expanded="true">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="<%$ Resources:Lan,WeldingJointInfo %>"
|
||||
TitleToolTip="<%$ Resources:Lan,WeldingJointInfo %>" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,WeldingJointInfo %>"
|
||||
EnableCollapse="true" KeepCurrentSelection="true" runat="server" BoxFlex="1"
|
||||
DataKeyNames="WeldJointId" EnableColumnLines="true" DataIDField="WeldJointId"
|
||||
EnableTextSelection="True" AllowSorting="true" SortField="WeldJointCode" SortDirection="ASC"
|
||||
OnSort="Grid1_Sort" AllowPaging="false"
|
||||
EnableCheckBoxSelect="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:TextBox ID="txtJointNo" runat="server" Label="<%$ Resources:Lan,WeldingJointNumber %>"
|
||||
EmptyText="<%$ Resources:Lan,EnterQueryConditions %>" AutoPostBack="true" OnTextChanged="Tree2_TextChanged"
|
||||
Width="300px" LabelWidth="160px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:Label ID="ww" runat="server" Width="60px">
|
||||
</f:Label>
|
||||
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnAccept" Icon="Accept" runat="server" Text="<%$ Resources:Lan,Sure %>"
|
||||
OnClick="btnAccept_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,WeldingJointNumber %>" ColumnID="WeldJointCode"
|
||||
DataField="WeldJointCode" SortField="WeldJointCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="180px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,Specifications %>" ColumnID="Specification"
|
||||
DataField="Specification" SortField="Specification" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="180px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,MaterialSpecificationCode %>" ColumnID="MaterialCode"
|
||||
DataField="MaterialCode" SortField="MaterialCode" FieldType="String" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="300px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,WeldingDate %>" ColumnID="WeldingDate"
|
||||
DataField="WeldingDate" SortField="WeldingDate" FieldType="Date" Renderer="Date"
|
||||
HeaderTextAlign="Center" TextAlign="Left" Width="150px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
// F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,230 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
public partial class PMISelectList : PageBase
|
||||
{
|
||||
string UnitId = string.Empty;
|
||||
string ProjectId = string.Empty;
|
||||
string PMIId = string.Empty;
|
||||
string weldJointIds=string.Empty;
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.UnitId = Request.Params["unitId"] ??"";
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.PMIId = Request.Params["PMIId"]??"";
|
||||
this.weldJointIds = Request.Params["weldJointIds"] ?? "";
|
||||
this.InitTreeMenu();//加载树
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载管线信息
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = Resources.Lan.PipelineCode;
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.ToolTip = Resources.Lan.SeachTip;
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
//排除已经委托过的
|
||||
var listData= (from a in Funs.DB.PMI_Delegation.AsQueryable() join
|
||||
b in Funs.DB.PMI_DelegationDetails.AsQueryable() on
|
||||
a.Id equals b.PMIId
|
||||
select b.JointId
|
||||
).Distinct().ToList();
|
||||
|
||||
//查询带有PMI处理的管线数据
|
||||
var iso = from x in Funs.DB.View_Pipeline_WeldJoint
|
||||
where x.ProjectId == this.ProjectId && x.IsPMI == true && x.UnitId == this.UnitId
|
||||
select new { x.PipelineCode, x.PipelineId,x.WeldJointId }; //from x in Funs.DB.Pipeline_Pipeline where x.ProjectId == this.ProjectId && x.UnitId == this.UnitId select x;
|
||||
|
||||
if (listData.Count > 0)
|
||||
{
|
||||
iso = iso.Where(e => !listData.Contains(e.WeldJointId));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtIsono.Text))
|
||||
{
|
||||
iso = iso.Where(e => e.PipelineCode.Contains(this.txtIsono.Text.Trim()));
|
||||
}
|
||||
var isoList = iso.Select(x => new {x.PipelineId,x.PipelineCode }).OrderBy(x => x.PipelineCode).Distinct().ToList();
|
||||
if (isoList.Count > 0)
|
||||
{
|
||||
foreach (var q in isoList)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.NodeID = q.PipelineId;
|
||||
newNode.Text = q.PipelineCode;
|
||||
newNode.EnableClickEvent = true;
|
||||
rootNode.Nodes.Add(newNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 管线查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Tree_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
protected void Tree2_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var listData = (from a in Funs.DB.PMI_Delegation.AsQueryable()
|
||||
join
|
||||
b in Funs.DB.PMI_DelegationDetails.AsQueryable() on
|
||||
a.Id equals b.PMIId
|
||||
select b.JointId
|
||||
).Distinct().ToList();
|
||||
|
||||
// string sql = @"SELECT WeldJointId,ProjectId,PipelineId,WeldJointCode,WPQCode,DetectionType,
|
||||
// convert(int,dbo.Fun_GetParseInt(WeldJointCode)) AS ConvertJointNo,
|
||||
//dbo.Fun_GetParseString(WeldJointCode) AS PreJotNo,
|
||||
// PipingClassCode,PipeSegment,JointAttribute,PageNum,
|
||||
// ComponentsCode1,ComponentsCode2,Is_hjName,IsHotProessStr,Material1Code,Material2Code,
|
||||
// WeldTypeCode,Specification,HeartNo1,HeartNo2,Size,Dia,Thickness,GrooveTypeCode,
|
||||
// WeldingMethodCode,WeldSilkId,WeldMatCode,WeldingDate,WeldingDailyCode,DoneDin,
|
||||
// BackingWelderCode,CoverWelderCode,SystemNumber,TestPackageNo,Remark,
|
||||
// MaterialCode,WeldingDate,
|
||||
// (CASE WHEN IsCancel=1 THEN '是' ELSE '否' END) AS IsCancel,isPMI
|
||||
// FROM View_Pipeline_WeldJoint WHERE isPMI=1 ";
|
||||
|
||||
|
||||
// List<SqlParameter> paramsList = new List<SqlParameter>();
|
||||
// if (!string.IsNullOrEmpty(this.txtJointNo.Text))
|
||||
// {
|
||||
// sql += @" and WeldJointCode=@WeldJointCode";
|
||||
// paramsList.Add(new SqlParameter("@WeldJointCode", txtJointNo.Text.Trim()));
|
||||
// }
|
||||
// if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
// {
|
||||
// sql += @" and PipelineId=@PipelineId ";
|
||||
// paramsList.Add(new SqlParameter("@PipelineId", this.tvControlItem.SelectedNodeID));
|
||||
// }
|
||||
// var dt = SQLHelper.GetDataTableRunText(sql, paramsList.ToArray());
|
||||
var query = Funs.DB.View_Pipeline_WeldJoint.Where(t => t.IsPMI == true);
|
||||
if (listData.Count > 0)
|
||||
{
|
||||
query = query.Where(t => !listData.Contains(t.WeldJointId));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtJointNo.Text))
|
||||
{
|
||||
query = query.Where(t => t.WeldJointCode == this.txtJointNo.Text);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
|
||||
{
|
||||
query = query.Where(t => t.PipelineId == this.tvControlItem.SelectedNodeID);
|
||||
}
|
||||
Grid1.DataSource = query.ToList();
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 提交按钮
|
||||
/// <summary>
|
||||
/// 提交按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAccept_Click(object sender, EventArgs e)
|
||||
{
|
||||
string itemsString = "";
|
||||
string[] selectRowId = Grid1.SelectedRowIDArray;
|
||||
int n = 0;
|
||||
int j = 0;
|
||||
int[] selections = new int[selectRowId.Count()];
|
||||
foreach (GridRow row in Grid1.Rows)
|
||||
{
|
||||
if (selectRowId.Contains(row.DataKeys[0]))
|
||||
{
|
||||
selections[n] = j;
|
||||
n++;
|
||||
}
|
||||
j++;
|
||||
}
|
||||
var select = selections.Distinct();
|
||||
string jotIds = Request.Params["jotIds"];
|
||||
if (!string.IsNullOrEmpty(jotIds))
|
||||
{
|
||||
string[] jots = jotIds.Split('|');
|
||||
foreach (string jotId in jots)
|
||||
{
|
||||
itemsString += jotId + "|";
|
||||
}
|
||||
}
|
||||
foreach (int i in select)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[i][0].ToString();
|
||||
if (!itemsString.Contains(rowID))
|
||||
{
|
||||
itemsString += rowID + "|";
|
||||
}
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(itemsString)
|
||||
+ ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,143 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
|
||||
|
||||
public partial class PMISelectList
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// txtIsono 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtIsono;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// txtJointNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtJointNo;
|
||||
|
||||
/// <summary>
|
||||
/// ww 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label ww;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnAccept 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAccept;
|
||||
}
|
||||
}
|
|
@ -137,11 +137,13 @@
|
|||
<f:CheckBox ID="ckbIsGoldJoint" runat="server" Label="是否黄金口" LabelWidth="130px"></f:CheckBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="25% 25% 50% ">
|
||||
<f:FormRow ColumnWidths="25% 15% 15% 35% ">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpNDTType" runat="server" Label="可能探伤类型" LabelWidth="130px" EnableMultiSelect="true" ShowRedStar="true" Required="true"></f:DropDownList>
|
||||
|
||||
<f:CheckBox ID="ckbIsCancel" runat="server" Label="是否取消" LabelWidth="130px" ></f:CheckBox>
|
||||
<f:CheckBox ID="ckbIsPMI" runat="server" Label="是否PMI处理" LabelWidth="110px" Width="80px" ></f:CheckBox>
|
||||
|
||||
<f:CheckBox ID="ckbIsCancel" runat="server" Label="是否取消" LabelWidth="80px" Width="80px" ></f:CheckBox>
|
||||
<f:TextBox ID="txtCancelResult" runat="server" Label="取消原因" LabelWidth="130px" Width="160px"></f:TextBox>
|
||||
<f:Button ID="btnCancel" Text="取消" ToolTip="如已发生业务可取消,取消时请说明原因,如未发生业务可直接删除!" runat="server"
|
||||
OnClick="btnCancel_Click">
|
||||
|
|
|
@ -329,6 +329,8 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
{
|
||||
this.drpIsHotProess.SelectedValue = BLL.Const._False;
|
||||
}
|
||||
//是否PMI处理
|
||||
ckbIsPMI.Checked = (jointInfo.IsPMI.HasValue && jointInfo.IsPMI.Value) ? true : false;
|
||||
|
||||
if (jointInfo.IsCancel == true)
|
||||
{
|
||||
|
@ -501,6 +503,8 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
{
|
||||
newJointInfo.IsCancel = true;
|
||||
}
|
||||
//是否PMI处理
|
||||
newJointInfo.IsPMI = ckbIsPMI.Checked;
|
||||
|
||||
if (ckbIsGoldJoint.Checked == true)
|
||||
{
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
||||
|
||||
|
||||
public partial class JointInfoEdit {
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
{
|
||||
|
||||
|
||||
public partial class JointInfoEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldJointCode 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldJointCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPipingClass 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPipingClass;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWeldType 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWeldType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPipeSegment 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipeSegment;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpMaterial1 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpMaterial1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpMaterial2 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpMaterial2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWeldingMethod 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWeldingMethod;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpJointAttribute 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +130,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpJointAttribute;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSize 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +139,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpANSISCH 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +148,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpANSISCH;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDia 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +157,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtDia;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtThickness 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +166,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtThickness;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSpecification 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +175,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSpecification;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpGrooveType 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +184,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpGrooveType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWeldingLocation 控件。
|
||||
/// </summary>
|
||||
|
@ -191,7 +193,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWeldingLocation;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWPS 控件。
|
||||
/// </summary>
|
||||
|
@ -200,7 +202,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWPS;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSelectWps 控件。
|
||||
/// </summary>
|
||||
|
@ -209,7 +211,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSelectWps;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPageNum 控件。
|
||||
/// </summary>
|
||||
|
@ -218,7 +220,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPageNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpIsHotProess 控件。
|
||||
/// </summary>
|
||||
|
@ -227,7 +229,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpIsHotProess;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestPackageNo 控件。
|
||||
/// </summary>
|
||||
|
@ -236,7 +238,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestPackageNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSystemNumber 控件。
|
||||
/// </summary>
|
||||
|
@ -245,7 +247,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSystemNumber;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHeartNo1 控件。
|
||||
/// </summary>
|
||||
|
@ -254,7 +256,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHeartNo1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHeartNo2 控件。
|
||||
/// </summary>
|
||||
|
@ -263,7 +265,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHeartNo2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPipeAssembly1 控件。
|
||||
/// </summary>
|
||||
|
@ -272,7 +274,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPipeAssembly1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPipeAssembly2 控件。
|
||||
/// </summary>
|
||||
|
@ -281,7 +283,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPipeAssembly2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWeldSilk 控件。
|
||||
/// </summary>
|
||||
|
@ -290,7 +292,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWeldSilk;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpWeldMat 控件。
|
||||
/// </summary>
|
||||
|
@ -299,7 +301,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWeldMat;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPrepareTemp 控件。
|
||||
/// </summary>
|
||||
|
@ -308,7 +310,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPrepareTemp;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ckbIsGoldJoint 控件。
|
||||
/// </summary>
|
||||
|
@ -317,7 +319,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbIsGoldJoint;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpNDTType 控件。
|
||||
/// </summary>
|
||||
|
@ -326,7 +328,16 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpNDTType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ckbIsPMI 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbIsPMI;
|
||||
|
||||
/// <summary>
|
||||
/// ckbIsCancel 控件。
|
||||
/// </summary>
|
||||
|
@ -335,7 +346,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox ckbIsCancel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCancelResult 控件。
|
||||
/// </summary>
|
||||
|
@ -344,7 +355,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCancelResult;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnCancel 控件。
|
||||
/// </summary>
|
||||
|
@ -353,7 +364,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnCancel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
@ -362,7 +373,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm2 控件。
|
||||
/// </summary>
|
||||
|
@ -371,7 +382,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtReport 控件。
|
||||
/// </summary>
|
||||
|
@ -380,7 +391,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtReport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPoint 控件。
|
||||
/// </summary>
|
||||
|
@ -389,7 +400,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtPoint;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlTrustFlag 控件。
|
||||
/// </summary>
|
||||
|
@ -398,7 +409,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label ddlTrustFlag;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlCheckFlag 控件。
|
||||
/// </summary>
|
||||
|
@ -407,7 +418,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label ddlCheckFlag;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbUnitName 控件。
|
||||
/// </summary>
|
||||
|
@ -416,7 +427,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbUnitName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbInstallationName 控件。
|
||||
/// </summary>
|
||||
|
@ -425,7 +436,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbInstallationName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWorkAreaId 控件。
|
||||
/// </summary>
|
||||
|
@ -434,7 +445,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtWorkAreaId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineCode 控件。
|
||||
/// </summary>
|
||||
|
@ -443,7 +454,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtPipelineCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSingleNumber 控件。
|
||||
/// </summary>
|
||||
|
@ -452,7 +463,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtSingleNumber;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlReportCode 控件。
|
||||
/// </summary>
|
||||
|
@ -461,7 +472,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label ddlReportCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtReportDate 控件。
|
||||
/// </summary>
|
||||
|
@ -470,7 +481,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtReportDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlJointStatus 控件。
|
||||
/// </summary>
|
||||
|
@ -479,7 +490,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label ddlJointStatus;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtBackingWelder 控件。
|
||||
/// </summary>
|
||||
|
@ -488,7 +499,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtBackingWelder;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtBackingWelderName 控件。
|
||||
/// </summary>
|
||||
|
@ -497,7 +508,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtBackingWelderName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCoverWelder 控件。
|
||||
/// </summary>
|
||||
|
@ -506,7 +517,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCoverWelder;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCoverWelderName 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -173,6 +173,12 @@ namespace Model
|
|||
partial void InsertPipeline_WeldJoint(Pipeline_WeldJoint instance);
|
||||
partial void UpdatePipeline_WeldJoint(Pipeline_WeldJoint instance);
|
||||
partial void DeletePipeline_WeldJoint(Pipeline_WeldJoint instance);
|
||||
partial void InsertPMI_Delegation(PMI_Delegation instance);
|
||||
partial void UpdatePMI_Delegation(PMI_Delegation instance);
|
||||
partial void DeletePMI_Delegation(PMI_Delegation instance);
|
||||
partial void InsertPMI_DelegationDetails(PMI_DelegationDetails instance);
|
||||
partial void UpdatePMI_DelegationDetails(PMI_DelegationDetails instance);
|
||||
partial void DeletePMI_DelegationDetails(PMI_DelegationDetails instance);
|
||||
partial void InsertProject_Installation(Project_Installation instance);
|
||||
partial void UpdateProject_Installation(Project_Installation instance);
|
||||
partial void DeleteProject_Installation(Project_Installation instance);
|
||||
|
@ -664,6 +670,22 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<PMI_Delegation> PMI_Delegation
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<PMI_Delegation>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<PMI_DelegationDetails> PMI_DelegationDetails
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<PMI_DelegationDetails>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Project_Installation> Project_Installation
|
||||
{
|
||||
get
|
||||
|
@ -1048,6 +1070,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<View_PMI_DelegationDetails> View_PMI_DelegationDetails
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<View_PMI_DelegationDetails>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<View_PTP_TestPackageAudit> View_PTP_TestPackageAudit
|
||||
{
|
||||
get
|
||||
|
@ -19353,6 +19383,8 @@ namespace Model
|
|||
|
||||
private string _ANSISCH;
|
||||
|
||||
private System.Nullable<bool> _IsPMI;
|
||||
|
||||
private EntitySet<Batch_BatchTrustItem> _Batch_BatchTrustItem;
|
||||
|
||||
private EntitySet<Batch_PointBatchItem> _Batch_PointBatchItem;
|
||||
|
@ -19491,6 +19523,8 @@ namespace Model
|
|||
partial void OnPageNumChanged();
|
||||
partial void OnANSISCHChanging(string value);
|
||||
partial void OnANSISCHChanged();
|
||||
partial void OnIsPMIChanging(System.Nullable<bool> value);
|
||||
partial void OnIsPMIChanged();
|
||||
#endregion
|
||||
|
||||
public Pipeline_WeldJoint()
|
||||
|
@ -20525,6 +20559,26 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="isPMI", Storage="_IsPMI", DbType="Bit")]
|
||||
public System.Nullable<bool> IsPMI
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IsPMI;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IsPMI != value))
|
||||
{
|
||||
this.OnIsPMIChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._IsPMI = value;
|
||||
this.SendPropertyChanged("IsPMI");
|
||||
this.OnIsPMIChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Batch_BatchTrustItem_Pipeline_WeldJoint", Storage="_Batch_BatchTrustItem", ThisKey="WeldJointId", OtherKey="WeldJointId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Batch_BatchTrustItem> Batch_BatchTrustItem
|
||||
{
|
||||
|
@ -21129,6 +21183,490 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.PMI_Delegation")]
|
||||
public partial class PMI_Delegation : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _Id;
|
||||
|
||||
private string _DelegationNo;
|
||||
|
||||
private System.Nullable<System.DateTime> _DelegationDate;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _InstallationId;
|
||||
|
||||
private string _UnitId;
|
||||
|
||||
private string _DetectionStandard;
|
||||
|
||||
private string _Remark;
|
||||
|
||||
private System.Nullable<System.DateTime> _CreatedTime;
|
||||
|
||||
private string _Tabler;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnIdChanging(string value);
|
||||
partial void OnIdChanged();
|
||||
partial void OnDelegationNoChanging(string value);
|
||||
partial void OnDelegationNoChanged();
|
||||
partial void OnDelegationDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnDelegationDateChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnInstallationIdChanging(string value);
|
||||
partial void OnInstallationIdChanged();
|
||||
partial void OnUnitIdChanging(string value);
|
||||
partial void OnUnitIdChanged();
|
||||
partial void OnDetectionStandardChanging(string value);
|
||||
partial void OnDetectionStandardChanged();
|
||||
partial void OnRemarkChanging(string value);
|
||||
partial void OnRemarkChanged();
|
||||
partial void OnCreatedTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCreatedTimeChanged();
|
||||
partial void OnTablerChanging(string value);
|
||||
partial void OnTablerChanged();
|
||||
#endregion
|
||||
|
||||
public PMI_Delegation()
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Id != value))
|
||||
{
|
||||
this.OnIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Id = value;
|
||||
this.SendPropertyChanged("Id");
|
||||
this.OnIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationNo", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string DelegationNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DelegationNo;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DelegationNo != value))
|
||||
{
|
||||
this.OnDelegationNoChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DelegationNo = value;
|
||||
this.SendPropertyChanged("DelegationNo");
|
||||
this.OnDelegationNoChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> DelegationDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DelegationDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DelegationDate != value))
|
||||
{
|
||||
this.OnDelegationDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DelegationDate = value;
|
||||
this.SendPropertyChanged("DelegationDate");
|
||||
this.OnDelegationDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectId != value))
|
||||
{
|
||||
this.OnProjectIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectId = value;
|
||||
this.SendPropertyChanged("ProjectId");
|
||||
this.OnProjectIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)")]
|
||||
public string InstallationId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InstallationId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InstallationId != value))
|
||||
{
|
||||
this.OnInstallationIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InstallationId = value;
|
||||
this.SendPropertyChanged("InstallationId");
|
||||
this.OnInstallationIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
|
||||
public string UnitId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UnitId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UnitId != value))
|
||||
{
|
||||
this.OnUnitIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UnitId = value;
|
||||
this.SendPropertyChanged("UnitId");
|
||||
this.OnUnitIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DetectionStandard", DbType="NVarChar(50)")]
|
||||
public string DetectionStandard
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DetectionStandard;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DetectionStandard != value))
|
||||
{
|
||||
this.OnDetectionStandardChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DetectionStandard = value;
|
||||
this.SendPropertyChanged("DetectionStandard");
|
||||
this.OnDetectionStandardChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(255)")]
|
||||
public string Remark
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Remark;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Remark != value))
|
||||
{
|
||||
this.OnRemarkChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Remark = value;
|
||||
this.SendPropertyChanged("Remark");
|
||||
this.OnRemarkChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedTime", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> CreatedTime
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CreatedTime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CreatedTime != value))
|
||||
{
|
||||
this.OnCreatedTimeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CreatedTime = value;
|
||||
this.SendPropertyChanged("CreatedTime");
|
||||
this.OnCreatedTimeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tabler", DbType="NVarChar(50)")]
|
||||
public string Tabler
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Tabler;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Tabler != value))
|
||||
{
|
||||
this.OnTablerChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Tabler = value;
|
||||
this.SendPropertyChanged("Tabler");
|
||||
this.OnTablerChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.PMI_DelegationDetails")]
|
||||
public partial class PMI_DelegationDetails : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _Id;
|
||||
|
||||
private string _PMIId;
|
||||
|
||||
private string _JointId;
|
||||
|
||||
private string _QualityNo;
|
||||
|
||||
private string _Acceptance;
|
||||
|
||||
private System.Nullable<System.DateTime> _CreatedTime;
|
||||
|
||||
private int _Status;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnIdChanging(string value);
|
||||
partial void OnIdChanged();
|
||||
partial void OnPMIIdChanging(string value);
|
||||
partial void OnPMIIdChanged();
|
||||
partial void OnJointIdChanging(string value);
|
||||
partial void OnJointIdChanged();
|
||||
partial void OnQualityNoChanging(string value);
|
||||
partial void OnQualityNoChanged();
|
||||
partial void OnAcceptanceChanging(string value);
|
||||
partial void OnAcceptanceChanged();
|
||||
partial void OnCreatedTimeChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCreatedTimeChanged();
|
||||
partial void OnStatusChanging(int value);
|
||||
partial void OnStatusChanged();
|
||||
#endregion
|
||||
|
||||
public PMI_DelegationDetails()
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Id != value))
|
||||
{
|
||||
this.OnIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Id = value;
|
||||
this.SendPropertyChanged("Id");
|
||||
this.OnIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PMIId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string PMIId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PMIId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PMIId != value))
|
||||
{
|
||||
this.OnPMIIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PMIId = value;
|
||||
this.SendPropertyChanged("PMIId");
|
||||
this.OnPMIIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JointId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string JointId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._JointId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._JointId != value))
|
||||
{
|
||||
this.OnJointIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._JointId = value;
|
||||
this.SendPropertyChanged("JointId");
|
||||
this.OnJointIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityNo", DbType="NVarChar(255)")]
|
||||
public string QualityNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._QualityNo;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._QualityNo != value))
|
||||
{
|
||||
this.OnQualityNoChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._QualityNo = value;
|
||||
this.SendPropertyChanged("QualityNo");
|
||||
this.OnQualityNoChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Acceptance", DbType="NVarChar(255)")]
|
||||
public string Acceptance
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Acceptance;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Acceptance != value))
|
||||
{
|
||||
this.OnAcceptanceChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Acceptance = value;
|
||||
this.SendPropertyChanged("Acceptance");
|
||||
this.OnAcceptanceChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedTime", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> CreatedTime
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CreatedTime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CreatedTime != value))
|
||||
{
|
||||
this.OnCreatedTimeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CreatedTime = value;
|
||||
this.SendPropertyChanged("CreatedTime");
|
||||
this.OnCreatedTimeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="status", Storage="_Status", DbType="Int NOT NULL")]
|
||||
public int Status
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Status;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Status != value))
|
||||
{
|
||||
this.OnStatusChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Status = value;
|
||||
this.SendPropertyChanged("Status");
|
||||
this.OnStatusChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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.Project_Installation")]
|
||||
public partial class Project_Installation : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
@ -31057,7 +31595,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(52)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(51)")]
|
||||
public string WeldJointCode
|
||||
{
|
||||
get
|
||||
|
@ -31696,7 +32234,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(52)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(51)")]
|
||||
public string WeldJointCode
|
||||
{
|
||||
get
|
||||
|
@ -36728,6 +37266,8 @@ namespace Model
|
|||
|
||||
private string _ProjectId;
|
||||
|
||||
private System.Nullable<bool> _IsPMI;
|
||||
|
||||
private string _PipelineCode;
|
||||
|
||||
private string _PipelineId;
|
||||
|
@ -36858,6 +37398,22 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="isPMI", Storage="_IsPMI", DbType="Bit")]
|
||||
public System.Nullable<bool> IsPMI
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IsPMI;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IsPMI != value))
|
||||
{
|
||||
this._IsPMI = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
|
||||
public string PipelineCode
|
||||
{
|
||||
|
@ -38870,6 +39426,8 @@ namespace Model
|
|||
|
||||
private System.Nullable<bool> _IsCancel;
|
||||
|
||||
private System.Nullable<bool> _IsPMI;
|
||||
|
||||
private System.Nullable<bool> _IsGoldJoint;
|
||||
|
||||
private string _WPQId;
|
||||
|
@ -40004,6 +40562,22 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPMI", DbType="Bit")]
|
||||
public System.Nullable<bool> IsPMI
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IsPMI;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IsPMI != value))
|
||||
{
|
||||
this._IsPMI = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsGoldJoint", DbType="Bit")]
|
||||
public System.Nullable<bool> IsGoldJoint
|
||||
{
|
||||
|
@ -40085,6 +40659,285 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_PMI_DelegationDetails")]
|
||||
public partial class View_PMI_DelegationDetails
|
||||
{
|
||||
|
||||
private string _Id;
|
||||
|
||||
private string _Acceptance;
|
||||
|
||||
private System.Nullable<System.DateTime> _CreatedTime;
|
||||
|
||||
private string _WeldJointId;
|
||||
|
||||
private int _Status;
|
||||
|
||||
private string _QualityNo;
|
||||
|
||||
private string _PMIId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _DelegationNo;
|
||||
|
||||
private System.Nullable<System.DateTime> _DelegationDate;
|
||||
|
||||
private string _WeldJointCode;
|
||||
|
||||
private string _PipelineCode;
|
||||
|
||||
private string _Specification;
|
||||
|
||||
private string _MaterialCode;
|
||||
|
||||
private string _WorkAreaId;
|
||||
|
||||
public View_PMI_DelegationDetails()
|
||||
{
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string Id
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Id;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Id != value))
|
||||
{
|
||||
this._Id = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Acceptance", DbType="NVarChar(255)")]
|
||||
public string Acceptance
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Acceptance;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Acceptance != value))
|
||||
{
|
||||
this._Acceptance = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedTime", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> CreatedTime
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CreatedTime;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CreatedTime != value))
|
||||
{
|
||||
this._CreatedTime = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string WeldJointId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WeldJointId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WeldJointId != value))
|
||||
{
|
||||
this._WeldJointId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="status", Storage="_Status", DbType="Int NOT NULL")]
|
||||
public int Status
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Status;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Status != value))
|
||||
{
|
||||
this._Status = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityNo", DbType="NVarChar(255)")]
|
||||
public string QualityNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._QualityNo;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._QualityNo != value))
|
||||
{
|
||||
this._QualityNo = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PMIId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string PMIId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PMIId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PMIId != value))
|
||||
{
|
||||
this._PMIId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectId != value))
|
||||
{
|
||||
this._ProjectId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationNo", DbType="NVarChar(50)")]
|
||||
public string DelegationNo
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DelegationNo;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DelegationNo != value))
|
||||
{
|
||||
this._DelegationNo = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DelegationDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> DelegationDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DelegationDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DelegationDate != value))
|
||||
{
|
||||
this._DelegationDate = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCode", DbType="NVarChar(50)")]
|
||||
public string WeldJointCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WeldJointCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WeldJointCode != value))
|
||||
{
|
||||
this._WeldJointCode = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
|
||||
public string PipelineCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PipelineCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PipelineCode != value))
|
||||
{
|
||||
this._PipelineCode = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specification", DbType="NVarChar(50)")]
|
||||
public string Specification
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Specification;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Specification != value))
|
||||
{
|
||||
this._Specification = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")]
|
||||
public string MaterialCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._MaterialCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._MaterialCode != value))
|
||||
{
|
||||
this._MaterialCode = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaId", DbType="NVarChar(50)")]
|
||||
public string WorkAreaId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._WorkAreaId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._WorkAreaId != value))
|
||||
{
|
||||
this._WorkAreaId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_PTP_TestPackageAudit")]
|
||||
public partial class View_PTP_TestPackageAudit
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue