Beispiel #1
0
        public Collection <FunctionInformation> GetFunctionData()
        {
            FunctionInformation mFunctionInformation    = null;
            Collection <FunctionInformation> mRetVal    = new Collection <FunctionInformation>();
            Collection <MFunctionProfile>    mFunctions = FunctionUtility.Functions();
            string mAppName = ConfigSettings.AppName;

            if (mAppName.Length != 0)
            {
                mAppName = "/" + mAppName + "/";
            }
            foreach (MFunctionProfile mProfile in mFunctions)
            {
                if (mProfile.FunctionTypeSeqId != 2)
                {
                    mFunctionInformation              = new FunctionInformation();
                    mFunctionInformation.Action       = mProfile.Action;
                    mFunctionInformation.Location     = mAppName + mProfile.Source;
                    mFunctionInformation.Description  = mProfile.Description;
                    mFunctionInformation.LinkBehavior = mProfile.LinkBehavior;
                    mRetVal.Add(mFunctionInformation);
                }
            }

            return(mRetVal);
        }
Beispiel #2
0
        private void populateParent()
        {
            //dvFunctions.RowFilter = "PARENT_FUNCTION_SEQ_ID <> " + CurrentProfile.ID;
            var mResult = from mProfile in FunctionUtility.Functions()
                          where mProfile.ParentId != m_Profile.Id
                          select mProfile;

            dropNavParent.DataValueField = "Id";
            dropNavParent.DataTextField  = "Name";
            dropNavParent.DataSource     = mResult;
            dropNavParent.DataBind();
            if (m_Profile.Id != -1)
            {
                NameValuePairUtility.SetDropSelection(dropNavParent, m_Profile.ParentId.ToString());
            }
        }