SMLBF00200_혈액출고유형관리.xrw 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLBF00200_혈액출고유형관리.xrw
  4. * 설 명 : 혈액출고유형관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2010.03.10
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <![CDATA[]]>
  15. <xhtml:title/>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root>
  19. <main>
  20. <delivegbnlist>
  21. <basecd2/>
  22. <basecdidnm/>
  23. <basecdnm/>
  24. <basecddesc/>
  25. <basecddispseq/>
  26. <basecd/>
  27. </delivegbnlist>
  28. </main>
  29. <send>
  30. <codeflag/>
  31. </send>
  32. <init>
  33. </init>
  34. <hidden>
  35. <ref>
  36. <delivegbn>02</delivegbn>
  37. </ref>
  38. </hidden>
  39. </root>
  40. </instance>
  41. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  42. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. // 혈액출고유형 조회
  48. fGetDelivegbnList();
  49. ]]>
  50. </script>
  51. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
  52. <submission id="TRLBF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/delivegbnlist"/>
  53. <submission id="TXLBF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  54. </model>
  55. <script type="javascript">
  56. <![CDATA[
  57. // 혈액출고유형 조회
  58. function fGetDelivegbnList(){
  59. model.makeValue("/root/send/delivegbn", model.getValue("/root/hidden/ref/delivegbn"));
  60. submit("TRLBF00201");
  61. }
  62. // 행추가
  63. function fsetgrdadd(){
  64. grd_delivelist.addRow(grd_delivelist.row);
  65. if(grd_delivelist.rows>1){
  66. var cd = model.getValue("/root/main/delivegbnlist["+(grd_delivelist.row-1)+"]/basecd2");
  67. var cd2 = parseInt(cd)+1;
  68. var seq = parseInt(model.getValue("/root/main/delivegbnlist["+(grd_delivelist.row-1)+"]/basecddispseq"))+1 ;
  69. model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecd2", cd2.toString().getLeftPad(2,"0") );
  70. model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecdidnm", "혈액출고유형");
  71. model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecdnm", model.getValue("/root/main/delivegbnlist["+(grd_delivelist.row-1)+"]/basecdnm"));
  72. model.setValue("/root/main/delivegbnlist["+grd_delivelist.row+"]/basecddispseq", seq);
  73. }
  74. }
  75. //행삭제
  76. function fsetgrddel(){
  77. grd_delivelist.rowStatus(grd_delivelist.row) = 4;
  78. }
  79. function fExeDeliveGbn(){
  80. model.makeValue("/root/send/senddata", grd_delivelist.getUpdateData());
  81. model.makeValue("/root/send/gbn", model.getValue("/root/hidden/ref/delivegbn"));
  82. submit("TXLBF00201");
  83. fGetDelivegbnList();
  84. }
  85. ]]>
  86. </script>
  87. </xhtml:head>
  88. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  89. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  90. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  91. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
  92. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  93. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  94. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  95. <caption>조회</caption>
  96. <script type="javascript" ev:event="DOMActivate">
  97. <![CDATA[
  98. //출고유형 조회
  99. fGetDelivegbnList();
  100. ]]>
  101. </script>
  102. </button>
  103. <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">출고유형 :</caption>
  104. <select1 id="cmbflag" ref="/root/hidden/ref/delivegbn" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; font-weight:normal; vertical-align:middle; ">
  105. <choices>
  106. <item>
  107. <label>자체폐기</label>
  108. <value>01</value>
  109. </item>
  110. <item>
  111. <label>교환출고</label>
  112. <value>02</value>
  113. </item>
  114. <item>
  115. <label>사혈</label>
  116. <value>03</value>
  117. </item>
  118. </choices>
  119. <script type="javascript" ev:event="xforms-select">
  120. <![CDATA[
  121. fGetDelivegbnList();
  122. ]]>
  123. </script>
  124. </select1>
  125. </group>
  126. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">혈액출고유형리스트</caption>
  127. <button id="btn_add" class="btn2_letter3" style="left:1140px; top:49px; width:53px; height:19px; ">
  128. <caption>행삭제</caption>
  129. <script type="javascript" ev:event="onclick">
  130. <![CDATA[
  131. fsetgrddel();
  132. ]]>
  133. </script>
  134. </button>
  135. <button id="button1" class="btn2_letter3" style="left:1085px; top:49px; width:53px; height:19px; ">
  136. <caption>행추가</caption>
  137. <script type="javascript" ev:event="onclick">
  138. <![CDATA[
  139. fsetgrdadd();
  140. ]]>
  141. </script>
  142. </button>
  143. <datagrid id="grd_delivelist" nodeset="/root/main/delivegbnlist" caption="출고유형코드^혈액출고유형^출고구분^출고사유 (영문120자까지)^순번^LB005" colwidth="100, 130, 130, 200, 50, 50" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:1193px; height:646px; ">
  144. <col ref="basecd2" type="input"/>
  145. <col ref="basecdidnm" type="input"/>
  146. <col ref="basecdnm" type="input"/>
  147. <col ref="basecddesc" type="input"/>
  148. <col ref="basecddispseq" type="input"/>
  149. <col ref="basecd" visibility="hidden"/>
  150. <script type="javascript" ev:event="onaftersort">
  151. <![CDATA[
  152. grd_delivelist.gridToInstance();
  153. ]]>
  154. </script>
  155. </datagrid>
  156. </group>
  157. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  158. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">혈액출고유형관리</caption>
  159. </group>
  160. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  161. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  162. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  163. <caption>초기화</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. model.reset();
  167. ]]>
  168. </script>
  169. </button>
  170. <button id="btn_cnfm" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  171. <caption>저장</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. fExeDeliveGbn();
  175. ]]>
  176. </script>
  177. </button>
  178. </group>
  179. </xhtml:body>
  180. </xhtml:html>