|
|
@ -109,6 +109,33 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<IConditionalModel> whereList = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string blNo = string.Empty;
|
|
|
|
|
|
|
|
string etdStart = string.Empty;
|
|
|
|
|
|
|
|
string etdEnd = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!querySearch.QueryCondition.IsNullOrEmpty())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
whereList = querySearch.GetConditionalModels(db);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//if (whereList.Any(t => ((ConditionalModel)t).FieldName.Equals("blNo", StringComparison.OrdinalIgnoreCase)))
|
|
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
// var t = whereList.FirstOrDefault(t => ((ConditionalModel)t).FieldName.Equals("blNo", StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
|
|
|
// blNo = ((ConditionalModel)t).FieldValue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// whereList.Remove(t);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//if (whereList.Any(t => ((ConditionalModel)t).FieldName.Equals("etd", StringComparison.OrdinalIgnoreCase)))
|
|
|
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
// var t = whereList.FirstOrDefault(t => ((ConditionalModel)t).FieldName.Equals("etd", StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
|
|
|
// blNo = ((ConditionalModel)t).FieldValue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// whereList.Remove(t);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var query = tenantDb.Queryable<SeaExport>().ClearFilter(typeof(IOrgId))
|
|
|
|
var query = tenantDb.Queryable<SeaExport>().ClearFilter(typeof(IOrgId))
|
|
|
|
.LeftJoin<BLIssueManageBase>((l, r) => l.Id == r.BookingId)
|
|
|
|
.LeftJoin<BLIssueManageBase>((l, r) => l.Id == r.BookingId)
|
|
|
|
.WhereIF(querySearch.OtherQueryCondition != null && !string.IsNullOrWhiteSpace(querySearch.OtherQueryCondition.QueryTabCode)
|
|
|
|
.WhereIF(querySearch.OtherQueryCondition != null && !string.IsNullOrWhiteSpace(querySearch.OtherQueryCondition.QueryTabCode)
|
|
|
@ -129,9 +156,8 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
BLIssueMangeQueryExtDto otherQuery = null;
|
|
|
|
BLIssueMangeQueryExtDto otherQuery = null;
|
|
|
|
|
|
|
|
|
|
|
|
if (!querySearch.QueryCondition.IsNullOrEmpty())
|
|
|
|
if (whereList != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var whereList = querySearch.GetConditionalModels(db);
|
|
|
|
|
|
|
|
query = query.Where(whereList);
|
|
|
|
query = query.Where(whereList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -204,7 +230,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return DataResult<List<BLIssueManageBaseDto>>.Success(resultList);
|
|
|
|
return DataResult<List<BLIssueManageBaseDto>>.PageList(result.Count, resultList, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
@ -279,40 +305,13 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resultList.Add(new BLIssueManageBaseDto
|
|
|
|
resultList.Add(GetInitInfo(start, data.order));
|
|
|
|
{
|
|
|
|
|
|
|
|
Id = start,
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
Doc = data.order.Doc,
|
|
|
|
|
|
|
|
DocName = data.order.DocName,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
start++;
|
|
|
|
start++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return DataResult<List<BLIssueManageBaseDto>>.Success(resultList);
|
|
|
|
return DataResult<List<BLIssueManageBaseDto>>.PageList(result.Count, resultList, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
@ -363,32 +362,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -584,32 +558,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -767,32 +716,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -945,32 +869,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -1133,32 +1032,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -1352,32 +1226,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -1460,32 +1309,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -1566,32 +1390,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
|
|
|
|
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
if (blModel == null || blModel.Id == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var dto = new BLIssueManageBaseInputDto
|
|
|
|
var dto = GetReadSaveInfo(data.order);
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = data.order.Id,
|
|
|
|
|
|
|
|
BLNo = data.order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = data.order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = data.order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = data.order.SaleId,
|
|
|
|
|
|
|
|
Sale = data.order.Sale,
|
|
|
|
|
|
|
|
IssueType = data.order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = data.order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = data.order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = data.order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = data.order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = data.order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = data.order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = data.order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = data.order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = data.order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = data.order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = data.order.CustomerServiceName,
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
BusiType = BLIssueBusiTypeEnum.SeaExport.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = BLIssueBusiTypeEnum.SeaExport.GetDescription(),
|
|
|
|
|
|
|
|
StlDate = data.order.StlDate,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
var saveRlt = await Save(dto);
|
|
|
|
|
|
|
|
|
|
|
@ -1686,5 +1485,83 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
return DataResult<List<BLOverdueFeeDto>>.Success(list);
|
|
|
|
return DataResult<List<BLOverdueFeeDto>>.Success(list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 获取初始化提单管理详情
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 获取初始化提单管理详情
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="tempId">临时ID</param>
|
|
|
|
|
|
|
|
/// <param name="order">订单详情</param>
|
|
|
|
|
|
|
|
/// <param name="busiTypeEnum">业务类型</param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
private BLIssueManageBaseDto GetInitInfo(long tempId,SeaExport order, BLIssueBusiTypeEnum busiTypeEnum = BLIssueBusiTypeEnum.SeaExport)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new BLIssueManageBaseDto
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Id = tempId,
|
|
|
|
|
|
|
|
BookingId = order.Id,
|
|
|
|
|
|
|
|
BLNo = order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = order.SaleId,
|
|
|
|
|
|
|
|
Sale = order.Sale,
|
|
|
|
|
|
|
|
IssueType = order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = order.CustomerServiceName,
|
|
|
|
|
|
|
|
BusiType = busiTypeEnum.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = busiTypeEnum.GetDescription(),
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
Doc = order.Doc,
|
|
|
|
|
|
|
|
DocName = order.DocName,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 获取待保存提单管理详情
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 获取待保存提单管理详情
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name="order">订单详情</param>
|
|
|
|
|
|
|
|
/// <param name="busiTypeEnum">业务类型</param>
|
|
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
private BLIssueManageBaseInputDto GetReadSaveInfo(SeaExport order, BLIssueBusiTypeEnum busiTypeEnum = BLIssueBusiTypeEnum.SeaExport)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return new BLIssueManageBaseInputDto
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
BookingId = order.Id,
|
|
|
|
|
|
|
|
BLNo = order.MBLNO,
|
|
|
|
|
|
|
|
CustomerId = order.CustomerId,
|
|
|
|
|
|
|
|
CustomerName = order.CustomerName,
|
|
|
|
|
|
|
|
SaleId = order.SaleId,
|
|
|
|
|
|
|
|
Sale = order.Sale,
|
|
|
|
|
|
|
|
IssueType = order.IssueType,
|
|
|
|
|
|
|
|
IssueTypeCode = order.IssueTypeCode,
|
|
|
|
|
|
|
|
IssuePlaceCode = order.IssuePlaceCode,
|
|
|
|
|
|
|
|
IssuePlace = order.IssuePlace,
|
|
|
|
|
|
|
|
LoadPortId = order.LoadPortId,
|
|
|
|
|
|
|
|
LoadPortCode = order.LoadPortCode,
|
|
|
|
|
|
|
|
LoadPort = order.LoadPort,
|
|
|
|
|
|
|
|
DischargePortId = order.DischargePortId,
|
|
|
|
|
|
|
|
DischargePortCode = order.DischargePortCode,
|
|
|
|
|
|
|
|
DischargePort = order.DischargePort,
|
|
|
|
|
|
|
|
CustomerService = order.CustomerService,
|
|
|
|
|
|
|
|
CustomerServiceName = order.CustomerServiceName,
|
|
|
|
|
|
|
|
BusiType = busiTypeEnum.ToString(),
|
|
|
|
|
|
|
|
BusiTypeName = busiTypeEnum.GetDescription(),
|
|
|
|
|
|
|
|
BLType = BLTypeEnum.BL.ToString(),
|
|
|
|
|
|
|
|
BLTypeName = BLTypeEnum.BL.GetDescription(),
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|