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();
|
}
|
|
|
|
|
|
|
}
|
}
|