Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sd-doc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Skripnikov
sd-doc
Commits
f70fc4f9
Commit
f70fc4f9
authored
Nov 01, 2017
by
Valentin Skripnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
9ec500c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
120 additions
and
1 deletion
+120
-1
docs/_static/html/forms/widgets/datepicker.html
docs/_static/html/forms/widgets/datepicker.html
+93
-0
docs/forms/options.rst
docs/forms/options.rst
+1
-1
docs/forms/widgets.rst
docs/forms/widgets.rst
+26
-0
No files found.
docs/_static/html/forms/widgets/datepicker.html
0 → 100644
View file @
f70fc4f9
<!DOCTYPE html>
<html>
<head
lang=
"en"
>
<meta
charset=
"UTF-8"
>
<title>
DatePicker Widget
</title>
<script>
FORM_PLAYER_URL_PREFIX
=
"
http://192.168.3.16:8080/Synergy/
"
;
<!--
служебная
переменная
для
корректной
работы
компонента
"
HTD-редактор
"
-->
</script>
<link
rel=
"stylesheet"
href=
"http://192.168.3.16:8080/Synergy/js/form.player.css"
/>
<!--стандартный стиль компонентов формы-->
<script
src=
"http://192.168.3.16:8080/Synergy/js/vendor.js"
type=
"text/javascript"
></script>
<!--ссылка на сторонние библиотеки-->
<script
src=
"http://192.168.3.16:8080/Synergy/js/form.player.js"
type=
"text/javascript"
></script>
<!--ссылка на проигрыватель форм-->
</head>
<body>
<div
id=
"form_player_container"
>
<div
id=
"form_player_div"
></div>
</div>
<script>
'
use strict
'
;
AS
.
OPTIONS
.
locale
=
"
ru
"
;
AS
.
OPTIONS
.
coreUrl
=
"
http://192.168.3.16:8080/Synergy/
"
;
var
portal
=
{
player
:
null
,
/**
* очистить текущий проигрыватель форм
*/
clearPlayer
:
function
()
{
if
(
portal
.
player
)
{
portal
.
player
.
destroy
();
}
},
/**
* добавить новый проигрыватель форм
*/
createPlayer
:
function
(
formCode
)
{
portal
.
clearPlayer
();
portal
.
player
=
AS
.
FORMS
.
createPlayer
();
portal
.
player
.
showFormByCode
(
formCode
);
portal
.
player
.
view
.
setEditable
(
true
);
portal
.
player
.
view
.
appendTo
(
$
(
'
#form_player_div
'
));
AS
.
FORMS
.
bus
.
on
(
AS
.
FORMS
.
EVENT_TYPE
.
formShow
,
function
(
event
,
model
,
view
)
{
if
(
model
.
formCode
===
formCode
)
{
model
.
on
(
AS
.
FORMS
.
EVENT_TYPE
.
dataLoad
,
function
()
{
AS
.
SERVICES
.
showWaitWindow
();
portal
.
main
(
portal
.
player
.
view
.
getViewWithId
(
"
textbox-cmp
"
),
portal
.
player
.
model
.
getModelWithId
(
"
textbox-cmp
"
));
});
}
});
},
main
:
function
(
view
,
model
)
{
$
(
"
[data-asformid='textbox.input.textbox-cmp']
"
).
click
(
function
()
{
AS
.
SERVICES
.
showDatePicker
(
new
Date
(),
$
(
"
[data-asformid='textbox.input.textbox-cmp']
"
),
$
(
"
[data-asformid='textbox.input.textbox-cmp']
"
),
function
(
date
)
{
model
.
setValue
(
AS
.
FORMS
.
DateUtils
.
formatDate
(
date
,
"
${dd} ${monthed} ${yyyy}г.
"
));
});
});
}
};
$
(
document
).
ready
(
function
()
{
AS
.
OPTIONS
.
login
=
"
admin
"
;
AS
.
OPTIONS
.
password
=
"
nimda
"
;
portal
.
createPlayer
(
"
test
"
);
});
</script>
</body>
</html>
docs/forms/options.rst
View file @
f70fc4f9
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
},
},
locale: "ru", // локаль пользователя
locale: "ru", // локаль пользователя
options: {},
options: {},
requestTimeout: 5000, // таймаут на запросы (AJAX)
requestTimeout: 5000, // таймаут на запросы (AJAX)
, миллисекунды
noCustomScripting: false, // отключить все ВМК
noCustomScripting: false, // отключить все ВМК
mobilePlayer: false // мобильный проигрыватель форм
mobilePlayer: false // мобильный проигрыватель форм
}
}
...
...
docs/forms/widgets.rst
View file @
f70fc4f9
Виджеты
Виджеты
=======
=======
Дополнительные компоненты, которые можно использовать при разработке приложений
.. js:function:: showDatePicker(value, anchor, input, handler)
.. raw:: html
<iframe src='_static/html/forms/widgets/datepicker.html' scrolling='no' seamless height="300px"></iframe>
.. js:function:: showDepartmentChooserDialog
.. js:function:: showDropDown
.. js:function:: showPositionChooserDialog
.. js:function:: showProjectLinkDialog
.. js:function:: showRegisterLinkDialog
.. js:function:: showUserChooserDialog
.. js:function:: showWaitWindow
.. js:function:: hideWaitWindow
.. js:function:: unAuthorized
Write
Preview
Markdown
is supported
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