SMLPT10400_조직은행보관등록관리(몰드).xrw 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPT10102_조직은행보관등록관리.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. <tank>
  20. <tankno/>
  21. </tank>
  22. <rack>
  23. <rackno/>
  24. </rack>
  25. <box>
  26. <boxno/>
  27. </box>
  28. <holl>
  29. <dispseq/>
  30. <rgstno/>
  31. <spcnm/>
  32. </holl>
  33. <prcpinfo>
  34. <prcpdd/>
  35. <prcpcd/>
  36. <prcpnm/>
  37. <orddeptnm/>
  38. <orddrnm/>
  39. <execprcpuniqno/>
  40. </prcpinfo>
  41. <hollin>
  42. <tankno/>
  43. <rackno/>
  44. <boxno/>
  45. <x/>
  46. <y/>
  47. <execprcpuniqno/>
  48. <rgstno/>
  49. <flag/>
  50. <pid/>
  51. <hngnm/>
  52. <rgstdd/>
  53. <ptno/>
  54. <sexage/>
  55. <cmt/>
  56. <diagcnt/>
  57. <collectdt/>
  58. </hollin>
  59. <opPatlist>
  60. <opPatInfo/>
  61. </opPatlist>
  62. <spcinfo>
  63. <spccd/>
  64. <spcnm/>
  65. </spcinfo>
  66. </main>
  67. <send>
  68. <data1/>
  69. <data2/>
  70. <refdeptflag>O</refdeptflag>
  71. <opddto/>
  72. <opddfr/>
  73. <codeflag/>
  74. <searchcd/>
  75. </send>
  76. <init>
  77. <bankno/>
  78. </init>
  79. <hidden>
  80. <ref>
  81. <tankno/>
  82. <rackno/>
  83. <boxno/>
  84. <tanktype>M</tanktype>
  85. </ref>
  86. <input>
  87. <pid/>
  88. </input>
  89. <savedata>
  90. <execprcpuniqno/>
  91. <prcpnm/>
  92. <count>1</count>
  93. <tflag>T</tflag>
  94. <spcnm/>
  95. <bcolldd/>
  96. <bcolltm/>
  97. <spccd/>
  98. </savedata>
  99. <popupmenu>
  100. <grid>
  101. <item/>
  102. </grid>
  103. </popupmenu>
  104. <bankinfo>
  105. <hngnm/>
  106. <ptno/>
  107. <sexage/>
  108. <rgstdd/>
  109. <diagcnt/>
  110. <cmt/>
  111. <rgstno/>
  112. <pid/>
  113. </bankinfo>
  114. </hidden>
  115. <temp>
  116. <banking>
  117. <tankno/>
  118. <rackno/>
  119. <boxno/>
  120. <x/>
  121. <y/>
  122. <execprcpuniqno/>
  123. <pid/>
  124. <regtno/>
  125. </banking>
  126. </temp>
  127. </root>
  128. </instance>
  129. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  132. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  133. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  134. <script type="javascript" ev:event="xforms-ready">
  135. <![CDATA[
  136. fSetInit();
  137. ]]>
  138. </script>
  139. <submission id="TRLPT10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tank"/>
  140. <submission id="TRLPT10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rack"/>
  141. <submission id="TRLPT10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/box"/>
  142. <submission id="TRLPT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/input" replace="instance" resultref="/root/main/prcpinfo"/>
  143. <submission id="TRLPT10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
  144. <submission id="TRLPT10205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcinfo"/>
  145. <submission id="TXLPT10401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  146. <submission id="TXLPT10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/bankinfo" replace="instance"/>
  147. <submission id="TRMNP00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/opPatlist/opPatInfo"/>
  148. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0106"/>
  149. <submission id="TRLPT10401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/holl"/>
  150. <submission id="TRLPT10404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/hollin"/>
  151. </model>
  152. <script type="javascript">
  153. <![CDATA[
  154. function fSetInit(){
  155. model.removeNodeset("/root/main/tank");
  156. model.removeNodeset("/root/main/rack");
  157. model.removeNodeset("/root/main/box");
  158. model.removeNodeset("/root/main/holl");
  159. model.removeNodeset("/root/main/hollin");
  160. model.removeNodeset("/root/main/spcinfo");
  161. model.removeNodeset("/root/main/opPatlist/opPatInfo");
  162. model.setValue("/root/hidden/bankinfo/hngnm", "");
  163. model.setValue("/root/hidden/bankinfo/pid", "");
  164. model.setValue("/root/hidden/bankinfo/ptno", "");
  165. model.setValue("/root/hidden/bankinfo/sexage", "");
  166. model.setValue("/root/hidden/bankinfo/rgstdd", "");
  167. model.setValue("/root/hidden/bankinfo/diagcnt", "");
  168. model.setValue("/root/hidden/bankinfo/cmt", "");
  169. model.setValue("/root/hidden/bankinfo/rgstno", "");
  170. var sDate = getCurrentDate();
  171. var sTime = getCurrentTime();
  172. model.setValue("/root/send/opddto",sDate);
  173. model.setValue("/root/send/opddfr", sDate);
  174. model.setValue("/root/hidden/savedata/bcolldd",sDate);
  175. model.setValue("/root/hidden/savedata/bcolltm",sTime);
  176. model.setValue("/root/hidden/savedata/execprcpuniqno", "");
  177. model.setValue("/root/hidden/savedata/prcpnm", "");
  178. model.setValue("/root/hidden/savedata/spcnm", "");
  179. model.setValue("/root/hidden/savedata/spccd", "");
  180. //submit("TRMNP00100");
  181. model.copyNode("/root/send/data1","/root/hidden/ref");
  182. submit("TRLPT10101");
  183. submit("TRLPT10203");
  184. model.setValue("/root/send/codeflag", "0416|");
  185. submit("TRLZZ00101");
  186. if(model.getValue("/root/init/LB0416/cd") == "N"){
  187. group3.disabled = true;
  188. btn_save.disabled = true;
  189. }
  190. model.refresh();
  191. }
  192. function fclickoppPID(){
  193. var oppRow = grd_oppatlist.row;
  194. var oppPid = model.getValue("/root/main/opPatlist/opPatInfo["+oppRow+"]/pid");
  195. model.setValue("/root/hidden/input/pid", oppPid);
  196. fOnclickBtnRef();
  197. }
  198. function fgetopp(){
  199. model.removeNodeset("/root/main/opPatlist/opPatInfo");
  200. submit("TRMNP00100");
  201. }
  202. function fclicktank(){
  203. model.removeNodeset("/root/main/box");
  204. model.removeNodeset("/root/main/holl");
  205. var tank_Row = grd_tank.Row;
  206. model.setValue("/root/hidden/ref/tankno",
  207. model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
  208. model.copyNode("/root/send/data1","/root/hidden/ref");
  209. submit("TRLPT10102");
  210. }
  211. function fclickrack(){
  212. var tank_Row = grd_tank.Row;
  213. if(tank_Row == -1){
  214. alert("TANKNO 가 선택되지 않았습니다.");
  215. return;
  216. }
  217. var rack_Row = grd_rack.Row;
  218. model.removeNodeset("/root/main/holl");
  219. model.setValue("/root/hidden/ref/tankno",
  220. model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
  221. model.setValue("/root/hidden/ref/rackno",
  222. model.getValue("/root/main/rack["+rack_Row+"]/rackno"));
  223. model.copyNode("/root/send/data1","/root/hidden/ref");
  224. submit("TRLPT10103");
  225. }
  226. function fclickbox(){
  227. var tank_Row = grd_tank.Row;
  228. if(tank_Row == -1){
  229. alert("TANKNO 가 선택되지 않았습니다.");
  230. return;
  231. }
  232. var rack_Row = grd_rack.Row;
  233. if(rack_Row == -1){
  234. alert("RACKNO 가 선택되지 않았습니다.");
  235. return;
  236. }
  237. var box_Row = grd_box.Row;
  238. model.setValue("/root/hidden/ref/tankno",
  239. model.getValue("/root/main/tank["+tank_Row+"]/tankno"));
  240. model.setValue("/root/hidden/ref/rackno",
  241. model.getValue("/root/main/rack["+rack_Row+"]/rackno"));
  242. model.setValue("/root/hidden/ref/boxno",
  243. model.getValue("/root/main/box["+box_Row+"]/boxno"));
  244. model.copyNode("/root/send/data1","/root/hidden/ref");
  245. model.setValue("/root/hidden/bankinfo/hngnm", "");
  246. model.setValue("/root/hidden/bankinfo/pid", "");
  247. model.setValue("/root/hidden/bankinfo/ptno", "");
  248. model.setValue("/root/hidden/bankinfo/sexage", "");
  249. model.setValue("/root/hidden/bankinfo/rgstdd", "");
  250. model.setValue("/root/hidden/bankinfo/diagcnt", "");
  251. model.setValue("/root/hidden/bankinfo/cmt", "");
  252. model.setValue("/root/hidden/bankinfo/rgstno", "");
  253. submit("TRLPT10401");
  254. submit("TRLPT10404");
  255. initGridStyle("grd_holl");
  256. fSethollGrid();
  257. }
  258. function fSethollGrid(){
  259. var tRow;
  260. for(tRow = 1; tRow < hollin_grid.rows ; tRow++){
  261. if(model.getValue("/root/main/hollin["+tRow+"]/rgstno") != "-"
  262. && model.getValue("/root/main/hollin["+tRow+"]/execprcpuniqno") == "0"){
  263. var x = model.getValue("/root/main/hollin["+tRow+"]/dispseq");
  264. grd_holl.cellStyle("background-color", x, 1, x, 3) = "#ffe79d";
  265. }
  266. if(model.getValue("/root/main/hollin["+tRow+"]/rgstno") != "-"
  267. && model.getValue("/root/main/hollin["+tRow+"]/execprcpuniqno") != "0"){
  268. var x = model.getValue("/root/main/hollin["+tRow+"]/dispseq");
  269. grd_holl.cellStyle("background-color", x, 1, x, 3) = "#b9e5fb";
  270. }
  271. }
  272. model.refresh();
  273. }
  274. function fOnclickBtnRef(){
  275. var Pid = model.getValue("/root/hidden/input/pid");
  276. model.removeNodeset("/root/main/prcpinfo");
  277. submit("TRLPT10202");
  278. model.setValue("/root/hidden/savedata/execprcpuniqno", "");
  279. model.setValue("/root/hidden/savedata/prcpnm", "");
  280. model.setValue("/root/hidden/savedata/spcnm", "");
  281. btn_addrow.visible = true;
  282. prcpinfo.attribute("visibility") = "visible" ;
  283. model.refresh();
  284. }
  285. function fKeyEvent(){
  286. model.setvalue("/root/hidden/input/pid", iptSearch.currentText);
  287. model.refresh();
  288. fOnclickBtnRef();
  289. }
  290. function fCloseprcpinfo(){
  291. model.removeNodeset("/root/main/prcpinfo");
  292. btn_addrow.visible = false;
  293. prcpinfo.attribute("visibility") = "hidden" ;
  294. model.refresh();
  295. }
  296. function fclickprcpinfo(){
  297. var prpc_Row = prcpinfo.row;
  298. var Execprcpuniqno = model.getValue("/root/main/prcpinfo["+prpc_Row+"]/execprcpuniqno");
  299. var Prcpnm = model.getValue("/root/main/prcpinfo["+prpc_Row+"]/prcpnm");
  300. var Spcnm = model.getValue("/root/main/prcpinfo["+prpc_Row+"]/spcnm");
  301. var Spccd = model.getValue("/root/main/prcpinfo["+prpc_Row+"]/spccd");
  302. model.setValue("/root/hidden/savedata/execprcpuniqno", Execprcpuniqno);
  303. model.setValue("/root/hidden/savedata/prcpnm", Prcpnm);
  304. model.setValue("/root/hidden/savedata/spcnm", Spcnm);
  305. model.setValue("/root/hidden/savedata/spccd", Spccd);
  306. //submit("TRLPT10203");
  307. fCloseprcpinfo();
  308. }
  309. function fSetHollno(){
  310. var y = grd_holl.row;
  311. var dcount = parseInt(input1.currentText);
  312. if(y == -1){
  313. alert("저장이 시작될 위치 지정을 하십시오.");
  314. return;
  315. }
  316. if(input1.currentText == ""){
  317. alert("입력할 개수를 지정하십시오.");
  318. return;
  319. }
  320. var iy; // 시작좌표 초기화 for 문 사용
  321. var Execprcpuniqno = model.getValue("/root/hidden/savedata/execprcpuniqno");
  322. var Prcpnm = model.getValue("/root/hidden/savedata/prcpnm");
  323. var Spcnm = model.getValue("/root/hidden/savedata/spcnm");
  324. var Spccd = model.getValue("/root/hidden/savedata/spccd");
  325. var Bankno = model.getValue("/root/init/bankno") + model.getValue("/root/hidden/savedata/tflag");
  326. var Pid = model.getValue("/root/hidden/input/pid");
  327. var Collectdt = model.getValue("/root/hidden/savedata/bcolldd") + model.getValue("/root/hidden/savedata/bcolltm");
  328. if(Pid == ""){
  329. alert("등록번호를 입력해 주십시오.");
  330. return;
  331. }
  332. for(iy = y ; iy <= 40 ; iy++){
  333. if(grd_holl.valueMatrix(iy, 2) == ""){
  334. grd_holl.valueMatrix(iy, 2) = Bankno;
  335. grd_holl.valueMatrix(iy, 3) = Spcnm;
  336. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/execprcpuniqno", Execprcpuniqno);
  337. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/flag", "I");
  338. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/rgstno", Bankno);
  339. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/pid", Pid);
  340. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/collectdt", Collectdt);
  341. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/spccd", Spccd);
  342. }else{
  343. grd_holl.valueMatrix(iy, 3) = Spcnm;
  344. if(model.getValue("/root/main/hollin[dispseq ='" + iy +"']/flag") == "I"){
  345. }else{
  346. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/flag", "U");
  347. }
  348. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/execprcpuniqno", Execprcpuniqno);
  349. model.setValue("/root/main/hollin[dispseq ='" + iy +"']/spccd", Spccd);
  350. //model.setValue("/root/main/hollin[dispseq ='" + iy +"']/collectdt", Collectdt);
  351. }
  352. dcount--;
  353. if(dcount == 0){
  354. grd_holl.row = iy+1;
  355. model.refresh();
  356. return;
  357. }
  358. }
  359. }
  360. function fSetholldata(){
  361. model.removeNodeset("/root/hidden/popupmenu");
  362. if(event.button == 3){
  363. n = 1;
  364. model.makeNode("/root/hidden/popupmenu/grid");
  365. model.makeNode("/root/hidden/popupmenu/grid/item");
  366. model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/name" , "보관취소");
  367. model.makeValue("/root/hidden/popupmenu/grid/item["+n+"]/func" , "fCancleBank");
  368. if(grd_holl.isCell(event.target) && grd_holl.mouseRow >= grd_holl.fixedrows){
  369. window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
  370. }else{
  371. window.setPopupMenu(false);
  372. }
  373. }
  374. }
  375. function fCancleBank(){
  376. /*
  377. var y = grd_holl.row;
  378. grd_holl.valueMatrix(y, 2) = "";
  379. grd_holl.valueMatrix(y, 3) = "";
  380. model.setValue("/root/main/hollin[dispseq ='" + y +"']/execprcpuniqno", 0);
  381. model.setValue("/root/main/hollin[dispseq ='" + y +"']/flag", "D");
  382. model.setValue("/root/main/hollin[dispseq ='" + y +"']/rgstno", "");
  383. model.setValue("/root/main/hollin[dispseq ='" + y +"']/pid", "");
  384. model.refresh();
  385. */
  386. var selectedCells = grd_holl.selectedCells;
  387. for (var i=0; i<selectedCells.length; i++){
  388. var cell = selectedCells.item(i);
  389. var x = cell.col;
  390. var y = cell.row;
  391. if (cell){
  392. grd_holl.valueMatrix(y, 2) = "";
  393. grd_holl.valueMatrix(y, 3) = "";
  394. model.setValue("/root/main/hollin[dispseq ='" + y +"']/execprcpuniqno", 0);
  395. model.setValue("/root/main/hollin[dispseq ='" + y +"']/flag", "D");
  396. model.setValue("/root/main/hollin[dispseq ='" + y +"']/rgstno", "");
  397. model.setValue("/root/main/hollin[dispseq ='" + y +"']/pid", "");
  398. }
  399. }
  400. model.refresh();
  401. }
  402. function fExeEqmtSave(){
  403. for(var S = 1 ; S <hollin_grid.rows ; S++){
  404. var flag = model.getValue("/root/main/hollin["+S+"]/flag");
  405. if(flag == "I"){
  406. hollin_grid.rowStatus(S) = 1;
  407. }else if(flag == "D"){
  408. hollin_grid.rowStatus(S) = 4;
  409. }else if(flag == "U"){
  410. hollin_grid.rowStatus(S) = 2;
  411. }else{
  412. hollin_grid.rowStatus(S) = 0;
  413. }
  414. }
  415. model.setValue("/root/send/data2", hollin_grid.getUpdateData());
  416. submit("TXLPT10401");
  417. fSetInit();
  418. }
  419. function fSectholldata(){
  420. var y = grd_holl.row;
  421. model.setValue("/root/hidden/bankinfo/pid", model.getValue("/root/main/hollin[dispseq ='" + y +"']/pid"));
  422. model.setValue("/root/hidden/bankinfo/hngnm", model.getValue("/root/main/hollin[dispseq ='" + y +"']/hngnm"));
  423. model.setValue("/root/hidden/bankinfo/ptno", model.getValue("/root/main/hollin[dispseq ='" + y +"']/ptno"));
  424. model.setValue("/root/hidden/bankinfo/sexage", model.getValue("/root/main/hollin[dispseq ='" + y +"']/sexage"));
  425. model.setValue("/root/hidden/bankinfo/rgstdd", model.getValue("/root/main/hollin[dispseq ='" + y +"']/rgstdd"));
  426. model.setValue("/root/hidden/bankinfo/diagcnt", model.getValue("/root/main/hollin[dispseq ='" + y +"']/diagcnt"));
  427. model.setValue("/root/hidden/bankinfo/cmt", model.getValue("/root/main/hollin[dispseq ='" + y +"']/cmt"));
  428. model.setValue("/root/hidden/bankinfo/rgstno", model.getValue("/root/main/hollin[dispseq ='" + y +"']/rgstno"));
  429. model.refresh();
  430. }
  431. function fExeCmt(){
  432. var rgstno = model.getValue("/root/hidden/bankinfo/rgstno");
  433. if(rgstno == ""){
  434. alert("Comment 저장할 셀을 선택해주세요.");
  435. return;
  436. }
  437. submit("TXLPT10202");
  438. fSetInit();
  439. }
  440. function fOnmenu(popupParam){
  441. if(popupParam == "fCancleBank"){
  442. fCancleBank();
  443. }else{
  444. window.setPopupMenu(false);
  445. }
  446. }
  447. function flinkresult(){
  448. //open("SMLPP00500");
  449. //window.opener.model.setvalue("/root/init/refval", model.getvalue("/root/hidden/bankinfo/pid"));
  450. //window.children.javascript.fExeRefValKeyPress();
  451. //window.children.model.setvalue("/root/init/refval", model.getvalue("/root/hidden/bankinfo/pid"));
  452. }
  453. function flinktotresult(){
  454. modal("SMAER00800","","","","","/root/hidden/bankinfo/pid","/root/send/data/singdata/srchpid");
  455. }
  456. function fSearchSpccd(){
  457. var Searchcd = input6.currentText;
  458. model.setValue("/root/send/searchcd", Searchcd);
  459. submit("TRLPT10205");
  460. model.setValue("/root/send/searchcd", "");
  461. }
  462. function fSetChangeSpccd(gbn){
  463. if(gbn == "1"){
  464. grid_spccd.visible = true;
  465. caption19.visible = true;
  466. input6.visible = true;
  467. caption19.visible = true;
  468. output7.visible = true;
  469. button4.visible = true;
  470. }else{
  471. grid_spccd.visible = false;
  472. caption19.visible = false;
  473. input6.visible = false;
  474. caption19.visible = false;
  475. output7.visible = false;
  476. button4.visible = false;
  477. }
  478. }
  479. function fclickspcinfo(){
  480. var spcRow = grid_spccd.row;
  481. var spcCd = model.getValue("/root/main/spcinfo["+spcRow+"]/spccd");
  482. var spcNm = model.getValue("/root/main/spcinfo["+spcRow+"]/spcnm");
  483. model.setValue("/root/hidden/savedata/spcnm", spcNm);
  484. model.setValue("/root/hidden/savedata/spccd", spcCd);
  485. fSetChangeSpccd("2");
  486. model.refresh();
  487. }
  488. ]]>
  489. </script>
  490. </xhtml:head>
  491. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  492. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  493. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  494. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  495. <output id="output6" ref="/root/hidden/savedata/spcnm" style="left:715px; top:9px; width:115px; height:19px; "/>
  496. <line id="line14" class="line_4" style="x1:1120px; y1:6px; x2:1120px; y2:28px; "/>
  497. <caption id="caption4" class="search_name" style="left:210px; top:10px; width:75px; height:17px; ">처방명 :</caption>
  498. <caption id="caption5" style="left:1090px; top:8px; width:20px; height:20px; ">개</caption>
  499. <select1 id="radio1" ref="/root/hidden/savedata/tflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:885px; top:11px; width:150px; height:20px; border-style:none; ">
  500. <choices>
  501. <item>
  502. <label>Tumor</label>
  503. <value>T</value>
  504. </item>
  505. <item>
  506. <label>Non-Tumor</label>
  507. <value>N</value>
  508. </item>
  509. </choices>
  510. </select1>
  511. <input id="input1" ref="/root/hidden/savedata/count" navindex="2" format="99" style="left:1040px; top:8px; width:45px; height:19px; "/>
  512. <button id="button143" class="btn5_letter2" style="left:831px; top:9px; width:42px; height:19px; ">
  513. <caption>변경</caption>
  514. <script type="javascript" ev:event="DOMActivate">
  515. <![CDATA[
  516. fSetChangeSpccd("1");
  517. ]]>
  518. </script>
  519. </button>
  520. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:1130px; top:7px; width:56px; height:22px; ">
  521. <caption>입력</caption>
  522. <script type="javascript" ev:event="DOMActivate">
  523. <![CDATA[
  524. fSetHollno();
  525. ]]>
  526. </script>
  527. </button>
  528. <caption id="caption18" class="search_name" style="left:640px; top:10px; width:75px; height:17px; ">검체명 :</caption>
  529. <output id="output1" ref="/root/hidden/savedata/prcpnm" style="left:285px; top:9px; width:345px; height:19px; "/>
  530. <input id="iptSearch" ref="/root/hidden/input/pid" class="input_button" navindex="1" imemode="alpha" inputtype="button" style="left:100px; top:8px; width:100px; height:19px; ">
  531. <script type="javascript" ev:event="onbuttonclick">
  532. <![CDATA[
  533. fOnclickBtnRef();
  534. ]]>
  535. </script>
  536. <script type="javascript" ev:event="onkeyup">
  537. <![CDATA[
  538. if(event.keyCode == "13"){
  539. fKeyEvent();
  540. }
  541. ]]>
  542. </script>
  543. </input>
  544. <caption id="caption3" class="search_name" style="left:10px; top:10px; width:90px; height:17px; ">등록번호 :</caption>
  545. </group>
  546. <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:443px; top:75px; width:40px; height:645px; ">
  547. <col ref="boxno" type="output" style="text-align:center; "/>
  548. <script type="javascript" ev:event="onclick">
  549. <![CDATA[
  550. if(grd_box.isCell(event.target) && grd_box.row >= grd_box.fixedRows ){
  551. fclickbox();
  552. }
  553. ]]>
  554. </script>
  555. </datagrid>
  556. <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:403px; top:75px; width:40px; height:645px; ">
  557. <col ref="rackno" type="output" style="text-align:center; "/>
  558. <script type="javascript" ev:event="onclick">
  559. <![CDATA[
  560. if(grd_rack.isCell(event.target) && grd_rack.row >= grd_rack.fixedRows ){
  561. fclickrack();
  562. }
  563. ]]>
  564. </script>
  565. </datagrid>
  566. <datagrid id="grd_tank" nodeset="/root/main/tank" caption="TNO^TankNm" colwidth="35, 60" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:303px; top:75px; width:100px; height:645px; ">
  567. <col ref="tankno" type="output" style="text-align:center; "/>
  568. <col ref="tanknm" type="output" style="text-align:center; "/>
  569. <script type="javascript" ev:event="onclick">
  570. <![CDATA[
  571. if(grd_tank.isCell(event.target) && grd_tank.row >= grd_tank.fixedRows ){
  572. fclicktank();
  573. }
  574. ]]>
  575. </script>
  576. </datagrid>
  577. <caption id="caption2" class="tit_2" style="left:303px; top:55px; width:147px; height:13px; ">조직은행보관등록</caption>
  578. <line id="line1" class="line_1" style="x1:303px; y1:70px; x2:483px; y2:70px; "/>
  579. <datagrid id="grd_holl" nodeset="/root/main/holl" caption="순번^Banking No^검체명" colwidth="75, 75, 145" dataheight="50" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="50" selectionmode="free" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:485px; top:75px; width:705px; height:490px; ">
  580. <col ref="dispseq" type="output" visibility="hidden" style="text-align:center; "/>
  581. <col ref="rgstno" type="output" style="text-align:center; "/>
  582. <col ref="spcnm" type="output" style="text-align:center; "/>
  583. <script type="javascript" ev:event="onmousedown">
  584. <![CDATA[
  585. fSetholldata();
  586. ]]>
  587. </script>
  588. <script type="javascript" ev:event="onclick">
  589. <![CDATA[
  590. fSectholldata();
  591. ]]>
  592. </script>
  593. <script type="javascript" ev:event="DOMFocusOut">
  594. <![CDATA[
  595. window.setPopupMenu(false);
  596. ]]>
  597. </script>
  598. <script type="javascript" ev:event="onmouseout">
  599. <![CDATA[
  600. window.setPopupMenu(false);
  601. ]]>
  602. </script>
  603. </datagrid>
  604. <caption id="caption1" class="tit_2" style="left:485px; top:55px; width:147px; height:13px; ">조직은행보관등록</caption>
  605. <line id="line2" class="line_1" style="x1:485px; y1:70px; x2:1190px; y2:70px; "/>
  606. <datagrid id="hollin_grid" nodeset="/root/main/hollin" visibility="hidden" caption="1^2^3^4^5^6^7^8^9^10^11" colwidth="50, 50, 50, 50, 50, 50, 50,50" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" navindex="4" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:300px; top:260px; width:435px; height:330px; ">
  607. <col ref="tankno" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  608. <col ref="rackno" type="output" style="text-align:center; "/>
  609. <col ref="boxno" type="output" style="text-align:center; "/>
  610. <col ref="dispseq" type="output" style="text-align:center; "/>
  611. <col ref="execprcpuniqno" type="output" style="text-align:center; "/>
  612. <col ref="rgstno" type="output" style="text-align:center; "/>
  613. <col ref="flag" type="output" style="text-align:center; "/>
  614. <col ref="pid" type="output" style="text-align:center; "/>
  615. <col ref="hngnm" type="output" style="text-align:center; "/>
  616. <col ref="rgstdd" type="output" style="text-align:center; "/>
  617. <col ref="ptno" type="output" style="text-align:center; "/>
  618. <col ref="sexage" type="output" style="text-align:center; "/>
  619. <col ref="cmt" type="output" style="text-align:center; "/>
  620. <col ref="diagcnt" type="output" style="text-align:center; "/>
  621. <col ref="collectdt" type="output" style="text-align:center; "/>
  622. <col ref="spccd" type="output" style="text-align:center; "/>
  623. </datagrid>
  624. <caption id="caption12" class="cell_1" style="left:485px; top:648px; width:90px; height:23px; text-align:center; ">병 리 번 호</caption>
  625. <caption id="caption15" class="cell_1" style="left:485px; top:672px; width:90px; height:23px; text-align:center; ">나이/성별</caption>
  626. <line id="line3" class="line_2" style="x1:485px; y1:647px; x2:677px; y2:647px; "/>
  627. <caption id="caption9" class="cell_1" style="left:485px; top:624px; width:90px; height:23px; text-align:center; ">환 자 명</caption>
  628. <line id="line5" class="line_2" style="x1:485px; y1:671px; x2:677px; y2:671px; "/>
  629. <caption id="caption7" class="tit_2" style="left:485px; top:580px; width:147px; height:13px; ">보관정보</caption>
  630. <button id="button1" class="btn4_letter4" disabled="true" style="left:1110px; top:572px; width:80px; height:22px; ">
  631. <caption>결과조회</caption>
  632. <script type="javascript" ev:event="DOMActivate">
  633. <![CDATA[
  634. flinkresult();
  635. ]]>
  636. </script>
  637. </button>
  638. <output id="input21" ref="/root/hidden/bankinfo/hngnm" class="output_fix" appearance="output" style="left:577px; top:626px; width:100px; height:19px; "/>
  639. <output id="output2" ref="/root/hidden/bankinfo/ptno" class="output_fix" appearance="output" style="left:577px; top:650px; width:100px; height:19px; "/>
  640. <output id="output5" ref="/root/hidden/bankinfo/sexage" class="output_fix" appearance="output" style="left:577px; top:674px; width:100px; height:19px; "/>
  641. <line id="line6" class="line_2" style="x1:485px; y1:695px; x2:676px; y2:695px; "/>
  642. <caption id="caption11" class="cell_1" style="left:485px; top:696px; width:90px; height:23px; text-align:center; ">보 관 일 자</caption>
  643. <output id="output3" ref="/root/hidden/bankinfo/rgstdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:577px; top:698px; width:100px; height:19px; "/>
  644. <caption id="caption8" class="cell_1" style="left:680px; top:600px; width:58px; height:118px; text-align:center; ">M code</caption>
  645. <textarea id="textarea1" ref="/root/hidden/bankinfo/diagcnt" style="left:740px; top:599px; width:450px; height:120px; "/>
  646. <line id="line4" class="line_2" style="x1:485px; y1:719px; x2:1190px; y2:719px; "/>
  647. <caption id="caption13" class="cell_1" style="left:485px; top:600px; width:90px; height:23px; text-align:center; ">등 록 번 호</caption>
  648. <line id="line8" class="line_2" style="x1:485px; y1:623px; x2:677px; y2:623px; "/>
  649. <output id="output4" ref="/root/hidden/bankinfo/pid" class="output_fix" appearance="output" style="left:577px; top:602px; width:100px; height:19px; "/>
  650. <line id="line9" class="line_2" style="x1:485px; y1:599px; x2:677px; y2:599px; "/>
  651. <input id="ipt_makedd" ref="/root/hidden/savedata/bcolldd" inputtype="date" format="yyyy-mm-dd" showmask="true" appearance="input" style="left:805px; top:50px; width:90px; height:19px; "/>
  652. <input id="ipt_maketm" ref="/root/hidden/savedata/bcolltm" format="hh:nn:ss" showmask="true" style="left:896px; top:50px; width:60px; height:19px; "/>
  653. <caption id="caption26" class="hand" style="left:715px; top:50px; width:86px; height:19px; vertical-align:middle; ">채취일시 :</caption>
  654. <datagrid id="grd_oppatlist" nodeset="/root/main/opPatlist/opPatInfo" class="datagrid2" caption="진행&#xA;상태^환자&#xA;구분^수술&#xA;방^집도&#xA;과^수술일시^수술일시^소요&#xA;시간^등록번호^환자명^진단명^수술전수술명(영문)^집도의" colwidth="50, 40, 40, 40, 65, 55, 40, 65, 60, 100, 150, 60" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheight="25" navindex="4" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:75px; width:300px; height:645px; ">
  655. <col ref="opstatcdnm" style="text-align:center; "/>
  656. <col ref="oppatflagnm" style="text-align:center; "/>
  657. <col ref="oproomcdnm" style="text-align:center; "/>
  658. <col ref="depthngnm" style="text-align:center; "/>
  659. <col ref="opcnfmdd" style="text-align:center; "/>
  660. <col ref="fstrgstdt" style="text-align:center; "/>
  661. <col ref="opusetm" style="text-align:center; "/>
  662. <col ref="pid" style="text-align:center; "/>
  663. <col ref="hngnm" style="text-align:center; "/>
  664. <col ref="diagcdnm" style="text-align:center; "/>
  665. <col ref="opcdenm" style="text-align:center; "/>
  666. <col ref="perfdridnm1" style="text-align:center; "/>
  667. <script type="javascript" ev:event="ondblclick">
  668. <![CDATA[
  669. if(grd_oppatlist.isCell(event.target) && grd_oppatlist.row >= grd_oppatlist.fixedRows ){
  670. fclickoppPID();
  671. }
  672. ]]>
  673. </script>
  674. </datagrid>
  675. <caption id="caption14" class="tit_2" style="left:0px; top:55px; width:82px; height:13px; ">수술일정</caption>
  676. <line id="line10" class="line_1" style="x1:0px; y1:70px; x2:300px; y2:70px; "/>
  677. <caption id="caption16" class="search_no_b" style="left:176px; top:52px; width:13px; height:17px; ">~</caption>
  678. <input id="input3" ref="/root/send/opddfr" class="input_search" inputtype="date" style="left:90px; top:50px; width:85px; height:19px; "/>
  679. <input id="input4" ref="/root/send/opddto" class="input_search" inputtype="date" style="left:189px; top:50px; width:85px; height:19px; "/>
  680. <button id="button61" class="icon_search" style="left:279px; top:52px; width:16px; height:16px; ">
  681. <caption/>
  682. <script type="javascript" ev:event="onclick">
  683. <![CDATA[
  684. fgetopp();
  685. ]]>
  686. </script>
  687. </button>
  688. <datagrid id="prcpinfo" nodeset="/root/main/prcpinfo" visibility="hidden" caption="처방일자^처방코드^처방명^진료과^진료의^검체명" colwidth="85, 90, 250, 80, 80, 70" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" navindex="4" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:45px; width:625px; height:180px; ">
  689. <col ref="prcpdd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  690. <col ref="prcpcd" type="output" style="text-align:center; "/>
  691. <col ref="prcpnm" type="output" style="text-align:center; "/>
  692. <col ref="orddeptnm" type="output" style="text-align:center; "/>
  693. <col ref="orddrnm" type="output" style="text-align:center; "/>
  694. <col ref="spcnm" type="output" style="text-align:center; "/>
  695. <col ref="execprcpuniqno" type="output" visibility="hidden" style="text-align:center; "/>
  696. <script type="javascript" ev:event="ondblclick">
  697. <![CDATA[
  698. if(prcpinfo.isCell(event.target) && prcpinfo.row >= prcpinfo.fixedRows ){
  699. fclickprcpinfo();
  700. }
  701. ]]>
  702. </script>
  703. </datagrid>
  704. <button id="btn_addrow" class="btn2_letter2" visibility="hidden" style="left:625px; top:45px; width:42px; height:19px; ">
  705. <caption>닫기</caption>
  706. <script type="javascript" ev:event="DOMActivate">
  707. <![CDATA[
  708. fCloseprcpinfo();
  709. ]]>
  710. </script>
  711. </button>
  712. <button id="button3" class="btn4_letter6" disabled="true" style="left:1005px; top:572px; width:104px; height:22px; ">
  713. <caption>통합결과조회</caption>
  714. <script type="javascript" ev:event="DOMActivate">
  715. <![CDATA[
  716. flinktotresult();
  717. ]]>
  718. </script>
  719. </button>
  720. <input id="input5" ref="/root/init/bankno" style="left:1070px; top:50px; width:85px; height:19px; "/>
  721. <caption id="caption17" class="hand" style="left:960px; top:50px; width:108px; height:19px; vertical-align:middle; ">Banking No :</caption>
  722. <line id="line11" class="line_1" style="x1:485px; y1:594px; x2:1190px; y2:594px; "/>
  723. <datagrid id="grid_spccd" nodeset="/root/main/spcinfo" visibility="hidden" caption="검체코드^검체명" colwidth="74, 108" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" navindex="4" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:750px; top:155px; width:250px; height:220px; ">
  724. <col ref="spccd" type="output" style="text-align:center; "/>
  725. <col ref="spcnm" type="output" style="text-align:center; "/>
  726. <script type="javascript" ev:event="ondblclick">
  727. <![CDATA[
  728. if(grid_spccd.isCell(event.target) && grid_spccd.row >= grid_spccd.fixedRows ){
  729. fclickspcinfo();
  730. }
  731. ]]>
  732. </script>
  733. </datagrid>
  734. <output id="output7" visibility="hidden" style="left:750px; top:135px; width:160px; height:19px; background-color:#ccffcc; "/>
  735. <caption id="caption19" class="hand" visibility="hidden" style="left:745px; top:135px; width:65px; height:19px; vertical-align:middle; ">검색 :</caption>
  736. <input id="input6" visibility="hidden" style="left:810px; top:135px; width:100px; height:19px; ">
  737. <script type="javascript" ev:event="onkeydown">
  738. <![CDATA[
  739. if(event.keyCode == "13"){
  740. fSearchSpccd();
  741. }
  742. ]]>
  743. </script>
  744. </input>
  745. <button id="button4" class="btn2_letter2" visibility="hidden" style="left:910px; top:135px; width:42px; height:19px; ">
  746. <caption>닫기</caption>
  747. <script type="javascript" ev:event="DOMActivate">
  748. <![CDATA[
  749. fSetChangeSpccd("2");
  750. ]]>
  751. </script>
  752. </button>
  753. </group>
  754. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  755. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  756. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  757. <caption>저장</caption>
  758. <script type="javascript" ev:event="DOMActivate">
  759. <![CDATA[
  760. fExeEqmtSave();
  761. ]]>
  762. </script>
  763. </button>
  764. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  765. <caption>초기화</caption>
  766. <script type="javascript" ev:event="DOMActivate">
  767. <![CDATA[
  768. fSetInit();
  769. ]]>
  770. </script>
  771. </button>
  772. </group>
  773. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  774. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">조직은행보관등록</caption>
  775. </group>
  776. <script type="javascript" ev:event="onmenu">
  777. <![CDATA[
  778. var popupParam = event.description;
  779. fOnmenu(popupParam);
  780. ]]>
  781. </script>
  782. </xhtml:body>
  783. </xhtml:html>