Example #1
0
        public ActionResult GetDocument(Guid docTypeId, Guid id)
        {
            if (!CheckCurrentPermission())
            {
                return(Content(WsFactory.GetАccessDeniedHtmlFrom()));
            }

            WsDocumentInfo di = WsFactory.GetWsDocumentInfo(docTypeId, id);

            di.Url = string.Format("#WS/{0}/GetWindowContent/{1}", di.FormName, di.Id);

            return(new ContentResult
            {
                ContentType = "text/html",
                Content = JsonSerializer.SerializeToString(di)
            });
        }
Example #2
0
        public ActionResult GetDocumentPrintForm(Guid docTypeId, Guid id)
        {
            if (!CheckCurrentPermission())
            {
                return(Content(WsFactory.GetАccessDeniedHtmlFrom()));
            }

            WsDocumentInfo di = WsFactory.GetWsDocumentInfo(docTypeId, id);

            di.Url = string.Format("/WS/{0}/{1}", di.DocTypeName, di.Id);

            return(new ContentResult
            {
                ContentType = "text/html",
                Content = di.HTMLContent
            });
        }