dgcol标签

dgcol使用小技巧:
<t:dgCol title="性别"  field="sex" dictionary="sex" width="120" ></t:dgCol>
<t:dgCol title="部门"  field="depId" query="true" dictionary="t_s_depart,id,departname" width="120"></t:dgCol>
<t:dgCol title="部门"  field="depId" query="true" popup="true" dictionary="userinfo,userName@realName,username@realname" width="120"></t:dgCol>
大数据量字典表有两种,自定义字典表和popup
(1)自定义字典表,如:1.2  
dictionary="t_s_depart,id,departname"   通过设置表名字段名来查询表信息进行展示和值替换,若表数据量大时,数据替换存在效率的问题,可以使用isAjaxDict="true"使用ajax加载的方式来加载数据,进行值替换。
(2)popup不建议列表进行值替换,建议表字段冗余需要展示的字段,在表单添加编辑时,通过popup选择把值带入到表单保存,以便展示
<t:dgCol title="部门"  field="depId" query="true" dictionary="t_s_depart,id,departname" dictCondition="where org_code like 'A01%'"  width="120"></t:dgCol>
<t:dgCol title="电话"  field="phone" query="true"  width="120" ></t:dgCol>
<t:dgCol title="创建日期" query="true" queryMode="group" field="createDate" formatter="yyyy-MM-dd hh:mm:ss" width="120"></t:dgCol>