焊接管理,补充公司级树

This commit is contained in:
2025-04-14 15:31:57 +08:00
parent c8b553efc6
commit bb10b1f54e
111 changed files with 6980 additions and 4039 deletions
@@ -1,20 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.SqlClient;
using System.Data;
using Newtonsoft.Json.Linq;
using BLL;
using System.Text;
using System.Web;
using System.Reflection;
using System.Diagnostics;
using System.IO;
namespace FineUIPro.Web.HJGL.MaterialManage
{
public partial class ReleaseRecovery : PageBase
{
#region
/// <summary>
/// 项目主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
@@ -27,6 +38,20 @@ namespace FineUIPro.Web.HJGL.MaterialManage
{
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
////权限按钮方法
//this.GetButtonPower();
}
this.drpWeldType.DataTextField = "Text";
this.drpWeldType.DataValueField = "Value";
this.drpWeldType.DataSource = BLL.DropListService.HJGL_ConsumablesTypeList();
@@ -34,16 +59,37 @@ namespace FineUIPro.Web.HJGL.MaterialManage
Funs.FineUIPleaseSelect(this.drpWeldType);
//Funs.FineUIPleaseSelect(this.drpTeamGroup);
this.drpWelder.DataTextField = "Text";
this.drpWelder.DataValueField = "Value";
this.drpWelder.DataSource = BLL.WelderService.GetWelderCodeListByProjectId(this.CurrUser.LoginProjectId);
this.drpWelder.DataBind();
Funs.FineUIPleaseSelect(this.drpWelder);
BLL.UserService.InitUserDropDownList(this.drpStoreMan,this.CurrUser.LoginProjectId,true);
BindGrid();
}
}
private void InitDropDownList()
{
this.drpWelder.DataTextField = "Text";
this.drpWelder.DataValueField = "Value";
this.drpWelder.DataSource = BLL.WelderService.GetWelderCodeListByProjectId(this.ProjectId);
this.drpWelder.DataBind();
Funs.FineUIPleaseSelect(this.drpWelder);
BLL.UserService.InitUserDropDownList(this.drpStoreMan, this.ProjectId, true);
}
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.InitDropDownList();
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
//}
//this.GetButtonPower();
this.BindGrid();
}
#endregion
#region
@@ -52,9 +98,13 @@ namespace FineUIPro.Web.HJGL.MaterialManage
/// </summary>
private void BindGrid()
{
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
string strSql = @"SELECT * FROM Weld_View_ReleaseRecovery WHERE ProjectId=@ProjectId ";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
if (drpWelder.SelectedValue != Const._Null && drpWelder.SelectedValue != null)
{
@@ -335,7 +385,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage
protected void btnPrint2_Click(object sender, EventArgs e)
{
string projectId = this.CurrUser.LoginProjectId;
string projectId = this.ProjectId;
if (!string.IsNullOrEmpty(projectId))
{
//var project = BLL.Base_ProjectService.GetProjectByProjectId(projectId);