tx
2025-04-09 fa7510e1ed63df0366787fa4ed1b3db6426d2b46
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
namespace TProduct.WinFrmUI.TValve
{
    public partial class ValveInfoCtrl : DevExpress.XtraEditors.XtraUserControl
    {
        public ValveInfoCtrl()
        {
            InitializeComponent();
        }
        public void SetBindingData(TProduct.Model.ProductMainExValve valve, Model.PartBase part)
        {
            if (part == null)
                return;
 
            this.textEditValveSerise.Text = new BLL.ProductSeries().GetByID(valve.SeriesID)?.Name;
            this.textEditValveName.Text = valve?.Name;
            this.textEditValveCode.Text = valve?.Code;
            this.textEditDia.EditValue = valve?.Dia < 1 ? null : valve?.Dia;
 
            this.TextEditPartCode.Text = part.Code;
            this.TextEditPartName.Text = part.Name;
            this.textEditMfName.Text = new BLL.ManufacturerBase().GetByID(part.ManufacturerID)?.ShortName;
            this.textEditMfCreateTime.Text = part.ManufactureTime;
            this.textEditSd.Text = new BLL.Senderbase().GetByID(part.SenderID)?.ShortName;
            this.textEditSendTime.Text = part.SendTime;
            this.MemoEditNote.Text = part.Note;
        }
 
    }
}