diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs index 69e5e56..eabf459 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx.cs @@ -525,7 +525,8 @@ namespace FineUIPro.Web.HJGL.WeldingManage db.SubmitChanges(); BLL.HJGL_BO_BatchDetailService.DeleteBatchDetail(rowID); //删除批明细 BLL.HJGL_PW_JointInfoService.DeleteJointInfo(rowID); - BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊口信息"); + var jot = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(rowID); + BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "删除焊口[" + jot.JOT_JointNo + "]"); } else { diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs index 258a7c5..63548d3 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs @@ -765,7 +765,7 @@ newJointInfo.JOT_ID = SQLHelper.GetNewID(typeof(Model.HJGL_PW_JointInfo)); this.JOT_ID = newJointInfo.JOT_ID; BLL.HJGL_PW_JointInfoService.AddJointInfo(newJointInfo); - BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加焊口信息!"); + BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "添加[" + this.txtISONO.Text + "]管线下,焊口[" + newJointInfo.JOT_JointNo + "]!"); } catch { @@ -818,7 +818,7 @@ { BLL.HJGL_PW_JointInfoService.UpdateJointNoAddG(this.JOT_ID, this.ddlJointAttribute.SelectedValue, Const.Add); } - BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊口信息!"); + BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改[" + this.txtISONO.Text + "]管线下,焊口[" + newJointInfo.JOT_JointNo + "]!"); } // 更新排序字段 string strSort = @"UPDATE dbo.HJGL_PW_JointInfo SET diff --git a/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx b/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx index 41b4ab2..8e2b53e 100644 --- a/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx +++ b/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx @@ -31,6 +31,7 @@ + /// 项目id /// - public string ProjectId - { - get - { - return (string)ViewState["ProjectId"]; - } - set - { - ViewState["ProjectId"] = value; - } - } + //public string ProjectId + //{ + // get + // { + // return (string)ViewState["ProjectId"]; + // } + // set + // { + // ViewState["ProjectId"] = value; + // } + //} #endregion #region 加载 @@ -37,7 +37,8 @@ namespace FineUIPro.Web.common.ProjectSet { if (!IsPostBack) { - this.ProjectId = Request.Params["projectId"]; + this.lblProjectId.Text = Request.Params["projectId"]; + //this.ProjectId = Request.Params["projectId"]; BindGrid(); //InitTreeMenu();//加载树 } @@ -76,7 +77,7 @@ namespace FineUIPro.Web.common.ProjectSet WHERE WED_ID NOT IN(SELECT WED_ID FROM Project_Welder WHERE ProjectId =@ProjectId) AND IsOAM=1"; List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", ProjectId)); + listStr.Add(new SqlParameter("@ProjectId", this.lblProjectId.Text.Trim())); if (!string.IsNullOrEmpty(txtWeldCode.Text)) { @@ -91,7 +92,7 @@ namespace FineUIPro.Web.common.ProjectSet SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - tb = GetFilteredTable(Grid1.FilteredData, tb); + //tb = GetFilteredTable(Grid1.FilteredData, tb); Grid1.DataSource = tb; Grid1.DataBind(); } @@ -140,7 +141,7 @@ namespace FineUIPro.Web.common.ProjectSet { Model.Project_Welder newProjectWelder = new Model.Project_Welder(); newProjectWelder.WED_ID = Grid1.DataKeys[i][0].ToString(); - newProjectWelder.ProjectId = this.ProjectId; + newProjectWelder.ProjectId = this.lblProjectId.Text.Trim(); //this.ProjectId; newProjectWelder.IsSelected = true; newProjectWelder.IsApprove = true; newProjectWelder.ProjectWelderId = SQLHelper.GetNewID(typeof(Model.Project_Welder)); diff --git a/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx.designer.cs index 6b668c7..bba9c55 100644 --- a/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/common/ProjectSet/SelectWelder.aspx.designer.cs @@ -2,16 +2,18 @@ // <自动生成> // 此代码由工具生成。 // -// 对此文件的更改可能会导致不正确的行为,并且如果 -// 重新生成代码,这些更改将会丢失。 +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.common.ProjectSet { - - - public partial class SelectWelder { - +namespace FineUIPro.Web.common.ProjectSet +{ + + + public partial class SelectWelder + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelCenterRegion 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Grid1 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar3 控件。 /// @@ -65,7 +67,16 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + + /// + /// lblProjectId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblProjectId; + /// /// txtWeldCode 控件。 /// @@ -74,7 +85,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWeldCode; - + /// /// txtWeldName 控件。 /// @@ -83,7 +94,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWeldName; - + /// /// ToolbarFill1 控件。 /// @@ -92,7 +103,7 @@ namespace FineUIPro.Web.common.ProjectSet { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnEdit 控件。 ///