初步实现一个共享文件中心的功能,等待继续完善

This commit is contained in:
HSL
2017-04-06 16:18:46 +08:00
parent 66ef18f9a4
commit c399a7a8d6
12 changed files with 1177 additions and 48 deletions

View File

@@ -29,7 +29,11 @@ namespace CommonLibrary
/// 用于软件远程更新的端口,此处随机定义了一个数据 /// 用于软件远程更新的端口,此处随机定义了一个数据
/// </summary> /// </summary>
public static int Port_Update_Remote { get; } = 26435; public static int Port_Update_Remote { get; } = 26435;
/// <summary>
/// 共享文件的端口号
/// </summary>
public static int Port_Share_File { get; } = 34261;
#endregion #endregion

View File

@@ -51,6 +51,8 @@ namespace CommonLibrary
public static string { get; } = "H002"; public static string { get; } = "H002";
public static string { get; } = "H003"; public static string { get; } = "H003";
public static string { get; } = "H004"; public static string { get; } = "H004";
public static string { get; } = "HA00";
public static string { get; } = "HA01";
} }

View File

@@ -19,19 +19,9 @@
文件的大小 文件的大小
</summary> </summary>
</member> </member>
<member name="P:IndustryEthernet.File_Save.FileFacory"> <member name="P:IndustryEthernet.File_Save.FileTag">
<summary> <summary>
文件所属的工厂大类 用于用户自定义的标识
</summary>
</member>
<member name="P:IndustryEthernet.File_Save.FileGroup">
<summary>
文件的类别
</summary>
</member>
<member name="P:IndustryEthernet.File_Save.FileId">
<summary>
文件所属的设备ID号
</summary> </summary>
</member> </member>
<member name="P:IndustryEthernet.File_Save.UploadName"> <member name="P:IndustryEthernet.File_Save.UploadName">
@@ -59,6 +49,134 @@
文件被下载的次数 文件被下载的次数
</summary> </summary>
</member> </member>
<member name="P:IndustryEthernet.File_Save.FileExc">
<summary>
文件的后缀名
</summary>
</member>
<member name="M:IndustryEthernet.File_Save.GetTextFromFileSize">
<summary>
获取大小
</summary>
<returns></returns>
</member>
<member name="T:IndustryEthernet.SimpleShareFileServer">
<summary>
一个简单的共享文件类,配合下载控件和上传窗口一起使用
</summary>
</member>
<member name="P:IndustryEthernet.SimpleShareFileServer.File_head_download">
<summary>
文件的下载指令头
</summary>
</member>
<member name="P:IndustryEthernet.SimpleShareFileServer.File_head_upload">
<summary>
文件的上传指令头
</summary>
</member>
<member name="P:IndustryEthernet.SimpleShareFileServer.File_head_delete">
<summary>
文件删除的指令头
</summary>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.#ctor(System.Func{System.Collections.Generic.List{IndustryEthernet.File_Save},System.String},System.Func{System.String,System.Collections.Generic.List{IndustryEthernet.File_Save}})">
<summary>
生成对象,需要指定存储规则
</summary>
<param name="toJsonString">获取字符串的规则</param>
<param name="toListArray">从字符串转化成对象数据</param>
</member>
<member name="P:IndustryEthernet.SimpleShareFileServer.FileSavePath">
<summary>
临时文件存储的路径
</summary>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.File_Count">
<summary>
返回所有文件的数量
</summary>
<returns></returns>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.AddNew(IndustryEthernet.File_Save)">
<summary>
新增一个文件对象
</summary>
<param name="file"></param>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.DeleteOne(System.String)">
<summary>
根据文件名称,删除一个文件对象
</summary>
<param name="filename"></param>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.DownloadTimesAdd(System.String)">
<summary>
追加一个文件对象的下载数据
</summary>
<param name="filename"></param>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.IsFileExsist(System.String)">
<summary>
判断文件对对象管理中是否存在
</summary>
<param name="filename"></param>
<returns></returns>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.GetHuFileFromFileName(System.String)">
<summary>
根据
</summary>
<param name="filename"></param>
<returns></returns>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.ToJsonString">
<summary>
获取JSON字符串
</summary>
<returns></returns>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.SaveLocalFile">
<summary>
将所有数据进行保存
</summary>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.ReadFromFile">
<summary>
从文件中加载数据信息
</summary>
</member>
<member name="P:IndustryEthernet.SimpleShareFileServer.File_save_path">
<summary>
文件的存储路径
</summary>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.FileEngineStart(System.Int32)">
<summary>
启动服务
</summary>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.ReceiveCallback(System.IAsyncResult)">
<summary>
在收到客户端下载完毕的消息后选中关闭本次连接
</summary>
<param name="ar"></param>
</member>
<member name="T:IndustryEthernet.SimpleShareFileServer.NoticeClient">
<summary>
提醒客户端的委托
</summary>
</member>
<member name="E:IndustryEthernet.SimpleShareFileServer.FileChange">
<summary>
当服务器文件变化时,有文件删除或是添加时,触发的事件,可以选中通知客户端刷新数据
</summary>
</member>
<member name="M:IndustryEthernet.SimpleShareFileServer.OnFileChange">
<summary>
刷新客户端的文件信息
</summary>
</member>
<member name="T:IndustryEthernet.Net_File_Server"> <member name="T:IndustryEthernet.Net_File_Server">
<summary> <summary>
文件传送类服务器,仅仅负责数据传送部分,不负责数据库的存储 文件传送类服务器,仅仅负责数据传送部分,不负责数据库的存储
@@ -1258,6 +1376,53 @@
日志存储快 日志存储快
</summary> </summary>
</member> </member>
<member name="T:IndustryEthernet.FileItemShow">
<summary>
文件显示的子控件类
</summary>
</member>
<member name="M:IndustryEthernet.FileItemShow.#ctor(System.String,System.Int32,System.Func{System.Boolean})">
<summary>
生成一个文件对象的显示控件
</summary>
<param name="serverIp">服务器的IP地址</param>
<param name="serverPort">服务器的端口号</param>
<param name="deleteCheck">用户自定义的删除确认委托,可用于验证权限及密码</param>
</member>
<member name="P:IndustryEthernet.FileItemShow.ServerIp">
<summary>
服务器的IP地址
</summary>
</member>
<member name="P:IndustryEthernet.FileItemShow.ServerPort">
<summary>
服务器的端口号
</summary>
</member>
<member name="M:IndustryEthernet.FileItemShow.SetFile(IndustryEthernet.File_Save,System.Func{System.Boolean})">
<summary>
设置文件数据
</summary>
<param name="file">文件的信息对象</param>
<param name="deleteEnable">删除控件的使能委托</param>
</member>
<member name="F:IndustryEthernet.FileItemShow.components">
<summary>
必需的设计器变量。
</summary>
</member>
<member name="M:IndustryEthernet.FileItemShow.Dispose(System.Boolean)">
<summary>
清理所有正在使用的资源。
</summary>
<param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
</member>
<member name="M:IndustryEthernet.FileItemShow.InitializeComponent">
<summary>
设计器支持所需的方法 - 不要修改
使用代码编辑器修改此方法的内容。
</summary>
</member>
<member name="T:IndustryEthernet.FileOperateControl"> <member name="T:IndustryEthernet.FileOperateControl">
<summary> <summary>
上传或下载的控件 上传或下载的控件
@@ -1432,6 +1597,597 @@
the contents of this method with the code editor. the contents of this method with the code editor.
</summary> </summary>
</member> </member>
<member name="T:IndustryEthernet.FormSimplyFileUpload">
<summary>
用于文件上传的类
</summary>
</member>
<member name="M:IndustryEthernet.FormSimplyFileUpload.#ctor(System.String,System.Int32,System.String)">
<summary>
实例化一个文件上传的窗口
</summary>
<param name="serverIp">服务器的IP地址</param>
<param name="serverPort">服务器的端口号</param>
<param name="uploadName">文件上传人的名称</param>
</member>
<member name="P:IndustryEthernet.FormSimplyFileUpload.ServerIp">
<summary>
服务器的IP地址
</summary>
</member>
<member name="P:IndustryEthernet.FormSimplyFileUpload.ServerPort">
<summary>
服务器的端口号
</summary>
</member>
<member name="P:IndustryEthernet.FormSimplyFileUpload.UploadName">
<summary>
文件长传人的名称
</summary>
</member>
<member name="F:IndustryEthernet.FormSimplyFileUpload.components">
<summary>
Required designer variable.
</summary>
</member>
<member name="M:IndustryEthernet.FormSimplyFileUpload.Dispose(System.Boolean)">
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
</member>
<member name="M:IndustryEthernet.FormSimplyFileUpload.InitializeComponent">
<summary>
Required method for Designer support - do not modify
the contents of this method with the code editor.
</summary>
</member>
<member name="T:IndustryEthernet.Properties.Resources">
<summary>
一个强类型的资源类,用于查找本地化的字符串等。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ResourceManager">
<summary>
返回此类使用的缓存的 ResourceManager 实例。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.Culture">
<summary>
使用此强类型资源类,为所有资源查找
重写当前线程的 CurrentUICulture 属性。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources._7z">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources._class">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ai">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.aiff">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.arj">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.asc">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.asp">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.audio">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.avi">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.bin">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.bmp">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.bz2">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.c">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.cdr">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.cfc">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.cfm">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.chm">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.conf">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.cpp">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.cs">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.css">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.csv">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.deb">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.divx">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.doc">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.docx">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.dot">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.eml">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.enc">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.eps">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.exe">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.f4v">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.file">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.flv">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.gif">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.gz">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.hlp">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.htm">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.html">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ics">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.image">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.iso">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.jar">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.java">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.jpg">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.js">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.jsp">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.lua">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.m">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.mm">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.mov">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.mp3">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.mpg">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.msi">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.odc">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.odf">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.odg">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.odi">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.odp">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ods">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.odt">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ogg">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.pdf">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.perl">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.pgp">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.php">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.pl">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.png">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ppt">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ps">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.psd">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.py">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ram">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.rar">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.rb">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.rm">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.rpm">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.rtf">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ruby">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.sig">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.sql">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.svg">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.swf">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.sxc">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.sxd">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.sxi">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.sxw">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.tar">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.tex">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.tgz">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.tif">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.ttf">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.txt">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.vb">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.vcf">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.vdo">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.video">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.vsd">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.wav">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.wma">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.xls">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.xml">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.xpi">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.xul">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.xvid">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="P:IndustryEthernet.Properties.Resources.zip">
<summary>
查找 System.Drawing.Bitmap 类型的本地化资源。
</summary>
</member>
<member name="T:IndustryEthernet.SerialSupport.CRC"> <member name="T:IndustryEthernet.SerialSupport.CRC">
<summary> <summary>
用于CRC16验证的类提供了标准的验证方法 用于CRC16验证的类提供了标准的验证方法

