├── .gitattributes ├── .gitignore ├── AppUpdater ├── App.xaml ├── App.xaml.cs ├── AppUpdater.csproj ├── Config.cs ├── ConfigSet.cs ├── Download.xaml ├── Download.xaml.cs ├── Enums.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ ├── Settings.settings │ └── licenses.licx └── ServiceProxy.cs ├── AppUpdaterConracts ├── App.config ├── AppUpdaterContracts.csproj ├── IAppUpdateService.cs ├── Properties │ └── AssemblyInfo.cs └── UpFileInfo.cs ├── BPMS.BLL ├── BPMS.BLL.csproj ├── BaseBLL │ ├── BaseBLL.cs │ ├── BaseTableBLL.cs │ └── BllProvider.cs ├── FrameBll │ ├── DataDictionaryBll.cs │ ├── EmployeeBll.cs │ ├── IPBlacklistBll.cs │ ├── MenuInfoBll.cs │ ├── OrganizationBll.cs │ ├── PurviewInfoBll.cs │ ├── RoleInfoBll.cs │ ├── RolePurviewBll.cs │ ├── SysLogBll.cs │ ├── SysLoginLogBll.cs │ ├── SystemExceptionLogBll.cs │ ├── SystemInfoBll.cs │ ├── UserInfoBll.cs │ ├── UserPurviewBll.cs │ └── UserRoleBll.cs └── Properties │ └── AssemblyInfo.cs ├── BPMS.BLLTests ├── App.config ├── BPMS.BLLTests.csproj ├── FrameBll │ ├── SysLogBllTests.cs │ ├── SysLoginLogBllTests.cs │ ├── SystemExceptionBllTests.cs │ └── UserInfoBllTests.cs └── Properties │ └── AssemblyInfo.cs ├── BPMS.Client.sln ├── BPMS.Common ├── AppSettings.cs ├── BPMS.Common.csproj ├── CacheHelper.cs ├── CometHelper.cs ├── CommonHelper.cs ├── Consts.cs ├── ConvertHelper.cs ├── DatabasePDMHelper.cs ├── EncryptHelper.cs ├── Enums.cs ├── ExcelHelper.cs ├── FormatHelper.cs ├── FormulaHelper.cs ├── HttpHelper.cs ├── HttpWebResponseHelper.cs ├── IPHelper.cs ├── InternetConnectionHelper.cs ├── JSONHelper.cs ├── LogHelper.cs ├── Properties │ └── AssemblyInfo.cs ├── WCFHelper.cs ├── WebServiceHelper.cs └── ZipHelper.cs ├── BPMS.Contracts ├── BPMS.Contracts.csproj ├── IFrame │ ├── ICache.cs │ ├── IDataDictionary.cs │ ├── IEmployee.cs │ ├── IIPBlacklist.cs │ ├── ILogin.cs │ ├── IMenuInfo.cs │ ├── IOrganization.cs │ ├── IPublicVisit.cs │ ├── IPurviewInfo.cs │ ├── IRoleInfo.cs │ ├── IRolePurview.cs │ ├── IService.cs │ ├── ISysLog.cs │ ├── ISysLoginLog.cs │ ├── ISystemExceptionLog.cs │ ├── ISystemInfo.cs │ ├── IUserInfo.cs │ ├── IUserPurview.cs │ └── IUserRole.cs └── Properties │ └── AssemblyInfo.cs ├── BPMS.DAL ├── BPMS.DAL.csproj ├── BaseDal │ ├── BaseDal.cs │ └── TranContext.cs ├── FrameDal │ ├── DataDictionaryDal.cs │ ├── EmployeeDal.cs │ ├── IPBlacklistDal.cs │ ├── MenuInfoDal.cs │ ├── OrganizationDal.cs │ ├── PurviewInfoDal.cs │ ├── RoleInfoDal.cs │ ├── RolePurviewDal.cs │ ├── SysLogDal.cs │ ├── SysLogDetailsDal.cs │ ├── SysLoginLogDal.cs │ ├── SystemExceptionLogDal.cs │ ├── SystemInfoDal.cs │ ├── UserInfoDal.cs │ ├── UserPurviewDal.cs │ └── UserRoleDal.cs └── Properties │ └── AssemblyInfo.cs ├── BPMS.Foundatoin ├── BPMS.Foundation.csproj ├── BaseModel.cs ├── IBaseModel.cs ├── ObservableObject.cs ├── Properties │ └── AssemblyInfo.cs └── RelayCommand.cs ├── BPMS.Model ├── App.Config ├── BPMS.Model.csproj ├── BindButton.cs ├── ClientCredentials.cs ├── DataDictionary.cs ├── DataPage.cs ├── DropdownItem.cs ├── Employee.cs ├── Enums.cs ├── IPBlacklist.cs ├── MenuInfo.cs ├── Model.Context.cs ├── Model.Context.tt ├── Model.Designer.cs ├── Model.cs ├── Model.edmx ├── Model.edmx.diagram ├── Model.edmx.sql ├── Model.tt ├── Organization.cs ├── Properties │ └── AssemblyInfo.cs ├── PurviewInfo.cs ├── Result.cs ├── RoleInfo.cs ├── RolePurview.cs ├── SP_GetUserMenu_Result.cs ├── SP_GetUserPurview_Result.cs ├── SysLog.cs ├── SysLogDetails.cs ├── SysLoginLog.cs ├── SystemExceptionLog.cs ├── SystemInfo.cs ├── TableId.cs ├── User.cs ├── UserInfo.cs ├── UserPurview.cs ├── UserRole.cs └── packages.config ├── BPMS.References ├── BPMS.References.csproj ├── Base │ ├── BPMSServiceRef.cs │ ├── BaseActiveMQRef.cs │ ├── BaseRef.cs │ ├── BaseWcfServiceRef.cs │ ├── BaseWebServiceRef.cs │ └── RefProvider.cs ├── Frame │ ├── Cache.cs │ ├── DataDictionary.cs │ ├── Employee.cs │ ├── IPBlacklist.cs │ ├── Login.cs │ ├── MenuInfo.cs │ ├── Organization.cs │ ├── PublicVisit.cs │ ├── PurviewInfo.cs │ ├── RoleInfo.cs │ ├── RolePurview.cs │ ├── SysLog.cs │ ├── SysLoginLog.cs │ ├── SystemExceptionLog.cs │ ├── SystemInfo.cs │ ├── UserInfo.cs │ ├── UserPurview.cs │ └── UserRole.cs ├── Properties │ └── AssemblyInfo.cs ├── Service References │ └── BPMService │ │ ├── Arrays1.xsd │ │ ├── Reference.cs │ │ ├── Reference.svcmap │ │ ├── configuration.svcinfo │ │ ├── configuration91.svcinfo │ │ ├── service1.wsdl │ │ ├── service2.xsd │ │ └── service21.xsd └── app.config ├── BPMS.ServerManager ├── App.xaml ├── App.xaml.cs ├── BPMS.ServerManager.csproj ├── Core │ └── Config.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ ├── Settings.settings │ └── licenses.licx ├── ServicesForm.xaml ├── ServicesForm.xaml.cs ├── ServicesHelper.cs └── app.config ├── BPMS.Service.sln ├── BPMS.Services ├── BPMS.Services.csproj ├── Frame │ ├── Cache.cs │ ├── DataDictionary.cs │ ├── Employee.cs │ ├── IPBlacklist.cs │ ├── Login.cs │ ├── MenuInfo.cs │ ├── Organization.cs │ ├── PublicVisit.cs │ ├── PurviewInfo.cs │ ├── RoleInfo.cs │ ├── RolePurview.cs │ ├── Service.cs │ ├── SysLog.cs │ ├── SysLoginLog.cs │ ├── SystemExceptionLog.cs │ ├── SystemInfo.cs │ ├── UserInfo.cs │ ├── UserPurview.cs │ └── UserRole.cs ├── Other │ ├── AppUpdateService.cs │ └── BaseService.cs └── Properties │ └── AssemblyInfo.cs ├── BPMS.ViewModels.UnitTest ├── BPMS.ViewModels.UnitTest.csproj ├── Properties │ └── AssemblyInfo.cs └── UnitTest1.cs ├── BPMS.ViewModels ├── BPMS.ViewModels.csproj ├── Delegates.cs ├── Properties │ └── AssemblyInfo.cs └── VM │ ├── LoginViewModel.cs │ ├── MainWindowViewModel.cs │ └── UserInfoViewModel.cs ├── BPMS.Views.Default ├── App.xaml ├── App.xaml.cs ├── BPMS.Views.Default.csproj ├── Common │ ├── Consts.cs │ └── MessageDxUtil.cs ├── Core │ ├── AppUpdaterHelper.cs │ └── CheckUpdater.cs ├── Images │ ├── 16 │ │ ├── arrow_out.gif │ │ └── arrow_refresh.png │ └── 32 │ │ ├── 20131012030416621.png │ │ ├── 424.png │ │ ├── 4963_home.png │ │ ├── 5026_settings.png │ │ ├── eye.png │ │ ├── loading.gif │ │ ├── n1.png │ │ ├── n2.png │ │ ├── n3.png │ │ ├── n4.png │ │ ├── people.png │ │ ├── settings.png │ │ └── sitemap.png ├── Login.xaml ├── Login.xaml.cs ├── LoginSelectRoleWindow.xaml ├── LoginSelectRoleWindow.xaml.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── Pages │ ├── Setting.xaml │ └── Setting.xaml.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Licenses.licx │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── Themes │ ├── BaseStyle.xaml │ ├── HomeStyle.xaml │ └── ListBoxStyle.xaml ├── UserControls │ ├── MaskControl.xaml │ ├── MaskControl.xaml.cs │ ├── TitleControl.xaml │ └── TitleControl.xaml.cs ├── Window1.xaml ├── Window1.xaml.cs ├── app.config └── 资料 │ └── 解决多线程窗体与主风格不一致问题 │ ├── 项目开发总结:解决多线程窗体与主风格不一致问题.htm │ └── 项目开发总结:解决多线程窗体与主风格不一致问题_files │ ├── acom │ ├── acom(1) │ ├── acom(10).htm │ ├── acom(11).htm │ ├── acom(2) │ ├── acom(3) │ ├── acom(4) │ ├── acom(5) │ ├── acom(6).htm │ ├── acom(7).htm │ ├── acom(8).htm │ ├── acom(9).htm │ ├── acom.htm │ ├── adx(1).php │ ├── adx(2).php │ ├── adx(3).php │ ├── adx(4).php │ ├── adx(5).php │ ├── adx(6).php │ ├── adx.php │ ├── anticheat.js │ ├── base.css │ ├── base.js │ ├── bds_s_v2.js │ ├── bdsstyle.css │ ├── c.js │ ├── comments.gif │ ├── common.js │ ├── common2_cnblogs.css │ ├── cpro(1).js │ ├── cpro.js │ ├── demo.css │ ├── demo_bottom_double.js │ ├── demo_dui_lian_and_pop.js │ ├── demo_right_300x250_1.js │ ├── demo_right_300x250_4.js │ ├── duface.png │ ├── f.js │ ├── hm.js │ ├── jquery-1.10.2.min_f2fb5194.js │ ├── kaixin001.png │ ├── l5.gif │ ├── lazyload.js │ ├── logger.js │ ├── logo.gif │ ├── nova_fp.htm │ ├── o.htm │ ├── oojs.js │ ├── pixel.png │ ├── qq.png │ ├── renren.png │ ├── s.js │ ├── saved_resource │ ├── saved_resource(1) │ ├── saved_resource(2) │ ├── saved_resource(3) │ ├── style7.js │ ├── sync.htm │ ├── sync_pos.htm │ ├── syntaxHighlighter_cnblogs.js │ ├── t163.png │ ├── template.css │ ├── test(1).jsp │ ├── test(2).jsp │ ├── test(3).jsp │ ├── test.jsp │ ├── thumb (1).gif │ ├── thumb (2).gif │ ├── thumb (3).gif │ ├── thumb (4).gif │ ├── thumb.gif │ ├── tqq.png │ ├── tsina.png │ ├── tsohu.png │ ├── ujian.js │ ├── uyan.js │ └── wh.js ├── BPMS.WCFServices ├── BPMS.WCFServices.csproj ├── Properties │ └── AssemblyInfo.cs ├── Service.svc ├── UpdateService.svc ├── Web.Debug.config ├── Web.Release.config ├── Web.config └── qqwry.dat ├── BPMS.WinService ├── App.config ├── BPMS.WinService.csproj ├── Config.cs ├── Program.cs ├── ProjectInstaller.Designer.cs ├── ProjectInstaller.cs ├── ProjectInstaller.resx ├── Properties │ └── AssemblyInfo.cs ├── Service1.Designer.cs ├── Service1.cs └── ServicesHelper.cs ├── BPMS.sln ├── CommonLibrary ├── Apache.NMS.ActiveMQ.dll ├── Apache.NMS.dll └── lib │ ├── Microsoft.Practices.EnterpriseLibrary.Caching.dll │ ├── Microsoft.Practices.EnterpriseLibrary.Common.dll │ ├── Microsoft.Practices.EnterpriseLibrary.Logging.dll │ ├── Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll │ ├── Microsoft.Practices.ServiceLocation.dll │ ├── Microsoft.Practices.Unity.Interception.dll │ ├── Microsoft.Practices.Unity.dll │ └── Newtonsoft.Json.dll ├── Index.dat ├── README.md ├── ReadMe.txt ├── Storage.dat ├── github资料.txt ├── packages ├── EntityFramework.5.0.0 │ ├── Content │ │ ├── App.config.transform │ │ └── Web.config.transform │ ├── EntityFramework.5.0.0.nupkg │ ├── lib │ │ ├── net40 │ │ │ ├── EntityFramework.dll │ │ │ ├── EntityFramework.xml │ │ │ └── zh-Hans │ │ │ │ ├── EntityFramework.resources.dll │ │ │ │ └── EntityFramework.xml │ │ └── net45 │ │ │ ├── EntityFramework.dll │ │ │ ├── EntityFramework.xml │ │ │ └── zh-Hans │ │ │ ├── EntityFramework.resources.dll │ │ │ └── EntityFramework.xml │ └── tools │ │ ├── EntityFramework.PS3.psd1 │ │ ├── EntityFramework.PowerShell.Utility.dll │ │ ├── EntityFramework.PowerShell.dll │ │ ├── EntityFramework.psd1 │ │ ├── EntityFramework.psm1 │ │ ├── Redirect.VS11.config │ │ ├── Redirect.config │ │ ├── about_EntityFramework.help.txt │ │ ├── init.ps1 │ │ ├── install.ps1 │ │ └── migrate.exe ├── EntityFramework.6.0.0 │ ├── Content │ │ ├── App.config.transform │ │ └── Web.config.transform │ ├── EntityFramework.6.0.0.nupkg │ ├── lib │ │ ├── net40 │ │ │ ├── EntityFramework.SqlServer.dll │ │ │ ├── EntityFramework.SqlServer.xml │ │ │ ├── EntityFramework.dll │ │ │ ├── EntityFramework.xml │ │ │ └── zh-Hans │ │ │ │ ├── EntityFramework.resources.dll │ │ │ │ └── EntityFramework.xml │ │ └── net45 │ │ │ ├── EntityFramework.SqlServer.dll │ │ │ ├── EntityFramework.SqlServer.xml │ │ │ ├── EntityFramework.dll │ │ │ ├── EntityFramework.xml │ │ │ └── zh-Hans │ │ │ ├── EntityFramework.resources.dll │ │ │ └── EntityFramework.xml │ └── tools │ │ ├── EntityFramework.PowerShell.Utility.dll │ │ ├── EntityFramework.PowerShell.dll │ │ ├── EntityFramework.psd1 │ │ ├── EntityFramework.psm1 │ │ ├── about_EntityFramework.help.txt │ │ ├── init.ps1 │ │ ├── install.ps1 │ │ └── migrate.exe ├── EntityFramework.zh-Hans.5.0.0 │ ├── EntityFramework.zh-Hans.5.0.0.nupkg │ └── lib │ │ ├── net40 │ │ └── zh-Hans │ │ │ ├── EntityFramework.resources.dll │ │ │ └── EntityFramework.xml │ │ └── net45 │ │ └── zh-Hans │ │ ├── EntityFramework.resources.dll │ │ └── EntityFramework.xml ├── EntityFramework.zh-Hans.6.0.0 │ ├── EntityFramework.zh-Hans.6.0.0.nupkg │ └── lib │ │ ├── net40 │ │ └── zh-Hans │ │ │ ├── EntityFramework.resources.dll │ │ │ └── EntityFramework.xml │ │ └── net45 │ │ └── zh-Hans │ │ ├── EntityFramework.resources.dll │ │ └── EntityFramework.xml └── repositories.config └── 文档管理 ├── SQL ├── BPMSDesign.pdm ├── GetNewID.sql ├── Init.sql ├── SP_GetUserMenu.sql ├── SP_GetUserPurview.sql └── SQL.sql ├── 原型 ├── 参考 │ ├── ReadMe.txt │ ├── 个性设置.png │ ├── 字典管理.png │ ├── 字典管理1.png │ ├── 字典管理2.png │ ├── 接口管理.png │ ├── 接口管理1.png │ ├── 接口管理2.png │ ├── 控制面板.PNG │ ├── 控制面板1.PNG │ ├── 操作日志管理-详细信息.png │ ├── 操作日志管理-详细信息1.png │ ├── 操作日志管理-详细信息2.png │ ├── 操作日志管理-详细信息3.png │ ├── 操作日志管理.png │ ├── 数据库管理-定时备份.png │ ├── 数据库管理.png │ ├── 数据库管理1.png │ ├── 用户权限控制.png │ ├── 用户权限控制1.png │ ├── 用户权限控制2.png │ ├── 用户管理-分配角色.png │ ├── 用户管理-查看详细.png │ ├── 用户管理-查看详细1.png │ ├── 用户管理-查看详细2.png │ ├── 用户管理.png │ ├── 用户管理添加.png │ ├── 登录日志.png │ ├── 系统信息.png │ ├── 系统参数设置.png │ ├── 系统异常情况.png │ ├── 系统访问控制.png │ ├── 系统访问控制1.png │ ├── 组织机构.png │ ├── 组织机构1.png │ ├── 组织机构添加.png │ ├── 职员信息添加.png │ ├── 职员信息添加1.png │ ├── 职员信息添加2.png │ ├── 职员管理.jpg │ ├── 菜单1.png │ ├── 菜单2.png │ ├── 菜单3.png │ ├── 菜单管理.png │ ├── 角色权限控制.png │ ├── 角色权限控制1.png │ ├── 角色权限控制2.png │ ├── 角色权限控制3.png │ ├── 角色权限控制4.png │ ├── 角色权限控制5.png │ ├── 角色管理.png │ ├── 角色管理添加.png │ ├── 首页.jpg │ ├── 首页1.PNG │ └── 首页2.PNG └── 权限设计.rp ├── 想法.txt ├── 系统原则.docx ├── 计划.mpp └── 需求文档 └── 软件需求规格说明书_模版.docx /AppUpdater/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AppUpdater/Enums.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace AppUpdater 7 | { 8 | public enum EFileStatus 9 | { 10 | None = 0, 11 | /// 12 | /// 连接服务器 13 | /// 14 | ConnServer = 1, 15 | /// 16 | /// 下载需更新的文件列表 17 | /// 18 | DownloadFileList = 2, 19 | /// 20 | /// 等待下载文件 21 | /// 22 | WaitDownLoadFile = 3, 23 | /// 24 | /// 下载需更新的文件 25 | /// 26 | DownloadFile = 4, 27 | /// 28 | /// 从临时目录中的下载文件 替换至 目标文件 29 | /// 30 | ReplaceUpdateTargetFile = 5, 31 | /// 32 | /// 更新完成 33 | /// 34 | UpdateComplete = 6, 35 | /// 36 | /// 错误 37 | /// 38 | Error = 7, 39 | } 40 | 41 | /// 42 | /// WCF的绑定协议 43 | /// 44 | public enum EBinding 45 | { 46 | BasicHttpBinding = 0, 47 | WsHttpBinding = 1, 48 | NetTcpBinding = 2, 49 | } 50 | 51 | public enum EUpdaterCommand 52 | { 53 | /// 54 | /// 下载更新 55 | /// 56 | DownloadUpdate = 0, 57 | /// 58 | /// 检查更新 59 | /// 60 | CheckUpdate = 1, 61 | } 62 | 63 | public enum EAppExitCode 64 | { 65 | /// 66 | /// 唯一实例 67 | /// 68 | OnceInstance = 1, 69 | /// 70 | /// 错误参数 71 | /// 72 | ErrorParams = 2, 73 | /// 74 | /// 服务不存在 75 | /// 76 | NothingService = 3, 77 | /// 78 | /// 不需更新 79 | /// 80 | NoUpdate = 4, 81 | /// 82 | /// 需要更新 83 | /// 84 | NeedUpdate = 5, 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /AppUpdater/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.18408 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace AppUpdater.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /AppUpdater/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /AppUpdater/Properties/licenses.licx: -------------------------------------------------------------------------------- 1 | DevExpress.Xpf.Bars.BarManager, DevExpress.Xpf.Core.v13.2, Version=13.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a 2 | DevExpress.Xpf.Grid.GridControl, DevExpress.Xpf.Grid.v13.2, Version=13.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a 3 | DevExpress.Xpf.LayoutControl.GroupBox, DevExpress.Xpf.LayoutControl.v13.2, Version=13.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a 4 | -------------------------------------------------------------------------------- /AppUpdaterConracts/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 34 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /AppUpdaterConracts/IAppUpdateService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.Serialization; 6 | using System.ServiceModel; 7 | using System.Text; 8 | 9 | namespace AppUpdaterContracts 10 | { 11 | [ServiceContract] 12 | public interface IAppUpdateService 13 | { 14 | /// 15 | /// 下载更新文件 16 | /// 17 | /// 相对路径 18 | /// 19 | [OperationContract] 20 | Stream CreateUpdateFileStream(string path); 21 | 22 | /// 23 | /// 创建更新目录文件流 24 | /// 25 | /// 26 | [OperationContract] 27 | Stream CreateUpdateXmlStream(); 28 | 29 | /// 30 | /// 获取更新目录 31 | /// 32 | /// 33 | [OperationContract] 34 | List GetUpdateFiles(); 35 | 36 | /// 37 | /// 测试连接 38 | /// 39 | /// 40 | /// 41 | [OperationContract] 42 | string TestConn(string msg); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /AppUpdaterConracts/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过下列特性集 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("AppUpdaterContracts")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("AppUpdaterContracts")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("c484f93a-6de7-43ba-9e7a-a455d484bc51")] 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 | -------------------------------------------------------------------------------- /AppUpdaterConracts/UpFileInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.Serialization; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace AppUpdaterContracts 9 | { 10 | [DataContract] 11 | public class UpFileInfo 12 | { 13 | [DataMember] 14 | public string FileName { get; set; } 15 | [DataMember] 16 | public long FileLength { get; set; } 17 | [DataMember] 18 | public string Version { get; set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /BPMS.BLL/BaseBLL/BaseBLL.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.BLL 7 | { 8 | public class BaseBLL : IDisposable 9 | { 10 | protected BllProvider BLLProvider { get; set; } 11 | 12 | public BaseBLL() 13 | { 14 | this.BLLProvider = new BllProvider(); 15 | } 16 | 17 | public BaseBLL(BllProvider provider) 18 | { 19 | this.BLLProvider = provider; 20 | } 21 | 22 | ~BaseBLL() 23 | { 24 | this.Dispose(); 25 | } 26 | 27 | public void Dispose() 28 | { 29 | if (this.BLLProvider != null) 30 | { 31 | this.BLLProvider.Dispose(); 32 | this.BLLProvider = null; 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /BPMS.BLL/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.BLL")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.BLL")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("189129a1-2616-4518-a07d-fa4fee1da5fc")] 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 | -------------------------------------------------------------------------------- /BPMS.BLLTests/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /BPMS.BLLTests/FrameBll/SysLogBllTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using BPMS.BLL; 7 | using Microsoft.VisualStudio.TestTools.UnitTesting; 8 | using BPMS.Model; 9 | using System.Data; 10 | using BPMS.Common; 11 | namespace BPMS.BLL.Tests 12 | { 13 | [TestClass()] 14 | public class SysLogBllTests 15 | { 16 | [TestMethod()] 17 | public void AddTest() 18 | { 19 | //SysLogBll bll = new SysLogBll(); 20 | 21 | //User.Current.ID = 1; 22 | //User.Current.Name = "管理员"; 23 | //User.Current.SystemId = 1; 24 | //User.Current.RoleId = 1; 25 | 26 | //SysLog model = new SysLog(); 27 | //model.OperationType = EOperationType.新增.GetHashCode(); 28 | //model.TableName = "Test"; 29 | //model.BusinessName = "测试"; 30 | //model.ObjectID = 1; 31 | 32 | //List detailList = new List(); 33 | //detailList.Add(new SysLogDetails() { FieldName = "Test1", FieldText = "Test1", NewValue = "Test1", OldValue = "Test2" }); 34 | 35 | //var rlt = bll.Add(null, model, detailList); 36 | 37 | //DateTime startDate = DateTime.Now.AddMonths(-1); 38 | //DateTime endDate = DateTime.Now; 39 | //int pageIndex = 1; 40 | //int pageSize = 1; 41 | //int count = 1; 42 | //DataTable dt = bll.GetList(startDate, endDate, EOperationType.全部, "", "", pageIndex, pageSize, out count); 43 | 44 | //int id = ConvertHelper.ObjectToInt(dt.Rows[0]["ID"]); 45 | 46 | //DataTable detailDt = bll.GetDetailList(id); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /BPMS.BLLTests/FrameBll/SysLoginLogBllTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using BPMS.BLL; 7 | using Microsoft.VisualStudio.TestTools.UnitTesting; 8 | namespace BPMS.BLL.Tests 9 | { 10 | [TestClass()] 11 | public class SysLoginLogBllTests 12 | { 13 | [TestMethod()] 14 | public void GetListTest() 15 | { 16 | //SysLoginLogBll bll = new SysLoginLogBll(); 17 | //int count = 0; 18 | //var rlt = bll.GetList(DateTime.Now.AddMonths(-2), DateTime.Now, 1, "", 1, 11, out count); 19 | //Assert.Fail(); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /BPMS.BLLTests/FrameBll/SystemExceptionBllTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using BPMS.BLL; 7 | using Microsoft.VisualStudio.TestTools.UnitTesting; 8 | using BPMS.Model; 9 | using System.Data; 10 | namespace BPMS.BLL.Tests 11 | { 12 | [TestClass()] 13 | public class SystemExceptionBllTests 14 | { 15 | [TestMethod()] 16 | public void AddTest() 17 | { 18 | //SystemExceptionLogBll bll = new SystemExceptionLogBll(); 19 | 20 | //User.Current.ID = 1; 21 | //User.Current.SystemId = 1; 22 | //User.Current.RoleId = 1; 23 | //var rlt = bll.Add(null, "Test1", "Test2", "Test3"); 24 | 25 | //DateTime startDate = DateTime.Now.AddMonths(-1); 26 | //DateTime endDate = DateTime.Now; 27 | //int pageIndex = 1; 28 | //int pageSize = 1; 29 | //int count = 1; 30 | //DataTable dt = bll.GetList(startDate, endDate, pageIndex, pageSize, out count); 31 | 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /BPMS.BLLTests/FrameBll/UserInfoBllTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using BPMS.BLL; 7 | using BPMS.Common; 8 | using Microsoft.VisualStudio.TestTools.UnitTesting; 9 | using BPMS.Model; 10 | namespace BPMS.BLL.Tests 11 | { 12 | [TestClass()] 13 | public class UserInfoBllTests 14 | { 15 | [TestMethod()] 16 | public void LoginTest() 17 | { 18 | int systemId = 0; 19 | int userId = 0; 20 | string userName = ""; 21 | List roleList = null; 22 | UserInfoBll userInfo = new UserInfoBll(); 23 | int rlt = userInfo.Login(Consts.ConstValue.SystemCode, "admin", "admin", out systemId, out userId, out userName, out roleList); 24 | 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /BPMS.BLLTests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下特性集 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.BLLTests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.BLLTests")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("4e4f8f4a-e015-4916-b5ba-5c4c11e01f49")] 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 | -------------------------------------------------------------------------------- /BPMS.Common/AppSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.Common 7 | { 8 | /// 9 | /// Config 配置项 10 | /// 11 | public class AppSettings 12 | { 13 | #region 系统配置 14 | /// 15 | /// 系统配置 16 | /// 17 | public class ConfigSettings 18 | { 19 | 20 | /// 21 | /// 站点域名 22 | /// 23 | public static string HostNameToCheck 24 | { 25 | get 26 | { 27 | return System.Configuration.ConfigurationManager.AppSettings[Consts.ConfigKey.HostNameToCheck]; 28 | } 29 | } 30 | /// 31 | /// 超级管理员帐号 32 | /// 33 | public static string StaticAdminAccount 34 | { 35 | get; 36 | set; 37 | } 38 | /// 39 | /// 超级管理员密码 40 | /// 41 | public static string StaticAdminPassword 42 | { 43 | get; 44 | set; 45 | } 46 | } 47 | #endregion 48 | 49 | #region 连接字符串 50 | public class ConnectionStrings 51 | { 52 | public static string ModelContainer 53 | { 54 | get; 55 | set; 56 | } 57 | } 58 | #endregion 59 | 60 | #region 服务地址 61 | /// 62 | /// 服务地址 63 | /// 64 | public class ServiceUris 65 | { 66 | 67 | } 68 | #endregion 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /BPMS.Common/Enums.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.Common 7 | { 8 | #region WCF的绑定协议 9 | /// 10 | /// WCF的绑定协议 11 | /// 12 | public enum EBinding 13 | { 14 | BasicHttpBinding = 0, 15 | WsHttpBinding = 1, 16 | NetTcpBinding = 2, 17 | } 18 | #endregion 19 | } 20 | -------------------------------------------------------------------------------- /BPMS.Common/FormatHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.Common 7 | { 8 | /// 9 | /// 格式化帮助类 10 | /// 11 | public class FormatHelper 12 | { 13 | #region 格式化日期字符串 14 | /// 15 | /// 格式化日期字符串 0 yyyyMMdd HH:mm 1 yyyyMMdd br HH:mm 2 yyyy-MM-dd HH:mm 3 HH:mm 4 yyyy-MM-dd 16 | /// 17 | /// 18 | /// 19 | /// 20 | public static string FormatDateTime(object objDateTime, int showType) 21 | { 22 | if (objDateTime == null) 23 | { 24 | return ""; 25 | } 26 | try 27 | { 28 | DateTime dt = Convert.ToDateTime(objDateTime); 29 | switch (showType) 30 | { 31 | case 0: 32 | return dt.ToString("yyyyMMdd HH:mm"); 33 | case 1: 34 | return dt.ToString("yyyyMMdd
HH:mm"); 35 | case 2: 36 | return dt.ToString("yyyy-MM-dd HH:mm"); 37 | case 3: 38 | return dt.ToString("HH:mm"); 39 | case 4: 40 | return dt.ToString("yyyy-MM-dd"); 41 | default: 42 | break; 43 | } 44 | } 45 | catch 46 | { } 47 | return ""; 48 | } 49 | #endregion 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /BPMS.Common/LogHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Web; 6 | 7 | using Microsoft.Practices.EnterpriseLibrary.Common.Configuration; 8 | using Microsoft.Practices.EnterpriseLibrary.Logging; 9 | 10 | namespace BPMS.Common 11 | { 12 | public static class LogHelper 13 | { 14 | /// 15 | /// 返回企业库的日志管理 16 | /// 17 | public static ILog Log 18 | { 19 | get 20 | { 21 | return new EnterLibLog(); 22 | } 23 | } 24 | } 25 | 26 | 27 | #region EnterLibLog 28 | internal sealed class EnterLibLog : ILog 29 | { 30 | private readonly static LogWriter logWriter = EnterpriseLibraryContainer.Current.GetInstance(); 31 | 32 | private void Write(object message, string category) 33 | { 34 | IDictionary dic = new Dictionary(); 35 | if (HttpContext.Current != null) 36 | { 37 | if (HttpContext.Current.User != null) 38 | { 39 | dic.Add("userid", ConvertHelper.ObjectToString(HttpContext.Current.User.Identity.Name)); 40 | dic.Add("url", ConvertHelper.ObjectToString(HttpContext.Current.Request.RawUrl)); 41 | } 42 | else 43 | { 44 | dic.Add("userid", ""); 45 | dic.Add("url", ""); 46 | } 47 | } 48 | 49 | logWriter.Write(message, category, dic); 50 | } 51 | 52 | #region ILog 成员 53 | /// 54 | /// 记录操作 55 | /// 56 | /// 57 | public void Info(object message) 58 | { 59 | this.Write(message, "Info"); 60 | } 61 | 62 | #endregion 63 | } 64 | 65 | 66 | public interface ILog 67 | { 68 | void Info(object message); 69 | } 70 | #endregion 71 | } 72 | -------------------------------------------------------------------------------- /BPMS.Common/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.Common")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.Common")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("87ff2340-7625-4b53-9163-f3b16b869e0c")] 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 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/ICache.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.Serialization; 5 | using System.ServiceModel; 6 | using System.Text; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | public partial interface IService 11 | { 12 | /// 13 | /// 获取缓存Key列表 14 | /// 15 | /// Key 16 | [OperationContract] 17 | string GetCacheKeyList(string xmlCredentials, string keyWord, int pageIndex, int pageSize, out int count); 18 | 19 | /// 20 | /// 删除缓存 21 | /// 22 | /// 23 | /// 24 | /// 25 | [OperationContract] 26 | int CacheClear(string xmlCredentials, List lstKeyWord); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/IEmployee.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 获取员工列表 17 | /// 18 | /// 19 | /// 1=工号、2=姓名 20 | /// 21 | [OperationContract] 22 | string EmployeeGetList(string xmlCredentials, int category, int orgaId, int searchType, string keyWord, int pageIndex, int pageSize, out int count); 23 | /// 24 | /// 获取员工对象 25 | /// 26 | /// 27 | /// 28 | /// 29 | [OperationContract] 30 | string EmployeeGetModel(string xmlCredentials, int id); 31 | /// 32 | /// 员工添加 33 | /// 34 | /// 35 | /// 36 | /// 37 | [OperationContract] 38 | int EmployeeAdd(string xmlCredentials, string xmlModel); 39 | /// 40 | /// 员工编辑 41 | /// 42 | /// 43 | /// 44 | /// 45 | [OperationContract] 46 | int EmployeeEdit(string xmlCredentials, string xmlModel); 47 | /// 48 | /// 员工编码是否重复 49 | /// 50 | /// 51 | /// 52 | /// 53 | /// true 重复 false 不重复 54 | [OperationContract] 55 | bool EmployeeCodeIsRepeat(string xmlCredentials, string code, int id); 56 | } 57 | } 58 | 59 | 60 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/IIPBlacklist.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// IP黑名单 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 获取IP黑名单列表 17 | /// 18 | /// 19 | /// 20 | [OperationContract] 21 | string IPBlackGetList(string xmlCredentials); 22 | /// 23 | /// 获取IP黑名单对象 24 | /// 25 | /// 26 | /// 27 | /// 28 | [OperationContract] 29 | string IPBlackGetModel(string xmlCredentials, int id); 30 | /// 31 | /// IP黑名单添加 32 | /// 33 | /// 34 | /// 35 | /// 36 | [OperationContract] 37 | int IPBlackAdd(string xmlCredentials, string xmlModel); 38 | /// 39 | /// IP黑名单编辑 40 | /// 41 | /// 42 | /// 43 | /// 44 | [OperationContract] 45 | int IPBlackEdit(string xmlCredentials, string xmlModel); 46 | /// 47 | /// IP黑名单删除 48 | /// 49 | /// 50 | /// 51 | /// 52 | [OperationContract] 53 | int IPBlackDelete(string xmlCredentials, int id); 54 | } 55 | } 56 | 57 | 58 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/ILogin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.ServiceModel; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 登录 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 操作员登录 17 | /// 18 | /// 用户 19 | /// 密码 20 | /// 用户ID 21 | /// 22 | /// 1登录成功 23 | /// 2用户不存在 24 | /// 3用户已禁用 25 | /// 4密码不正确 26 | /// 5未设置系统角色,当前用户没有登录系统的权限 27 | /// 6当前IP不许登录 28 | /// 29 | [OperationContract] 30 | int Login(string systemCode, string account, string pwd, out int systemId, out int userId, out string userName, out string xmlRoleList); 31 | /// 32 | /// 系统退出 33 | /// 34 | /// 35 | /// 36 | [OperationContract] 37 | int LogOut(int systemId, int userId); 38 | 39 | /// 40 | /// 修改密码 41 | /// 42 | /// 43 | /// 44 | /// 45 | /// 46 | [OperationContract] 47 | int LoginChangePassword(int userId, string oldPwd, string newPwd); 48 | /// 49 | /// 登陆获取所有有权限菜单 50 | /// 51 | /// 52 | /// 53 | /// 54 | [OperationContract] 55 | string LogGetUserMenuList(int systemId, int roleId, int userId); 56 | 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/IPublicVisit.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.ServiceModel; 6 | using System.Text; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 公共方法访问 不验证权限 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 获取启用的系统列表 17 | /// 18 | /// 19 | /// 20 | [OperationContract] 21 | string PubGetSystemList(); 22 | /// 23 | /// 获取系统启用的角色列表 24 | /// 25 | /// 26 | /// 27 | [OperationContract] 28 | string PubGetRoleList(int systemId); 29 | /// 30 | /// 获取系统所有的权限 31 | /// 32 | /// 33 | /// 34 | [OperationContract] 35 | string PubGetAllPurview(int systemId); 36 | /// 37 | /// 用户权限列表 38 | /// 39 | /// 40 | /// 41 | /// 42 | /// 43 | [OperationContract] 44 | string PubGetUserPurviewList(int systemId, int roleId, int userId); 45 | /// 46 | /// 查询部门下的员工 47 | /// 48 | /// 49 | /// 50 | /// 51 | [OperationContract] 52 | string PubGetUserByDeptId(int deptId); 53 | 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/IRolePurview.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 设置角色权限 17 | /// 18 | /// 19 | /// 20 | /// 21 | /// 22 | [OperationContract] 23 | int RolePurviewSet(string xmlCredentials, int roleId, List purviewIdList); 24 | /// 25 | /// 获取角色权限 26 | /// 27 | /// 28 | /// 29 | /// 30 | [OperationContract] 31 | string RoleGetPurviewList(string xmlCredentials, int systemId, int roleId); 32 | /// 33 | /// 角色成员 34 | /// 35 | /// 36 | /// 37 | /// 用户列表 38 | [OperationContract] 39 | string RoleMembers(string xmlCredentials, int roleId); 40 | /// 41 | /// 角色成员添加 42 | /// 43 | /// 44 | /// 45 | /// 46 | /// 47 | [OperationContract] 48 | int RoleMemberAdd(string xmlCredentials, int roleId, List userIdList); 49 | /// 50 | /// 角色成员删除 51 | /// 52 | /// 53 | /// 54 | /// 55 | /// 56 | [OperationContract] 57 | int RoleMemberDelete(string xmlCredentials, int roleId, int userId); 58 | } 59 | } 60 | 61 | 62 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/IService.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.Serialization; 5 | using System.ServiceModel; 6 | using System.Text; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IService1”。 11 | [ServiceContract] 12 | public partial interface IService 13 | { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/ISysLog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 系统日志 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 获取系统日志列表 17 | /// 18 | /// 19 | /// 20 | [OperationContract] 21 | string SysLogGetList(string xmlCredentials, DateTime startDate, DateTime endDate, int operationType, string moduleName, string account, int pageIndex, int pageSize, out int count); 22 | 23 | /// 24 | /// 清除日志 25 | /// 26 | /// 27 | /// 28 | /// 29 | [OperationContract] 30 | bool SysLogClear(string xmlCredentials, DateTime endDate); 31 | } 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/ISysLoginLog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 获取系统登录日志列表 17 | /// 18 | /// 19 | /// 20 | [OperationContract] 21 | string SysLoginLogGetList(string xmlCredentials, DateTime startDate, DateTime endDate, string account, int pageIndex, int pageSize, out int count); 22 | 23 | /// 24 | /// 清除登录日志 25 | /// 26 | /// 27 | /// 28 | /// 29 | [OperationContract] 30 | bool SysLoginLogClear(string xmlCredentials, DateTime endDate); 31 | } 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/ISystemExceptionLog.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 获取异常日志 17 | /// 18 | /// 19 | /// 20 | [OperationContract] 21 | string SystemExceptionGetList(string xmlCredentials, DateTime startDate, DateTime endDate, int pageIndex, int pageSize, out int count); 22 | 23 | /// 24 | /// 清除日志 清空数据库 25 | /// 26 | /// 27 | /// 28 | [OperationContract] 29 | bool SystemExceptionClear(string xmlCredentials); 30 | 31 | 32 | 33 | } 34 | } 35 | 36 | 37 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/IUserPurview.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 用户权限列表 17 | /// 18 | /// 19 | /// 20 | /// 21 | /// 22 | [OperationContract] 23 | string UserGetPurviewList(string xmlCredentials, int systemId, int roleId, int userId); 24 | /// 25 | /// 设置用户权限 26 | /// 27 | /// 28 | /// 用户权限对象 29 | /// 30 | [OperationContract] 31 | int UserPurviewSet(string xmlCredentials, List lstModel); 32 | /// 33 | /// 重置权限 34 | /// 35 | /// 36 | /// 37 | /// 38 | /// 39 | [OperationContract] 40 | int UserPurviewReset(string xmlCredentials, int systemId, int roleId, int userId); 41 | 42 | } 43 | } 44 | 45 | 46 | -------------------------------------------------------------------------------- /BPMS.Contracts/IFrame/IUserRole.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.Contracts 9 | { 10 | /// 11 | /// 12 | /// 13 | public partial interface IService 14 | { 15 | /// 16 | /// 用户权限设置 17 | /// 18 | /// 19 | [OperationContract] 20 | int UserRoleSet(string xmlCredentials, int systemId, int userId, List lstRoleId); 21 | /// 22 | /// 用户权限设置 23 | /// 24 | /// 25 | /// 26 | /// 27 | [OperationContract] 28 | string UserRoleGetList(string xmlCredentials, int systemId, int userId); 29 | 30 | } 31 | } 32 | 33 | 34 | -------------------------------------------------------------------------------- /BPMS.Contracts/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过下列特性集 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.Contracts")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.Contracts")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("8fc33c86-8008-445c-8264-7ff2b2c8666f")] 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 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/DataDictionaryDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class DataDictionaryDal : BaseDAL 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/EmployeeDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | using System.Linq.Expressions; 9 | 10 | namespace BPMS.DAL 11 | { 12 | /// 13 | /// 14 | /// 15 | public partial class EmployeeDal : BaseDAL 16 | { 17 | 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/IPBlacklistDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class IPBlacklistDal : BaseDAL 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/MenuInfoDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | using System.Linq.Expressions; 9 | 10 | namespace BPMS.DAL 11 | { 12 | /// 13 | /// 14 | /// 15 | public partial class MenuInfoDal : BaseDAL 16 | { 17 | public DataTable GetList(int systemId, int parentId) 18 | { 19 | using (var ctx = new BPMSEntities()) 20 | { 21 | Expression> condition = t => t.SystemId == systemId && t.ParentId == parentId; 22 | var list = from a in ctx.MenuInfo.Where(condition) 23 | join b in ctx.SystemInfo on a.SystemId equals b.ID 24 | select new 25 | { 26 | a.ID, 27 | a.SystemId, 28 | SystemName = b.Name, 29 | a.ParentId, 30 | a.Name, 31 | a.Code, 32 | a.Category, 33 | a.PurviewId, 34 | a.Icon, 35 | a.IconUrl, 36 | a.NavigateUrl, 37 | a.FormName, 38 | a.IsSplit, 39 | a.Remark, 40 | a.IsEnable, 41 | a.SortIndex, 42 | a.CreateDate, 43 | a.CreateUserId, 44 | a.CreateUserName, 45 | a.ModifyDate, 46 | a.ModifyUserId, 47 | a.ModifyUserName 48 | }; 49 | return ConvertHelper.ToDataTable(list.ToList().Cast().ToArray()); 50 | } 51 | 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/OrganizationDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class OrganizationDal : BaseDAL 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/RolePurviewDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class RolePurviewDal : BaseDAL 15 | { 16 | #region 角色权限 17 | public DataTable GetPurviewList(int systemId, int roleId) 18 | { 19 | using (var ctx = new BPMSEntities()) 20 | { 21 | var list = from a in ctx.RolePurview.Where(t => t.RoleId == roleId) 22 | join b in ctx.RoleInfo on a.RoleId equals b.ID 23 | join c in ctx.PurviewInfo on a.PurviewId equals c.ID 24 | where c.SystemId == systemId 25 | select new 26 | { 27 | c.ID, 28 | c.Name, 29 | c.Code 30 | }; 31 | return ConvertHelper.ToDataTable(list.ToList().Cast().ToArray()); 32 | } 33 | } 34 | #endregion 35 | 36 | #region 角色成员 37 | /// 38 | /// 角色成员 39 | /// 40 | /// 41 | /// 42 | /// 用户列表 43 | public DataTable RoleMembers(int roleId) 44 | { 45 | using (var ctx = new BPMSEntities()) 46 | { 47 | var list = from a in ctx.UserRole.Where(t => t.RoleId == roleId) 48 | join b in ctx.UserInfo.Where(t => t.IsEnable) on a.UserId equals b.ID 49 | select b; 50 | return ConvertHelper.ToDataTable(list.ToList().Cast().ToList()); 51 | } 52 | } 53 | #endregion 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/SysLogDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class SysLogDal : BaseDAL 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/SysLogDetailsDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class SysLogDetailsDal : BaseDAL 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/SystemExceptionLogDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | using System.Linq.Expressions; 9 | 10 | namespace BPMS.DAL 11 | { 12 | /// 13 | /// 14 | /// 15 | public partial class SystemExceptionLogDal : BaseDAL 16 | { 17 | #region 添加 18 | /// 19 | /// 添加 20 | /// 21 | /// 22 | /// 23 | public int Insert(string source, string exception, string desction) 24 | { 25 | int rlt = 1; 26 | SystemExceptionLog model = new SystemExceptionLog(); 27 | model.ID = GetNewID(); 28 | model.Source = source; 29 | model.Exception = exception; 30 | model.Description = desction; 31 | model.CreateDate = DateTime.Now; 32 | var location = IPHelper.GetLocation(); 33 | model.IPAddress = location.GetIPAddress.ToString(); 34 | model.IPAddressName = location.ToString(); 35 | if (!Insert(model)) 36 | rlt = 0; 37 | return rlt; 38 | } 39 | 40 | #endregion 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/SystemInfoDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using BPMS.Model; 6 | using BPMS.Common; 7 | 8 | namespace BPMS.DAL 9 | { 10 | /// 11 | /// 系统信息 12 | /// 13 | public partial class SystemInfoDal : 14 | BaseDAL 15 | { 16 | 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/UserPurviewDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class UserPurviewDal : BaseDAL 15 | { 16 | public void Delete(BPMSEntities ctx, int systemId, int roleId, int userId) 17 | { 18 | StringBuilder strSql = new StringBuilder(); 19 | strSql.Append(" DELETE FROM UserPurview "); 20 | strSql.Append(" WHERE ID IN "); 21 | strSql.Append(" ( "); 22 | strSql.Append(" SELECT a.ID "); 23 | strSql.Append(" FROM UserPurview a "); 24 | strSql.Append(" INNER JOIN PurviewInfo b on a.PurviewId = b.ID "); 25 | strSql.Append(String.Format(" WHERE a.RoleId = {0} and b.SystemId = {1} and a.UserId = {2}", roleId, systemId, userId)); 26 | strSql.Append(" ) "); 27 | ctx.Database.ExecuteSqlCommand(strSql.ToString(), null); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /BPMS.DAL/FrameDal/UserRoleDal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Linq; 5 | using System.Text; 6 | using BPMS.Model; 7 | using BPMS.Common; 8 | 9 | namespace BPMS.DAL 10 | { 11 | /// 12 | /// 13 | /// 14 | public partial class UserRoleDal : BaseDAL 15 | { 16 | public DataTable GetList(int systemId, int userId) 17 | { 18 | using (var ctx = new BPMSEntities()) 19 | { 20 | var list = from a in ctx.UserRole 21 | join b in ctx.RoleInfo on a.RoleId equals b.ID 22 | where a.UserId == userId && b.SystemId == systemId 23 | select new 24 | { 25 | b.ID, 26 | b.Name 27 | }; 28 | return ConvertHelper.ToDataTable(list.ToList().Cast().ToArray()); 29 | } 30 | } 31 | 32 | public void Delete(BPMSEntities ctx, int systemId, int userId) 33 | { 34 | StringBuilder strSql = new StringBuilder(); 35 | strSql.Append(" DELETE FROM UserRole "); 36 | strSql.Append(" WHERE UserId = " + userId + " and RoleId in "); 37 | strSql.Append(" ( "); 38 | strSql.Append(" SELECT ID "); 39 | strSql.Append(" FROM RoleInfo "); 40 | strSql.Append(" WHERE SystemId = " + systemId + " "); 41 | strSql.Append(" ) "); 42 | ctx.Database.ExecuteSqlCommand(strSql.ToString(), null); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /BPMS.DAL/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.DAL")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.DAL")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("66f81747-a791-4806-a5c9-bc0d149e2dfb")] 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 | -------------------------------------------------------------------------------- /BPMS.Foundatoin/BaseModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace BPMS.Foundatoin 8 | { 9 | /// 10 | /// 此类是Model的抽象基类 11 | /// 12 | public abstract class BaseModel : IBaseModel, IDataErrorInfo 13 | { 14 | public string Error 15 | { 16 | get 17 | { 18 | foreach (string property in this.ValidatedProperties()) 19 | { 20 | string validationError = GetValidationError(property); 21 | if (!string.IsNullOrEmpty(validationError)) 22 | return validationError; 23 | } 24 | 25 | return null; 26 | } 27 | } 28 | public string this[string propertyName] 29 | { 30 | get { return this.GetValidationError(propertyName); } 31 | } 32 | public bool IsValid 33 | { 34 | get 35 | { 36 | return Error != null; 37 | } 38 | } 39 | 40 | /// 41 | /// 指示对象哪些属性需要验证 42 | /// 43 | /// 44 | protected abstract string[] ValidatedProperties(); 45 | 46 | /// 47 | /// 实现每个属性的验证逻辑 48 | /// 49 | /// 属性名称 50 | /// 属性验证不通过的错误信息 51 | protected abstract string GetValidationError(string propertyName); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /BPMS.Foundatoin/IBaseModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.Foundatoin 7 | { 8 | public interface IBaseModel 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /BPMS.Foundatoin/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.Foundatoin")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.Foundatoin")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("0993f925-335a-4d6c-9781-bc69f14c5c6b")] 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 | -------------------------------------------------------------------------------- /BPMS.Model/App.Config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /BPMS.Model/BindButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.Model 7 | { 8 | /// 9 | /// 按钮绑定显示 10 | /// 11 | public class BindButton 12 | { 13 | public string Content { get; set; } 14 | public string ImageSource { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /BPMS.Model/ClientCredentials.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace BPMS.Model 8 | { 9 | /// 10 | /// 客户凭证 11 | /// 12 | public class ClientCredentials 13 | { 14 | /// 15 | /// 用户ID 16 | /// 17 | public int UserId { get; set; } 18 | /// 19 | /// 账号 20 | /// 21 | public string Account { get; set; } 22 | /// 23 | /// 用户名 24 | /// 25 | public string UserName { get; set; } 26 | 27 | /// 28 | /// 密码 29 | /// 30 | public string Password { get; set; } 31 | /// 32 | /// 系统编码 33 | /// 34 | public string SystemCode { get { return Consts.ConstValue.SystemCode; } } 35 | /// 36 | /// 系统ID 37 | /// 38 | public int SystemId { get; set; } 39 | /// 40 | /// 角色ID 41 | /// 42 | public int RoleId { get; set; } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /BPMS.Model/DataDictionary.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class DataDictionary 16 | { 17 | public int ID { get; set; } 18 | public int SystemId { get; set; } 19 | public int DictType { get; set; } 20 | public string Name { get; set; } 21 | public string Code { get; set; } 22 | public int ParentId { get; set; } 23 | public bool AllowEdit { get; set; } 24 | public bool AllowDelete { get; set; } 25 | public string Remark { get; set; } 26 | public bool IsEnable { get; set; } 27 | public int SortIndex { get; set; } 28 | public System.DateTime CreateDate { get; set; } 29 | public int CreateUserId { get; set; } 30 | public string CreateUserName { get; set; } 31 | public System.DateTime ModifyDate { get; set; } 32 | public int ModifyUserId { get; set; } 33 | public string ModifyUserName { get; set; } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /BPMS.Model/DataPage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.Model 7 | { 8 | /// 9 | /// 数据翻页 10 | /// 11 | public class DataPage 12 | { 13 | /// 14 | /// 索引 15 | /// 16 | public int PageIndex { get; set; } 17 | /// 18 | /// 每页条数 19 | /// 20 | public int PageSize { get; set; } 21 | /// 22 | /// 总条数 23 | /// 24 | public int Count { get; set; } 25 | /// 26 | /// 要跳转页 27 | /// 28 | public int Skip 29 | { 30 | get { return (PageIndex - 1) * PageSize; } 31 | } 32 | /// 33 | /// 总页数 34 | /// 35 | public int TotalPage 36 | { 37 | get 38 | { 39 | int totalPage = 0; 40 | if (Count % PageSize == 0) 41 | totalPage = Count / PageSize; 42 | else 43 | totalPage = (int)Math.Ceiling((double)(Count / PageSize)); 44 | return totalPage; 45 | } 46 | } 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /BPMS.Model/DropdownItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace BPMS.Model 8 | { 9 | /// 10 | /// 下拉项对象 11 | /// 12 | public class DropdownItem 13 | { 14 | public int ID { get; set; } 15 | public string Text { get; set; } 16 | 17 | public static DropdownItem GetPlease 18 | { 19 | get 20 | { 21 | DropdownItem item = new DropdownItem(); 22 | item.ID = 0; 23 | item.Text = "--请选择--"; 24 | return item; 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /BPMS.Model/IPBlacklist.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class IPBlacklist 16 | { 17 | public int ID { get; set; } 18 | public int Category { get; set; } 19 | public string StartIp { get; set; } 20 | public string EndIp { get; set; } 21 | public Nullable Failuretime { get; set; } 22 | public string Remark { get; set; } 23 | public bool IsEnable { get; set; } 24 | public int SortIndex { get; set; } 25 | public System.DateTime CreateDate { get; set; } 26 | public int CreateUserId { get; set; } 27 | public string CreateUserName { get; set; } 28 | public System.DateTime ModifyDate { get; set; } 29 | public int ModifyUserId { get; set; } 30 | public string ModifyUserName { get; set; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /BPMS.Model/MenuInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class MenuInfo 16 | { 17 | public int ID { get; set; } 18 | public int SystemId { get; set; } 19 | public int ParentId { get; set; } 20 | public string Name { get; set; } 21 | public string Code { get; set; } 22 | public int Category { get; set; } 23 | public Nullable PurviewId { get; set; } 24 | public byte[] Icon { get; set; } 25 | public string IconUrl { get; set; } 26 | public string NavigateUrl { get; set; } 27 | public string FormName { get; set; } 28 | public bool IsSplit { get; set; } 29 | public string Remark { get; set; } 30 | public bool IsEnable { get; set; } 31 | public int SortIndex { get; set; } 32 | public System.DateTime CreateDate { get; set; } 33 | public int CreateUserId { get; set; } 34 | public string CreateUserName { get; set; } 35 | public System.DateTime ModifyDate { get; set; } 36 | public int ModifyUserId { get; set; } 37 | public string ModifyUserName { get; set; } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /BPMS.Model/Model.Designer.cs: -------------------------------------------------------------------------------- 1 | // 为模型“E:\Robin\Desktop\BPMS\BPMS.Model\Model.edmx”启用了 T4 代码生成。 2 | // 要启用旧代码生成功能,请将“代码生成策略”设计器属性的值 3 | // 更改为“旧的 ObjectContext”。当在设计器中打开该模型时,此属性会出现在 4 | // “属性”窗口中。 5 | 6 | // 如果没有生成任何上下文和实体类,可能是因为您创建了空模型但是 7 | // 尚未选择要使用的实体框架版本。要为您的模型生成一个上下文类和实体 8 | // 类,请在设计器中打开该模型,右键单击设计器图面,然后 9 | // 选择“从数据库更新模型...”、“从模型生成数据库...”或“添加代码生成 10 | // 项...”。 -------------------------------------------------------------------------------- /BPMS.Model/Model.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | -------------------------------------------------------------------------------- /BPMS.Model/Organization.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class Organization 16 | { 17 | public int ID { get; set; } 18 | public string Name { get; set; } 19 | public string Code { get; set; } 20 | public int ParentId { get; set; } 21 | public string ShortName { get; set; } 22 | public int Category { get; set; } 23 | public Nullable Manager { get; set; } 24 | public Nullable AssistantManager { get; set; } 25 | public string OuterPhone { get; set; } 26 | public string InnerPhone { get; set; } 27 | public string Fax { get; set; } 28 | public string Postalcode { get; set; } 29 | public string Address { get; set; } 30 | public string Web { get; set; } 31 | public string Remark { get; set; } 32 | public bool IsEnable { get; set; } 33 | public int SortIndex { get; set; } 34 | public System.DateTime CreateDate { get; set; } 35 | public int CreateUserId { get; set; } 36 | public string CreateUserName { get; set; } 37 | public System.DateTime ModifyDate { get; set; } 38 | public int ModifyUserId { get; set; } 39 | public string ModifyUserName { get; set; } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /BPMS.Model/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.Model")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.Model")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("b7783ff4-ed8c-4159-b8d3-37a7d393e1f2")] 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 | -------------------------------------------------------------------------------- /BPMS.Model/PurviewInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class PurviewInfo 16 | { 17 | public int ID { get; set; } 18 | public int SystemId { get; set; } 19 | public string Name { get; set; } 20 | public string Code { get; set; } 21 | public int ParentId { get; set; } 22 | public int PurviewType { get; set; } 23 | public string Remark { get; set; } 24 | public bool IsEnable { get; set; } 25 | public int SortIndex { get; set; } 26 | public System.DateTime CreateDate { get; set; } 27 | public int CreateUserId { get; set; } 28 | public string CreateUserName { get; set; } 29 | public System.DateTime ModifyDate { get; set; } 30 | public int ModifyUserId { get; set; } 31 | public string ModifyUserName { get; set; } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /BPMS.Model/Result.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace BPMS.Model 3 | { 4 | /// 5 | /// 返回结果 6 | /// 7 | public class Result 8 | { 9 | public bool IsSuccess { get; set; } 10 | public string Message { get; set; } 11 | public bool IsRefresh { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /BPMS.Model/RoleInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class RoleInfo 16 | { 17 | public int ID { get; set; } 18 | public int SystemId { get; set; } 19 | public int CompanyId { get; set; } 20 | public string Name { get; set; } 21 | public string Code { get; set; } 22 | public int Category { get; set; } 23 | public string Remark { get; set; } 24 | public bool IsEnable { get; set; } 25 | public int SortIndex { get; set; } 26 | public System.DateTime CreateDate { get; set; } 27 | public int CreateUserId { get; set; } 28 | public string CreateUserName { get; set; } 29 | public System.DateTime ModifyDate { get; set; } 30 | public int ModifyUserId { get; set; } 31 | public string ModifyUserName { get; set; } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /BPMS.Model/RolePurview.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class RolePurview 16 | { 17 | public int ID { get; set; } 18 | public int RoleId { get; set; } 19 | public int PurviewId { get; set; } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /BPMS.Model/SP_GetUserMenu_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | 14 | public partial class SP_GetUserMenu_Result 15 | { 16 | public int systemID { get; set; } 17 | public string systemCode { get; set; } 18 | public int roleID { get; set; } 19 | public string roleCode { get; set; } 20 | public int ParentId { get; set; } 21 | public string Name { get; set; } 22 | public string Code { get; set; } 23 | public int Category { get; set; } 24 | public Nullable PurviewId { get; set; } 25 | public byte[] Icon { get; set; } 26 | public string IconUrl { get; set; } 27 | public string NavigateUrl { get; set; } 28 | public string FormName { get; set; } 29 | public bool IsSplit { get; set; } 30 | public int SortIndex { get; set; } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /BPMS.Model/SP_GetUserPurview_Result.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | 14 | public partial class SP_GetUserPurview_Result 15 | { 16 | public int systemID { get; set; } 17 | public string systemCode { get; set; } 18 | public int roleID { get; set; } 19 | public string roleCode { get; set; } 20 | public int PurviewId { get; set; } 21 | public string Name { get; set; } 22 | public string Code { get; set; } 23 | public int ParentId { get; set; } 24 | public int PurviewType { get; set; } 25 | public string Remark { get; set; } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /BPMS.Model/SysLog.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class SysLog 16 | { 17 | public int ID { get; set; } 18 | public int OperationType { get; set; } 19 | public string TableName { get; set; } 20 | public string BusinessName { get; set; } 21 | public int ObjectId { get; set; } 22 | public string IPAddress { get; set; } 23 | public string IPAddressName { get; set; } 24 | public string Remark { get; set; } 25 | public System.DateTime CreateDate { get; set; } 26 | public int CreateUserId { get; set; } 27 | public string CreateUserName { get; set; } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /BPMS.Model/SysLogDetails.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class SysLogDetails 16 | { 17 | public int ID { get; set; } 18 | public int SyslogId { get; set; } 19 | public string FieldName { get; set; } 20 | public string FieldText { get; set; } 21 | public string NewValue { get; set; } 22 | public string OldValue { get; set; } 23 | public string Remark { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /BPMS.Model/SysLoginLog.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class SysLoginLog 16 | { 17 | public int ID { get; set; } 18 | public System.DateTime CreateDate { get; set; } 19 | public int SystemId { get; set; } 20 | public string Account { get; set; } 21 | public int Status { get; set; } 22 | public string IPAddress { get; set; } 23 | public string IPAddressName { get; set; } 24 | public string Remark { get; set; } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /BPMS.Model/SystemExceptionLog.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class SystemExceptionLog 16 | { 17 | public int ID { get; set; } 18 | public string Source { get; set; } 19 | public string Exception { get; set; } 20 | public string Description { get; set; } 21 | public System.DateTime CreateDate { get; set; } 22 | public string IPAddress { get; set; } 23 | public string IPAddressName { get; set; } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /BPMS.Model/SystemInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class SystemInfo 16 | { 17 | public int ID { get; set; } 18 | public string Name { get; set; } 19 | public string Code { get; set; } 20 | public bool IsEnable { get; set; } 21 | public string Remark { get; set; } 22 | public int SortIndex { get; set; } 23 | public System.DateTime CreateDate { get; set; } 24 | public int CreateUserId { get; set; } 25 | public string CreateUserName { get; set; } 26 | public System.DateTime ModifyDate { get; set; } 27 | public int ModifyUserId { get; set; } 28 | public string ModifyUserName { get; set; } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /BPMS.Model/TableId.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class TableId 16 | { 17 | public int ID { get; set; } 18 | public System.DateTime UpdateTime { get; set; } 19 | public string TableName { get; set; } 20 | public int CurrentId { get; set; } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /BPMS.Model/UserPurview.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class UserPurview 16 | { 17 | public int ID { get; set; } 18 | public int UserId { get; set; } 19 | public int PurviewId { get; set; } 20 | public int RoleId { get; set; } 21 | public bool HasRight { get; set; } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /BPMS.Model/UserRole.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码已从模板生成。 4 | // 5 | // 手动更改此文件可能导致应用程序出现意外的行为。 6 | // 如果重新生成代码,将覆盖对此文件的手动更改。 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace BPMS.Model 11 | { 12 | using System; 13 | using System.Collections.Generic; 14 | 15 | public partial class UserRole 16 | { 17 | public int ID { get; set; } 18 | public int UserId { get; set; } 19 | public int RoleId { get; set; } 20 | public System.DateTime CreateDate { get; set; } 21 | public int CreateUserId { get; set; } 22 | public string CreateUserName { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /BPMS.Model/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /BPMS.References/Base/BaseRef.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.References 7 | { 8 | public class BaseRef 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /BPMS.References/Base/BaseWcfServiceRef.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace BPMS.References 8 | { 9 | public abstract class BaseWcfServiceRef 10 | { 11 | /// 12 | /// 服务地址 13 | /// 14 | protected abstract string Url { get; } 15 | /// 16 | /// 获取服务对象工厂 17 | /// 18 | protected DynamicProxyFactory DynProFac 19 | { 20 | get { return new DynamicProxyFactory(Url); } 21 | } 22 | /// 23 | /// 获取服务对象 base.DynProFac.CreateProxy("服务ClassName") 24 | /// 25 | protected abstract DynamicProxy DynPro 26 | { 27 | get; 28 | } 29 | /// 30 | /// 获取对象 31 | /// 32 | /// 33 | /// 34 | protected DynamicObject GetDynamicObject(string typeName) 35 | { 36 | DynamicObject obj = new DynamicObject(DynPro.ObjectType.Assembly.GetType(typeName, true, true)); 37 | obj.CallConstructor(); 38 | return obj; 39 | } 40 | /// 41 | /// 获取对象 42 | /// 43 | /// 44 | /// 45 | protected DynamicObject GetDynamicObject(object obj) 46 | { 47 | return new DynamicObject(obj); 48 | } 49 | /// 50 | /// 执行方法 51 | /// 52 | /// 53 | /// 54 | /// 55 | protected object InvokeMethod(string methodName, params object[] args) 56 | { 57 | return this.DynPro.CallMethod(methodName, args); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /BPMS.References/Base/BaseWebServiceRef.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace BPMS.References 8 | { 9 | public abstract class BaseWebServiceRef 10 | { 11 | /// 12 | /// 服务地址 13 | /// 14 | protected abstract string Url { get; } 15 | /// 16 | /// WebService服务对象 base.GetInstance("服务ClassName") 17 | /// 18 | protected abstract object ServiceInstance { get; } 19 | /// 20 | /// 获取实体 21 | /// 22 | /// 23 | /// 24 | protected object GetInstance(string className) 25 | { 26 | var obj = WebServiceHelper.GetClassInstance(this.Url, className); 27 | ((System.Web.Services.Protocols.SoapHttpClientProtocol)obj).Url = this.Url; 28 | return obj; 29 | } 30 | 31 | protected object InvokeMethod(string methodName, object[] args) 32 | { 33 | return WebServiceHelper.InvokeWebService(this.ServiceInstance, methodName, args); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /BPMS.References/Base/RefProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.References 7 | { 8 | public class RefProvider 9 | { 10 | public static BPMSServiceRef BPMSServiceRefInstance = null; 11 | 12 | public static void Dispose() 13 | { 14 | if (BPMSServiceRefInstance != null) 15 | BPMSServiceRefInstance.Dispose(); 16 | } 17 | 18 | public static void Init() 19 | { 20 | BPMSServiceRefInstance = new BPMSServiceRef(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /BPMS.References/Frame/SysLog.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using BPMS.References.BPMService; 4 | using System; 5 | using System.Data; 6 | using System.ServiceModel; 7 | 8 | namespace BPMS.References 9 | { 10 | /// 11 | /// 系统日志 12 | /// 13 | public partial class BPMSServiceRef 14 | { 15 | #region 获取系统日志列表 16 | /// 17 | /// 获取系统日志列表 18 | /// 19 | /// 20 | /// 21 | public DataTable SysLogGetList(DateTime startDate, DateTime endDate, int operationType, string moduleName, string account, int pageIndex, int pageSize, out int count) 22 | { 23 | if (((ServiceClient)_proxy).State == CommunicationState.Faulted) 24 | CreateOpenClient(); 25 | count = 0; 26 | try 27 | { 28 | string rlt = _proxy.SysLogGetList(out count, User.Current.Credentials.ToXmlString(), startDate, endDate, operationType, moduleName, account, pageIndex, pageSize); 29 | return ZipHelper.DecompressDataTable(rlt); 30 | } 31 | catch (EndpointNotFoundException endPointEx) 32 | { 33 | throw endPointEx.InnerException; 34 | } 35 | catch (Exception ex) 36 | { 37 | if (((ServiceClient)_proxy).State == CommunicationState.Faulted) 38 | CreateOpenClient(); 39 | throw ex; 40 | } 41 | } 42 | #endregion 43 | 44 | #region 清除日志 45 | /// 46 | /// 清除日志 47 | /// 48 | /// 49 | /// 50 | /// 成功 true 失败 false 51 | public bool SysLogClear(DateTime endDate) 52 | { 53 | return TryCatchCore(() => 54 | { 55 | return _proxy.SysLogClear(User.Current.Credentials.ToXmlString(), endDate); 56 | }); 57 | } 58 | #endregion 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /BPMS.References/Frame/SystemExceptionLog.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using BPMS.References.BPMService; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Data; 7 | using System.Linq; 8 | using System.ServiceModel; 9 | using System.Text; 10 | using System.Xml.Linq; 11 | 12 | namespace BPMS.References 13 | { 14 | /// 15 | /// 系统异常日志 16 | /// 17 | public partial class BPMSServiceRef 18 | { 19 | #region 获取异常日志 20 | /// 21 | /// 获取异常日志 22 | /// 23 | /// 24 | /// 25 | public DataTable SystemExceptionGetList(DateTime startDate, DateTime endDate, int pageIndex, int pageSize, out int count) 26 | { 27 | if (((ServiceClient)_proxy).State == CommunicationState.Faulted) 28 | CreateOpenClient(); 29 | count = 0; 30 | try 31 | { 32 | string rlt = _proxy.SystemExceptionGetList(out count, User.Current.Credentials.ToXmlString(), startDate, endDate, pageIndex, pageSize); 33 | return ZipHelper.DecompressDataTable(rlt); 34 | } 35 | catch (EndpointNotFoundException endPointEx) 36 | { 37 | throw endPointEx.InnerException; 38 | } 39 | catch (Exception ex) 40 | { 41 | if (((ServiceClient)_proxy).State == CommunicationState.Faulted) 42 | CreateOpenClient(); 43 | throw ex; 44 | } 45 | } 46 | #endregion 47 | 48 | #region 清除日志 49 | /// 50 | /// 清除日志 51 | /// 52 | /// 53 | /// 54 | public bool SystemExceptionClear() 55 | { 56 | return TryCatchCore(() => 57 | { 58 | return _proxy.SystemExceptionClear(User.Current.Credentials.ToXmlString()); 59 | }); 60 | } 61 | #endregion 62 | 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /BPMS.References/Frame/UserRole.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using BPMS.References.BPMService; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Data; 7 | using System.Linq; 8 | using System.ServiceModel; 9 | using System.Text; 10 | using System.Xml.Linq; 11 | 12 | namespace BPMS.References 13 | { 14 | /// 15 | /// 用户角色 16 | /// 17 | public partial class BPMSServiceRef 18 | { 19 | #region 用户权限设置 20 | /// 21 | /// 用户权限设置 22 | /// 23 | /// 24 | /// 0操作失败,请联系管理员 25 | /// 1操作成功 26 | /// 27 | public int UserRoleSet(int systemId, int userId, List lstRoleId) 28 | { 29 | return TryCatchCore(() => 30 | { 31 | return _proxy.UserRoleSet(User.Current.Credentials.ToXmlString(), systemId, userId, lstRoleId.ToArray()); 32 | }); 33 | } 34 | #endregion 35 | 36 | #region 用户权限设置 37 | /// 38 | /// 用户权限设置 39 | /// 40 | /// 41 | /// 42 | /// 43 | public DataTable UserRoleGetList(int systemId, int userId) 44 | { 45 | string rlt = TryCatchCore(() => 46 | { 47 | return _proxy.UserRoleGetList(User.Current.Credentials.ToXmlString(), systemId, userId); 48 | }); 49 | return ZipHelper.DecompressDataTable(rlt); 50 | } 51 | #endregion 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /BPMS.References/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.References")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.References")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("50c90b72-ffcc-4a9b-8653-c9dda66ecad9")] 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 | -------------------------------------------------------------------------------- /BPMS.References/Service References/BPMService/Arrays1.xsd: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /BPMS.References/Service References/BPMService/Reference.svcmap: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | false 5 | true 6 | 7 | false 8 | false 9 | false 10 | 11 | 12 | true 13 | Auto 14 | true 15 | true 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /BPMS.References/Service References/BPMService/configuration.svcinfo: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /BPMS.References/app.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /BPMS.ServerManager/App.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /BPMS.ServerManager/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading; 7 | using System.Windows; 8 | 9 | namespace BPMS.ServerManager 10 | { 11 | /// 12 | /// Interaction logic for App.xaml 13 | /// 14 | public partial class App : Application 15 | { 16 | private static Mutex MyMutex = null; 17 | public App() 18 | { 19 | /******************检查实例是否唯一******************/ 20 | bool createNew = false; 21 | MyMutex = new Mutex(true, "BPMS.ServerManager", out createNew); 22 | if (!createNew) 23 | { 24 | Environment.Exit(0); 25 | return; 26 | } 27 | /******************************************************/ 28 | //如果把IP地址比作一间房子 ,端口就是出入这间房子的门。真正的房子只有几个门, 29 | // 但是一个IP地址的端口 可以有65536(即:2^16)个之多! 30 | // 端口是通过端口号来标记的,端口号只有整数,范围是从0 到65535(2^16-1)。 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /BPMS.ServerManager/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.18408 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace BPMS.ServerManager.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /BPMS.ServerManager/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /BPMS.ServerManager/Properties/licenses.licx: -------------------------------------------------------------------------------- 1 | DevExpress.Xpf.Bars.BarManager, DevExpress.Xpf.Core.v13.2, Version=13.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a 2 | -------------------------------------------------------------------------------- /BPMS.ServerManager/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /BPMS.Services/Frame/Login.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Data; 6 | 7 | namespace BPMS.Services 8 | { 9 | public partial class Service 10 | { 11 | public int Login(string systemCode, string account, string pwd, out int systemId, out int userId, out string userName, out string xmlRoleList) 12 | { 13 | List roleList = null; 14 | int rlt = this.BLLProvider.UserInfoBLL.Login(systemCode, account, pwd, out systemId, out userId, out userName, out roleList); 15 | xmlRoleList = roleList.ToXmlString(); 16 | return rlt; 17 | } 18 | 19 | public int LoginChangePassword(int userId, string oldPwd, string newPwd) 20 | { 21 | return this.BLLProvider.UserInfoBLL.ChangePassword(userId, oldPwd, newPwd); 22 | } 23 | 24 | public string LogGetUserMenuList(int systemId, int roleId, int userId) 25 | { 26 | DataTable rltDt = this.BLLProvider.UserInfoBLL.GetUserMenu(systemId, roleId, userId); 27 | return ZipHelper.CompressDataTable(rltDt); 28 | } 29 | 30 | public int LogOut(int systemId, int userId) 31 | { 32 | return this.BLLProvider.UserInfoBLL.LogOut(systemId, userId); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /BPMS.Services/Frame/Service.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Contracts; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace BPMS.Services 8 | { 9 | public partial class Service : BaseService, IService 10 | { 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /BPMS.Services/Frame/SysLog.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Data; 6 | using System.Linq; 7 | using System.Text; 8 | 9 | namespace BPMS.Services 10 | { 11 | public partial class Service 12 | { 13 | public string SysLogGetList(string xmlCredentials, DateTime startDate, DateTime endDate, int operationType, string moduleName, string account, int pageIndex, int pageSize, out int count) 14 | { 15 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 16 | if (CheckPurview(objCredentials, EModules.SystemMng, EFunctions.SysLogMng, EActions.Vie) != 1) 17 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 18 | DataTable dtRlt = this.BLLProvider.SysLogBLL.GetList(objCredentials.UserId, objCredentials.UserName, startDate, endDate, (EOperationType)operationType, moduleName, account, pageIndex, pageSize, out count); 19 | return ZipHelper.CompressDataTable(dtRlt); 20 | } 21 | 22 | public bool SysLogClear(string xmlCredentials, DateTime endDate) 23 | { 24 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 25 | if (CheckPurview(objCredentials, EModules.SystemMng, EFunctions.SysLogMng, EActions.Del) != 1) 26 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 27 | return this.BLLProvider.SysLogBLL.Delete(objCredentials.UserId, objCredentials.UserName, endDate) > 0; 28 | } 29 | 30 | 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /BPMS.Services/Frame/SysLoginLog.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Data; 6 | using System.Linq; 7 | using System.Text; 8 | 9 | namespace BPMS.Services 10 | { 11 | public partial class Service 12 | { 13 | public string SysLoginLogGetList(string xmlCredentials, DateTime startDate, DateTime endDate, string account, int pageIndex, int pageSize, out int count) 14 | { 15 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 16 | if (CheckPurview(objCredentials, EModules.SystemMng, EFunctions.LoginLogMng, EActions.Vie) != 1) 17 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 18 | DataTable dtRlt = this.BLLProvider.SysLoginLogBLL.GetList(objCredentials.UserId, objCredentials.UserName, startDate, endDate, objCredentials.SystemId, account, pageIndex, pageSize, out count); 19 | return ZipHelper.CompressDataTable(dtRlt); 20 | } 21 | /// 22 | /// 清除日志 23 | /// 24 | /// 25 | /// 26 | /// 27 | public bool SysLoginLogClear(string xmlCredentials, DateTime endDate) 28 | { 29 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 30 | if (CheckPurview(objCredentials, EModules.SystemMng, EFunctions.LoginLogMng, EActions.Del) != 1) 31 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 32 | return this.BLLProvider.SysLoginLogBLL.Delete(objCredentials.UserId, objCredentials.UserName, objCredentials.SystemId, endDate) > 0; 33 | } 34 | 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /BPMS.Services/Frame/SystemExceptionLog.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Data; 6 | using System.Linq; 7 | using System.Text; 8 | 9 | namespace BPMS.Services 10 | { 11 | public partial class Service 12 | { 13 | public string SystemExceptionGetList(string xmlCredentials, DateTime startDate, DateTime endDate, int pageIndex, int pageSize, out int count) 14 | { 15 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 16 | if (CheckPurview(objCredentials, EModules.SystemMng, EFunctions.SystemExceptionMng, EActions.Vie) != 1) 17 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 18 | DataTable dtRlt = this.BLLProvider.SystemExceptionLogBLL.GetList(objCredentials.UserId, objCredentials.UserName, startDate, endDate, pageIndex, pageSize, out count); 19 | return ZipHelper.CompressDataTable(dtRlt); 20 | } 21 | 22 | public bool SystemExceptionClear(string xmlCredentials) 23 | { 24 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 25 | if (CheckPurview(objCredentials, EModules.SystemMng, EFunctions.SystemExceptionMng, EActions.Del) != 1) 26 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 27 | return this.BLLProvider.SystemExceptionLogBLL.Delete(objCredentials.UserId, objCredentials.UserName) > 0; 28 | } 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /BPMS.Services/Frame/UserRole.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Common; 2 | using BPMS.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Data; 6 | 7 | namespace BPMS.Services 8 | { 9 | public partial class Service 10 | { 11 | public int UserRoleSet(string xmlCredentials, int systemId, int userId, List lstRoleId) 12 | { 13 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 14 | if (CheckPurview(objCredentials, EModules.PurviewMng, EFunctions.UserMng, EActions.Upd) != 1) 15 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 16 | return this.BLLProvider.UserRoleBLL.UserRoleSet(objCredentials.UserId, objCredentials.UserName, systemId, userId, lstRoleId); 17 | } 18 | 19 | public string UserRoleGetList(string xmlCredentials, int systemId, int userId) 20 | { 21 | ClientCredentials objCredentials = xmlCredentials.ToModel(); 22 | if (CheckPurview(objCredentials, EModules.PurviewMng, EFunctions.UserMng, EActions.Vie) != 1) 23 | throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); 24 | DataTable rltDt = this.BLLProvider.UserRoleBLL.GetList(objCredentials.UserId, objCredentials.UserName, systemId, userId); 25 | return ZipHelper.CompressDataTable(rltDt); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /BPMS.Services/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.Services")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.Services")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("ec9c3666-d156-4c2a-ac3a-d5d6e020009f")] 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 | -------------------------------------------------------------------------------- /BPMS.ViewModels.UnitTest/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下特性集 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.ViewModels.UnitTest")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.ViewModels.UnitTest")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("6829b356-882a-47f8-b05f-b0bfacdc3bd9")] 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 | -------------------------------------------------------------------------------- /BPMS.ViewModels.UnitTest/UnitTest1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace BPMS.ViewModels.UnitTest 5 | { 6 | [TestClass] 7 | public class UnitTest1 8 | { 9 | [TestMethod] 10 | public void TestMethod1() 11 | { 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /BPMS.ViewModels/Delegates.cs: -------------------------------------------------------------------------------- 1 | using BPMS.Model; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Runtime.InteropServices; 6 | using System.Text; 7 | 8 | namespace BPMS.ViewModels 9 | { 10 | #region 返回结果委托 11 | /// 12 | /// 返回结果委托 13 | /// 14 | /// 15 | [Serializable] 16 | [ComVisible(true)] 17 | public delegate void GetResultEventHandle(Result rlt); 18 | #endregion 19 | } 20 | -------------------------------------------------------------------------------- /BPMS.ViewModels/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的常规信息通过以下 6 | // 特性集控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("BPMS.ViewModels")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BPMS.ViewModels")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 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("8b0b7869-66f9-4f80-b089-2ac489dd4a32")] 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 | -------------------------------------------------------------------------------- /BPMS.Views.Default/App.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /BPMS.Views.Default/Common/Consts.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace BPMS.Views.Default 7 | { 8 | /// 9 | /// 常量集合 10 | /// 11 | public class Consts 12 | { 13 | 14 | 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /BPMS.Views.Default/Core/AppUpdaterHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | 8 | namespace BPMS.Views.Default 9 | { 10 | public class AppUpdaterHelper 11 | { 12 | public static int CheckNewFiles(string appUpdaterPath, string endPointAddress) 13 | { 14 | return RunUpdater(appUpdaterPath, String.Format("1 \"{0}\"", endPointAddress), true); 15 | } 16 | 17 | public static void RunUpdater(string appUpdaterPath, string endPointAddress, int threadNum, long bufferSize, int delayMillisecond, string executablePath) 18 | { 19 | RunUpdater(appUpdaterPath, String.Format("0 \"{0}\" \"{1}\" \"{2}\" \"{3}\" \"{4}\"", 20 | endPointAddress, executablePath, threadNum, bufferSize, delayMillisecond), false); 21 | } 22 | 23 | private static int RunUpdater(string appUpdaterPath, string arguments, bool waitForExit) 24 | { 25 | int exitCode = 0; 26 | FileInfo info = new FileInfo(appUpdaterPath); 27 | if (!info.Exists) 28 | return 0; 29 | ProcessStartInfo info2 = new ProcessStartInfo(); 30 | info2.FileName = info.FullName; 31 | info2.WorkingDirectory = info.Directory.FullName; 32 | info2.Arguments = arguments; 33 | Process process = new Process(); 34 | process.StartInfo = info2; 35 | process.Start(); 36 | if (waitForExit) 37 | { 38 | process.WaitForExit(); 39 | exitCode = process.ExitCode; 40 | } 41 | else 42 | { 43 | //process.WaitForExit(1000); 44 | exitCode = 0; 45 | } 46 | process.Close(); 47 | return exitCode; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/16/arrow_out.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/16/arrow_out.gif -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/16/arrow_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/16/arrow_refresh.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/20131012030416621.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/20131012030416621.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/424.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/424.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/4963_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/4963_home.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/5026_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/5026_settings.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/eye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/eye.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/loading.gif -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/n1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/n1.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/n2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/n2.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/n3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/n3.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/n4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/n4.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/people.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/people.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/settings.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Images/32/sitemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobinGitHub/BPMS/e7de9bbae8ffa524405191917af445826b341dfd/BPMS.Views.Default/Images/32/sitemap.png -------------------------------------------------------------------------------- /BPMS.Views.Default/Login.xaml: -------------------------------------------------------------------------------- 1 |  13 | 14 |