feat(clgl): 新增入库材料条形码打印

生成入库单时同步生成入库材料条形码明细,并在入库单管理中支持整单和单条条形码打印。
This commit is contained in:
2026-05-18 21:28:56 +08:00
parent 2c25bb3484
commit 44cd0fcf8c
13 changed files with 563 additions and 43 deletions
@@ -0,0 +1,14 @@
namespace Model
{
public class Tw_InputDetailBarCodeOutput
{
public string Id { get; set; }
public string InputDetailId { get; set; }
public string InputMasterId { get; set; }
public string CusBillCode { get; set; }
public string MaterialCode { get; set; }
public string MaterialName { get; set; }
public string MaterialDef { get; set; }
public string BarCode { get; set; }
}
}
+170 -2
View File
@@ -1,5 +1,4 @@

#pragma warning disable 1591
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
@@ -1797,6 +1796,9 @@ namespace Model
partial void InsertTw_InputDetail(Tw_InputDetail instance);
partial void UpdateTw_InputDetail(Tw_InputDetail instance);
partial void DeleteTw_InputDetail(Tw_InputDetail instance);
partial void InsertTw_InputDetailBarCode(Tw_InputDetailBarCode instance);
partial void UpdateTw_InputDetailBarCode(Tw_InputDetailBarCode instance);
partial void DeleteTw_InputDetailBarCode(Tw_InputDetailBarCode instance);
partial void InsertTw_InputMaster(Tw_InputMaster instance);
partial void UpdateTw_InputMaster(Tw_InputMaster instance);
partial void DeleteTw_InputMaster(Tw_InputMaster instance);
@@ -6692,6 +6694,14 @@ namespace Model
}
}
public System.Data.Linq.Table<Tw_InputDetailBarCode> Tw_InputDetailBarCode
{
get
{
return this.GetTable<Tw_InputDetailBarCode>();
}
}
public System.Data.Linq.Table<Tw_InputMaster> Tw_InputMaster
{
get
@@ -277196,6 +277206,164 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Tw_InputDetailBarCode")]
public partial class Tw_InputDetailBarCode : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _Id;
private string _InputDetailId;
private string _InputMasterId;
private string _MaterialCode;
private string _BarCode;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnInputDetailIdChanging(string value);
partial void OnInputDetailIdChanged();
partial void OnInputMasterIdChanging(string value);
partial void OnInputMasterIdChanged();
partial void OnMaterialCodeChanging(string value);
partial void OnMaterialCodeChanged();
partial void OnBarCodeChanging(string value);
partial void OnBarCodeChanged();
#endregion
public Tw_InputDetailBarCode()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InputDetailId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string InputDetailId
{
get
{
return this._InputDetailId;
}
set
{
if ((this._InputDetailId != value))
{
this.OnInputDetailIdChanging(value);
this.SendPropertyChanging();
this._InputDetailId = value;
this.SendPropertyChanged("InputDetailId");
this.OnInputDetailIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InputMasterId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string InputMasterId
{
get
{
return this._InputMasterId;
}
set
{
if ((this._InputMasterId != value))
{
this.OnInputMasterIdChanging(value);
this.SendPropertyChanging();
this._InputMasterId = value;
this.SendPropertyChanged("InputMasterId");
this.OnInputMasterIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")]
public string MaterialCode
{
get
{
return this._MaterialCode;
}
set
{
if ((this._MaterialCode != value))
{
this.OnMaterialCodeChanging(value);
this.SendPropertyChanging();
this._MaterialCode = value;
this.SendPropertyChanged("MaterialCode");
this.OnMaterialCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BarCode", DbType="NVarChar(500)")]
public string BarCode
{
get
{
return this._BarCode;
}
set
{
if ((this._BarCode != value))
{
this.OnBarCodeChanging(value);
this.SendPropertyChanging();
this._BarCode = value;
this.SendPropertyChanged("BarCode");
this.OnBarCodeChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Tw_InputMaster")]
public partial class Tw_InputMaster : INotifyPropertyChanging, INotifyPropertyChanged
{
+2 -1
View File
@@ -226,6 +226,7 @@
<Compile Include="CLGL\Tw_PipeMatMatchOutput.cs" />
<Compile Include="CLGL\Tw_PrintModel.cs" />
<Compile Include="CLGL\Tw_InOutDetailOutput.cs" />
<Compile Include="CLGL\Tw_InputDetailBarCodeOutput.cs" />
<Compile Include="CLGL\Tw_InOutMasterOutput.cs" />
<Compile Include="CLGL\Tw_MaterialStockOutput.cs" />
<Compile Include="CLGL\Tw_PipeLineMat.cs" />
@@ -328,4 +329,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>