9dce15085655c4873e3f099fab38b126c889a0fb.svn-base 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. $(function () {
  2. 'use strict';
  3. BWA.Popup = BWA.Popup || {};
  4. BWA.Popup.ExecutionScheduleCalendarPopup = {
  5. create: function (viewModel) {
  6. var popupVisible = ko.observable(false);
  7. var selectedWorkSchedule = ko.observable();
  8. var eq = BWA.DataUtil.constructEqualFilter,
  9. and = BWA.DataUtil.andFilter,
  10. viewModel = viewModel;
  11. function handlePopupButtonClose() {
  12. popupVisible(false);
  13. }
  14. function handlePopupShowing(e) {
  15. }
  16. function handlePopupShown() {
  17. }
  18. var toolbarItems = [
  19. { location: 'before', text: '상세정보' },
  20. { location: 'after', widget: 'button', options: { text: $G('close'), icon: 'close', clickAction: handlePopupButtonClose } }
  21. ];
  22. var popupOptions = {
  23. width: '520px',
  24. height: 'auto',
  25. visible: popupVisible,
  26. closeOnOutsideClick: false,
  27. shading: false,
  28. showingAction: handlePopupShowing,
  29. shownAction: handlePopupShown,
  30. animation: utils.popup.createAnimation()
  31. };
  32. return {
  33. selectedWorkSchedule: selectedWorkSchedule,
  34. popupOptions: popupOptions,
  35. toolbarItems: toolbarItems,
  36. show: function () {
  37. popupVisible(true);
  38. }
  39. };
  40. }
  41. }
  42. });