20260202 交工资料
This commit is contained in:
@@ -70,31 +70,11 @@ namespace FineUIPro.Web.JGZL
|
||||
}
|
||||
else
|
||||
{
|
||||
//string steNames = string.Empty;
|
||||
//List<string> steelLists = new List<string>();
|
||||
//var isoInfos = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.ProjectId select x).ToList();
|
||||
//foreach (var item in isoInfos)
|
||||
//{
|
||||
// if (!string.IsNullOrEmpty(item.STE_ID))
|
||||
// {
|
||||
// steelLists.Add(item.STE_ID);
|
||||
// }
|
||||
//}
|
||||
//foreach (var item in steelLists.Distinct())
|
||||
//{
|
||||
// var ste = BLL.HJGL_MaterialService.GetSteelBySteID(item);
|
||||
// if (ste != null)
|
||||
// {
|
||||
// steNames += ste.STE_Code + "、";
|
||||
// }
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(steNames))
|
||||
//{
|
||||
// steNames = steNames.Substring(0, steNames.LastIndexOf('、'));
|
||||
//}
|
||||
//double SumSize = Convert.ToDouble((from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == this.ProjectId select x.JOT_Size).Sum());
|
||||
this.txtContractNumber.Text = BLL.Base_ProjectService.GetProjectCode(this.ProjectId);
|
||||
//this.txtProjectContent.Text = "本次" + BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName + ",已完成100米" + steNames + "材质管道的预制与安装工作。项目配套的支架、阀门、三通等各类管道组成件,安装质量均符合设计及规范要求。共完成管道焊缝" + isoInfos.Count + "道,其中20%焊缝经射线或超声波检测,合格等级全部满足设计标准。目前,管道系统已顺利完成水压试验及压缩空气吹扫工序,试验压力降与管道洁净度指标均达到设计规定。";
|
||||
var project = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId);
|
||||
var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
|
||||
var jointCount = (from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == this.ProjectId select x).Count();
|
||||
this.txtProjectContent.Text = "本次" + project.ProjectName + "于" + string.Format("{0:yyyy年MM月dd日}", project.StartDate) + "开工,到" + string.Format("{0:yyyy年MM月dd日}", project.EndDate) + "施工结束。该项目共计安装管道" + isoInfo.Count + "条,管道焊缝共计" + jointCount + "道,已按图纸要求的比例进行焊缝无损检测,检测结果均符合设计规定的合格等级。该项目配套的各类管道组成件、支撑件安装质量均满足设计文件以及标准规范要求。目前,管道系统已完成水压试验及压缩空气吹扫工序,试验压力降、管道洁净度等关键指标均符合标准规范的规定标准并已通过业主方验收。";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,9 +61,9 @@
|
||||
<f:RenderField HeaderText="专业" ColumnID="Professional" DataField="Professional" SortField="Professional"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="110px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="主持人" ColumnID="Host" DataField="Host" SortField="Host"
|
||||
<%--<f:RenderField HeaderText="主持人" ColumnID="Host" DataField="Host" SortField="Host"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="110px">
|
||||
</f:RenderField>
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField HeaderText="核查时间" ColumnID="VerificationDate" DataField="VerificationDate" SortField="VerificationDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
@@ -73,15 +73,15 @@
|
||||
<f:RenderField HeaderText="内容记录" ColumnID="Contents" DataField="Contents" SortField="Contents"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="180px" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="记录人" ColumnID="Recorder" DataField="Recorder" SortField="Recorder"
|
||||
<%--<f:RenderField HeaderText="记录人" ColumnID="Recorder" DataField="Recorder" SortField="Recorder"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField HeaderText="记录时间" ColumnID="RecordDate" DataField="RecordDate" SortField="RecordDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="审核人" ColumnID="Reviewer" DataField="Reviewer" SortField="Reviewer"
|
||||
<%--<f:RenderField HeaderText="审核人" ColumnID="Reviewer" DataField="Reviewer" SortField="Reviewer"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField HeaderText="审核时间" ColumnID="ReviewDate" DataField="ReviewDate" SortField="ReviewDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderTextAlign="Center" TextAlign="Left" Width="100px">
|
||||
</f:RenderField>
|
||||
|
||||
@@ -32,20 +32,21 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtHost" runat="server" Label="主持人" LabelAlign="Right" LabelWidth="110px"></f:TextBox>
|
||||
<f:DatePicker ID="txtVerificationDate" runat="server" Label="核查时间" LabelAlign="Right" LabelWidth="110px" Required="true" ShowRedStar="true"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<%--<f:TextBox ID="txtHost" runat="server" Label="主持人" LabelAlign="Right" LabelWidth="110px"></f:TextBox>--%>
|
||||
<f:DatePicker ID="txtVerificationDate" runat="server" Label="核查时间" LabelAlign="Right" LabelWidth="110px" Required="true" ShowRedStar="true"></f:DatePicker>
|
||||
<f:TextBox ID="txtConDrawingCode" runat="server" Label="施工图号" LabelAlign="Right" LabelWidth="110px" MaxLength="50" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<%--<f:FormRow>
|
||||
<Items>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
<%--<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtPersonnel" runat="server" Label="参加核查人员" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</f:FormRow>--%>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtContents" runat="server" Label="内容记录" LabelAlign="Right" LabelWidth="110px" MaxLength="2000"></f:TextArea>
|
||||
@@ -58,16 +59,17 @@
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtRecorder" runat="server" Label="记录人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||
<%--<f:TextBox ID="txtRecorder" runat="server" Label="记录人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>--%>
|
||||
<f:DatePicker ID="txtRecordDate" runat="server" Label="记录时间" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtReviewer" runat="server" Label="审核人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||
<f:DatePicker ID="txtReviewDate" runat="server" Label="审核时间" LabelAlign="Right" LabelWidth="110px"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<%--<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtReviewer" runat="server" Label="审核人" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>--%>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</form>
|
||||
|
||||
@@ -61,15 +61,15 @@ namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
this.txtDesignUnit.Text = report.DesignUnit;
|
||||
this.txtProfessional.Text = report.Professional;
|
||||
this.txtHost.Text = report.Host;
|
||||
//this.txtHost.Text = report.Host;
|
||||
this.txtVerificationDate.Text = report.VerificationDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.VerificationDate) : "";
|
||||
this.txtConDrawingCode.Text = report.ConDrawingCode;
|
||||
this.txtPersonnel.Text = report.Personnel;
|
||||
//this.txtPersonnel.Text = report.Personnel;
|
||||
this.txtContents.Text= report.Contents;
|
||||
this.txtProblems.Text = report.Problems;
|
||||
this.txtRecorder.Text = report.Recorder;
|
||||
//this.txtRecorder.Text = report.Recorder;
|
||||
this.txtRecordDate.Text = report.RecordDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.RecordDate) : "";
|
||||
this.txtReviewer.Text = report.Reviewer;
|
||||
//this.txtReviewer.Text = report.Reviewer;
|
||||
this.txtReviewDate.Text = report.ReviewDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReviewDate) : "";
|
||||
}
|
||||
}
|
||||
@@ -95,15 +95,15 @@ namespace FineUIPro.Web.JGZL
|
||||
Model.JGZL_ConDrawingVerification newReport = new Model.JGZL_ConDrawingVerification();
|
||||
newReport.DesignUnit = this.txtDesignUnit.Text.Trim();
|
||||
newReport.Professional=this.txtProfessional.Text.Trim();
|
||||
newReport.Host = this.txtHost.Text.Trim();
|
||||
//newReport.Host = this.txtHost.Text.Trim();
|
||||
newReport.VerificationDate = Funs.GetNewDateTime(this.txtVerificationDate.Text);
|
||||
newReport.ConDrawingCode = txtConDrawingCode.Text.Trim();
|
||||
newReport.Personnel = this.txtPersonnel.Text;
|
||||
//newReport.Personnel = this.txtPersonnel.Text;
|
||||
newReport.Contents = this.txtContents.Text;
|
||||
newReport.Problems = this.txtProblems.Text;
|
||||
newReport.Recorder = this.txtRecorder.Text.Trim();
|
||||
//newReport.Recorder = this.txtRecorder.Text.Trim();
|
||||
newReport.RecordDate = Funs.GetNewDateTime(this.txtRecordDate.Text.Trim());
|
||||
newReport.Reviewer=this.txtReviewer.Text.Trim();
|
||||
//newReport.Reviewer=this.txtReviewer.Text.Trim();
|
||||
newReport.ReviewDate = Funs.GetNewDateTime(this.txtReviewDate.Text.Trim());
|
||||
if (!string.IsNullOrEmpty(this.ConDrawingVerificationId))
|
||||
{
|
||||
|
||||
@@ -86,15 +86,6 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProfessional;
|
||||
|
||||
/// <summary>
|
||||
/// txtHost 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHost;
|
||||
|
||||
/// <summary>
|
||||
/// txtVerificationDate 控件。
|
||||
/// </summary>
|
||||
@@ -113,15 +104,6 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtConDrawingCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtPersonnel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtPersonnel;
|
||||
|
||||
/// <summary>
|
||||
/// txtContents 控件。
|
||||
/// </summary>
|
||||
@@ -140,15 +122,6 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtProblems;
|
||||
|
||||
/// <summary>
|
||||
/// txtRecorder 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRecorder;
|
||||
|
||||
/// <summary>
|
||||
/// txtRecordDate 控件。
|
||||
/// </summary>
|
||||
@@ -158,15 +131,6 @@ namespace FineUIPro.Web.JGZL
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtRecordDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtReviewer 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtReviewer;
|
||||
|
||||
/// <summary>
|
||||
/// txtReviewDate 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -76,31 +76,15 @@ namespace FineUIPro.Web.JGZL
|
||||
}
|
||||
else
|
||||
{
|
||||
//string steNames = string.Empty;
|
||||
//List<string> steelLists = new List<string>();
|
||||
//var isoInfos = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.ProjectId select x).ToList();
|
||||
//foreach (var item in isoInfos)
|
||||
//{
|
||||
// if (!string.IsNullOrEmpty(item.STE_ID))
|
||||
// {
|
||||
// steelLists.Add(item.STE_ID);
|
||||
// }
|
||||
//}
|
||||
//foreach (var item in steelLists.Distinct())
|
||||
//{
|
||||
// var ste = BLL.HJGL_MaterialService.GetSteelBySteID(item);
|
||||
// if (ste != null)
|
||||
// {
|
||||
// steNames += ste.STE_Code + "、";
|
||||
// }
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(steNames))
|
||||
//{
|
||||
// steNames = steNames.Substring(0, steNames.LastIndexOf('、'));
|
||||
//}
|
||||
//double SumSize = Convert.ToDouble((from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == this.ProjectId select x.JOT_Size).Sum());
|
||||
this.txtContractNumber.Text = BLL.Base_ProjectService.GetProjectCode(this.ProjectId);
|
||||
this.txtSubjectMatter.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName + ",以下问题请设计单位审核:";
|
||||
int isoCount = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.ProjectId select x).Count();
|
||||
int jointCount = (from x in Funs.DB.HJGL_PW_JointInfo where x.ProjectId == this.ProjectId select x).Count();
|
||||
var project = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId);
|
||||
if (project != null)
|
||||
{
|
||||
this.txtContractNumber.Text = project.ProjectCode;
|
||||
this.txtSubjectMatter.Text = project.ProjectName + ",以下问题请设计单位审核:";
|
||||
this.txtContents.Text = "本次" + project.ProjectName + "于" + string.Format("{0:yyyy年MM月dd日}", project.StartDate) + "开工,到" + string.Format("{0:yyyy年MM月dd日}", project.EndDate) + "施工结束。该项目共计安装管道" + isoCount + "条,管道焊缝共计" + jointCount + "道,已按图纸要求的比例进行焊缝无损检测,检测结果均符合设计规定的合格等级。该项目配套的各类管道组成件、支撑件安装质量均满足设计文件以及标准规范要求。目前,管道系统已完成水压试验及压缩空气吹扫工序,试验压力降、管道洁净度等关键指标均符合标准规范的规定标准并已通过业主方验收。";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cover.aspx.cs" Inherits="FineUIPro.Web.JGZL.Cover" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>封面</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="220px" Title="封面" 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:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="封面" 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="封面"
|
||||
TitleToolTip="封面" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:TextBox ID="txtCode" runat="server" Label="卷号" LabelAlign="Right" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:Button ID="btnPrint" Text="封面打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="WindowPrint" Title="打印封面" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,146 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class Cover : PageBase
|
||||
{
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
//this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
|
||||
this.drpProjectId.DataTextField = "ProjectCode";
|
||||
this.drpProjectId.DataValueField = "ProjectId";
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
this.InitTreeMenu();//加载树
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
//this.BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "项目";
|
||||
rootNode.ToolTip = "项目";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||
}
|
||||
foreach (var item in projects)
|
||||
{
|
||||
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||
rootProjectNode.Text = item.ProjectCode;
|
||||
rootProjectNode.NodeID = item.ProjectId;
|
||||
rootProjectNode.EnableClickEvent = true;
|
||||
rootProjectNode.Expanded = true;
|
||||
rootProjectNode.ToolTip = item.ProjectName;
|
||||
rootProjectNode.CommandName = "项目名称";
|
||||
rootNode.Nodes.Add(rootProjectNode);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
//if (this.tvControlItem.SelectedNodeID != "0")
|
||||
//{
|
||||
// this.BindGrid();
|
||||
//}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
|
||||
if (projectId != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("Code", this.txtCode.Text.Trim());
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\封面.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请输入卷号!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
+134
@@ -0,0 +1,134 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class Cover
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
/// <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>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// txtCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCode;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocumentDescription.aspx.cs" Inherits="FineUIPro.Web.JGZL.DocumentDescription" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>交工技术文件说明</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
|
||||
<Items>
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="220px" Title="交工技术文件说明" 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:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" ShowHeader="false" Title="交工技术文件说明" 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="交工技术文件说明"
|
||||
TitleToolTip="交工技术文件说明" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnPrint" Text="交工技术文件说明打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true" BodyPadding="10px"
|
||||
runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtConstructionUnit" runat="server" Label="建设单位" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||
<f:TextBox ID="txtDesigningUnit" runat="server" Label="设计单位" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtTestingUnit" runat="server" Label="检测单位" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||
<f:TextBox ID="txtConstructionCompany" runat="server" Label="施工单位" LabelAlign="Right" LabelWidth="110px" MaxLength="50"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtProjectOverview" runat="server" Label="工程概况" LabelAlign="Right" LabelWidth="110px" MaxLength="2000" Height="300px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="WindowPrint" Title="打印交工技术文件说明" Hidden="true" EnableIFrame="true" EnableMaximize="false"
|
||||
Target="Top" EnableResize="true" runat="server" IsModal="true" Width="1024px"
|
||||
Height="600px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,244 @@
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlClient;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
public partial class DocumentDescription : PageBase
|
||||
{
|
||||
#region 定义变量
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
private string DocumentDescriptionId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["DocumentDescriptionId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["DocumentDescriptionId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.drpProjectId.DataTextField = "ProjectCode";
|
||||
this.drpProjectId.DataValueField = "ProjectId";
|
||||
this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
this.drpProjectId.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpProjectId);
|
||||
|
||||
this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId;
|
||||
this.InitTreeMenu();//加载树
|
||||
this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue;
|
||||
PageData();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树项目
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
TreeNode rootNode = new TreeNode();
|
||||
rootNode.Text = "项目";
|
||||
rootNode.ToolTip = "项目";
|
||||
rootNode.NodeID = "0";
|
||||
rootNode.Expanded = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
|
||||
List<Model.Base_Project> projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1");
|
||||
if (this.drpProjectId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList();
|
||||
}
|
||||
foreach (var item in projects)
|
||||
{
|
||||
TreeNode rootProjectNode = new TreeNode();//定义根节点
|
||||
rootProjectNode.Text = item.ProjectCode;
|
||||
rootProjectNode.NodeID = item.ProjectId;
|
||||
rootProjectNode.EnableClickEvent = true;
|
||||
rootProjectNode.Expanded = true;
|
||||
rootProjectNode.ToolTip = item.ProjectName;
|
||||
rootProjectNode.CommandName = "项目名称";
|
||||
rootNode.Nodes.Add(rootProjectNode);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
if (this.tvControlItem.SelectedNodeID != "0")
|
||||
{
|
||||
this.PageData();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
///<summary>
|
||||
///查询
|
||||
///</summary>
|
||||
///<param name="sender"></param>
|
||||
///<param name="e"></param>
|
||||
protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
private void PageData()
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
var report = BLL.DocumentDescriptionService.GetDocumentDescriptionByProjectId(projectId);
|
||||
if (report != null)
|
||||
{
|
||||
this.DocumentDescriptionId = report.DocumentDescriptionId;
|
||||
this.txtProjectOverview.Text = report.ProjectOverview;
|
||||
this.txtConstructionUnit.Text = report.ConstructionUnit;
|
||||
this.txtDesigningUnit.Text = report.DesigningUnit;
|
||||
this.txtTestingUnit.Text = report.TestingUnit;
|
||||
this.txtConstructionCompany.Text = report.ConstructionCompany;
|
||||
}
|
||||
else
|
||||
{
|
||||
//var project = BLL.Base_ProjectService.GetProjectByProjectId(projectId);
|
||||
//var isoLists = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(projectId);
|
||||
//string isoInfos = string.Empty;
|
||||
//foreach (var item in isoLists)
|
||||
//{
|
||||
// int hdCount = 0;
|
||||
// int gdCount = 0;
|
||||
// var joitInfos = (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == item.ISO_ID select x);
|
||||
// if (joitInfos.Count() > 0)
|
||||
// {
|
||||
// hdCount = joitInfos.Where(x => x.JOT_JointAttribute == "活动").Count();
|
||||
// gdCount = joitInfos.Where(x => x.JOT_JointAttribute == "固定").Count();
|
||||
// }
|
||||
// isoInfos += "管线编号" + item.ISO_IsoNo + ",其中活动焊口" + hdCount + "道,固定焊口" + gdCount + "道;";
|
||||
//}
|
||||
//if (!string.IsNullOrEmpty(isoInfos))
|
||||
//{
|
||||
// isoInfos = isoInfos.Substring(0, isoInfos.LastIndexOf(';'));
|
||||
//}
|
||||
//this.txtProjectOverview.Text = "本文件为" + project.ProjectName + "," + string.Format("{0:yyyy年MM月dd日}", project.StartDate) + "开工,到" + string.Format("{0:yyyy年MM月dd日}", project.EndDate) + "施工结束,主要施工内容:" + isoInfos;
|
||||
this.txtConstructionUnit.Text = "浙江石油化工有限公司";
|
||||
this.txtConstructionCompany.Text = "浙江鼎盛石化工程有限公司";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_DocumentDescriptionMenuId, BLL.Const.BtnSave))
|
||||
{
|
||||
Model.JGZL_DocumentDescription newDocumentDescription = new Model.JGZL_DocumentDescription();
|
||||
newDocumentDescription.ProjectOverview = this.txtProjectOverview.Text;
|
||||
newDocumentDescription.ConstructionUnit = this.txtConstructionUnit.Text;
|
||||
newDocumentDescription.DesigningUnit = this.txtDesigningUnit.Text;
|
||||
newDocumentDescription.TestingUnit = this.txtTestingUnit.Text;
|
||||
newDocumentDescription.ConstructionCompany = this.txtConstructionCompany.Text;
|
||||
if (!string.IsNullOrEmpty(this.DocumentDescriptionId))
|
||||
{
|
||||
newDocumentDescription.DocumentDescriptionId = this.DocumentDescriptionId;
|
||||
BLL.DocumentDescriptionService.UpdateDocumentDescription(newDocumentDescription);
|
||||
ShowNotify("修改成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
newDocumentDescription.CompileMan = this.CurrUser.UserId;
|
||||
newDocumentDescription.CompileDate = DateTime.Now;
|
||||
newDocumentDescription.Reviewer = this.CurrUser.UserId;
|
||||
newDocumentDescription.ReviewDate = DateTime.Now;
|
||||
newDocumentDescription.ProjectId = this.tvControlItem.SelectedNodeID;
|
||||
newDocumentDescription.DocumentDescriptionId = SQLHelper.GetNewID(typeof(Model.JGZL_DocumentDescription));
|
||||
this.DocumentDescriptionId = newDocumentDescription.DocumentDescriptionId;
|
||||
BLL.DocumentDescriptionService.AddDocumentDescription(newDocumentDescription);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 打印
|
||||
/// <summary>
|
||||
/// 打印
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectId = this.tvControlItem.SelectedNodeID;
|
||||
if (projectId != null)
|
||||
{
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
BLL.Common.FastReportService.ResetData();
|
||||
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("ProjectOverview", this.txtProjectOverview.Text);
|
||||
keyValuePairs.Add("ConstructionUnit", this.txtConstructionUnit.Text);
|
||||
keyValuePairs.Add("DesigningUnit", this.txtDesigningUnit.Text);
|
||||
keyValuePairs.Add("TestingUnit", this.txtTestingUnit.Text);
|
||||
keyValuePairs.Add("ConstructionCompany", this.txtConstructionCompany.Text);
|
||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||
|
||||
initTemplatePath = "File\\Fastreport\\JGZL\\交工技术文件说明.frx";
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.JGZL
|
||||
{
|
||||
|
||||
|
||||
public partial class DocumentDescription
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
/// <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>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtConstructionUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtConstructionUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtDesigningUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDesigningUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtTestingUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtTestingUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtConstructionCompany 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtConstructionCompany;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectOverview 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtProjectOverview;
|
||||
|
||||
/// <summary>
|
||||
/// WindowPrint 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowPrint;
|
||||
}
|
||||
}
|
||||
@@ -210,6 +210,37 @@ namespace FineUIPro.Web.JGZL
|
||||
var report = BLL.LeakTestOfPipelineSystemRecordService.GetLeakTestOfPipelineSystemRecordById(this.Grid1.SelectedRowID);
|
||||
if (report != null)
|
||||
{
|
||||
string strSql = @"SELECT * from JGZL_LeakTestOfPipelineSystemRecordItem where RecordId=@recordId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@recordId", this.Grid1.SelectedRowID));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "Data";
|
||||
dt.Columns.Add("PipelineNo");
|
||||
dt.Columns.Add("DesignPressure");
|
||||
dt.Columns.Add("DesignTemperature");
|
||||
dt.Columns.Add("TestTemperature");
|
||||
dt.Columns.Add("TestMediumTemperature");
|
||||
dt.Columns.Add("TestPressure");
|
||||
dt.Columns.Add("VoltageStabilizationTime");
|
||||
|
||||
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||
foreach (var row in rows)
|
||||
{
|
||||
var newRow = dt.NewRow();
|
||||
newRow["PipelineNo"] = row["PipelineNo"].ToString();
|
||||
newRow["DesignPressure"] = row["DesignPressure"].ToString();
|
||||
newRow["DesignTemperature"] = row["DesignTemperature"].ToString();
|
||||
newRow["TestTemperature"] = row["TestTemperature"].ToString();
|
||||
newRow["TestMediumTemperature"] = row["TestMediumTemperature"].ToString();
|
||||
newRow["TestPressure"] = row["TestPressure"].ToString();
|
||||
newRow["VoltageStabilizationTime"] = row["VoltageStabilizationTime"].ToString();
|
||||
dt.Rows.Add(newRow);
|
||||
}
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("SystemName", report.SystemName);
|
||||
|
||||
@@ -63,12 +63,19 @@ namespace FineUIPro.Web.JGZL
|
||||
this.txtMeasuringInstrumentsCode.Text = report.MeasuringInstrumentsCode;
|
||||
this.txtSpecification.Text = report.Specification;
|
||||
this.txtAccuracyLevel.Text = report.AccuracyLevel;
|
||||
this.txtCertificateNumber.Text =report.CertificateNumber;
|
||||
this.txtCertificateNumber.Text = report.CertificateNumber;
|
||||
this.txtVerificationDate.Text = report.VerificationDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.VerificationDate) : "";
|
||||
this.txtValidityPeriod.Text = report.ValidityPeriod;
|
||||
this.txtRemark.Text = report.Remark;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtMeasuringInstrumentsName.Text = "压力表";
|
||||
this.txtSpecification.Text = "(?-?)Mpa";
|
||||
this.txtAccuracyLevel.Text = "1.6级";
|
||||
this.txtValidityPeriod.Text = "半年";
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -210,6 +210,40 @@ namespace FineUIPro.Web.JGZL
|
||||
var report = BLL.PressureTestOfPipelineSystemRecordService.GetPressureTestOfPipelineSystemRecordById(this.Grid1.SelectedRowID);
|
||||
if (report != null)
|
||||
{
|
||||
string strSql = @"SELECT * from JGZL_PressureTestOfPipelineSystemRecordItem where RecordId=@recordId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@recordId", this.Grid1.SelectedRowID));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
DataTable dt = new DataTable();
|
||||
dt.TableName = "Data";
|
||||
dt.Columns.Add("PipelineNo");
|
||||
dt.Columns.Add("DesignPressure");
|
||||
dt.Columns.Add("DesignTemperature");
|
||||
dt.Columns.Add("TestTemperature");
|
||||
dt.Columns.Add("TestMedium");
|
||||
dt.Columns.Add("TestMediumTemperature");
|
||||
dt.Columns.Add("TestPressure");
|
||||
dt.Columns.Add("VoltageStabilizationTime");
|
||||
|
||||
DataRow[] rows = tb.DefaultView.ToTable().Select();
|
||||
foreach (var row in rows)
|
||||
{
|
||||
var newRow = dt.NewRow();
|
||||
newRow["PipelineNo"] = row["PipelineNo"].ToString();
|
||||
newRow["DesignPressure"] = row["DesignPressure"].ToString();
|
||||
newRow["DesignTemperature"] = row["DesignTemperature"].ToString();
|
||||
newRow["TestTemperature"] = row["TestTemperature"].ToString();
|
||||
newRow["TestMedium"] = row["TestMedium"].ToString();
|
||||
newRow["TestMediumTemperature"] = row["TestMediumTemperature"].ToString();
|
||||
newRow["TestPressure"] = row["TestPressure"].ToString();
|
||||
newRow["VoltageStabilizationTime"] = row["VoltageStabilizationTime"].ToString();
|
||||
dt.Rows.Add(newRow);
|
||||
}
|
||||
BLL.Common.FastReportService.AddFastreportTable(dt);
|
||||
|
||||
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||
keyValuePairs.Add("SystemName", report.SystemName);
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace FineUIPro.Web.JGZL
|
||||
else
|
||||
{
|
||||
this.txtProfessional.Text = "管道安装工程";
|
||||
this.txtConstructionStandards.Text = "SH/T 3501/2011《石油化工有毒、可燃介质钢制管道工程施工及验收规范》";
|
||||
this.txtConstructionStandards.Text = "SH/T3501-2021";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.common.BaseInfo;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -88,7 +89,21 @@ namespace FineUIPro.Web.JGZL
|
||||
else
|
||||
{
|
||||
this.txtConUnit.Text = "浙江鼎盛石化工程有限公司";
|
||||
this.txtEquipmentName.Text = "压力管道(" + BLL.Base_ProjectService.GetProjectByProjectId(ProjectId).ProjectName + ")";
|
||||
if (!string.IsNullOrEmpty(ProjectId))
|
||||
{
|
||||
var pro = BLL.Base_ProjectService.GetProjectByProjectId(ProjectId);
|
||||
if (pro != null)
|
||||
{
|
||||
this.txtEquipmentName.Text = "压力管道(" + pro.ProjectName + ")";
|
||||
this.txtEquipmentLocation.Text = pro.ProjectName;
|
||||
this.txtConstructionDate.Text = pro.StartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pro.StartDate) : "";
|
||||
this.txtLicenseNumber.Text = "TS3833339-2028";
|
||||
this.txtLicenseValidityDate.Text = string.Format("{0:yyyy-MM-dd}", "2028-8-20");
|
||||
this.txtConAddress.Text = "浙江省舟山市岱山县经济技术开发区徐福大道988号810室(岱西片区)";
|
||||
this.txtUseUnit.Text = "浙江石油化工有限公司";
|
||||
this.txtUseAddress.Text = "浙江省舟山市定海区临城街道翁山路555号大宗商品交易中心5201室(自贸试验区内)";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user