├── .gitattributes ├── .gitignore ├── AndroidTemplate ├── .gitignore ├── .idea │ ├── caches │ │ └── build_file_checksums.ser │ ├── codeStyles │ │ └── Project.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ └── runConfigurations.xml ├── app │ ├── .gitignore │ ├── build.gradle │ ├── libs │ │ └── HslCommunication.jar │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── UserSoftwareAndroidTemplate │ │ │ └── ExampleInstrumentedTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── UserSoftwareAndroidTemplate │ │ │ │ ├── CommonLibrary │ │ │ │ ├── SimplifyHeadCode.java │ │ │ │ └── UserAccount.java │ │ │ │ ├── LogUtil.java │ │ │ │ ├── LoginSupport │ │ │ │ ├── JellyInterpolator.java │ │ │ │ ├── JsonBeanPara.java │ │ │ │ ├── LoginActivity.java │ │ │ │ └── SplashActivity.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── UserClient.java │ │ └── res │ │ │ ├── anim │ │ │ ├── fade_in.xml │ │ │ └── fade_out.xml │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ ├── ic_launcher_background.xml │ │ │ ├── radius_drawable_bg.xml │ │ │ ├── rotate_layout_bg.xml │ │ │ └── text_bg.xml │ │ │ ├── layout │ │ │ ├── activity_login.xml │ │ │ ├── activity_main.xml │ │ │ ├── activity_splash.xml │ │ │ ├── input_layout.xml │ │ │ ├── layout_progress.xml │ │ │ └── title_layout.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── attrs.xml │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── UserSoftwareAndroidTemplate │ │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── C-S软件系统模版.sln ├── ClientsLibrary ├── AccountSupport │ ├── AccountLogin.cs │ ├── FormAccountDetails.Designer.cs │ ├── FormAccountDetails.cs │ ├── FormAccountDetails.resx │ ├── FormAccountSelect.Designer.cs │ ├── FormAccountSelect.cs │ ├── FormAccountSelect.resx │ ├── FormInputNewRole.Designer.cs │ ├── FormInputNewRole.cs │ ├── FormInputNewRole.resx │ ├── FormRegisterAccount.Designer.cs │ ├── FormRegisterAccount.cs │ ├── FormRegisterAccount.resx │ └── UserPortrait.cs ├── BasicSupport │ ├── FormDownloading.Designer.cs │ ├── FormDownloading.cs │ ├── FormDownloading.resx │ ├── FormGetInputString.Designer.cs │ ├── FormGetInputString.cs │ ├── FormGetInputString.resx │ ├── FormShowMachineId.Designer.cs │ ├── FormShowMachineId.cs │ ├── FormShowMachineId.resx │ ├── NetClientItem.Designer.cs │ ├── NetClientItem.cs │ ├── NetClientItem.resx │ ├── NetClientOnline.Designer.cs │ ├── NetClientOnline.cs │ └── NetClientOnline.resx ├── ClientsLibrary.csproj ├── Configuration │ ├── ClientConfiguration.Designer.cs │ ├── ClientConfiguration.cs │ ├── ClientConfiguration.resx │ ├── FormConfiguration.Designer.cs │ ├── FormConfiguration.cs │ ├── FormConfiguration.resx │ ├── GeneralConfiguration.Designer.cs │ ├── GeneralConfiguration.cs │ ├── GeneralConfiguration.resx │ ├── ListConfiguration.Designer.cs │ ├── ListConfiguration.cs │ ├── ListConfiguration.resx │ ├── RolesConfiguration.Designer.cs │ ├── RolesConfiguration.cs │ └── RolesConfiguration.resx ├── FileSupport │ ├── FileItemShow.Designer.cs │ ├── FileItemShow.cs │ ├── FileItemShow.resx │ ├── FileOperateControl.cs │ ├── FileOperateControl.designer.cs │ ├── FileOperateControl.resx │ ├── FileSupport.cs │ ├── FormFileOperate.Designer.cs │ ├── FormFileOperate.cs │ ├── FormFileOperate.resx │ ├── FormSimplyFileUpload.cs │ ├── FormSimplyFileUpload.designer.cs │ └── FormSimplyFileUpload.resx ├── LogsSupport │ ├── FormLogView.Designer.cs │ ├── FormLogView.cs │ └── FormLogView.resx ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── RegistryEditor_5838.ico ├── SoftUpdateSupport │ ├── FormUpdateLog.cs │ ├── FormUpdateLog.designer.cs │ ├── FormUpdateLog.resx │ ├── FormUpdateRemote.Designer.cs │ ├── FormUpdateRemote.cs │ └── FormUpdateRemote.resx ├── UserClient.cs ├── app.config ├── img │ ├── ExtensionManager_vsix_OSReg_16x.png │ ├── Flagthread_7317.png │ ├── fileIcon │ │ ├── 7z.png │ │ ├── ai.png │ │ ├── aiff.png │ │ ├── arj.png │ │ ├── asc.png │ │ ├── asp.png │ │ ├── audio.png │ │ ├── avi.png │ │ ├── bin.png │ │ ├── bmp.png │ │ ├── bz2.png │ │ ├── c.png │ │ ├── cdr.png │ │ ├── cfc.png │ │ ├── cfm.png │ │ ├── chm.png │ │ ├── class.png │ │ ├── conf.png │ │ ├── cpp.png │ │ ├── cs.png │ │ ├── css.png │ │ ├── csv.png │ │ ├── deb.png │ │ ├── divx.png │ │ ├── doc.png │ │ ├── docx.png │ │ ├── dot.png │ │ ├── eml.png │ │ ├── enc.png │ │ ├── eps.gif │ │ ├── exe.png │ │ ├── f4v.png │ │ ├── file.png │ │ ├── flv.png │ │ ├── gif.png │ │ ├── gz.png │ │ ├── hlp.png │ │ ├── htm.png │ │ ├── html.png │ │ ├── ics.png │ │ ├── image.png │ │ ├── iso.png │ │ ├── jar.png │ │ ├── java.png │ │ ├── jpg.gif │ │ ├── js.png │ │ ├── jsp.png │ │ ├── lua.png │ │ ├── m.png │ │ ├── mm.png │ │ ├── mov.png │ │ ├── mp3.png │ │ ├── mpg.png │ │ ├── msi.png │ │ ├── odc.png │ │ ├── odf.png │ │ ├── odg.png │ │ ├── odi.png │ │ ├── odp.png │ │ ├── ods.png │ │ ├── odt.png │ │ ├── ogg.png │ │ ├── pdf.png │ │ ├── perl.png │ │ ├── pgp.png │ │ ├── php.png │ │ ├── pl.png │ │ ├── png.png │ │ ├── ppt.png │ │ ├── ps.png │ │ ├── psd.gif │ │ ├── py.png │ │ ├── ram.png │ │ ├── rar.png │ │ ├── rb.png │ │ ├── rm.png │ │ ├── rpm.png │ │ ├── rtf.png │ │ ├── ruby.png │ │ ├── sig.png │ │ ├── sql.png │ │ ├── svg.png │ │ ├── swf.png │ │ ├── sxc.png │ │ ├── sxd.png │ │ ├── sxi.png │ │ ├── sxw.png │ │ ├── tar.png │ │ ├── tex.png │ │ ├── tgz.png │ │ ├── tif.png │ │ ├── ttf.png │ │ ├── txt.png │ │ ├── vb.png │ │ ├── vcf.png │ │ ├── vdo.png │ │ ├── video.png │ │ ├── vsd.png │ │ ├── wav.gif │ │ ├── wma.gif │ │ ├── xls.png │ │ ├── xml.png │ │ ├── xpi.png │ │ ├── xul.png │ │ ├── xvid.png │ │ └── zip.png │ └── person_1.png └── packages.config ├── CommonLibrary ├── AccountSupport │ ├── Attribute.cs │ ├── FormAccountManage.cs │ ├── FormAccountManage.designer.cs │ ├── FormAccountManage.resx │ ├── FormMaintenance.cs │ ├── FormMaintenance.designer.cs │ ├── FormMaintenance.resx │ ├── FormPasswordModify.cs │ ├── FormPasswordModify.designer.cs │ ├── FormPasswordModify.resx │ ├── NetAccount.cs │ ├── RoleAssign.cs │ ├── ServerAccount.cs │ └── UserAccount.cs ├── BasicSupport │ ├── FormAbout.cs │ ├── FormAbout.designer.cs │ ├── FormAbout.resx │ ├── FormAboutVersion.cs │ ├── FormAboutVersion.designer.cs │ ├── FormAboutVersion.resx │ ├── FormGetInputString.resx │ ├── FormInputAndAction.cs │ ├── FormInputAndAction.designer.cs │ ├── FormInputAndAction.resx │ ├── FormMatterRemind.cs │ ├── FormMatterRemind.designer.cs │ ├── FormMatterRemind.resx │ ├── FormPasswordCheck.cs │ ├── FormPasswordCheck.designer.cs │ ├── FormPasswordCheck.resx │ ├── FormSuper.Designer.cs │ ├── FormSuper.cs │ ├── FormSuper.resx │ ├── FormVersionControl.cs │ ├── FormVersionControl.designer.cs │ ├── FormVersionControl.resx │ ├── FormWaitInfomation.cs │ ├── FormWaitInfomation.designer.cs │ ├── FormWaitInfomation.resx │ └── SoftSettings.cs ├── Class1.cs ├── CommonLibrary.csproj ├── DataBaseSupport │ └── SqlServerSupport.cs ├── LocalizationSupport │ ├── ChineseLocalization.cs │ ├── EnglishLocalization.cs │ └── Localization.cs ├── OrderSupport │ ├── ClassGoods.cs │ └── ClassOrder.cs ├── PortraitSupport │ └── PortraitSupport.cs ├── Properties │ └── AssemblyInfo.cs ├── ProtocolSupport │ ├── CustomerCode.cs │ └── Resource.cs ├── UserSystem.cs ├── app.config └── packages.config ├── Design.xlsx ├── HslCommunicationNetTestTool ├── ClassNetSettings.cs ├── Document │ └── instruction.txt ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── FormCreateClient.Designer.cs ├── FormCreateClient.cs ├── FormCreateClient.resx ├── HslCommunicationNetTestTool.csproj ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── Settings1.Designer.cs ├── Settings1.settings ├── app.config └── packages.config ├── LICENSE ├── QuickExperience └── 软件自动更新.exe ├── README.md ├── files ├── LogReadme.md ├── MelsecReadMe.md ├── SiemensReadMe.md ├── SimplifyFileNet.md └── SimplifyNet.md ├── img ├── Design1.png ├── Design2.png ├── Design3.png ├── Design4.png ├── Design5.png ├── Design6.png ├── Design7.png ├── andriod1.png ├── andriod2.png ├── log_1.jpg ├── log_2.jpg ├── log_3.jpg ├── log_4.jpg ├── log_5.jpg ├── plc_melsec_1.jpg ├── plc_melsec_2.jpg ├── plc_siemens_1.jpg ├── plc_siemens_2.jpg ├── plc_siemens_3.jpg ├── plc_siemens_4.jpg ├── plc_siemens_5.jpg ├── plc_siemens_6.jpg ├── plc_siemens_7.jpg └── plc_siemens_8.jpg ├── 软件系统客户端Wpf ├── App.config ├── App.xaml ├── App.xaml.cs ├── AppWpfHelper.cs ├── Image │ └── person_1.png ├── LoginWindow.xaml ├── LoginWindow.xaml.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── Views │ ├── AnotherCommandImplementation.cs │ ├── Controls │ │ ├── Palette.xaml │ │ ├── Palette.xaml.cs │ │ ├── UserClientRenderItem.xaml │ │ ├── UserClientRenderItem.xaml.cs │ │ ├── UserFileRenderItem.xaml │ │ └── UserFileRenderItem.xaml.cs │ ├── PaletteSelectorViewModel.cs │ └── UIControls │ │ ├── UserChat.xaml │ │ ├── UserChat.xaml.cs │ │ ├── UserFileRender.xaml │ │ ├── UserFileRender.xaml.cs │ │ ├── UserHome.xaml │ │ ├── UserHome.xaml.cs │ │ ├── UserPaletteSelector.xaml │ │ └── UserPaletteSelector.xaml.cs ├── packages.config ├── screenshots │ ├── client1.png │ ├── client2.png │ ├── client3.png │ ├── client4.png │ └── client5.png └── 软件系统客户端Wpf.csproj ├── 软件系统客户端模版 ├── DatabaseSupport │ └── Help.txt ├── FormLogin.Designer.cs ├── FormLogin.cs ├── FormLogin.resx ├── FormMainWindow.Designer.cs ├── FormMainWindow.cs ├── FormMainWindow.resx ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── Resources │ ├── ASCube_32xLG.png │ ├── Association.png │ ├── Constant_495.png │ ├── PickAxe_32xLG.png │ ├── RolesNode_Valid_Closed.png │ ├── Team_32xLG.png │ └── UserProfilenode_8706.png ├── UIControls │ ├── GroupFilesRender.Designer.cs │ ├── GroupFilesRender.cs │ ├── GroupFilesRender.resx │ ├── OnlineChatRender.Designer.cs │ ├── OnlineChatRender.cs │ ├── OnlineChatRender.resx │ ├── RenderMain.Designer.cs │ ├── RenderMain.cs │ └── RenderMain.resx ├── app.config ├── packages.config ├── screenshots │ ├── client1.png │ ├── client10.png │ ├── client11.png │ ├── client12.png │ ├── client13.png │ ├── client14.png │ ├── client15.png │ ├── client16.png │ ├── client17.png │ ├── client18.png │ ├── client2.png │ ├── client3.png │ ├── client4.png │ ├── client5.png │ ├── client6.png │ ├── client7.png │ ├── client8.png │ └── client9.png └── 软件系统客户端模版.csproj ├── 软件系统服务端模版 ├── BasicSupport │ └── NetAccountManager.cs ├── FormServerWindow.Designer.cs ├── FormServerWindow.cs ├── FormServerWindow.resx ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── SoftUpdate │ ├── 软件自动更新.exe │ └── 部署说明.txt ├── UserServer.cs ├── app.config ├── packages.config ├── screenshots │ ├── design.png │ ├── server.png │ ├── server1.png │ ├── server2.png │ ├── server3.png │ ├── server4.png │ └── server5.png └── 软件系统服务端模版.csproj └── 软件系统浏览器模版 ├── App_Start ├── BundleConfig.cs ├── FilterConfig.cs └── RouteConfig.cs ├── ApplicationInsights.config ├── Content ├── Login.css ├── Site.css ├── StyleAccordion.css ├── bootstrap-theme.css ├── bootstrap-theme.css.map ├── bootstrap-theme.min.css ├── bootstrap-theme.min.css.map ├── bootstrap.css ├── bootstrap.css.map ├── bootstrap.min.css └── bootstrap.min.css.map ├── Controllers ├── AccountController.cs ├── HomeController.cs ├── ShareController.cs └── ShareFilesController.cs ├── Global.asax ├── Global.asax.cs ├── Models ├── Account │ └── ModelAccount.cs └── ModelBase.cs ├── Properties └── AssemblyInfo.cs ├── Scripts ├── bootstrap.js ├── bootstrap.min.js ├── jquery-1.10.2.intellisense.js ├── jquery-1.10.2.js ├── jquery-1.10.2.min.js ├── jquery-1.10.2.min.map ├── jquery.unobtrusive-ajax.js ├── jquery.unobtrusive-ajax.min.js ├── jquery.validate-vsdoc.js ├── jquery.validate.js ├── jquery.validate.min.js ├── jquery.validate.unobtrusive.js ├── jquery.validate.unobtrusive.min.js ├── modernizr-2.8.3.js ├── respond.js ├── respond.matchmedia.addListener.js ├── respond.matchmedia.addListener.min.js └── respond.min.js ├── Views ├── Account │ ├── AccountDetail.cshtml │ ├── ChangePassword.cshtml │ ├── Login.cshtml │ ├── RegisterAccount.cshtml │ └── SetPasswordPartial.cshtml ├── Home │ ├── About.cshtml │ ├── AdviceFeedback.cshtml │ ├── ChangeAnnouncement.cshtml │ ├── Contact.cshtml │ ├── Index.cshtml │ ├── LackOfAuthority.cshtml │ ├── ManagementAccount.cshtml │ ├── SendMessage.cshtml │ ├── UpdateLog.cshtml │ └── VersionInformation.cshtml ├── Shared │ ├── Error.cshtml │ ├── _Layout.cshtml │ ├── _LoginPartial.cshtml │ ├── _MessageDangerPartial.cshtml │ ├── _MessageInfoPartial.cshtml │ ├── _MessageSuccessPartial.cshtml │ └── _MessageWarningPartial.cshtml ├── Web.config └── _ViewStart.cshtml ├── Web.Debug.config ├── Web.Release.config ├── Web.config ├── favicon.ico ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── packages.config ├── screenshots ├── browser1.png └── browser2.png └── 软件系统浏览器模版.csproj /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /AndroidTemplate/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /AndroidTemplate/.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/AndroidTemplate/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /AndroidTemplate/.idea/codeStyles/Project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 15 | 16 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /AndroidTemplate/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /AndroidTemplate/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 27 | 28 | 29 | 30 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /AndroidTemplate/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidTemplate/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /AndroidTemplate/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /AndroidTemplate/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | sourceSets{ 6 | main { 7 | jniLibs.srcDirs = ['libs'] 8 | } 9 | } 10 | defaultConfig { 11 | applicationId "com.example.UserSoftwareAndroidTemplate" 12 | minSdkVersion 19 13 | targetSdkVersion 26 14 | versionCode 1 15 | versionName "1.0" 16 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 17 | } 18 | buildTypes { 19 | release { 20 | minifyEnabled false 21 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 22 | } 23 | } 24 | buildToolsVersion '27.0.3' 25 | } 26 | 27 | dependencies { 28 | implementation fileTree(include: ['*.jar'], dir: 'libs') 29 | implementation 'com.android.support:appcompat-v7:26.1.0' 30 | implementation 'com.android.support.constraint:constraint-layout:1.0.2' 31 | implementation 'com.android.support:design:26.1.0' 32 | implementation 'com.android.support:support-v4:26.1.0' 33 | testImplementation 'junit:junit:4.12' 34 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 35 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 36 | implementation 'com.google.code.gson:gson:2.8.2' 37 | implementation files('libs/HslCommunication.jar') 38 | } 39 | -------------------------------------------------------------------------------- /AndroidTemplate/app/libs/HslCommunication.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/AndroidTemplate/app/libs/HslCommunication.jar -------------------------------------------------------------------------------- /AndroidTemplate/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/androidTest/java/com/example/UserSoftwareAndroidTemplate/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.UserSoftwareAndroidTemplate; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.example.UserSoftwareAndroidTemplate", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 19 | 20 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/java/com/example/UserSoftwareAndroidTemplate/LogUtil.java: -------------------------------------------------------------------------------- 1 | package com.example.UserSoftwareAndroidTemplate; 2 | 3 | import android.util.Log; 4 | 5 | public class LogUtil { 6 | public static final int VerBose = 1; 7 | 8 | public static final int Debug = 2; 9 | 10 | public static final int Info = 3; 11 | 12 | public static final int Warn = 4; 13 | 14 | public static final int Error = 5; 15 | 16 | public static final int Nothing = 6; 17 | 18 | public static int Level = VerBose; 19 | 20 | /** 21 | 记录零碎的日志 22 | **/ 23 | public static void LogV(String tag, String msg) { 24 | if (Level <= VerBose) Log.v(tag, msg); 25 | } 26 | 27 | /* 28 | 记录调试日志 29 | */ 30 | public static void LogD(String tag, String msg) { 31 | if (Level <= Debug) Log.d(tag, msg); 32 | } 33 | 34 | /* 35 | 记录信息日志 36 | */ 37 | public static void LogI(String tag, String msg) { 38 | if (Level <= Info) Log.i(tag, msg); 39 | } 40 | 41 | /* 42 | 记录警告日志 43 | */ 44 | public static void LogW(String tag, String msg) { 45 | if (Level <= Warn) Log.w(tag, msg); 46 | } 47 | 48 | /* 49 | 记录一般错误日志 50 | */ 51 | public static void LogE(String tag, String msg) { 52 | if (Level <= Error) Log.e(tag, msg); 53 | } 54 | 55 | /* 56 | 记录带信息异常的错误日志 57 | */ 58 | public static void LogE(String tag, String msg, Exception ex) { 59 | if (Level <= Error) Log.e(tag, msg, ex); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/java/com/example/UserSoftwareAndroidTemplate/LoginSupport/JellyInterpolator.java: -------------------------------------------------------------------------------- 1 | package com.example.UserSoftwareAndroidTemplate.LoginSupport; 2 | 3 | import android.view.animation.LinearInterpolator; 4 | 5 | /** 6 | * Created by hsl20 on 2017/11/5. 7 | */ 8 | 9 | public class JellyInterpolator extends LinearInterpolator { 10 | private float factor; 11 | 12 | public JellyInterpolator() { 13 | this.factor = 0.15f; 14 | } 15 | 16 | @Override 17 | public float getInterpolation(float input) { 18 | return (float) (Math.pow(2, -10 * input) 19 | * Math.sin((input - factor / 4) * (2 * Math.PI) / factor) + 1); 20 | } 21 | } -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/java/com/example/UserSoftwareAndroidTemplate/LoginSupport/JsonBeanPara.java: -------------------------------------------------------------------------------- 1 | package com.example.UserSoftwareAndroidTemplate.LoginSupport; 2 | 3 | import java.util.List; 4 | 5 | /** 6 | * Created by hsl20 on 2017/11/5. 7 | */ 8 | 9 | public class JsonBeanPara { 10 | 11 | public String Announcement=""; 12 | 13 | public List SystemFactories = null; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/java/com/example/UserSoftwareAndroidTemplate/UserClient.java: -------------------------------------------------------------------------------- 1 | package com.example.UserSoftwareAndroidTemplate; 2 | 3 | 4 | import com.example.UserSoftwareAndroidTemplate.CommonLibrary.UserAccount; 5 | 6 | import HslCommunication.BasicFramework.SystemVersion; 7 | import HslCommunication.Enthernet.SimplifyNet.NetSimplifyClient; 8 | 9 | 10 | import java.util.List; 11 | import java.util.UUID; 12 | 13 | /** 14 | * Created by hsl20 on 2017/11/4. 15 | */ 16 | 17 | public class UserClient { 18 | 19 | 20 | public static SystemVersion FrameworkVersion = new SystemVersion("1.7.5"); 21 | public static SystemVersion CurrentVersion = new SystemVersion("1.0.0.171026"); 22 | public static String SettingsFileName = "Settings"; 23 | 24 | 25 | public static String ServerIp = "192.168.1.110"; 26 | public static int PortSecondary = 14568; 27 | public static UUID Token = UUID.fromString("1275BB9A-14B2-4A96-9673-B0AF0463D474"); 28 | 29 | 30 | public static List SystemFactories = null; // 分厂 31 | public static String Announcement = ""; // 公告 32 | public static NetSimplifyClient Net_simplify_client = new NetSimplifyClient(ServerIp, PortSecondary,Token); 33 | public static UserAccount UserAccount = null; 34 | } 35 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/res/anim/fade_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/res/anim/fade_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 8 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 12 | 13 | 19 | 22 | 25 | 26 | 27 | 28 | 34 | 35 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/res/drawable/radius_drawable_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/res/drawable/rotate_layout_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/res/drawable/text_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /AndroidTemplate/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 13 | 14 |