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