| | |
| | | return outOfStorageDAL.getModelList(pa, FirmId, Operator, InfoType, SuppliersId, GoodsNameId, WarehouseId, beginTime, endTime, BrandName, SpeceicationName, PaperWeightName, GoodsTypeId); |
| | | } |
| | | |
| | | public bool InsertModelList(string[] Keys, int? WarehouseId) |
| | | public bool InsertModelList(string[] Keys, int? WarehouseId, string WarehouseName ) |
| | | { |
| | | try |
| | | { |
| | |
| | | { |
| | | foreach (var Keyid in Keys) |
| | | { |
| | | |
| | | OA_Procurement m_OA_Procurement = new OA_Procurement(); |
| | | OA_Inventory m_OA_Inventory = new OA_Inventory(); |
| | | OA_OutOfStorage m_OA_OutOfStorage = new OA_OutOfStorage(); |
| | |
| | | m_OA_Procurement = _OA_ProcurementBLL.SelectSingleModel(Keyid); |
| | | m_OA_Procurement.PurchaseStatusId = 201; |
| | | m_OA_Procurement.Remark = m_OA_WarehouseInfo.WarehouseName; |
| | | |
| | | if (!WarehouseName.Equals("上机使用")) |
| | | { |
| | | //库存表对象 |
| | | m_OA_Inventory.CargoSpaceId = 0; |
| | | m_OA_Inventory.FirmId = m_OA_Procurement.FirmId; |
| | |
| | | m_OA_OutOfStorage.PaperWeightId = m_OA_Procurement.PaperWeightId; |
| | | m_OA_OutOfStorage.TanPrice = m_OA_Procurement.TanPrice ?? 0; |
| | | isSuccess = InsertModel(m_OA_Inventory, m_OA_OutOfStorage); |
| | | } |
| | | |
| | | |
| | | if (isSuccess) |
| | | { |