SPMNP06400_DCC예약BED생성.xrw 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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>DCC 예약 bed생성</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <comcd/>
  11. </init>
  12. <send>
  13. <auto/>
  14. <am/>
  15. <pm/>
  16. <grddata/>
  17. <opcnfmdd/>
  18. <option/>
  19. <useflag/>
  20. </send>
  21. <target>
  22. <list/>
  23. </target>
  24. <main>
  25. <list>
  26. <dccbedlist>
  27. <opdate/>
  28. <dw/>
  29. <ambed/>
  30. <pmbed/>
  31. <sumbed/>
  32. <instcd/>
  33. </dccbedlist>
  34. </list>
  35. </main>
  36. <temp>
  37. </temp>
  38. <prcpnm/>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. model.setValue("/root/send/option", "popup");
  44. submit("TRMNP06401");
  45. var nodeCnt = getNodesetCount("/root/main/list/dccbedlist");
  46. model.refresh();
  47. ]]>
  48. </script>
  49. <submission id="TXMNP06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  50. <submission id="TRMNP06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  51. </model>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  58. <script type="javascript" src="../../../emr/medirecweb/js/SMMMR02100.js"/>
  59. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  61. </xhtml:head>
  62. <xhtml:body pagewidth="325" pageheight="280" guideline="2,548;1,317;2,280;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <caption id="caption3" class="tit_2" style="left:5px; top:25px; width:120px; height:13px; ">예약 생성</caption>
  64. <caption id="caption8" class="tit_1" style="left:5px; top:5px; width:135px; height:14px; ">DCC 예약 bed생성</caption>
  65. <button id="btn_confirm" class="btn5_letter2" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:263px; top:20px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  66. <caption>저장</caption>
  67. <script type="javascript" ev:event="DOMActivate">
  68. <![CDATA[
  69. for(var i = 1; i < grd_dcclist.rows; i++){
  70. var ambed = model.getValue("/root/main/list/dccbedlist[" + i + "]/ambed");
  71. var pmbed = model.getValue("/root/main/list/dccbedlist[" + i + "]/pmbed");
  72. var sumbed = model.getValue("/root/main/list/dccbedlist[" + i + "]/sumbed");
  73. var opdate = model.getValue("/root/main/list/dccbedlist[" + i + "]/opdate");
  74. if(ambed == ""){
  75. model.setValue("/root/main/list/dccbedlist[" + i + "]/ambed", "0");
  76. }
  77. if(pmbed == ""){
  78. model.setValue("/root/main/list/dccbedlist[" + i + "]/pmbed", "0");
  79. }
  80. if(sumbed == ""){
  81. model.setValue("/root/main/list/dccbedlist[" + i + "]/sumbed", "0");
  82. }
  83. grd_dcclist.rowStatus(i) = 1;
  84. }
  85. var grdData = grd_dcclist.getUpdateData();
  86. model.makeValue("/root/send/grddata", grdData);
  87. submit("TXMNP06401");
  88. submit("TRMNP06401");
  89. ]]>
  90. </script>
  91. </button>
  92. <caption id="caption2" class="cell_1" style="left:0px; top:46px; width:50px; height:20px; text-align:center; ">오전</caption>
  93. <caption id="caption4" class="cell_1" style="left:130px; top:46px; width:50px; height:20px; text-align:center; ">오후</caption>
  94. <line id="line1" class="line_1" style="x1:0px; y1:40px; x2:305px; y2:40px; "/>
  95. <input id="ipt_ambed" ref="/root/send/am" style="left:52px; top:46px; width:55px; height:19px; "/>
  96. <input id="ipt_pmbed" ref="/root/send/pm" style="left:183px; top:46px; width:55px; height:19px; "/>
  97. <datagrid id="grd_dcclist" nodeset="/root/main/list/dccbedlist" caption="요일^요일^오전^오후^합계^instcd^useflag" colsep="^" colwidth="0, 80, 65, 65, 65, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:67px; width:305px; height:203px; ">
  98. <col ref="dccweekday" type="output" visibility="hidden" align="center"/>
  99. <col ref="weeknm" align="center"/>
  100. <col ref="ambed" type="input"/>
  101. <col ref="pmbed" type="input"/>
  102. <col ref="sumbed"/>
  103. <col ref="instcd"/>
  104. <col ref="useflag"/>
  105. <script type="javascript" ev:event="xforms-value-changed">
  106. <![CDATA[
  107. var currow = grd_dcclist.row;
  108. var ambed = model.getValue("/root/main/list/dccbedlist[" + currow + "]/ambed");
  109. var pmbed = model.getValue("/root/main/list/dccbedlist[" + currow + "]/pmbed");
  110. if (isNull(ambed) ) {
  111. ambed = 0;
  112. }
  113. if (isNull(pmbed) ) {
  114. pmbed = 0;
  115. }
  116. var sumbed = parseInt(ambed) + parseInt(pmbed);
  117. model.setValue("/root/main/list/dccbedlist[" + currow + "]/sumbed", sumbed);
  118. grd_dcclist.refresh();
  119. ]]>
  120. </script>
  121. </datagrid>
  122. <button id="button1" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:241px; top:46px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  123. <caption>일괄적용</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. var am = model.getValue("/root/send/am");
  127. var pm = model.getValue("/root/send/pm");
  128. for(var i = 1; i < grd_dcclist.rows; i++ ){
  129. if (!isNull(am)) {
  130. model.makeValue("/root/main/list/dccbedlist[" + i + "]/ambed", am);
  131. }
  132. if (!isNull(pm)) {
  133. model.makeValue("/root/main/list/dccbedlist[" + i + "]/pmbed", pm);
  134. }
  135. model.makeValue("/root/main/list/dccbedlist[" + i + "]/sumbed" , parseInt(model.getValue("/root/main/list/dccbedlist[" + i + "]/ambed"))+parseInt(model.getValue("/root/main/list/dccbedlist[" + i + "]/pmbed")));
  136. }
  137. model.makeValue("/root/send/am", "");
  138. model.makeValue("/root/send/pm", "");
  139. ipt_ambed.refresh();
  140. ipt_pmbed.refresh();
  141. grd_dcclist.gridToInstance();
  142. ]]>
  143. </script>
  144. </button>
  145. </xhtml:body>
  146. </xhtml:html>