<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<script type="text/javascript">
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = "./Ext/resources/images/default/s.gif";
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = "qtip";
var sm = new Ext.grid.CheckboxSelectionModel();
//记录类型
var Discipline = Ext.data.Record.create([{
name: "name",
mapping: "name"
}, {
name: "sex",
mapping: "sex"
}, {
name: "mobile",
mapping: "mobile"
}, {
name: "email",
mapping: "email"
}, {
name: "qq",
mapping: "qq"
}, {
name: "id",
mapping: "id"
}]);
var store = new Ext.data.Store({
autoLoad: true,
url: encodeURI(encodeURI('getAddressPager.do')),
reader: new Ext.data.JsonReader({
root: "addresses",
id: "id",
totalProperty: "recordSize"
}, Discipline)
});
function deleteAddressUrl(id){
var str = "<center><img src='./image/delete.gif' alt='删除联系人' onclick='deleteAddress(" + id + ");'/></center>";
return str;
}
function updateAddressUrl(id){
var str = "<center><img src='./image/update.gif' alt='更新联系人' onclick='updateAddress(" + id + ");'/></center>";
return str;
}
//创建Grid表格组件
var disciplineGridPanel = new Ext.grid.GridPanel({
id: 'addressPanel',
height: 500,
frame: true,
store: store,
ddGroup: 'TreeDD',
sm: sm,
enableDragDrop: true,
columns: [//配置表格列
sm, new Ext.grid.RowNumberer(), {
header: "姓名",
width: 100,
dataIndex: 'name',
align: 'center',
sortable: true
}, {
header: "性别",
width: 60,
dataIndex: 'sex',
align: 'center',
sortable: true
}, {
header: "电话",
width: 180,
dataIndex: 'mobile',
align: 'mobile',
sortable: true,
align: 'center'
}, {
header: "email",
width: 150,
dataIndex: 'email',
align: 'center'
}, {
header: "qq",
width: 100,
dataIndex: 'qq',
align: 'center'
}, {
header: "删除联系人",
width: 100,
dataIndex: 'id',
align: 'center',
renderer: deleteAddressUrl
}, {
header: "修改信息",
width: 100,
dataIndex: 'id',
align: 'center',
renderer: updateAddressUrl
}]
});
//点击版本管理按钮需要显示的主面板
var versionManageMain = new Ext.Panel({
renderTo: 'main_div',
height: 490,
items: disciplineGridPanel,
bbar: new Ext.PagingToolbar({//下面的分页条
pageSize: 15,
store: store,
displayInfo: true,
displayMsg: '当前显示第 {0} 条到 {1} 条记录,一共 {2} 条',
emptyMsg: "没有记录",
firstText: "首页",
prevText: "上一页",
nextText: "下一页",
lastText: "尾页",
refreshText: "刷新"
}),
tbar: new Ext.Toolbar({
id: 'topPanelTbar',
height: 30,
items: ["-", {
text: "添加联系人",
iconCls: 'add',
handler: addAddress
}, "-", {
text: '导出为excel',
iconCls: 'close',
handler: function addManyFn(){
outputAddress(disciplineGridPanel);
}
}, "-", new Ext.form.Label({
text: "联系人姓名:"
}), {
xtype: "textfield",
id: 'name',
width: 100,
allowBlank: true
//emptyText: "请输入姓名"
}, {
text: '查找',
iconCls: 'search',
handler: function addFn(){
disciplineGridPanel.getStore().load({
params: {
start: 0,
limit: 15,
name: Ext.get('name').dom.value,
mygroup: ''
},
callback: function(records, options, success){
if (null == records || records == '') {
disciplineGridPanel.getStore().removeAll();
}
}
});
}
}, "-", {
text: '退出系统',
iconCls: 'close',
handler: logout
}, "-", {
text: '系统帮助',
iconCls: 'help'
}, {
text: '关于我们',
iconCls: 'help',
handler: about
}]
})
});
store.load({
params: {
limit: 15,
start: 0,
name: Ext.get('name').dom.value,
mygroup: ''
}
});
});
new Ext.dd.DropTarget(Ext.getCmp('addressMenu').container, {
ddGroup: 'TreeDD',
notifyDrop: function(dd, e, data){
disciplineGridPanel = Ext.getCmp("addressPanel");
Ext.tree.TreeNodeUI.prototype.onOver = function(e){
this.addClass('x-tree-node-over');
this.fireEvent("mouseover", this.node, e);
};
Ext.tree.TreeNodeUI.prototype.onOut = function(e){
this.addClass('x-tree-node-out');
this.fireEvent("mouseout", this.node, e);
};
Ext.getCmp('addressMenu').getNodeById('tree234').addListener('mouseover', aa, this);
Ext.getCmp('addressMenu').getNodeById('tree234').addListener('mouseout', bb
没有合适的资源?快使用搜索试试~ 我知道了~
基于s2sh+Extjs+dwr OA系统带全部JAR
共2341个文件
gif:1363个
js:545个
png:115个
3星 · 超过75%的资源 需积分: 3 31 下载量 172 浏览量
2011-11-07
22:23:06
上传
评论 1
收藏 27.06MB RAR 举报
温馨提示
ssh2的oa系统简单的oa哦 数据库采用mysql,数据库表.不是很会设计,借鉴书籍,比较简单的设计,个别字段有所更改. 本机数据库密码为123456,使用时可自行更改. 用的东西比较杂,主要为了学习一下知识呵呵: ssh2、dwr、jquery、extjs、jquery weekcalendar、jfreechart、jasperreport 联系人实现了拖动实现好友分组。可以把grid直接拖到tree,不同于其他的例子,拖动grid后会在tree中加一个叶子节点,大家试下就会明白。 自己练习用的哦,做的不好不要骂我,哪里不好希望大家包涵。
资源推荐
资源详情
资源评论
收起资源包目录
基于s2sh+Extjs+dwr OA系统带全部JAR (2341个子文件)
.tmp_addr.html.16168~ 6KB
.tmp_message.html.28242~ 483B
.tmp_index.html.50784~ 2KB
.tmp_addr.html.62403~ 6KB
.tmp_index.html.67510~ 2KB
logo8.bmp 4KB
AddressDAO.class 6KB
SmsDAO.class 4KB
MeetingDAO.class 4KB
ScheduleDAO.class 4KB
AddAddressAction.class 4KB
WorklogDAO.class 4KB
Pager.class 4KB
GetAddressBygroupAction.class 4KB
RegisterAction.class 3KB
UserDAO.class 3KB
AbstractAddress.class 3KB
UpdateAddressAction.class 3KB
GetHistoryMeetAction.class 3KB
GetAddressPagerAction.class 3KB
UpdateProcessAction.class 3KB
UpdateMeetAction.class 3KB
GetMeetingBySender.class 3KB
NoticeDAO.class 3KB
AddProcessAction.class 3KB
AddMeetingAction.class 3KB
GetProcessByNameAction.class 3KB
SendMessageAction.class 3KB
DateTimeUitl.class 3KB
GetSmsByUserNameAction.class 3KB
LoginAction.class 3KB
DwrCheck.class 2KB
AddressJasperAction.class 2KB
AbstractMeeting.class 2KB
UpdateMessageStautsAction.class 2KB
AbstractSms.class 2KB
UpdateAddressGroupAction.class 2KB
AbstractWorklog.class 2KB
AbstractSchedule.class 2KB
AbstractNotice.class 2KB
AbstractUser.class 2KB
BaseAction.class 2KB
GetAddressByUserNameAction.class 2KB
GetUsersAction.class 2KB
LoginFilter.class 2KB
DeleteMeetingAction.class 2KB
DeleteAddressByIdAction.class 2KB
DeleteMessageAction.class 2KB
GetAddressByIdAction.class 2KB
GetMessageByIdAction.class 2KB
AddressDAO$2.class 1KB
UserDAO$1.class 1KB
LogoutAction.class 1KB
AddressDAO$1.class 1KB
AuthorizationInterceptor.class 1KB
UserDAO$2.class 1KB
DeleteProcessAction.class 1KB
Event.class 1KB
PageAction.class 1KB
Constants.class 1KB
LoggingInterceptor.class 1KB
RegExpression.class 1012B
IAddressDAO.class 919B
TestDateToNumber.class 738B
ISmsDAO.class 578B
IScheduleDAO.class 572B
Schedule.class 558B
Meeting.class 554B
Address.class 554B
Worklog.class 554B
Notice.class 550B
User.class 542B
Sms.class 538B
IMeetingDAO.class 536B
IUserDAO.class 478B
IWorklogDAO.class 428B
INoticeDAO.class 369B
xtheme-silverCherry.css 112KB
ext-all.css 98KB
jquery-ui-1.7.2.custom.css 27KB
xtheme-slate.css 22KB
xtheme-midnight.css 19KB
xtheme-indigo.css 18KB
xtheme-peppermint.css 16KB
xtheme-chocolate.css 16KB
xtheme-black.css 16KB
xtheme-olive.css 15KB
xtheme-pink.css 15KB
xtheme-darkgray.css 15KB
xtheme-purple.css 15KB
grid.css 13KB
form.css 13KB
fullcalendar.css 10KB
xtheme-green.css 10KB
xtheme-gray.css 9KB
panel.css 8KB
tabs.css 8KB
main.css 7KB
tree.css 7KB
date-picker.css 6KB
共 2341 条
- 1
- 2
- 3
- 4
- 5
- 6
- 24
资源评论
- zgmws20072012-06-28没有源码。。。。
- jia6862012-06-02没有src啊~~~
yongweb
- 粉丝: 33
- 资源: 163
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功