示例#1
0
    private String qxjqgridpop(string proc, int ftype, string startdate, string enddate, string testcode, string modelid)
    {
        BLL_Document BLL = new BLL_Document();

        if (modelid.Length > 0)
        {
            DataTable dt = BLL.GetProcDataTableChartsPara6(proc, ftype, startdate, enddate, testcode, modelid);
            if (dt != null)
            {
                List <ChartModel> list = new List <ChartModel>();
                foreach (DataRow dr in dt.Rows)
                {
                    ChartModel trcs = new ChartModel();
                    trcs.Description = dr["chartDate"].ToString();
                    trcs.IntNumber   = Int32.Parse(dr["zjCount"].ToString());
                    list.Add(trcs);
                }
                return(JsonConvert.SerializeObject(list));
            }
            else
            {
                return("");
            }
        }
        else
        {
            return("");
        }
    }