Binary file not shown.

View File

@@ -313,8 +313,10 @@ namespace 软件系统客户端模版
return; return;
})); }));
} }
#endregion #endregion
} }
} }

View File

@@ -50,6 +50,7 @@
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.linkLabel_logout = new System.Windows.Forms.LinkLabel();
this.label_factory = new System.Windows.Forms.Label(); this.label_factory = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
@@ -67,7 +68,8 @@
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label_Announcement = new System.Windows.Forms.Label(); this.label_Announcement = new System.Windows.Forms.Label();
this.linkLabel_logout = new System.Windows.Forms.LinkLabel(); this.label8 = new System.Windows.Forms.Label();
this.label_file_count = new System.Windows.Forms.Label();
this.statusStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
@@ -144,7 +146,7 @@
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(921, 35); this.menuStrip1.Size = new System.Drawing.Size(921, 33);
this.menuStrip1.TabIndex = 1; this.menuStrip1.TabIndex = 1;
this.menuStrip1.Text = "menuStrip1"; this.menuStrip1.Text = "menuStrip1";
// //
@@ -157,41 +159,41 @@
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "管理员ToolStripMenuItem"; this.ToolStripMenuItem.Name = "管理员ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(84, 31); this.ToolStripMenuItem.Size = new System.Drawing.Size(84, 29);
this.ToolStripMenuItem.Text = "管理员"; this.ToolStripMenuItem.Text = "管理员";
// //
// 更改公告ToolStripMenuItem // 更改公告ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "更改公告ToolStripMenuItem"; this.ToolStripMenuItem.Name = "更改公告ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
this.ToolStripMenuItem.Text = "更改公告"; this.ToolStripMenuItem.Text = "更改公告";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 日志查看ToolStripMenuItem // 日志查看ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "日志查看ToolStripMenuItem"; this.ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
this.ToolStripMenuItem.Text = "日志查看"; this.ToolStripMenuItem.Text = "日志查看";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 账户管理ToolStripMenuItem // 账户管理ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "账户管理ToolStripMenuItem"; this.ToolStripMenuItem.Name = "账户管理ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
this.ToolStripMenuItem.Text = "账户管理"; this.ToolStripMenuItem.Text = "账户管理";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 远程更新ToolStripMenuItem // 远程更新ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "远程更新ToolStripMenuItem"; this.ToolStripMenuItem.Name = "远程更新ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
this.ToolStripMenuItem.Text = "远程更新"; this.ToolStripMenuItem.Text = "远程更新";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 注册账号ToolStripMenuItem // 注册账号ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "注册账号ToolStripMenuItem"; this.ToolStripMenuItem.Name = "注册账号ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
this.ToolStripMenuItem.Text = "注册账号"; this.ToolStripMenuItem.Text = "注册账号";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -200,13 +202,13 @@
this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "设置ToolStripMenuItem"; this.ToolStripMenuItem.Name = "设置ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(64, 31); this.ToolStripMenuItem.Size = new System.Drawing.Size(64, 29);
this.ToolStripMenuItem.Text = "设置"; this.ToolStripMenuItem.Text = "设置";
// //
// 修改密码ToolStripMenuItem // 修改密码ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "修改密码ToolStripMenuItem"; this.ToolStripMenuItem.Name = "修改密码ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
this.ToolStripMenuItem.Text = "修改密码"; this.ToolStripMenuItem.Text = "修改密码";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -217,33 +219,35 @@
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem}); this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "关于ToolStripMenuItem"; this.ToolStripMenuItem.Name = "关于ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(64, 31); this.ToolStripMenuItem.Size = new System.Drawing.Size(64, 29);
this.ToolStripMenuItem.Text = "关于"; this.ToolStripMenuItem.Text = "关于";
// //
// 关于本软件ToolStripMenuItem // 关于本软件ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem"; this.ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(184, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(184, 30);
this.ToolStripMenuItem.Text = "关于本软件"; this.ToolStripMenuItem.Text = "关于本软件";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 更新日志ToolStripMenuItem // 更新日志ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "更新日志ToolStripMenuItem"; this.ToolStripMenuItem.Name = "更新日志ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(184, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(184, 30);
this.ToolStripMenuItem.Text = "更新日志"; this.ToolStripMenuItem.Text = "更新日志";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// 版本号说明ToolStripMenuItem // 版本号说明ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem"; this.ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(184, 32); this.ToolStripMenuItem.Size = new System.Drawing.Size(184, 30);
this.ToolStripMenuItem.Text = "版本号说明"; this.ToolStripMenuItem.Text = "版本号说明";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
// panel1 // panel1
// //
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.label_file_count);
this.panel1.Controls.Add(this.label8);
this.panel1.Controls.Add(this.linkLabel_logout); this.panel1.Controls.Add(this.linkLabel_logout);
this.panel1.Controls.Add(this.label_factory); this.panel1.Controls.Add(this.label_factory);
this.panel1.Controls.Add(this.label9); this.panel1.Controls.Add(this.label9);
@@ -263,11 +267,22 @@
this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Right; this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(697, 35); this.panel1.Location = new System.Drawing.Point(697, 33);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(224, 419); this.panel1.Size = new System.Drawing.Size(224, 421);
this.panel1.TabIndex = 2; this.panel1.TabIndex = 2;
// //
// linkLabel_logout
//
this.linkLabel_logout.AutoSize = true;
this.linkLabel_logout.Location = new System.Drawing.Point(188, 1);
this.linkLabel_logout.Name = "linkLabel_logout";
this.linkLabel_logout.Size = new System.Drawing.Size(32, 17);
this.linkLabel_logout.TabIndex = 16;
this.linkLabel_logout.TabStop = true;
this.linkLabel_logout.Text = "注销";
this.linkLabel_logout.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_logout_LinkClicked);
//
// label_factory // label_factory
// //
this.label_factory.AutoSize = true; this.label_factory.AutoSize = true;
@@ -290,7 +305,7 @@
// //
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.ForeColor = System.Drawing.Color.DimGray; this.label7.ForeColor = System.Drawing.Color.DimGray;
this.label7.Location = new System.Drawing.Point(8, 146); this.label7.Location = new System.Drawing.Point(8, 163);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(104, 17); this.label7.Size = new System.Drawing.Size(104, 17);
this.label7.TabIndex = 13; this.label7.TabIndex = 13;
@@ -303,10 +318,10 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.listBox1.FormattingEnabled = true; this.listBox1.FormattingEnabled = true;
this.listBox1.ItemHeight = 17; this.listBox1.ItemHeight = 17;
this.listBox1.Location = new System.Drawing.Point(11, 166); this.listBox1.Location = new System.Drawing.Point(11, 183);
this.listBox1.Name = "listBox1"; this.listBox1.Name = "listBox1";
this.listBox1.SelectionMode = System.Windows.Forms.SelectionMode.None; this.listBox1.SelectionMode = System.Windows.Forms.SelectionMode.None;
this.listBox1.Size = new System.Drawing.Size(200, 225); this.listBox1.Size = new System.Drawing.Size(200, 208);
this.listBox1.TabIndex = 12; this.listBox1.TabIndex = 12;
// //
// label_address // label_address
@@ -430,16 +445,24 @@
this.label_Announcement.Text = "[公告]"; this.label_Announcement.Text = "[公告]";
this.label_Announcement.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label_Announcement.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// linkLabel_logout // label8
// //
this.linkLabel_logout.AutoSize = true; this.label8.AutoSize = true;
this.linkLabel_logout.Location = new System.Drawing.Point(188, 1); this.label8.Location = new System.Drawing.Point(8, 143);
this.linkLabel_logout.Name = "linkLabel_logout"; this.label8.Name = "label8";
this.linkLabel_logout.Size = new System.Drawing.Size(32, 17); this.label8.Size = new System.Drawing.Size(68, 17);
this.linkLabel_logout.TabIndex = 16; this.label8.TabIndex = 17;
this.linkLabel_logout.TabStop = true; this.label8.Text = "文件数量:";
this.linkLabel_logout.Text = "注销"; //
this.linkLabel_logout.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_logout_LinkClicked); // label_file_count
//
this.label_file_count.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label_file_count.Location = new System.Drawing.Point(82, 143);
this.label_file_count.Name = "label_file_count";
this.label_file_count.Size = new System.Drawing.Size(129, 17);
this.label_file_count.TabIndex = 18;
this.label_file_count.Text = "0";
this.label_file_count.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// FormMainWindow // FormMainWindow
// //
@@ -511,6 +534,8 @@
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel_time; private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel_time;
private System.Windows.Forms.LinkLabel linkLabel_logout; private System.Windows.Forms.LinkLabel linkLabel_logout;
private System.Windows.Forms.Label label_file_count;
private System.Windows.Forms.Label label8;
} }
} }

