HTNResp/Controllers/SubtMedicineDetailController.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using HTNResp.Codes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HTNResp.Controllers
{
    [Login, Authority]
    public class SubtMedicineDetailController : BaseController
    {
        HTNResp.BLL.SubtMedicineDetail bll = new HTNResp.BLL.SubtMedicineDetail();
        HTNResp.BLL.Program bllProgram = new BLL.Program();
        HTNResp.BLL.ProjectDictionary bllProject = new BLL.ProjectDictionary();
        public override ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public ActionResult UploadFile()
        {
            HttpPostedFileBase file = Request.Files[0];
            var fileName = file.FileName;
            var filePath = Server.MapPath(string.Format("~/{0}", "File"));
            file.SaveAs(Path.Combine(filePath, fileName));
            return this.Json(new {
                url= "/File/"+
                fileName
            });
        }
        public override ActionResult AjaxList()
        {
            int start = 0;  // 分页起始条目数
            int length = 0; // 分页每页分页数

            start = Convert.ToInt32(Request.Params["start"]);
            length = Convert.ToInt32(Request.Params["length"]);

            // todo: 读取数据库 获取分页数据
            //string strSql = "Status=1";

            //System.Text.StringBuilder sb = new System.Text.StringBuilder();
            //if (!string.IsNullOrEmpty(Request.Params["DecisionRule"]))
            //{
            //    sb.Append(" and DecisionRule like '%" + Request.Params["DecisionRule"] + "%' ");
            //}
            //if (!string.IsNullOrEmpty(Request.Params["Contents"]))
            //{
            //    sb.Append(" and Contents like '%" + Request.Params["Contents"] + "%' ");
            //}
            //if (!string.IsNullOrEmpty(Request.Params["Sex"]))
            //{
            //    sb.Append(" and Sex='" + Request.Params["Sex"] + "' ");
            //}
            //if (!string.IsNullOrEmpty(Request.Params["EvalGuidId"]))
            //{
            //    sb.Append(" and EvalGuidId='" + Request.Params["EvalGuidId"] + "'");
            //}
后面还有 109 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。