unit.cs

来自「改程序能够查询课程表」· CS 代码 · 共 97 行

CS
97
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Utility.Unit {
    public class Unit {
        private UnitEnum name;
        public UnitEnum Name {
            get {
                return name;
            }
            set {
                name = value;
            }
        }

        private string label;
        public string Label {
            get {
                return label;
            }
            set {
                label = value;
            }
        }

        private decimal proportion;
        public decimal Proportion {
            get {
                return proportion;
            }
            set {
                proportion = value;
            }
        }

        //public Unit() {
        //}

        public Unit(UnitEnum name,string label, decimal proportion) {
            this.name = name;
            this.label = label;
            this.proportion = proportion;
        }
    }

    public enum UnitEnum {
        Depth,
        Length,
        Diameter,
        Size,
        Area,
        Volume,
        Capacity,
        Velocity,
        PumpOutput,
        DeliveryCapacity,
        PumpPressure,
        Pressure,
        Force,
        Density,
        FormationPressureGradient,
        ShearStress,
        ShearRate,
        ConsistencyIndexK,
        PlasticViscosity,
        FunnelViscosity,
        YieldPoint,
        FilterLoss,
        CakeThickNess,
        Concentration,
        Temperature,
        Price,
        Cost,
        AngleRateOfChange,
        GrainSize,
        AnnulusUpwardVelocity,
        ChipSlipRate,
        Content,
        Hardness,
        LiquidUsage,
        Weight,
        NozzleSize,
        GuantiArea,
        ZuanGanShenChang,
        ZuanGanLaLi,
        Power,
        UnitPower,
        DrillingSpeed,
        DrillingPipeCapacity,
        PumpingSpeed,
        Stroke


    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?