feat:增加根据选择是否需要材料炉批号进行管控
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user