using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TProduct.ProcessDrawing.Models; namespace TProduct.ProcessDrawing { internal class DeviceSettingHelper { public static double GetPipeDiaDispSize(int kj) { if (kj <= 50) return 16; if (kj <= 100) return 18; if (kj <= 200) return 22; if (kj <= 250) return 25; if (kj <= 500) return 28; if (kj <= 1000) return 30; return 50; } //public static List GetPipeDiaList() //{ // var DiaList = new List(); // DiaList.Add(new DiaModel() { Text = "DN50", Value = 50 }); // DiaList.Add(new DiaModel() { Text = "DN80", Value = 80 }); // DiaList.Add(new DiaModel() { Text = "DN100", Value = 100 }); // DiaList.Add(new DiaModel() { Text = "DN150", Value = 150 }); // DiaList.Add(new DiaModel() { Text = "DN200", Value = 200 }); // return DiaList; //} } }