SPLPT00500_조직은행보관등록조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPLPT00500_조직은행보관등록조회.xrw
  4. * 설 명 : 조직은행보관등록 병리번호 조회
  5. * 설 계 자 : (주)평화IS - 한음미
  6. * 작 성 자 : (주)평화IS - 한음미
  7. * 작 성 일 : 2008.05.21
  8. * 수정이력 :
  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. <acptspc>
  20. <acptspclist>
  21. <choi/>
  22. <instcd/>
  23. <ptno/>
  24. <dispptno/>
  25. <pid/>
  26. <patnm/>
  27. <spccd/>
  28. <spcnm/>
  29. <keepflagcd/>
  30. <acptdd/>
  31. </acptspclist>
  32. </acptspc>
  33. </main>
  34. <send/>
  35. <init>
  36. <ptnocode/>
  37. <fromyear/>
  38. <fromptno/>
  39. <toyear/>
  40. <toptno/>
  41. <keepflagcd/>
  42. <pid/>
  43. <ptnocd>
  44. <ptnocdlist>
  45. <instcd/>
  46. <ptnocd/>
  47. <ptnonm/>
  48. </ptnocdlist>
  49. </ptnocd>
  50. <sysdt>
  51. <sysdtinfo>
  52. <sysdd/>
  53. <systm/>
  54. </sysdtinfo>
  55. </sysdt>
  56. <hospenv>
  57. <hospenvinfo>
  58. <instcd/>
  59. <lendrtnterm/>
  60. <recvqualmthdcd/>
  61. <plgydeptcd/>
  62. <plgyteamcd/>
  63. <doctjobgradcd/>
  64. <teamjobgradcd/>
  65. </hospenvinfo>
  66. </hospenv>
  67. </init>
  68. <hidden>
  69. <acptfromdd/>
  70. <acpttodd/>
  71. </hidden>
  72. </root>
  73. </instance>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/datehelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  78. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. fExeInitialize();
  82. ]]>
  83. </script>
  84. <submission id="TRLPR01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tissptno/tissptnolist"/>
  85. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  86. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  87. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  88. <submission id="TRLPT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/acptspc/acptspclist"/>
  89. </model>
  90. <script type="javascript">
  91. <![CDATA[
  92. /* @group : 병리번호 목록 화면
  93. * @ver : 2008.06.17 (CMCDEV-0001)
  94. * @by : 한음미(평화IS)
  95. * @-----------------------------------
  96. * @type : function
  97. * @access : public
  98. * @desc : 화면초기화 함수
  99. */
  100. function fExeInitialize() {
  101. model.removeNodeset("/root/main/tissptno/tissptnolist");
  102. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  103. submit("TRLPZ00102",false); // 현재 시스템 날짜 조회
  104. submit("TRLPZ00109",false); // 병리번호 조회
  105. submit("TRLPZ00101",false); // 병원 정보 조회
  106. //------------------------------------------------------------
  107. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  108. //------------
  109. // 초기값 설정
  110. model.makeValue("/root/hidden/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(fromdd)
  111. model.makeValue("/root/hidden/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(todd)
  112. model.makeValue("/root/init/ptnocode", "");
  113. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2)); // 병리번호 년도(fromyear)
  114. model.makeValue("/root/init/toyear", sCurDate.substr(2,2)); // 병리번호 년도(toyear)
  115. model.makeValue("/root/init/fromptno", ""); // 병리번호(시작)
  116. model.makeValue("/root/init/toptno", ""); // 병리번호(끝)
  117. model.refresh();
  118. }
  119. /* @group : 병리번호 목록 화면
  120. * @ver : 2008.06.17 (CMCDEV-0001)
  121. * @by : 한음미(평화IS)
  122. * @-----------------------------------
  123. * @type : function
  124. * @access : public
  125. * @desc : 병리번호 목록 조회 function
  126. */
  127. function fGetPtNoList(){
  128. //----------------------------------------------------------------
  129. var sTemp = "";
  130. var sFromDD = model.getValue("/root/hidden/acptfromdd");
  131. var sToDD = model.getValue("/root/hidden/acpttodd");
  132. //------------------------------------------------
  133. if (model.getValue("/root/init/ptnocode") != "") {
  134. //------------------------------------------------
  135. if (model.getValue("/root/init/fromyear") == "") {
  136. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2)); // 병리번호 시작 년도의 2자리
  137. } else {
  138. sTemp = model.getValue("/root/init/fromyear");
  139. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  140. }
  141. //----------------------------------------------
  142. if (model.getValue("/root/init/toyear") == "") {
  143. model.makeValue("/root/init/toyear", sToDD.substr(2,2)); // 병리번호 종료 년도의 2자리
  144. } else {
  145. sTemp = model.getValue("/root/init/toyear");
  146. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  147. }
  148. //------------------------------------------------
  149. if (model.getValue("/root/init/fromptno") == "") {
  150. model.makeValue("/root/init/fromptno", "000000"); // 시작 병리번호가 ''일때
  151. } else {
  152. sTemp = model.getValue("/root/init/fromptno");
  153. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  154. }
  155. //----------------------------------------------
  156. if (model.getValue("/root/init/toptno") == "") {
  157. model.makeValue("/root/init/toptno", "999999"); // 종료 병리번호가 ''일때
  158. } else {
  159. sTemp = model.getValue("/root/init/toptno");
  160. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  161. }
  162. }
  163. //--------------------------------------------
  164. sTemp = model.getValue("/root/init/ptnocode");
  165. //--------------------------------
  166. model.removeNodeset("/root/send");
  167. //-----------------------------------------------------------------
  168. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  169. model.makeValue("/root/send/acptfromdd", model.getValue("/root/hidden/acptfromdd")); // 접수시작일자
  170. model.makeValue("/root/send/acpttodd", model.getValue("/root/hidden/acpttodd")); // 접수종료일자
  171. model.makeValue("/root/send/ptnocode", sTemp.replace("-", "")); // 병리 코드가 "" 이면 "-"
  172. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  173. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  174. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  175. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  176. //model.makeValue("/root/send/ptnocase", model.getValue("/root/init/ptnocase"));
  177. model.makeValue("/root/send/keepflagcd", model.getValue("/root/init/keepflagcd")); // 보관/미보관
  178. model.makeValue("/root/send/pid", model.getValue("/root/init/pid")); // 등록번호
  179. submit("TRLPT00103"); // 병리번호 목록 조회
  180. }
  181. ]]>
  182. </script>
  183. </xhtml:head>
  184. <xhtml:body pagewidth="875" pageheight="455" guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  185. <group id="grp_tle" style="left:0px; top:0px; width:855; height:13px; ">
  186. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:14px; ">병리번호 목록</caption>
  187. </group>
  188. <group id="grp_biz" scroll="auto" style="left:0px; top:85px; width:855; height:335px; ">
  189. <datagrid id="grd_grosskeeplist" nodeset="/root/main/acptspc/acptspclist" autoresize="true" caption="선택^기관코드^검체코드^검체명^관련병리번호^접수일자^환자번호^환자명^병리번호^보관 여부" colsep="^" colwidth="0, 0, 0, 0, 0, 200, 150, 150, 150, 100" dataheight="23" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="11" style="left:5; top:25px; width:850; height:305px; ">
  190. <col ref="choi" type="checkbox"/>
  191. <col ref="instcd"/>
  192. <col ref="spccd"/>
  193. <col ref="spcnm"/>
  194. <col ref="dispptno"/>
  195. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  196. <col ref="pid" style="text-align:center; "/>
  197. <col ref="patnm" style="text-align:center; "/>
  198. <col ref="ptno" style="text-align:center; "/>
  199. <col disabled="true" ref="keepflagcd" type="combo" style="text-align:center; ">
  200. <choices>
  201. <item>
  202. <label>미보관</label>
  203. <value>0</value>
  204. </item>
  205. <item>
  206. <label>보관</label>
  207. <value>1</value>
  208. </item>
  209. </choices>
  210. </col>
  211. </datagrid>
  212. <line id="line12" class="line_1" style="x1:5; y1:20px; x2:855; y2:20px; "/>
  213. <caption id="caption9" class="tit_2" style="left:13; top:5px; width:139px; height:13px; ">병리번호 목록</caption>
  214. </group>
  215. <group id="grp_sea" style="left:0px; top:20px; width:855px; height:60px; vertical-align:top; ">
  216. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:5; top:0px; width:850; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  217. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">접수일자 :</caption>
  218. <input id="ipt_acptfromdd" ref="/root/hidden/acptfromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:108px; top:8px; width:100px; height:19px; ">
  219. <script type="javascript" ev:event="xforms-value-changed">
  220. <![CDATA[
  221. lpzfExeDateChange(ipt_fromyear, "/root/hidden/acptfromdd", "/root/init/fromyear");
  222. ]]>
  223. </script>
  224. </input>
  225. <caption id="caption3" class="search_name" style="left:15px; top:35px; width:90px; height:17px; ">병리번호 :</caption>
  226. <button id="button1" class="btn1_letter2" navindex="10" style="left:785px; top:20px; width:56px; height:22px; ">
  227. <caption>조회</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. fGetPtNoList();
  231. ]]>
  232. </script>
  233. </button>
  234. <line id="line13" class="line_4" style="x1:770px; y1:10px; x2:770px; y2:53px; "/>
  235. <input id="ipt_acpttodd" ref="/root/hidden/acpttodd" class="input_s_essential" navindex="2" inputtype="date" style="left:229px; top:8px; width:100px; height:19px; ">
  236. <script type="javascript" ev:event="xforms-value-changed">
  237. <![CDATA[
  238. lpzfExeDateChange(ipt_toyear, "/root/hidden/acpttodd", "/root/init/toyear");
  239. ]]>
  240. </script>
  241. </input>
  242. <caption id="caption34" class="search_no_b" style="left:213px; top:10px; width:12px; height:17px; ">~</caption>
  243. <caption id="caption4" class="search_name" style="left:489px; top:34px; width:91px; height:17px; ">등록번호 :</caption>
  244. <caption id="caption5" class="search_name" style="left:489px; top:9px; width:116px; height:17px; ">보관/미보관 :</caption>
  245. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="4" appearance="minimal" editmode="search" style="left:108px; top:33px; width:173px; height:19px; ">
  246. <choices>
  247. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  248. <label ref="ptnonm"/>
  249. <value ref="ptnocd"/>
  250. </itemset>
  251. </choices>
  252. </select1>
  253. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="6" maxlength="6" style="left:314px; top:33px; width:50px; height:19px; "/>
  254. <caption id="caption1" class="search_no_b" style="left:367px; top:33px; width:12px; height:17px; ">~</caption>
  255. <input id="input2" ref="/root/init/toptno" class="text_center" navindex="8" maxlength="6" style="left:412px; top:33px; width:50px; height:19px; "/>
  256. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="5" maxlength="2" style="left:284px; top:33px; width:27px; height:19px; "/>
  257. <select1 id="cmb_grosdrid" ref="/root/init/keepflagcd" class="combo_search" navindex="3" appearance="minimal" style="left:607px; top:8px; width:148px; height:19px; ">
  258. <choices>
  259. <item>
  260. <label>미보관</label>
  261. <value>0</value>
  262. </item>
  263. <item>
  264. <label>보관</label>
  265. <value>1</value>
  266. </item>
  267. </choices>
  268. </select1>
  269. <input id="ipt_toyear" ref="/root/init/toyear" class="text_center" navindex="7" maxlength="2" style="left:382px; top:33px; width:27px; height:19px; "/>
  270. <input id="input3" ref="/root/init/pid" class="input_search" style="left:585px; top:35px; width:170px; height:20px; "/>
  271. </group>
  272. <group id="group1" style="left:5; top:420px; width:850; height:27px; ">
  273. <button id="btn_close" class="btn4_letter2" style="left:790px; top:2px; width:56px; height:22px; ">
  274. <caption>닫기</caption>
  275. <script type="javascript" ev:event="onclick">
  276. <![CDATA[
  277. window.close();
  278. ]]>
  279. </script>
  280. </button>
  281. </group>
  282. </xhtml:body>
  283. </xhtml:html>