Exemplo n.º 1
0
        public ActionResult Add(Epm_TzProjectPolit model)
        {
            ProjectApprovalView view = new ProjectApprovalView();

            view.ProjectPolit = model;
            Result <int> result       = new Result <int>();
            string       fileDataJson = Request.Form["fileDataJsonFile"];//获取上传文件json字符串

            if (!string.IsNullOrEmpty(fileDataJson))
            {
                view.FileList = JsonConvert.DeserializeObject <List <Base_Files> >(fileDataJson);//将文件信息json字符
            }
            using (ClientSiteClientProxy proxy = new ClientSiteClientProxy(ProxyEx(Request)))
            {
                result = proxy.AddProjectApproval(view);
            }
            return(Json(result.ToResultView()));
        }