Exemplo n.º 1
0
        /// <summary>
        /// 查询开局状态的接口方法
        /// </summary>
        /// <returns></returns>
        private string getStarInfo(HttpContext context)
        {
            Json      jsonResult = new Json();
            string    machineNum = context.Request["machineNum"];
            DataTable dt         = ms.selectStarInfo(machineNum);

            if (dt == null || dt.Rows.Count == 0)
            {
                jsonResult.Success = false;
            }
            else
            {
                jsonResult.Success = true;
                jsonResult.Result  = dt;
            }
            string strJson = JsonConvert.SerializeObject(jsonResult);

            return(strJson);
        }