duheng
2024-07-05 5aba1bf12cd27faa797e7f3d15e0f960bdc2a4b2
WinFrmUI/HStation.WinFrmUI.Xhs.Project/01-project/ProjectUserControl.cs
@@ -1,14 +1,4 @@
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
{
@@ -30,11 +20,6 @@
                this.dxErrorProvider1.SetError(this.NameTextEdit, "必填项");
                return false;
            }
            if (string.IsNullOrEmpty(this.BtnFileChoice.Text.Trim()))
            {
                this.dxErrorProvider1.SetError(this.BtnFileChoice, "必选项");
                return false;
            }
            return true;
        }
@@ -43,9 +28,9 @@
            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;
        }
@@ -63,9 +48,9 @@
       ? 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);
        }
    }
}