Ejemplo n.º 1
0
        /// <summary>
        /// 初始化土质类型函数
        /// </summary>
        public void InitialSoilType()
        {
            // 当采用湖北省地方标准
            if (CurrentStandard == "Hubei")
            {
                // 初始化土质类型列表
                foreach (string type in HubeiLocalStandardBearingAndModulus.RstSoilType)
                {
                    RstTypes.Add(type);
                }
                foreach (string type in HubeiLocalStandardBearingAndModulus.CptSoilType)
                {
                    CptTypes.Add(type);
                }
                foreach (string type in HubeiLocalStandardBearingAndModulus.NTestSoilType)
                {
                    NTestTypes.Add(type);
                }

                // 初始化当前选择的土质类型
                for (int i = 0; i < layerName.Count; i++)
                {
                    SelectRstType.Add(HubeiLocalStandardBearingAndModulus.SelectRstSoilType(layerName[i]));
                    SelectCptType.Add(HubeiLocalStandardBearingAndModulus.SelectCptSoilType(layerName[i]));
                    SelectNTestType.Add(HubeiLocalStandardBearingAndModulus.SelectNTestSoilType(layerName[i]));
                }
            }
        }
        /// <summary>
        /// 按试验指标查表时的土质类型识别
        /// </summary>
        /// <param name="_soilName">岩土名称</param>
        /// <returns></returns>
        public static string RstSoilType(string _soilName)
        {
            // 根据当前规范查承载力
            if (CurrentStandard == "Hubei")
            {
                return(HubeiLocalStandardBearingAndModulus.SelectRstSoilType(_soilName));
            }

            // 查询不到时返回"无法识别"
            return("无法识别");
        }