2022-11-01 焊接包装管理绑值修改,三维传参修改
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/13/2022 11:00:20" ReportInfo.Modified="10/19/2022 15:06:36" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<Report ScriptLanguage="CSharp" ReportInfo.Created="03/13/2022 11:00:20" ReportInfo.Modified="11/01/2022 16:58:33" ReportInfo.CreatorVersion="2017.1.16.0">
|
||||
<ScriptText>using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
@@ -42,7 +42,7 @@ namespace FastReport
|
||||
}
|
||||
</ScriptText>
|
||||
<Dictionary>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqvJIqZbrmqGn7L0P56UFhaUHihKXxbhpqie4wmZgM2ymDKry7UxzO5md9ybQlkfKpN2rHYbp9GtH1LDQPa7z2vVu/kEnNnTKeHt9obmaC7TQDh0IvsUBSuzhGZdfAIK7YyBqykCgeZm5rvA6K5b7zHGdA+7pUpJ/9ZLpp1NuxWRFKS+l7F0yFlJpjVuf6Gu5i"/>
|
||||
<MsSqlDataConnection Name="Connection" ConnectionString="rijcmlqvJIqZbrmqGn7L0P56UFhaUHihKXxbhpqie4wmZgM2ymDKry7UxzO5md9ybQlkfKpN2rHYbp9GtH1LDQPa7z2vVu/kEnNnTKeHt9obmaC7TQDh0IvsUBSuzhGZdfAIK7YyBqykCgeZm5rvA6K5b7zHGdA+7pUpJ/9ZLpp1NuxWRFfNnlsPZ6nuhwpLtU3gTu4"/>
|
||||
<TableDataSource Name="Data" ReferenceName="Data" DataType="System.Int32" Enabled="true">
|
||||
<Column Name="PipelineComponentId" DataType="System.String"/>
|
||||
<Column Name="PipelineComponentCode" DataType="System.String"/>
|
||||
|
||||
@@ -242,7 +242,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
colorModel = BLL.Project_SysSetService.GetColorModel(this.CurrUser.LoginProjectId);
|
||||
parameter3D.ColorModel = colorModel;
|
||||
parameter3D.TagNum = "";
|
||||
parameter3D.ButtonType = "0,2";
|
||||
parameter3D.ButtonType = "0,2.1";
|
||||
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
|
||||
parameter3D.Completed_weldedjunction = Completed_weldedjunction;
|
||||
parameter3D.Incomplete_weldjunction = Incomplete_weldjunction;
|
||||
@@ -525,7 +525,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
colorModel = BLL.Project_SysSetService.GetColorModel(this.CurrUser.LoginProjectId);
|
||||
parameter3D.ColorModel = colorModel;
|
||||
parameter3D.TagNum = pipecode;
|
||||
parameter3D.ButtonType = "0,2";
|
||||
parameter3D.ButtonType = "0,2.1";
|
||||
parameter3D.Completed_weldedjunction = Completed_weldedjunction;
|
||||
parameter3D.Incomplete_weldjunction=Incomplete_weldjunction;
|
||||
if (this.tvControlItem.SelectedNode.CommandName == "单位工程")
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
{
|
||||
public partial class PipelineQuery : PageBase
|
||||
{
|
||||
public string Completed_pipeline
|
||||
public string Line_No
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -21,17 +21,17 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
ViewState["Completed_pipeline"] = value;
|
||||
}
|
||||
}
|
||||
public string Incomplete_pipeline
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["Incomplete_pipeline"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["Incomplete_pipeline"] = value;
|
||||
}
|
||||
}
|
||||
//public string Incomplete_pipeline
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return (string)ViewState["Incomplete_pipeline"];
|
||||
// }
|
||||
// set
|
||||
// {
|
||||
// ViewState["Incomplete_pipeline"] = value;
|
||||
// }
|
||||
//}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId);
|
||||
@@ -141,8 +141,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
parameter3D.TagNum = "";
|
||||
parameter3D.ButtonType = "0,2";
|
||||
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
|
||||
parameter3D.Completed_pipeline = Completed_pipeline;
|
||||
parameter3D.Incomplete_pipeline = Incomplete_pipeline;
|
||||
parameter3D.Line_No = Line_No;
|
||||
parameter3D.Transparency = colorModel.PipelineComplete;
|
||||
parameter3D.Finished_color = colorModel.JointCompleteColor;
|
||||
parameter3D.Incomplete_color = colorModel.JointNOCompleteColor;
|
||||
@@ -226,19 +225,19 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
{
|
||||
Completed_pipelineList.Add("/" + item.PipelineCode);
|
||||
}
|
||||
Completed_pipeline = string.Join(",", Completed_pipelineList);
|
||||
Line_No = string.Join(",", Completed_pipelineList);
|
||||
}
|
||||
|
||||
var q1 = view_HJGL_Pipelines.Where(x => x.IsFinished != true);//获取未完成管线
|
||||
if (q1.Any())
|
||||
{
|
||||
List<string> Incomplete_pipelineList = new List<string>();
|
||||
foreach (var item in q1)
|
||||
{
|
||||
Incomplete_pipelineList.Add("/" + item.PipelineCode);
|
||||
}
|
||||
Incomplete_pipeline = string.Join(",", Incomplete_pipelineList);
|
||||
}
|
||||
//var q1 = view_HJGL_Pipelines.Where(x => x.IsFinished != true);//获取未完成管线
|
||||
//if (q1.Any())
|
||||
//{
|
||||
// List<string> Incomplete_pipelineList = new List<string>();
|
||||
// foreach (var item in q1)
|
||||
// {
|
||||
// Incomplete_pipelineList.Add("/" + item.PipelineCode);
|
||||
// }
|
||||
// Incomplete_pipeline = string.Join(",", Incomplete_pipelineList);
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
@@ -455,8 +454,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
||||
parameter3D.TagNum = pipecode;
|
||||
parameter3D.ButtonType = "0,2";
|
||||
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
|
||||
parameter3D.Completed_pipeline = Completed_pipeline;
|
||||
parameter3D.Incomplete_pipeline = Incomplete_pipeline;
|
||||
parameter3D.Line_No = Line_No;
|
||||
parameter3D.Transparency = colorModel.PipelineComplete;
|
||||
parameter3D.Finished_color = colorModel.JointCompleteColor;
|
||||
parameter3D.Incomplete_color = colorModel.JointNOCompleteColor;
|
||||
|
||||
@@ -33,38 +33,42 @@ namespace FineUIPro.Web.HJGL.PreDesign
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"select pack.PackagingManageId,
|
||||
pack.PackagingCode,
|
||||
com.PipelineComponentCode,
|
||||
unit.UnitWorkName,
|
||||
pipe.PlanStartDate,
|
||||
pack.ProjectId,
|
||||
pack.StackingPosition,
|
||||
pack.State,
|
||||
pack.ContactName,
|
||||
pack.ContactPhone,
|
||||
pack.ReceiveDate,
|
||||
person.PersonName
|
||||
from HJGL_PackagingManage as pack
|
||||
left join HJGL_Pipeline_Component com on com.PipelineComponentId=pack.PipelineComponentId
|
||||
left join HJGL_Pipeline pipe on pipe.PipelineId =com.PipelineId
|
||||
left join WBS_UnitWork unit on pipe.UnitWorkId=unit.UnitWorkId
|
||||
left join Person_Persons person on pack.ReceiveMan=person.PersonId
|
||||
WHERE pack.ProjectId = @ProjectId ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
if (!string.IsNullOrEmpty(this.txtPackagingCode.Text.Trim()))
|
||||
{
|
||||
strSql += " AND pack.PackagingCode LIKE @PackagingCode";
|
||||
listStr.Add(new SqlParameter("@PackagingCode", "%" + this.txtPackagingCode.Text.Trim() + "%"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
// string strSql = @"select pack.PackagingManageId,
|
||||
// pack.PackagingCode,
|
||||
// com.PipelineComponentCode,
|
||||
// unit.UnitWorkName,
|
||||
// pipe.PlanStartDate,
|
||||
// pack.ProjectId,
|
||||
// pack.StackingPosition,
|
||||
// pack.State,
|
||||
// pack.ContactName,
|
||||
// pack.ContactPhone,
|
||||
//pack.ReceiveDate,
|
||||
//person.PersonName
|
||||
// from HJGL_PackagingManage as pack
|
||||
// left join HJGL_Pipeline_Component com on com.PipelineComponentId=pack.PipelineComponentId
|
||||
// left join HJGL_Pipeline pipe on pipe.PipelineId =com.PipelineId
|
||||
// left join WBS_UnitWork unit on pipe.UnitWorkId=unit.UnitWorkId
|
||||
// left join Person_Persons person on pack.ReceiveMan=person.PersonId
|
||||
// WHERE pack.ProjectId = @ProjectId ";
|
||||
// List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
// listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
|
||||
// if (!string.IsNullOrEmpty(this.txtPackagingCode.Text.Trim()))
|
||||
// {
|
||||
// strSql += " AND pack.PackagingCode LIKE @PackagingCode";
|
||||
// listStr.Add(new SqlParameter("@PackagingCode", "%" + this.txtPackagingCode.Text.Trim() + "%"));
|
||||
// }
|
||||
// SqlParameter[] parameter = listStr.ToArray();
|
||||
// DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
//Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
//var table = this.GetPagedDataTable(Grid1, tb);
|
||||
//Grid1.DataSource = table;
|
||||
//Grid1.DataBind();
|
||||
var list= BLL.HJGL_PackagingmanageService.GetPackagingManageList(this.CurrUser.LoginProjectId, this.txtPackagingCode.Text.Trim());
|
||||
Grid1.RecordCount = list.Count;
|
||||
Grid1.DataSource = list;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user