2022-10-28 焊接修改

This commit is contained in:
李鹏飞 2022-10-28 17:01:51 +08:00
parent ad64ffcd11
commit a4546bb5ce
14 changed files with 162 additions and 85 deletions

View File

@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}

View File

@ -170,7 +170,9 @@ namespace BLL
{ {
string result = ""; string result = "";
var q = (from x in Funs.DB.HJGL_DataImport var q = (from x in Funs.DB.HJGL_DataImport
where x.UnitWorkId == UnitWorkId && x.ImportType == "1" join y in Funs.DB.Base_DesignProfessional on x.DesignProfessionalId equals y.DesignProfessionalId into mm
from m in mm.DefaultIfEmpty()
where x.UnitWorkId == UnitWorkId && x.ImportType == "1" && m.ProfessionalName.Contains("管道")
group x by x.UnitWorkId into tt group x by x.UnitWorkId into tt
from t in tt.DefaultIfEmpty() from t in tt.DefaultIfEmpty()
select new select new

File diff suppressed because one or more lines are too long

View File

@ -35,8 +35,9 @@ namespace FineUIPro.Web.HJGL.DataImport
rootNode1.NodeID = "1"; rootNode1.NodeID = "1";
rootNode1.Text = "建筑工程"; rootNode1.Text = "建筑工程";
rootNode1.CommandName = "建筑工程"; rootNode1.CommandName = "建筑工程";
rootNode1.EnableClickEvent = true; //rootNode1.EnableClickEvent = true;
rootNode1.EnableCollapseEvent = true; //rootNode1.EnableCollapseEvent = true;
rootNode1.Selectable = false;
this.tvControlItem.Nodes.Add(rootNode1); this.tvControlItem.Nodes.Add(rootNode1);
TreeNode rootNode2 = new TreeNode(); TreeNode rootNode2 = new TreeNode();

View File

@ -262,6 +262,10 @@ namespace FineUIPro.Web.HJGL.InfoQuery
} }
} }
parameter3D.Transparency = colorModel.PipelineComplete;
parameter3D.Finished_color = colorModel.JointCompleteColor;
parameter3D.Incomplete_color = colorModel.JointNOCompleteColor;
ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C" + parameter3D.ModelName; ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C" + parameter3D.ModelName;
ctlAuditFlow.data = parameter3D; ctlAuditFlow.data = parameter3D;
ctlAuditFlow.BindData(); ctlAuditFlow.BindData();
@ -539,6 +543,9 @@ namespace FineUIPro.Web.HJGL.InfoQuery
} }
} }
parameter3D.Transparency = colorModel.PipelineComplete;
parameter3D.Finished_color = colorModel.JointCompleteColor;
parameter3D.Incomplete_color = colorModel.JointNOCompleteColor;
ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C" + parameter3D.ModelName; ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C" + parameter3D.ModelName;
ctlAuditFlow.data = parameter3D; ctlAuditFlow.data = parameter3D;
ctlAuditFlow.BindData(); ctlAuditFlow.BindData();

View File

@ -143,6 +143,9 @@ namespace FineUIPro.Web.HJGL.InfoQuery
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID); parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
parameter3D.Completed_pipeline = Completed_pipeline; parameter3D.Completed_pipeline = Completed_pipeline;
parameter3D.Incomplete_pipeline = Incomplete_pipeline; parameter3D.Incomplete_pipeline = Incomplete_pipeline;
parameter3D.Transparency = colorModel.PipelineComplete;
parameter3D.Finished_color = colorModel.JointCompleteColor;
parameter3D.Incomplete_color = colorModel.JointNOCompleteColor;
ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C"+ parameter3D.ModelName; ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C"+ parameter3D.ModelName;
ctlAuditFlow.data = parameter3D; ctlAuditFlow.data = parameter3D;
@ -454,6 +457,9 @@ namespace FineUIPro.Web.HJGL.InfoQuery
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID); parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
parameter3D.Completed_pipeline = Completed_pipeline; parameter3D.Completed_pipeline = Completed_pipeline;
parameter3D.Incomplete_pipeline = Incomplete_pipeline; parameter3D.Incomplete_pipeline = Incomplete_pipeline;
parameter3D.Transparency = colorModel.PipelineComplete;
parameter3D.Finished_color = colorModel.JointCompleteColor;
parameter3D.Incomplete_color = colorModel.JointNOCompleteColor;
ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C" + parameter3D.ModelName; ctlAuditFlow.Url_item = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId) + "item/IPE%7CVPD%7C" + parameter3D.ModelName;
ctlAuditFlow.data = parameter3D; ctlAuditFlow.data = parameter3D;

