protected override void LazyInit() { infoTmp = manager.FindThe(); mDataGridEdgeHeight.SetDataSource <DecValue>(infoTmp.EdgeHeight); mDataGridSpec.SetDataSource <StringValue>(infoTmp.MainSpec); mDataGridFixed.SetDataSource <TransFixedItem>(infoTmp.TransFixed); mDataGridDmz.SetDataSource <RanageFormula>(infoTmp.DmlFormula); mDataGridInput.SetDataSource <VarInput>(infoTmp.VarInputs); mDataGridCal.SetDataSource <VarCal>(infoTmp.VarCals); }
public void LoadData() { Model.Info_fin_transport_tmp infoTmp = manager.FindThe(); List <Model.StringValue> list = infoTmp.MainSpec; List <Miles.Framework.UI.Controls.ColumnMap> columnsMap = new List <Miles.Framework.UI.Controls.ColumnMap>(); columnsMap.Add(new Miles.Framework.UI.Controls.ColumnMap("Value", "主材规格", true)); this.SetDataSource(list, columnsMap, "Value", "Value"); }
public void LoadData() { Model.Info_fin_transport_tmp infoTmp = manager.FindThe(); List <Model.TransFixedItem> list = infoTmp.TransFixed; List <Miles.Framework.UI.Controls.ColumnMap> columnsMap = new List <Miles.Framework.UI.Controls.ColumnMap>(); columnsMap.Add(new Miles.Framework.UI.Controls.ColumnMap("Name", "固定方式", true)); columnsMap.Add(new Miles.Framework.UI.Controls.ColumnMap("UnitWeight", "单重", false)); this.SetDataSource(list, columnsMap, "Name", "Name"); }
protected override void LazyInit() { infoTmp = manager.FindThe(); cmbTransEdgeHeight1.LoadData(); cmbTransFixed1.LoadData(); cmbTransMainSpec1.LoadData(); cmbTransSpace1.LoadData(); cmbTransPlace1.LoadData(0); cmbTruckSpec1.LoadData(); cmbTransBothDirection1.LoadData(); this.cmbTransPlace1.SelectItemEvent += CmbTransPlace1_SelectItemEvent; this.cmbTransPlace2.SelectItemEvent += CmbTransPlace2_SelectItemEvent; LoadTransFee(); this.cmbTransPlace3.SelectItemEvent += Fee_SelectItemEvent; this.cmbTruckSpec1.SelectItemEvent += Fee_SelectItemEvent; this.cmbTransBothDirection1.SelectItemEvent += Fee_SelectItemEvent; }
public void LoadData() { Model.Info_fin_transport_tmp infoTmp = manager.FindThe(); List <Model.DecValue> list = infoTmp.EdgeHeight; List <Model.DecValueText> result = new List <Model.DecValueText>(); foreach (var v in list) { Model.DecValueText valueText = new Model.DecValueText(); valueText.Value = v.Value; valueText.Text = v.Value + "米边高"; result.Add(valueText); } List <Miles.Framework.UI.Controls.ColumnMap> columnsMap = new List <Miles.Framework.UI.Controls.ColumnMap>(); columnsMap.Add(new Miles.Framework.UI.Controls.ColumnMap("Text", "边高", true)); this.SetDataSource(result, columnsMap, "Value", "Text"); }