v1.0.4 数量更新为只支持整数

This commit is contained in:
hehaibing-1996
2025-06-27 14:06:52 +08:00
parent 2246bbee8a
commit d7f6d6b718
16 changed files with 24 additions and 24 deletions

View File

@ -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

View File

@ -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>
/// 物料供应商

View File

@ -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>
/// 物料供应商

View File

@ -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; }
}

View File

@ -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; }

View File

@ -8,6 +8,6 @@ namespace WCS.Model.ApiModel.MatDetailCurrentInfo
{
public int MatDetailCurrentInfoId { get; set; }
public decimal MatQty { get; set; }
public int MatQty { get; set; }
}
}

View File

@ -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; }

View File

@ -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;

View File

@ -14,6 +14,6 @@ namespace WCS.Model.ApiModel.PDAProductionLineCallOut
/// <summary>
/// 修改后的数量
/// </summary>
public decimal MatQty { get; set; }
public int MatQty { get; set; }
}
}

View File

@ -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>
/// 物料供应商

View File

@ -8,6 +8,6 @@ namespace WCS.Model.ApiModel.Stocktaking
{
public int MatDetailCurrentInfoId { get; set; }
public decimal StocktakingQty { get; set; }
public int StocktakingQty { get; set; }
}
}

View File

@ -8,6 +8,6 @@ namespace WCS.Model.ApiModel.Stocktaking
{
public int MatDetailStocktakingInfoId { get; set; }
public decimal StocktakingQty { get; set; }
public int StocktakingQty { get; set; }
}
}

View File

@ -135,8 +135,8 @@ namespace 智慧物流软件系统.ViewModel
}
}
private decimal matQty;
public decimal MatQty
private int matQty;
public int MatQty
{
get { return matQty; }
set

View File

@ -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的值");

View File

@ -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();

View File

@ -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>