View File

@ -267,13 +267,14 @@ namespace FineUIPro.Web.HJGL.PreDesign
string strSql = @" SELECT com.PipelineComponentId,com.PipelineComponentCode,com.BoxNumber,unitwork.UnitWorkName, string strSql = @" SELECT com.PipelineComponentId,com.PipelineComponentCode,com.BoxNumber,unitwork.UnitWorkName,
com.PipelineId, punit.UnitName AS PreUnit,aunit.UnitName AS AssembleUnit,mat.PrefabricatedComponents, com.PipelineId, punit.UnitName AS PreUnit,aunit.UnitName AS AssembleUnit,mat.PrefabricatedComponents,
com.QRCode,com.State,CONVERT(varchar(100), pipe.PlanStartDate, 23) as PlanStartDate,pipe.PipelineCode, com.QRCode,com.State,CONVERT(varchar(100), pipe.PlanStartDate, 23) as PlanStartDate,pipe.PipelineCode,
('PrePipeline$'+com.PipelineComponentId )as QRCode2 ('PrePipeline$'+com.PipelineComponentId )as QRCode2,mater.*
FROM HJGL_Pipeline_Component com FROM HJGL_Pipeline_Component com
LEFT JOIN HJGL_PipeLineMat mat ON mat.PipeLineMatId=com.PipeLineMatId LEFT JOIN HJGL_PipeLineMat mat ON mat.PipeLineMatId=com.PipeLineMatId
LEFT JOIN HJGL_Pipeline pipe ON pipe.PipelineId =com.PipelineId LEFT JOIN HJGL_Pipeline pipe ON pipe.PipelineId =com.PipelineId
LEFT JOIN dbo.Base_Unit punit ON punit.UnitId=com.PreUnit LEFT JOIN dbo.Base_Unit punit ON punit.UnitId=com.PreUnit
LEFT JOIN dbo.Base_Unit aunit ON aunit.UnitId=com.AssembleUnit LEFT JOIN dbo.Base_Unit aunit ON aunit.UnitId=com.AssembleUnit
LEFT JOIN dbo.WBS_UnitWork unitwork on pipe.UnitWorkId=unitwork.UnitWorkId LEFT JOIN dbo.WBS_UnitWork unitwork on pipe.UnitWorkId=unitwork.UnitWorkId
LEFT JOIN dbo.Base_Material AS mater ON mater.MaterialId=pipe.MaterialId
WHERE com.QRCode!=''"; WHERE com.QRCode!=''";
List<SqlParameter> listStr = new List<SqlParameter> { }; List<SqlParameter> listStr = new List<SqlParameter> { };

View File

