20260413 焊工选择
This commit is contained in:
parent
11d1cc99e1
commit
2049557676
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblProjectId" runat="server" Hidden="true"></f:Label>
|
||||
<f:TextBox ID="txtWeldCode" runat="server" Label="焊工号" EmptyText="请输入焊工号"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged"></f:TextBox>
|
||||
<f:TextBox ID="txtWeldName" runat="server" Label="姓名" EmptyText="请输入焊工姓名"
|
||||
|
|
|
|||
|
|
@ -14,17 +14,17 @@ namespace FineUIPro.Web.common.ProjectSet
|
|||
/// <summary>
|
||||
/// 项目id
|
||||
/// </summary>
|
||||
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<SqlParameter> listStr = new List<SqlParameter>();
|
||||
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));
|
||||
|
|
|
|||
|
|
@ -2,16 +2,18 @@
|
|||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.common.ProjectSet {
|
||||
|
||||
|
||||
public partial class SelectWelder {
|
||||
|
||||
namespace FineUIPro.Web.common.ProjectSet
|
||||
{
|
||||
|
||||
|
||||
public partial class SelectWelder
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
|
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
|
|
@ -65,7 +67,16 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblProjectId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblProjectId;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldCode 控件。
|
||||
/// </summary>
|
||||
|
|
@ -74,7 +85,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldName 控件。
|
||||
/// </summary>
|
||||
|
|
@ -83,7 +94,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -92,7 +103,7 @@ namespace FineUIPro.Web.common.ProjectSet {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnEdit 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue