2023-10-09
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using FineUIPro.Web.HSSE.Meeting;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -22,7 +23,18 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
ViewState["PipelineId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string WeldJointId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["WeldJointId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["WeldJointId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -52,7 +64,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
this.drpDetectionTypeId.DataTextField = "DetectionTypeCode";
|
||||
//Funs.FineUIPleaseSelect(this.drpDetectionTypeId);
|
||||
string flag = Request.Params["flag"];
|
||||
string weldJointId = Request.Params["WeldJointId"];
|
||||
WeldJointId = Request.Params["WeldJointId"];
|
||||
string isTwoJoint = Request.Params["IsTwoJoint"];
|
||||
|
||||
|
||||
@@ -66,9 +78,9 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
GroupPanel2.Hidden = true;
|
||||
IsReadOnly(false);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(weldJointId))
|
||||
if (!string.IsNullOrEmpty(WeldJointId))
|
||||
{
|
||||
Model.HJGL_WeldJoint joint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId);
|
||||
Model.HJGL_WeldJoint joint = BLL.WeldJointService.GetWeldJointByWeldJointId(WeldJointId);
|
||||
Model.WPQ_WPQList list = BLL.WPQListServiceService.GetWPQById(joint.WPQId);
|
||||
this.txtWpqId.Text = joint.WPQId;
|
||||
|
||||
@@ -82,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
}
|
||||
if (Request.Params["Type"] == "add") //插入焊口
|
||||
{
|
||||
var baseWeldJoints = BLL.WeldJointService.GetBaseWeldJointsByWeldJointId(weldJointId);
|
||||
var baseWeldJoints = BLL.WeldJointService.GetBaseWeldJointsByWeldJointId(WeldJointId);
|
||||
this.txtWeldJointCode.Text = joint.WeldJointCode + "Z-" + (baseWeldJoints.Count + 1).ToString();
|
||||
}
|
||||
else
|
||||
@@ -287,7 +299,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
weldJointCode = this.txtWeldJointCode.Text;
|
||||
}
|
||||
|
||||
if (BLL.WeldJointService.IsExistWeldJointCode(weldJointCode, this.PipelineId, Request.Params["WeldJointId"]))
|
||||
if (BLL.WeldJointService.IsExistWeldJointCode(weldJointCode, this.PipelineId, WeldJointId))
|
||||
{
|
||||
Alert.ShowInTop("该管线焊口已存在!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
@@ -318,7 +330,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
return;
|
||||
}
|
||||
Model.HJGL_WeldJoint joint = new Model.HJGL_WeldJoint();
|
||||
string weldJointId = Request.Params["WeldJointId"];
|
||||
string weldJointId = WeldJointId;
|
||||
joint.PipelineId = this.PipelineId;
|
||||
joint.PipelineCode = txtPipelineCode.Text.Trim();
|
||||
joint.ProjectId = this.CurrUser.LoginProjectId;
|
||||
@@ -435,6 +447,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
string newId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint));
|
||||
joint.WeldJointId = newId;
|
||||
joint.BaseWeldJointId = weldJointId;
|
||||
WeldJointId = joint.WeldJointId;
|
||||
BLL.WeldJointService.AddWeldJoint(joint);
|
||||
}
|
||||
}
|
||||
@@ -442,6 +455,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
{
|
||||
string newId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint));
|
||||
joint.WeldJointId = newId;
|
||||
WeldJointId = joint.WeldJointId;
|
||||
if (Request.Params["IsTwoJoint"] == "1")
|
||||
{
|
||||
joint.IsTwoJoint = true;
|
||||
@@ -854,5 +868,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.WeldJointId))
|
||||
{
|
||||
SaveData();
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/WeldJoint&menuId={1}", WeldJointId, BLL.Const.HJGL_WeldJointMenuId)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user