コード例 #1
0
        public IHttpActionResult GetRemainCustomerList([FromUri] string closeDate)
        {
            var helper = new FBAInventoryHelper();

            var customerInventoryList = helper.ReturnNonZeroCBMInventoryInfo(closeDate);

            return(Ok(customerInventoryList));
        }
        public IHttpActionResult GetRemainCustomerList([FromUri] string customerCode, [FromUri] DateTime startDate, [FromUri] DateTime closeDate)
        {
            startDate = new DateTime(startDate.Year, startDate.Month, startDate.Day);
            closeDate = new DateTime(closeDate.Year, closeDate.Month, closeDate.Day).AddDays(1);

            var helper = new FBAInventoryHelper();

            if (customerCode == "ALL")
            {
                var customerInventoryList = helper.ReturnNonZeroCBMInventoryInfo(startDate, closeDate);

                return(Ok(customerInventoryList));
            }
            else
            {
                var list = new List <FBAInventoryInfo>();
                //var result = helper.ReturnInventoryInfoByCustomerCode(customerCode, closeDate);
                var result = helper.GetFBAInventoryResidualInfo(customerCode, startDate, closeDate);
                list.Add(result);

                return(Ok(list));
            }
        }