修复bug
This commit is contained in:
@@ -8,10 +8,11 @@ namespace WMS.Web.Core.Dto.Erp
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
public class ErpNumberDto
|
||||
public class ErpNumberDto
|
||||
{
|
||||
public ErpNumberDto() { }
|
||||
public ErpNumberDto(string number) {
|
||||
public ErpNumberDto(string number)
|
||||
{
|
||||
this.Number = number;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -27,12 +28,12 @@ namespace WMS.Web.Core.Dto.Erp
|
||||
public class ErpSubStockDto
|
||||
{
|
||||
public ErpSubStockDto() { }
|
||||
public ErpSubStockDto(string code)
|
||||
public ErpSubStockDto(string stockCode, string subCode)
|
||||
{
|
||||
if (code.Equals("GD"))
|
||||
this.GD = new ErpNumberDto(code);
|
||||
if (code.Equals("HD"))
|
||||
this.HD = new ErpNumberDto(code);
|
||||
if (stockCode != null && stockCode.Equals("GD"))
|
||||
this.GD = new ErpNumberDto(subCode ?? "");
|
||||
if (stockCode != null && stockCode.Equals("HD"))
|
||||
this.HD = new ErpNumberDto(subCode ?? "");
|
||||
}
|
||||
/// <summary>
|
||||
/// GD仓
|
||||
|
||||
Reference in New Issue
Block a user