feat:增加根据选择是否需要材料炉批号进行管控

This commit is contained in:
2026-09-28 13:41:22 +08:00
parent 2105a7c6d6
commit 01ae65b8ab
31 changed files with 526 additions and 173 deletions
@@ -17,6 +17,7 @@ namespace FineUIPro.Web.HJGL.BaseInfo
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
ConfigureMaterialBatchColumns(Grid1);
if (!IsPostBack)
{
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
@@ -35,6 +36,10 @@ namespace FineUIPro.Web.HJGL.BaseInfo
string strSql = @" SELECT * FROM dbo.HJGL_MaterialCodeLib
WHERE 1=1";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!BLL.Project_SysSetService.UsesMaterialBatchNumber(this.CurrUser.LoginProjectId))
{
strSql += " AND MaterialCode = Code";
}
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
{
@@ -269,4 +274,4 @@ namespace FineUIPro.Web.HJGL.BaseInfo
}
#endregion
}
}
}