Exemplo n.º 1
0
        /// <summary>
        /// 组合框
        /// </summary>
        /// <typeparam name="TProperty">属性类型</typeparam>
        /// <param name="expression">属性表达式</param>
        /// <param name="defaultText">默认值</param>
        public ICombox Combox <TProperty>(Expression <Func <TEntity, TProperty> > expression, string defaultText = null)
        {
            var combox = EasyUiFactory <TEntity> .CreateCombox(expression, _helper);

            if (defaultText != null)
            {
                combox.AddDefault(defaultText);
            }
            return(combox);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 显示区县列表
 /// </summary>
 /// <param name="name">区县控件name</param>
 /// <param name="value">区县地区Id</param>
 /// <param name="hiddenName">区县名称hidden控件name</param>
 /// <param name="text">区县显示的文本</param>
 public ICombox County(string name, string value = "", string hiddenName = "", string text = "")
 {
     return(EasyUiFactory.CreateCombox(name, "control_Commons_Area_County", Url, value).Hidden(hiddenName, text).PanelHeight(Height).Width(Width).Editable(false));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 组合框
 /// </summary>
 public ICombox Combox()
 {
     return(EasyUiFactory.CreateCombox());
 }
Exemplo n.º 4
0
 /// <summary>
 /// 组合框
 /// </summary>
 /// <typeparam name="TProperty">属性类型</typeparam>
 /// <param name="propertyExpression">属性表达式</param>
 public IEntityCombox <TEntity, TProperty> Combox <TProperty>(Expression <Func <TEntity, TProperty> > propertyExpression)
 {
     return(EasyUiFactory <TEntity> .CreateCombox(propertyExpression, _helper));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 组合框
 /// </summary>
 /// <typeparam name="TProperty">属性类型</typeparam>
 /// <param name="expression">属性表达式</param>
 /// <param name="id">控件Id</param>
 /// <param name="url">远程Url</param>
 public ICombox Combox <TProperty>(Expression <Func <TEntity, TProperty> > expression, string id, string url)
 {
     return(EasyUiFactory <TEntity> .CreateCombox(expression, _helper, id, url));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 组合框
 /// </summary>
 /// <param name="name">name,用于服务端接收值</param>
 /// <param name="id">Id</param>
 /// <param name="url">远程Url</param>
 /// <param name="value">选中的值</param>
 public ICombox Combox(string name, string id, string url, string value)
 {
     return(EasyUiFactory.CreateCombox(name, id, url, value));
 }
Exemplo n.º 7
0
 /// <summary>
 /// 组合框
 /// </summary>
 /// <param name="name">name,用于服务端接收值</param>
 public ICombox Combox(string name)
 {
     return(EasyUiFactory.CreateCombox().Name(name));
 }