| | |
| | | using DevExpress.XtraEditors; |
| | | using HStation.Dto; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using HStation.Dto; |
| | | |
| | | namespace HStation.WinFrmUI.Xhs.Project |
| | | { |
| | |
| | | this.dxErrorProvider1.SetError(this.NameTextEdit, "必填项"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(this.BtnFileChoice.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.BtnFileChoice, "必选项"); |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | |
| | | 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); |
| | | } |
| | | } |
| | | } |