ningshuxia
2025-03-21 7af1565cf5af77397453a3ea6ad516ac9be371f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
namespace PBS.WinFrmUI
{
    public partial class HospitalPlaceInfoCtrl : DevExpress.XtraEditors.XtraUserControl, IPlaceInfo
    {
        public HospitalPlaceInfoCtrl()
        {
            InitializeComponent();
        }
 
 
        private PlaceHospitalParasInfoVmo _model = null;
 
        public void Set(string info)
        {
            _model = PlaceHospitalParasInfoVmo.ToModel(info);
            _model ??= new();
            this.cbHospitalType.EditValue = _model.HospitalType;
            this.cbLevel.EditValue = _model.Level;
        }
 
        public bool Verify()
        { 
            this.dxErrorProvider1.ClearErrors(); 
            return true;
        }
 
        public string Get()
        {
            if (!Verify())
            {
                return null;
            }
 
            _model.HospitalType = this.cbHospitalType.Text;
            _model.Level = this.cbLevel.Text; 
 
            return _model.ToJson();
        }
 
 
      
 
 
 
    }
}