| | |
| | | namespace HStation.WinFrmUI |
| | | using DevExpress.XtraBars.Customization; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class InputXhsProjectInfoWizardPage : DevExpress.XtraEditors.XtraUserControl, Yw.WinFrmUI.IWizardPage<ImportXhsProjectViewModel> |
| | | { |
| | |
| | | private bool _isInitialize = false;//是否初始化 |
| | | private Lazy<HStation.BLL.XhsProject> _bllProject = new(() => new HStation.BLL.XhsProject());//项目bll |
| | | private Lazy<Yw.BLL.SysFlagStd> _bllFlag = new(() => new Yw.BLL.SysFlagStd());//标签bll |
| | | public static Action AutoAddItem; |
| | | public static Action DeleteItem; |
| | | public static bool AllowImport = false; |
| | | |
| | | /// <summary> |
| | | /// 初始化 |
| | |
| | | get |
| | | { |
| | | _vm.ZipFile = this.btnEditSelectModelFile.Text.Trim(); |
| | | if (_vm.ZipFile != string.Empty) |
| | | { |
| | | AllowImport = true; |
| | | AutoAddItem.Invoke(); |
| | | } |
| | | else |
| | | { |
| | | AllowImport = false; |
| | | DeleteItem.Invoke(); |
| | | } |
| | | return _isInitialize; |
| | | } |
| | | } |
| | |
| | | return false; |
| | | } |
| | | } |
| | | _vm.NO = this.txtNO.Text.Trim(); |
| | | _vm.Name = this.txtName.Text.Trim(); |
| | | _vm.Customer = this.txtCustomer.Text.Trim(); |
| | | _vm.Address = this.txtAddress.Text.Trim(); |
| | | // _vm.Address = this.txtAddress.Text.Trim(); |
| | | _vm.Flags = null; |
| | | _vm.TagName = tagName; |
| | | _vm.Description = this.txtDescription.Text.Trim(); |