Пример #1
0
        public ActionResult DetailsReport(string checknum, string projectnum)
        {
            GetReports model = new GetReports()
            {
                checknum   = checknum,
                projectnum = projectnum,
            };
            var        client = new JsonServiceClient(GetSceneDataUrl);
            var        data   = client.Get(model);
            DhtmlxGrid grid   = new DhtmlxGrid();
            int        index  = 1;

            foreach (var item in data.Reports)
            {
                DhtmlxGridRow row = new DhtmlxGridRow(item.Id.ToString());
                row.AddCell(index++);
                row.AddCell(item.checknum);
                row.AddCell(item.reportnum);
                row.AddLinkJsCell("查看", "Details(\"{0}\",\"{1}\")".Fmt(item.customid, item.reportnum));
                grid.AddGridRow(row);
            }
            string str = grid.BuildRowXml().ToString(System.Xml.Linq.SaveOptions.DisableFormatting);

            return(Content(str, "text/xml"));
        }
Пример #2
0
 public ZP()
 {
     InitializeComponent();
     getReports       = new GetReports();
     list.ItemsSource = getReports.ReturnReports();
 }