111
This commit is contained in:
commit
baeda46f89
|
@ -0,0 +1,215 @@
|
|||
|
||||
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,pip.PIPClassCode,
|
||||
CONVERT(VARCHAR(100), WeldingDaily.WeldingDate, 23) AS WeldingDate,
|
||||
WeldJoint.IsCancel,
|
||||
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.Base_PIPClass pip ON pip.PIPClassId = Pipeline.PIPClassId
|
||||
LEFT JOIN dbo.WPQ_WPQList wps ON wps.WPQId=WeldJoint.WPQId
|
||||
|
||||
|
||||
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
ALTER PROC [dbo].[sp_rpt_JointComprehensive]
|
||||
@projectId NVARCHAR(50),
|
||||
@workAreaId NVARCHAR(50)=NULL,
|
||||
@pipelineIds NVARCHAR(MAX) = NULL
|
||||
|
||||
AS
|
||||
/**********焊口综合信息**********/
|
||||
SELECT
|
||||
weldJoint.WeldJointId,
|
||||
weldJoint.ProjectId,
|
||||
WorkArea.WorkAreaId,
|
||||
WorkArea.WorkAreaCode,
|
||||
weldJoint.SystemNumber,
|
||||
weldJoint.TestPackageNo,
|
||||
pipeline.SingleNumber,
|
||||
pipeline.PipelineCode,
|
||||
pipeline.DrawingsNum,
|
||||
pipingClass.PipingClassCode,pip.PIPClassCode,
|
||||
weldJoint.PageNum,
|
||||
weldJoint.PipeSegment,--所属管段
|
||||
weldJoint.WeldJointCode,
|
||||
weldType.WeldTypeCode,
|
||||
weldJoint.JointAttribute,
|
||||
wl.WeldingLocationCode,
|
||||
weldJoint.Dia,
|
||||
weldJoint.Thickness,--壁厚
|
||||
weldJoint.HeartNo1,
|
||||
weldJoint.HeartNo2,
|
||||
com1.ComponentsName AS PipeAssembly1,
|
||||
com2.ComponentsName AS PipeAssembly2,
|
||||
--material.MaterialCode,
|
||||
mat1.MaterialCode AS MaterialCode1,
|
||||
mat2.MaterialCode AS MaterialCode2,
|
||||
cw.WelderCode AS CoverWelderCode,
|
||||
fw.WelderCode AS BackingWelderCode,
|
||||
WeldMethod.WeldingMethodName,
|
||||
medium.MediumName,
|
||||
weldingDaily.WeldingDate,
|
||||
weldingDaily.WeldingDailyCode,
|
||||
trust.TrustBatchCode,
|
||||
--TrustBatchCode.DetectionRateCode,
|
||||
--TrustBatchCode.AcceptLevel,
|
||||
(CASE WHEN weldJoint.IsHotProess=1 THEN '是' ELSE '否' END) AS IsHotProess,
|
||||
null as TrustBatchCode,
|
||||
null as DetectionRateCode,
|
||||
null as AcceptLevel,
|
||||
nde.NDEDate AS CHT_CHECKDATE,
|
||||
ndeItem.NDEReportNo,
|
||||
CAST(CAST(ISNULL(weldJoint.Size,0) AS REAL) AS NVARCHAR(8)) AS JOT_Size,
|
||||
WeldMaterialMat.ConsumablesCode AS WMT_MatCode,
|
||||
WeldMaterialMat.ConsumablesName AS WMT_Matname,
|
||||
weldJoint.WeldSilkId,
|
||||
--WeldMaterialSilk.ConsumablesCode AS hsCode,
|
||||
--WeldMaterialSilk.ConsumablesName AS hsname,
|
||||
--WeldMaterialSilk.UserFlux,
|
||||
weldJoint.Specification,
|
||||
wps.WPQCode,ndttype.DetectionTypeCode,NULL AS HotReportCode,
|
||||
(CASE WHEN (PointBatchItem.PointState='1' OR PointBatchItem.PointState='2')
|
||||
THEN (CASE WHEN PointBatchItem.IsWelderFirst=1 THEN '是首三口' ELSE '是' END) ELSE '否' END) AS if_dk
|
||||
FROM Pipeline_WeldJoint AS weldJoint
|
||||
LEFT JOIN Pipeline_Pipeline AS pipeline ON pipeline.PipelineId = weldJoint.PipelineId
|
||||
LEFT JOIN Project_WorkArea AS WorkArea ON WorkArea.WorkAreaId = pipeline.WorkAreaId
|
||||
LEFT JOIN Base_Material AS mat1 ON mat1.MaterialId = weldJoint.Material1Id
|
||||
LEFT JOIN Base_Material AS mat2 ON mat2.MaterialId = weldJoint.Material2Id
|
||||
LEFT JOIN Base_WeldingMethod AS WeldMethod ON WeldMethod.WeldingMethodId = weldJoint.WeldingMethodId
|
||||
LEFT JOIN dbo.Base_WeldType weldType ON weldType.WeldTypeId = weldJoint.WeldTypeId
|
||||
LEFT JOIN dbo.Base_WeldingLocation wl ON wl.WeldingLocationId = weldJoint.WeldingLocationId
|
||||
LEFT JOIN Base_Medium AS medium ON medium.MediumId = pipeline.MediumId
|
||||
LEFT JOIN Base_Components com1 ON com1.ComponentsId=weldJoint.PipeAssembly1Id
|
||||
LEFT JOIN Base_Components com2 ON com2.ComponentsId=weldJoint.PipeAssembly2Id
|
||||
LEFT JOIN Base_PipingClass AS pipingClass ON pipingClass.PipingClassId=WeldJoint.PipingClassId
|
||||
LEFT JOIN dbo.Base_PIPClass pip ON pip.PIPClassId = Pipeline.PIPClassId
|
||||
LEFT JOIN Pipeline_WeldingDaily AS weldingDaily ON weldingDaily.WeldingDailyId = weldJoint.WeldingDailyId
|
||||
LEFT JOIN dbo.WPQ_WPQList wps ON wps.WPQId = weldJoint.WPQId
|
||||
left join Welder_Welder AS fw on weldJoint.BackingWelderId = fw.WelderId
|
||||
left join Welder_Welder AS cw on weldJoint.CoverWelderId = cw.WelderId
|
||||
LEFT JOIN Base_Consumables AS WeldMaterialMat ON WeldMaterialMat.ConsumablesId =weldJoint.WeldMatId
|
||||
--LEFT JOIN Base_Consumables AS WeldMaterialSilk ON WeldMaterialSilk.ConsumablesId =weldJoint.WeldSilkId
|
||||
LEFT JOIN Batch_PointBatchItem AS PointBatchItem ON PointBatchItem.WeldJointId =weldJoint.WeldJointId
|
||||
LEFT JOIN dbo.Batch_PointBatch point ON point.PointBatchId = PointBatchItem.PointBatchId
|
||||
LEFT JOIN dbo.Base_DetectionType ndttype ON ndttype.DetectionTypeId = point.DetectionTypeId
|
||||
LEFT JOIN dbo.Batch_BatchTrustItem trustItem ON trustItem.PointBatchItemId = PointBatchItem.PointBatchItemId
|
||||
LEFT JOIN dbo.Batch_BatchTrust trust ON trust.TrustBatchId = trustItem.TrustBatchId
|
||||
LEFT JOIN dbo.Batch_NDEItem ndeItem ON ndeItem.TrustBatchItemId = trustItem.TrustBatchItemId
|
||||
LEFT JOIN dbo.Batch_NDE nde ON nde.NDEID = ndeItem.NDEID
|
||||
|
||||
WHERE weldJoint.ProjectId=@projectId
|
||||
AND(pipeline.WorkAreaId=@workAreaId OR @workAreaId IS NULL)
|
||||
AND (CHARINDEX(weldJoint.PipelineId,@pipelineIds)>0 or @pipelineIds IS NULl)
|
||||
--AND(pipeline.PipelineCode=@pipelineCode OR @pipelineCode IS NULl)
|
||||
|
||||
GO
|
||||
|
||||
|
||||
UPDATE dbo.Template_Files SET title=REPLACE(title,cast(sortindex as nvarchar(50))+'-','')
|
||||
GO
|
||||
|
||||
UPDATE dbo.Template_Files SET SortIndex=SortIndex+1 where SortIndex>24
|
||||
GO
|
||||
|
||||
INSERT INTO [dbo].[Template_Files]([id],[title],[filePath],[SortIndex])
|
||||
VALUES('95125974-3DD4-4E16-B4F0-A9D9C9A1406D','管道焊接接头PMI检测比例确认表','',25)
|
||||
GO
|
||||
|
||||
|
|
@ -162,7 +162,7 @@
|
|||
</site>
|
||||
<site name="WebApi" id="2">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\WebApi" />
|
||||
<virtualDirectory path="/" physicalPath="E:\work\project\巴斯夫焊接\Basf_TCC7\HJGL\WebApi" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:3862:localhost" />
|
||||
|
@ -250,26 +250,10 @@
|
|||
</site>
|
||||
<site name="FineUIPro.Web(10)" id="13">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\FineUIPro.Web" />
|
||||
<virtualDirectory path="/" physicalPath="E:\work\project\巴斯夫焊接\Basf_TCC7\HJGL\FineUIPro.Web" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:46133: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="*:57606:localhost" />
|
||||
</bindings>
|
||||
</site>
|
||||
<site name="FineUIPro.Web(12)" id="15">
|
||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||
<virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\FineUIPro.Web" />
|
||||
</application>
|
||||
<bindings>
|
||||
<binding protocol="http" bindingInformation="*:57613:localhost" />
|
||||
<binding protocol="http" bindingInformation="*:13960:localhost" />
|
||||
</bindings>
|
||||
</site>
|
||||
<siteDefaults>
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace BLL
|
|||
dic.Add("管道无损检测结果汇总表", BLL.Const.NdtTotalReport1);
|
||||
dic.Add("管道无损检测结果汇总表(续)", BLL.Const.NdtTotalReport2);
|
||||
dic.Add("管道无损检测比例统计表", BLL.Const.NdtRateReport1);
|
||||
|
||||
|
||||
return dic;
|
||||
}
|
||||
|
||||
|
@ -36,9 +36,17 @@ namespace BLL
|
|||
/// 试压包打印下拉项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Template_Files> TestPackageSelectPrint()
|
||||
public static object TestPackageSelectPrint()
|
||||
{
|
||||
var result = Funs.DB.Template_Files.OrderBy(t=>t.SortIndex).ToList();
|
||||
//var result = Funs.DB.Template_Files.OrderBy(t=>t.SortIndex).ToList();
|
||||
var result = (from x in Funs.DB.Template_Files
|
||||
select new
|
||||
{
|
||||
Id = x.Id,
|
||||
FilePath = x.FilePath,
|
||||
SortIndex = x.SortIndex,
|
||||
Title = (x.SortIndex ?? 0).ToString() + "-" + x.Title,
|
||||
}).OrderBy(t => t.SortIndex).ToList();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,177 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PMIDetectionEntry.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.PMI.PMIDetectionEntry" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>PMI检测录入</title>
|
||||
<style>
|
||||
.f-grid-row .f-grid-cell-inner {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
</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="280px" Title="<%$ Resources:Lan,TestForm %>" 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:DatePicker ID="txtNDEDateMonth" runat="server" Label="<%$ Resources:Lan,Month %>"
|
||||
EmptyText="<%$ Resources:Lan,EnterQueryConditions %>" AutoPostBack="true" OnTextChanged="Tree_TextChanged"
|
||||
Width="265px" LabelWidth="100px" DisplayType="Month" DateFormatString="yyyy-MM" LabelAlign="Right">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:Toolbar ID="Toolbar5" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:TextBox ID="txtSearchCode" runat="server" EmptyText="<%$ Resources:Lan,EnterQueryConditions %>"
|
||||
AutoPostBack="true" Label="<%$ Resources:Lan,RequestSheetNumber %>" LabelWidth="100px"
|
||||
OnTextChanged="Tree_TextChanged" Width="265px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<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" >
|
||||
</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,TestForm %>"
|
||||
TitleToolTip="<%$ Resources:Lan,TestForm %>" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:HiddenField runat="server" ID="hdPMIId">
|
||||
</f:HiddenField>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
</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="检测单明细" 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">
|
||||
<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="ProessDate"
|
||||
DataField="ProessDate" SortField="ProessDate" FieldType="Date" Renderer="Date"
|
||||
HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</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>
|
||||
</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');
|
||||
}
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['PipelineCode']);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,298 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
using System.Web;
|
||||
using System.Collections;
|
||||
using Model;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
public partial class PMIDetectionEntry : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 检测单主键
|
||||
/// </summary>
|
||||
public string PMIID
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["PMIID"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["PMIID"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.txtNDEDateMonth.Text = string.Format("{0:yyyy-MM}", DateTime.Now);
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
this.PMIID = string.Empty;
|
||||
this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
|
||||
#region 加载树
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
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);
|
||||
if (pUnit == null || pUnit.UnitType == BLL.Const.UnitType_1 || pUnit.UnitType == BLL.Const.UnitType_2
|
||||
|| pUnit.UnitType == BLL.Const.UnitType_3 || pUnit.UnitType == BLL.Const.UnitType_4
|
||||
|| pUnit.UnitType == BLL.Const.UnitType_6)
|
||||
{
|
||||
units = (from x in Funs.DB.Base_Unit
|
||||
join y in Funs.DB.Project_Unit on x.UnitId equals y.UnitId
|
||||
where y.ProjectId == this.CurrUser.LoginProjectId && y.UnitType.Contains(BLL.Const.UnitType_5)
|
||||
select x).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
units.Add(BLL.Base_UnitService.GetUnit(this.CurrUser.UnitId));
|
||||
}
|
||||
if (units != null)
|
||||
{
|
||||
foreach (var unit in units)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();//定义根节点
|
||||
newNode.Text = unit.UnitName;
|
||||
newNode.NodeID = unit.UnitId;
|
||||
newNode.Expanded = true;
|
||||
newNode.ToolTip = "Unit";
|
||||
this.tvControlItem.Nodes.Add(newNode);
|
||||
this.BindNodes(newNode);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(Resources.Lan.PleaseAddUnitFirst, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(Resources.Lan.PleaseSelectTrustMonth, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绑定树节点
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
private void BindNodes(TreeNode node)
|
||||
{
|
||||
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;
|
||||
foreach (var q in ndt)
|
||||
{
|
||||
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = q.DelegationNo;
|
||||
newNode.NodeID = q.Id;
|
||||
newNode.ToolTip = "DelegationNo";
|
||||
newNode.EnableClickEvent = true;
|
||||
node.Nodes.Add(newNode);
|
||||
BindNodes(newNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
this.PMIID = tvControlItem.SelectedNodeID;
|
||||
this.hdPMIId.Text = this.PMIID;
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(this.hdPMIId.Text) && this.tvControlItem.SelectedNode.ToolTip == "DelegationNo")
|
||||
{
|
||||
this.SetTextTemp();
|
||||
this.PageInfoLoad(); ///页面输入提交信息
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#region 加载页面输入提交信息
|
||||
/// <summary>
|
||||
/// 加载页面输入提交信息
|
||||
/// </summary>
|
||||
private void PageInfoLoad()
|
||||
{
|
||||
this.SimpleForm1.Reset(); ///重置所有字段
|
||||
var pageInfo = (from x in Funs.DB.PMI_Delegation
|
||||
join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId
|
||||
join n in Funs.DB.Project_Installation on x.InstallationId equals n.InstallationId
|
||||
join u in Funs.DB.Sys_User on x.DetectionStandard equals u.UserId into u1 //左连接查询
|
||||
from u in u1.DefaultIfEmpty()
|
||||
where x.Id==hdPMIId.Text
|
||||
select new { DelegationNo=x.DelegationNo,
|
||||
DelegationDate=x.DelegationDate,
|
||||
InstallationName=n.InstallationName,
|
||||
UnitName=y.UnitName,
|
||||
DetectionMethod="待定",
|
||||
Tabler=x.Tabler,
|
||||
Remark=x.Remark,
|
||||
}).ToList();
|
||||
if (pageInfo.Count>0)
|
||||
{
|
||||
this.txtDelegationNo.Text = pageInfo[0].DelegationNo;
|
||||
this.txtDelegationDate.Text = pageInfo[0].DelegationDate.ToString();
|
||||
this.txtInstallationName.Text = pageInfo[0].InstallationName;
|
||||
this.txtUnitName.Text = pageInfo[0].UnitName;
|
||||
this.txtDetectionMethod.Text = pageInfo[0].DetectionMethod;
|
||||
this.txtTabler.Text = pageInfo[0].Tabler;
|
||||
this.txtRemark.Text = pageInfo[0].Remark;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <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.txtTabler.Text = string.Empty;
|
||||
this.txtRemark.Text = string.Empty;
|
||||
}
|
||||
#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 关闭弹出窗口及刷新页面
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Tree_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
//this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 格式化字符串
|
||||
/// <summary>
|
||||
/// 获取缺陷
|
||||
/// </summary>
|
||||
/// <param name="bigType"></param>
|
||||
/// <returns></returns>
|
||||
protected string ConvertCheckDefects(object CheckDefects)
|
||||
{
|
||||
string str = string.Empty;
|
||||
if (CheckDefects != null)
|
||||
{
|
||||
HttpCookie lanCookie = Request.Cookies["SelectLan"];
|
||||
if (lanCookie["lan"] == "zh-CN") //中文
|
||||
{
|
||||
str = BLL.Base_DefectService.GetDefectNameStrByDefectIdStr(CheckDefects.ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
str = BLL.Base_DefectService.GetDefectEngNameStrByDefectIdStr(CheckDefects.ToString());
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,251 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.PMI
|
||||
{
|
||||
|
||||
|
||||
public partial class PMIDetectionEntry
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtNDEDateMonth 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtNDEDateMonth;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar5;
|
||||
|
||||
/// <summary>
|
||||
/// txtSearchCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSearchCode;
|
||||
|
||||
/// <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>
|
||||
/// hdPMIId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdPMIId;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <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>
|
||||
/// 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;
|
||||
}
|
||||
}
|
|
@ -4094,6 +4094,212 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
|||
|
||||
}
|
||||
|
||||
//24-TP-10-渗透&MT检测比例确认表
|
||||
private void template25_1(XSSFWorkbook hssfworkbook, XSSFSheet ws)
|
||||
{
|
||||
int rowIndex = 0;
|
||||
var style = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 10, true, false, "Arial Unicode MS");
|
||||
#region 头部
|
||||
var style1 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.None, BorderStyle.None, BorderStyle.None, BorderStyle.None, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Right, 10, true, false, "Arial Unicode MS");
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex, rowIndex, style1, 0, 20, true);
|
||||
|
||||
//设置行宽度
|
||||
ws.SetColumnWidth(0, 13 * 256);
|
||||
ws.SetColumnWidth(1, 3 * 256);
|
||||
ws.SetColumnWidth(2, 10 * 256);
|
||||
for (int i = 3; i < 20; i++)
|
||||
{
|
||||
ws.SetColumnWidth(1, 3 * 256);
|
||||
}
|
||||
ws.SetColumnWidth(20, 23 * 256);
|
||||
|
||||
//设置行高度
|
||||
ws.GetRow(rowIndex).Height = 10 * 20;
|
||||
ws.GetRow(rowIndex).GetCell(20).CellStyle = style1;
|
||||
ws.GetRow(rowIndex).GetCell(20).SetCellValue("Form No. TP-10");
|
||||
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 1, rowIndex + 2, style, 0, 20, true);
|
||||
//设置行高度
|
||||
ws.GetRow(rowIndex + 1).Height = 10 * 20 * 9;
|
||||
ws.GetRow(rowIndex + 2).Height = 10 * 20 * 3;
|
||||
|
||||
//合并单元格和填充文本
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 0, 2));
|
||||
ws.GetRow(rowIndex + 1).GetCell(0).SetCellValue("");
|
||||
|
||||
var style3 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 14, true, true, "Arial Unicode MS");
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 3, 17));
|
||||
ws.GetRow(rowIndex + 1).GetCell(3).CellStyle = style3;
|
||||
ws.GetRow(rowIndex + 1).GetCell(3).SetCellValue("管道焊接接头PMI检测比例确认表(一)\nPipeline Welding Joints PMI Examination Rate Confirmation Form(I)\n共 1 页 第 1 页");
|
||||
|
||||
var style2 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Top, NPOI.SS.UserModel.HorizontalAlignment.Left, 10, true, false, "Arial Unicode MS");
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 1, rowIndex + 1, 18, 20));
|
||||
ws.GetRow(rowIndex + 1).GetCell(18).CellStyle = style2;
|
||||
ws.GetRow(rowIndex + 1).GetCell(18).SetCellValue("\n 工程名称:巴斯夫(广东)一体化项目\n Project Name:BASF (Guangdong) Integrated Project\n 单元名称:Citral\n Unit Name:Citral");
|
||||
|
||||
ws.GetRow(rowIndex + 2).GetCell(0).SetCellValue("执行标准\nApplicable code");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 1, 5));
|
||||
ws.GetRow(rowIndex + 2).GetCell(1).SetCellValue("");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 6, 7));
|
||||
ws.GetRow(rowIndex + 2).GetCell(6).SetCellValue("检测方法\nExam. Method");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 8, 15));
|
||||
ws.GetRow(rowIndex + 2).GetCell(8).SetCellValue("PMI检测");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 16, 17));
|
||||
ws.GetRow(rowIndex + 2).GetCell(16).SetCellValue("检测比例\nExam. Rate");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 2, rowIndex + 2, 18, 20));
|
||||
ws.GetRow(rowIndex + 2).GetCell(18).SetCellValue("2%");
|
||||
|
||||
#endregion
|
||||
|
||||
#region 表格部分
|
||||
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 3, rowIndex + 13, style, 0, 20, true);
|
||||
//设置高度和合并列填充文本
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 4, 0, 1));
|
||||
ws.GetRow(rowIndex + 3).GetCell(0).SetCellValue("管道编号\nPipeline No.");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 4, 2, 2));
|
||||
ws.GetRow(rowIndex + 3).GetCell(2).SetCellValue("材质\nMaterial");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 4, 3, 4));
|
||||
ws.GetRow(rowIndex + 3).GetCell(3).SetCellValue("规 格/Size\n mm");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 5, 8));
|
||||
ws.GetRow(rowIndex + 3).GetCell(5).SetCellValue("管道焊接接头\nWelding Joints");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 9, 12));
|
||||
ws.GetRow(rowIndex + 3).GetCell(9).SetCellValue("施焊焊工\nWelder");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 3, 13, 16));
|
||||
ws.GetRow(rowIndex + 3).GetCell(13).SetCellValue("检测焊接接头\nExanined Joints");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 4, 5, 6));
|
||||
ws.GetRow(rowIndex + 4).GetCell(5).SetCellValue("总数\nTotal");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 4, 7, 8));
|
||||
ws.GetRow(rowIndex + 4).GetCell(7).SetCellValue("固定口数\nField Joints");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 4, 9, 10));
|
||||
ws.GetRow(rowIndex + 4).GetCell(9).SetCellValue("焊工代号\nWelder No.");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 4, 11, 12));
|
||||
ws.GetRow(rowIndex + 4).GetCell(11).SetCellValue("施焊数量\nWelded Joints");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 4, 13, 14));
|
||||
ws.GetRow(rowIndex + 4).GetCell(13).SetCellValue("总数\nTotal Joints");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 4, rowIndex + 4, 15, 16));
|
||||
ws.GetRow(rowIndex + 4).GetCell(15).SetCellValue("固定口数\nField Joints");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 4, 17, 19));
|
||||
ws.GetRow(rowIndex + 3).GetCell(17).SetCellValue("实际检测比例\nActual exam. Rate");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 3, rowIndex + 4, 20, 20));
|
||||
ws.GetRow(rowIndex + 3).GetCell(20).SetCellValue("检测报告编号\nExamination Report No.");
|
||||
|
||||
|
||||
for (int i = 3; i < 14; i++)
|
||||
{
|
||||
if (i == 3 || i == 4)
|
||||
{
|
||||
ws.GetRow(rowIndex + i).Height = 30 * 20;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (i == 13)
|
||||
ws.GetRow(rowIndex + i).Height = 30 * 20;
|
||||
else
|
||||
ws.GetRow(rowIndex + i).Height = 19 * 20;
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 0, 1));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 3, 4));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 5, 6));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 7, 8));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 9, 10));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 11, 12));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 13, 14));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 15, 16));
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + i, rowIndex + i, 17, 19));
|
||||
}
|
||||
ws.GetRow(rowIndex + 13).GetCell(0).SetCellValue("小计\nTotal");
|
||||
#endregion
|
||||
|
||||
#region 尾部
|
||||
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex + 14, rowIndex + 16, style, 0, 20, true);
|
||||
//设置行高
|
||||
ws.GetRow(rowIndex + 14).Height = 20 * 20 * 2;
|
||||
ws.GetRow(rowIndex + 15).Height = 20 * 20 * 2;
|
||||
ws.GetRow(rowIndex + 16).Height = 20 * 20 * 7;
|
||||
|
||||
ws.GetRow(rowIndex + 14).GetCell(0).SetCellValue("备注\nRemark");
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 14, rowIndex + 14, 1, 20));
|
||||
|
||||
ws.GetRow(rowIndex + 14).GetCell(1).CellStyle = style2;
|
||||
ws.GetRow(rowIndex + 14).GetCell(1).SetCellValue("焊口位置与检测焊口见管道单线图与无损检测报告。\nPlease refer to Pipeline Iso-drawing and NDE Report for joints position and examined joints.");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 15, rowIndex + 15, 0, 3));
|
||||
ws.GetRow(rowIndex + 15).GetCell(0).SetCellValue("建 设 / 监 理 单 位\nOwner/JianLi Company");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 15, rowIndex + 15, 4, 9));
|
||||
ws.GetRow(rowIndex + 15).GetCell(4).SetCellValue("总 承 包 单 位\nGeneral Contractor");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 15, rowIndex + 15, 10, 16));
|
||||
ws.GetRow(rowIndex + 15).GetCell(10).SetCellValue("检 测 单 位\nExamination Contractor");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 15, rowIndex + 15, 17, 20));
|
||||
ws.GetRow(rowIndex + 15).GetCell(17).SetCellValue("施 工 单 位\nConstruction Company");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 16, rowIndex + 16, 0, 3));
|
||||
ws.GetRow(rowIndex + 16).GetCell(0).CellStyle = style2;
|
||||
ws.GetRow(rowIndex + 16).GetCell(0).SetCellValue("专业工程师\n Discipline Engineer: \n\n\n\n\n\n\n\n 日期Date: 年 月 日");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 16, rowIndex + 16, 4, 9));
|
||||
ws.GetRow(rowIndex + 16).GetCell(4).CellStyle = style2;
|
||||
ws.GetRow(rowIndex + 16).GetCell(4).SetCellValue("专业工程师\n Discipline Engineer: \n\n\n\n\n\n\n\n 日期Date: 年 月 日");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 16, rowIndex + 16, 10, 16));
|
||||
ws.GetRow(rowIndex + 16).GetCell(10).CellStyle = style2;
|
||||
ws.GetRow(rowIndex + 16).GetCell(10).SetCellValue("专业工程师\n Discipline Engineer: \n\n\n\n\n\n\n\n 日期Date: 年 月 日");
|
||||
|
||||
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 16, rowIndex + 16, 17, 20));
|
||||
ws.GetRow(rowIndex + 16).GetCell(17).CellStyle = style2;
|
||||
ws.GetRow(rowIndex + 16).GetCell(17).SetCellValue("专业工程师\n Discipline Engineer: \n\n 质量检查员:\n Quality Inspector:\n\n 制表:\n Prepared:\n\n 日期Date: 年 月 日");
|
||||
|
||||
#endregion
|
||||
|
||||
ws.PrintSetup.FitWidth = 1;
|
||||
ws.PrintSetup.FitHeight = 0;
|
||||
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
||||
|
||||
ws.FitToPage = true;
|
||||
|
||||
//水平垂直居中
|
||||
ws.HorizontallyCenter = true;
|
||||
ws.VerticallyCenter = true;
|
||||
|
||||
//横向打印
|
||||
ws.PrintSetup.Landscape = true;
|
||||
//垂直水平居中
|
||||
ws.VerticallyCenter = true;
|
||||
ws.HorizontallyCenter = true;
|
||||
//打印边距设置 厘米/3
|
||||
ws.SetMargin(MarginType.RightMargin, (double)2.4 / 3);
|
||||
ws.SetMargin(MarginType.LeftMargin, (double)2.4 / 3);
|
||||
ws.SetMargin(MarginType.TopMargin, (double)2.9 / 3);
|
||||
ws.SetMargin(MarginType.BottomMargin, (double)2.4 / 3);
|
||||
|
||||
//页眉页脚间距
|
||||
ws.SetMargin(MarginType.HeaderMargin, 0);
|
||||
ws.SetMargin(MarginType.FooterMargin, 0);
|
||||
|
||||
}
|
||||
|
||||
//25-管道无损检测结果汇总表SHT 3503-J412-2017
|
||||
private void template25(XSSFWorkbook hssfworkbook, XSSFSheet ws)
|
||||
{
|
||||
|
@ -6038,6 +6244,11 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
|
|||
XSSFSheet sheet24 = (XSSFSheet)hssfworkbook.CreateSheet(oneTemp.Title);
|
||||
template24(hssfworkbook, sheet24);
|
||||
break;
|
||||
//25-1-管道无损检测结果汇总表SHT 3503-J412-2017
|
||||
case "95125974-3DD4-4E16-B4F0-A9D9C9A1406D":
|
||||
XSSFSheet sheet25_1 = (XSSFSheet)hssfworkbook.CreateSheet(oneTemp.Title);
|
||||
template25_1(hssfworkbook, sheet25_1);
|
||||
break;
|
||||
//25-管道无损检测结果汇总表SHT 3503-J412-2017
|
||||
case "4C45ABAB-89E9-4874-8F55-5050CDE98DFC":
|
||||
XSSFSheet sheet25 = (XSSFSheet)hssfworkbook.CreateSheet(oneTemp.Title);
|
||||
|
|
|
@ -962,7 +962,14 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
}
|
||||
string ReportFileName = filePath + "管道焊接工作记录.xlsx";
|
||||
|
||||
string sqlStr = @"SELECT WeldSilkId,PipelineId,WorkAreaId,a.ProjectName,a.WeldJointCode,a.Specification,a.Material1Code,a.WeldingMethodCode,a.WeldingDate,a.WeldSilkCode,a.WeldMatCode,a.BackingWelderCode,a.CoverWelderCode,a.IsHotProess,(case a.IsHotProess when 1 then '是' else '否' end) as IsHotProessName,PrepareTemp,WeldingLocationCode FROM View_Pipeline_WeldJoint as a WHERE 1= 1 AND PipelineId =@PipelineId and Is_hjName='是' ";
|
||||
string sqlStr = @"SELECT WeldSilkId,PipelineId,WorkAreaId,a.ProjectName,a.WeldJointCode,a.Specification,a.Material1Code,
|
||||
a.WeldingMethodCode,a.WeldingDate,a.WeldSilkCode,a.WeldMatCode,a.BackingWelderCode,a.CoverWelderCode,
|
||||
a.IsHotProess,(case a.IsHotProess when 1 then '是' else '否' end) as IsHotProessName,PrepareTemp,
|
||||
WeldingLocationCode,a.WeldTypeCode,
|
||||
(SELECT TOP 1 n.NDEReportNo FROM dbo.Batch_NDEItem n WHERE n.TrustBatchItemId=
|
||||
(SELECT TOP 1 bt.TrustBatchItemId FROM dbo.Batch_BatchTrustItem bt WHERE bt.WeldJointId=a.WeldJointId)) AS NDEReportNo
|
||||
FROM View_Pipeline_WeldJoint as a
|
||||
WHERE 1= 1 AND PipelineId =@PipelineId and Is_hjName='是' ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@PipelineId", this.tvControlItem.SelectedNodeID));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
|
@ -970,8 +977,8 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
|
||||
var titleQuery = from a in Funs.DB.Pipeline_Pipeline
|
||||
join b in Funs.DB.Base_Project on a.ProjectId equals b.ProjectId
|
||||
join c in Funs.DB.Base_Unit on a.UnitId equals c.UnitId
|
||||
select new { a.PipelineId, a.PipelineCode, b.ProjectName, c.UnitName };
|
||||
join c in Funs.DB.Project_WorkArea on a.WorkAreaId equals c.WorkAreaId
|
||||
select new { a.PipelineId, a.PipelineCode, b.EnProjectName, b.ProjectName, c.WorkAreaName, c.EnWorkAreaName };
|
||||
var titleModel = titleQuery.FirstOrDefault();
|
||||
if (titleModel != null && tb.Rows.Count > 0)
|
||||
{
|
||||
|
@ -1030,19 +1037,19 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
//行1
|
||||
region = new CellRangeAddress(rowIndex + 1, rowIndex + 1, 11, 14);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(rowIndex + 1).GetCell(11).SetCellValue("Project Name:");
|
||||
ws.GetRow(rowIndex + 1).GetCell(11).SetCellValue($"Project Name:{titleModel.EnProjectName}");
|
||||
ws.GetRow(rowIndex + 1).GetCell(11).CellStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Justify, 9, true, false);
|
||||
|
||||
//行2
|
||||
region = new CellRangeAddress(rowIndex + 2, rowIndex + 2, 11, 14);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(rowIndex + 2).GetCell(11).SetCellValue($"单位工程名称:{titleModel.UnitName}");
|
||||
ws.GetRow(rowIndex + 2).GetCell(11).SetCellValue($"单位工程名称:{titleModel.WorkAreaName}");
|
||||
ws.GetRow(rowIndex + 2).GetCell(11).CellStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Justify, 10, true, false);
|
||||
|
||||
//行3
|
||||
region = new CellRangeAddress(rowIndex + 3, rowIndex + 3, 11, 14);
|
||||
ws.AddMergedRegion(region);
|
||||
ws.GetRow(rowIndex + 3).GetCell(11).SetCellValue("Unit Name:");
|
||||
ws.GetRow(rowIndex + 3).GetCell(11).SetCellValue($"Unit Name:{titleModel.EnWorkAreaName}");
|
||||
ws.GetRow(rowIndex + 3).GetCell(11).CellStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Justify, 10, true, false);
|
||||
|
||||
//画线
|
||||
|
@ -1140,7 +1147,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
//焊口编号
|
||||
ws.GetRow(dataIndex).GetCell(1).SetCellValue(tb.Rows[i]["WeldJointCode"].ToString());
|
||||
//焊接形式
|
||||
ws.GetRow(dataIndex).GetCell(3).SetCellValue("");
|
||||
ws.GetRow(dataIndex).GetCell(3).SetCellValue(tb.Rows[i]["WeldTypeCode"].ToString());
|
||||
//焊工代号
|
||||
List<string> welderStr = new List<string>();
|
||||
if (!string.IsNullOrWhiteSpace(tb.Rows[i]["BackingWelderCode"].ToString()))
|
||||
|
@ -1178,7 +1185,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
//焊接日期
|
||||
ws.GetRow(dataIndex).GetCell(13).SetCellValue(tb.Rows[i]["WeldingDate"].ToString());
|
||||
//无损检查报告
|
||||
ws.GetRow(dataIndex).GetCell(14).SetCellValue("");
|
||||
ws.GetRow(dataIndex).GetCell(14).SetCellValue(tb.Rows[i]["NDEReportNo"].ToString());
|
||||
}
|
||||
|
||||
rowIndex += tIndex;
|
||||
|
|
|
@ -7,157 +7,134 @@
|
|||
</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="240px" Title="<%$ Resources:Lan,DailyWeldingReport %>"
|
||||
ShowBorder="true" Layout="VBox" ShowHeader="true" AutoScroll="true" BodyPadding="5px"
|
||||
IconFont="ArrowCircleLeft">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
|
||||
<Items>
|
||||
<f:DatePicker ID="txtMonth" runat="server" Label="月份" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="Tree_TextChanged" Width="220px" LabelWidth="50px" DisplayType="Month" DateFormatString="yyyy-MM">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Height="400px" Title="<%$ Resources:Lan,DailyWeldingReport %>"
|
||||
OnNodeCommand="tvControlItem_NodeCommand" 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,DailyWeldingReport %>"
|
||||
TitleToolTip="<%$ Resources:Lan,DailyWeldingReport %>" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:FileUpload runat="server" ID="dailyReportUrl" EmptyText="请选择要导入的Excel日报文件"
|
||||
LabelWidth="50px" LabelAlign="Right" Width="300px">
|
||||
</f:FileUpload>
|
||||
<f:Button ID="btnImport" Icon="ApplicationEdit" runat="server" Text="导入" ToolTip="日报导入"
|
||||
OnClick="btnImport_Click" >
|
||||
</f:Button>
|
||||
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" Text="模板下载" ToolTip="模板下载" OnClick="btnDownLoad_Click">
|
||||
</f:Button>
|
||||
<f:Label runat="server" Text="注:导入Excel的日报文件的装置、区域、单位、焊接日期必须一至"></f:Label>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnNew" ToolTip="<%$ Resources:Lan,Add %>" Icon="Add" EnablePostBack="true"
|
||||
runat="server" OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
<f:HiddenField ID="hidFileName" runat="server"></f:HiddenField>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:DatePicker ID="txtWeldingDate" Label="<%$ Resources:Lan,WeldingDate %>" runat="server"
|
||||
DateFormatString="yyyy-MM-dd" LabelWidth="100px" LabelAlign="Right">
|
||||
</f:DatePicker>
|
||||
<f:TextBox ID="txtPipelineCode" runat="server" Label="<%$ Resources:Lan,PipelineCode %>"
|
||||
EmptyText="<%$ Resources:Lan,EnterQueryConditions %>" Width="250px" LabelWidth="100px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWeldJointCode" runat="server" Label="<%$ Resources:Lan,WeldingJointNumber %>"
|
||||
EmptyText="<%$ Resources:Lan,EnterQueryConditions %>" Width="250px" LabelWidth="100px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:Button ID="btnQuery" ToolTip="<%$ Resources:Lan,Inquiry %>" Icon="SystemSearch"
|
||||
EnablePostBack="true" OnClick="btnQuery_Click" runat="server">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,DailyWeldingReport %>"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="WeldingDailyId"
|
||||
AllowCellEditing="true" AllowColumnLocking="true" EnableColumnLines="true" ClicksToEdit="2"
|
||||
DataIDField="WeldingDailyId" AllowSorting="true" SortField="WeldingDailyCode"
|
||||
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Columns>
|
||||
<f:RenderField Width="120px" ColumnID="WeldingDailyCode" DataField="WeldingDailyCode"
|
||||
FieldType="String" HeaderText="<%$ Resources:Lan,WeldingReportCode %>" HeaderTextAlign="Center"
|
||||
TextAlign="Left" SortField="WeldingDailyCode">
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="200px" HeaderText="<%$ Resources:Lan,UnitName %>" HeaderTextAlign="Center"
|
||||
TextAlign="Center" SortField="UnitId">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# ConvertUnitName(Eval("UnitId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField Width="150px" HeaderText="<%$ Resources:Lan,InstallationCode %>"
|
||||
HeaderTextAlign="Center" TextAlign="Center" SortField="InstallationId">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# ConvertInstallationCode(Eval("InstallationId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="WeldingDate" DataField="WeldingDate" SortField="WeldingDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="<%$ Resources:Lan,WeldingDate %>"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="80px" HeaderText="<%$ Resources:Lan,Tabler %>" HeaderTextAlign="Center"
|
||||
TextAlign="Center" SortField="Tabler">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# ConvertTabler(Eval("Tabler")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="TableDate" DataField="TableDate" SortField="TableDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="<%$ Resources:Lan,TableDate %>"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Remark" DataField="Remark" FieldType="String"
|
||||
HeaderText="<%$ Resources:Lan,Remark %>" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="expander" RenderAsRowExpander="true">
|
||||
<ItemTemplate>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
<f:Listener Event="rowexpanderexpand" Handler="onRowExpanderExpand" />
|
||||
<f:Listener Event="rowexpandercollapse" Handler="onRowExpanderCollapse" />
|
||||
</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:ListItem Text="<%$ Resources:Lan,AllLines %>" Value="10000" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="<%$ Resources:Lan,PopForm %>" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Top" EnableResize="true" runat="server" OnClose="Window1_Close"
|
||||
IsModal="true" Width="1200px" Height="650px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="BulletEdit" EnablePostBack="true"
|
||||
runat="server" Text="<%$ Resources:Lan,Edit %>">
|
||||
</f:MenuButton>
|
||||
<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>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:FileUpload runat="server" ID="dailyReportUrl" EmptyText="请选择要导入的Excel日报文件"
|
||||
LabelWidth="50px" LabelAlign="Right" Width="300px">
|
||||
</f:FileUpload>
|
||||
<f:Button ID="btnImport" Icon="ApplicationEdit" runat="server" Text="导入" ToolTip="日报导入"
|
||||
OnClick="btnImport_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" Text="模板下载" ToolTip="模板下载" OnClick="btnDownLoad_Click">
|
||||
</f:Button>
|
||||
<f:Label runat="server" Text="注:导入Excel的日报文件的装置、区域、单位、焊接日期必须一至"></f:Label>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnNew" ToolTip="<%$ Resources:Lan,Add %>" Icon="Add" EnablePostBack="true"
|
||||
runat="server" OnClick="btnNew_Click">
|
||||
</f:Button>
|
||||
<f:HiddenField ID="hidFileName" runat="server"></f:HiddenField>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:DatePicker ID="txtWeldingDate" Label="<%$ Resources:Lan,WeldingDate %>" runat="server"
|
||||
DateFormatString="yyyy-MM-dd" LabelWidth="100px" LabelAlign="Right">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="drpInstallation" runat="server" Label="装置"
|
||||
Width="220px" LabelWidth="100px" LabelAlign="Right"></f:DropDownList>
|
||||
<f:TextBox ID="txtPipelineCode" runat="server" Label="<%$ Resources:Lan,PipelineCode %>"
|
||||
EmptyText="<%$ Resources:Lan,EnterQueryConditions %>" Width="250px" LabelWidth="100px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtWeldJointCode" runat="server" Label="<%$ Resources:Lan,WeldingJointNumber %>"
|
||||
EmptyText="<%$ Resources:Lan,EnterQueryConditions %>" Width="250px" LabelWidth="100px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:Button ID="btnQuery" ToolTip="<%$ Resources:Lan,Inquiry %>" Icon="SystemSearch"
|
||||
EnablePostBack="true" OnClick="btnQuery_Click" runat="server">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="<%$ Resources:Lan,DailyWeldingReport %>"
|
||||
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="WeldingDailyId"
|
||||
AllowCellEditing="true" AllowColumnLocking="true" EnableColumnLines="true" ClicksToEdit="2"
|
||||
DataIDField="WeldingDailyId" AllowSorting="true" SortField="WeldingDailyCode"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Columns>
|
||||
<f:RenderField Width="120px" ColumnID="WeldingDailyCode" DataField="WeldingDailyCode"
|
||||
FieldType="String" HeaderText="<%$ Resources:Lan,WeldingReportCode %>" HeaderTextAlign="Center"
|
||||
TextAlign="Left" SortField="WeldingDailyCode">
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="260px" HeaderText="<%$ Resources:Lan,UnitName %>" HeaderTextAlign="Center"
|
||||
TextAlign="Center" SortField="UnitId">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# ConvertUnitName(Eval("UnitId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField Width="150px" HeaderText="<%$ Resources:Lan,InstallationCode %>"
|
||||
HeaderTextAlign="Center" TextAlign="Center" SortField="InstallationId">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# ConvertInstallationCode(Eval("InstallationId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="WeldingDate" DataField="WeldingDate" SortField="WeldingDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="<%$ Resources:Lan,WeldingDate %>"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="80px" HeaderText="<%$ Resources:Lan,Tabler %>" HeaderTextAlign="Center"
|
||||
TextAlign="Center" SortField="Tabler">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# ConvertTabler(Eval("Tabler")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="100px" ColumnID="TableDate" DataField="TableDate" SortField="TableDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="<%$ Resources:Lan,TableDate %>"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="Remark" DataField="Remark" FieldType="String"
|
||||
HeaderText="<%$ Resources:Lan,Remark %>" HeaderTextAlign="Center" TextAlign="Left"
|
||||
ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="expander" RenderAsRowExpander="true">
|
||||
<ItemTemplate>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
<f:Listener Event="rowexpanderexpand" Handler="onRowExpanderExpand" />
|
||||
<f:Listener Event="rowexpandercollapse" Handler="onRowExpanderCollapse" />
|
||||
</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:ListItem Text="<%$ Resources:Lan,AllLines %>" Value="10000" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
||||
<f:Window ID="Window1" Title="<%$ Resources:Lan,PopForm %>" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Top" EnableResize="true" runat="server" OnClose="Window1_Close"
|
||||
IsModal="true" Width="1200px" Height="650px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="BulletEdit" EnablePostBack="true"
|
||||
runat="server" Text="<%$ Resources:Lan,Edit %>">
|
||||
</f:MenuButton>
|
||||
<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 %>';
|
||||
|
@ -186,7 +163,7 @@
|
|||
columnMenu: false,
|
||||
columnResizing: false,
|
||||
cls: 'gridinrowexpander',
|
||||
fields: ['Num', 'PipelineCode', 'WeldJointCode', 'BackingWelderCode', 'CoverWelderCode', 'WeldTypeCode', 'JointAttribute', 'WeldingLocationCode', 'DoneDin', 'Dia', 'Thickness', 'WeldingMethodCode', 'Material1Code', 'Material2Code', 'ComponentsCode1', 'ComponentsCode2', 'HeartNo1', 'HeartNo2', 'WeldSilkCode','WeldMatCode','PipeSegment','WPQCode'],
|
||||
fields: ['Num', 'PipelineCode', 'WeldJointCode', 'BackingWelderCode', 'CoverWelderCode', 'WeldTypeCode', 'JointAttribute', 'WeldingLocationCode', 'DoneDin', 'Dia', 'Thickness', 'WeldingMethodCode', 'Material1Code', 'Material2Code', 'ComponentsCode1', 'ComponentsCode2', 'HeartNo1', 'HeartNo2', 'WeldSilkCode', 'WeldMatCode', 'PipeSegment', 'WPQCode'],
|
||||
columns: [{
|
||||
text: '序号', field: 'Num', width: 50
|
||||
}, {
|
||||
|
@ -211,7 +188,7 @@
|
|||
text: '壁厚', field: 'Thickness', width: 65
|
||||
}, {
|
||||
text: '焊接方法', field: 'WeldingMethodCode', width: 120
|
||||
},{
|
||||
}, {
|
||||
text: '材质1', field: 'Material1Code', width: 110
|
||||
}, {
|
||||
text: '材质2', field: 'Material2Code', width: 110
|
||||
|
|
|
@ -28,9 +28,11 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.txtMonth.Text = string.Format("{0:yyyy-MM}",DateTime.Now);
|
||||
//this.txtMonth.Text = string.Format("{0:yyyy-MM}",DateTime.Now);
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
this.InitTreeMenu();//加载树
|
||||
BLL.Project_InstallationService.InitInstallationDropDownList(this.drpInstallation, true, this.CurrUser.LoginProjectId, Resources.Lan.PleaseSelect);
|
||||
BindGrid();
|
||||
//this.InitTreeMenu();//加载树
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,20 +42,20 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtMonth.Text.Trim()))
|
||||
{
|
||||
DateTime startTime = Convert.ToDateTime(this.txtMonth.Text.Trim() + "-01");
|
||||
DateTime endTime = startTime.AddMonths(1);
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
var weldReports = (from x in Funs.DB.Pipeline_WeldingDaily
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
select x).ToList();
|
||||
this.BindNodes(null, weldReports, startTime, endTime);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择月份!", MessageBoxIcon.Warning);
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(this.txtMonth.Text.Trim()))
|
||||
//{
|
||||
// DateTime startTime = Convert.ToDateTime(this.txtMonth.Text.Trim() + "-01");
|
||||
// DateTime endTime = startTime.AddMonths(1);
|
||||
// this.tvControlItem.Nodes.Clear();
|
||||
// var weldReports = (from x in Funs.DB.Pipeline_WeldingDaily
|
||||
// where x.ProjectId == this.CurrUser.LoginProjectId
|
||||
// select x).ToList();
|
||||
// this.BindNodes(null, weldReports, startTime, endTime);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Alert.ShowInTop("请选择月份!", MessageBoxIcon.Warning);
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -65,80 +67,80 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
/// <param name="node"></param>
|
||||
private void BindNodes(TreeNode node, List<Model.Pipeline_WeldingDaily> projectWeldReports, DateTime startTime, DateTime endTime)
|
||||
{
|
||||
var pUnitDepth = Funs.DB.Project_Unit.FirstOrDefault(x => x.UnitId == this.CurrUser.UnitId && x.ProjectId == this.CurrUser.LoginProjectId);
|
||||
//var pUnitDepth = Funs.DB.Project_Unit.FirstOrDefault(x => x.UnitId == this.CurrUser.UnitId && x.ProjectId == this.CurrUser.LoginProjectId);
|
||||
|
||||
if (node == null)
|
||||
{
|
||||
if (pUnitDepth!=null && pUnitDepth.UnitType == Const.UnitType_5)
|
||||
{
|
||||
var installations = (from x in projectWeldReports
|
||||
join y in Funs.DB.Project_Installation
|
||||
on x.InstallationId equals y.InstallationId
|
||||
where x.UnitId==this.CurrUser.UnitId && x.WeldingDate >= startTime && x.WeldingDate < endTime
|
||||
select y).Distinct().ToList();
|
||||
foreach (var q in installations)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.NodeID = q.InstallationId;
|
||||
newNode.Text = q.InstallationName;
|
||||
newNode.ToolTip = Resources.Lan.InstallationName;
|
||||
newNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(newNode);
|
||||
this.BindNodes(newNode, projectWeldReports, startTime, endTime);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var installations = (from x in projectWeldReports
|
||||
join y in Funs.DB.Project_Installation
|
||||
on x.InstallationId equals y.InstallationId
|
||||
where x.WeldingDate >= startTime && x.WeldingDate < endTime
|
||||
select y).Distinct().ToList();
|
||||
foreach (var q in installations)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.NodeID = q.InstallationId;
|
||||
newNode.Text = q.InstallationName;
|
||||
newNode.ToolTip = Resources.Lan.InstallationName;
|
||||
newNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(newNode);
|
||||
this.BindNodes(newNode, projectWeldReports, startTime, endTime);
|
||||
}
|
||||
}
|
||||
//if (node == null)
|
||||
//{
|
||||
// if (pUnitDepth!=null && pUnitDepth.UnitType == Const.UnitType_5)
|
||||
// {
|
||||
// var installations = (from x in projectWeldReports
|
||||
// join y in Funs.DB.Project_Installation
|
||||
// on x.InstallationId equals y.InstallationId
|
||||
// where x.UnitId==this.CurrUser.UnitId && x.WeldingDate >= startTime && x.WeldingDate < endTime
|
||||
// select y).Distinct().ToList();
|
||||
// foreach (var q in installations)
|
||||
// {
|
||||
// TreeNode newNode = new TreeNode();
|
||||
// newNode.NodeID = q.InstallationId;
|
||||
// newNode.Text = q.InstallationName;
|
||||
// newNode.ToolTip = Resources.Lan.InstallationName;
|
||||
// newNode.Expanded = true;
|
||||
// this.tvControlItem.Nodes.Add(newNode);
|
||||
// this.BindNodes(newNode, projectWeldReports, startTime, endTime);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// var installations = (from x in projectWeldReports
|
||||
// join y in Funs.DB.Project_Installation
|
||||
// on x.InstallationId equals y.InstallationId
|
||||
// where x.WeldingDate >= startTime && x.WeldingDate < endTime
|
||||
// select y).Distinct().ToList();
|
||||
// foreach (var q in installations)
|
||||
// {
|
||||
// TreeNode newNode = new TreeNode();
|
||||
// newNode.NodeID = q.InstallationId;
|
||||
// newNode.Text = q.InstallationName;
|
||||
// newNode.ToolTip = Resources.Lan.InstallationName;
|
||||
// newNode.Expanded = true;
|
||||
// this.tvControlItem.Nodes.Add(newNode);
|
||||
// this.BindNodes(newNode, projectWeldReports, startTime, endTime);
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
else if (node.ToolTip == Resources.Lan.InstallationName)
|
||||
{
|
||||
List<Model.Base_Unit> units = null;
|
||||
if (pUnitDepth != null && pUnitDepth.UnitType == Const.UnitType_5)
|
||||
{
|
||||
units = (from x in Funs.DB.Base_Unit
|
||||
where x.UnitId == this.CurrUser.UnitId
|
||||
select x).ToList();
|
||||
//}
|
||||
//else if (node.ToolTip == Resources.Lan.InstallationName)
|
||||
//{
|
||||
// List<Model.Base_Unit> units = null;
|
||||
// if (pUnitDepth != null && pUnitDepth.UnitType == Const.UnitType_5)
|
||||
// {
|
||||
// units = (from x in Funs.DB.Base_Unit
|
||||
// where x.UnitId == this.CurrUser.UnitId
|
||||
// select x).ToList();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
units = (from x in projectWeldReports
|
||||
join y in Funs.DB.Project_Installation
|
||||
on x.InstallationId equals y.InstallationId
|
||||
join z in Funs.DB.Base_Unit
|
||||
on x.UnitId equals z.UnitId
|
||||
where x.InstallationId == node.NodeID && x.WeldingDate >= startTime && x.WeldingDate < endTime
|
||||
select z).Distinct().ToList();
|
||||
}
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// units = (from x in projectWeldReports
|
||||
// join y in Funs.DB.Project_Installation
|
||||
// on x.InstallationId equals y.InstallationId
|
||||
// join z in Funs.DB.Base_Unit
|
||||
// on x.UnitId equals z.UnitId
|
||||
// where x.InstallationId == node.NodeID && x.WeldingDate >= startTime && x.WeldingDate < endTime
|
||||
// select z).Distinct().ToList();
|
||||
// }
|
||||
|
||||
units = units.OrderBy(x => x.InTime).Distinct().ToList();
|
||||
foreach (var q in units)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
newNode.Text = q.UnitName;
|
||||
newNode.NodeID = q.UnitId + "|" + node.NodeID;
|
||||
newNode.ToolTip = Resources.Lan.UnitName;
|
||||
newNode.EnableClickEvent = true;
|
||||
node.Nodes.Add(newNode);
|
||||
}
|
||||
}
|
||||
// units = units.OrderBy(x => x.InTime).Distinct().ToList();
|
||||
// foreach (var q in units)
|
||||
// {
|
||||
// TreeNode newNode = new TreeNode();
|
||||
// newNode.Text = q.UnitName;
|
||||
// newNode.NodeID = q.UnitId + "|" + node.NodeID;
|
||||
// newNode.ToolTip = Resources.Lan.UnitName;
|
||||
// newNode.EnableClickEvent = true;
|
||||
// node.Nodes.Add(newNode);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
@ -173,58 +175,63 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
|||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
if (this.tvControlItem.SelectedNode != null && this.tvControlItem.SelectedNode.ToolTip == Resources.Lan.UnitName)
|
||||
{
|
||||
string[] strs = this.tvControlItem.SelectedNodeID.Split('|');
|
||||
DateTime startDate = Convert.ToDateTime(this.txtMonth.Text.Trim() + "-1");
|
||||
DateTime endDate = startDate.AddMonths(1);
|
||||
string startDateStr = string.Format("{0:yyyy-MM-dd}", startDate);
|
||||
string endDateStr = string.Format("{0:yyyy-MM-dd}", endDate);
|
||||
string strSql = @"SELECT distinct d.WeldingDailyId,d.WeldingDailyCode,d.ProjectId,
|
||||
//if (this.tvControlItem.SelectedNode != null && this.tvControlItem.SelectedNode.ToolTip == Resources.Lan.UnitName)
|
||||
//{
|
||||
//string[] strs = this.tvControlItem.SelectedNodeID.Split('|');
|
||||
//DateTime startDate = Convert.ToDateTime(this.txtMonth.Text.Trim() + "-1");
|
||||
//DateTime endDate = startDate.AddMonths(1);
|
||||
//string startDateStr = string.Format("{0:yyyy-MM-dd}", startDate);
|
||||
//string endDateStr = string.Format("{0:yyyy-MM-dd}", endDate);
|
||||
string strSql = @"SELECT distinct d.WeldingDailyId,d.WeldingDailyCode,d.ProjectId,
|
||||
d.InstallationId,d.UnitId,d.WeldingDate,d.Tabler,d.TableDate,d.Remark
|
||||
FROM dbo.Pipeline_WeldingDaily d
|
||||
left join dbo.View_Pipeline_WeldJoint w on w.WeldingDailyId=d.WeldingDailyId
|
||||
WHERE 1=1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>
|
||||
{
|
||||
List<SqlParameter> listStr = new List<SqlParameter>
|
||||
{
|
||||
|
||||
};
|
||||
strSql += " AND d.ProjectId =@ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
};
|
||||
strSql += " AND d.ProjectId =@ProjectId";
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
if (drpInstallation.SelectedValue != Const._Null)
|
||||
{
|
||||
strSql += " AND d.InstallationId =@InstallationId";
|
||||
listStr.Add(new SqlParameter("@InstallationId", strs[1]));
|
||||
strSql += " AND d.UnitId =@UnitId";
|
||||
listStr.Add(new SqlParameter("@UnitId", strs[0]));
|
||||
strSql += " AND d.WeldingDate >=@startDateStr";
|
||||
listStr.Add(new SqlParameter("@startDateStr", startDateStr));
|
||||
strSql += " AND d.WeldingDate <@endDateStr";
|
||||
listStr.Add(new SqlParameter("@endDateStr", endDateStr));
|
||||
if (!string.IsNullOrEmpty(this.txtWeldingDate.Text.Trim()))
|
||||
{
|
||||
strSql += " AND d.WeldingDate = @WeldingDate";
|
||||
listStr.Add(new SqlParameter("@WeldingDate", this.txtWeldingDate.Text.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim()))
|
||||
{
|
||||
strSql += " AND w.PipelineCode LIKE @PipelineCode";
|
||||
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.txtPipelineCode.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtWeldJointCode.Text.Trim()))
|
||||
{
|
||||
strSql += " AND w.WeldJointCode LIKE @WeldJointCode";
|
||||
listStr.Add(new SqlParameter("@WeldJointCode", "%" + this.txtWeldJointCode.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();
|
||||
listStr.Add(new SqlParameter("@InstallationId", drpInstallation.SelectedValue));
|
||||
}
|
||||
|
||||
//strSql += " AND d.UnitId =@UnitId";
|
||||
//listStr.Add(new SqlParameter("@UnitId", strs[0]));
|
||||
//strSql += " AND d.WeldingDate >=@startDateStr";
|
||||
//listStr.Add(new SqlParameter("@startDateStr", startDateStr));
|
||||
//strSql += " AND d.WeldingDate <@endDateStr";
|
||||
//listStr.Add(new SqlParameter("@endDateStr", endDateStr));
|
||||
if (!string.IsNullOrEmpty(this.txtWeldingDate.Text.Trim()))
|
||||
{
|
||||
strSql += " AND d.WeldingDate = @WeldingDate";
|
||||
listStr.Add(new SqlParameter("@WeldingDate", this.txtWeldingDate.Text.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim()))
|
||||
{
|
||||
strSql += " AND w.PipelineCode LIKE @PipelineCode";
|
||||
listStr.Add(new SqlParameter("@PipelineCode", "%" + this.txtPipelineCode.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtWeldJointCode.Text.Trim()))
|
||||
{
|
||||
strSql += " AND w.WeldJointCode = @WeldJointCode";
|
||||
listStr.Add(new SqlParameter("@WeldJointCode", this.txtWeldJointCode.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();
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
||||
|
||||
|
||||
public partial class WeldReport {
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
{
|
||||
|
||||
|
||||
public partial class WeldReport
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,52 +40,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </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>
|
||||
/// txtMonth 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtMonth;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +49,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// dailyReportUrl 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +58,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FileUpload dailyReportUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +67,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnDownLoad 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +76,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnDownLoad;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +85,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +94,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hidFileName 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +103,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hidFileName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +112,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldingDate 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +121,16 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtWeldingDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpInstallation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpInstallation;
|
||||
|
||||
/// <summary>
|
||||
/// txtPipelineCode 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +139,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPipelineCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldJointCode 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +148,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldJointCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnQuery 控件。
|
||||
/// </summary>
|
||||
|
@ -191,7 +157,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnQuery;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
|
@ -200,7 +166,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
@ -209,7 +175,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
|
@ -218,7 +184,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
|
@ -227,7 +193,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
|
@ -236,7 +202,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
@ -245,7 +211,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
@ -254,7 +220,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
@ -263,7 +229,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
@ -272,7 +238,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
@ -281,7 +247,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
|
@ -290,7 +256,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -65,6 +65,16 @@
|
|||
DataField="SingleNumber" FieldType="String" HeaderTextAlign="Center"
|
||||
Width="180px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField HeaderText="管道等级" ColumnID="PipingClassCode"
|
||||
DataField="PipingClassCode" FieldType="String" HeaderTextAlign="Center"
|
||||
Width="90px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="压力管道分级" ColumnID="PIPClassCode"
|
||||
DataField="PIPClassCode" FieldType="String" HeaderTextAlign="Center"
|
||||
Width="110px">
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField HeaderText="<%$ Resources:Lan,PipelineCode %>" ColumnID="PipelineCode"
|
||||
DataField="PipelineCode" SortField="PipelineCode" FieldType="String" HeaderTextAlign="Center"
|
||||
Width="180px">
|
||||
|
|
|
@ -225,152 +225,162 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
|
|||
reportModel.GetRow(rowIndex).GetCell(5).SetCellValue(itemOver["PipelineCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(5).CellStyle = style;
|
||||
|
||||
//图纸版次
|
||||
//管道等级
|
||||
if (reportModel.GetRow(rowIndex).GetCell(6) == null) reportModel.GetRow(rowIndex).CreateCell(6);
|
||||
reportModel.GetRow(rowIndex).GetCell(6).SetCellValue(itemOver["DrawingsNum"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(6).SetCellValue(itemOver["PipingClassCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(6).CellStyle = style;
|
||||
//页码
|
||||
|
||||
//压力管道分级
|
||||
if (reportModel.GetRow(rowIndex).GetCell(7) == null) reportModel.GetRow(rowIndex).CreateCell(7);
|
||||
reportModel.GetRow(rowIndex).GetCell(7).SetCellValue(itemOver["PageNum"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(7).SetCellValue(itemOver["PIPClassCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(7).CellStyle = style;
|
||||
|
||||
//管段
|
||||
//图纸版次
|
||||
if (reportModel.GetRow(rowIndex).GetCell(8) == null) reportModel.GetRow(rowIndex).CreateCell(8);
|
||||
reportModel.GetRow(rowIndex).GetCell(8).SetCellValue(itemOver["PipeSegment"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(8).SetCellValue(itemOver["DrawingsNum"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(8).CellStyle = style;
|
||||
//焊口号
|
||||
//页码
|
||||
if (reportModel.GetRow(rowIndex).GetCell(9) == null) reportModel.GetRow(rowIndex).CreateCell(9);
|
||||
reportModel.GetRow(rowIndex).GetCell(9).SetCellValue(itemOver["WeldJointCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(9).SetCellValue(itemOver["PageNum"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(9).CellStyle = style;
|
||||
//焊缝类型
|
||||
|
||||
//管段
|
||||
if (reportModel.GetRow(rowIndex).GetCell(10) == null) reportModel.GetRow(rowIndex).CreateCell(10);
|
||||
reportModel.GetRow(rowIndex).GetCell(10).SetCellValue(itemOver["WeldTypeCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(10).SetCellValue(itemOver["PipeSegment"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(10).CellStyle = style;
|
||||
//焊接位置
|
||||
//焊口号
|
||||
if (reportModel.GetRow(rowIndex).GetCell(11) == null) reportModel.GetRow(rowIndex).CreateCell(11);
|
||||
reportModel.GetRow(rowIndex).GetCell(11).SetCellValue(itemOver["WeldingLocationCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(11).SetCellValue(itemOver["WeldJointCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(11).CellStyle = style;
|
||||
//管径
|
||||
//焊缝类型
|
||||
if (reportModel.GetRow(rowIndex).GetCell(12) == null) reportModel.GetRow(rowIndex).CreateCell(12);
|
||||
reportModel.GetRow(rowIndex).GetCell(12).SetCellValue(itemOver["JOT_Size"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(12).SetCellValue(itemOver["WeldTypeCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(12).CellStyle = style;
|
||||
//规格
|
||||
//焊接位置
|
||||
if (reportModel.GetRow(rowIndex).GetCell(13) == null) reportModel.GetRow(rowIndex).CreateCell(13);
|
||||
reportModel.GetRow(rowIndex).GetCell(13).SetCellValue(itemOver["Specification"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(13).SetCellValue(itemOver["WeldingLocationCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(13).CellStyle = style;
|
||||
//材质1
|
||||
//管径
|
||||
if (reportModel.GetRow(rowIndex).GetCell(14) == null) reportModel.GetRow(rowIndex).CreateCell(14);
|
||||
reportModel.GetRow(rowIndex).GetCell(14).SetCellValue(itemOver["MaterialCode1"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(14).SetCellValue(itemOver["JOT_Size"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(14).CellStyle = style;
|
||||
//材质2
|
||||
//规格
|
||||
if (reportModel.GetRow(rowIndex).GetCell(15) == null) reportModel.GetRow(rowIndex).CreateCell(15);
|
||||
reportModel.GetRow(rowIndex).GetCell(15).SetCellValue(itemOver["MaterialCode2"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(15).SetCellValue(itemOver["Specification"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(15).CellStyle = style;
|
||||
//组件1
|
||||
//材质1
|
||||
if (reportModel.GetRow(rowIndex).GetCell(16) == null) reportModel.GetRow(rowIndex).CreateCell(16);
|
||||
reportModel.GetRow(rowIndex).GetCell(16).SetCellValue(itemOver["PipeAssembly1"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(16).SetCellValue(itemOver["MaterialCode1"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(16).CellStyle = style;
|
||||
//组件2
|
||||
//材质2
|
||||
if (reportModel.GetRow(rowIndex).GetCell(17) == null) reportModel.GetRow(rowIndex).CreateCell(17);
|
||||
reportModel.GetRow(rowIndex).GetCell(17).SetCellValue(itemOver["PipeAssembly2"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(17).SetCellValue(itemOver["MaterialCode2"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(17).CellStyle = style;
|
||||
//组件1
|
||||
if (reportModel.GetRow(rowIndex).GetCell(18) == null) reportModel.GetRow(rowIndex).CreateCell(18);
|
||||
reportModel.GetRow(rowIndex).GetCell(18).SetCellValue(itemOver["PipeAssembly1"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(18).CellStyle = style;
|
||||
//组件2
|
||||
if (reportModel.GetRow(rowIndex).GetCell(19) == null) reportModel.GetRow(rowIndex).CreateCell(19);
|
||||
reportModel.GetRow(rowIndex).GetCell(19).SetCellValue(itemOver["PipeAssembly2"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(19).CellStyle = style;
|
||||
|
||||
//炉批号1
|
||||
if (reportModel.GetRow(rowIndex).GetCell(18) == null) reportModel.GetRow(rowIndex).CreateCell(18);
|
||||
reportModel.GetRow(rowIndex).GetCell(18).SetCellValue(itemOver["HeartNo1"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(18).CellStyle = style;
|
||||
//炉批号2
|
||||
if (reportModel.GetRow(rowIndex).GetCell(19) == null) reportModel.GetRow(rowIndex).CreateCell(19);
|
||||
reportModel.GetRow(rowIndex).GetCell(19).SetCellValue(itemOver["HeartNo2"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(19).CellStyle = style;
|
||||
//WPS编号
|
||||
if (reportModel.GetRow(rowIndex).GetCell(20) == null) reportModel.GetRow(rowIndex).CreateCell(20);
|
||||
reportModel.GetRow(rowIndex).GetCell(20).SetCellValue(itemOver["WPQCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(20).SetCellValue(itemOver["HeartNo1"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(20).CellStyle = style;
|
||||
//打底焊工
|
||||
//炉批号2
|
||||
if (reportModel.GetRow(rowIndex).GetCell(21) == null) reportModel.GetRow(rowIndex).CreateCell(21);
|
||||
reportModel.GetRow(rowIndex).GetCell(21).SetCellValue(itemOver["BackingWelderCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(21).SetCellValue(itemOver["HeartNo2"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(21).CellStyle = style;
|
||||
//盖面焊工
|
||||
//WPS编号
|
||||
if (reportModel.GetRow(rowIndex).GetCell(22) == null) reportModel.GetRow(rowIndex).CreateCell(22);
|
||||
reportModel.GetRow(rowIndex).GetCell(22).SetCellValue(itemOver["CoverWelderCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(22).SetCellValue(itemOver["WPQCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(22).CellStyle = style;
|
||||
//打底焊工
|
||||
if (reportModel.GetRow(rowIndex).GetCell(23) == null) reportModel.GetRow(rowIndex).CreateCell(23);
|
||||
reportModel.GetRow(rowIndex).GetCell(23).SetCellValue(itemOver["BackingWelderCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(23).CellStyle = style;
|
||||
//盖面焊工
|
||||
if (reportModel.GetRow(rowIndex).GetCell(24) == null) reportModel.GetRow(rowIndex).CreateCell(24);
|
||||
reportModel.GetRow(rowIndex).GetCell(24).SetCellValue(itemOver["CoverWelderCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(24).CellStyle = style;
|
||||
|
||||
//焊接方法
|
||||
if (reportModel.GetRow(rowIndex).GetCell(23) == null) reportModel.GetRow(rowIndex).CreateCell(23);
|
||||
reportModel.GetRow(rowIndex).GetCell(23).SetCellValue(itemOver["WeldingMethodName"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(23).CellStyle = style;
|
||||
//介质
|
||||
if (reportModel.GetRow(rowIndex).GetCell(24) == null) reportModel.GetRow(rowIndex).CreateCell(24);
|
||||
reportModel.GetRow(rowIndex).GetCell(24).SetCellValue(itemOver["MediumName"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(24).CellStyle = style;
|
||||
//焊接日期
|
||||
if (reportModel.GetRow(rowIndex).GetCell(25) == null) reportModel.GetRow(rowIndex).CreateCell(25);
|
||||
reportModel.GetRow(rowIndex).GetCell(25).SetCellValue(itemOver["WeldingMethodName"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(25).CellStyle = style;
|
||||
//介质
|
||||
if (reportModel.GetRow(rowIndex).GetCell(26) == null) reportModel.GetRow(rowIndex).CreateCell(26);
|
||||
reportModel.GetRow(rowIndex).GetCell(26).SetCellValue(itemOver["MediumName"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(26).CellStyle = style;
|
||||
//焊接日期
|
||||
if (reportModel.GetRow(rowIndex).GetCell(27) == null) reportModel.GetRow(rowIndex).CreateCell(27);
|
||||
if (itemOver["WeldingDate"] != null && itemOver["WeldingDate"].ToString() != string.Empty)
|
||||
{
|
||||
reportModel.GetRow(rowIndex).GetCell(25).SetCellValue((DateTime)Convert.ToDateTime(itemOver["WeldingDate"].ToString()));
|
||||
reportModel.GetRow(rowIndex).GetCell(25).CellStyle = styleDate;
|
||||
reportModel.GetRow(rowIndex).GetCell(27).SetCellValue((DateTime)Convert.ToDateTime(itemOver["WeldingDate"].ToString()));
|
||||
reportModel.GetRow(rowIndex).GetCell(27).CellStyle = styleDate;
|
||||
}
|
||||
//reportModel.GetRow(rowIndex).GetCell(23).SetCellValue(itemOver["WeldingDate"].ToString());
|
||||
//焊接日报号
|
||||
if (reportModel.GetRow(rowIndex).GetCell(26) == null) reportModel.GetRow(rowIndex).CreateCell(26);
|
||||
reportModel.GetRow(rowIndex).GetCell(26).SetCellValue(itemOver["WeldingDailyCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(26).CellStyle = style;
|
||||
//检测类型
|
||||
if (reportModel.GetRow(rowIndex).GetCell(27) == null) reportModel.GetRow(rowIndex).CreateCell(27);
|
||||
reportModel.GetRow(rowIndex).GetCell(27).SetCellValue(itemOver["DetectionTypeCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(27).CellStyle = style;
|
||||
//是否点口
|
||||
if (reportModel.GetRow(rowIndex).GetCell(28) == null) reportModel.GetRow(rowIndex).CreateCell(28);
|
||||
reportModel.GetRow(rowIndex).GetCell(28).SetCellValue(itemOver["if_dk"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(28).SetCellValue(itemOver["WeldingDailyCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(28).CellStyle = style;
|
||||
//委托号
|
||||
//检测类型
|
||||
if (reportModel.GetRow(rowIndex).GetCell(29) == null) reportModel.GetRow(rowIndex).CreateCell(29);
|
||||
reportModel.GetRow(rowIndex).GetCell(29).SetCellValue(itemOver["TrustBatchCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(29).SetCellValue(itemOver["DetectionTypeCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(29).CellStyle = style;
|
||||
//检测比例
|
||||
//是否点口
|
||||
if (reportModel.GetRow(rowIndex).GetCell(30) == null) reportModel.GetRow(rowIndex).CreateCell(30);
|
||||
reportModel.GetRow(rowIndex).GetCell(30).SetCellValue(itemOver["DetectionRateCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(30).SetCellValue(itemOver["if_dk"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(30).CellStyle = style;
|
||||
//合格等级
|
||||
//委托号
|
||||
if (reportModel.GetRow(rowIndex).GetCell(31) == null) reportModel.GetRow(rowIndex).CreateCell(31);
|
||||
reportModel.GetRow(rowIndex).GetCell(31).SetCellValue(itemOver["AcceptLevel"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(31).SetCellValue(itemOver["TrustBatchCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(31).CellStyle = style;
|
||||
//检测日期
|
||||
//检测比例
|
||||
if (reportModel.GetRow(rowIndex).GetCell(32) == null) reportModel.GetRow(rowIndex).CreateCell(32);
|
||||
reportModel.GetRow(rowIndex).GetCell(32).SetCellValue(itemOver["DetectionRateCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(32).CellStyle = style;
|
||||
//合格等级
|
||||
if (reportModel.GetRow(rowIndex).GetCell(33) == null) reportModel.GetRow(rowIndex).CreateCell(33);
|
||||
reportModel.GetRow(rowIndex).GetCell(33).SetCellValue(itemOver["AcceptLevel"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(33).CellStyle = style;
|
||||
//检测日期
|
||||
if (reportModel.GetRow(rowIndex).GetCell(34) == null) reportModel.GetRow(rowIndex).CreateCell(34);
|
||||
if (itemOver["CHT_CHECKDATE"] != null && itemOver["CHT_CHECKDATE"].ToString() != string.Empty)
|
||||
{
|
||||
reportModel.GetRow(rowIndex).GetCell(32).SetCellValue((DateTime)Convert.ToDateTime(itemOver["CHT_CHECKDATE"].ToString()));
|
||||
reportModel.GetRow(rowIndex).GetCell(32).CellStyle = styleDate;
|
||||
reportModel.GetRow(rowIndex).GetCell(34).SetCellValue((DateTime)Convert.ToDateTime(itemOver["CHT_CHECKDATE"].ToString()));
|
||||
reportModel.GetRow(rowIndex).GetCell(34).CellStyle = styleDate;
|
||||
}
|
||||
//reportModel.GetRow(rowIndex).GetCell(30).SetCellValue(itemOver["CHT_CHECKDATE"].ToString());
|
||||
|
||||
//检测报告
|
||||
if (reportModel.GetRow(rowIndex).GetCell(33) == null) reportModel.GetRow(rowIndex).CreateCell(33);
|
||||
reportModel.GetRow(rowIndex).GetCell(33).SetCellValue(itemOver["NDEReportNo"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(33).CellStyle = style;
|
||||
if (reportModel.GetRow(rowIndex).GetCell(35) == null) reportModel.GetRow(rowIndex).CreateCell(35);
|
||||
reportModel.GetRow(rowIndex).GetCell(35).SetCellValue(itemOver["NDEReportNo"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(35).CellStyle = style;
|
||||
|
||||
|
||||
//是否热处理
|
||||
if (reportModel.GetRow(rowIndex).GetCell(34) == null) reportModel.GetRow(rowIndex).CreateCell(34);
|
||||
reportModel.GetRow(rowIndex).GetCell(34).SetCellValue(itemOver["IsHotProess"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(34).CellStyle = style;
|
||||
//热处理报告
|
||||
if (reportModel.GetRow(rowIndex).GetCell(35) == null) reportModel.GetRow(rowIndex).CreateCell(35);
|
||||
reportModel.GetRow(rowIndex).GetCell(35).SetCellValue(itemOver["HotReportCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(35).CellStyle = style;
|
||||
//焊丝
|
||||
if (reportModel.GetRow(rowIndex).GetCell(36) == null) reportModel.GetRow(rowIndex).CreateCell(36);
|
||||
reportModel.GetRow(rowIndex).GetCell(36).SetCellValue(ConvertWeldSilk(itemOver["WeldSilkId"]));
|
||||
reportModel.GetRow(rowIndex).GetCell(36).SetCellValue(itemOver["IsHotProess"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(36).CellStyle = style;
|
||||
//焊条
|
||||
//热处理报告
|
||||
if (reportModel.GetRow(rowIndex).GetCell(37) == null) reportModel.GetRow(rowIndex).CreateCell(37);
|
||||
reportModel.GetRow(rowIndex).GetCell(37).SetCellValue(itemOver["WMT_MatCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(37).SetCellValue(itemOver["HotReportCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(37).CellStyle = style;
|
||||
//焊剂
|
||||
//焊丝
|
||||
if (reportModel.GetRow(rowIndex).GetCell(38) == null) reportModel.GetRow(rowIndex).CreateCell(38);
|
||||
reportModel.GetRow(rowIndex).GetCell(38).SetCellValue(ConvertWeldFlux(itemOver["WeldSilkId"]));
|
||||
reportModel.GetRow(rowIndex).GetCell(38).SetCellValue(ConvertWeldSilk(itemOver["WeldSilkId"]));
|
||||
reportModel.GetRow(rowIndex).GetCell(38).CellStyle = style;
|
||||
//焊条
|
||||
if (reportModel.GetRow(rowIndex).GetCell(39) == null) reportModel.GetRow(rowIndex).CreateCell(39);
|
||||
reportModel.GetRow(rowIndex).GetCell(39).SetCellValue(itemOver["WMT_MatCode"].ToString());
|
||||
reportModel.GetRow(rowIndex).GetCell(39).CellStyle = style;
|
||||
//焊剂
|
||||
if (reportModel.GetRow(rowIndex).GetCell(40) == null) reportModel.GetRow(rowIndex).CreateCell(40);
|
||||
reportModel.GetRow(rowIndex).GetCell(40).SetCellValue(ConvertWeldFlux(itemOver["WeldSilkId"]));
|
||||
reportModel.GetRow(rowIndex).GetCell(40).CellStyle = style;
|
||||
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -291,32 +291,32 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
|
|||
ws.GetRow(rowIndex + 2).GetCell(19).SetCellValue("Remark");
|
||||
|
||||
ws.GetRow(rowIndex).Height = 69 * 20;
|
||||
ws.GetRow(rowIndex + 1).Height = 12 * 20;
|
||||
ws.GetRow(rowIndex + 2).Height = 24 * 20;
|
||||
ws.GetRow(rowIndex + 1).Height = 15 * 20;
|
||||
ws.GetRow(rowIndex + 2).Height = 30 * 20;
|
||||
|
||||
ws.SetColumnWidth(0, 4 * 256);
|
||||
ws.SetColumnWidth(1, (int)(22.67 * 256));
|
||||
ws.SetColumnWidth(0, 5 * 256);
|
||||
ws.SetColumnWidth(1, (int)(21.67 * 256));
|
||||
ws.SetColumnWidth(2, (int)(9.78 * 256));
|
||||
ws.SetColumnWidth(3, (int)(6.78 * 256));
|
||||
ws.SetColumnWidth(3, (int)(5.33 * 256));
|
||||
ws.SetColumnWidth(4, (int)(7.67 * 256));
|
||||
ws.SetColumnWidth(5, (int)(8.33 * 256));
|
||||
ws.SetColumnWidth(6, (int)(6.33 * 256));
|
||||
ws.SetColumnWidth(7, (int)(9.11 * 256));
|
||||
ws.SetColumnWidth(6, (int)(7 * 256));
|
||||
ws.SetColumnWidth(7, (int)(10.82 * 256));
|
||||
ws.SetColumnWidth(8, (int)(8.33 * 256));
|
||||
ws.SetColumnWidth(9, (int)(8.40 * 256));
|
||||
ws.SetColumnWidth(10, (int)(15.67 * 256));
|
||||
ws.SetColumnWidth(11, (int)(11.67 * 256));
|
||||
ws.SetColumnWidth(11, (int)(12 * 256));
|
||||
ws.SetColumnWidth(12, (int)(8.22 * 256));
|
||||
ws.SetColumnWidth(13, (int)(16.33 * 256));
|
||||
ws.SetColumnWidth(14, (int)(11.22 * 256));
|
||||
ws.SetColumnWidth(15, (int)(10.44 * 256));
|
||||
ws.SetColumnWidth(16, (int)(5.56 * 256));
|
||||
ws.SetColumnWidth(17, (int)(5.56 * 256));
|
||||
ws.SetColumnWidth(18, (int)(7.89 * 256));
|
||||
ws.SetColumnWidth(19, (int)(9.33 * 256));
|
||||
ws.SetColumnWidth(14, (int)(11.45 * 256));
|
||||
ws.SetColumnWidth(15, (int)(11.00 * 256));
|
||||
ws.SetColumnWidth(16, (int)(4.00 * 256));
|
||||
ws.SetColumnWidth(17, (int)(4.00 * 256));
|
||||
ws.SetColumnWidth(18, (int)(9.00 * 256));
|
||||
ws.SetColumnWidth(19, (int)(7 * 256));
|
||||
#endregion
|
||||
|
||||
const int pageSize = 64;
|
||||
|
||||
const int pageSize = 65;
|
||||
DataTable dt = GetDataTable();
|
||||
var style3 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 9, false, false, "sans-serif");
|
||||
|
||||
|
@ -363,18 +363,19 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
|
|||
{
|
||||
weldingDate = txtStarTime.Text + "-" + txtEndTime.Text;
|
||||
}
|
||||
var style4 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 10, true,true, "Arial");
|
||||
var style4 = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, NPOI.SS.UserModel.HorizontalAlignment.Center, 9, true,true, "Arial");
|
||||
|
||||
ws = ExcelCreateRow(ws, hssfworkbook, dt.Rows.Count + 3, dt.Rows.Count + 3, style4, 0, 19);
|
||||
var distinctPipelineCode = dt.AsEnumerable().GroupBy(row => row.Field<string>("PipelineCode")).Select(group => group.First());
|
||||
var distinctWelder = dt.AsEnumerable().GroupBy(row => row.Field<string>("WelderCode")).Select(group => group.First());
|
||||
decimal sumSize = decimal.Parse(dt.Compute("sum(Size)", "").ToString());
|
||||
|
||||
ws.GetRow(dt.Rows.Count + 3).GetCell(0).SetCellValue("合计");
|
||||
ws.GetRow(dt.Rows.Count + 3).GetCell(0).SetCellValue("Total");
|
||||
ws.GetRow(dt.Rows.Count + 3).GetCell(1).SetCellValue($"{distinctPipelineCode.Count().ToString()}");
|
||||
ws.GetRow(dt.Rows.Count + 3).GetCell(3).SetCellValue($"{dt.Rows.Count}");
|
||||
ws.GetRow(dt.Rows.Count + 3).GetCell(6).SetCellValue($"{sumSize}");
|
||||
ws.GetRow(dt.Rows.Count + 3).GetCell(8).SetCellValue($"{distinctWelder.Count().ToString()}");
|
||||
ws.GetRow(dt.Rows.Count + 3).Height = 20 * 20;
|
||||
|
||||
|
||||
|
||||
|
@ -382,7 +383,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
|
|||
|
||||
#region 页脚部分
|
||||
IFooter footer = ws.Footer;
|
||||
string str = "CC7: 监理: Worley:";
|
||||
string str = " CC7: 监理: Worley:";
|
||||
str += "\n\n第 &P 页,共 &N 页";
|
||||
footer.Center = str;
|
||||
|
||||
|
@ -391,17 +392,20 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
|
|||
|
||||
|
||||
|
||||
ws.FitToPage = false;
|
||||
ws.FitToPage = true;
|
||||
ws.PrintSetup.FitWidth = 1;
|
||||
ws.PrintSetup.FitHeight = short.MaxValue;
|
||||
|
||||
ws.SetMargin(MarginType.LeftMargin, (double)1.2 / 3);
|
||||
ws.SetMargin(MarginType.RightMargin, (double)1.2 / 3);
|
||||
ws.SetMargin(MarginType.RightMargin, (double)0.5 / 3);
|
||||
ws.SetMargin(MarginType.TopMargin, (double)1.8 / 3);
|
||||
ws.SetMargin(MarginType.BottomMargin, (double)2.9 / 3);
|
||||
ws.PrintSetup.Landscape = true;
|
||||
ws.PrintSetup.Scale = 70;
|
||||
//ws.PrintSetup.Scale = 70;
|
||||
ws.ForceFormulaRecalculation = true;
|
||||
|
||||
ws.PrintSetup.FitWidth = 1;
|
||||
ws.PrintSetup.FitHeight = 0;
|
||||
//ws.PrintSetup.FitWidth = 1;
|
||||
//ws.PrintSetup.FitHeight = 0;
|
||||
ws.PrintSetup.PaperSize = (int)PaperSize.A4_Small;
|
||||
ws.RepeatingRows = new NPOI.SS.Util.CellRangeAddress(0,2, 0, 19);
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue