SPPMB01003_병원달력.xrw 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>병원달력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <selecteddate/>
  11. </main>
  12. <send/>
  13. <init/>
  14. <hidden/>
  15. </root>
  16. </instance>
  17. <script type="javascript" ev:event="xforms-ready">
  18. <![CDATA[
  19. caption3.visible = false;
  20. caption4.visible = false;
  21. //caption5.visible = false;
  22. caption6.visible = false;
  23. //caption7.visible = false;
  24. caption8.visible = false;
  25. //caption9.visible = false;
  26. caption10.visible = false;
  27. ]]>
  28. </script>
  29. </model>
  30. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  31. <script type="javascript">
  32. <![CDATA[
  33. function fGetCalendarData(){
  34. //model.setValue("/root/hidden/calendar/month", newMonth);
  35. var isMonth = model.getValue("/root/hidden/calendar/month");
  36. var isYear = model.getValue("/root/hidden/calendar/year");
  37. var isDate = (isYear+isMonth+1).toDate();
  38. setCalendar(isDate);
  39. }
  40. function fClickOnCalendar(){
  41. if ( checkOpener() ) {
  42. var calRow = grd_calendar.row;
  43. var calCol = grd_calendar.col;
  44. if(calRow > 0 && calCol >= 0 ){
  45. calCol = calCol % 7;
  46. }else{
  47. return false;
  48. }
  49. var isDay = grd_calendar.valueMatrix(calRow, calCol);
  50. if( isDay != "" ){
  51. if( isDay.length == 1 ) isDay = "0" + isDay;
  52. var dd = ( (model.getValue("/root/hidden/calendar/year")).concat(model.getValue("/root/hidden/calendar/month")) ).concat(isDay);
  53. model.setValue("/root/main/selecteddate", dd);
  54. }
  55. } else {
  56. messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  57. }
  58. }
  59. ]]>
  60. </script>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="415" pageheight="490" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  63. <group id="group1" scroll="auto" style="left:0px; top:462px; width:387px; height:27px; ">
  64. <button id="btn_confirm" class="btn4_letter2" navindex="8" style="left:272px; top:5px; width:56px; height:22px; ">
  65. <caption>확인</caption>
  66. <script type="javascript" ev:event="DOMActivate">
  67. <![CDATA[
  68. fClickOnCalendar();
  69. window.close();
  70. ]]>
  71. </script>
  72. </button>
  73. <button id="btn_cancel" class="btn4_letter2" navindex="9" style="left:331px; top:5px; width:56px; height:22px; ">
  74. <caption>취소</caption>
  75. <script type="javascript" ev:event="DOMActivate">
  76. <![CDATA[
  77. window.close();
  78. ]]>
  79. </script>
  80. </button>
  81. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:384px; y2:0px; "/>
  82. </group>
  83. <group id="group3" scroll="auto" style="left:0px; top:0px; width:387px; height:462px; ">
  84. <import id="import1" src="../../../pam/pambaseinfomngtweb/xrw/SPPMB01001_병원달력.xrw" style="left:0px; top:0px; width:387px; height:462px; "/>
  85. </group>
  86. </xhtml:body>
  87. </xhtml:html>