merge: 将 fea-mat 合并到 master

合入材料炉批号开关、项目设置精简及任务单条件提示,保留 master 的材料数量编辑、单位工程排序和材料匹配优先顺序。
This commit is contained in:
2026-10-17 23:30:07 +08:00
31 changed files with 561 additions and 465 deletions
@@ -23,15 +23,22 @@ namespace FineUIPro.Web.HJGL.DataImport
protected void Page_Load(object sender, EventArgs e)
{
bool usesMaterialBatch = BLL.Project_SysSetService.UsesMaterialBatchNumber(this.CurrUser.LoginProjectId);
this.txtHeatNo.Readonly = true;
this.txtBatchNo.Readonly = true;
this.drpMainMaterialCode.Hidden = !usesMaterialBatch;
this.txtHeatNo.Hidden = !usesMaterialBatch;
this.txtBatchNo.Hidden = !usesMaterialBatch;
if (!IsPostBack)
{
btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.PipeLineMatId = Request.Params["PipeLineMatId"];
BindMainMaterialCodes();
if (usesMaterialBatch)
{
BindMainMaterialCodes();
}
Model.HJGL_PipeLineMat pipeLineMat = PipelineMatService.GetPipeLineMat(this.PipeLineMatId);
if (pipeLineMat == null)
@@ -121,6 +128,19 @@ namespace FineUIPro.Web.HJGL.DataImport
}
string mainMaterialCode = GetMainMaterialCode();
bool usesMaterialBatch = BLL.Project_SysSetService.UsesMaterialBatchNumber(this.CurrUser.LoginProjectId);
string materialCode = this.txtMaterialCode.Text.Trim();
if (!usesMaterialBatch)
{
Model.HJGL_MaterialCodeLib material = MaterialCodeLibService.GetMaterialCodeLib(materialCode);
if (material == null)
{
Alert.ShowInTop("材料编码库不存在此材料编码,请先维护材料主数据!", MessageBoxIcon.Warning);
return;
}
mainMaterialCode = materialCode;
}
if (!string.IsNullOrEmpty(mainMaterialCode) && MaterialCodeLibService.GetMaterialCodeLib(mainMaterialCode) == null)
{
Alert.ShowInTop("所选材料主编码不存在,请重新选择!", MessageBoxIcon.Warning);