示例#1
0
        public ActionResult getDataflows()
        {
            if (!SessionQueryManager.SessionQueryExistsAndIsValid(HttpContext.ApplicationInstance.Context))
            {
                SessionQuery query = new SessionQuery();
                SessionQueryManager.SaveSessionQuery(HttpContext.ApplicationInstance.Context.Session, query);
            }

            EndPointStructure ep = ISTATSettings.CurrentEndPoint;

            if (NSIClientSettings.Instance.EndPointCenterEnable)
            {
                SetEndPoint(sessionObject.GetSessionQuery(), sessionObject.GetNSIClient(), ISTATSettings.CentralEndPoint);
            }

            var res = CS.ReturnForJQuery(JR.GetTree(sessionObject.GetSessionQuery(), sessionObject.GetNSIClient()));

            if (NSIClientSettings.Instance.EndPointCenterEnable)
            {
                SetEndPoint(sessionObject.GetSessionQuery(), sessionObject.GetNSIClient(), ep);
            }

            return(res);
        }
示例#2
0
        public ActionResult ComponentEditForm()
        {
            dynamic PostDataArrived = CS.GetPostData(this.Request);

            try
            {
                return(CS.ReturnForJQuery(JR.ComponentEditForm(sessionObject.GetSessionQuery(), sessionObject.GetNSIClient(),
                                                               (string)PostDataArrived.concept)));
            }
            catch (Exception)
            {
                return(CS.ReturnForJQuery(ControllerSupport.ErrorOccured));
            }
        }
示例#3
0
 public ActionResult ViewResults()
 {
     return(CS.ReturnForJQuery(JR.ViewResults(sessionObject.GetSessionQuery(), sessionObject.GetNSIClient())));
 }