@ -25,6 +25,17 @@ namespace FineUIPro.Web.HJGL.TestPackage
ViewState["PTP_ID"] = value; ViewState["PTP_ID"] = value;
} }
} }
public string Line_No
{
get
{
return (string)ViewState["Line_No"];
}
set
{
ViewState["Line_No"] = value;
}
}
#endregion #endregion
#region #region
@ -226,6 +237,8 @@ namespace FineUIPro.Web.HJGL.TestPackage
parameter3D.ColorModel = colorModel; parameter3D.ColorModel = colorModel;
parameter3D.TagNum = ""; parameter3D.TagNum = "";
parameter3D.ButtonType = "0,4"; parameter3D.ButtonType = "0,4";
parameter3D.Line_No = Line_No;
if (this.tvControlItem.SelectedNode.CommandName == "单位工程") if (this.tvControlItem.SelectedNode.CommandName == "单位工程")
{ {
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID); parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);
@ -235,6 +248,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
else if (this.tvControlItem.SelectedNode.CommandName == "TestPackage") else if (this.tvControlItem.SelectedNode.CommandName == "TestPackage")
{ {
var testPackageManage = BLL.TestPackageEditService.GetTestPackageByID(this.PTP_ID); var testPackageManage = BLL.TestPackageEditService.GetTestPackageByID(this.PTP_ID);
if (testPackageManage != null && !string.IsNullOrEmpty(testPackageManage.UnitWorkId)) if (testPackageManage != null && !string.IsNullOrEmpty(testPackageManage.UnitWorkId))
{ {
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(testPackageManage.UnitWorkId); parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(testPackageManage.UnitWorkId);
@ -273,6 +287,16 @@ namespace FineUIPro.Web.HJGL.TestPackage
var table = this.GetPagedDataTable(Grid1, tb); var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table; Grid1.DataSource = table;
Grid1.DataBind(); Grid1.DataBind();
var testpipedetail = BLL.TestPackageEditService.GetPipeLineListByPTP_ID(this.PTP_ID);
if (testpipedetail != null && testpipedetail.Count > 0)
{
List<string> listpipecode = new List<string>();
foreach (var item in testpipedetail)
{
listpipecode.Add("/" + item.PipelineCode);
}
Line_No = string.Join(",", listpipecode);
}
} }
#region #region
@ -555,6 +579,7 @@ namespace FineUIPro.Web.HJGL.TestPackage
parameter3D.ColorModel = colorModel; parameter3D.ColorModel = colorModel;
parameter3D.TagNum = pipecode; parameter3D.TagNum = pipecode;
parameter3D.ButtonType = "0,4"; parameter3D.ButtonType = "0,4";
parameter3D.Line_No = Line_No;
if (this.tvControlItem.SelectedNode.CommandName == "单位工程") if (this.tvControlItem.SelectedNode.CommandName == "单位工程")
{ {
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID); parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(tvControlItem.SelectedNodeID);

View File

@ -61,9 +61,9 @@
CompareMessage="止数应大于等于起数" CompareOperator="GreaterThanEqual" CompareMessage="止数应大于等于起数" CompareOperator="GreaterThanEqual"
ShowRedStar="true" Required="true" LabelWidth="100px"> ShowRedStar="true" Required="true" LabelWidth="100px">
</f:NumberBox> </f:NumberBox>
<f:TextBox ID="txtZhanwei" <%-- <f:TextBox ID="txtZhanwei"
runat="server" LabelWidth="100px" Hidden="true"> runat="server" LabelWidth="100px" Hidden="true">
</f:TextBox> </f:TextBox>--%>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow> <f:FormRow>

View File

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.HJGL.WeldingManage { namespace FineUIPro.Web.HJGL.WeldingManage
{
public partial class WeldJointBatchEdit { public partial class WeldJointBatchEdit
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -138,15 +140,6 @@ namespace FineUIPro.Web.HJGL.WeldingManage {
/// </remarks> /// </remarks>
protected global::FineUIPro.NumberBox txtWeldJointCode2; protected global::FineUIPro.NumberBox txtWeldJointCode2;
/// <summary>
/// txtZhanwei 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtZhanwei;
/// <summary> /// <summary>
/// drpMaterial1 控件。 /// drpMaterial1 控件。
/// </summary> /// </summary>

View File

@ -20,6 +20,17 @@ namespace FineUIPro.Web.HJGL.WeldingManage
ViewState["PipeArea"] = value; ViewState["PipeArea"] = value;
} }
} }
public string Line_No
{
get
{
return (string)ViewState["Line_No"];
}
set
{
ViewState["Line_No"] = value;
}
}
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId); ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId);
@ -260,6 +271,12 @@ namespace FineUIPro.Web.HJGL.WeldingManage
var model = PipelineService.GetPipelineByPipelineId(tvControlItem.SelectedNodeID); var model = PipelineService.GetPipelineByPipelineId(tvControlItem.SelectedNodeID);
if (model != null && !string.IsNullOrEmpty(model.UnitWorkId)) if (model != null && !string.IsNullOrEmpty(model.UnitWorkId))
{ {
bool istrue = BLL.HJGL_MaterialService.isInStockByPipeline(tvControlItem.SelectedNodeID, this.CurrUser.LoginProjectId);
if (istrue)
{
Line_No = model.PipelineCode;
}
parameter3D.Line_No = Line_No;
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(model.UnitWorkId); parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(model.UnitWorkId);
} }
@ -356,6 +373,12 @@ namespace FineUIPro.Web.HJGL.WeldingManage
var modelpipe = PipelineService.GetPipelineByPipelineId(tvControlItem.SelectedNodeID); var modelpipe = PipelineService.GetPipelineByPipelineId(tvControlItem.SelectedNodeID);
if (modelpipe != null && !string.IsNullOrEmpty(modelpipe.UnitWorkId)) if (modelpipe != null && !string.IsNullOrEmpty(modelpipe.UnitWorkId))
{ {
bool istrue = BLL.HJGL_MaterialService.isInStockByPipeline(tvControlItem.SelectedNodeID, this.CurrUser.LoginProjectId);
if (istrue)
{
Line_No = modelpipe.PipelineCode;
}
parameter3D.Line_No = Line_No;
parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(modelpipe.UnitWorkId); parameter3D.ModelName = HJGL_DataImportService.Getlatest3DModelNameByUnitWorkId(modelpipe.UnitWorkId);
var pipecode = "/" + modelpipe.PipelineCode; var pipecode = "/" + modelpipe.PipelineCode;
parameter3D.TagNum = pipecode; parameter3D.TagNum = pipecode;

View File

@ -102,22 +102,22 @@
<Rows> <Rows>
<f:FormRow runat="server"> <f:FormRow runat="server">
<Items> <Items>
<f:NumberBox ID="txtPipelineNOComplete" Label="管线未完成(透明显示)" runat="server" MaxValue="100" <f:NumberBox ID="txtPipelineNOComplete" Label="未完成(透明显示)" runat="server" MaxValue="100"
LabelWidth="180px" NoNegative="true" NoDecimal="true"> LabelWidth="180px" NoNegative="true" NoDecimal="true">
</f:NumberBox> </f:NumberBox>
<f:NumberBox ID="txtPipelineComplete" Label="管线已完成(透明显示)" runat="server" MaxValue="100" <f:NumberBox ID="txtPipelineComplete" Label="已完成(透明显示)" runat="server" MaxValue="100"
LabelWidth="180px" NoNegative="true" NoDecimal="true"> LabelWidth="180px" NoNegative="true" NoDecimal="true">
</f:NumberBox> </f:NumberBox>
</Items> </Items>
</f:FormRow> </f:FormRow>
<f:FormRow runat="server"> <f:FormRow runat="server">
<Items> <Items>
<f:DropDownList ID="drpJointNOCompleteColor" Label="焊口未完成" runat="server" LabelWidth="180px"> <f:DropDownList ID="drpJointNOCompleteColor" Label="未完成(颜色)" runat="server" LabelWidth="180px">
<f:ListItem Value="#FF0000" Text="红" /> <f:ListItem Value="#FF0000" Text="红" />
<f:ListItem Value="#FFFF00" Text="黄" /> <f:ListItem Value="#FFFF00" Text="黄" />
<f:ListItem Value="#00FF00" Text="绿" /> <f:ListItem Value="#00FF00" Text="绿" />
</f:DropDownList> </f:DropDownList>
<f:DropDownList ID="drpJointCompleteColor" Label="焊口已完成" runat="server" <f:DropDownList ID="drpJointCompleteColor" Label="已完成(颜色)" runat="server"
ShowRedStar="true" Required="true" LabelWidth="180px"> ShowRedStar="true" Required="true" LabelWidth="180px">
<f:ListItem Value="#FF0000" Text="红" /> <f:ListItem Value="#FF0000" Text="红" />
<f:ListItem Value="#FFFF00" Text="黄" /> <f:ListItem Value="#FFFF00" Text="黄" />

View File

@ -705,12 +705,12 @@
// refreshWhenExist 添加选项卡时如果选项卡已经存在是否刷新内部IFrame // refreshWhenExist 添加选项卡时如果选项卡已经存在是否刷新内部IFrame
// refreshWhenTabChange: 切换选项卡时是否刷新内部IFrame // refreshWhenTabChange: 切换选项卡时是否刷新内部IFrame
F.initTreeTabStrip(mainMenu, mainTabStrip, true, false, false); F.initTreeTabStrip(mainMenu, mainTabStrip, true, false, false);
var themeTitle = F.cookie('Theme_Pro_Title'); //var themeTitle = F.cookie('Theme_Pro_Title');
var themeName = F.cookie('Theme_Pro'); //var themeName = F.cookie('Theme_Pro');
if (themeTitle) { //if (themeTitle) {
F.removeCookie('Theme_Pro_Title'); // F.removeCookie('Theme_Pro_Title');
//notify('主题更改为:' + themeTitle + '' + themeName + ''); // //notify('主题更改为:' + themeTitle + '' + themeName + '');
} //}
}); });
</script> </script>

View File

@ -37,6 +37,18 @@ namespace Model
/// </summary> /// </summary>
public string Incomplete_weldjunction { get; set; } public string Incomplete_weldjunction { get; set; }
/// <summary> /// <summary>
/// 透明度
/// </summary>
public string Transparency { get; set; }
/// <summary>
/// 已完成颜色
/// </summary>
public string Finished_color { get; set; }
/// <summary>
/// 未完成颜色
/// </summary>
public string Incomplete_color { get; set; }
/// <summary>
/// 颜色模型 /// 颜色模型
/// </summary> /// </summary>
public ColorModel ColorModel { get; set; } public ColorModel ColorModel { get; set; }