Пример #1
0
 /// <summary>
 /// 表格
 /// </summary>
 /// <param name="id">Id</param>
 public IDataGrid Grid(string id = "")
 {
     return(EasyUiFactory.CreateDataGrid().Id(id).RowNumber()
            .Pagination().CheckOnSelect(false).SelectOnCheck(false).SingleSelect().Strip());
 }
Пример #2
0
 /// <summary>
 /// 子表格列
 /// </summary>
 /// <param name="expression">表达式</param>
 /// <param name="width">宽度</param>
 public ISubGridColumn SubGridColumn <TProperty>(Expression <Func <TProperty> > expression, int?width = 100)
 {
     return(EasyUiFactory <TProperty> .CreateSubGridColumn(expression).Width(width).Align());
 }
 /// <summary>
 /// 图标控件
 /// </summary>
 /// <typeparam name="TProperty">属性类型</typeparam>
 /// <param name="expression">属性表达式</param>
 /// <param name="dialogWidth">选择图标窗口宽度</param>
 /// <param name="dialogHeight">选择图标窗口高度</param>
 public IDataGridColumn Icon <TProperty>(Expression <Func <T, TProperty> > expression, int?dialogWidth = null, int?dialogHeight = null)
 {
     return(EasyUiFactory <T> .CreateDataGridColumn(expression, _helper, true).Lookup(CreateLookupOption(dialogWidth, dialogHeight))
            .Width(150).Align(AlignLeftRigthCenter.Center, AlignLeftRigthCenter.Center).FormatImage(16, 16, true));
 }
Пример #4
0
 /// <summary>
 /// 树型表格
 /// </summary>
 /// <param name="id">Id</param>
 /// <param name="treeField">树显示字段名</param>
 /// <param name="idField">Id字段名</param>
 public ITreeGrid TreeGrid(string id = "", string treeField = "Text", string idField = "Id")
 {
     return(EasyUiFactory.CreateTreeGrid().Id(id).IdField(idField).TreeField(treeField).RowNumber()
            .Pagination().CheckOnSelect(false).SelectOnCheck(false).SingleSelect().Strip().Sort("SortId", false));
 }
Пример #5
0
 /// <summary>
 /// 树组合框
 /// </summary>
 /// <param name="name">name,用于服务端接收值</param>
 /// <param name="id">Id</param>
 /// <param name="url">远程Url</param>
 /// <param name="value">选中的值</param>
 public IComboTree ComboTree(string name, string id, string url, string value)
 {
     return(EasyUiFactory.CreateComboTree(name, id, url, value));
 }
Пример #6
0
 /// <summary>
 /// 表格列
 /// </summary>
 /// <param name="field">字段名</param>
 /// <param name="text">文本</param>
 /// <param name="width">宽度</param>
 public IDataGridColumn GridColumn(string field = "", string text = "", int?width = null)
 {
     return(EasyUiFactory.CreateDataGridColumn().Field(field).Text(text).Width(width).Align());
 }
Пример #7
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));
 }
Пример #8
0
 /// <summary>
 /// 区域面板选项
 /// </summary>
 public IRegionOption RegionOptions()
 {
     return(EasyUiFactory.CreateRegionOption());
 }
Пример #9
0
 /// <summary>
 /// 布局选项
 /// </summary>
 /// <param name="fit">自适应布局</param>
 public ILayoutOption LayoutOptions(bool fit = false)
 {
     return(EasyUiFactory.CreateLayoutOption(fit));
 }
Пример #10
0
 /// <summary>
 /// 链接按钮
 /// </summary>
 /// <param name="text">按钮文本</param>
 public IButton Button(string text)
 {
     return(EasyUiFactory.CreateButton(text));
 }
Пример #11
0
 /// <summary>
 /// 组合框
 /// </summary>
 public ICombox Combox()
 {
     return(EasyUiFactory.CreateCombox());
 }
Пример #12
0
 /// <summary>
 /// 布局
 /// </summary>
 public ILayout Layout()
 {
     return(EasyUiFactory.CreateLayout());
 }
Пример #13
0
 /// <summary>
 /// 链接按钮
 /// </summary>
 /// <param name="text">按钮文本</param>
 public ILinkButton LinkButton(string text)
 {
     return(EasyUiFactory.CreateLinkButton(text));
 }
Пример #14
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));
 }
Пример #15
0
 /// <summary>
 /// 子表格
 /// </summary>
 /// <param name="property">集合属性,范例:如果对象包含A元素集合List1,A元素包含集合List2,展示List2使用"List2",不要写成"List1.List2"</param>
 public ISubDataGrid SubGrid(string property)
 {
     return(EasyUiFactory.CreateSubGrid().RowNumber().FitColumns().Strip().Property(property).CheckOnSelect(false).SelectOnCheck(false).SingleSelect());
 }
 /// <summary>
 /// 应用程序控件
 /// </summary>
 /// <typeparam name="TProperty">属性类型</typeparam>
 /// <param name="expression">属性表达式</param>
 public IDataGridColumn Application <TProperty>(Expression <Func <T, TProperty> > expression)
 {
     return(EasyUiFactory <T> .CreateDataGridColumn(expression, _helper, true).Combox("/Systems/Application/ApplicationsControl").Editable(false).Width(120).PanelHeight());
 }
