v1.0.4 数量更新为只支持整数
This commit is contained in:
@ -92,7 +92,7 @@ namespace WCS.BLL.DbModels
|
|||||||
/// 物料数量
|
/// 物料数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "mat_qty", IsNullable = false, ColumnDescription = "物料数量")]
|
[SugarColumn(ColumnName = "mat_qty", IsNullable = false, ColumnDescription = "物料数量")]
|
||||||
public decimal MatQty { get; set; }
|
public int MatQty { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 单据属性
|
#region 单据属性
|
||||||
|
@ -70,13 +70,13 @@ namespace WCS.BLL.DbModels
|
|||||||
/// 物料数量(更新前物料数量)
|
/// 物料数量(更新前物料数量)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "before_qty", IsNullable = false, ColumnDescription = "物料数量(更新前物料数量)")]
|
[SugarColumn(ColumnName = "before_qty", IsNullable = false, ColumnDescription = "物料数量(更新前物料数量)")]
|
||||||
public decimal BeforeQty { get; set; }
|
public int BeforeQty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料数量(更新后物料数量)
|
/// 物料数量(更新后物料数量)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "after_qty", IsNullable = false, ColumnDescription = "物料数量(更新后物料数量)")]
|
[SugarColumn(ColumnName = "after_qty", IsNullable = false, ColumnDescription = "物料数量(更新后物料数量)")]
|
||||||
public decimal AfterQty { get; set; }
|
public int AfterQty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料供应商
|
/// 物料供应商
|
||||||
|
@ -76,13 +76,13 @@ namespace WCS.BLL.DbModels
|
|||||||
/// 物料数量(原始数量)
|
/// 物料数量(原始数量)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "mat_qty", IsNullable = false, ColumnDescription = "物料数量(原始数量)")]
|
[SugarColumn(ColumnName = "mat_qty", IsNullable = false, ColumnDescription = "物料数量(原始数量)")]
|
||||||
public decimal MatQty { get; set; }
|
public int MatQty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料数量(盘点数量)
|
/// 物料数量(盘点数量)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "stocktaking_qty", IsNullable = false, ColumnDescription = "物料数量(盘点数量)")]
|
[SugarColumn(ColumnName = "stocktaking_qty", IsNullable = false, ColumnDescription = "物料数量(盘点数量)")]
|
||||||
public decimal StocktakingQty { get; set; }
|
public int StocktakingQty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料供应商
|
/// 物料供应商
|
||||||
|
@ -13,7 +13,7 @@ namespace WCS.Model.ApiModel.BatchBindMatDetail
|
|||||||
|
|
||||||
public string 物料批次 { get; set; }
|
public string 物料批次 { get; set; }
|
||||||
public string 物料规格 { get; set; }
|
public string 物料规格 { get; set; }
|
||||||
public decimal? 数量 { get; set; }
|
public int? 数量 { get; set; }
|
||||||
public string 货架编码 { get; set; }
|
public string 货架编码 { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ namespace WCS.Model.ApiModel.MatDetailCurrentInfo
|
|||||||
|
|
||||||
public string? MatCustomer { get; set; } = string.Empty;
|
public string? MatCustomer { get; set; } = string.Empty;
|
||||||
|
|
||||||
public decimal MatQty { get; set; }
|
public int MatQty { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 批量绑定相关
|
#region 批量绑定相关
|
||||||
@ -60,7 +60,7 @@ namespace WCS.Model.ApiModel.MatDetailCurrentInfo
|
|||||||
|
|
||||||
public DateTime? BindTime { get; set; } = DateTime.Now;
|
public DateTime? BindTime { get; set; } = DateTime.Now;
|
||||||
#region 盘点数量
|
#region 盘点数量
|
||||||
public decimal StocktakingQty { get; set; } = -1;
|
public int StocktakingQty { get; set; } = -1;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public int RowNumber { get; set; }
|
public int RowNumber { get; set; }
|
||||||
|
@ -8,6 +8,6 @@ namespace WCS.Model.ApiModel.MatDetailCurrentInfo
|
|||||||
{
|
{
|
||||||
public int MatDetailCurrentInfoId { get; set; }
|
public int MatDetailCurrentInfoId { get; set; }
|
||||||
|
|
||||||
public decimal MatQty { get; set; }
|
public int MatQty { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,9 +26,9 @@ namespace WCS.Model.ApiModel.MatDetailHistoryInfo
|
|||||||
|
|
||||||
public string MatSpec { get; set; }
|
public string MatSpec { get; set; }
|
||||||
|
|
||||||
public decimal BeforeQty { get; set; }
|
public int BeforeQty { get; set; }
|
||||||
|
|
||||||
public decimal AfterQty { get; set; }
|
public int AfterQty { get; set; }
|
||||||
|
|
||||||
public string? MatSupplier { get; set; }
|
public string? MatSupplier { get; set; }
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ namespace WCS.Model.ApiModel.PDAMatBind
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料数量
|
/// 物料数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal Qty { get; set; }
|
public int Qty { get; set; }
|
||||||
|
|
||||||
public int NeedLocationAreaId { get; set; } = 0;
|
public int NeedLocationAreaId { get; set; } = 0;
|
||||||
|
|
||||||
|
@ -14,6 +14,6 @@ namespace WCS.Model.ApiModel.PDAProductionLineCallOut
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 修改后的数量
|
/// 修改后的数量
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal MatQty { get; set; }
|
public int MatQty { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,12 +60,12 @@ namespace WCS.Model.ApiModel.Stocktaking
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料数量(原始数量)
|
/// 物料数量(原始数量)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal MatQty { get; set; }
|
public int MatQty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料数量(盘点数量)
|
/// 物料数量(盘点数量)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal StocktakingQty { get; set; }
|
public int StocktakingQty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 物料供应商
|
/// 物料供应商
|
||||||
|
@ -8,6 +8,6 @@ namespace WCS.Model.ApiModel.Stocktaking
|
|||||||
{
|
{
|
||||||
public int MatDetailCurrentInfoId { get; set; }
|
public int MatDetailCurrentInfoId { get; set; }
|
||||||
|
|
||||||
public decimal StocktakingQty { get; set; }
|
public int StocktakingQty { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,6 @@ namespace WCS.Model.ApiModel.Stocktaking
|
|||||||
{
|
{
|
||||||
public int MatDetailStocktakingInfoId { get; set; }
|
public int MatDetailStocktakingInfoId { get; set; }
|
||||||
|
|
||||||
public decimal StocktakingQty { get; set; }
|
public int StocktakingQty { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -135,8 +135,8 @@ namespace 智慧物流软件系统.ViewModel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private decimal matQty;
|
private int matQty;
|
||||||
public decimal MatQty
|
public int MatQty
|
||||||
{
|
{
|
||||||
get { return matQty; }
|
get { return matQty; }
|
||||||
set
|
set
|
||||||
|
@ -38,7 +38,7 @@ namespace 智慧物流软件系统
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
txtMatQty.Text = txtMatQty.Text.Trim();
|
txtMatQty.Text = txtMatQty.Text.Trim();
|
||||||
var qty = decimal.Parse(txtMatQty.Text);
|
var qty = int.Parse(txtMatQty.Text);
|
||||||
if (qty < 0)
|
if (qty < 0)
|
||||||
{
|
{
|
||||||
HandyControl.Controls.MessageBox.Show("数量请输入大于0的值!");
|
HandyControl.Controls.MessageBox.Show("数量请输入大于0的值!");
|
||||||
|
@ -46,7 +46,7 @@ namespace 智慧物流软件系统
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
decimal.Parse(StocktakingQty.Text);
|
int.Parse(StocktakingQty.Text);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
@ -56,7 +56,7 @@ namespace 智慧物流软件系统
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
matDetailStocktakingInfo.StocktakingQty = decimal.Parse(StocktakingQty.Text); ;
|
matDetailStocktakingInfo.StocktakingQty = int.Parse(StocktakingQty.Text); ;
|
||||||
|
|
||||||
this.DialogResult = true;
|
this.DialogResult = true;
|
||||||
this.Close();
|
this.Close();
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Company>重庆盟讯电子科技有限公司</Company>
|
<Company>重庆盟讯电子科技有限公司</Company>
|
||||||
<Copyright>Copyright © 2025</Copyright>
|
<Copyright>Copyright © 2025</Copyright>
|
||||||
<AssemblyVersion>1.0.3</AssemblyVersion>
|
<AssemblyVersion>1.0.4</AssemblyVersion>
|
||||||
<FileVersion>1.0.2</FileVersion>
|
<FileVersion>1.0.4</FileVersion>
|
||||||
<ApplicationIcon>Resources\Logo.ico</ApplicationIcon>
|
<ApplicationIcon>Resources\Logo.ico</ApplicationIcon>
|
||||||
<Authors>重庆盟讯电子科技有限公司</Authors>
|
<Authors>重庆盟讯电子科技有限公司</Authors>
|
||||||
<Product>智慧物流软件系统</Product>
|
<Product>智慧物流软件系统</Product>
|
||||||
|
Reference in New Issue
Block a user