Browse Source

导出加零件名称

master
yidi.wu 10 months ago
parent
commit
b9234fd825
  1. 11
      北京北汽/Controller/SCP_EXCEL_CONTROLLER.cs
  2. 4
      北京北汽/SCP/Properties/AssemblyInfo.cs

11
北京北汽/Controller/SCP_EXCEL_CONTROLLER.cs

@ -424,6 +424,7 @@ namespace CK.SCP.Controller
DataSet _ds = new DataSet();
using (ScpEntities db = EntitiesFactory.CreateScpInstance())
{
db.Database.CommandTimeout = 300;
List<V_TB_ARRIVE> _ls = new List<V_TB_ARRIVE>();
if (!string.IsNullOrEmpty(p_vendid))
{
@ -446,7 +447,6 @@ namespace CK.SCP.Controller
{
_ls = db.V_TB_ARRIVE.Where(p => p_lst.Contains(p.ArrvBillNum)).ToList();
}
}
var str = JsonHelper.GetJson(_ls);
@ -497,7 +497,6 @@ namespace CK.SCP.Controller
}
_detailList.ForEach(itm => {
var _entity = new SCP_ARRIVE_DETAIL_EXPORT();
_entity. = itm.ArrvBillNum;
@ -505,8 +504,12 @@ namespace CK.SCP.Controller
_entity. = itm.PoBillNum;
_entity. = itm.PoLine.ToString();
_entity. = itm.PartCode;
_entity. = itm.PartDesc1;
_entity. = itm.Unit;
var partModel = db.TA_PART.FirstOrDefault(p => p.PartCode == itm.PartCode && p.Site == itm.Site);
if (partModel != null)
{
_entity. = partModel.PartDesc1;
_entity. = partModel.Unit;
}
_entity. = itm.Qty.ToString();
_entity. = itm.ShipTime == null ? string.Empty : itm.ShipTime.Value.ToString("yyyyMMdd");
_entity. = itm.Remark;

4
北京北汽/SCP/Properties/AssemblyInfo.cs

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// 可以指定所有值,也可以使用“修订号”和“内部版本号”的默认值,
// 方法是按如下所示使用 "*":
[assembly: AssemblyVersion("1.24.0126.2")]
[assembly: AssemblyFileVersion("1.24.0126.2")]
[assembly: AssemblyVersion("1.24.0126.3")]
[assembly: AssemblyFileVersion("1.24.0126.3")]

Loading…
Cancel
Save