Beispiel #1
0
        /// <summary>
        /// 写入构件的算量属性是否跟随的判断值
        /// </summary>
        /// <param name="fi"></param>
        /// <param name="isFollow"></param>
        /// <returns></returns>
        public static bool WriteIsFollow(this Element fi, bool isFollow)
        {
            SchemaEntityOpr opr = new SchemaEntityOpr(fi);

            if (opr.IsValid())
            {
                opr.SetParm("IsFollow", isFollow.ToString());
                opr.SaveTo(fi);
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 读取构件的算量属性是否根据的判断值
        /// </summary>
        /// <param name="fi"></param>
        /// <returns></returns>
        public static bool ReadIsFollow(this Element fi)
        {
            SchemaEntityOpr opr = new SchemaEntityOpr(fi);

            if (opr.IsValid())
            {
                String str = "";
                //读取comtype
                if (opr.GetParm("IsFollow", ref str))
                {
                    return(bool.Parse(str));
                }
                else
                {
                    return(true);
                }
            }
            else
            {
                return(true);
            }
        }