Example #1
0
        /// <summary>
        /// 获取某检测指标扣分值
        /// </summary>
        /// <param name="maxScale">构件最大标度</param>
        /// <param name="currentScale">当前标度</param>
        /// <returns></returns>
        public static float GetDetectionDeducts(int maxScale, int currentScale)
        {
            String     sqlCon     = String.Format("SELECT  detection_deduct_value FROM mdtbl_detection_deduct where detection_max_scale={0} and detection_cur_scale={1}", maxScale, currentScale);
            ISqlHelper sql_helper = SqlHelperFactory.GetDefaultSqlHelper();
            float      f          = float.Parse(sql_helper.ExecuteObject(sqlCon).ToString());

            f = (float)Math.Round(f, 2);
            return(f);
        }