コード例 #1
0
        public JsonResult http_getSIPCLists(int reqId, int CommodityID)
        {
            var hubId = _hubAllocationService.GetAllocatedHubId(reqId);
            List <LedgerService.AvailableShippingCodes> freeSICodes = _ledgerService.GetFreeSICodesByCommodity(hubId, CommodityID);
            List <LedgerService.AvailableProjectCodes>  freePCCodes = _ledgerService.GetFreePCCodesByCommodity(hubId, CommodityID);
            FreeSIPC free = new FreeSIPC {
                FreePCCodes = freePCCodes, FreeSICodes = freeSICodes
            };

            return(Json(free, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public FreeSIPC getSIPCLists(int reqId, int CommodityID)
        {
            var hubId = _hubAllocationService.GetAllocatedHubId(reqId);
            List <LedgerService.AvailableShippingCodes> freeSICodes = _ledgerService.GetFreeSICodesByCommodity(hubId, CommodityID);
            List <LedgerService.AvailableProjectCodes>  freePCCodes = _ledgerService.GetFreePCCodesByCommodity(hubId, CommodityID);
            FreeSIPC free = new FreeSIPC {
                FreePCCodes = freePCCodes, FreeSICodes = freeSICodes
            };

            return(free);
        }