Пример #1
0
        public HttpResponseMessage Put([FromBody] DeliveryOrderDetailBO schedulerData)
        {
            SchedulingDL dl = new SchedulingDL();
            var          orderdetailCollection = dl.UpdateScheduler(schedulerData);

            return(Request.CreateResponse(HttpStatusCode.OK, orderdetailCollection, Configuration.Formatters.JsonFormatter));
        }
Пример #2
0
        public HttpResponseMessage GetScheduledContainers()
        {
            SchedulingDL dl   = new SchedulingDL();
            var          list = dl.GetScheduledContainers();

            return(Request.CreateResponse(HttpStatusCode.OK, list, Configuration.Formatters.JsonFormatter));
        }
Пример #3
0
        public HttpResponseMessage GetOrderDetailsbykey(string orderdetailkey)
        {
            SchedulingDL dl   = new SchedulingDL();
            var          list = dl.GetOrderDetailsbykey(orderdetailkey);

            return(Request.CreateResponse(HttpStatusCode.OK, list, Configuration.Formatters.JsonFormatter));
        }
Пример #4
0
        public HttpResponseMessage PostSchedule(ScheduleOrderBO orderBO)
        {
            SchedulingDL dl       = new SchedulingDL();
            var          routeKey = dl.InsertSchedule(orderBO);

            return(Request.CreateResponse(HttpStatusCode.OK, routeKey, Configuration.Formatters.JsonFormatter));
        }
Пример #5
0
        public HttpResponseMessage GetSchedule(string orderKey)
        {
            if (string.IsNullOrEmpty(orderKey))
            {
                return(new HttpResponseMessage(HttpStatusCode.InternalServerError));
            }
            SchedulingDL dl   = new SchedulingDL();
            var          list = dl.GetSchedulingDetails(Guid.Parse(orderKey));

            return(Request.CreateResponse(HttpStatusCode.OK, list, Configuration.Formatters.JsonFormatter));
        }
Пример #6
0
        public HttpResponseMessage GetScheduledContainerdata(string orderdetailkey)
        {
            SchedulingDL dl   = new SchedulingDL();
            AccountingDL obj  = new AccountingDL();
            var          data = dl.GetScheduledContainer(orderdetailkey);

            if (data != null)
            {
                List <AccountingBO> dorder = obj.GetAccountingOptionsbyKey(orderdetailkey);
                data.accountingBO = dorder;
            }
            return(Request.CreateResponse(HttpStatusCode.OK, data, Configuration.Formatters.JsonFormatter));
        }