/// <summary> /// 对象转换 /// </summary> /// <param name="vmiInfo"></param> /// <returns></returns> private static BFDAVmiPackageInboundInfo GetBFDAVmiInfo(WmsVmiPackageInboundInfo wmsVmiPackageInboundInfo) { BFDAVmiPackageInboundInfo bFDAVmiPackageInboundInfo = new BFDAVmiPackageInboundInfo(); ///TODO:此处获取时间默认值为0001-01-01,对方系统是否能够接收,待测 bFDAVmiPackageInboundInfo.orderkey = wmsVmiPackageInboundInfo.Orderkey; ///WMS 单号 bFDAVmiPackageInboundInfo.orderlinenumber = wmsVmiPackageInboundInfo.Orderlinenumber; ///行号 bFDAVmiPackageInboundInfo.Storerkey = wmsVmiPackageInboundInfo.Storerkey; ///供应商代码 bFDAVmiPackageInboundInfo.Sku = wmsVmiPackageInboundInfo.Sku; ///物料代码 bFDAVmiPackageInboundInfo.Recqty = wmsVmiPackageInboundInfo.Recqty.GetValueOrDefault().ToString(); ///接收数量 bFDAVmiPackageInboundInfo.VmiWarehouseCode = wmsVmiPackageInboundInfo.Vmiwarehousecode; ///VMI 仓库代 bFDAVmiPackageInboundInfo.werks = wmsVmiPackageInboundInfo.Werks; ///工厂代码 return(bFDAVmiPackageInboundInfo); }
public long InsertInfo(WmsVmiPackageInboundInfo info) { return(dal.Add(info)); }