Ejemplo n.º 1
0
        public JsonResult GetRemarks()
        {
            string path       = ConfigurationManager.AppSettings["DocPath"];;
            string virtualPah = Server.MapPath(path);

            string     docPath = Path.Combine(virtualPah, "test19.doc");
            IBuildWord bword   = new BuildWord();

            bword.Load(docPath);
            var marks = bword.GetAllMarks();

            return(Json(marks, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
        //
        // GET: /Labels/
        public ActionResult Index()
        {
            string path       = ConfigurationManager.AppSettings["DocPath"];;
            string virtualPah = Server.MapPath(path);

            string     docPath = Path.Combine(virtualPah, "test19.doc");
            IBuildWord bword   = new BuildWord();

            bword.Load(docPath);
            var marks = bword.GetAllMarks();

            //标签类型
            if (Request.IsAjaxRequest())
            {
                return(View("_LabelsPartial", marks));
            }

            return(View(marks));
        }