Пример #17
0
 /// <summary>
 /// 子表格
 /// </summary>
 /// <typeparam name="TProperty">属性类型</typeparam>
 /// <param name="expression">集合属性,范例:t => t.Users</param>
 /// <param name="funcCreateColumns">创建列集合方法</param>
 public ISubDataGrid SubGrid <TProperty>(Expression <Func <TEntity, IEnumerable <TProperty> > > expression, Func <TProperty, ISubGridColumn[]> funcCreateColumns)
 {
     return(EasyUiFactory <TEntity> .CreateSubGrid(expression, funcCreateColumns).RowNumber().FitColumns().Strip().CheckOnSelect(false).SelectOnCheck(false).SingleSelect());
 }
Пример #18
0
 /// <summary>
 /// 弹出窗口按钮
 /// </summary>
 /// <param name="text">按钮文本</param>
 /// <param name="url">弹出窗口网址</param>
 public IDialogButton DialogButton(string text, string url = "")
 {
     return(EasyUiFactory.CreateDialogButton(text, url));
 }
Пример #19
0
 /// <summary>
 /// 文本框
 /// </summary>
 /// <typeparam name="TProperty">属性类型</typeparam>
 /// <param name="expression">属性表达式</param>
 public ITextBox TextBox <TProperty>(Expression <Func <TEntity, TProperty> > expression)
 {
     return(EasyUiFactory <TEntity> .CreateTextBox(expression, _helper));
 }
Пример #20
0
 /// <summary>
 /// 文本框
 /// </summary>
 public ITextBox TextBox()
 {
     return(EasyUiFactory.CreateTextBox());
 }
Пример #21
0
 /// <summary>
 /// 创建表格列
 /// </summary>
 /// <typeparam name="TProperty">属性类型</typeparam>
 /// <param name="expression">属性表达式</param>
 /// <param name="width">宽度</param>
 /// <param name="isEdit">是否允许编辑</param>
 public IDataGridColumn GridColumn <TProperty>(Expression <Func <TEntity, TProperty> > expression, int?width = null, bool isEdit = false)
 {
     return(EasyUiFactory <TEntity> .CreateDataGridColumn(expression, _helper, isEdit).Width(width).Align());
 }
Пример #22
0
 /// <summary>
 /// 组合框
 /// </summary>
 /// <param name="name">name,用于服务端接收值</param>
 public ICombox Combox(string name)
 {
     return(EasyUiFactory.CreateCombox().Name(name));
 }
Пример #23
0
 /// <summary>
 /// 树
 /// </summary>
 /// <param name="url">设置远程url</param>
 /// <param name="id">Id</param>
 public ITree Tree(string url, string id = "")
 {
     return(EasyUiFactory.CreateTree().Url(url).Id(id));
 }
Пример #24
0
 /// <summary>
 /// 菜单
 /// </summary>
 /// <param name="id">Id</param>
 public IMenu Menu(string id)
 {
     return(EasyUiFactory.CreateMenu(id));
 }
Пример #25
0
 /// <summary>
 /// 子表格列
 /// </summary>
 /// <param name="field">字段名</param>
 /// <param name="text">标题文本</param>
 /// <param name="width">宽度</param>
 public ISubGridColumn SubGridColumn(string field, string text, int?width = 100)
 {
     return(EasyUiFactory.CreateSubGridColumn().Field(field).Text(text).Width(width).Align());
 }
Пример #26
0
 /// <summary>
 /// 菜单项
 /// </summary>
 /// <param name="id">Id</param>
 /// <param name="text">文本</param>
 /// <param name="iconClass">图标class</param>
 public IMenuItem MenuItem(string id = "", string text = "", string iconClass = "")
 {
     return(EasyUiFactory.CreateMenuItem().Id(id).Text(text).Icon(iconClass));
 }
Пример #27
0
 /// <summary>
 /// 创建分页
 /// </summary>
 public IPagination Pagination()
 {
     return(EasyUiFactory.CreatePagination());
 }
 /// <summary>
 /// 字典控件
 /// </summary>
 /// <param name="expression">属性表达式</param>
 /// <param name="code">字典编码</param>
 public IDataGridColumn Dic <TProperty>(Expression <Func <T, TProperty> > expression, string code)
 {
     return(EasyUiFactory <T> .CreateDataGridColumn(expression, _helper, true).ComboTree("/Commons/Dic/DicControl?code=" + code).Editable(false).Width(150).PanelHeight());
 }