SMLPT10300_조직은행보관조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 조직은행보관조회.xrw
  4. * 설 명 : 조직은행보관조회
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2010.03.11
  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>
  18. <main>
  19. <banklist>
  20. <tankno/>
  21. <rackno/>
  22. <boxno/>
  23. <xseq/>
  24. <yseq/>
  25. <collectdt/>
  26. <rgstno/>
  27. <ptno/>
  28. <pid/>
  29. <patnm/>
  30. <age/>
  31. <sex/>
  32. <spcnm/>
  33. <diagnosis/>
  34. <cmt/>
  35. <rgstdd/>
  36. <rgsttm/>
  37. </banklist>
  38. <tank>
  39. <tankno/>
  40. </tank>
  41. <rack>
  42. <rackno/>
  43. </rack>
  44. <box>
  45. <boxno/>
  46. </box>
  47. </main>
  48. <send>
  49. <data/>
  50. <data1/>
  51. <diag/>
  52. <codeflag/>
  53. <data2/>
  54. </send>
  55. <init>
  56. </init>
  57. <hidden>
  58. <refparam>
  59. <text/>
  60. <refgbn>1</refgbn>
  61. <fromdd/>
  62. <todd/>
  63. <ddgbn>1</ddgbn>
  64. <tanktype2/>
  65. </refparam>
  66. <ref>
  67. <tankno/>
  68. <rackno/>
  69. <boxno/>
  70. <tanktype>V</tanktype>
  71. </ref>
  72. <popupmenu>
  73. <grid>
  74. <item/>
  75. </grid>
  76. </popupmenu>
  77. </hidden>
  78. </root>
  79. </instance>
  80. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <submission id="TRLPT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/banklist"/>
  85. <submission id="TRLPT10302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/banklist"/>
  86. <submission id="TRLPT10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tank"/>
  87. <submission id="TRLPT10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rack"/>
  88. <submission id="TRLPT10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/box"/>
  89. <submission id="TXLPT10301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  90. <submission id="TXLPT10401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  91. <submission id="TXLPT10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  92. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0106"/>
  93. <script type="javascript" ev:event="xforms-ready">
  94. <![CDATA[
  95. fSetInit();
  96. ]]>
  97. </script>
  98. </model>
  99. <script type="javascript">
  100. <![CDATA[
  101. // 초기화
  102. function fSetInit(){
  103. var Today = getCurrentDate();
  104. var BfDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3)
  105. model.setvalue("/root/hidden/refparam/fromdd",BfDay.getDateFormat("YYYYMMDD"));
  106. model.setvalue("/root/hidden/refparam/todd",Today);
  107. model.removeNodeset("/root/main/banklist");
  108. model.removeNodeset("/root/main/tank");
  109. model.removeNodeset("/root/main/rack");
  110. model.removeNodeset("/root/main/box");
  111. fViewTankGrid();
  112. model.copyNode("/root/send/data1","/root/hidden/ref");
  113. submit("TRLPT10101");
  114. model.setValue("/root/send/codeflag", "0416|");
  115. submit("TRLZZ00101");
  116. if(model.getValue("/root/init/LB0416/cd") == "N"){
  117. group3.disabled = true;
  118. button1.disabled = true;
  119. }
  120. model.refresh();
  121. }
  122. function fViewTankGrid(){
  123. if(model.getValue("/root/hidden/ref/tanktype") == "V"){
  124. grd_banklist.colHidden(grd_banklist.colRef("dispseq")) = true;
  125. grd_banklist.colHidden(grd_banklist.colRef("xseq")) = false;
  126. grd_banklist.colHidden(grd_banklist.colRef("yseq")) = false;
  127. }
  128. if(model.getValue("/root/hidden/ref/tanktype") == "M"){
  129. grd_banklist.colHidden(grd_banklist.colRef("dispseq")) = false;
  130. grd_banklist.colHidden(grd_banklist.colRef("xseq")) = true;
  131. grd_banklist.colHidden(grd_banklist.colRef("yseq")) = true;
  132. }
  133. grd_banklist.refresh();
  134. }
  135. function fGetBankingList(){
  136. model.removeNodeset("/root/main/banklist");
  137. model.setValue("/root/hidden/refparam/tanktype2", model.getValue("/root/hidden/ref/tanktype"));
  138. model.copyNode("/root/send/data" , "/root/hidden/refparam");
  139. submit("TRLPT10301");
  140. }
  141. function fclicktank(){
  142. model.removeNodeset("/root/main/box");
  143. model.removeNodeset("/root/main/holl");
  144. var tank_Row = grd_tank.Row;
  145. model.setValue("/root/hidden/ref/tankno",
  146. model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
  147. model.copyNode("/root/send/data1","/root/hidden/ref");
  148. submit("TRLPT10102");
  149. }
  150. function fclickrack(){
  151. var tank_Row = grd_tank.Row;
  152. if(tank_Row == -1){
  153. alert("TANKNO 가 선택되지 않았습니다.");
  154. return;
  155. }
  156. var rack_Row = grd_rack.Row;
  157. model.removeNodeset("/root/main/holl");
  158. model.setValue("/root/hidden/ref/tankno",
  159. model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
  160. model.setValue("/root/hidden/ref/rackno",
  161. model.getValue("/root/main/rack["+rack_Row+"]/rackno"));
  162. model.copyNode("/root/send/data1","/root/hidden/ref");
  163. submit("TRLPT10103");
  164. }
  165. function fclickbox(){
  166. var tank_Row = grd_tank.Row;
  167. if(tank_Row == -1){
  168. alert("TANKNO 가 선택되지 않았습니다.");
  169. return;
  170. }
  171. var rack_Row = grd_rack.Row;
  172. if(rack_Row == -1){
  173. alert("RACKNO 가 선택되지 않았습니다.");
  174. return;
  175. }
  176. var box_Row = grd_box.Row;
  177. model.setValue("/root/hidden/ref/tankno",
  178. model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
  179. model.setValue("/root/hidden/ref/rackno",
  180. model.getValue("/root/main/rack["+rack_Row+"]/rackno"));
  181. model.setValue("/root/hidden/ref/boxno",
  182. model.getValue("/root/main/box["+box_Row+"]/boxno"));
  183. model.copyNode("/root/send/data1","/root/hidden/ref");
  184. initGridStyle("grd_banklist");
  185. submit("TRLPT10302");
  186. }
  187. function fExeExcel(pGridId) {
  188. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  189. if (fileName != "")
  190. {
  191. pGridId.saveExcel(fileName);
  192. }
  193. }
  194. function fSetdiagnosis(){
  195. model.setValue("/root/send/diag", grd_banklist.getUpdateData());
  196. submit("TXLPT10301");
  197. model.setValue("/root/send/diag", "");
  198. fclickbox();
  199. }
  200. function fSetPopUp(){
  201. model.removeNodeset("/root/hidden/popupmenu");
  202. if(event.button == 3){
  203. n = 1;
  204. model.makeNode("/root/hidden/popupmenu/grid");
  205. model.makeNode("/root/hidden/popupmenu/grid/item");
  206. model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "보관취소");
  207. model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fCancleBank");
  208. if(grd_banklist.isCell(event.target) && grd_banklist.mouseRow >= grd_banklist.fixedrows){
  209. window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
  210. }else{
  211. window.setPopupMenu(false);
  212. }
  213. }
  214. }
  215. function fOnmenu(popupParam){
  216. if(popupParam == "fCancleBank"){
  217. fCancleBank();
  218. }else{
  219. window.setPopupMenu(false);
  220. }
  221. }
  222. function fCancleBank(){
  223. var selectedCells = grd_banklist.selectedCells;
  224. for (var i=0; i<selectedCells.length; i++){
  225. var cell = selectedCells.item(i);
  226. var x = cell.col;
  227. var y = cell.row;
  228. if (cell){
  229. grd_banklist.cellStyle("background-color", y, 1, y, 16) = "#f7a08b";
  230. grd_banklist.rowStatus(y) = 4;
  231. }
  232. }
  233. var retval = window.alert( "저장된 데이터가 삭제됩니다. \n삭제 하시겠습니까?", "결과관리", "35" );
  234. if (retval != "6"){
  235. fclickbox();
  236. return;
  237. }
  238. model.setValue("/root/send/data2", grd_banklist.getUpdateData(4));
  239. if(model.getValue("/root/hidden/ref/tanktype") == "V"){
  240. submit("TXLPT10201");
  241. }else{
  242. submit("TXLPT10401");
  243. }
  244. fclickbox();
  245. }
  246. ]]>
  247. </script>
  248. </xhtml:head>
  249. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  250. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  251. <line id="line1" class="line_1" style="x1:110px; y1:70px; x2:1195px; y2:70px; "/>
  252. <caption id="caption2" class="tit_2" style="left:110px; top:55px; width:90px; height:13px; ">보관리스트</caption>
  253. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  254. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  255. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:7px; width:56px; height:22px; ">
  256. <caption>조회</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. fGetBankingList();
  260. ]]>
  261. </script>
  262. </button>
  263. <caption id="caption3" class="search_name" style="left:775px; top:9px; width:90px; height:17px; ">검색구분 :</caption>
  264. <input id="input1" ref="/root/hidden/refparam/text" style="left:970px; top:8px; width:130px; height:19px; "/>
  265. <select1 id="combo1" ref="/root/hidden/refparam/refgbn" appearance="minimal" style="left:864px; top:8px; width:100px; height:19px; ">
  266. <choices>
  267. <item>
  268. <label>등록번호</label>
  269. <value>1</value>
  270. </item>
  271. <item>
  272. <label>환자명</label>
  273. <value>2</value>
  274. </item>
  275. <item>
  276. <label>Bank No</label>
  277. <value>3</value>
  278. </item>
  279. </choices>
  280. </select1>
  281. <line id="line14" class="line_4" style="x1:1115px; y1:6px; x2:1115px; y2:28px; "/>
  282. <caption id="caption1" class="search_name" style="left:250px; top:9px; width:94px; height:17px; ">조회구분 :</caption>
  283. <caption id="caption4" class="search_no_b" style="left:549px; top:10px; width:13px; height:17px; ">~</caption>
  284. <input id="input2" ref="/root/hidden/refparam/fromdd" class="input_search" inputtype="date" style="left:443px; top:8px; width:100px; height:19px; "/>
  285. <input id="input3" ref="/root/hidden/refparam/todd" class="input_search" inputtype="date" style="left:567px; top:8px; width:100px; height:19px; "/>
  286. <select1 id="combo2" ref="/root/hidden/refparam/ddgbn" appearance="minimal" style="left:340px; top:8px; width:100px; height:19px; ">
  287. <choices>
  288. <item>
  289. <label>채취일시</label>
  290. <value>1</value>
  291. </item>
  292. <item>
  293. <label>등록일시</label>
  294. <value>2</value>
  295. </item>
  296. </choices>
  297. </select1>
  298. <caption id="caption7" class="search_name" style="left:10px; top:9px; width:65px; height:17px; ">구분 :</caption>
  299. <select1 id="radio1" ref="/root/hidden/ref/tanktype" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:80px; top:8px; width:150px; height:20px; border-style:none; ">
  300. <choices>
  301. <item>
  302. <label>Cryovial</label>
  303. <value>V</value>
  304. </item>
  305. <item>
  306. <label>Cryomold</label>
  307. <value>M</value>
  308. </item>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. fSetInit();
  313. ]]>
  314. </script>
  315. </select1>
  316. </group>
  317. <datagrid id="grd_banklist" nodeset="/root/main/banklist" autoresize="true" caption="T N.^R N.^B N.^Seq.^x.^y.^채취일시^Banking No^S. NO^등록번호^성명^Age^Sex^검체명^Diagnosis^M code" colwidth="35, 35, 35, 35, 35, 35,120, 75, 75, 70, 90, 30, 30, 85, 385, 375" dataheight="30" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:110px; top:75px; width:1085px; height:647px; ">
  318. <col ref="tankno" type="output"/>
  319. <col ref="rackno" type="output"/>
  320. <col ref="boxno" type="output"/>
  321. <col ref="dispseq" type="output"/>
  322. <col ref="xseq" type="output"/>
  323. <col ref="yseq" type="output"/>
  324. <col ref="collectdt" type="output" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  325. <col ref="rgstno" type="output" style="text-align:center; "/>
  326. <col ref="ptno" type="output" style="text-align:center; "/>
  327. <col ref="pid" type="output" style="text-align:center; "/>
  328. <col ref="patnm" type="output" style="text-align:center; "/>
  329. <col ref="age" type="output"/>
  330. <col ref="sex" type="output"/>
  331. <col ref="spcnm" type="output"/>
  332. <col ref="diagnosis" type="input"/>
  333. <col ref="mcode" type="output"/>
  334. <script type="javascript" ev:event="onmousedown">
  335. <![CDATA[
  336. fSetPopUp();
  337. ]]>
  338. </script>
  339. <script type="javascript" ev:event="DOMFocusOut">
  340. <![CDATA[
  341. window.setPopupMenu(false);
  342. ]]>
  343. </script>
  344. <script type="javascript" ev:event="onmouseout">
  345. <![CDATA[
  346. window.setPopupMenu(false);
  347. ]]>
  348. </script>
  349. </datagrid>
  350. <datagrid id="grd_box" nodeset="/root/main/box" caption="BNO" colwidth="35" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:70px; top:75px; width:35px; height:647px; ">
  351. <col ref="boxno" type="output" style="text-align:center; "/>
  352. <script type="javascript" ev:event="onclick">
  353. <![CDATA[
  354. if(grd_box.isCell(event.target) && grd_box.row >= grd_box.fixedRows ){
  355. fclickbox();
  356. }
  357. ]]>
  358. </script>
  359. </datagrid>
  360. <datagrid id="grd_rack" nodeset="/root/main/rack" caption="RNO" colwidth="35" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:35px; top:75px; width:35px; height:647px; ">
  361. <col ref="rackno" type="output" style="text-align:center; "/>
  362. <script type="javascript" ev:event="onclick">
  363. <![CDATA[
  364. if(grd_rack.isCell(event.target) && grd_rack.row >= grd_rack.fixedRows ){
  365. fclickrack();
  366. }
  367. ]]>
  368. </script>
  369. </datagrid>
  370. <datagrid id="grd_tank" nodeset="/root/main/tank" caption="TNO" colwidth="35" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:35px; height:647px; ">
  371. <col ref="tankno" type="output" style="text-align:center; "/>
  372. <script type="javascript" ev:event="onclick">
  373. <![CDATA[
  374. if(grd_tank.isCell(event.target) && grd_tank.row >= grd_tank.fixedRows ){
  375. fclicktank();
  376. }
  377. ]]>
  378. </script>
  379. </datagrid>
  380. <caption id="caption5" class="tit_2" style="left:0px; top:55px; width:75px; height:13px; ">보관그룹</caption>
  381. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:105px; y2:70px; "/>
  382. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
  383. <caption>엑셀</caption>
  384. <script type="javascript" ev:event="DOMActivate">
  385. <![CDATA[
  386. fExeExcel(grd_banklist);
  387. ]]>
  388. </script>
  389. </button>
  390. </group>
  391. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  392. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  393. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  394. <caption>초기화</caption>
  395. <script type="javascript" ev:event="DOMActivate">
  396. <![CDATA[
  397. fSetInit();
  398. ]]>
  399. </script>
  400. </button>
  401. <button id="button1" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  402. <caption>저장</caption>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. fSetdiagnosis();
  406. ]]>
  407. </script>
  408. </button>
  409. </group>
  410. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  411. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">조직은행보관조회</caption>
  412. </group>
  413. <script type="javascript" ev:event="onmenu">
  414. <![CDATA[
  415. var popupParam = event.description;
  416. fOnmenu(popupParam);
  417. ]]>
  418. </script>
  419. </xhtml:body>
  420. </xhtml:html>