├── .gitattributes ├── .gitignore ├── CommonAssembly ├── EntityFramework.SqlServer.dll ├── EntityFramework.dll ├── Microsoft.Practices.ServiceLocation.dll ├── Microsoft.Practices.Unity.Configuration.dll ├── Microsoft.Practices.Unity.Interception.Configuration.dll ├── Microsoft.Practices.Unity.Interception.dll ├── Microsoft.Practices.Unity.dll ├── NLog.dll ├── Newtonsoft.Json.dll └── Redis │ ├── ServiceStack.Common.dll │ ├── ServiceStack.Interfaces.dll │ ├── ServiceStack.Redis.dll │ └── ServiceStack.Text.dll ├── LICENCE.txt ├── Mins.QuarkDoc.BusinessService ├── ContainerManager.cs ├── DbServiceBase.cs ├── Document │ ├── ApplicationBusinessService.cs │ ├── DirectoriesBusinessService.cs │ └── DocumentBusinessService.cs ├── Mins.QuarkDoc.BusinessService.csproj ├── Permissions │ └── UserBusinessService.cs └── Properties │ └── AssemblyInfo.cs ├── Mins.QuarkDoc.DataEntities ├── Document │ ├── Application.cs │ ├── Directories.cs │ ├── Documents.cs │ └── VersionHistory.cs ├── Mins.QuarkDoc.DataEntities.csproj ├── Permissions │ └── User.cs └── Properties │ └── AssemblyInfo.cs ├── Mins.QuarkDoc.DataProvider ├── BaseConnection │ ├── BaseMapping.cs │ ├── DBContext.cs │ └── Repository.cs ├── DataProvider │ ├── Document │ │ ├── ApplicationProvider.cs │ │ ├── DirectoriesProvider.cs │ │ ├── DocumentsProvider.cs │ │ └── VersionHistoryProvider.cs │ └── Permissions │ │ └── UserProvider.cs ├── Mapping │ ├── Document │ │ ├── ApplicationMap.cs │ │ ├── DirectoriesMap.cs │ │ ├── DocumentsMap.cs │ │ └── VersionHistoryMap.cs │ └── Permissions │ │ └── UserMap.cs ├── Mins.QuarkDoc.DataProvider.csproj └── Properties │ └── AssemblyInfo.cs ├── Mins.QuarkDoc.Framework ├── Encryption.cs ├── LinqExpression │ ├── DirectSpecification.cs │ ├── ISpecification.cs │ └── Specification.cs ├── Log │ ├── LogHelper.cs │ └── LogStructure.cs ├── Mins.QuarkDoc.Framework.csproj ├── Properties │ └── AssemblyInfo.cs └── SerializeHelper.cs ├── Mins.QuarkDoc.Sino.DataInterface ├── Document │ ├── IApplication.cs │ ├── IDirectories.cs │ ├── IDocuments.cs │ └── IVersionHistory.cs ├── IRepository.cs ├── Mins.QuarkDoc.DataInterface.csproj ├── Permissions │ └── IUser.cs └── Properties │ └── AssemblyInfo.cs ├── Mins.QuarkDoc.Web ├── App_Start │ └── RouteConfig.cs ├── Assets │ ├── Image │ │ ├── avatar.jpg │ │ ├── bg-pricing.jpg │ │ ├── card-1.jpg │ │ ├── card-2.jpg │ │ ├── card-3.jpg │ │ ├── flags │ │ │ ├── AU.png │ │ │ ├── BR.png │ │ │ ├── DE.png │ │ │ ├── GB.png │ │ │ ├── RO.png │ │ │ └── US.png │ │ ├── icon.png │ │ ├── login.jpg │ │ ├── register.jpg │ │ ├── sidebar-1.jpg │ │ ├── sidebar-2.jpg │ │ ├── sidebar-3.jpg │ │ └── sidebar-4.jpg │ ├── Script │ │ ├── QDocFramework.js │ │ ├── core │ │ │ ├── bootstrap-material-design.min.js │ │ │ ├── core.js │ │ │ ├── jquery.min.js │ │ │ ├── popper.min.js │ │ │ ├── vue.js │ │ │ ├── wangEditor.min.js │ │ │ └── xss.js │ │ ├── demo │ │ │ ├── demo.js │ │ │ └── jquery.sharrre.js │ │ ├── material-dashboard.min.js │ │ ├── plugins │ │ │ ├── arrive.min.js │ │ │ ├── bootstrap-datetimepicker.min.js │ │ │ ├── bootstrap-notify.js │ │ │ ├── bootstrap-selectpicker.js │ │ │ ├── bootstrap-tagsinput.js │ │ │ ├── chartist.min.js │ │ │ ├── fullcalendar.min.js │ │ │ ├── jasny-bootstrap.min.js │ │ │ ├── jquery-jvectormap.js │ │ │ ├── jquery.bootstrap-wizard.js │ │ │ ├── jquery.dataTables.min.js │ │ │ ├── jquery.validate.min.js │ │ │ ├── messages_zh.js │ │ │ ├── moment.min.js │ │ │ ├── nouislider.min.js │ │ │ ├── perfect-scrollbar.jquery.min.js │ │ │ └── sweetalert2.js │ │ └── tools │ │ │ ├── Fjquery.min.js │ │ │ └── parse_new.js │ └── Style │ │ ├── Demo │ │ └── demo.css │ │ ├── material-dashboard.min.css │ │ ├── tools │ │ ├── bootstrap.min.css │ │ └── parse_new.css │ │ └── wangEditor.min.css ├── Controllers │ ├── ApplicationController.cs │ ├── BaseController │ │ └── BasicsAuthentication.cs │ ├── DefaultController.cs │ ├── DocumentController.cs │ ├── HomeController.cs │ ├── LoginController.cs │ ├── ResetPasswordController.cs │ └── UserController.cs ├── DBScript │ └── DBScript.sql ├── Global.asax ├── Global.asax.cs ├── Mins.QuarkDoc.Web.csproj ├── Properties │ ├── AssemblyInfo.cs │ └── PublishProfiles │ │ └── FolderProfile.pubxml ├── Views │ ├── Application │ │ └── CatalogEdit.cshtml │ ├── Default │ │ ├── HttpSimulate.cshtml │ │ ├── Index.cshtml │ │ ├── JsonFormatting.cshtml │ │ └── JsonToURL.cshtml │ ├── Document │ │ ├── DocumentEdit.cshtml │ │ └── Index.cshtml │ ├── Home │ │ └── Index.cshtml │ ├── Login │ │ └── Index.cshtml │ ├── ResetPassword │ │ └── Index.cshtml │ ├── User │ │ └── Index.cshtml │ └── web.config ├── Web.Debug.config ├── Web.Release.config ├── Web.config └── packages.config ├── Mins.QuarkDoc.sln └── ReadMe.md /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | *.cs linguist-language=C# 15 | *.js linguist-language=C# 16 | *.css linguist-language=C# 17 | ############################################################################### 18 | # Set the merge driver for project and solution files 19 | # 20 | # Merging from the command prompt will add diff markers to the files if there 21 | # are conflicts (Merging from VS is not affected by the settings below, in VS 22 | # the diff markers are never inserted). Diff markers may cause the following 23 | # file extensions to fail to load in VS. An alternative would be to treat 24 | # these files as binary and thus will always conflict and require user 25 | # intervention with every merge. To do so, just uncomment the entries below 26 | ############################################################################### 27 | #*.sln merge=binary 28 | #*.csproj merge=binary 29 | #*.vbproj merge=binary 30 | #*.vcxproj merge=binary 31 | #*.vcproj merge=binary 32 | #*.dbproj merge=binary 33 | #*.fsproj merge=binary 34 | #*.lsproj merge=binary 35 | #*.wixproj merge=binary 36 | #*.modelproj merge=binary 37 | #*.sqlproj merge=binary 38 | #*.wwaproj merge=binary 39 | 40 | ############################################################################### 41 | # behavior for image files 42 | # 43 | # image files are treated as binary by default. 44 | ############################################################################### 45 | #*.jpg binary 46 | #*.png binary 47 | #*.gif binary 48 | 49 | ############################################################################### 50 | # diff behavior for common document formats 51 | # 52 | # Convert binary document formats to text before diffing them. This feature 53 | # is only available from the command line. Turn it on by uncommenting the 54 | # entries below. 55 | ############################################################################### 56 | #*.doc diff=astextplain 57 | #*.DOC diff=astextplain 58 | #*.docx diff=astextplain 59 | #*.DOCX diff=astextplain 60 | #*.dot diff=astextplain 61 | #*.DOT diff=astextplain 62 | #*.pdf diff=astextplain 63 | #*.PDF diff=astextplain 64 | #*.rtf diff=astextplain 65 | #*.RTF diff=astextplain -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /CommonAssembly/EntityFramework.SqlServer.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/EntityFramework.SqlServer.dll -------------------------------------------------------------------------------- /CommonAssembly/EntityFramework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/EntityFramework.dll -------------------------------------------------------------------------------- /CommonAssembly/Microsoft.Practices.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Microsoft.Practices.ServiceLocation.dll -------------------------------------------------------------------------------- /CommonAssembly/Microsoft.Practices.Unity.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Microsoft.Practices.Unity.Configuration.dll -------------------------------------------------------------------------------- /CommonAssembly/Microsoft.Practices.Unity.Interception.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Microsoft.Practices.Unity.Interception.Configuration.dll -------------------------------------------------------------------------------- /CommonAssembly/Microsoft.Practices.Unity.Interception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Microsoft.Practices.Unity.Interception.dll -------------------------------------------------------------------------------- /CommonAssembly/Microsoft.Practices.Unity.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Microsoft.Practices.Unity.dll -------------------------------------------------------------------------------- /CommonAssembly/NLog.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/NLog.dll -------------------------------------------------------------------------------- /CommonAssembly/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /CommonAssembly/Redis/ServiceStack.Common.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Redis/ServiceStack.Common.dll -------------------------------------------------------------------------------- /CommonAssembly/Redis/ServiceStack.Interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Redis/ServiceStack.Interfaces.dll -------------------------------------------------------------------------------- /CommonAssembly/Redis/ServiceStack.Redis.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Redis/ServiceStack.Redis.dll -------------------------------------------------------------------------------- /CommonAssembly/Redis/ServiceStack.Text.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/CommonAssembly/Redis/ServiceStack.Text.dll -------------------------------------------------------------------------------- /LICENCE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/LICENCE.txt -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/ContainerManager.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Practices.Unity; 2 | using Mins.QuarkDoc.DataInterface; 3 | using Mins.QuarkDoc.DataProvider; 4 | namespace Mins.QuarkDoc.BusinessService 5 | { 6 | public static class ContainerManager where TEntiy : class 7 | { 8 | public static IUnityContainer GetContainer() 9 | { 10 | IUnityContainer container = new UnityContainer(); 11 | container.RegisterType, Repository>(); 12 | return container; 13 | } 14 | 15 | /// 16 | /// 根据容器解析公共接口 17 | /// 18 | /// 19 | public static IRepository GetResolve() 20 | { 21 | return GetContainer().Resolve>(); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/DbServiceBase.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.Framework; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq.Expressions; 5 | namespace Mins.QuarkDoc.BusinessService 6 | { 7 | public class DbServiceBase where TEntity : class 8 | { 9 | #region 基础公共操作方法 10 | 11 | 12 | #region Expression 13 | 14 | public void Insert(TEntity entiy) 15 | { 16 | ContainerManager.GetResolve().Insert(entiy); 17 | } 18 | 19 | public void Update(TEntity entiy) 20 | { 21 | ContainerManager.GetResolve().Update(entiy); 22 | } 23 | 24 | public void UpdateField(TEntity entiy, string[] paramField) 25 | { 26 | ContainerManager.GetResolve().UpdateField(entiy, paramField); 27 | } 28 | 29 | public void Delete(TEntity entiy) 30 | { 31 | ContainerManager.GetResolve().Delete(entiy); 32 | } 33 | 34 | public void Delete(Expression> exception) 35 | { 36 | ContainerManager.GetResolve().Delete(new DirectSpecification(exception)); 37 | } 38 | 39 | public IEnumerable FindAll() 40 | { 41 | return ContainerManager.GetResolve().FindAll(); 42 | } 43 | 44 | public IEnumerable FindAll(Expression> exception) 45 | { 46 | return ContainerManager.GetResolve().FindAll(new DirectSpecification(exception)); 47 | } 48 | 49 | public TEntity FirstOrDefault(Expression> exception) 50 | { 51 | return ContainerManager.GetResolve().FirstOrDefault(new DirectSpecification(exception)); 52 | 53 | } 54 | 55 | public IEnumerable GetPagedElements(int pageIndex, ISpecification specification, Expression> orderByExpression, bool ascending, int pageSize = 10) 56 | { 57 | return ContainerManager.GetResolve().GetPagedElements(pageIndex, specification, orderByExpression, ascending,pageSize); 58 | } 59 | #endregion 60 | 61 | #region DirectSpecification 62 | public int GetPagedCount(DirectSpecification exception) 63 | { 64 | int total= ContainerManager.GetResolve().GetPagedCount(exception); 65 | return total; 66 | } 67 | 68 | public IEnumerable FindAll(DirectSpecification exception) 69 | { 70 | return ContainerManager.GetResolve().FindAll(exception); 71 | } 72 | public TEntity FirstOrDefault(DirectSpecification exception) 73 | { 74 | return ContainerManager.GetResolve().FirstOrDefault(exception); 75 | } 76 | public void Delete(DirectSpecification exception) 77 | { 78 | ContainerManager.GetResolve().Delete(exception); 79 | } 80 | #endregion 81 | 82 | 83 | #endregion 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/Document/ApplicationBusinessService.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | 3 | namespace Mins.QuarkDoc.BusinessService 4 | { 5 | public class ApplicationBusinessService : DbServiceBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/Document/DirectoriesBusinessService.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | 3 | namespace Mins.QuarkDoc.BusinessService 4 | { 5 | public class DirectoriesBusinessService : DbServiceBase 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/Document/DocumentBusinessService.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | 3 | namespace Mins.QuarkDoc.BusinessService 4 | { 5 | public class DocumentBusinessService:DbServiceBase 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/Mins.QuarkDoc.BusinessService.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {8E21A1EB-3354-456D-B969-90E32E562824} 8 | Library 9 | Properties 10 | Mins.QuarkDoc.BusinessService 11 | Mins.QuarkDoc.BusinessService 12 | v4.5 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | False 36 | ..\CommonAssembly\Microsoft.Practices.Unity.dll 37 | 38 | 39 | ..\CommonAssembly\Microsoft.Practices.Unity.Configuration.dll 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | {5fcbe31a-7746-430e-9ae5-e6a4ec699a2b} 62 | Mins.QuarkDoc.DataEntities 63 | 64 | 65 | {69faa263-2d44-4816-a498-744ef62cf150} 66 | Mins.QuarkDoc.DataProvider 67 | 68 | 69 | {922704fd-b940-42be-afe6-2c3c2cab143a} 70 | Mins.QuarkDoc.Framework 71 | 72 | 73 | {63a7ff9f-6b5f-4d57-a8e0-cd0e986a15d1} 74 | Mins.QuarkDoc.DataInterface 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/Permissions/UserBusinessService.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | using Mins.QuarkDoc.Framework; 3 | namespace Mins.QuarkDoc.BusinessService 4 | { 5 | public class UserBusinessService : DbServiceBase 6 | { 7 | public User Login(string eamil, string password) 8 | { 9 | User user = FirstOrDefault(new DirectSpecification(t => t.Email == eamil && t.Password == password & t.IsEnabled)); 10 | return user; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.BusinessService/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Mins.QuarkDoc.BusinessService")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Mins.QuarkDoc.BusinessService")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("8e21a1eb-3354-456d-b969-90e32e562824")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataEntities/Document/Application.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Mins.QuarkDoc.DataEntities 4 | { 5 | public class Application 6 | { 7 | /// 8 | /// 主键 9 | /// 10 | public string Id { get; set; } 11 | /// 12 | /// 项目名称 13 | /// 14 | public string ProjectName { get; set; } 15 | /// 16 | /// 描述 17 | /// 18 | public string Description { get; set; } 19 | /// 20 | /// 用户主键 21 | /// 22 | public string UserId { get; set; } 23 | /// 24 | /// 启用标识 25 | /// 26 | public bool IsEnabled { get; set; } = true; 27 | /// 28 | /// 创建时间 29 | /// 30 | public DateTime CreateTime { get; set; } = DateTime.Now; 31 | /// 32 | /// 导航属性 33 | /// 34 | public User User { get; set; } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataEntities/Document/Directories.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Mins.QuarkDoc.DataEntities 4 | { 5 | public class Directories 6 | { 7 | /// 8 | /// 主键 9 | /// 10 | public string Id { get; set; } 11 | /// 12 | /// 项目主键 13 | /// 14 | public string ApplicationId { get; set; } 15 | /// 16 | /// 目录名称 17 | /// 18 | public string DirectoryName { get; set; } 19 | /// 20 | /// 上级目录主键 21 | /// 22 | public string DirectoryId { get; set; } 23 | /// 24 | /// 排序 25 | /// 26 | public int Sort { get; set; } 27 | /// 28 | /// 创建时间 29 | /// 30 | public DateTime CreateTime { get; set; } = DateTime.Now; 31 | /// 32 | /// 启用标识 33 | /// 34 | public bool IsEnabled { get; set; } = true; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataEntities/Document/Documents.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Mins.QuarkDoc.DataEntities 4 | { 5 | public class Documents 6 | { 7 | /// 8 | /// 主键 9 | /// 10 | public string Id { get; set; } 11 | /// 12 | /// 项目主键 13 | /// 14 | public string ApplicationId { get; set; } 15 | /// 16 | /// 标题 17 | /// 18 | public string Title { get; set; } 19 | /// 20 | /// 上级目录主键 21 | /// 22 | public string DirectoryId { get; set; } 23 | /// 24 | /// 排序 25 | /// 26 | public int Sort { get; set; } 27 | /// 28 | /// 文档内容 29 | /// 30 | public string Document { get; set; } 31 | /// 32 | /// 创建时间 33 | /// 34 | public DateTime CreateTime { get; set; } 35 | /// 36 | /// 启用标识 37 | /// 38 | public bool IsEnabled { get; set; } = true; 39 | 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataEntities/Document/VersionHistory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | namespace Mins.QuarkDoc.DataEntities 3 | { 4 | public class VersionHistory 5 | { 6 | public string Id { get; set; } 7 | /// 8 | /// 修改时间 9 | /// 10 | public DateTime ModifyTime { get; set; } = DateTime.Now; 11 | /// 12 | /// 用户主键 13 | /// 14 | public string UserId { get; set; } 15 | /// 16 | /// 历史文档内容 17 | /// 18 | public string Document { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataEntities/Mins.QuarkDoc.DataEntities.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {5FCBE31A-7746-430E-9AE5-E6A4EC699A2B} 8 | Library 9 | Properties 10 | Mins.QuarkDoc.DataEntities 11 | Mins.QuarkDoc.DataEntities 12 | v4.5 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataEntities/Permissions/User.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Mins.QuarkDoc.DataEntities 4 | { 5 | /// 6 | /// 用户表 7 | /// Author:http://www.cnblogs.com/jonins 8 | /// Time:2018年8月15日 9 | /// 10 | public class User 11 | { 12 | /// 13 | /// 主键 14 | /// 15 | public string Id { get; set; } 16 | /// 17 | /// 用户名 18 | /// 19 | public string UserName { get; set; } 20 | /// 21 | /// 登录账号 22 | /// 23 | public string Email { get; set; } 24 | /// 25 | /// 登录密码 26 | /// 27 | public string Password { get; set; } 28 | /// 29 | /// 创建时间 30 | /// 31 | public DateTime CreateTime { get; set; } = DateTime.Now; 32 | /// 33 | /// 是否是管理员 34 | /// 35 | public bool IsAdmin { get; set; } = false; 36 | /// 37 | /// 启用标识 38 | /// 39 | public bool IsEnabled { get; set; } = true; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataEntities/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Mins.QuarkDoc.DataEntities")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Mins.QuarkDoc.DataEntities")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("5fcbe31a-7746-430e-9ae5-e6a4ec699a2b")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/BaseConnection/BaseMapping.cs: -------------------------------------------------------------------------------- 1 | using System.Data.Entity.ModelConfiguration; 2 | 3 | namespace Mins.QuarkDoc.DataProvider 4 | { 5 | public class BaseMapping : EntityTypeConfiguration where TEntiy : class 6 | { 7 | 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/BaseConnection/DBContext.cs: -------------------------------------------------------------------------------- 1 | using System.Data.Entity; 2 | namespace Mins.QuarkDoc.DataProvider 3 | { 4 | public class DBContext : DbContext where TEntiy : class 5 | { 6 | static DBContext() 7 | { 8 | Database.SetInitializer>(null); 9 | } 10 | public DBContext() 11 | : base("Name=DBContext") 12 | { 13 | } 14 | public DbSet Entity { get; set; } 15 | protected override void OnModelCreating(DbModelBuilder modelBuilder) 16 | { 17 | modelBuilder.Conventions.Remove(); 18 | base.OnModelCreating(modelBuilder); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/BaseConnection/Repository.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataInterface; 2 | using Mins.QuarkDoc.Framework; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Data.Entity; 6 | using System.Data.Entity.Core.Objects; 7 | using System.Data.Entity.Infrastructure; 8 | using System.Data.Entity.Validation; 9 | using System.Linq; 10 | using System.Linq.Expressions; 11 | using System.Reflection; 12 | 13 | namespace Mins.QuarkDoc.DataProvider 14 | { 15 | public class Repository : IRepository where TEntity : class 16 | { 17 | 18 | #region EF 19 | /// 20 | /// 插入数据库记录 21 | /// 22 | /// 23 | public void Insert(TEntity entiy) 24 | { 25 | using (DBContext context = new DBContext()) 26 | { 27 | try 28 | { 29 | TEntity entity = context.Set().Add(entiy); 30 | context.SaveChanges(); 31 | } 32 | catch (DbEntityValidationException ex) 33 | { 34 | throw ex; 35 | } 36 | } 37 | } 38 | /// 39 | /// 删除对象 40 | /// 41 | /// 42 | public void Delete(TEntity item) 43 | { 44 | using (DBContext context = new DBContext()) 45 | { 46 | try 47 | { 48 | context.Set().Attach(item); 49 | context.Set().Remove(item); 50 | context.SaveChanges(); 51 | } 52 | catch (DbEntityValidationException ex) 53 | { 54 | throw ex; 55 | } 56 | } 57 | } 58 | /// 59 | /// 删除对象 60 | /// 61 | /// 62 | public void Delete(ISpecification speicification) 63 | { 64 | using (DBContext context = new DBContext()) 65 | { 66 | try 67 | { 68 | IEnumerable entityList = context.Set().Where(speicification.SatisfiedBy()).ToList(); 69 | if (entityList.Count() > 0) 70 | { 71 | foreach (var item in entityList) 72 | { 73 | context.Set().Attach(item); 74 | context.Set().Remove(item); 75 | } 76 | context.SaveChanges(); 77 | } 78 | } 79 | catch (DbEntityValidationException ex) 80 | { 81 | throw ex; 82 | } 83 | } 84 | } 85 | 86 | /// 87 | /// 更新对象 88 | /// 89 | /// 实体对象 90 | public void Update(TEntity item) 91 | { 92 | using (DBContext context = new DBContext()) 93 | { 94 | if (context.Entry(item).State == EntityState.Modified) 95 | context.Set().Attach(item); 96 | context.Entry(item).State = EntityState.Modified; 97 | try 98 | { 99 | context.SaveChanges(); 100 | } 101 | catch (DbEntityValidationException ex) 102 | { 103 | throw ex; 104 | } 105 | } 106 | } 107 | /// 108 | /// 更新指定字段 109 | /// 110 | /// 实体对象 111 | /// 字段 112 | public void UpdateField(TEntity item, params string[] paramField) 113 | { 114 | using (DBContext context = new DBContext()) 115 | { 116 | try 117 | { 118 | ObjectContext dbcontext = ((IObjectContextAdapter)context).ObjectContext; 119 | 120 | context.Set().Attach(item); 121 | 122 | 123 | ObjectStateEntry stateEntry = dbcontext.ObjectStateManager.GetObjectStateEntry(item); 124 | foreach (string field in paramField) 125 | { 126 | stateEntry.SetModifiedProperty(field); 127 | } 128 | 129 | stateEntry.SetModified(); 130 | 131 | dbcontext.SaveChanges(); 132 | } 133 | catch (DbEntityValidationException ex) 134 | { 135 | throw ex; 136 | } 137 | } 138 | } 139 | /// 140 | /// 查询所有记录 141 | /// 142 | /// 143 | public IEnumerable FindAll() 144 | { 145 | using (DBContext context = new DBContext()) 146 | { 147 | return context.Set().ToList(); 148 | } 149 | } 150 | /// 151 | /// 查找第一条或默认记录 152 | /// 153 | /// 过滤条件 154 | /// 155 | public TEntity FirstOrDefault(ISpecification specification) 156 | { 157 | 158 | using (DBContext context = new DBContext()) 159 | { 160 | try 161 | { 162 | return context.Set().FirstOrDefault(specification.SatisfiedBy()); 163 | } 164 | catch (DbEntityValidationException) 165 | { 166 | throw; 167 | } 168 | } 169 | 170 | 171 | 172 | } 173 | 174 | /// 175 | /// 查询所有记录 176 | /// 177 | /// 过滤条件 178 | /// 关联对象 179 | /// 180 | public IEnumerable FindAll(ISpecification specification, bool includeDefalutObjects = false, List includeObjects = null) 181 | { 182 | using (DBContext context = new DBContext()) 183 | { 184 | DbQuery dbQuery = context.Set(); 185 | 186 | if (includeDefalutObjects) 187 | { 188 | if (includeObjects != null) 189 | includeObjects.AddRange(GetDefaultJionObjects()); 190 | else 191 | includeObjects = GetDefaultJionObjects(); 192 | includeObjects = includeObjects.Distinct().ToList(); 193 | } 194 | else 195 | includeObjects = new List(); 196 | 197 | foreach (var item in includeObjects) 198 | { 199 | dbQuery = dbQuery.Include(item); 200 | } 201 | if (specification != null) 202 | return dbQuery.Where(specification.SatisfiedBy()).ToList(); 203 | else 204 | return dbQuery.ToList(); 205 | } 206 | } 207 | /// 208 | /// 获得行数 209 | /// 210 | /// 过滤条件 211 | /// 212 | public int GetPagedCount(ISpecification specification) 213 | { 214 | using (DBContext context = new DBContext()) 215 | { 216 | try 217 | { 218 | return (specification != null) ? context.Set().Count(specification.SatisfiedBy()) : context.Set().Count(); 219 | } 220 | catch (DbEntityValidationException) 221 | { 222 | throw; 223 | } 224 | } 225 | } 226 | public IEnumerable GetPagedElements(int pageIndex, List includeObjects, ISpecification specification, Expression> orderByExpression, bool ascending, int pageSize = 10) 227 | { 228 | using (DBContext context = new DBContext()) 229 | { 230 | IQueryable entities = context.Set(); 231 | 232 | ///默认添加该对象的关联属性 233 | if (includeObjects != null) 234 | includeObjects.AddRange(GetDefaultJionObjects()); 235 | else 236 | includeObjects = GetDefaultJionObjects(); 237 | 238 | foreach (var includeObject in includeObjects.Distinct()) 239 | { 240 | entities = entities.Include(includeObject); 241 | } 242 | if (specification != null) 243 | { 244 | entities = entities 245 | .Where(specification.SatisfiedBy()); 246 | } 247 | return (ascending) 248 | ? 249 | entities 250 | .OrderBy(orderByExpression) 251 | .Skip(pageSize * (pageIndex - 1)) 252 | .Take(pageSize) 253 | .ToList() 254 | : 255 | entities 256 | .OrderByDescending(orderByExpression) 257 | .Skip(pageSize * (pageIndex - 1)) 258 | .Take(pageSize) 259 | .ToList(); 260 | } 261 | } 262 | 263 | public IEnumerable GetPagedElements(int pageIndex, ISpecification specification, Expression> orderByExpression, bool ascending, int pageSize = 10) 264 | { 265 | return GetPagedElements(pageIndex, null, specification, orderByExpression, ascending, pageSize); 266 | } 267 | 268 | /// 269 | /// 获取默认表关联对象 270 | /// 271 | /// 272 | private List GetDefaultJionObjects() 273 | { 274 | PropertyInfo[] propertities = typeof(TEntity).GetProperties(); 275 | List includeObjects = new List(); 276 | if (includeObjects == null) 277 | includeObjects = new List(); 278 | foreach (var item in propertities) 279 | { 280 | Type type = item.PropertyType; 281 | 282 | if (type.Namespace.Equals(typeof(TEntity).Namespace) && !type.FullName.Contains("+")) 283 | { 284 | includeObjects.Add(item.Name); 285 | } 286 | } 287 | return includeObjects; 288 | } 289 | #endregion 290 | } 291 | } 292 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/DataProvider/Document/ApplicationProvider.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | using Mins.QuarkDoc.DataInterface; 3 | namespace Mins.QuarkDoc.DataProvider 4 | { 5 | public class ApplicationProvider : Repository, IApplication 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/DataProvider/Document/DirectoriesProvider.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | using Mins.QuarkDoc.DataInterface; 3 | namespace Mins.QuarkDoc.DataProvider 4 | { 5 | public class DirectoriesProvider : Repository, IDirectories 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/DataProvider/Document/DocumentsProvider.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | using Mins.QuarkDoc.DataInterface; 3 | 4 | namespace Mins.QuarkDoc.DataProvider 5 | { 6 | public class DocumentsProvider : Repository, IDocuments 7 | { 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/DataProvider/Document/VersionHistoryProvider.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | using Mins.QuarkDoc.DataInterface; 3 | namespace Mins.QuarkDoc.DataProvider 4 | { 5 | public class VersionHistoryProvider : Repository, IVersionHistory 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/DataProvider/Permissions/UserProvider.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | using Mins.QuarkDoc.DataInterface; 3 | namespace Mins.QuarkDoc.DataProvider 4 | { 5 | public class UserProvider : Repository,IUser 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/Mapping/Document/ApplicationMap.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataProvider 3 | { 4 | public class ApplicationMap : BaseMapping 5 | { 6 | public ApplicationMap() 7 | { 8 | this.HasKey(t => t.Id); 9 | this.ToTable("Application"); 10 | this.Property(t => t.Id).HasColumnName("Id"); 11 | this.Property(t => t.ProjectName).HasColumnName("ProjectName"); 12 | this.Property(t => t.UserId).HasColumnName("UserId"); 13 | this.Property(t => t.IsEnabled).HasColumnName("IsEnabled"); 14 | this.Property(t => t.Description).HasColumnName("Description"); 15 | this.Property(t => t.CreateTime).HasColumnName("CreateTime"); 16 | this.HasOptional(t => t.User).WithMany().HasForeignKey(d => d.UserId); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/Mapping/Document/DirectoriesMap.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataProvider 3 | { 4 | public class DirectoriesMap : BaseMapping 5 | { 6 | public DirectoriesMap() 7 | { 8 | this.HasKey(t => t.Id); 9 | this.ToTable("Directories"); 10 | this.Property(t => t.Id).HasColumnName("Id"); 11 | this.Property(t => t.ApplicationId).HasColumnName("ApplicationId"); 12 | this.Property(t => t.DirectoryName).HasColumnName("DirectoryName"); 13 | this.Property(t => t.DirectoryId).HasColumnName("DirectoryId"); 14 | this.Property(t => t.Sort).HasColumnName("Sort"); 15 | this.Property(t => t.CreateTime).HasColumnName("CreateTime"); 16 | this.Property(t => t.IsEnabled).HasColumnName("IsEnabled"); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/Mapping/Document/DocumentsMap.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataProvider 3 | { 4 | public class DocumentsMap : BaseMapping 5 | { 6 | public DocumentsMap() 7 | { 8 | this.HasKey(t => t.Id); 9 | this.ToTable("Documents"); 10 | this.Property(t => t.Id).HasColumnName("Id"); 11 | this.Property(t => t.CreateTime).HasColumnName("CreateTime"); 12 | this.Property(t => t.DirectoryId).HasColumnName("DirectoryId"); 13 | this.Property(t => t.Document).HasColumnName("Document"); 14 | this.Property(t => t.IsEnabled).HasColumnName("IsEnabled"); 15 | this.Property(t => t.Sort).HasColumnName("Sort"); 16 | this.Property(t => t.Title).HasColumnName("Title"); 17 | this.Property(t => t.ApplicationId).HasColumnName("ApplicationId"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/Mapping/Document/VersionHistoryMap.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataProvider 3 | { 4 | public class VersionHistoryMap : BaseMapping 5 | { 6 | public VersionHistoryMap() 7 | { 8 | this.HasKey(t => t.Id); 9 | this.ToTable("Application"); 10 | this.Property(t => t.Id).HasColumnName("Id"); 11 | 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/Mapping/Permissions/UserMap.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataProvider 3 | { 4 | public class UserMap : BaseMapping 5 | { 6 | public UserMap() 7 | { 8 | this.HasKey(t => t.Id); 9 | this.ToTable("User"); 10 | this.Property(t => t.Id).HasColumnName("Id"); 11 | this.Property(t => t.Email).HasColumnName("Email"); 12 | this.Property(t => t.IsEnabled).HasColumnName("IsEnabled"); 13 | this.Property(t => t.Password).HasColumnName("Password"); 14 | this.Property(t => t.UserName).HasColumnName("UserName"); 15 | this.Property(t => t.IsAdmin).HasColumnName("UserName"); 16 | this.Property(t => t.CreateTime).HasColumnName("CreateTime"); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/Mins.QuarkDoc.DataProvider.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {69FAA263-2D44-4816-A498-744EF62CF150} 8 | Library 9 | Properties 10 | Mins.QuarkDoc.DataProvider 11 | Mins.QuarkDoc.DataProvider 12 | v4.5 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | ..\CommonAssembly\EntityFramework.dll 36 | 37 | 38 | ..\CommonAssembly\EntityFramework.SqlServer.dll 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | {5fcbe31a-7746-430e-9ae5-e6a4ec699a2b} 69 | Mins.QuarkDoc.DataEntities 70 | 71 | 72 | {922704fd-b940-42be-afe6-2c3c2cab143a} 73 | Mins.QuarkDoc.Framework 74 | 75 | 76 | {63a7ff9f-6b5f-4d57-a8e0-cd0e986a15d1} 77 | Mins.QuarkDoc.DataInterface 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.DataProvider/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Mins.QuarkDoc.DataProvider")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Mins.QuarkDoc.DataProvider")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("69faa263-2d44-4816-a498-744ef62cf150")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/Encryption.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Security.Cryptography; 3 | using System.Text; 4 | 5 | namespace Mins.QuarkDoc.Framework 6 | { 7 | public class Encryption 8 | { 9 | public static string MD5Encrypt64(string password) 10 | { 11 | string cl = password; 12 | MD5 md5 = MD5.Create(); 13 | byte[] s = md5.ComputeHash(Encoding.UTF8.GetBytes(cl)); 14 | return Convert.ToBase64String(s); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/LinqExpression/DirectSpecification.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | namespace Mins.QuarkDoc.Framework 4 | { 5 | public sealed class DirectSpecification 6 | : Specification 7 | where TEntity : class 8 | { 9 | #region Members 10 | 11 | Expression> _MatchingCriteria; 12 | 13 | #endregion 14 | 15 | #region Constructor 16 | public DirectSpecification(Expression> matchingCriteria) 17 | { 18 | if (matchingCriteria == (Expression>)null) 19 | throw new ArgumentNullException("matchingCriteria"); 20 | _MatchingCriteria = matchingCriteria; 21 | } 22 | 23 | #endregion 24 | 25 | #region Override 26 | public override Expression> SatisfiedBy() 27 | { 28 | return _MatchingCriteria; 29 | } 30 | #endregion 31 | 32 | 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/LinqExpression/ISpecification.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | 4 | namespace Mins.QuarkDoc.Framework 5 | { 6 | public interface ISpecification 7 | where TEntity : class 8 | { 9 | Expression> SatisfiedBy(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/LinqExpression/Specification.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq.Expressions; 3 | 4 | namespace Mins.QuarkDoc.Framework 5 | { 6 | public abstract class Specification 7 | : ISpecification 8 | where TEntity : class 9 | { 10 | #region ISpecification Members 11 | public abstract Expression> SatisfiedBy(); 12 | 13 | #endregion 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/Log/LogHelper.cs: -------------------------------------------------------------------------------- 1 | namespace Mins.QuarkDoc.Framework 2 | { 3 | public class LogHelper 4 | { 5 | /// 6 | /// 记录调试信息 7 | /// 8 | /// 9 | public static void WriteInfoLog(string message) 10 | { 11 | 12 | } 13 | /// 14 | /// 记录报错日志 15 | /// 16 | /// 17 | public static void WriteErrorLog(System.Exception exception) 18 | { 19 | 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/Log/LogStructure.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Mins.QuarkDoc.Framework 4 | { 5 | public class LogStructure 6 | { 7 | public string Message { get; set; } 8 | public string Exception { get; set; } 9 | public DateTime CreateTime { get; set; } 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/Mins.QuarkDoc.Framework.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {922704FD-B940-42BE-AFE6-2C3C2CAB143A} 8 | Library 9 | Properties 10 | Mins.QuarkDoc.Framework 11 | Mins.QuarkDoc.Framework 12 | v4.5 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | False 36 | ..\CommonAssembly\Newtonsoft.Json.dll 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Mins.QuarkDoc.Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Mins.QuarkDoc.Framework")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("922704fd-b940-42be-afe6-2c3c2cab143a")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Framework/SerializeHelper.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using System.Web.Script.Serialization; 3 | 4 | namespace Mins.QuarkDoc.Framework 5 | { 6 | public class SerializeHelper 7 | { 8 | public static string JSONSerialize(object obj) 9 | { 10 | JavaScriptSerializer javaScriptSerialiser = new JavaScriptSerializer(); 11 | return javaScriptSerialiser.Serialize(obj); 12 | } 13 | 14 | public static T JSONDeserialize(string jsonDatas) 15 | { 16 | if (string.IsNullOrEmpty(jsonDatas)) 17 | return default(T); 18 | 19 | return new JavaScriptSerializer().Deserialize(jsonDatas); 20 | } 21 | 22 | public static string GetJsonValue(string jsonDatas, string key) 23 | { 24 | JObject jo = JObject.Parse(jsonDatas); 25 | return (string)jo[key]; 26 | } 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/Document/IApplication.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataInterface 3 | { 4 | public interface IApplication : IRepository 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/Document/IDirectories.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataInterface 3 | { 4 | public interface IDirectories : IRepository 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/Document/IDocuments.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataInterface 3 | { 4 | public interface IDocuments : IRepository 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/Document/IVersionHistory.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataInterface 3 | { 4 | public interface IVersionHistory : IRepository 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/IRepository.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.Framework; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq.Expressions; 5 | 6 | namespace Mins.QuarkDoc.DataInterface 7 | { 8 | public interface IRepository where TEntity : class 9 | { 10 | void Insert(TEntity entiy); 11 | 12 | void Update(TEntity entity); 13 | 14 | void UpdateField(TEntity entiy, params string[] paramField); 15 | 16 | void Delete(TEntity entity); 17 | void Delete(ISpecification speicification); 18 | 19 | TEntity FirstOrDefault(ISpecification specification); 20 | 21 | IEnumerable FindAll(); 22 | 23 | IEnumerable FindAll(ISpecification specification, bool includeDefalutObjects = false, List includeObjects = null); 24 | int GetPagedCount(ISpecification specification); 25 | 26 | IEnumerable GetPagedElements(int pageIndex, List includeObjects, ISpecification specification, Expression> orderByExpression, bool ascending, int pageSize = 10); 27 | IEnumerable GetPagedElements(int pageIndex, ISpecification specification, Expression> orderByExpression, bool ascending, int pageSize = 10); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/Mins.QuarkDoc.DataInterface.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {63A7FF9F-6B5F-4D57-A8E0-CD0E986A15D1} 8 | Library 9 | Properties 10 | Mins.QuarkDoc.DataInterface 11 | Mins.QuarkDoc.DataInterface 12 | v4.5 13 | 512 14 | 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | {5fcbe31a-7746-430e-9ae5-e6a4ec699a2b} 56 | Mins.QuarkDoc.DataEntities 57 | 58 | 59 | {922704FD-B940-42BE-AFE6-2C3C2CAB143A} 60 | Mins.QuarkDoc.Framework 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/Permissions/IUser.cs: -------------------------------------------------------------------------------- 1 | using Mins.QuarkDoc.DataEntities; 2 | namespace Mins.QuarkDoc.DataInterface 3 | { 4 | public interface IUser : IRepository 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Sino.DataInterface/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Mins.QuarkDoc.Sino.DataInterface")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Mins.QuarkDoc.Sino.DataInterface")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("63a7ff9f-6b5f-4d57-a8e0-cd0e986a15d1")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/App_Start/RouteConfig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Web; 5 | using System.Web.Mvc; 6 | using System.Web.Routing; 7 | 8 | namespace Mins.QuarkDoc.Web 9 | { 10 | public class RouteConfig 11 | { 12 | public static void RegisterRoutes(RouteCollection routes) 13 | { 14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); 15 | 16 | routes.MapRoute( 17 | name: "Default", 18 | url: "{controller}/{action}/{id}", 19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } 20 | ); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/avatar.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/bg-pricing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/bg-pricing.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/card-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/card-1.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/card-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/card-2.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/card-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/card-3.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/flags/AU.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/flags/AU.png -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/flags/BR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/flags/BR.png -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/flags/DE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/flags/DE.png -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/flags/GB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/flags/GB.png -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/flags/RO.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/flags/RO.png -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/flags/US.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/flags/US.png -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/icon.png -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/login.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/register.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/register.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/sidebar-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/sidebar-1.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/sidebar-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/sidebar-2.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/sidebar-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/sidebar-3.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Image/sidebar-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Run2948/QuarkDoc/d8e9b86f03f6307e1ebb8fc4e3a2a2f3843dcde1/Mins.QuarkDoc.Web/Assets/Image/sidebar-4.jpg -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Script/QDocFramework.js: -------------------------------------------------------------------------------- 1 | jQuery.sw = function (type, title, callback) { 2 | if (type == 'success-message') { 3 | swal({ 4 | title: title, 5 | buttonsStyling: false, 6 | confirmButtonClass: "btn btn-info", 7 | type: "success" 8 | }).then((value) => { 9 | if (callback != null) { 10 | callback(); 11 | } 12 | }) 13 | } else if (type == 'error-message') { 14 | swal({ 15 | title: title, 16 | buttonsStyling: false, 17 | confirmButtonClass: "btn btn-info", 18 | type: "error" 19 | }).then(function () { 20 | if (callback != null) { 21 | callback(); 22 | } 23 | }) 24 | } 25 | 26 | } 27 | 28 | jQuery.sn = function (e, a) { 29 | type = ["", "info", "danger", "success", "warning", "rose", "primary"], 30 | color = Math.floor(6 * Math.random() + 1), 31 | $.notify({ 32 | icon: "add_alert", 33 | message: "成功" 34 | }, { 35 | type: type[color], 36 | timer: 3e3, 37 | placement: { from: e, align: a } 38 | } 39 | ) 40 | } -------------------------------------------------------------------------------- /Mins.QuarkDoc.Web/Assets/Script/material-dashboard.min.js: -------------------------------------------------------------------------------- 1 | isWindows = -1 < navigator.platform.indexOf("Win"), isWindows ? ($(".sidebar .sidebar-wrapper, .main-panel").perfectScrollbar(), $("html").addClass("perfect-scrollbar-on")) : $("html").addClass("perfect-scrollbar-off"); var breakCards = !0, searchVisible = 0, transparent = !0, transparentDemo = !0, fixedTop = !1, mobile_menu_visible = 0, mobile_menu_initialized = !1, toggle_initialized = !1, bootstrap_nav_initialized = !1, seq = 0, delays = 80, durations = 500, seq2 = 0, delays2 = 80, durations2 = 500; function debounce(t, n, i) { var r; return function () { var e = this, a = arguments; clearTimeout(r), r = setTimeout(function () { r = null, i || t.apply(e, a) }, n), i && !r && t.apply(e, a) } } $(document).ready(function () { $sidebar = $(".sidebar"), window_width = $(window).width(), $("body").bootstrapMaterialDesign(), md.initSidebarsCheck(), window_width = $(window).width(), md.checkSidebarImage(), md.initMinimizeSidebar(), $(".dropdown-menu a.dropdown-toggle").on("click", function (e) { var a = $(this), t = $(this).offsetParent(".dropdown-menu"); return $(this).next().hasClass("show") || $(this).parents(".dropdown-menu").first().find(".show").removeClass("show"), $(this).next(".dropdown-menu").toggleClass("show"), $(this).closest("a").toggleClass("open"), $(this).parents("a.dropdown-item.dropdown.show").on("hidden.bs.dropdown", function (e) { $(".dropdown-menu .show").removeClass("show") }), t.parent().hasClass("navbar-nav") || a.next().css({ top: a[0].offsetTop, left: t.outerWidth() - 4 }), !1 }), 0 != $(".selectpicker").length && $(".selectpicker").selectpicker(), $('[rel="tooltip"]').tooltip(), $('[data-toggle="popover"]').popover(); var e = $(".tagsinput").data("color"); 0 != $(".tagsinput").length && $(".tagsinput").tagsinput(), $(".bootstrap-tagsinput").addClass(e + "-badge"), $(".select").dropdown({ dropdownClass: "dropdown-menu", optionClass: "" }), $(".form-control").on("focus", function () { $(this).parent(".input-group").addClass("input-group-focus") }).on("blur", function () { $(this).parent(".input-group").removeClass("input-group-focus") }), 1 == breakCards && $('[data-header-animation="true"]').each(function () { $(this); var a = $(this).parent(".card"); a.find(".fix-broken-card").click(function () { console.log(this); var e = $(this).parent().parent().siblings(".card-header, .card-header-image"); e.removeClass("hinge").addClass("fadeInDown"), a.attr("data-count", 0), setTimeout(function () { e.removeClass("fadeInDown animate") }, 480) }), a.mouseenter(function () { var e = $(this); hover_count = parseInt(e.attr("data-count"), 10) + 1 || 0, e.attr("data-count", hover_count), 20 <= hover_count && $(this).children(".card-header, .card-header-image").addClass("hinge animated") }) }), $('input[type="checkbox"][required="true"], input[type="radio"][required="true"]').on("click", function () { $(this).hasClass("error") && $(this).closest("div").removeClass("has-error") }) }), $(document).on("click", ".navbar-toggler", function () { if ($toggle = $(this), 1 == mobile_menu_visible) $("html").removeClass("nav-open"), $(".close-layer").remove(), setTimeout(function () { $toggle.removeClass("toggled") }, 400), mobile_menu_visible = 0; else { setTimeout(function () { $toggle.addClass("toggled") }, 430); var e = $('
'); 0 != $("body").find(".main-panel").length ? e.appendTo(".main-panel") : $("body").hasClass("off-canvas-sidebar") && e.appendTo(".wrapper-full-page"), setTimeout(function () { e.addClass("visible") }, 100), e.click(function () { $("html").removeClass("nav-open"), mobile_menu_visible = 0, e.removeClass("visible"), setTimeout(function () { e.remove(), $toggle.removeClass("toggled") }, 400) }), $("html").addClass("nav-open"), mobile_menu_visible = 1 } }), $(window).resize(function () { md.initSidebarsCheck(), seq = seq2 = 0, setTimeout(function () { md.initDashboardPageCharts() }, 500) }), md = { misc: { navbar_menu_visible: 0, active_collapse: !0, disabled_collapse_init: 0 }, checkSidebarImage: function () { $sidebar = $(".sidebar"), image_src = $sidebar.data("image"), void 0 !== image_src && (sidebar_container = '