54 lines
2.2 KiB
C#
54 lines
2.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Data.Linq;
|
|
using System.Web.Security;
|
|
using System.Web.UI.WebControls;
|
|
using Model;
|
|
using BLL;
|
|
using System.Collections.Generic;
|
|
|
|
namespace BLL
|
|
{
|
|
public static class Common_ReportPrintService
|
|
{
|
|
public static Dictionary<string, string> PrintReport()
|
|
{
|
|
Dictionary<string, string> dic = new Dictionary<string, string>();
|
|
dic.Add("管道焊接工作记录", BLL.Const.WeldingRecordReport1);
|
|
dic.Add("管道焊接工作记录(续)", BLL.Const.WeldingRecordReport2);
|
|
dic.Add("无损检测委托书", BLL.Const.CheckTrustReport);
|
|
dic.Add("管道焊口检测委托单_福建", BLL.Const.CheckTrustReport3);
|
|
dic.Add("管道试压包一览表", BLL.Const.TestPackageReport1);
|
|
dic.Add("管道系统压力试验记录", BLL.Const.TestPackageReport2);
|
|
dic.Add("管道系统泄漏性|真空试验条件确认与试验记录", BLL.Const.TestPackageReport3);
|
|
dic.Add("管道吹扫|清洗检验记录", BLL.Const.TestPackageReport4);
|
|
dic.Add("管道无损检测结果汇总表", BLL.Const.NdtTotalReport1);
|
|
dic.Add("管道无损检测结果汇总表(续)", BLL.Const.NdtTotalReport2);
|
|
dic.Add("管道无损检测比例统计表", BLL.Const.NdtRateReport1);
|
|
|
|
return dic;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 试压包打印下拉项
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static object TestPackageSelectPrint()
|
|
{
|
|
//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;
|
|
}
|
|
}
|
|
}
|