20260202 交工资料
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user