duheng
2024-12-24 ef716332fef142a02843b5a99e8e3e92ab165738
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
namespace HStation.WinFrmUI
{
    public partial class XhsProjectSimulationProjectInfoCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public XhsProjectSimulationProjectInfoCtrl()
        {
            InitializeComponent();
            this.layoutControl1.SetupLayoutControl();
        }
 
        private XhsProjectVmo _project = null;//项目
 
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(XhsProjectVmo project)
        {
            _project = project;
            if (_project != null)
            {
                this.txtNO.EditValue = _project.NO;
                this.txtName.EditValue = _project.Name;
                this.txtCustomer.EditValue = _project.Customer;
                this.txtAddress.EditValue = _project.Address;
                this.txtFlags.EditValue = Yw.Untity.FlagsHelper.ToString(_project.Flags);
                this.txtTagNme.EditValue = _project.TagName;
                this.txtDescription.EditValue = _project.Description;
            }
        }
 
    }
}