Ejemplo n.º 1
0
        /// <summary>
        /// 获取所有隐藏控件
        /// </summary>
        /// <returns></returns>
        public List <string> GetViewModelHiddenTargets()
        {
            List <string> lists = new List <string>();

            foreach (var item in _attribute.GetHtmlHiddenTags())
            {
                if (_withValue)
                {
                    object val = ClassAction.GetObjPropertyValue(_entity, item.Name);
                    item.SetValue(val);
                }
                lists.Add(item.ToString(false));
            }
            return(lists);
        }