| | |
| | | } |
| | | else if (x is Yw.Model.HydroEmitterInfo emitter) |
| | | { |
| | | |
| | | var calcuEmitter = calcuResult.NodeList.Find(x => x.Id == emitter.Code); |
| | | var emitterCustomLabel = new CustomLabel(); |
| | | emitterCustomLabel.Id = emitter.Code; |
| | | emitterCustomLabel.Data = new List<CustomLabelItem>() |
| | | { |
| | | new CustomLabelItem(){ Name="流量",Value=Math.Round(calcuEmitter.Demand,1).ToString(),Unit="m³"}, |
| | | new CustomLabelItem(){ Name="压力",Value=Math.Round(calcuEmitter.Head,4).ToString(),Unit="Mpa"} |
| | | }; |
| | | obj.Add(emitterCustomLabel); |
| | | } |
| | | }); |
| | | |
| | |
| | | // |
| | | ribbonControl1.DrawGroupCaptions = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ExpandCollapseItem.Id = 0; |
| | | ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; |
| | | ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barBtnHydroCheck, barBtnHydroCalcu, barBtnHydroExportInp, barBtnSave, barBtnHydroParterList, barBtnShowHide, barBtnMatchingList, barBtnUnMatchingList, barBtnSetList, barBtnSetPumpList, barBtnSetValveList, barBtnSetPipeList, barBtnSetElbowsList, barBtnSetThreelinkList, barBtnFourlinkList, barBtnSetTranslationList, barBtnSetExchangerList, barBtnSetJunctionList, barBtnFeatCurve }); |
| | | ribbonControl1.Location = new Point(0, 0); |
| | | ribbonControl1.MaxItemId = 32; |
| | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | { |
| | | elementIds.Add(linker.StartCode); |
| | | } |
| | | } |