protected static FR_L5RS_GRSPwAfP_1526_Array Execute(DbConnection Connection, DbTransaction Transaction, P_L5RS_GRSPwAfP_1526 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { //Leave UserCode region to enable user code saving #region UserCode var returnValue = new FR_L5RS_GRSPwAfP_1526_Array(); #region Get Return Shipment Positions var returnShipmentPositions = cls_Get_ReturnShipmentPositions_for_PositionIDs.Invoke(Connection, Transaction, Parameter.SearchCriteria, securityTicket).Result; #endregion #region Get Articles var articleIDs = returnShipmentPositions.Select(rsp => rsp.CMN_PRO_Product_RefID).Distinct().ToArray <Guid>(); var articles = new L3AR_GAfAL_0942[0]; var prices = new L3PR_GSPfPIL_1645[0]; if (articleIDs.Length != 0) { var parameterArticles = new P_L3AR_GAfAL_0942 { ProductID_List = articleIDs }; articles = cls_Get_Articles_for_ArticleList.Invoke(Connection, Transaction, parameterArticles, securityTicket).Result; var parameterPrices = new P_L3PR_GSPfPIL_1645 { ProductIDList = articleIDs }; prices = cls_Get_StandardPrices_for_ProductIDList.Invoke(Connection, Transaction, parameterPrices, securityTicket).Result; } #endregion #region Set Return Value var returnElements = new List <L5RS_GRSPwAfP_1526>(); foreach (var position in returnShipmentPositions) { var returnElement = new L5RS_GRSPwAfP_1526 { Article = articles.FirstOrDefault(a => a.CMN_PRO_ProductID == position.CMN_PRO_Product_RefID), Price = prices.FirstOrDefault(a => a.ProductID == position.CMN_PRO_Product_RefID), Position = position }; returnElements.Add(returnElement); } returnValue.Result = returnElements.ToArray(); #endregion return(returnValue); #endregion UserCode }
protected static FR_L5RS_GRSPwAfH_1024_Array Execute(DbConnection Connection, DbTransaction Transaction, P_L5RS_GRSPwAfH_1024 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L5RS_GRSPwAfH_1024_Array(); #region Get ReturnShipmentheaders var parameterHeaderId = new P_L5RS_GRSPfH_1105 { ReturnShipmentHeaderID = Parameter.Header_ID }; var shipmentPositions = cls_Get_ReturnShipmentPositions_for_HeaderID.Invoke(Connection, Transaction, parameterHeaderId, securityTicket).Result; #endregion #region Get Articles var parameterProductIds = new P_L3AR_GAfAL_0942(); parameterProductIds.ProductID_List = shipmentPositions.Select(sh => sh.ProductId).ToArray <Guid>(); var articles = new L3AR_GAfAL_0942[0]; if (parameterProductIds.ProductID_List.Length != 0) { articles = cls_Get_Articles_for_ArticleList.Invoke(Connection, Transaction, parameterProductIds, securityTicket).Result; } #endregion #region Set Return Value var returnElements = new List <L5RS_GRSPwAfH_1024>(); foreach (var shipmentPosition in shipmentPositions) { var returnElement = new L5RS_GRSPwAfH_1024 { Article = articles.FirstOrDefault(a => a.CMN_PRO_ProductID == shipmentPosition.ProductId), Position = shipmentPosition, Header_ID = Parameter.Header_ID }; returnElements.Add(returnElement); } returnValue.Result = returnElements.ToArray(); #endregion return(returnValue); #endregion UserCode }
protected static FR_L5RS_GRSPfT_1636_Array Execute(DbConnection Connection, DbTransaction Transaction, P_L5RS_GRSPfT_1636 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L5RS_GRSPfT_1636_Array(); var shipmentPositions = cls_Get_ReturnShipmentPositions.Invoke(Connection, Transaction, Parameter.SearchParam, securityTicket).Result; #region Get Articles var parameterProductIds = new P_L3AR_GAfAL_0942(); parameterProductIds.ProductID_List = shipmentPositions.Select(s => s.CMN_PRO_Product_RefID).ToArray(); var articles = new L3AR_GAfAL_0942[0]; if (parameterProductIds.ProductID_List.Length != 0) { articles = cls_Get_Articles_for_ArticleList.Invoke(Connection, Transaction, parameterProductIds, securityTicket).Result; } #endregion #region Set Return Value var returnElements = new List <L5RS_GRSPfT_1636>(); foreach (var shipmentPosition in shipmentPositions) { var returnElement = new L5RS_GRSPfT_1636 { Article = articles.FirstOrDefault(a => a.CMN_PRO_ProductID == shipmentPosition.CMN_PRO_Product_RefID), Position = shipmentPosition }; returnElements.Add(returnElement); } returnValue.Result = returnElements.ToArray(); #endregion //Put your code here return(returnValue); #endregion UserCode }
protected static FR_L6LG_GDfDLR_1522 Execute(DbConnection Connection, DbTransaction Transaction, P_L6LG_GDfDLR_1522 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L6LG_GDfDLR_1522(); L5SO_GSaCOHDfSH_1446 shipmentAndCustomerOrderDetails = null; #region Retrieve Shipment and CustomerOrder Details P_L5SO_GSaCOHDfSH_1446 shipmentAndCustomerOrderDetailsParameter = new P_L5SO_GSaCOHDfSH_1446(); shipmentAndCustomerOrderDetailsParameter.ShippingHeaderID = Parameter.ShipmentHeaderID; FR_L5SO_GSaCOHDfSH_1446 shipmentAndCustomerOrderDetailsResult = CL5_APOLogistic_ShippingOrder.Atomic.Retrieval.cls_Get_Shipment_and_CustomerOrderHeaderDetails_for_ShipmentHeaderID.Invoke(Connection, Transaction, shipmentAndCustomerOrderDetailsParameter, securityTicket); shipmentAndCustomerOrderDetails = shipmentAndCustomerOrderDetailsResult.Result; #endregion #region Customer name var customerName = ""; if (shipmentAndCustomerOrderDetails != null && shipmentAndCustomerOrderDetails.OrderingCustomer_BusinessParticipant_RefID != Guid.Empty) { ORM_CMN_BPT_BusinessParticipant bp = new ORM_CMN_BPT_BusinessParticipant(); var bpResult = bp.Load(Connection, Transaction, shipmentAndCustomerOrderDetails.OrderingCustomer_BusinessParticipant_RefID); if (bpResult.Status == FR_Status.Success && bp.CMN_BPT_BusinessParticipantID != Guid.Empty) { customerName = bp.DisplayName; } } #endregion #region CustomerAddress var CustomerAddress = CL5_APOLogistic_ShippingOrder.Atomic.Retrieval.cls_Get_CustomerAddress_from_ShipmentHeaderID.Invoke(Connection, Transaction, new P_L5SO_GCAfSHI_1127 { ShipmentHeaderID = Parameter.ShipmentHeaderID }, securityTicket); #endregion #region Organisational unit Dict organizationalUnitName = null; if (shipmentAndCustomerOrderDetails != null && shipmentAndCustomerOrderDetails.CMN_BPT_CTM_OrganizationalUnit_RefID != Guid.Empty) { ORM_CMN_BPT_CTM_OrganizationalUnit orgUnit = new ORM_CMN_BPT_CTM_OrganizationalUnit(); var orgUnitResult = orgUnit.Load(Connection, Transaction, shipmentAndCustomerOrderDetails.CMN_BPT_CTM_OrganizationalUnit_RefID); if (orgUnitResult.Status == FR_Status.Success && orgUnit.CMN_BPT_CTM_OrganizationalUnitID != Guid.Empty) { organizationalUnitName = orgUnit.OrganizationalUnit_Name; } } #endregion L6SO_GASPbtWSvR_1413[] shipmentPositions = new L6SO_GASPbtWSvR_1413[0]; #region Retrieve Shipment Positions with reservation details (including storage place) P_L6SO_GASPbtWSvR_1413 shipmentPositionsParameter = new P_L6SO_GASPbtWSvR_1413(); shipmentPositionsParameter.ShipmentHeaderID = Parameter.ShipmentHeaderID; FR_L6SO_GASPbtWSvR_1413_Array shipmentPositionsForPickingListResult = cls_Get_AllShipmentPositions_bound_to_WarehouseStructure_via_Reservations.Invoke(Connection, Transaction, shipmentPositionsParameter, securityTicket); shipmentPositions = shipmentPositionsForPickingListResult.Result; #endregion #region Retrieve Customer Order Positions for Shipment Positions which are not shipped. P_L5CO_GACOPfUSP_1038 customerOrderPositionsForUnshippedShipmentPositionsParameter = new P_L5CO_GACOPfUSP_1038(); customerOrderPositionsForUnshippedShipmentPositionsParameter.ShipmentHeaderID = Parameter.ShipmentHeaderID; customerOrderPositionsForUnshippedShipmentPositionsParameter.OrganizationalUnitID = Parameter.OrganizationalUnitID; FR_L5CO_GACOPfUSP_1038_Array customerOrderPositionsForUnshippedShipmentPositionsResult = cls_Get_AllCustomerOrderPositions_for_Unshipped_ShipmentPositions.Invoke(Connection, Transaction, customerOrderPositionsForUnshippedShipmentPositionsParameter, securityTicket); L5CO_GACOPfUSP_1038[] customerOrderPositions = customerOrderPositionsForUnshippedShipmentPositionsResult.Result; #endregion // // Taking product array from shipment positions previously retrieved. // Product array is used for taking product information // IEnumerable <Guid> productIdList1 = shipmentPositions.Select(x => x.CMN_PRO_Product_RefID).Distinct(); IEnumerable <Guid> productIdList2 = customerOrderPositions.Select(x => x.CMN_PRO_Product_RefID).Distinct(); Guid[] productIdArray = productIdList1.Concat(productIdList2).Distinct().ToArray(); L3AR_GAfAL_0942[] articlesForArticleList = new L3AR_GAfAL_0942[0]; #region Retrive product details if (productIdArray.Length > 0) { P_L3AR_GAfAL_0942 articlesForArticleListParameter = new P_L3AR_GAfAL_0942(); articlesForArticleListParameter.ProductID_List = productIdArray; FR_L3AR_GAfAL_0942_Array articlesForArticleListResult = cls_Get_Articles_for_ArticleList.Invoke(Connection, Transaction, articlesForArticleListParameter, securityTicket); articlesForArticleList = articlesForArticleListResult.Result; } #endregion List <ORM_LOG_SHP_Shipment_Note> shipmentNoteList = new List <ORM_LOG_SHP_Shipment_Note>(); if (shipmentAndCustomerOrderDetails != null) { shipmentNoteList = ORM_LOG_SHP_Shipment_Note.Query .Search(Connection, Transaction, new ORM_LOG_SHP_Shipment_Note.Query { IsDeleted = false, IsNotePrintedOnDeliveryPaper = true, Shipment_Header_RefID = shipmentAndCustomerOrderDetails.LOG_SHP_Shipment_HeaderID }) .OrderBy(i => i.Creation_Timestamp).ToList(); } List <L6LG_GDfDLR_1522c> commentList = new List <L6LG_GDfDLR_1522c>(); foreach (ORM_LOG_SHP_Shipment_Note shipmentNote in shipmentNoteList) { L6LG_GDfDLR_1522c comment = new L6LG_GDfDLR_1522c(); ORM_CMN_BPT_BusinessParticipant businessParticipant = new ORM_CMN_BPT_BusinessParticipant(); FR_Base bpLoad = businessParticipant.Load(Connection, Transaction, shipmentNote.CreatedBy_BusinessParticipant_RefID); if (bpLoad.Status == FR_Status.Success) { comment.Name = businessParticipant.DisplayName; } comment.Comment = shipmentNote.Comment; commentList.Add(comment); } #region Building return object List <L6LG_GDfDLR_1522a> tempShipmentPositions = new List <L6LG_GDfDLR_1522a>(); foreach (L6SO_GASPbtWSvR_1413 shipmentPosition in shipmentPositions) { L6LG_GDfDLR_1522a tempShipmentPosition = new L6LG_GDfDLR_1522a(); tempShipmentPosition.ShipmentPositionDetails = shipmentPosition; tempShipmentPosition.ProductDetails = articlesForArticleList.FirstOrDefault(a => a.CMN_PRO_ProductID == shipmentPosition.CMN_PRO_Product_RefID); tempShipmentPositions.Add(tempShipmentPosition); } List <L6LG_GDfDLR_1522b> tempCustomerOrderPositions = new List <L6LG_GDfDLR_1522b>(); foreach (L5CO_GACOPfUSP_1038 customerOrderPosition in customerOrderPositions) { L6LG_GDfDLR_1522b tempCustomerOrderPosition = new L6LG_GDfDLR_1522b(); tempCustomerOrderPosition.CustomerOrderPositionDetails = customerOrderPosition; tempCustomerOrderPosition.ProductDetails = articlesForArticleList.FirstOrDefault(a => a.CMN_PRO_ProductID == customerOrderPosition.CMN_PRO_Product_RefID); tempCustomerOrderPositions.Add(tempCustomerOrderPosition); } returnValue.Result = new L6LG_GDfDLR_1522(); returnValue.Result.CustomerName = customerName; returnValue.Result.StreetAndNumber = CustomerAddress != null && CustomerAddress.Result != null ? CustomerAddress.Result.Street_Name + " " + CustomerAddress.Result.Street_Number : "keine Kundenadresse"; returnValue.Result.ZipAndCity = CustomerAddress != null && CustomerAddress.Result != null ? CustomerAddress.Result.ZIP + " " + CustomerAddress.Result.Town : "keine Kundenadresse"; returnValue.Result.OrganizationalUnitName = organizationalUnitName; returnValue.Result.ShipmentPositionList = tempShipmentPositions.ToArray(); returnValue.Result.CustomerOrderPositionList = tempCustomerOrderPositions.ToArray(); returnValue.Result.ShipmentAndCustomerOrderDetails = shipmentAndCustomerOrderDetails; returnValue.Result.CommentList = commentList.ToArray(); #endregion return(returnValue); #endregion UserCode }
protected static FR_L6ED_GPTIwAaS_0816_Array Execute(DbConnection Connection, DbTransaction Transaction, P_L6ED_GPTIwAaS_0816 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L6ED_GPTIwAaS_0816_Array(); #region Get Storage Places var filterCriteria = new P_L3WH_GSPfFC_1504() { WarehouseGroupID = null, WarehouseID = null, AreaID = null, RackID = null, UseShelfIDList = false, ShelfIDs = new Guid[] { Guid.Empty }, UseProductIDList = false, ProductIDs = new Guid[] { Guid.Empty }, BottomShelfQuantity = 1, TopShelfQuantity = null, UseProductTrackingInstanceIDList = Parameter.ProductTrackingInstanceIds != null, ProductTrackingInstanceIDs = Parameter.ProductTrackingInstanceIds == null ? new Guid[] { Guid.Empty } : Parameter.ProductTrackingInstanceIds, StartExpirationDate = Parameter.StartDate, EndExpirationDate = Parameter.EndDate }; var resultStoragePlaces = cls_Get_StoragePlaces_for_FilterCriteria.Invoke( Connection, Transaction, filterCriteria, securityTicket); if (resultStoragePlaces.Status != FR_Status.Success || resultStoragePlaces.Result == null || resultStoragePlaces.Result.Count() == 0) { returnValue.Status = FR_Status.Error_Internal; returnValue.Result = new L6ED_GPTIwAaS_0816[] { }; return(returnValue); } #endregion #region Get Articles var parameterProductIds = new P_L3AR_GAfAL_0942(); parameterProductIds.ProductID_List = resultStoragePlaces.Result.Select(rsp => rsp.Product_RefID).Distinct().ToArray <Guid>(); var articles = new L3AR_GAfAL_0942[0]; if (parameterProductIds.ProductID_List.Length != 0) { articles = cls_Get_Articles_for_ArticleList.Invoke(Connection, Transaction, parameterProductIds, securityTicket).Result; } #endregion #region Get Supplier var parameterProductsBatchNumbers = new P_L6ED_GSRtTIbBNaP_1353(); parameterProductsBatchNumbers.ProductIDs = parameterProductIds.ProductID_List; parameterProductsBatchNumbers.BatchNumbers = resultStoragePlaces.Result.Select(rsp => rsp.BatchNumber).Distinct().ToArray <string>(); var resultSuppliers = cls_Get_StockReceipt_through_TrackingInstance_by_BatchNumbers_and_ProductIDs.Invoke(Connection, Transaction, parameterProductsBatchNumbers, securityTicket); if (resultSuppliers.Status != FR_Status.Success) { returnValue.Status = FR_Status.Error_Internal; returnValue.Result = new L6ED_GPTIwAaS_0816[] { }; return(returnValue); } #endregion #region Get MSR Guid[] productIds = articles.Select(x => x.CMN_PRO_ProductID).ToArray(); var msrForProducts = cls_Get_MSR_for_ProductIDList.Invoke( Connection, Transaction, new P_L3AS_GSMRfPL_1508 { ProductIDList = productIds }, securityTicket ).Result; #endregion #region Set Result var result = new List <L6ED_GPTIwAaS_0816>(); foreach (var storagePlace in resultStoragePlaces.Result) { var suppliers = resultSuppliers.Result .Where(rs => rs.BatchNumber == storagePlace.BatchNumber && rs.ReceiptPosition_Product_RefID == storagePlace.Product_RefID) .GroupBy(s => s.SupplierId, (key, group) => group.First()); var msrForProduct = msrForProducts.SingleOrDefault(x => x.ProductID == storagePlace.Product_RefID); result.Add(new L6ED_GPTIwAaS_0816() { StoragePlaces = storagePlace, Article = articles.FirstOrDefault(a => a.CMN_PRO_ProductID == storagePlace.Product_RefID), Suppliers = suppliers.ToArray(), MSR = (msrForProduct != null) ? msrForProduct.MSR : 0.0 }); } returnValue.Result = result.ToArray(); returnValue.Status = FR_Status.Success; #endregion return(returnValue); #endregion UserCode }
protected static FR_L6LG_GDfDLR_1634 Execute(DbConnection Connection, DbTransaction Transaction, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L6LG_GDfDLR_1634(); returnValue.Result = new L6LG_GDfDLR_1634(); var languages = cls_Get_All_Languages_ForTenantID.Invoke(Connection, Transaction, new P_L2LN_GALFTID_1530() { Tenant_RefID = securityTicket.TenantID }, securityTicket).Result; var account = cls_Get_DisplayName_of_Account.Invoke(Connection, Transaction, securityTicket).Result; List <L6LG_GDfDLR_1634a> returnList = new List <L6LG_GDfDLR_1634a>(); var produtDemandAndSupplyQuantityList = cls_Get_Product_Demand_and_Supply_Quantity.Invoke(Connection, Transaction, securityTicket).Result; List <Guid> productIdList = produtDemandAndSupplyQuantityList.Select(p => p.ProductID).Distinct().ToList(); L3AR_GAfAL_0942[] articlesForArticleList = new L3AR_GAfAL_0942[0]; if (productIdList != null && productIdList.Count > 0) { P_L3AR_GAfAL_0942 articlesForArticleListParameter = new P_L3AR_GAfAL_0942(); articlesForArticleListParameter.ProductID_List = productIdList.ToArray(); FR_L3AR_GAfAL_0942_Array articlesForArticleListResult = cls_Get_Articles_for_ArticleList.Invoke(Connection, Transaction, articlesForArticleListParameter, securityTicket); articlesForArticleList = articlesForArticleListResult.Result; } foreach (L6LG_GPDaSQ_1636 productDemandAndSupplyQuantity in produtDemandAndSupplyQuantityList) { L3AR_GAfAL_0942 article = articlesForArticleList.FirstOrDefault(a => a.CMN_PRO_ProductID == productDemandAndSupplyQuantity.ProductID); if (article == null) { continue; } L6LG_GDfDLR_1634a product = new L6LG_GDfDLR_1634a(); product.ProductID = article.CMN_PRO_ProductID; product.DossageFormName = article.DossageFormName; product.ProducerName = article.ProducerName; product.Product_Name = new Dictionary <string, string>(); foreach (L2LN_GALFTID_1530 lang in languages) { string iso = lang.ISO_639_1; string content = ""; if (article.Product_Name != null && article.Product_Name.Contents != null) { DictEntry dicEntry = article.Product_Name.Contents.FirstOrDefault(c => c.LanguageID == lang.CMN_LanguageID); if (dicEntry != null) { content = dicEntry.Content; } } product.Product_Name.Add(iso, content); } product.Product_Number = article.Product_Number; product.UnitAmount = article.UnitAmount; product.UnitIsoCode = article.UnitIsoCode; product.DemandQuantity = productDemandAndSupplyQuantity.DemandQuantity; product.SupplyQuantity = productDemandAndSupplyQuantity.SupplyQuantity; product.ToBeOrderedQuantity = productDemandAndSupplyQuantity.DemandQuantity - productDemandAndSupplyQuantity.SupplyQuantity; returnList.Add(product); } returnValue.Result.Products = returnList.ToArray(); returnValue.Result.Account = account; return(returnValue); #endregion UserCode }
protected static FR_L6ED_GEDRSPDfPTI_1649_Array Execute(DbConnection Connection, DbTransaction Transaction, P_L6ED_GEDRSPDfPTI_1649 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L6ED_GEDRSPDfPTI_1649_Array(); #region Get Storage Places var filterCriteria = new P_L3WH_GSPfFC_1504() { WarehouseGroupID = null, WarehouseID = null, AreaID = null, RackID = null, UseShelfIDList = false, ShelfIDs = new Guid[] { Guid.Empty }, UseProductIDList = false, ProductIDs = new Guid[] { Guid.Empty }, BottomShelfQuantity = 1, TopShelfQuantity = null, UseProductTrackingInstanceIDList = true, ProductTrackingInstanceIDs = Parameter.ProductTrackingInstanceIdList, StartExpirationDate = null, EndExpirationDate = null }; var resultStoragePlaces = cls_Get_StoragePlaces_for_FilterCriteria.Invoke(Connection, Transaction, filterCriteria, securityTicket); if (resultStoragePlaces.Status != FR_Status.Success || resultStoragePlaces.Result == null || resultStoragePlaces.Result.Count() <= 0) { returnValue.Status = FR_Status.Error_Internal; returnValue.Result = new L6ED_GEDRSPDfPTI_1649[] { }; return(returnValue); } #endregion #region Get Articles var parameterProductIds = new P_L3AR_GAfAL_0942(); parameterProductIds.ProductID_List = resultStoragePlaces.Result.Select(rsp => rsp.Product_RefID).Distinct().ToArray <Guid>(); var articles = new L3AR_GAfAL_0942[0]; if (parameterProductIds.ProductID_List.Length != 0) { articles = cls_Get_Articles_for_ArticleList.Invoke(Connection, Transaction, parameterProductIds, securityTicket).Result; } #endregion #region Set Result var groupingCriterias = resultStoragePlaces.Result.Select(i => new { ProductID = i.Product_RefID, BatchNumber = i.BatchNumber, ExpirationDate = i.ExpirationDate }).Distinct(); var result = new List <L6ED_GEDRSPDfPTI_1649>(); foreach (var groupingCriteria in groupingCriterias) { var trackingInstances = resultStoragePlaces.Result.Where(i => i.Product_RefID == groupingCriteria.ProductID && i.BatchNumber == groupingCriteria.BatchNumber && i.ExpirationDate == groupingCriteria.ExpirationDate).ToList(); result.Add(new L6ED_GEDRSPDfPTI_1649() { FakeID = Guid.NewGuid(), //this is important, because we don't have unique criteria for id on Front Article = articles.FirstOrDefault(a => a.CMN_PRO_ProductID == groupingCriteria.ProductID), BachNumber = groupingCriteria.BatchNumber, ExpiryDate = groupingCriteria.ExpirationDate, TrackingInstances = trackingInstances.Select(i => new L6ED_GEDRSPDfPTI_1649a() { ProductTrackingInstanceID = i.LOG_ProductTrackingInstanceID, ReceiptPositionID = Guid.Empty, ShelfContentID = i.LOG_WRH_Shelf_ContentID, SupplierID = Guid.Empty, SupplierName = "", ReturnableQuantity = 10, PricePerUnit = 0 }).ToArray() }); } returnValue.Result = result.ToArray(); returnValue.Status = FR_Status.Success; #endregion return(returnValue); #endregion UserCode }