feat(hjgl): 支持按焊口匹配和回写管线材料

管线材料导入需要关联到具体焊口,并允许按材料编码匹配库存后回写
材料主编码。新增 HJGL_PipeLineMat 的焊口和材料编码字段,材料匹配、
任务生成和出库关系同步按焊口维度处理,避免仅按组件匹配导致材料
范围不准确。
This commit is contained in:
2026-06-11 10:39:58 +08:00
parent c48972cc60
commit 201443e437
15 changed files with 488 additions and 206 deletions
+72
View File
@@ -105869,6 +105869,10 @@ namespace Model
private System.Nullable<bool> _IsLooseParts;
private string _WeldJointId;
private string _MaterialCode2;
private EntityRef<HJGL_MaterialCodeLib> _HJGL_MaterialCodeLib;
private EntityRef<HJGL_Pipeline> _HJGL_Pipeline;
@@ -105889,6 +105893,10 @@ namespace Model
partial void OnPrefabricatedComponentsChanged();
partial void OnIsLoosePartsChanging(System.Nullable<bool> value);
partial void OnIsLoosePartsChanged();
partial void OnWeldJointIdChanging(string value);
partial void OnWeldJointIdChanged();
partial void OnMaterialCode2Changing(string value);
partial void OnMaterialCode2Changed();
#endregion
public HJGL_PipeLineMat()
@@ -106026,6 +106034,46 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointId", DbType="NVarChar(50)")]
public string WeldJointId
{
get
{
return this._WeldJointId;
}
set
{
if ((this._WeldJointId != value))
{
this.OnWeldJointIdChanging(value);
this.SendPropertyChanging();
this._WeldJointId = value;
this.SendPropertyChanged("WeldJointId");
this.OnWeldJointIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode2", DbType="NVarChar(50)")]
public string MaterialCode2
{
get
{
return this._MaterialCode2;
}
set
{
if ((this._MaterialCode2 != value))
{
this.OnMaterialCode2Changing(value);
this.SendPropertyChanging();
this._MaterialCode2 = value;
this.SendPropertyChanged("MaterialCode2");
this.OnMaterialCode2Changed();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_PipeLineMat_HJGL_MaterialCodeLib", Storage="_HJGL_MaterialCodeLib", ThisKey="MaterialCode", OtherKey="MaterialCode", IsForeignKey=true)]
public HJGL_MaterialCodeLib HJGL_MaterialCodeLib
{
@@ -277039,6 +277087,8 @@ namespace Model
private System.Nullable<decimal> _Number;
private string _WeldJointId;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -277055,6 +277105,8 @@ namespace Model
partial void OnPrefabricatedComponentsChanged();
partial void OnNumberChanging(System.Nullable<decimal> value);
partial void OnNumberChanged();
partial void OnWeldJointIdChanging(string value);
partial void OnWeldJointIdChanged();
#endregion
public Tw_InOutPlanDetail_Relation()
@@ -277182,6 +277234,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointId", DbType="NVarChar(50)")]
public string WeldJointId
{
get
{
return this._WeldJointId;
}
set
{
if ((this._WeldJointId != value))
{
this.OnWeldJointIdChanging(value);
this.SendPropertyChanging();
this._WeldJointId = value;
this.SendPropertyChanged("WeldJointId");
this.OnWeldJointIdChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;