? ? 关于flex开发网上有非常多的相关信息介绍,因此我们要想学习关于flex开发的知识信息技能是一件非常简单和方便的事情。而针对于flex开发小编要告诉大家的是一些flex开发小技巧。利用这些小技巧能够有助于我们更好的完成flex开发操作任务。具体内容如下:
public class LoginLogController : BusinessController<LoginLog,LoginLogInfo>
? ?{
? ? ? ?public LoginLogController() : base()
? ? ? ?{
? ? ? ?}
界面部分代码如下所示。
? ? ? ?//实现对DataGird控件的绑定操作
? ? ? ?function InitGrid(queryData) {
? ? ? ? ? ?$('#grid').datagrid({ ? //定位到Table标签,Table标签的ID是grid
? ? ? ? ? ? ? ?url: '/LoginLog/FindWithPager',? //指向后台的Action来获取当前用户的信息的Json格式的数据
? ? ? ? ? ? ? ?title: '用户登陆日志',
? ? ? ? ? ? ? ?//下面的这些属性如果谁不太清楚的话我建议去官方网站去学习
? ? ? ? ? ? ? ?iconCls: 'icon-view',
? ? ? ? ? ? ? ?height: 450,
? ? ? ? ? ? ? ?nowrap: true,
? ? ? ? ? ? ? ?autoRowHeight: false,
? ? ? ? ? ? ? ?striped: true,
? ? ? ? ? ? ? ?collapsible: true,
? ? ? ? ? ? ? ?pagination: true,
? ? ? ? ? ? ? ?rownumbers: true,
? ? ? ? ? ? ? ?//sortName: 'ID',? ?//根据某个字段给easyUI排序
? ? ? ? ? ? ? ?sortOrder: 'asc',
? ? ? ? ? ? ? ?remoteSort: false,
? ? ? ? ? ? ? ?idField: 'ID',
? ? ? ? ? ? ? ?queryParams: queryData,?//异步查询的参数
? ? ? ? ? ? ? ?columns: [[
? ? ? ? ? ? ? ? ? ?{ field: 'ck',checkbox: true },? //选择
? ? ? ? ? ? ? ? ? ?{ title: 'ID',field: 'ID',width: 40,sortable: true },?//主键
? ? ? ? ? ? ? ? ? ? { title: '登录用户ID',field: 'User_ID',width: 80,
? ? ? ? ? ? ? ? ? ? { title: '登录名称',field: 'LoginName',
? ? ? ? ? ? ? ? ? ? { title: '真实名称',field: 'FullName',
? ? ? ? ? ? ? ? ? ? { title: '日志描述',field: 'Note',width: 100,
? ? ? ? ? ? ? ? ? ? { title: 'IP地址',field: 'IPAddress',
? ? ? ? ? ? ? ? ? ? { title: 'Mac地址',field: 'MacAddress',width: 120,
? ? ? ? ? ? ? ? ? ? { title: '系统编号',field: 'SystemType_ID',
? ? ? ? ? ? ? ? ? ? { title: '记录日期',field: 'LastUpdated',
? ? ? ? ? ? ? ?]],
? ? ? ? ? ? ? ?toolbar: [{
? ? ? ? ? ? ? ? ? ?id: 'btnAdd',
? ? ? ? ? ? ? ? ? ?text: '添加',
? ? ? ? ? ? ? ? ? ?iconCls: 'icon-add',
? ? ? ? ? ? ? ? ? ?handler: function () { ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ?ShowAddDialog();//实现添加记录的页面
? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ?},'-',{
? ? ? ? ? ? ? ? ? ?id: 'btnEdit',
? ? ? ? ? ? ? ? ? ?text: '修改',
? ? ? ? ? ? ? ? ? ?iconCls: 'icon-edit',
? ? ? ? ? ? ? ? ? ?handler: function () { ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ?ShowEditOrViewDialog();//实现修改记录的方法
? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ?},{
flex开发的小技巧除了是小编上述的介绍之外还有很多。在网上相关的信息也可以找到。因此我们要想了解更多的flex开发小技巧也可以是自己通过网络查找的方式来获取。但是在这个过程中大家要注意信息真伪的辨别,便于更好的学习flex开发知识技能