Exemplo n.º 1
0
        public Object FileUpload()
        {
            Object result;

            result = F3Model.FileUpload(Request.Files);
            return(result);
        }
Exemplo n.º 2
0
        public Object Corr()
        {
            Object         v   = "DeliverySchedule.Controllers.F3Controller.Corr()";
            RequestPackage rqp = RequestPackage.ParseRequest(Request.InputStream, Request.ContentEncoding);
            F3Model        m   = new F3Model(rqp, HttpContext.IsDebuggingEnabled);

            m.Corr();
            return(v);
        }
Exemplo n.º 3
0
        public Object Index()
        {
            RequestPackage rqp = RequestPackage.ParseRequest(Request.InputStream, Request.ContentEncoding);
            F3Model        m   = new F3Model(rqp);

            m.Load(rqp);
            PartialViewResult pvr = PartialView("~/Areas/Order/Views/F3/Index.cshtml", m);

            return(pvr);
        }
Exemplo n.º 4
0
        public Object Index()
        {
            Object         v   = "DeliverySchedule.Controllers.F3Controller.Index()<br />";
            RequestPackage rqp = RequestPackage.ParseRequest(Request.InputStream, Request.ContentEncoding);

            if (rqp != null && !String.IsNullOrWhiteSpace(rqp.Command))
            {
                F3Model m = new F3Model(rqp, HttpContext.IsDebuggingEnabled);
                switch (rqp.Command)
                {
                case "DeliverySchedule.F3.Index.DelColumn":
                    m.DelColumn();
                    m.Load();
                    v = PartialView("~/Views/F3/Table.cshtml", m);
                    break;

                case "DeliverySchedule.F3.Index.Send":
                    m.Send(ControllerContext);
                    m.Load();
                    v = PartialView("~/Views/F3/Table.cshtml", m);
                    break;

                case "DeliverySchedule.F3.Index.Save":
                    m.Update();
                    v = PartialView("~/Views/F3/Index.cshtml", m);
                    break;

                case "DeliverySchedule.F3.Index.Save2":
                    m.Update2();
                    m.Load();
                    v = PartialView("~/Views/F3/Table.cshtml", m);
                    break;

                case "DeliverySchedule.F3.Index.AddColumn":
                    m.AddColumn();
                    m.Load();
                    v = PartialView("~/Views/F3/Table.cshtml", m);
                    break;

                case "GoToDeliverySchedule":
                    m.Load();
                    v = PartialView("~/Views/F3/Index.cshtml", m);
                    break;

                default:
                    v += $"Неизвестная команда: '{rqp.Command}'<br />";
                    break;
                }
            }
            return(v);
        }