├── .DS_Store
├── ._.DS_Store
├── .gitattributes
├── .gitignore
├── Frame.AppPortal
├── App.config
├── App.xaml
├── App.xaml.cs
├── DB
│ └── MySQL
│ │ └── FRAME_MYSQL.sql
├── Frame.AppPortal.csproj
├── FrameSplashScreen
│ ├── Image.png
│ ├── SplashScreenView.xaml
│ └── SplashScreenView.xaml.cs
├── MVModels
│ └── MainWindowModel.cs
├── MainWindow.xaml
├── MainWindow.xaml.cs
├── NLog.config
├── NLog.xsd
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Licenses.licx
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Screenshots
│ ├── Banner设置.jpg
│ ├── 功能组管理.jpg
│ ├── 左侧菜单管理.jpg
│ ├── 权限管理.jpg
│ └── 顶部菜单管理.jpg
├── images
│ ├── Customer_32x32.png
│ ├── Home_32x32.png
│ └── Properties_32x32.png
└── packages.config
├── Frame.Business
├── App.config
├── BannerManage.cs
├── BaseManage.cs
├── CommonManage.cs
├── CompanyManage.cs
├── DeptManage.cs
├── Frame.Business.csproj
├── IBaseManage.cs
├── LeftMenuPermissionsManage.cs
├── LeftMenusManage.cs
├── LogManage.cs
├── NavBarGroupsManage.cs
├── OperatorManage.cs
├── PermissionsManage.cs
├── Properties
│ └── AssemblyInfo.cs
├── RolesManage.cs
├── StaffManage.cs
├── StaffRoleRelationshipsManage.cs
├── SysSettingManage.cs
├── TopMenusManage.cs
├── interfaces
│ ├── IBannerManage.cs
│ ├── ICompanyManage.cs
│ ├── IDeptManage.cs
│ ├── ILeftMenuPermissionsManage.cs
│ ├── ILeftMenusManage.cs
│ ├── ILogManage.cs
│ ├── INavBarGroupsManage.cs
│ ├── IOperatorManage.cs
│ ├── IPermissionsManage.cs
│ ├── IRolesManage.cs
│ ├── IStaffManage.cs
│ ├── IStaffRoleRelationshipsManage.cs
│ ├── ISysSettingManage.cs
│ └── ITopMenusManage.cs
└── packages.config
├── Frame.Login
├── Frame.Login.csproj
├── Login.xaml
├── Login.xaml.cs
├── LogonComponents
│ └── default
│ │ ├── background.jpg
│ │ └── default.xaml
├── MVModels
│ └── Login.cs
├── Properties
│ └── AssemblyInfo.cs
├── SplashScreenHelper.cs
└── packages.config
├── Frame.MetaData
├── AffairService.cs
├── App.config
├── ApplyService.cs
├── ApplySortService.cs
├── ApproveService.cs
├── AreaService.cs
├── BaseService.cs
├── BuyItemService.cs
├── BuyOutItemService.cs
├── BuyOutService.cs
├── BuyService.cs
├── CauseSortService.cs
├── ChanceItemService.cs
├── ChanceService.cs
├── CityService.cs
├── ColumnService.cs
├── CorpFileService.cs
├── CorpService.cs
├── DeptService.cs
├── FileService.cs
├── FileSortService.cs
├── FinanceService.cs
├── Frame.MetaData.csproj
├── FrameContext.cs
├── HandleService.cs
├── IBaseService.cs
├── InSmsService.cs
├── IncomeService.cs
├── IndustryService.cs
├── KCorpService.cs
├── KSortService.cs
├── KStateService.cs
├── LeftMenuPermissionsService.cs
├── LeftMenusService.cs
├── LinkManService.cs
├── LinkService.cs
├── LogService.cs
├── MainService.cs
├── NavBarGroupsService.cs
├── NewsService.cs
├── PactService.cs
├── PaySortService.cs
├── PermissionsService.cs
├── PhaseService.cs
├── PrintbarCodeService.cs
├── ProSortService.cs
├── ProductService.cs
├── Properties
│ └── AssemblyInfo.cs
├── QuoteItemService.cs
├── QuoteService.cs
├── RolesService.cs
├── SaleItemService.cs
├── SaleOutItemService.cs
├── SaleOutService.cs
├── SaleService.cs
├── ServiceService.cs
├── ServiceSortService.cs
├── SetRoleService.cs
├── SmsMbService.cs
├── SmsService.cs
├── SourceService.cs
├── StaffRoleRelationshipsService.cs
├── StaffService.cs
├── StyleService.cs
├── SysService.cs
├── SysSettingService.cs
├── TaskService.cs
├── TopMenusService.cs
├── TransportSortService.cs
├── UnitService.cs
├── UnusualService.cs
├── UnusualSortService.cs
└── packages.config
├── Frame.Models
├── Affair.cs
├── App.config
├── Apply.cs
├── ApplySort.cs
├── Approve.cs
├── Area.cs
├── Buy.cs
├── BuyItem.cs
├── BuyOut.cs
├── BuyOutItem.cs
├── CauseSort.cs
├── Chance.cs
├── ChanceItem.cs
├── City.cs
├── Column.cs
├── Corp.cs
├── CorpFile.cs
├── Dept.cs
├── File.cs
├── FileSort.cs
├── Finance.cs
├── Frame.Models.csproj
├── Handle.cs
├── InSms.cs
├── Income.cs
├── Industry.cs
├── KCorp.cs
├── KSort.cs
├── KState.cs
├── LeftMenuPermissions.cs
├── LeftMenus.cs
├── Link.cs
├── LinkMan.cs
├── Log.cs
├── Main.cs
├── NavBarGroups.cs
├── News.cs
├── Pact.cs
├── PaySort.cs
├── Permissions.cs
├── Phase.cs
├── PrintbarCode.cs
├── ProSort.cs
├── Product.cs
├── Properties
│ └── AssemblyInfo.cs
├── Quote.cs
├── QuoteItem.cs
├── Roles.cs
├── Sale.cs
├── SaleItem.cs
├── SaleOut.cs
├── SaleOutItem.cs
├── Service.cs
├── ServiceSort.cs
├── SetRole.cs
├── SettingModels
│ ├── Banner.cs
│ └── Company.cs
├── Sms.cs
├── SmsMb.cs
├── Source.cs
├── Staff.cs
├── StaffRoleRelationships.cs
├── Style.cs
├── Sys.cs
├── SysModels
│ ├── CommandResult.cs
│ ├── Common
│ │ ├── GetConnectionResponseModel.cs
│ │ └── SplashScreenDataModel.cs
│ ├── Dept
│ │ ├── DeptAddRequestModel.cs
│ │ ├── DeptAllResponseModel.cs
│ │ └── DeptUpdateRequestModel.cs
│ ├── LeftMenuPermissions
│ │ └── ModifyPermissionsRequestModel.cs
│ ├── LeftMenus
│ │ ├── LeftMenusAddRequestModel.cs
│ │ └── LeftMenusUpdateRequestModel.cs
│ ├── Log
│ │ ├── LogAddRequestModel.cs
│ │ └── LogAllResponseModel.cs
│ ├── MainWindow
│ │ └── DocumentPanelCaptionModel.cs
│ ├── NavBarGroups
│ │ ├── NavBarGroupsAddRequestModel.cs
│ │ └── NavBarGroupsUpdateRequestModel.cs
│ ├── Operator
│ │ ├── OperatorAllResponseModel.cs
│ │ └── OperatorLogonRequestModel.cs
│ ├── Permissions
│ │ ├── PermissionsAddRequestModel.cs
│ │ └── PermissionsUpdateRequestModel.cs
│ ├── Roles
│ │ └── RoleEditRequestModel.cs
│ ├── Staff
│ │ ├── OperatorAddResponseModel.cs
│ │ ├── OperatorEditResponseModel.cs
│ │ ├── StaffAddRequestModel.cs
│ │ ├── StaffAllResponseModel.cs
│ │ ├── StaffUpdateRequestModel.cs
│ │ └── UserManagerPrintModel.cs
│ └── TopMenus
│ │ ├── AllTopMenusHierarchicalDataModel.cs
│ │ ├── TopMenusAddRequestModel.cs
│ │ └── TopMenusUpdateRequestModel.cs
├── SysSetting.cs
├── Task.cs
├── TopMenus.cs
├── TransportSort.cs
├── Unit.cs
├── Unusual.cs
├── UnusualSort.cs
├── interfaces
│ └── IMenus.cs
└── packages.config
├── Frame.Proxy
├── BaseWindow.cs
├── ClsLoginModel.cs
├── Controls
│ ├── BaseImgButton.cs
│ └── TreeViewImgItem.cs
├── Enums
│ └── PermissionsEnum.cs
├── Frame.Proxy.csproj
├── INetUserControl.cs
├── Properties
│ ├── Annotations.cs
│ └── AssemblyInfo.cs
├── Resources
│ ├── Add_16x16.png
│ ├── Calculator_32x32.png
│ ├── Clear_16x16.png
│ ├── Delete_16x16.png
│ ├── Edit_16x16.png
│ ├── Exit2_32x32.png
│ ├── ExportToCSV_16x16.png
│ ├── GridSplitterColumnPoint.gif
│ ├── GridSplitterRowPoint.gif
│ ├── Info_32x32.png
│ ├── MoveDown_16x16.png
│ ├── MoveUp_16x16.png
│ ├── Preview_16x16.png
│ ├── Preview_32x32.png
│ ├── Print_16x16.png
│ ├── Refresh_16x16.png
│ ├── Save_16x16.png
│ ├── TreeViewItem.gif
│ └── Zoom_16x16.png
├── Themes
│ └── AppDictionary.xaml
├── ViewModel.cs
├── Windows
│ ├── PaginatorHeaderFooter.cs
│ ├── PrintPreviewWindow.xaml
│ └── PrintPreviewWindow.xaml.cs
├── interfaces
│ ├── IDocumentRenderer.cs
│ └── IUserLogin.cs
└── packages.config
├── Frame.SysWindows
├── Controls
│ ├── BannerDefault.xaml
│ ├── BannerDefault.xaml.cs
│ ├── BannerManager.xaml
│ ├── BannerManager.xaml.cs
│ ├── CTreeView.cs
│ ├── DeptManager.xaml
│ ├── DeptManager.xaml.cs
│ ├── ExceptionManager.xaml
│ ├── ExceptionManager.xaml.cs
│ ├── LeftMenu.xaml
│ ├── LeftMenu.xaml.cs
│ ├── LeftMenuManager.xaml
│ ├── LeftMenuManager.xaml.cs
│ ├── LoginLogManager.xaml
│ ├── LoginLogManager.xaml.cs
│ ├── LoginThemeManager.xaml
│ ├── LoginThemeManager.xaml.cs
│ ├── NavBarGroupManager.xaml
│ ├── NavBarGroupManager.xaml.cs
│ ├── OperatorAddEdit.xaml
│ ├── OperatorAddEdit.xaml.cs
│ ├── OperatorManager.xaml
│ ├── OperatorManager.xaml.cs
│ ├── RolesManager.xaml
│ ├── RolesManager.xaml.cs
│ ├── TopMenuManager.xaml
│ ├── TopMenuManager.xaml.cs
│ ├── UserAddEdit.xaml
│ ├── UserAddEdit.xaml.cs
│ ├── UserManager.xaml
│ └── UserManager.xaml.cs
├── Files.cs
├── Frame.SysWindows.csproj
├── MVModels
│ ├── BannerManagerViewModel.cs
│ ├── BugFeedbackViewModel.cs
│ ├── DgDllEntryClass.cs
│ ├── OperatorAddEdit.cs
│ ├── RolesManager.cs
│ ├── RolesManagerViewModel.cs
│ ├── SplashScreenViewModel.cs
│ └── StaffManager.cs
├── NetUserControl.cs
├── NetUserControlForTop.cs
├── Prints
│ ├── LoginLogManagerPrint.xaml
│ ├── LoginLogManagerPrintRender.cs
│ ├── UserManagerPrint.xaml
│ └── UserManagerPrintRender.cs
├── Properties
│ └── AssemblyInfo.cs
├── Resources
│ ├── Article_16x16.png
│ ├── BannerDefault.jpeg
│ ├── Customer_32x32.png
│ ├── Home_32x32.png
│ ├── New_16x16.png
│ ├── Open2_16x16.png
│ ├── Open_16x16.png
│ ├── OperatingSystem_32x32.png
│ ├── ProgrammingLanguage_32x32.png
│ └── Properties_32x32.png
├── Windows
│ ├── Common
│ │ ├── About.xaml
│ │ ├── About.xaml.cs
│ │ ├── BugFeedback.xaml
│ │ ├── BugFeedback.xaml.cs
│ │ ├── DllPathRefer.xaml
│ │ ├── DllPathRefer.xaml.cs
│ │ ├── LeftMenuRefer.xaml
│ │ ├── LeftMenuRefer.xaml.cs
│ │ ├── ModifyPassword.xaml
│ │ ├── ModifyPassword.xaml.cs
│ │ ├── NavBarGroupIcoRefer.xaml
│ │ ├── NavBarGroupIcoRefer.xaml.cs
│ │ ├── SystemInit.xaml
│ │ └── SystemInit.xaml.cs
│ ├── Company
│ │ ├── CompanyEdit.xaml
│ │ └── CompanyEdit.xaml.cs
│ └── Staff
│ │ ├── OperatorAdd.xaml
│ │ ├── OperatorAdd.xaml.cs
│ │ ├── OperatorEdit.xaml
│ │ ├── OperatorEdit.xaml.cs
│ │ ├── StaffAdd.xaml
│ │ ├── StaffAdd.xaml.cs
│ │ ├── StaffEdit.xaml
│ │ ├── StaffEdit.xaml.cs
│ │ ├── StaffRefer.xaml
│ │ └── StaffRefer.xaml.cs
└── packages.config
├── Frame.Utils
├── Config.cs
├── ELogger.cs
├── Enums.cs
├── Frame.Utils.csproj
├── Functions.cs
├── JsonHelper.cs
├── PasswordBoxHelper.cs
├── Properties
│ └── AssemblyInfo.cs
├── RelayCommand.cs
├── SystemInfo.cs
└── packages.config
├── FrameSystem.sln
└── README.md
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/.DS_Store
--------------------------------------------------------------------------------
/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/._.DS_Store
--------------------------------------------------------------------------------
/Frame.AppPortal/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Frame.AppPortal/FrameSplashScreen/Image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/FrameSplashScreen/Image.png
--------------------------------------------------------------------------------
/Frame.AppPortal/FrameSplashScreen/SplashScreenView.xaml:
--------------------------------------------------------------------------------
1 |
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 |
--------------------------------------------------------------------------------
/Frame.AppPortal/FrameSplashScreen/SplashScreenView.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace Frame.AppPortal.FrameSplashScreen
2 | {
3 | ///
4 | /// FrameSplashScreen.xaml 的交互逻辑
5 | ///
6 | public partial class SplashScreenView
7 | {
8 | public SplashScreenView()
9 | {
10 | InitializeComponent();
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Frame.AppPortal/MVModels/MainWindowModel.cs:
--------------------------------------------------------------------------------
1 | using System.ComponentModel;
2 |
3 | namespace Frame.AppPortal.MVModels
4 | {
5 | public class MainWindowModel : INotifyPropertyChanged
6 | {
7 | public event PropertyChangedEventHandler PropertyChanged;
8 | private string _companyName;
9 | private string _copyright;
10 | private string _logonName;
11 |
12 | public string CompanyName
13 | {
14 | get { return _companyName; }
15 | set
16 | {
17 | _companyName = value;
18 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(CompanyName)));
19 | }
20 | }
21 |
22 | public string Copyright
23 | {
24 | get { return _copyright; }
25 | set
26 | {
27 | _copyright = value;
28 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Copyright)));
29 | }
30 | }
31 |
32 | public string LogonName
33 | {
34 | get { return _logonName; }
35 | set
36 | {
37 | _logonName = value;
38 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(LogonName)));
39 | }
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Frame.AppPortal/NLog.config:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
12 |
13 |
14 |
18 |
19 |
20 |
25 |
26 |
29 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/Frame.AppPortal/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // 有关程序集的一般信息由以下
8 | // 控制。更改这些特性值可修改
9 | // 与程序集关联的信息。
10 | [assembly: AssemblyTitle("Frame.AppPortal")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("")]
14 | [assembly: AssemblyProduct("Frame.AppPortal")]
15 | [assembly: AssemblyCopyright("Copyright © 2016")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | //将 ComVisible 设置为 false 将使此程序集中的类型
20 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
21 | //请将此类型的 ComVisible 特性设置为 true。
22 | [assembly: ComVisible(false)]
23 |
24 | //若要开始生成可本地化的应用程序,请
25 | // 中的 .csproj 文件中
26 | //例如,如果您在源文件中使用的是美国英语,
27 | //使用的是美国英语,请将 设置为 en-US。 然后取消
28 | //对以下 NeutralResourceLanguage 特性的注释。 更新
29 | //以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //主题特定资源词典所处位置
36 | //(当资源未在页面
37 | //或应用程序资源字典中找到时使用)
38 | ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
39 | //(当资源未在页面
40 | //、应用程序或任何主题专用资源字典中找到时使用)
41 | )]
42 |
43 |
44 | // 程序集的版本信息由下列四个值组成:
45 | //
46 | // 主版本
47 | // 次版本
48 | // 生成号
49 | // 修订号
50 | //
51 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
52 | // 方法是按如下所示使用“*”: :
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/Frame.AppPortal/Properties/Licenses.licx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/Properties/Licenses.licx
--------------------------------------------------------------------------------
/Frame.AppPortal/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace Frame.AppPortal.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.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 |
--------------------------------------------------------------------------------
/Frame.AppPortal/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Frame.AppPortal/Screenshots/Banner设置.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/Screenshots/Banner设置.jpg
--------------------------------------------------------------------------------
/Frame.AppPortal/Screenshots/功能组管理.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/Screenshots/功能组管理.jpg
--------------------------------------------------------------------------------
/Frame.AppPortal/Screenshots/左侧菜单管理.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/Screenshots/左侧菜单管理.jpg
--------------------------------------------------------------------------------
/Frame.AppPortal/Screenshots/权限管理.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/Screenshots/权限管理.jpg
--------------------------------------------------------------------------------
/Frame.AppPortal/Screenshots/顶部菜单管理.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/Screenshots/顶部菜单管理.jpg
--------------------------------------------------------------------------------
/Frame.AppPortal/images/Customer_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/images/Customer_32x32.png
--------------------------------------------------------------------------------
/Frame.AppPortal/images/Home_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/images/Home_32x32.png
--------------------------------------------------------------------------------
/Frame.AppPortal/images/Properties_32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xingyunauthor/FrameSystem/473cf60a165d7ac25417203ec2363affc78906de/Frame.AppPortal/images/Properties_32x32.png
--------------------------------------------------------------------------------
/Frame.AppPortal/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Frame.Business/App.config:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Frame.Business/BannerManage.cs:
--------------------------------------------------------------------------------
1 | using Frame.Business.interfaces;
2 | using Frame.Models.SettingModels;
3 |
4 | namespace Frame.Business
5 | {
6 | public class BannerManage : SysSettingManage, IBannerManage
7 | {
8 | public BannerManage() : base(1) { }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/Frame.Business/BaseManage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq.Expressions;
3 | using Frame.MetaData;
4 | using Frame.Models.SysModels.Common;
5 |
6 | namespace Frame.Business
7 | {
8 | public class BaseManage : IBaseManage
9 | where T : class
10 | where TS : IBaseService, new()
11 | {
12 | protected IBaseService BaseService { get; } = new TS();
13 |
14 | public DateTime ServerTime => BaseService.ServerTime;
15 |
16 | public bool Exist(Expression> whereLambda)
17 | {
18 | using (var db = new FrameContext())
19 | {
20 | return BaseService.Exist(db, whereLambda);
21 | }
22 | }
23 |
24 | public GetConnectionResponseModel GetConnection()
25 | {
26 | var responseModel = new GetConnectionResponseModel();
27 | using (var db = new FrameContext())
28 | {
29 | var conn = db.Database.Connection;
30 | responseModel.ConnectionString = conn.ConnectionString;
31 | responseModel.DataSource = conn.DataSource;
32 | responseModel.Database = conn.Database;
33 | }
34 | return responseModel;
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Frame.Business/CommonManage.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Linq;
3 | using Frame.Models.interfaces;
4 |
5 | namespace Frame.Business
6 | {
7 | public class CommonManage
8 | {
9 | ///
10 | /// 根据父级编号获取所有子集的数据
11 | ///
12 | ///
13 | ///
14 | ///
15 | ///
16 | public static void GetAllChildrenItem(List list, int leftMenuId, List result) where T : IMenus
17 | {
18 | var childrenList = list.Where(a => a.ParentId == leftMenuId).ToList();
19 | foreach (var leftMenuModel in childrenList)
20 | {
21 | result.Add(leftMenuModel);
22 | GetAllChildrenItem(list, leftMenuModel.Id, result);
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Frame.Business/CompanyManage.cs:
--------------------------------------------------------------------------------
1 | using Frame.Business.interfaces;
2 | using Frame.Models.SettingModels;
3 |
4 | namespace Frame.Business
5 | {
6 | ///
7 | /// 公司信息是为当前使用公司的公司信息,表里面肯定只有一条数据
8 | ///
9 | public class CompanyManage : SysSettingManage, ICompanyManage
10 | {
11 | public CompanyManage() : base(2) { }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/Frame.Business/IBaseManage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq.Expressions;
3 | using Frame.Models.SysModels.Common;
4 |
5 | namespace Frame.Business
6 | {
7 | public interface IBaseManage where T : class
8 | {
9 | ///
10 | /// 服务器时间
11 | ///
12 | DateTime ServerTime { get; }
13 |
14 | ///
15 | /// 是否存在
16 | ///
17 | ///
18 | ///
19 | bool Exist(Expression> whereLambda);
20 |
21 | ///
22 | /// 获取数据库连接字符串
23 | ///
24 | ///
25 | GetConnectionResponseModel GetConnection();
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/Frame.Business/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Frame.Business")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Frame.Business")]
13 | [assembly: AssemblyCopyright("Copyright © 2016")]
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("d5b75ad4-8b0d-4c5d-a4c1-7f7144fea846")]
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 |
--------------------------------------------------------------------------------
/Frame.Business/interfaces/IBannerManage.cs:
--------------------------------------------------------------------------------
1 | using Frame.Models.SettingModels;
2 |
3 | namespace Frame.Business.interfaces
4 | {
5 | public interface IBannerManage : ISysSettingManage
6 | {
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/Frame.Business/interfaces/ICompanyManage.cs:
--------------------------------------------------------------------------------
1 | using Frame.Models.SettingModels;
2 |
3 | namespace Frame.Business.interfaces
4 | {
5 | public interface ICompanyManage : ISysSettingManage
6 | {
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/Frame.Business/interfaces/IDeptManage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Collections.ObjectModel;
4 | using System.Linq;
5 | using System.Text;
6 | using Frame.Models;
7 | using Frame.Models.SysModels;
8 | using Frame.Models.SysModels.Dept;
9 |
10 | namespace Frame.Business.interfaces
11 | {
12 | public interface IDeptManage : IBaseManage
13 | {
14 | ///
15 | /// 全部数据
16 | ///
17 | ///
18 | ObservableCollection All();
19 |
20 | ///
21 | /// 获取一个实体
22 | ///
23 | ///
24 | ///
25 | CommandResult GetModel(int deptId);
26 |
27 | ///
28 | /// 部门新增
29 | ///
30 | ///
31 | ///
32 | CommandResult Add(DeptAddRequestModel requestModel);
33 |
34 | ///
35 | /// 更新
36 | ///
37 | /// 部门编号
38 | ///
39 | ///
40 | CommandResult Update(int id, DeptUpdateRequestModel requestModel);
41 |
42 | ///
43 | /// 删除
44 | ///
45 | /// 部门编号
46 | ///
47 | CommandResult Delete(int id);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Frame.Business/interfaces/ILeftMenuPermissionsManage.cs:
--------------------------------------------------------------------------------
1 | using System.Data;
2 | using System.Linq;
3 | using Frame.Models;
4 | using Frame.Models.SysModels;
5 | using Frame.Models.SysModels.LeftMenuPermissions;
6 |
7 | namespace Frame.Business.interfaces
8 | {
9 | public interface ILeftMenuPermissionsManage : IBaseManage
10 | {
11 | ///
12 | /// 根据角色编号查询该角色所有的授权信息
13 | ///
14 | /// 角色编号
15 | /// 菜单名称搜索关键词
16 | ///
17 | DataTable GetLeftMenuPermissions(int roleId, string displayNameSearchKey);
18 |
19 | ///
20 | /// 修改权限
21 | ///
22 | ///
23 | ///
24 | CommandResult