SPAEA01103_진료예약자리스트(안과).xrw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. <ordrsrvlist>
  11. <mainlist>
  12. <ordtm/>
  13. <pid/>
  14. <hngnm/>
  15. </mainlist>
  16. </ordrsrvlist>
  17. </main>
  18. <send>
  19. <orddd/>
  20. <orddeptcd/>
  21. <orddrid/>
  22. <subdeptcd/>
  23. </send>
  24. <hidden>
  25. <popdata>
  26. </popdata>
  27. </hidden>
  28. <init>
  29. <cmb_info>
  30. <orddridlist>
  31. <orddrid/>
  32. <orddrnm/>
  33. </orddridlist>
  34. </cmb_info>
  35. </init>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. model.setValue("/root/send/orddd",model.getValue("/root/hidden/popdata/orddd"));
  41. model.setValue("/root/send/orddeptcd",model.getValue("/root/hidden/popdata/orddeptcd"));
  42. model.makeValue("/root/send/subdeptcd",model.getValue("/root/hidden/popdata/orddeptcd"));
  43. model.setValue("/root/send/orddrid",model.getValue("/root/hidden/popdata/orddrid"));
  44. //진료의 리스트 갖고오기
  45. // submit("TRAEA01125",false);
  46. // submit("TRAEA01123");
  47. submit("TRAEA01125",false);
  48. submit("TRAEA01130");
  49. ]]>
  50. </script>
  51. <submission id="TRAEA01123" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordrsrvlist"/>
  52. <submission id="TRAEA01125" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  53. <submission id="TRAEA01130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/ordrsrvlist"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript">
  60. <![CDATA[
  61. /*******************************************************************************************************************************************************************/
  62. //약/주사 액팅
  63. /*******************************************************************************************************************************************************************/
  64. function fprcpacting() {
  65. var nodeList = instance1.selectNodes("/root/main/subordlist/subordlist4[check='Y']");
  66. var rCSV = getNodeListCSV(nodeList);
  67. if ( rCSV == null ) {
  68. messageBox("처방내역을","C002");
  69. return "0";
  70. }else {
  71. if(( model.getValue("/root/main/subordlist/subordlist4["+ grd_subprcplist.row +"]/execprcphistcd") == "E" ) || ( model.getValue("/root/main/subordlist/subordlist4["+ grd_subprcplist.row +"]/execprcphistcd") == "D" ) || ( model.getValue("/root/main/subordlist/subordlist4["+ grd_subprcplist.row +"]/execprcphistcd") == "L" ) ){
  72. messageBox("이미 반환된 처방","E008");
  73. return "0";
  74. }
  75. if( (model.getValue("/root/main/subordlist/subordlist4["+ grd_subprcplist.row +"]/execprcphistcd") == "O" ) && ( model.getValue("/root/main/subordlist/subordlist4[" + grd_subprcplist.row + "]/execprcpstatcd") == "610") ) {
  76. messageBox("실시완료된 처방","E008");
  77. return "0";
  78. }else {
  79. model.setValue("/root/send/data/tobeacptprcp/tobeacptprcplist", rCSV);
  80. }
  81. }
  82. // 처방 -> 검사접수/실시완료
  83. if ( messageBox("실시를 ","Q002")==6 ) {
  84. submit("TXAEA01508"); // transaction 1
  85. }
  86. submit("TRAEA01120");
  87. //반환처방 색상주기
  88. initGridStyle("grd_subprcplist");
  89. setRowStyle("grd_subprcplist" , "2" , "E" , "execprcphistcd","equal" );
  90. setRowStyle("grd_subprcplist" , "2" , "D" , "execprcphistcd","equal" );
  91. setRowStyle("grd_subprcplist" , "2" , "L" , "execprcphistcd","equal" );
  92. model.refresh();
  93. }
  94. ]]>
  95. </script>
  96. </xhtml:head>
  97. <xhtml:body pagewidth="280" pageheight="440" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  98. <group id="group3" scroll="auto" style="left:9px; top:9px; width:251px; height:412px; ">
  99. <caption id="caption1" class="tit_2" style="left:5px; top:11px; width:100px; height:13px; ">진료예약내역</caption>
  100. <line id="line1" class="line_1" style="x1:0px; y1:26px; x2:250px; y2:26px; "/>
  101. <datagrid id="grd_subprcplist" nodeset="/root/main/ordrsrvlist/mainlist" scroll="vertical" caption="예약시간^등록번호^환자명" colsep="^" colwidth="60, 86, 64" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:31px; width:250px; height:379px; ">
  102. <col ref="ordtm" format="hh:nn"/>
  103. <col ref="pid"/>
  104. <col ref="hngnm"/>
  105. </datagrid>
  106. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:121px; top:5px; width:117px; height:19px; ">
  107. <choices>
  108. <itemset nodeset="/root/init/cmb_info/orddridlist">
  109. <label ref="orddrnm"/>
  110. <value ref="orddrid"/>
  111. </itemset>
  112. </choices>
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. model.setValue("/root/send/orddd",model.getValue("/root/hidden/popdata/orddd"));
  116. model.setValue("/root/send/orddeptcd",model.getValue("/root/hidden/popdata/orddeptcd"));
  117. submit("TRAEA01130");
  118. ]]>
  119. </script>
  120. </select1>
  121. </group>
  122. </xhtml:body>
  123. </xhtml:html>