View File

@@ -277,15 +277,24 @@ namespace 软件系统客户端模版
fpp.Show(); fpp.Show();
})); }));
} }
else if (head_code == CommonHeadCode.MultiNetHeadCode.) else if (head_code == CommonHeadCode.MultiNetHeadCode.)
{ {
//收到服务器更新时间 //收到服务器的数据
UserClient.DateTimeServer = Convert.ToDateTime(object2.Substring(4)); JObject json = JObject.Parse(object2.Substring(4));
UserClient.DateTimeServer = json["Time"].ToObject<DateTime>();
label_file_count.Text = json["FileCount"].ToObject<int>().ToString();
if (IsHandleCreated) Invoke(new Action(() => if (IsHandleCreated) Invoke(new Action(() =>
{ {
toolStripStatusLabel_time.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm"); toolStripStatusLabel_time.Text = UserClient.DateTimeServer.ToString("yyyy-MM-dd HH:mm");
})); }));
} }
else if(head_code==CommonHeadCode.MultiNetHeadCode.)
{
if (IsHandleCreated) Invoke(new Action(() =>
{
label_file_count.Text = object2.Substring(4);
}));
}
} }
private void Net_socket_client_AcceptByte(HuTcpState object1, byte[] object2) private void Net_socket_client_AcceptByte(HuTcpState object1, byte[] object2)

