20250926 排产计划生产看板

This commit is contained in:
2025-09-26 15:51:57 +08:00
parent 6e6f3d42fd
commit 75b7d05596
5 changed files with 357 additions and 131 deletions
@@ -23,14 +23,23 @@ namespace FineUIPro.Web.HJGL.PreDesign
{
public int pageSize = 20;
public static DataTable GridDataTable = new DataTable();
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
this.InitTreeMenu();//加载树
BindGrid2();//绑定看板数据
}
}
#endregion
#region --
/// <summary>
@@ -185,6 +194,13 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
#endregion
#region
/// <summary>
/// 树节点展开事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tvControlItem_TreeNodeExpanded(object sender, TreeNodeEventArgs e)
{
if (e.Node.Nodes[0].NodeID == "加载流水段...")
@@ -194,6 +210,8 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
}
#endregion
#region TreeView
/// <summary>
/// 点击TreeView
@@ -202,16 +220,6 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// <param name="e"></param>
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
{
//if (e.CommandName == "流水段")
//{
// Model.HJGL_Pipeline pipeline = BLL.PipelineService.GetPipelineByFlowingSection(this.tvControlItem.SelectedNode.Text);
// this.hdUnitWorkId.Text = string.Empty;
// if (pipeline != null)
// {
// this.hdUnitWorkId.Text = this.tvControlItem.SelectedNode.ParentNode.NodeID;
// SaveProductionSchedulingPlan();
// }
//}
this.BindGrid();
}
@@ -912,5 +920,30 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
}
#endregion
#region
protected void ddlPageSize2_SelectedIndexChanged(object sender, EventArgs e)
{
this.BindGrid2();
}
/// <summary>
/// 绑定数据
/// </summary>
private void BindGrid2()
{
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunProc("Sp_HJGL_ProductionPlanStatistics", parameter);
this.Grid2.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid2, tb);
Grid2.DataSource = table;
Grid2.DataBind();
}
#endregion
}
}