コード例 #1
0
ファイル: CswNbtSdTrees.cs プロジェクト: crfroehlich/legacy
        } // runTree()

        public static void runTree(ICswResources CswResources, Contract.Response Response, Contract.Request Request)
        {
            CswNbtResources Resources = (CswNbtResources)CswResources;

            if (null != Resources)
            {
                CswNbtView View = null;
                if (null != Request.ViewId && Request.ViewId.isSet())
                {
                    View = Resources.ViewSelect.restoreView(Request.ViewId);
                }
                else if (null != Request.SessionViewId && Request.SessionViewId.isSet())
                {
                    View = Resources.ViewSelect.getSessionView(Request.SessionViewId);
                }
                //if( null != View )
                //{
                CswNbtSdTrees SdTrees = new CswNbtSdTrees(Resources, View);
                SdTrees.runTree(Response.Data, Request);
                //}
            }
        }
コード例 #2
0
ファイル: CswNbtSdTrees.cs プロジェクト: crfroehlich/legacy
        public static void runTree(ICswResources CswResources, Contract.Response Response, string ViewName)
        {
            CswNbtResources Resources = (CswNbtResources)CswResources;

            if (null != Resources)
            {
                CswNbtView View = null;
                foreach (KeyValuePair <CswNbtViewId, CswNbtView> EnabledView in Resources.ViewSelect.getVisibleViews(false))
                {
                    if (EnabledView.Value.ViewName.ToLower().Trim() == ViewName.ToLower().Trim())
                    {
                        View = EnabledView.Value;
                        break;
                    }
                }

                if (null != View)
                {
                    CswNbtSdTrees SdTrees = new CswNbtSdTrees(Resources, View);
                    SdTrees.runTree(Response.Data, new Contract.Request());
                }
            }
        }