2011-10-19 焊接修改

This commit is contained in:
2022-10-19 15:49:56 +08:00
parent 6e363ef6ae
commit b7a43a4130
26 changed files with 444 additions and 265 deletions
@@ -257,6 +257,10 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
protected void btnPrint_Click(object sender, EventArgs e)
{
Print(tvControlItem.SelectedNodeID,"");
}
private void Print(string PipelineId ,string PipelineComponentId)
{
BLL.FastReportService.ResetData();
@@ -274,8 +278,12 @@ namespace FineUIPro.Web.HJGL.PreDesign
List<SqlParameter> listStr = new List<SqlParameter> { };
strSql += " AND com.PipelineId =@PipelineId";
listStr.Add(new SqlParameter("@PipelineId", this.tvControlItem.SelectedNodeID));
listStr.Add(new SqlParameter("@PipelineId", PipelineId));
if (PipelineComponentId!="")
{
strSql += " AND com.PipelineComponentId =@PipelineComponentId";
listStr.Add(new SqlParameter("@PipelineComponentId", PipelineComponentId));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
if (tb != null)
@@ -446,7 +454,6 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
return StateName;
}
protected void btnImportQRCode_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("PrePipelineQRCodeIn.aspx?", "导入 - ")));
@@ -497,10 +504,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
}
}
else if (e.CommandName == "cmd_print")
{
string Id = this.Grid1.SelectedRowID;
Print(tvControlItem.SelectedNodeID, Id);
}
}