using ISupply.Model;
|
namespace ISupply.WinFrm.Main._UserControls
|
{
|
public partial class HospitalWizardForm : DevExpress.XtraEditors.XtraUserControl
|
{
|
public HospitalWizardForm()
|
{
|
InitializeComponent();
|
}
|
|
public HospitalFormModel GetData()
|
{
|
var m = new HospitalFormModel()
|
{
|
Address = txtAddress.Text,
|
Area = 1721426218814935040,
|
City = 1721435432132153344,
|
Dist = 1721435432132153344,
|
Name = txtName.Text,
|
HospitalType = cbHospitalType.Text,
|
Level = cbLevel.Text
|
};
|
|
return m;
|
}
|
|
public void SetData(HospitalFormModel model)
|
{
|
if (model == null) return;
|
txtAddress.Text = model.Address;
|
|
txtName.Text = model.Name.ToString();
|
cbLevel.Text = model.Level;
|
cbHospitalType.Text = model.HospitalType;
|
cbArea.Text = "上海市";
|
cbCity.Text = "上海市";
|
cbDist.Text = "闵行区";
|
}
|
}
|
}
|