duheng
2025-02-19 ad8f813f5eddd66740b4e09801e4ea02ddf70a4a
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
using HStation.Assets;
 
namespace HStation.WinFrmUI
{
    public partial class ViewAssetsElbowMainDlg : DevExpress.XtraEditors.XtraForm
    {
        public ViewAssetsElbowMainDlg()
        {
            InitializeComponent();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
            this.layoutControl1.SetupLayoutControl();
        }
 
        private HStation.Vmo.AssetsElbowMainVmo _vmo = null;
 
        /// <summary>
        /// 绑定数据
        /// </summary>
        public void SetBindingData(HStation.Vmo.AssetsElbowMainVmo vmo)
        {
            if (vmo == null)
            {
                return;
            }
            _vmo = vmo;
            this.txtName.EditValue = vmo.Name;
            this.txtMaterial.EditValue = vmo.Material;
            this.txtCaliber.EditValue = vmo.Caliber;
            this.txtCoefficient.EditValue = vmo.MinorLoss;
            this.txtKeyWord.EditValue = HStation.Service.Assets.KeyWordHelper.ToString(vmo.KeyWords);
            this.txtFlags.EditValue = Yw.Untity.FlagsHelper.ToString(vmo.Flags);
            this.txtTagName.EditValue = vmo.TagName;
            this.txtDescription.EditValue = vmo.Description;
            this.imageComboBoxEditConnectlenght.Properties.AddEnum(typeof(eElbowType));
            this.imageComboBoxEditConnectlenght.EditValue = vmo.ElbowType;
            this.txtAngle.EditValue = vmo.Angle;
        }
    }
}