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