| | |
| | | return "FunctionData_" + sid; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存功能文件 |
| | | /// </summary> |
| | | public void SaveFunctionFile() |
| | | { |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存功能数据 |
| | | /// </summary> |
| | |
| | | { |
| | | if (upSevser) |
| | | { |
| | | var pm = new HttpServerRequest(); |
| | | var pack = pm.UpdataDevcieInfo(this); |
| | | if (pack.Code == StateCode.SUCCESS) |
| | | new System.Threading.Thread(() => |
| | | { |
| | | var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)); |
| | | FileUtlis.Files.WriteFileByBytes(savePath, ssd); |
| | | } |
| | | else |
| | | { |
| | | IMessageCommon.Current.ShowErrorInfoAlter(pack.Code); |
| | | } |
| | | var pm = new HttpServerRequest(); |
| | | var pack = pm.UpdataDevcieInfo(this); |
| | | if (pack.Code == StateCode.SUCCESS) |
| | | { |
| | | var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this)); |
| | | FileUtlis.Files.WriteFileByBytes(savePath, ssd); |
| | | } |
| | | else |
| | | { |
| | | IMessageCommon.Current.ShowErrorInfoAlter(pack.Code); |
| | | } |
| | | }); |
| | | } |
| | | else |
| | | { |