| | |
| | | using DevExpress.XtraEditors; |
| | | using HStation.PBS; |
| | | using System.Windows.Forms.VisualStyles; |
| | | using Yw.WinFrmUI; |
| | | |
| | | namespace PBS.WinFrmUI |
| | |
| | | this.divisionViewModelBindingSource.DataSource = _allBindingList;*/ |
| | | } |
| | | |
| | | private bool Valid() |
| | | { |
| | | bool isExist = true; |
| | | this.dxErrorProvider1.ClearErrors(); |
| | | if (string.IsNullOrEmpty(this.txtEditName.Text.Trim())) |
| | | { |
| | | this.dxErrorProvider1.SetError(this.txtEditName, "必填项"); |
| | | isExist = false; |
| | | } |
| | | return isExist; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 确定 |
| | | /// </summary> |
| | | private async void GeneralOkAndCancelCtrl1_OkEvent() |
| | | { |
| | | if (!Valid()) |
| | | return; |
| | | switch (_sign) |
| | | { |
| | | case ePlaceType.Build: |