예제 #1
0
        private static int MaxAmount(string brlx)
        {
            int    resultAmount = AppUtils.Payment_Amount;
            string amount       = null;

            if (brlx.Equals("1"))
            {
                PubConstant.GetAppSettingString("mzbrMaxAmount").ToString().Trim();
            }
            else if (brlx.Equals("2"))
            {
                PubConstant.GetAppSettingString("zybrMaxAmount").ToString().Trim();
            }

            if (!string.IsNullOrEmpty(amount))
            {
                resultAmount = Convert.ToInt32(amount);
            }

            return(resultAmount);
        }
예제 #2
0
        /// <summary>
        /// 获得医院名字
        /// WZSDEYY    温州市第二医院
        /// WZSDSRMYY    温州市第三人民医院
        /// WZSZXYJHYY   温州市中西医结合医院
        /// WZSDQRMYY    温州市第七人民医院
        /// WZSZYY    温州市中医院
        /// WZSTXRMYY    温州市塘下人民医院
        /// WZSTSXZYY   温州市泰顺中医院
        /// WZSRARMYY   温州市瑞安人民医院
        /// WZSRAZYY   温州市瑞安中医院
        /// WZHTYY  温州海坦医院
        /// </summary>
        /// <returns></returns>
        public static AppUtils.HOSPITALNAME HospitalName()
        {
            AppUtils.HOSPITALNAME result = AppUtils.HOSPITALNAME.UNKNOW;
            string hospitalName          = PubConstant.GetAppSettingString("hospitalName").ToString().Trim().ToUpper();

            switch (hospitalName)
            {
            case "WZSDEYY":
                result = AppUtils.HOSPITALNAME.WZSDEYY;
                break;

            case "WZSDSRMYY":
                result = AppUtils.HOSPITALNAME.WZSDSRMYY;
                break;

            case "WZSZXYJHYY":
                result = AppUtils.HOSPITALNAME.WZSZXYJHYY;
                break;

            case "WZSDQRMYY":
                result = AppUtils.HOSPITALNAME.WZSDQRMYY;
                break;

            case "WZSZYY":
                result = AppUtils.HOSPITALNAME.WZSZYY;
                break;

            case "WZSCNXDYRMYY":
                result = AppUtils.HOSPITALNAME.WZSCNXDYRMYY;
                break;

            case "WZSCNXDSRMYY":
                result = AppUtils.HOSPITALNAME.WZSCNXDSRMYY;
                break;

            case "WZSCNXZYY":
                result = AppUtils.HOSPITALNAME.WZSCNXZYY;
                break;

            case "WZSCNXDERMYY":
                result = AppUtils.HOSPITALNAME.WZSCNXDERMYY;
                break;

            case "WZSCNXFYBJYY":
                result = AppUtils.HOSPITALNAME.WZSCNXFYBJYY;
                break;

            case "WZSYJXDSRMYY":
                result = AppUtils.HOSPITALNAME.WZSYJXDSRMYY;
                break;

            case "WZSTXRMYY":
                result = AppUtils.HOSPITALNAME.WZSTXRMYY;
                break;

            case "WZSTSXZYY":
                result = AppUtils.HOSPITALNAME.WZSTSXZYY;
                break;

            case "WZSRARMYY":
                result = AppUtils.HOSPITALNAME.WZSRARMYY;
                break;

            case "WZSRAZYY":
                result = AppUtils.HOSPITALNAME.WZSRAZYY;
                break;

            case "WZHTYY":
                result = AppUtils.HOSPITALNAME.WZHTYY;
                break;

            default:
                result = AppUtils.HOSPITALNAME.UNKNOW;
                break;
            }
            return(result);
        }