Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
91a6b722
"ruoyi-ui/vscode:/vscode.git/clone" did not exist on "6a5c86541acf750a373bf3cb4b534fc0f6e66ec0"
Commit
91a6b722
authored
Dec 19, 2018
by
季圣华
Browse files
更新前端
parent
609756e9
Changes
707
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 707+
files are displayed.
Plain diff
Email patch
erp_web/js/easyui-1.3.5/demo/datagrid/rowborder.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Row Border in DataGrid - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Row Border in DataGrid
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
This sample shows how to change the row border style of datagrid.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<span>
Border:
</span>
<select
onchange=
"changeBorder(this.value)"
>
<option
value=
"lines-both"
>
Both
</option>
<option
value=
"lines-no"
>
No Border
</option>
<option
value=
"lines-right"
>
Right Border
</option>
<option
value=
"lines-bottom"
>
Bottom Border
</option>
</select>
<span>
Striped:
</span>
<input
type=
"checkbox"
onclick=
"$('#dg').datagrid({striped:$(this).is(':checked')})"
>
</div>
<table
id=
"dg"
class=
"easyui-datagrid"
title=
"Row Border in DataGrid"
style=
"width:700px;height:250px"
data-options=
"singleSelect:true,fitColumns:true,url:'datagrid_data1.json',method:'get'"
>
<thead>
<tr>
<th
data-options=
"field:'itemid',width:80"
>
Item ID
</th>
<th
data-options=
"field:'productid',width:100"
>
Product
</th>
<th
data-options=
"field:'listprice',width:80,align:'right'"
>
List Price
</th>
<th
data-options=
"field:'unitcost',width:80,align:'right'"
>
Unit Cost
</th>
<th
data-options=
"field:'attr1',width:250"
>
Attribute
</th>
<th
data-options=
"field:'status',width:60,align:'center'"
>
Status
</th>
</tr>
</thead>
</table>
<script
type=
"text/javascript"
>
function
changeBorder
(
cls
){
$
(
'
#dg
'
).
datagrid
(
'
getPanel
'
).
removeClass
(
'
lines-both lines-no lines-right lines-bottom
'
).
addClass
(
cls
);
}
</script>
<style
type=
"text/css"
>
.lines-both
.datagrid-body
td
{
}
.lines-no
.datagrid-body
td
{
border-right
:
1px
dotted
transparent
;
border-bottom
:
1px
dotted
transparent
;
}
.lines-right
.datagrid-body
td
{
border-bottom
:
1px
dotted
transparent
;
}
.lines-bottom
.datagrid-body
td
{
border-right
:
1px
dotted
transparent
;
}
</style>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datagrid/rowediting.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Row Editing in DataGrid - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Row Editing in DataGrid
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the row to start editing.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<table
id=
"dg"
class=
"easyui-datagrid"
title=
"Row Editing in DataGrid"
style=
"width:700px;height:auto"
data-options=
"
iconCls: 'icon-edit',
singleSelect: true,
toolbar: '#tb',
url: 'datagrid_data1.json',
method: 'get',
onClickRow: onClickRow
"
>
<thead>
<tr>
<th
data-options=
"field:'itemid',width:80"
>
Item ID
</th>
<th
data-options=
"field:'productid',width:100,
formatter:function(value,row){
return row.productname;
},
editor:{
type:'combobox',
options:{
valueField:'productid',
textField:'productname',
url:'products.json',
required:true
}
}"
>
Product
</th>
<th
data-options=
"field:'listprice',width:80,align:'right',editor:{type:'numberbox',options:{precision:1}}"
>
List Price
</th>
<th
data-options=
"field:'unitcost',width:80,align:'right',editor:'numberbox'"
>
Unit Cost
</th>
<th
data-options=
"field:'attr1',width:250,editor:'text'"
>
Attribute
</th>
<th
data-options=
"field:'status',width:60,align:'center',editor:{type:'checkbox',options:{on:'P',off:''}}"
>
Status
</th>
</tr>
</thead>
</table>
<div
id=
"tb"
style=
"height:auto"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-add',plain:true"
onclick=
"append()"
>
Append
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-remove',plain:true"
onclick=
"removeit()"
>
Remove
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-save',plain:true"
onclick=
"accept()"
>
Accept
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-undo',plain:true"
onclick=
"reject()"
>
Reject
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-search',plain:true"
onclick=
"getChanges()"
>
GetChanges
</a>
</div>
<script
type=
"text/javascript"
>
var
editIndex
=
undefined
;
function
endEditing
(){
if
(
editIndex
==
undefined
){
return
true
}
if
(
$
(
'
#dg
'
).
datagrid
(
'
validateRow
'
,
editIndex
)){
var
ed
=
$
(
'
#dg
'
).
datagrid
(
'
getEditor
'
,
{
index
:
editIndex
,
field
:
'
productid
'
});
var
productname
=
$
(
ed
.
target
).
combobox
(
'
getText
'
);
$
(
'
#dg
'
).
datagrid
(
'
getRows
'
)[
editIndex
][
'
productname
'
]
=
productname
;
$
(
'
#dg
'
).
datagrid
(
'
endEdit
'
,
editIndex
);
editIndex
=
undefined
;
return
true
;
}
else
{
return
false
;
}
}
function
onClickRow
(
index
){
if
(
editIndex
!=
index
){
if
(
endEditing
()){
$
(
'
#dg
'
).
datagrid
(
'
selectRow
'
,
index
)
.
datagrid
(
'
beginEdit
'
,
index
);
editIndex
=
index
;
}
else
{
$
(
'
#dg
'
).
datagrid
(
'
selectRow
'
,
editIndex
);
}
}
}
function
append
(){
if
(
endEditing
()){
$
(
'
#dg
'
).
datagrid
(
'
appendRow
'
,{
status
:
'
P
'
});
editIndex
=
$
(
'
#dg
'
).
datagrid
(
'
getRows
'
).
length
-
1
;
$
(
'
#dg
'
).
datagrid
(
'
selectRow
'
,
editIndex
)
.
datagrid
(
'
beginEdit
'
,
editIndex
);
}
}
function
removeit
(){
if
(
editIndex
==
undefined
){
return
}
$
(
'
#dg
'
).
datagrid
(
'
cancelEdit
'
,
editIndex
)
.
datagrid
(
'
deleteRow
'
,
editIndex
);
editIndex
=
undefined
;
}
function
accept
(){
if
(
endEditing
()){
$
(
'
#dg
'
).
datagrid
(
'
acceptChanges
'
);
}
}
function
reject
(){
$
(
'
#dg
'
).
datagrid
(
'
rejectChanges
'
);
editIndex
=
undefined
;
}
function
getChanges
(){
var
rows
=
$
(
'
#dg
'
).
datagrid
(
'
getChanges
'
);
alert
(
rows
.
length
+
'
rows are changed!
'
);
}
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datagrid/rowstyle.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DataGrid Row Style - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
DataGrid Row Style
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The rows which listprice value is less than 30 are highlighted.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<table>
<!-- <table class="easyui-datagrid" title="DataGrid Row Style" style="width:700px;height:250px" data-options="singleSelect: true,iconCls: 'icon-save',url: 'datagrid_data1.json',method: 'get',rowStyler: function(index,row){if (row.listprice < 30){return 'background-color:#6293BB;color:#fff;font-weight:bold;';}}">-->
<thead>
<tr>
<th
data-options=
"field:'itemid',width:80"
>
Item ID
</th>
<th
data-options=
"field:'productid',width:100"
>
Product
</th>
<th
data-options=
"field:'listprice',width:80,align:'right'"
>
List Price
</th>
<th
data-options=
"field:'unitcost',width:80,align:'right'"
>
Unit Cost
</th>
<th
data-options=
"field:'attr1',width:250"
>
Attribute
</th>
<th
data-options=
"field:'status',width:60,align:'center'"
>
Status
</th>
</tr>
</thead>
</table>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datagrid/selection.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DataGrid Selection - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
DataGrid Selection
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Choose a selection mode and select one or more rows.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<a
href=
"#"
class=
"easyui-linkbutton"
onclick=
"getSelected()"
>
GetSelected
</a>
<a
href=
"#"
class=
"easyui-linkbutton"
onclick=
"getSelections()"
>
GetSelections
</a>
</div>
<table
id=
"dg"
class=
"easyui-datagrid"
title=
"DataGrid Selection"
style=
"width:700px;height:250px"
data-options=
"singleSelect:true,url:'datagrid_data1.json',method:'get'"
>
<thead>
<tr>
<th
data-options=
"field:'itemid',width:80"
>
Item ID
</th>
<th
data-options=
"field:'productid',width:100"
>
Product
</th>
<th
data-options=
"field:'listprice',width:80,align:'right'"
>
List Price
</th>
<th
data-options=
"field:'unitcost',width:80,align:'right'"
>
Unit Cost
</th>
<th
data-options=
"field:'attr1',width:250"
>
Attribute
</th>
<th
data-options=
"field:'status',width:60,align:'center'"
>
Status
</th>
</tr>
</thead>
</table>
<div
style=
"margin:10px 0;"
>
<span>
Selection Mode:
</span>
<select
onchange=
"$('#dg').datagrid({singleSelect:(this.value==0)})"
>
<option
value=
"0"
>
Single Row
</option>
<option
value=
"1"
>
Multiple Rows
</option>
</select>
</div>
<script
type=
"text/javascript"
>
function
getSelected
(){
var
row
=
$
(
'
#dg
'
).
datagrid
(
'
getSelected
'
);
if
(
row
){
$
.
messager
.
alert
(
'
Info
'
,
row
.
itemid
+
"
:
"
+
row
.
productid
+
"
:
"
+
row
.
attr1
);
}
}
function
getSelections
(){
var
ss
=
[];
var
rows
=
$
(
'
#dg
'
).
datagrid
(
'
getSelections
'
);
for
(
var
i
=
0
;
i
<
rows
.
length
;
i
++
){
var
row
=
rows
[
i
];
ss
.
push
(
'
<span>
'
+
row
.
itemid
+
"
:
"
+
row
.
productid
+
"
:
"
+
row
.
attr1
+
'
</span>
'
);
}
$
.
messager
.
alert
(
'
Info
'
,
ss
.
join
(
'
<br/>
'
));
}
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datagrid/simpletoolbar.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DataGrid with Toolbar - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
DataGrid with Toolbar
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Put buttons on top toolbar of DataGrid.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<table
class=
"easyui-datagrid"
title=
"DataGrid with Toolbar"
style=
"width:700px;height:250px"
data-options=
"rownumbers:true,singleSelect:true,url:'datagrid_data1.json',method:'get',toolbar:toolbar"
>
<thead>
<tr>
<th
data-options=
"field:'itemid',width:80"
>
Item ID
</th>
<th
data-options=
"field:'productid',width:100"
>
Product
</th>
<th
data-options=
"field:'listprice',width:80,align:'right'"
>
List Price
</th>
<th
data-options=
"field:'unitcost',width:80,align:'right'"
>
Unit Cost
</th>
<th
data-options=
"field:'attr1',width:240"
>
Attribute
</th>
<th
data-options=
"field:'status',width:60,align:'center'"
>
Status
</th>
</tr>
</thead>
</table>
<script
type=
"text/javascript"
>
var
toolbar
=
[{
text
:
'
Add
'
,
iconCls
:
'
icon-add
'
,
handler
:
function
(){
alert
(
'
add
'
)}
},{
text
:
'
Cut
'
,
iconCls
:
'
icon-cut
'
,
handler
:
function
(){
alert
(
'
cut
'
)}
},
'
-
'
,{
text
:
'
Save
'
,
iconCls
:
'
icon-save
'
,
handler
:
function
(){
alert
(
'
save
'
)}
}];
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datagrid/transform.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Transform DataGrid from Table - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Transform DataGrid from Table
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Transform DataGrid from an existing, unformatted html table.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<table
class=
"easyui-datagrid"
style=
"width:500px;height:auto"
>
<thead>
<tr>
<th
data-options=
"field:'itemid'"
>
Item ID
</th>
<th
data-options=
"field:'productid'"
>
Product
</th>
<th
data-options=
"field:'listprice',align:'right'"
>
List Price
</th>
<th
data-options=
"field:'attr1'"
>
Attribute
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
EST-1
</td><td>
FI-SW-01
</td><td>
36.50
</td><td>
Large
</td>
</tr>
<tr>
<td>
EST-10
</td><td>
K9-DL-01
</td><td>
18.50
</td><td>
Spotted Adult Female
</td>
</tr>
<tr>
<td>
EST-11
</td><td>
RP-SN-01
</td><td>
28.50
</td><td>
Venomless
</td>
</tr>
<tr>
<td>
EST-12
</td><td>
RP-SN-01
</td><td>
26.50
</td><td>
Rattleless
</td>
</tr>
<tr>
<td>
EST-13
</td><td>
RP-LI-02
</td><td>
35.50
</td><td>
Green Adult
</td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datebox/basic.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic DateBox - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic DateBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the calendar image on the right side.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
></input>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datebox/buttons.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DateBox Buttons - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
DateBox Buttons
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
This example shows how to customize the datebox buttons underneath the calendar.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
></input>
<input
class=
"easyui-datebox"
data-options=
"buttons:buttons"
></input>
<script>
var
buttons
=
$
.
extend
([],
$
.
fn
.
datebox
.
defaults
.
buttons
);
buttons
.
splice
(
1
,
0
,
{
text
:
'
MyBtn
'
,
handler
:
function
(
target
){
alert
(
'
click MyBtn
'
);
}
});
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datebox/dateformat.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Date Format - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Date Format
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Different date formats are applied to different DateBox components.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
></input>
<input
class=
"easyui-datebox"
data-options=
"formatter:myformatter,parser:myparser"
></input>
<script
type=
"text/javascript"
>
function
myformatter
(
date
){
var
y
=
date
.
getFullYear
();
var
m
=
date
.
getMonth
()
+
1
;
var
d
=
date
.
getDate
();
return
y
+
'
-
'
+
(
m
<
10
?(
'
0
'
+
m
):
m
)
+
'
-
'
+
(
d
<
10
?(
'
0
'
+
d
):
d
);
}
function
myparser
(
s
){
if
(
!
s
)
return
new
Date
();
var
ss
=
(
s
.
split
(
'
-
'
));
var
y
=
parseInt
(
ss
[
0
],
10
);
var
m
=
parseInt
(
ss
[
1
],
10
);
var
d
=
parseInt
(
ss
[
2
],
10
);
if
(
!
isNaN
(
y
)
&&
!
isNaN
(
m
)
&&
!
isNaN
(
d
)){
return
new
Date
(
y
,
m
-
1
,
d
);
}
else
{
return
new
Date
();
}
}
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datebox/events.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
DateBox Events - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
DateBox Events
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the calendar image on the right side.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
data-options=
"onSelect:onSelect"
></input>
<div
style=
"margin:10px 0"
>
<span>
Selected Date:
</span>
<span
id=
"result"
></span>
</div>
<script>
function
onSelect
(
date
){
$
(
'
#result
'
).
text
(
date
)
}
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datebox/validate.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Validate DateBox - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Validate DateBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
When the selected date is greater than specified date. The field validator will raise an error.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datebox"
required
data-options=
"validType:'md[\'10/11/2012\']'"
></input>
<script>
$
.
extend
(
$
.
fn
.
validatebox
.
defaults
.
rules
,
{
md
:
{
validator
:
function
(
value
,
param
){
var
d1
=
$
.
fn
.
datebox
.
defaults
.
parser
(
param
[
0
]);
var
d2
=
$
.
fn
.
datebox
.
defaults
.
parser
(
value
);
return
d2
<=
d1
;
},
message
:
'
The date must be less than or equals to {0}.
'
}
})
</script>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datetimebox/basic.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic DateTimeBox - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic DateTimeBox
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click the calendar image on the right side.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datetimebox"
required
style=
"width:150px"
>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datetimebox/initvalue.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Initialize Value for DateTime - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Initialize Value for DateTime
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The value is initialized when DateTimeBox has been created.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<input
class=
"easyui-datetimebox"
value=
"10/11/2012 2:3:56"
style=
"width:150px"
>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/datetimebox/showseconds.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Display Seconds - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Display Seconds
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The user can decide to display seconds part or not.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<span>
Show Seconds:
</span>
<input
type=
"checkbox"
checked
onchange=
"$('#dt').datetimebox({showSeconds:$(this).is(':checked')})"
>
</div>
<input
id=
"dt"
class=
"easyui-datetimebox"
style=
"width:150px"
>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/demo.css
0 → 100644
View file @
91a6b722
*
{
font-size
:
12px
;
}
body
{
font-family
:
helvetica
,
tahoma
,
verdana
,
sans-serif
;
padding
:
3px
;
font-size
:
13px
;
margin
:
0
;
}
h2
{
font-size
:
18px
;
font-weight
:
bold
;
margin
:
0
;
margin-bottom
:
15px
;
}
.demo-info
{
background
:
#FFFEE6
;
color
:
#8F5700
;
padding
:
12px
;
}
.demo-tip
{
width
:
16px
;
height
:
16px
;
margin-right
:
8px
;
float
:
left
;
}
erp_web/js/easyui-1.3.5/demo/dialog/basic.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic Dialog - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic Dialog
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Click below button to open or close dialog.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('open')"
>
Open
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('close')"
>
Close
</a>
</div>
<div
id=
"dlg"
class=
"easyui-dialog"
title=
"Basic Dialog"
data-options=
"iconCls:'icon-save'"
style=
"width:400px;height:200px;padding:10px"
>
The dialog content.
</div>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/dialog/complextoolbar.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Complex Toolbar on Dialog - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Complex Toolbar on Dialog
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
This sample shows how to create complex toolbar on dialog.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('open')"
>
Open
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('close')"
>
Close
</a>
</div>
<div
id=
"dlg"
class=
"easyui-dialog"
title=
"Complex Toolbar on Dialog"
style=
"width:400px;height:200px;padding:10px"
data-options=
"
iconCls: 'icon-save',
toolbar: '#dlg-toolbar',
buttons: '#dlg-buttons'
"
>
The dialog content.
</div>
<div
id=
"dlg-toolbar"
style=
"padding:2px 0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
style=
"width:100%"
>
<tr>
<td
style=
"padding-left:2px"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-edit',plain:true"
>
Edit
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
data-options=
"iconCls:'icon-help',plain:true"
>
Help
</a>
</td>
<td
style=
"text-align:right;padding-right:2px"
>
<input
class=
"easyui-searchbox"
data-options=
"prompt:'Please input somthing'"
style=
"width:150px"
></input>
</td>
</tr>
</table>
</div>
<div
id=
"dlg-buttons"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"javascript:alert('save')"
>
Save
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"javascript:$('#dlg').dialog('close')"
>
Close
</a>
</div>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/dialog/toolbarbuttons.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Toolbar and Buttons - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Toolbar and Buttons
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The toolbar and buttons can be added to dialog.
</div>
</div>
<div
style=
"margin:10px 0;"
>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('open')"
>
Open
</a>
<a
href=
"javascript:void(0)"
class=
"easyui-linkbutton"
onclick=
"$('#dlg').dialog('close')"
>
Close
</a>
</div>
<div
id=
"dlg"
class=
"easyui-dialog"
title=
"Toolbar and Buttons"
style=
"width:400px;height:200px;padding:10px"
data-options=
"
iconCls: 'icon-save',
toolbar: [{
text:'Add',
iconCls:'icon-add',
handler:function(){
alert('add')
}
},'-',{
text:'Save',
iconCls:'icon-save',
handler:function(){
alert('save')
}
}],
buttons: [{
text:'Ok',
iconCls:'icon-ok',
handler:function(){
alert('ok');
}
},{
text:'Cancel',
handler:function(){
alert('cancel');;
}
}]
"
>
The dialog content.
</div>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/draggable/basic.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Basic Draggable - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Basic Draggable
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
Move the boxes below by clicking on it with mouse.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<div
class=
"easyui-draggable"
style=
"width:200px;height:150px;background:#fafafa;border:1px solid #ccc"
></div>
<div
class=
"easyui-draggable"
data-options=
"handle:'#title'"
style=
"width:200px;height:150px;background:#fafafa;border:1px solid #ccc;margin-top:10px"
>
<div
id=
"title"
style=
"padding:5px;background:#ccc;color:#fff"
>
Title
</div>
</div>
</body>
</html>
\ No newline at end of file
erp_web/js/easyui-1.3.5/demo/draggable/constain.html
0 → 100644
View file @
91a6b722
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Constrain Draggable - jQuery EasyUI Demo
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/default/easyui.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../../themes/icon.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../demo.css"
>
<script
type=
"text/javascript"
src=
"../../jquery.min.js"
></script>
<script
type=
"text/javascript"
src=
"../../jquery.easyui.min.js"
></script>
</head>
<body>
<h2>
Constrain Draggable
</h2>
<div
class=
"demo-info"
>
<div
class=
"demo-tip icon-tip"
></div>
<div>
The draggable object can only be moved within its parent container.
</div>
</div>
<div
style=
"margin:10px 0;"
></div>
<div
style=
"position:relative;overflow:hidden;border:1px solid #ccc;width:500px;height:300px"
>
<div
class=
"easyui-draggable"
data-options=
"onDrag:onDrag"
style=
"width:100px;height:100px;background:#fafafa;border:1px solid #ccc;"
>
</div>
</div>
<script>
function
onDrag
(
e
){
var
d
=
e
.
data
;
if
(
d
.
left
<
0
){
d
.
left
=
0
}
if
(
d
.
top
<
0
){
d
.
top
=
0
}
if
(
d
.
left
+
$
(
d
.
target
).
outerWidth
()
>
$
(
d
.
parent
).
width
()){
d
.
left
=
$
(
d
.
parent
).
width
()
-
$
(
d
.
target
).
outerWidth
();
}
if
(
d
.
top
+
$
(
d
.
target
).
outerHeight
()
>
$
(
d
.
parent
).
height
()){
d
.
top
=
$
(
d
.
parent
).
height
()
-
$
(
d
.
target
).
outerHeight
();
}
}
</script>
</body>
</html>
\ No newline at end of file
Prev
1
…
17
18
19
20
21
22
23
24
25
…
36
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment