|
@ -71,6 +71,34 @@ namespace CK.SCP.Controller |
|
|
} |
|
|
} |
|
|
return _ds; |
|
|
return _ds; |
|
|
} |
|
|
} |
|
|
|
|
|
public static DataSet GET_OTD_VendId_REPORT_EXECEL(List<SCP_OTD_EXPORT> p_lst) |
|
|
|
|
|
{ |
|
|
|
|
|
DataSet _ds = new DataSet(); |
|
|
|
|
|
var _exportList = new List<SCP_OTD_VendId_REPORT_EXPORT>(); |
|
|
|
|
|
using (ScpEntities db = EntitiesFactory.CreateScpInstance()) |
|
|
|
|
|
{ |
|
|
|
|
|
p_lst.ForEach(itm => |
|
|
|
|
|
{ |
|
|
|
|
|
SCP_OTD_VendId_REPORT_EXPORT _entity = new SCP_OTD_VendId_REPORT_EXPORT(); |
|
|
|
|
|
_entity.要货看板号 = itm.AskBillNum; |
|
|
|
|
|
_entity.供应商编号 = itm.VendId; |
|
|
|
|
|
_entity.供应商名称 = itm.VendName; |
|
|
|
|
|
_entity.要求到货时间 = Convert.ToDateTime(itm.EndTime).ToString("yyyy/MM/dd"); |
|
|
|
|
|
_entity.订单要货数量 = itm.AskQty.ToString(); |
|
|
|
|
|
_entity.到货数量 = itm.ArriveQty.ToString(); |
|
|
|
|
|
_entity.差额 = itm.Qty.ToString(); |
|
|
|
|
|
_entity.及时数量 = itm.NntimelyQty.ToString(); |
|
|
|
|
|
_entity.及时率 = itm.OTD.ToString(); |
|
|
|
|
|
_entity.到货率 = itm.ArriveOTD.ToString(); |
|
|
|
|
|
_exportList.Add(_entity); |
|
|
|
|
|
}); |
|
|
|
|
|
var _dt = ConvertHelper.ToDataTable(_exportList); |
|
|
|
|
|
_ds.Tables.Add(_dt); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
return _ds; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public static List<SCP_PO_DETAIL_EXPORT_MODEL> GET_PO_EXECEL_Model(List<string> p_lst, bool p_IsDetail = false) |
|
|
public static List<SCP_PO_DETAIL_EXPORT_MODEL> GET_PO_EXECEL_Model(List<string> p_lst, bool p_IsDetail = false) |
|
|
{ |
|
|
{ |
|
@ -113,9 +141,6 @@ namespace CK.SCP.Controller |
|
|
po_detail.收货口 = itm.DockCode; |
|
|
po_detail.收货口 = itm.DockCode; |
|
|
po_detail.项目编号 = itm.ProjectId; |
|
|
po_detail.项目编号 = itm.ProjectId; |
|
|
po_detail.备注 = string.Empty; |
|
|
po_detail.备注 = string.Empty; |
|
|
po_detail.预测一 = "0"; |
|
|
|
|
|
po_detail.预测二 = "0"; |
|
|
|
|
|
po_detail.预测三 = "0"; |
|
|
|
|
|
_exportDetailList.Add(po_detail); |
|
|
_exportDetailList.Add(po_detail); |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|