20250408 二次领料数量
This commit is contained in:
parent
a368d7628b
commit
711dccc857
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1086,11 +1086,13 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
|
|||
}
|
||||
if (weldTypeName == "焊丝" || weldTypeName == "焊条")
|
||||
{
|
||||
number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
|
||||
//number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
|
||||
number = (material.Amount.Value + material.TwoAmount.Value).ToString("0.#") + "根";
|
||||
}
|
||||
else
|
||||
{
|
||||
number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
|
||||
//number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
|
||||
number = (material.Amount.Value + material.TwoAmount.Value).ToString("0.#") + "Kg";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(material.StoreMan))
|
||||
{
|
||||
|
|
|
@ -40,12 +40,12 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
|
|||
if (type.WeldTypeName == "焊条" || type.WeldTypeName == "焊丝")
|
||||
{
|
||||
unit = "根";
|
||||
txtAmount.Text = mat.Amount.Value.ToString("0.##") + "根";
|
||||
txtAmount.Text = (mat.Amount.Value + mat.TwoAmount.Value).ToString("0.##") + "根";
|
||||
}
|
||||
else
|
||||
{
|
||||
unit = "公斤";
|
||||
txtAmount.Text = mat.Amount.Value.ToString("0.##") + "Kg";
|
||||
txtAmount.Text = (mat.Amount.Value + mat.TwoAmount.Value).ToString("0.##") + "Kg";
|
||||
}
|
||||
|
||||
string[] weldNames = weld.WeldName.Split('/');
|
||||
|
@ -280,11 +280,13 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
|
|||
}
|
||||
if (weldTypeName == "焊丝" || weldTypeName == "焊条")
|
||||
{
|
||||
number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
|
||||
//number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
|
||||
number = (material.Amount.Value + material.TwoAmount.Value).ToString("0.#") + "根";
|
||||
}
|
||||
else
|
||||
{
|
||||
number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
|
||||
//number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
|
||||
number = (material.Amount.Value + material.TwoAmount.Value).ToString("0.#") + "Kg";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(material.StoreMan))
|
||||
{
|
||||
|
|
|
@ -263,13 +263,14 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat
|
|||
}
|
||||
if (weldTypeName == "焊丝" || weldTypeName == "焊条")
|
||||
{
|
||||
number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
|
||||
//number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "根" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0.#") + "根" : "";
|
||||
number = (material.Amount.Value + material.TwoAmount.Value).ToString("0.#") + "根";
|
||||
}
|
||||
else
|
||||
{
|
||||
number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
|
||||
//number = material.Amount.HasValue && material.Amount > 0 ? material.Amount.Value.ToString("0.#") + "Kg" : material.TwoAmount.HasValue ? material.TwoAmount.Value.ToString("0#") + "Kg" : "";
|
||||
number = (material.Amount.Value + material.TwoAmount.Value).ToString("0.#") + "Kg";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(material.StoreMan))
|
||||
{
|
||||
var store = BLL.StoremanInfoService.GetStoremanById(material.StoreMan);
|
||||
|
|
Loading…
Reference in New Issue