コード例 #1
0
        public ActionResult Create(string name, string layout, string style, Guid?headerId, Guid?footerId, int type)
        {
            byte[] icon;
            string filename;

            GetFileFromRequest(out icon, out filename);
            var res = MasterLocator.CustomReportTemplateService.Add(name, layout, style, icon, headerId, footerId, (TemplateType)type);

            return(Json(CustomReportTemplateViewData.Create(res)));
        }
コード例 #2
0
        public ActionResult Update(Guid templateId, string name, string layout, string style, Guid?headerId, Guid?footerId, int type)
        {
            byte[] icon;
            string filename;

            GetFileFromRequest(out icon, out filename);
            if (icon == null)
            {
                icon = MasterLocator.CustomReportTemplateService.GetIcon(templateId);
            }
            var res = MasterLocator.CustomReportTemplateService.Edit(templateId, name, layout, style, icon, headerId, footerId, (TemplateType)type);

            return(Json(CustomReportTemplateViewData.Create(res)));
        }
コード例 #3
0
        public ActionResult Info(Guid templateId)
        {
            var res = MasterLocator.CustomReportTemplateService.GetById(templateId);

            return(Json(CustomReportTemplateViewData.Create(res)));
        }