Exemplo n.º 1
0
 public ActionResult GetVersionRecord()
 {
     try
     {
         dm_versionEntity dm_VersionEntity = dm_VersionIBLL.GetVersionRecord(CheckPlaform());
         return(Success("获取成功!", dm_VersionEntity));
     }
     catch (Exception ex)
     {
         return(FailException(ex));
     }
 }
        public ActionResult UploadFile(int keyValue, dm_versionEntity entity)
        {
            HttpFileCollection files = System.Web.HttpContext.Current.Request.Files;

            if (files.Count > 0)
            {
                if (files[0].ContentLength == 0 || string.IsNullOrEmpty(files[0].FileName))
                {
                    return(HttpNotFound());
                }
                UserInfo userInfo = LoginUserInfo.Get();

                HttpPostedFile httpPostedFile = files[0];
                entity.App_Name = httpPostedFile.FileName;

                entity.App_DownLoad = OSSHelper.PutObject(dM_BaseSettingIBLL.GetEntityByCache(userInfo.companyId), "", httpPostedFile);
            }
            dm_versionIBLL.SaveEntity(keyValue, entity);
            return(Success("保存成功。"));
        }
 public ActionResult SaveForm(int keyValue, dm_versionEntity entity)
 {
     dm_versionIBLL.SaveEntity(keyValue, entity);
     return(Success("保存成功!"));
 }