예제 #1
0
        public List <BigDataHome> HospLiveData(string StateTime, string EndTime, string SPTXT, string K)
        {
            try
            {
                HospitalLiveDAL dal   = new HospitalLiveDAL();
                SqlParameter[]  paras = new SqlParameter[] {
                    new SqlParameter("@StartTime", SqlDbType.VarChar, 50),
                    new SqlParameter("@EndTime", SqlDbType.VarChar, 50),
                    new SqlParameter("@HospCode", SqlDbType.VarChar, 200),
                    new SqlParameter("@type", SqlDbType.VarChar, 200)
                    //new SqlParameter("@BigAge",SqlDbType.Int),
                    //new SqlParameter("@SmallAge",SqlDbType.Int),
                    //new SqlParameter("@DiseSpec",SqlDbType.VarChar,40)
                };
                paras[0].Value = StateTime;
                paras[1].Value = EndTime;
                paras[2].Value = SPTXT;

                //K == 1 市   2县    3医院
                if (K == "H")
                {
                    paras[3].Value = 1;
                }
                if (K == "C")
                {
                    paras[3].Value = 2;
                }
                if (K == "Y")
                {
                    paras[3].Value = 3;
                }
                return(dal.HospLiveDataDAL("SP_LiveHosp", paras));
            }
            catch
            {
                return(new List <BigDataHome>());
            }
        }
예제 #2
0
        public List <BigDataHome> GetSickType(string StateTime, string EndTime, string SPTXT, string K)
        {
            HospitalLiveDAL dal = new HospitalLiveDAL();

            return(dal.IllTypeBigDataDAL(StateTime, EndTime, SPTXT, K));
        }
예제 #3
0
        public List <BigDataHome> HospLiveAgeData(string StateTime, string EndTime, string SPTXT, string K)
        {
            HospitalLiveDAL dal = new HospitalLiveDAL();

            return(dal.HospLiveAgeData(StateTime, EndTime, SPTXT, K));
        }