View File

@@ -0,0 +1,133 @@
namespace .UIControls
{
partial class ShareFilesRender
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.userButton_upload = new BasicFramework.UserButton();
this.userButton_refresh = new BasicFramework.UserButton();
this.label1 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.textBox1);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.userButton_refresh);
this.panel1.Controls.Add(this.userButton_upload);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(605, 35);
this.panel1.TabIndex = 0;
//
// panel2
//
this.panel2.AutoScroll = true;
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel2.Location = new System.Drawing.Point(0, 35);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(605, 291);
this.panel2.TabIndex = 1;
//
// userButton_upload
//
this.userButton_upload.BackColor = System.Drawing.Color.Transparent;
this.userButton_upload.CustomerInformation = "";
this.userButton_upload.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
this.userButton_upload.Font = new System.Drawing.Font("微软雅黑", 9F);
this.userButton_upload.Location = new System.Drawing.Point(3, 4);
this.userButton_upload.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.userButton_upload.Name = "userButton_upload";
this.userButton_upload.Size = new System.Drawing.Size(71, 25);
this.userButton_upload.TabIndex = 6;
this.userButton_upload.UIText = "上传";
this.userButton_upload.Click += new System.EventHandler(this.userButton_upload_Click);
//
// userButton_refresh
//
this.userButton_refresh.BackColor = System.Drawing.Color.Transparent;
this.userButton_refresh.CustomerInformation = "";
this.userButton_refresh.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
this.userButton_refresh.Font = new System.Drawing.Font("微软雅黑", 9F);
this.userButton_refresh.Location = new System.Drawing.Point(80, 4);
this.userButton_refresh.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.userButton_refresh.Name = "userButton_refresh";
this.userButton_refresh.Size = new System.Drawing.Size(71, 25);
this.userButton_refresh.TabIndex = 7;
this.userButton_refresh.UIText = "刷新";
this.userButton_refresh.Click += new System.EventHandler(this.userButton_refresh_Click);
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(395, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(44, 17);
this.label1.TabIndex = 8;
this.label1.Text = "搜索:";
//
// textBox1
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(439, 5);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(161, 23);
this.textBox1.TabIndex = 9;
//
// ShareFilesRender
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Name = "ShareFilesRender";
this.Size = new System.Drawing.Size(605, 326);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
private BasicFramework.UserButton userButton_refresh;
private BasicFramework.UserButton userButton_upload;
}
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace .UIControls
{
public partial class ShareFilesRender : UserControl
{
public ShareFilesRender()
{
InitializeComponent();
}
private void userButton_upload_Click(object sender, EventArgs e)
{
//
}
private void userButton_refresh_Click(object sender, EventArgs e)
{
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -96,6 +96,12 @@
</Compile> </Compile>
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="UIControls\ShareFilesRender.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UIControls\ShareFilesRender.Designer.cs">
<DependentUpon>ShareFilesRender.cs</DependentUpon>
</Compile>
<Compile Include="UserClient.cs" /> <Compile Include="UserClient.cs" />
<EmbeddedResource Include="FormDownloading.resx"> <EmbeddedResource Include="FormDownloading.resx">
<DependentUpon>FormDownloading.cs</DependentUpon> <DependentUpon>FormDownloading.cs</DependentUpon>
@@ -124,6 +130,9 @@
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<EmbeddedResource Include="UIControls\ShareFilesRender.resx">
<DependentUpon>ShareFilesRender.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
@@ -136,7 +145,6 @@
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="UIControls\" />
<Folder Include="UserControls\" /> <Folder Include="UserControls\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -10,6 +10,7 @@ using IndustryEthernet;
using System.Threading; using System.Threading;
using CommonLibrary; using CommonLibrary;
using BasicFramework; using BasicFramework;
using Newtonsoft.Json.Linq;
//============================================================================ //============================================================================
@@ -112,6 +113,7 @@ namespace 软件系统服务端模版
Net_Socket_Server_Initialization(); Net_Socket_Server_Initialization();
Net_SoftUpdate_Server_Initialization(); Net_SoftUpdate_Server_Initialization();
Net_File_Update_Initialization(); Net_File_Update_Initialization();
Simple_File_Initiaization();
ToolStripMenuItem.Text = "已启动"; ToolStripMenuItem.Text = "已启动";
ToolStripMenuItem.BackColor = Color.LimeGreen; ToolStripMenuItem.BackColor = Color.LimeGreen;
IsSystemStart = true; IsSystemStart = true;
@@ -452,8 +454,13 @@ namespace 软件系统服务端模版
private void Net_socket_server_ClientOnline(HuTcpState object1) private void Net_socket_server_ClientOnline(HuTcpState object1)
{ {
//上线后回发一条时间推送的数据 //上线后回发一条数据初始化信息
net_socket_server.Send(object1, CommonHeadCode.MultiNetHeadCode. + DateTime.Now.ToString("O")); JObject json = new JObject
{
{ "Time", new JValue(DateTime.Now) },
{ "FileCount", new JValue(net_simple_file_server.File_Count()) }
};
net_socket_server.Send(object1, CommonHeadCode.MultiNetHeadCode. + json.ToString());
//触发上下线功能 //触发上下线功能
Net_socket_clients_change(DateTime.Now.ToString("MM-dd HH:mm:ss ") + object1._IpEnd_Point.Address.ToString() + "" + Net_socket_clients_change(DateTime.Now.ToString("MM-dd HH:mm:ss ") + object1._IpEnd_Point.Address.ToString() + "" +
object1._Login_Alias + " 上线"); object1._Login_Alias + " 上线");
@@ -521,6 +528,40 @@ namespace 软件系统服务端模版
#endregion #endregion
#region
private SimpleShareFileServer net_simple_file_server { get; set; } = null;
private void Simple_File_Initiaization()
{
try
{
net_simple_file_server = new SimpleShareFileServer(
list => JArray.FromObject(list).ToString(),
str => JArray.Parse(str).ToObject<List<File_Save>>());
//文件信息存储路径
net_simple_file_server.FileSavePath = Application.StartupPath + @"\files.txt";
//文件存储路径
net_simple_file_server.File_save_path = Application.StartupPath + @"\Files";
net_simple_file_server.FileChange += Net_simple_file_server_FileChange;
net_simple_file_server.FileEngineStart(CommonLibrary.CommonLibrary.Port_Share_File);
}
catch(Exception ex)
{
SoftBasic.ShowExceptionMessage(ex);
}
}
private void Net_simple_file_server_FileChange()
{
//将文件数据发送给客户端
net_socket_server.SendAllClients(CommonHeadCode.MultiNetHeadCode. + net_simple_file_server.File_Count());
}
#endregion
/// <summary> /// <summary>
/// 还未有其他什么用途 /// 还未有其他什么用途
/// </summary> /// </summary>