|
@ -73,22 +73,22 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
"WHERE 1=1 {1}"; |
|
|
"WHERE 1=1 {1}"; |
|
|
string addwhere = string.Empty; |
|
|
string addwhere = string.Empty; |
|
|
string addSqlStr = string.Format(sqlString, version); |
|
|
string addSqlStr = string.Format(sqlString, version); |
|
|
if (!string.IsNullOrEmpty(kanBan)) |
|
|
//if (!string.IsNullOrEmpty(kanBan))
|
|
|
{ |
|
|
//{
|
|
|
addwhere += string.Format(" AND Kanban LIKE '{0}%' ", kanBan); |
|
|
// addwhere += string.Format(" AND Kanban LIKE '{0}%' ", kanBan);
|
|
|
} |
|
|
//}
|
|
|
else if(!string.IsNullOrEmpty(sapMaterialCode)) |
|
|
//else if(!string.IsNullOrEmpty(sapMaterialCode))
|
|
|
{ |
|
|
//{
|
|
|
addwhere += string.Format(" AND SapMaterialCode LIKE '{0}%' ", sapMaterialCode); |
|
|
// addwhere += string.Format(" AND SapMaterialCode LIKE '{0}%' ", sapMaterialCode);
|
|
|
} |
|
|
//}
|
|
|
else if(!string.IsNullOrEmpty(customerPartCode)) |
|
|
//else if(!string.IsNullOrEmpty(customerPartCode))
|
|
|
{ |
|
|
//{
|
|
|
addwhere += string.Format(" AND CustomerPartCode LIKE '{0}%' ", customerPartCode); |
|
|
// addwhere += string.Format(" AND CustomerPartCode LIKE '{0}%' ", customerPartCode);
|
|
|
} |
|
|
//}
|
|
|
else if (!string.IsNullOrEmpty(estimateTypeDesc)) |
|
|
//else if (!string.IsNullOrEmpty(estimateTypeDesc))
|
|
|
{ |
|
|
//{
|
|
|
addwhere += string.Format(" AND EstimateTypeDesc LIKE '{0}%' ", estimateTypeDesc); |
|
|
// addwhere += string.Format(" AND EstimateTypeDesc LIKE '{0}%' ", estimateTypeDesc);
|
|
|
} |
|
|
//}
|
|
|
|
|
|
|
|
|
string _sql = string.Format(addSqlStr, addwhere); |
|
|
string _sql = string.Format(addSqlStr, addwhere); |
|
|
var _query = DbConnection.Query<SettleKBWithCode>(_sql, null, null, true, 1200, null); |
|
|
var _query = DbConnection.Query<SettleKBWithCode>(_sql, null, null, true, 1200, null); |
|
@ -189,7 +189,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
public string WMSDeliveryNote { set; get; } |
|
|
public string WMSDeliveryNote { set; get; } |
|
|
|
|
|
|
|
|
[ExporterHeader(DisplayName = "实际发货日期")] |
|
|
[ExporterHeader(DisplayName = "实际发货日期")] |
|
|
public string ActualGoodsDate { set; get; } |
|
|
public DateTime ActualGoodsDate { set; get; } |
|
|
|
|
|
|
|
|
[ExporterHeader(DisplayName = "条码号")] |
|
|
[ExporterHeader(DisplayName = "条码号")] |
|
|
public string Kanban { set; get; } |
|
|
public string Kanban { set; get; } |
|
@ -203,6 +203,10 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
[ExporterHeader(DisplayName = "客户物料")] |
|
|
[ExporterHeader(DisplayName = "客户物料")] |
|
|
public string CustomerPartCode { set; get; } |
|
|
public string CustomerPartCode { set; get; } |
|
|
|
|
|
|
|
|
|
|
|
[ExporterHeader(DisplayName = "厂内物料号")] |
|
|
|
|
|
public string SapMaterialCode { set; get; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ExporterHeader(DisplayName = "物料组(车型)")] |
|
|
[ExporterHeader(DisplayName = "物料组(车型)")] |
|
|
public string EstimateTypeDesc { set; get; } |
|
|
public string EstimateTypeDesc { set; get; } |
|
|
|
|
|
|
|
@ -249,6 +253,8 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report |
|
|
public string DeliveryOrderNo { set; get; } |
|
|
public string DeliveryOrderNo { set; get; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|