| | |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.IO; |
| | | using System.IO.Compression; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | |
| | | model.Name = this.NameTextEdit.Text.Trim(); |
| | | model.CustomerName = this.CustomerNameTextEdit.Text.Trim(); |
| | | model.CreateTime = DateTime.Now; |
| | | model.TagName = this.TagName.Text.Trim(); |
| | | model.GID = Guid.NewGuid().ToString(); |
| | | model.Description = this.DescriptionTextEdit.Text.Trim(); |
| | | // model.CreateUserID= |
| | | return model; |
| | | } |
| | | |
| | |
| | | ? selectedFilePath.Substring(0, selectedFilePath.Length - 4) + ".hsr" |
| | | : selectedFilePath; |
| | | this.BtnFileChoice.Text = newFileName; |
| | | ExtractHelper.ExractFile(selectedFilePath); |
| | | } |
| | | // string extractPath = @"C:\Users\ZKC\Desktop\sss"; |
| | | // ZipFile.ExtractToDirectory(extractPath, selectedFilePath); |
| | | } |
| | | } |
| | | } |