This commit is contained in:
2025-02-14 16:48:50 +08:00
parent 86b1e8b3da
commit 6d4a7e82a7
51 changed files with 1888 additions and 339 deletions
@@ -357,6 +357,25 @@ namespace FineUIPro.Web.HJGL.WeldingManage
}
}
protected void btnBatchModity_Click(object sender, EventArgs e)
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_JointInfoMenuId, Const.BtnModify))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
string jotIdList = string.Join(",", Grid1.SelectedRowIDArray);
PageContext.RegisterStartupScript(Window9.GetShowReference(String.Format("JointInfoBatchModity.aspx?jotIdList={0}", jotIdList, "批量修改 - ")));
}
else
{
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
/// <summary>
/// 焊口信息编辑
/// </summary>
@@ -405,6 +424,49 @@ namespace FineUIPro.Web.HJGL.WeldingManage
}
}
/// <summary>
/// 试压包号同步
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuSync_Click(object sender, EventArgs e)
{
if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HJGL_PipelineManageMenuId, BLL.Const.BtnSync))
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
return;
}
string isoId = tvControlItem.SelectedNodeID;
var iso = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(isoId);
if (!string.IsNullOrEmpty(iso.PressureTestPackageNo))
{
var jotIdList = Grid1.SelectedRowIDArray;
foreach (string jotId in jotIdList)
{
Model.SGGLDB db = Funs.DB;
Model.HJGL_PW_JointInfo newJointInfo = db.HJGL_PW_JointInfo.FirstOrDefault(x => x.JOT_ID == jotId);
if (newJointInfo != null)
{
newJointInfo.PressureTestPackageNo = iso.PressureTestPackageNo;
db.SubmitChanges();
}
}
}
else
{
Alert.ShowInTop("该管线的试压包号为空,不能同步!", MessageBoxIcon.Warning);
}
}
else
{
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
}
}
/// <summary>
/// 删除按钮
/// </summary>