焊接修改
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<f:RenderField HeaderText="打印状态" ColumnID="PrintState" DataField="PrintState" SortField="PrintState"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField Width="60px" TextAlign="Center" CommandName="typePrint" Text="分类打印" />
|
||||
<f:LinkButtonField Width="60px" TextAlign="Center" CommandName="typePrint" Text="子类打印" />
|
||||
</Columns>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="试压包打印表" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="TypeInt" AllowCellEditing="true" ForceFit="true"
|
||||
DataIDField="TypeInt" AllowSorting="true" SortField="TypeInt"
|
||||
DataIDField="TypeInt" AllowSorting="true" SortField="TypeInt" EnableCheckBoxSelect="true"
|
||||
SortDirection="DESC" EnableColumnLines="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10">
|
||||
<Toolbars>
|
||||
|
||||
@@ -58,26 +58,28 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
protected void btnPrint_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.PTP_TestPackage updateTestPackage = Funs.DB.PTP_TestPackage.FirstOrDefault(x => x.PTP_ID == PTP_ID);
|
||||
|
||||
var fastReportItem = BLL.TestPackagePrintService.GetFastReportItem(updateTestPackage,Grid1.SelectedRowID,PTP_ID,this.CurrUser.LoginProjectId);
|
||||
BLL.FastReportService.ResetData();
|
||||
BLL.FastReportService.AddFastreportParameter(fastReportItem.ParameterValues);
|
||||
if (fastReportItem.DataTables!=null)
|
||||
List<Model.FastReportItem> FastReportItemList = new List<Model.FastReportItem>();
|
||||
foreach (var item in Grid1.SelectedRowIDArray)
|
||||
{
|
||||
foreach (var item in fastReportItem.DataTables)
|
||||
{
|
||||
BLL.FastReportService.AddFastreportTable(item);
|
||||
}
|
||||
var fastReportItem = BLL.TestPackagePrintService.GetFastReportItem(updateTestPackage, item, PTP_ID, this.CurrUser.LoginProjectId);
|
||||
FastReportItemList.Add(fastReportItem);
|
||||
TestPackagePrintService.AddPrintCountByTypeInt(PTP_ID, int.Parse(item)); //增加打印次数
|
||||
}
|
||||
string initTemplatePath = "";
|
||||
string rootPath = Server.MapPath("~/");
|
||||
initTemplatePath = fastReportItem.ReportPath;
|
||||
|
||||
if (File.Exists(rootPath + initTemplatePath))
|
||||
{
|
||||
TestPackagePrintService.AddPrintCountByTypeInt(PTP_ID, int.Parse( Grid1.SelectedRowID));
|
||||
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("~/Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath)));
|
||||
}
|
||||
}
|
||||
// 在文件名中加入时间戳,例如:PTP_ID_2025-09-17-14-30-00.pdf
|
||||
string timeStamp = DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss");
|
||||
string fileName = $"{PTP_ID}_{timeStamp}.pdf";
|
||||
string filePath = System.IO.Path.Combine(Funs.RootPath, "FileUpload", fileName);
|
||||
BLL.FastReportService.ExportMergeReport(FastReportItemList, filePath, "1");
|
||||
FileInfo info = new FileInfo(filePath);
|
||||
long fileSize = info.Length;
|
||||
System.Web.HttpContext.Current.Response.Clear();
|
||||
System.Web.HttpContext.Current.Response.ContentType = "application/x-zip-compressed";
|
||||
System.Web.HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode("试压包资料子类.pdf", System.Text.Encoding.UTF8));
|
||||
System.Web.HttpContext.Current.Response.AddHeader("Content-Length", fileSize.ToString());
|
||||
System.Web.HttpContext.Current.Response.TransmitFile(filePath, 0, fileSize);
|
||||
System.Web.HttpContext.Current.Response.Flush();
|
||||
System.Web.HttpContext.Current.Response.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -37,9 +37,9 @@
|
||||
<f:Panel ID="Panel2" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="Region" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Panel ID="panelTopRegion" runat="server" RegionPosition="Center" ShowBorder="true"
|
||||
<f:Panel ID="panelTopRegion" runat="server" RegionPosition="Center" ShowBorder="true" EnableCollapse="true"
|
||||
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="三维模型"
|
||||
TitleToolTip="三维模型显示" AutoScroll="true" RegionPercent="70%">
|
||||
TitleToolTip="三维模型显示" AutoScroll="true" RegionPercent="30%">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true"
|
||||
BodyPadding="0px">
|
||||
@@ -50,7 +50,7 @@
|
||||
</f:Panel>
|
||||
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Bottom" RegionSplit="true" EnableCollapse="true" ShowBorder="true"
|
||||
Layout="Fit" ShowHeader="false" RegionSplitWidth="20px" BodyPadding="1px" Height="400px" IconFont="PlusCircle" Title="试压包"
|
||||
TitleToolTip="试压包" AutoScroll="true" RegionPercent="30%">
|
||||
TitleToolTip="试压包" AutoScroll="true" RegionPercent="70%">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" Title="试压包明细" EnableCollapse="true" Collapsed="false"
|
||||
runat="server" BoxFlex="1" DataKeyNames="PT_PipeId" AllowCellEditing="true" OnRowClick="Grid1_RowClick" EnableRowClickEvent="true"
|
||||
@@ -72,7 +72,7 @@
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:WindowField ColumnID="myWindowField1" Width="160px" WindowID="Window1" HeaderText="管线编号"
|
||||
<f:WindowField ColumnID="myWindowField1" Width="160px" WindowID="Window3" HeaderText="管线编号"
|
||||
Text="编辑" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="PipelineId" DataTextField="PipelineCode"
|
||||
DataIFrameUrlFormatString="../WeldingManage/PipelineEdit.aspx?PipelineId={0}" DataWindowTitleField="PipelineCode"
|
||||
DataWindowTitleFormatString="编辑 - {0}" />
|
||||
@@ -121,6 +121,10 @@
|
||||
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
|
||||
IsModal="true" Width="1024px" Height="900px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window3" Title="管线信息维护" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Top" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1280px" Height="700px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuImport" EnablePostBack="true" runat="server" Text="导入" Icon="PageExcel" OnClick="btnMenuImport_Click" >
|
||||
|
||||
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
|
||||
|
||||
public partial class TestPackageEdit {
|
||||
|
||||
namespace FineUIPro.Web.HJGL.TestPackage
|
||||
{
|
||||
|
||||
|
||||
public partial class TestPackageEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Head1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCode 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdPTP_ID 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdPTP_ID;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel2 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelTopRegion 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelTopRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ctlAuditFlow 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Web.Controls._3DLook ctlAuditFlow;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestPackageNo 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTestPackageNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtTestPackageName 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +166,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtTestPackageName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +175,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtadjustTestPressure 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +184,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtadjustTestPressure;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +193,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +202,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +211,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +220,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
@@ -227,7 +229,16 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window3;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
@@ -236,7 +247,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuImport 控件。
|
||||
/// </summary>
|
||||
@@ -245,7 +256,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuImport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuNew 控件。
|
||||
/// </summary>
|
||||
@@ -254,7 +265,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
@@ -263,7 +274,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuSee 控件。
|
||||
/// </summary>
|
||||
@@ -272,7 +283,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuSee;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDel 控件。
|
||||
/// </summary>
|
||||
@@ -281,7 +292,7 @@ namespace FineUIPro.Web.HJGL.TestPackage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnPrinterAll 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -194,9 +194,9 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
pipeline.UnitId = unitWork.UnitId;
|
||||
}
|
||||
|
||||
if (pds[i].A != null)
|
||||
if (pds[i].B != null)
|
||||
{
|
||||
string col0 = pds[i].A.ToString();
|
||||
string col0 = pds[i].B.ToString();
|
||||
if (string.IsNullOrEmpty(col0))
|
||||
{
|
||||
result.Add("第" + (i + 1).ToString() + "行," + "试压包编号" + "," + "此项为必填项!" + "|");
|
||||
@@ -210,21 +210,21 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
{
|
||||
result.Add("第" + (i + 1).ToString() + "行," + "试压包编号" + "," + "此项为必填项!" + "|");
|
||||
}
|
||||
if (pds[i].B != null)
|
||||
{
|
||||
pipeline.TestPackageName = pds[i].B.ToString();//系统名称
|
||||
}
|
||||
if (pds[i].C != null)
|
||||
{
|
||||
pipeline.AdjustTestPressure = pds[i].C.ToString();//调整试验压力
|
||||
pipeline.TestPackageName = pds[i].C.ToString();//系统名称
|
||||
}
|
||||
if (pds[i].D != null)
|
||||
{
|
||||
pipeline.Remark = pds[i].D.ToString(); //备注
|
||||
pipeline.AdjustTestPressure = pds[i].D.ToString();//调整试验压力
|
||||
}
|
||||
if (pds[i].E != null) //管线号
|
||||
if (pds[i].E != null)
|
||||
{
|
||||
string col2 = pds[i].E.ToString();
|
||||
pipeline.Remark = pds[i].E.ToString(); //备注
|
||||
}
|
||||
if (pds[i].F != null) //管线号
|
||||
{
|
||||
string col2 = pds[i].F.ToString();
|
||||
if (string.IsNullOrEmpty(col2))
|
||||
{
|
||||
result.Add("第" + (i + 1).ToString() + "行," + "管线号" + "," + "此项为必填项!" + "|");
|
||||
@@ -532,9 +532,24 @@ namespace FineUIPro.Web.HJGL.TestPackage
|
||||
x.TestPressure
|
||||
};
|
||||
|
||||
// materialize and add sequence number
|
||||
var list = queryList.ToList();
|
||||
var indexed = list.Select((x, idx) => new
|
||||
{
|
||||
No = idx + 1,
|
||||
x.PipelineId,
|
||||
x.PipelineCode,
|
||||
x.PipingClassCode,
|
||||
x.MediumName,
|
||||
x.DesignPress,
|
||||
x.DesignTemperature,
|
||||
x.TestMediumCode,
|
||||
x.TestPressure
|
||||
}).ToList();
|
||||
|
||||
var value = new
|
||||
{
|
||||
model = queryList.ToList()
|
||||
model = indexed
|
||||
};
|
||||
MiniExcel.SaveAsByTemplate(path, uploadfilepath, value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user