SMMNN01800_오늘의 체중 및 수유량.xrw 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <cond>
  11. <srchdd/>
  12. <srchbasedd/>
  13. <wardcd/>
  14. <wardnm/>
  15. </cond>
  16. <nbabyinfo>
  17. <nbabylsit>
  18. <patnm/>
  19. <weightbefore/>
  20. <weightunitcd1/>
  21. <weighttoday/>
  22. <weightunitcd2/>
  23. <pid/>
  24. </nbabylsit>
  25. </nbabyinfo>
  26. </main>
  27. <init>
  28. <unitinfo>
  29. <unitlist>
  30. <itemnm>kg</itemnm>
  31. <itemcd>1</itemcd>
  32. </unitlist>
  33. <unitlist>
  34. <itemnm>g</itemnm>
  35. <itemcd>2</itemcd>
  36. </unitlist>
  37. </unitinfo>
  38. <iteminfo>
  39. <itemlist>
  40. <cdid/>
  41. <cdnm/>
  42. </itemlist>
  43. </iteminfo>
  44. </init>
  45. <send/>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. //setHelp(); // 온라인 도움말 화면이 있는 경우 ready 에서 실행.
  51. finit();
  52. ]]>
  53. </script>
  54. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript">
  58. <![CDATA[
  59. function finit(){
  60. submit("TRMNN01802");
  61. model.removeNodeset("/root/main/nbabyinfo/nbabylsit");
  62. model.setValue("/root/main/cond/srchbasedd", getCurrentDate());
  63. model.setValue("/root/main/cond/srchdd", getDateCalc(getCurrentDate(), 1));
  64. //model.setValue("/root/main/cond/srchflag", "020" );
  65. fSrchData();
  66. }
  67. function fSrchData(){
  68. model.removeNodeset("/root/main/nbabyinfo");
  69. model.copyNode("/root/send", "/root/main/cond");
  70. var ddcol1 = model.getValue("/root/main/cond/srchdd");
  71. var ddcol2 = model.getValue("/root/main/cond/srchbasedd");
  72. var sHeaderInfo = "신생아 이름^체중^체중^체중^체중|신생아 이름^";
  73. sHeaderInfo += ddcol1.substr(0,4) + "-" + ddcol1.substr(4,2) +"-"+ ddcol1.substr(6, 2)+"^"
  74. + ddcol1.substr(0,4) + "-" + ddcol1.substr(4,2) +"-"+ ddcol1.substr(6, 2)+"^"
  75. + ddcol2.substr(0,4) + "-" + ddcol2.substr(4,2) +"-"+ ddcol2.substr(6, 2)+"^"
  76. + ddcol2.substr(0,4) + "-" + ddcol2.substr(4,2) +"-"+ ddcol2.substr(6, 2) ;
  77. grd_nbabylist.caption = sHeaderInfo;
  78. submit("TRMNN01801");
  79. for(var i = 0 ; i < grd_nbabylist.rows; i++){
  80. grd_nbabylist.isReadOnly(i, grd_nbabylist.colRef("weightunitcd1"), i, grd_nbabylist.colRef("weightunitcd2")) = true;
  81. }
  82. }
  83. ]]>
  84. </script>
  85. <submission id="TRMNN01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/nbabylsit"/>
  86. <submission id="TRMNN01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/iteminfo"/>
  87. </model>
  88. </xhtml:head>
  89. <xhtml:body pagewidth="400" pageheight="600" guideline="1,5;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  90. <group id="group4" scroll="auto" style="left:0px; top:0px; width:381px; height:575px; ">
  91. <group id="group5" style="left:0px; top:0px; width:381px; height:65px; vertical-align:top; ">
  92. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:381px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  93. <caption id="caption36" class="search_name" style="left:10px; top:40px; width:89px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">업무일자 :</caption>
  94. <button id="button5" class="btn1_letter2" style="left:315px; top:35px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  95. <caption>조회</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. fSrchData();
  99. ]]>
  100. </script>
  101. </button>
  102. <input id="ipt_orddd" ref="/root/main/cond/srchbasedd" class="input_search" inputtype="date" style="left:101px; top:38px; width:90px; height:19px; ">
  103. <script type="javascript" ev:event="xforms-value-changed">
  104. <![CDATA[
  105. model.setValue("/root/main/cond/srchdd", getDateCalc( model.getValue("/root/main/cond/srchbasedd"), 1));
  106. ]]>
  107. </script>
  108. </input>
  109. <button id="button1" class="btn1_letter2" style="left:315px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  110. <caption>출력</caption>
  111. <script type="javascript" ev:event="DOMActivate">
  112. <![CDATA[
  113. model.copyNode("/root/send","/root/main");
  114. exeReportPreview("RPMNN01801","XMLSTR","");
  115. ]]>
  116. </script>
  117. </button>
  118. <caption id="caption1" class="search_name" style="left:10px; top:10px; width:90px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">병 동 :</caption>
  119. <select1 id="cmb_wardlist" ref="/root/main/cond/wardcd" appearance="minimal" style="left:100px; top:9px; width:170px; height:19px; ">
  120. <choices>
  121. <itemset nodeset="/root/init/iteminfo/itemlist">
  122. <label ref="cdnm"/>
  123. <value ref="cdid"/>
  124. </itemset>
  125. </choices>
  126. <script type="javascript" ev:event="xforms-value-changed">
  127. <![CDATA[
  128. model.setValue("/root/main/cond/wardnm", cmb_wardlist.label);
  129. fSrchData();
  130. ]]>
  131. </script>
  132. </select1>
  133. </group>
  134. <line id="line5" class="line_1" style="x1:0px; y1:90px; x2:381px; y2:90px; "/>
  135. <caption id="caption42" class="tit_2" style="left:0px; top:75px; width:149px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">오늘의 체중</caption>
  136. <datagrid id="grd_nbabylist" nodeset="/root/main/nbabyinfo/nbabylsit" backcoloralternate="transparent" caption="신생아 이름^체중^체중^체중^체중|신생아 이름^2008-01-01^2008-01-01^2008-01-02^2008-01-02" colsep="^" colwidth="120, 60, 60, 60, 60" mergecellsfixedrows="bycolrec" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:94px; width:380px; height:481px; ">
  137. <col ref="patnm"/>
  138. <col ref="weightbefore" style="text-align:right; border-right-width:0; "/>
  139. <col ref="weightunitcd1" type="combo" style="text-align:left; border-left-width:0; ">
  140. <choices>
  141. <itemset nodeset="/root/init/unitinfo/unitlist">
  142. <label ref="itemnm"/>
  143. <value ref="itemcd"/>
  144. </itemset>
  145. </choices>
  146. </col>
  147. <col ref="weighttoday" style="text-align:right; border-right-width:0; "/>
  148. <col ref="weightunitcd2" type="combo" style="text-align:left; border-left-width:0; ">
  149. <choices>
  150. <itemset nodeset="/root/init/unitinfo/unitlist">
  151. <label ref="itemnm"/>
  152. <value ref="itemcd"/>
  153. </itemset>
  154. </choices>
  155. </col>
  156. </datagrid>
  157. </group>
  158. </xhtml:body>
  159. </xhtml:html>