コード例 #1
0
        public static object ReturnValue(string ObjectName, HttpSessionStateBase session)
        {
            DataDetails DD = null;

            string      dataobname       = System.Text.RegularExpressions.Regex.Split(ObjectName, "\\.")[0];
            DataObjects ScriptDataObject = (DataObjects)SessionControl.SessionManager.GetDataObject(session, dataobname);

            DD = ScriptDataObject.ReturnObjectDetail(ObjectName, ScriptDataObject.Details);


            if (DD != null)
            {
                return(DD.DetailValue);
            }

            return(DD);

            //else
            //{
            //    if (DD.Collection)
            //    {
            //        return DD.SubDetails;
            //    }

            //    return DD.DetailValue;
            //}
        }
コード例 #2
0
        public bool IsDataObject(string ObjectName, HttpSessionStateBase session)
        {
            DataDetails DD = null;

            string      dataobname       = System.Text.RegularExpressions.Regex.Split(ObjectName, "\\.")[0];
            DataObjects ScriptDataObject = (DataObjects)SessionControl.SessionManager.GetDataObject(session, dataobname);

            DD = ScriptDataObject.ReturnObjectDetail(ObjectName, ScriptDataObject.Details);

            if (DD == null)
            {
                return(false);
            }
            else
            {
                if (DD.DetailType == "Object")
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
        }
コード例 #3
0
        public static List <DataObjects> ReturnObjects(string ObjectName, HttpSessionStateBase session)
        {
            DataDetails DD = null;

            string      dataobname       = System.Text.RegularExpressions.Regex.Split(ObjectName, "\\.")[0];
            DataObjects ScriptDataObject = (DataObjects)SessionControl.SessionManager.GetDataObject(session, dataobname);

            DD = ScriptDataObject.ReturnObjectDetail(ObjectName, ScriptDataObject.Details);
            return(null);
            //if (DD == null)
            //{
            //    return null;
            //}
            //else
            //{
            //    return DD.objCollection;
            //}
        }