示例#1
0
        public Object CreatePrepSpecTable()
        {
            String         msg = "";
            RequestPackage rqp = RequestPackage.ParseRequest(Request.InputStream, Request.ContentEncoding);

            msg = F2Model.CreatePrepSpecTable(rqp);
            return(msg);
        }
示例#2
0
        public Object ParseFile()
        {
            F2Model m   = new F2Model();
            String  msg = "MvcApplication2.Areas.Prep.Controllers.F2Controller.ParseFile()";

            if (Request.Files.Count > 0)
            {
                HttpPostedFileBase f               = Request.Files[0];
                String             fileName        = f.FileName;
                String             fileContentType = f.ContentType;
                Stream             s               = f.InputStream;
                msg = m.ReadTables(fileName, fileContentType, s);
            }
            TempData["q"] = msg;
            return(PartialView("~/Areas/Prep/Views/F2/ParsingResult.cshtml", m));
        }