SMAVT02100_폐기대장.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAVT02100.xrw
  4. * 설 명 : 조직은행 폐기대장 LIST 조회화면
  5. * 설 계 자 : 최예원
  6. * 작 성 자 : 최예원
  7. * 작 성 일 : 2010.12.15
  8. * 수정이력 : 2010.12.15 최예원 신규
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <xhtml:title>조직은행 폐기대장</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <abnlist>
  20. <item>
  21. <graftno/>
  22. <partseq/>
  23. <batchno/>
  24. <deldd/>
  25. <lastupdtrid/>
  26. <usernm/>
  27. <delstepnm/>
  28. <delsaunm/>
  29. <pid/>
  30. <hngnm/>
  31. <diagengnm/>
  32. <opengnm/>
  33. <aborh/>
  34. <delsaud/>
  35. <sel/>
  36. <radialynd/>
  37. <partcode/>
  38. <medadmin/>
  39. <pickdd/>
  40. <sex/>
  41. </item>
  42. </abnlist>
  43. <cntlst>
  44. <item/>
  45. </cntlst>
  46. </main>
  47. <send>
  48. <srchfromdd/>
  49. <srchtodd/>
  50. <check/>
  51. <srgraftno/>
  52. </send>
  53. <init>
  54. <combobscdlst/>
  55. </init>
  56. <hidden/>
  57. <temp/>
  58. <rexprnt>
  59. <abnlist>
  60. <srchfromdd/>
  61. <srchtodd/>
  62. </abnlist>
  63. </rexprnt>
  64. <rexreptinfo>
  65. <abninfo/>
  66. </rexreptinfo>
  67. </root>
  68. </instance>
  69. <script type="javascript" ev:event="xforms-ready">
  70. <![CDATA[
  71. fGetScreenInit();
  72. ]]>
  73. </script>
  74. <submission id="TRAVB00001"/>
  75. <submission id="TRAVB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
  76. <submission id="TRAVT02100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/abnlist"/>
  77. <submission id="TRAVT02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/cntlst/item"/>
  78. </model>
  79. <script type="javascript">
  80. <![CDATA[
  81. // 화면 초기화
  82. function fGetScreenInit(){
  83. model.setValue("/root/send/srchfromdd", getCurrentDate());
  84. model.setValue("/root/send/srchtodd", getCurrentDate());
  85. model.removeNodeset("/root/main/abnlist/item");
  86. tbGetBscdList( new Array( "R01"),
  87. new Array("/root/init/combobscdlst") ); // S01 폐기단계
  88. bool1.value = "false";
  89. model.removeNodeset("/root/init/comboptcdlst/item");
  90. submit("TRAVB00002");
  91. model.refresh();
  92. }
  93. // 폐기대장 조회
  94. function fGetAbnList(){
  95. if( submit("TRAVT02100") ) {
  96. for(var i = 1; i < dtg_abnlist.rows ; i++ ){
  97. var seq = model.getValue("/root/main/abnlist/item["+ i +"]/partseq");
  98. var no = model.getValue("/root/main/abnlist/item["+ i +"]/batchno");
  99. if( seq != "" && seq < 10 ) {
  100. model.setValue("/root/main/abnlist/item["+ i +"]/partseq", "0" + seq );
  101. }
  102. if( no != "" && no < 10 ){
  103. model.setValue("/root/main/abnlist/item["+ i +"]/batchno", "00" + no );
  104. }else if( no != "" && no > 9 && no < 100 ) {
  105. model.setValue("/root/main/abnlist/item["+ i +"]/batchno", "0" + no );
  106. }
  107. }
  108. }
  109. model.refresh();
  110. }
  111. ]]>
  112. </script>
  113. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  116. <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
  117. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  118. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  119. </xhtml:head>
  120. <xhtml:body guideline="1,1194;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  121. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  122. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">조직은행 폐기대장</caption>
  123. </group>
  124. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  125. <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:210px; height:13px; ">조직은행 폐기대장</caption>
  126. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
  127. <datagrid id="dtg_abnlist" nodeset="/root/main/abnlist/item" scroll="auto" caption="^GraftNo^Seq^No^폐기일시^폐기자^폐기사유^환자번호^환자명^ABO^수술명^진단명^폐기단계" colsep="^" colwidth="30, 80, 40, 40, 80, 80, 172, 80, 90, 44, 140, 140, 140" dataheight="23" defaultrows="3" ellipsis="true" explorerbar="sortmove" focuscolor="#b9e5fb" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:76px; width:1194px; height:664px; text-align:center; ">
  128. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  129. <col ref="graftno"/>
  130. <col ref="partseq" type="output"/>
  131. <col ref="batchno" type="output"/>
  132. <col ref="deldd" format="yyyy-mm-dd"/>
  133. <col ref="usernm"/>
  134. <col disabled="true" ref="delsaud" type="combo" style="text-align:left; margin-left:10; ">
  135. <choices>
  136. <itemset nodeset="/root/init/combobscdlst/R01">
  137. <label ref="cdnm"/>
  138. <value ref="cdid"/>
  139. </itemset>
  140. </choices>
  141. </col>
  142. <col ref="pid"/>
  143. <col ref="hngnm"/>
  144. <col ref="aborh" style="text-align:left; "/>
  145. <col ref="opengnm" style="text-align:left; margin-left:10; "/>
  146. <col ref="diagengnm" style="text-align:left; margin-left:10; "/>
  147. <col disabled="true" ref="delstepnm" style="text-align:left; margin-left:10; "/>
  148. <col disabled="true" ref="partcode" type="combo" visibility="hidden" style="text-align:left; ">
  149. <choices>
  150. <itemset nodeset="/root/init/comboptcdlst/item">
  151. <label ref="partname"/>
  152. <value ref="partcode"/>
  153. </itemset>
  154. </choices>
  155. </col>
  156. <col ref="radialynd" visibility="hidden"/>
  157. <col ref="pickdd" visibility="hidden"/>
  158. <col ref="medadmin" visibility="hidden"/>
  159. <col ref="sex" visibility="hidden"/>
  160. <script type="javascript" ev:event="onaftersort">
  161. <![CDATA[
  162. dtg_abnlist.gridToInstance();
  163. ]]>
  164. </script>
  165. </datagrid>
  166. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  167. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  168. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">폐기일자 :</caption>
  169. <caption id="caption5" class="search_no_b" style="left:207px; top:10px; width:12px; height:17px; ">~</caption>
  170. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  171. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:104px; top:9px; width:100px; height:19px; "/>
  172. <input id="ipt_todd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:222px; top:10px; width:100px; height:19px; "/>
  173. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  174. <caption>조회</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. if( model.getValue("/root/send/srchfromdd") == ""){
  178. messageBox("폐기일자", "E013", "입력 후 다시 조회하세요.");
  179. return;
  180. }
  181. if( model.getValue("/root/send/srchtodd") == "" ){
  182. messageBox("폐기일자", "E013", "입력 후 다시 조회하세요.");
  183. return;
  184. }
  185. fGetAbnList();
  186. ]]>
  187. </script>
  188. </button>
  189. </group>
  190. <button id="btn_excsave" class="btn2_letter4" style="left:1129px; top:50px; width:64px; height:19px; ">
  191. <caption>엑셀저장</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
  195. if (filename != "")
  196. {
  197. dtg_abnlist.saveExcel(filename);
  198. }
  199. ]]>
  200. </script>
  201. </button>
  202. <bool id="bool1" ref="/root/send/check" style="left:28px; top:81px; width:15px; height:15px; ">
  203. <script type="javascript" ev:event="xforms-value-changed">
  204. <![CDATA[
  205. if( bool1.value == "true" ){
  206. if( dtg_abnlist.rows > 1 ){
  207. for(var i = 1 ; i < dtg_abnlist.rows; i++ ){
  208. model.setValue("/root/main/abnlist/item["+ i + "]/sel", "Y" );
  209. }
  210. }
  211. }
  212. if( bool1.value == "false" ){
  213. if( dtg_abnlist.rows > 1 ){
  214. for(var i = 1 ; i < dtg_abnlist.rows; i++ ){
  215. model.setValue("/root/main/abnlist/item["+ i + "]/sel", "N" );
  216. }
  217. }
  218. }
  219. model.refresh();
  220. ]]>
  221. </script>
  222. </bool>
  223. </group>
  224. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  225. <button id="btn_prt" class="btn6_letter6" style="left:0px; top:5px; width:56px; height:22px; ">
  226. <caption>폐기장부출력</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. model.setValue("/root/rexprnt/abnlist/srchfromdd", ipt_fromdd.label );
  230. model.setValue("/root/rexprnt/abnlist/srchtodd", ipt_todd.label );
  231. for(var i = 1; i < dtg_abnlist.rows ; i++ ){
  232. model.makeNode("/root/rexprnt/abnlist/item["+ i +"]");
  233. model.copyNode("/root/rexprnt/abnlist/item["+ i +"]", "/root/main/abnlist/item["+ i +"]");
  234. }
  235. exeReportPreview("RPAVT00110", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  236. ]]>
  237. </script>
  238. </button>
  239. <button id="button2" class="btn6_letter10" style="left:105px; top:5px; width:156px; height:22px; ">
  240. <caption>조직폐기기록지 출력</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. for(var i = 1; i < dtg_abnlist.rows ; i++ ){
  244. if( model.getValue("/root/main/abnlist/item[" + i + "]/sel") == "Y" ) {
  245. var graftno = model.getValue("/root/main/abnlist/item["+ i +"]/graftno") ;
  246. graftno = graftno + model.getValue("/root/main/abnlist/item["+ i +"]/partseq") ;
  247. graftno = graftno + model.getValue("/root/main/abnlist/item["+ i +"]/batchno") ;
  248. model.setValue("/root/send/srgraftno", model.getValue("/root/main/abnlist/item["+ i +"]/graftno") );
  249. if( submit("TRAVT02102") ){
  250. if( parseInt(model.getValue("/root/main/cntlst/cntinfo/item/graftcnt")) > 0 ){
  251. model.makeValue("/root/rexreptinfo/abninfo/stated" , "유" );
  252. }else{
  253. model.makeValue("/root/rexreptinfo/abninfo/stated" , "무" );
  254. }
  255. model.removeNodeset("/root/main/cntlst/cntinfo/item");
  256. }
  257. model.makeValue("/root/rexreptinfo/abninfo/pid" , model.getValue("/root/main/abnlist/item["+ i +"]/pid"));
  258. model.makeValue("/root/rexreptinfo/abninfo/hngnm" , model.getValue("/root/main/abnlist/item["+ i +"]/hngnm"));
  259. model.makeValue("/root/rexreptinfo/abninfo/diaghngnm" , model.getValue("/root/main/abnlist/item["+ i +"]/diagengnm"));
  260. model.makeValue("/root/rexreptinfo/abninfo/ophngnm" , model.getValue("/root/main/abnlist/item["+ i +"]/opengnm"));
  261. model.makeValue("/root/rexreptinfo/abninfo/aborh" , model.getValue("/root/main/abnlist/item["+ i +"]/aborh"));
  262. model.makeValue("/root/rexreptinfo/abninfo/radialynd" , model.getValue("/root/main/abnlist/item["+ i +"]/radialynd"));
  263. model.makeValue("/root/rexreptinfo/abninfo/partcdnm" , dtg_abnlist.labelMatrix(i, dtg_abnlist.colRef("partcode")));
  264. model.makeValue("/root/rexreptinfo/abninfo/sex" , model.getValue("/root/main/abnlist/item["+ i +"]/sex"));
  265. var pgraftno = model.getValue("/root/main/abnlist/item["+ i +"]/graftno") ;
  266. pgraftno = pgraftno + model.getValue("/root/main/abnlist/item["+ i +"]/partseq");
  267. pgraftno = pgraftno + model.getValue("/root/main/abnlist/item["+ i +"]/batchno");
  268. model.makeValue("/root/rexreptinfo/abninfo/graftno" , pgraftno );
  269. model.makeValue("/root/rexreptinfo/abninfo/delsaud" , dtg_abnlist.labelMatrix(i, dtg_abnlist.colRef("delsaud")) );
  270. model.makeValue("/root/rexreptinfo/abninfo/deldd" , model.getValue("/root/main/abnlist/item["+ i +"]/deldd"));
  271. model.makeValue("/root/rexreptinfo/abninfo/pickdd" , model.getValue("/root/main/abnlist/item["+ i +"]/pickdd"));
  272. model.makeValue("/root/rexreptinfo/abninfo/usernm" , model.getValue("/root/main/abnlist/item["+ i +"]/usernm"));
  273. model.makeValue("/root/rexreptinfo/abninfo/medadmin" , model.getValue("/root/main/abnlist/item["+ i +"]/medadmin"));
  274. exeReportPreview("RPAVT00106", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  275. model.removeNodeset("/root/rexreptinfo/abninfo");
  276. }
  277. }
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </button>
  282. </group>
  283. </xhtml:body>
  284. </xhtml:html>