SMPMB00301_병상코드관리.xrw 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>병상코드관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <data1>
  11. <srchcond>
  12. </srchcond>
  13. <srchcondnm/>
  14. <roomflag>N</roomflag>
  15. </data1>
  16. <updateData>
  17. <datalist/>
  18. <s_wdrm>
  19. <saveflag/>
  20. </s_wdrm>
  21. </updateData>
  22. <sess_posinstcd/>
  23. <ioflag/>
  24. </send>
  25. <main>
  26. <gridlist>
  27. <bedinfolist>
  28. <building/>
  29. <wardcd/>
  30. <roomcd/>
  31. <bedcd/>
  32. <bednm/>
  33. <orddeptcd/>
  34. <suborddeptcd1/>
  35. <suborddeptcd2/>
  36. <suborddeptcd3/>
  37. <suborddeptcd4/>
  38. <suborddeptcd5/>
  39. <bedrem/>
  40. <fromdd/>
  41. <todd/>
  42. <seqno/>
  43. <histstat/>
  44. <wardcd_old/>
  45. <roomcd_old/>
  46. <bedcd_old/>
  47. <bednm_old/>
  48. <todd_old/>
  49. <seqno_old/>
  50. </bedinfolist>
  51. <roominfolistprint/>
  52. <item>
  53. <prmisnroomtot/>
  54. <basbedtot/>
  55. <usebedtot/>
  56. <useroomtot/>
  57. </item>
  58. </gridlist>
  59. <griddata>
  60. <building/>
  61. <wardcd/>
  62. <roomcd/>
  63. <bedcd/>
  64. <bednm/>
  65. <orddeptcd/>
  66. <suborddeptcd1/>
  67. <suborddeptcd2/>
  68. <suborddeptcd3/>
  69. <suborddeptcd4/>
  70. <suborddeptcd5/>
  71. <bedrem/>
  72. <fromdd/>
  73. <todd/>
  74. <seqno/>
  75. <histstat/>
  76. </griddata>
  77. <bedinfo>
  78. <building/>
  79. <wardcd/>
  80. <roomcd/>
  81. <bedcd/>
  82. <bednm/>
  83. <fromdd/>
  84. <todd/>
  85. <orddeptcd/>
  86. <suborddeptcd1/>
  87. <suborddeptcd2/>
  88. <suborddeptcd3/>
  89. <suborddeptcd4/>
  90. <suborddeptcd5/>
  91. <bedrem/>
  92. <wardcd_old/>
  93. <roomcd_old/>
  94. <bedcd_old/>
  95. <bednm_old/>
  96. <todd_old/>
  97. <seqno_old/>
  98. <extrbedyn/>
  99. </bedinfo>
  100. </main>
  101. <init>
  102. <P0025list>
  103. <P0025>
  104. <cdid/>
  105. <cdnm/>
  106. </P0025>
  107. </P0025list>
  108. <P0026list>
  109. <P0026>
  110. <cdid/>
  111. <cdnm/>
  112. </P0026>
  113. </P0026list>
  114. <P0338list>
  115. <P0338>
  116. <cdid/>
  117. <cdnm/>
  118. </P0338>
  119. </P0338list>
  120. <P0391list>
  121. <P0391>
  122. <cdnm/>
  123. <cdid/>
  124. </P0391>
  125. </P0391list>
  126. <P0325list>
  127. <P0325>
  128. <cdnm/>
  129. <cdid/>
  130. </P0325>
  131. </P0325list>
  132. <P0478list>
  133. <P0478>
  134. <cdnm/>
  135. <cdid/>
  136. </P0478>
  137. </P0478list>
  138. <P0480list>
  139. <P0480>
  140. <cdnm>-</cdnm>
  141. <cdid>-</cdid>
  142. </P0480>
  143. </P0480list>
  144. <P0483list>
  145. <P0483>
  146. <cdnm/>
  147. <cdid/>
  148. </P0483>
  149. </P0483list>
  150. <PK058list>
  151. <PK058>
  152. <cdnm/>
  153. <cdid/>
  154. </PK058>
  155. </PK058list>
  156. <srchPK058list/>
  157. </init>
  158. <init2>
  159. <wardlist>
  160. <deptcd/>
  161. <depthngnm/>
  162. </wardlist>
  163. <roomlist>
  164. <wd/>
  165. <cd/>
  166. <nm/>
  167. </roomlist>
  168. </init2>
  169. <hidden>
  170. <init>
  171. <disccd>
  172. <cd/>
  173. <nm/>
  174. </disccd>
  175. <insukind>
  176. <cd/>
  177. <nm/>
  178. </insukind>
  179. <suppkind>
  180. <cd/>
  181. <nm/>
  182. <up/>
  183. <io/>
  184. </suppkind>
  185. <orddeptcd>
  186. <cd/>
  187. <nm/>
  188. </orddeptcd>
  189. <orddrid>
  190. <cd/>
  191. <nm/>
  192. <dp/>
  193. </orddrid>
  194. <flag>
  195. <prestdd/>
  196. <mskindflag/>
  197. </flag>
  198. <wardcd>
  199. <cd/>
  200. <nm/>
  201. </wardcd>
  202. <roomcd>
  203. <cd/>
  204. <nm/>
  205. <wd/>
  206. </roomcd>
  207. </init>
  208. <warddeptlist>
  209. </warddeptlist>
  210. <roominfo/>
  211. <roomgrdelist>
  212. <roomgrde>
  213. <cdid/>
  214. <cdnm/>
  215. </roomgrde>
  216. </roomgrdelist>
  217. </hidden>
  218. <tmp>
  219. <!-- 20100122 수정추가 JHP 진료과 빈값입력시 오류발생 하여 '-' 처리 되도록함.-->
  220. <orddeptcd>
  221. <cd>-</cd>
  222. <nm>-</nm>
  223. </orddeptcd>
  224. <orddeptcd>
  225. <cd>0000000000</cd>
  226. <nm>공용병상</nm>
  227. </orddeptcd>
  228. </tmp>
  229. </root>
  230. </instance>
  231. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  232. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  233. <submission id="TXPMB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updateData" resultref="/root/main/griddata"/>
  234. <submission id="TRPMB00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/gridlist"/>
  235. <submission id="TRPMB00305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init2"/>
  236. <submission id="TRPMB00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/init"/>
  237. <submission id="TRPMB00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/roomgrdelist"/>
  238. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  239. </model>
  240. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  241. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  242. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  243. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  244. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  245. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  246. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  247. <script type="javascript" ev:event="xforms-ready">
  248. <![CDATA[
  249. fflagcheck(1);
  250. zbcfGetCodeList(new Array("P0025","P0026","P0338","P0391","P0325","P0478","P0480","P0483"), new Array("/root/init/P0025list","/root/init/P0026list","/root/init/P0338list","/root/init/P0391list","/root/init/P0325list","/root/init/P0478list","/root/init/P0480list","/root/init/P0483list"))
  251. pamfGetCodeList(new Array("PK058", "PK058"), new Array("/root/init/PK058list", "/root/init/srchPK058list"));
  252. addComboItem("cmb_building", "전체", "-", "above");
  253. //20070809 kshin 병동코드조회
  254. fWardCDInfo();
  255. //2013-09-09 완료이력 포함 병동코드 조회
  256. submit("TRPMB00305");
  257. //20090606 JHP 수정 추가
  258. var sUserInfosS = getUserInfos();
  259. sUserInfosS = sUserInfosS + "|";
  260. var UserInfosS_Array = sUserInfosS.split("|");
  261. var posinstcd = UserInfosS_Array[6]; //근무지기관코드(dutplceinstcd)
  262. model.setValue("/root/send/sess_posinstcd",posinstcd);
  263. model.setValue("/root/send/ioflag","I");
  264. if(submit("TRPMB00302")){
  265. // submit("TRPMB00304");
  266. }
  267. //진료과에 null값 추가
  268. model.makeNode("/root/tmp/orddeptcd");
  269. copyNodesetType("/root/tmp/orddeptcd","/root/hidden/init/orddeptcd","after");
  270. copyNodesetType("/root/hidden/init/orddeptcd","/root/tmp/orddeptcd","replace");
  271. //addComboItem("orddeptcd","above");
  272. // 2008.10.12 저장버튼 권한설정
  273. button3.disabled = !checkAuth("X");
  274. //20090518 박재형 추가_ 등급을 공통코드로 가져오는데 이는 입원료 수가 매핑과 관련해서 종료된 입원료를 컨트롤 할수 있는 소지가 있기에
  275. // 실제 수가와 매핑코드를 조회하여 살아있는 입원료 등급 코드를 가져온다.
  276. // 해당 조회를 실행한다음에 병실등급에 해당하는 콤보박스를 이걸로 바꾼다. 기존은 P0025(/root/init/P0025list/P0025)였다.
  277. //submit("TRPMB00303");
  278. model.setValue("/root/main/bedinfo/todd_old" , "99991231");
  279. model.refresh();
  280. ]]>
  281. </script>
  282. <script type="javascript">
  283. <![CDATA[
  284. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  285. function fInitialize()
  286. {
  287. model.removeNodeset("/root/main/gridlist");
  288. model.makeNode("/root/main/gridlist/roominfolist");
  289. model.makeNode("/root/main/gridlist/item/prmisnroomtot");
  290. model.makeNode("/root/main/gridlist/item/basbedtot");
  291. model.makeNode("/root/main/gridlist/item/usebedtot");
  292. model.makeNode("/root/main/gridlist/item/useroomtot");
  293. model.resetInstanceNode("/root/send/data1");
  294. model.resetInstanceNode("/root/send/updateData");
  295. model.resetInstanceNode("/root/main/roominfo");
  296. model.setValue("/root/send/data1/srchcond","1");
  297. ipt_roomcd.visible = false;
  298. cmb_wardcd.visible = false;
  299. cmb_roomgrdecd.visible = false;
  300. cmb_roomtypecd.visible = false;
  301. cmb_orddeptcd.visible = false;
  302. cmb_sex.visible = false;
  303. cmb_prmisnroomflag.visible = false;
  304. cmb_building.visible = false;
  305. model.refresh();
  306. }
  307. function fWardCDInfo()
  308. {
  309. var instcd = getUserInfo("dutplceinstcd");
  310. standard_yn = "orduseyn";
  311. ord_deptflag = "W";
  312. rslt_ref = "/root/hidden/warddeptlist";
  313. sort_field = "deptcd";
  314. sort_method = "desc";
  315. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method);
  316. }
  317. function fflagcheck(init_flag)
  318. {
  319. //ready시 "1"
  320. if ((init_flag == "1") || (init_flag == 'D')) {
  321. grd_list.coldisabled(1) = "true";
  322. grd_list.coldisabled(2) = "true";
  323. } else {
  324. grd_list.coldisabled(1) = "false";
  325. grd_list.coldisabled(2) = "false";
  326. }
  327. }
  328. function fChoiValue(choiflag)
  329. {
  330. //전체/병동/병실/병실등급/병실형태/진료과/성별/허가병실/허가병상/가동병실/가동병상
  331. model.resetInstanceNode("/root/send/data1/srchcondnm");
  332. // model.setValue("/root/send/data2", "") //조회조건 변경시 값 공백처리 smpark
  333. if (choiflag == '1' || choiflag == '9' || choiflag == '10' || choiflag =='11') {
  334. ipt_roomcd.visible = false;
  335. cmb_wardcd.visible = false;
  336. cmb_roomgrdecd.visible = false;
  337. cmb_roomtypecd.visible = false;
  338. cmb_orddeptcd.visible = false;
  339. cmb_sex.visible = false;
  340. cmb_prmisnroomflag.visible = false;
  341. cmb_building.visible = false;
  342. ipt_basedd.visible = false;
  343. } else if (choiflag == '2') {
  344. cmb_wardcd.attribute("left") = "303px";
  345. cmb_wardcd.attribute("top") = "18px";
  346. ipt_roomcd.visible = false;
  347. cmb_wardcd.visible = true;
  348. cmb_roomgrdecd.visible = false;
  349. cmb_roomtypecd.visible = false;
  350. cmb_orddeptcd.visible = false;
  351. cmb_sex.visible = false;
  352. cmb_prmisnroomflag.visible = false;
  353. cmb_building.visible = false;
  354. ipt_basedd.visible = false;
  355. sortNodeList("/root/init2/wardlist", "depthngnm", "asc"); //동병 조회 시 정렬기준 설정
  356. model.setFocus("cmb_wardcd");
  357. } else if (choiflag == '3') {
  358. ipt_roomcd.visible = true;
  359. cmb_wardcd.visible = false;
  360. cmb_roomgrdecd.visible = false;
  361. cmb_roomtypecd.visible = false;
  362. cmb_orddeptcd.visible = false;
  363. cmb_sex.visible = false;
  364. cmb_prmisnroomflag.visible = false;
  365. cmb_building.visible = false;
  366. ipt_basedd.visible = false;
  367. model.setFocus("ipt_roomcd");
  368. } else if (choiflag == '4') {
  369. cmb_roomgrdecd.attribute("left") = "303px";
  370. cmb_roomgrdecd.attribute("top") = "18px";
  371. ipt_roomcd.visible = false;
  372. cmb_wardcd.visible = false;
  373. cmb_roomgrdecd.visible = true;
  374. cmb_roomtypecd.visible = false;
  375. cmb_orddeptcd.visible = false;
  376. cmb_sex.visible = false;
  377. cmb_prmisnroomflag.visible = false;
  378. cmb_building.visible = false;
  379. ipt_basedd.visible = false;
  380. model.setFocus("cmb_roomgrdecd");
  381. } else if (choiflag == '5') {
  382. cmb_roomtypecd.attribute("left") = "303px";
  383. cmb_roomtypecd.attribute("top") = "18px";
  384. ipt_roomcd.visible = false;
  385. cmb_wardcd.visible = false;
  386. cmb_roomgrdecd.visible = false;
  387. cmb_roomtypecd.visible = true;
  388. cmb_orddeptcd.visible = false;
  389. cmb_sex.visible = false;
  390. cmb_prmisnroomflag.visible = false;
  391. cmb_building.visible = false;
  392. ipt_basedd.visible = false;
  393. model.setFocus("cmb_roomtypecd");
  394. } else if (choiflag == '6') {
  395. cmb_orddeptcd.attribute("left") = "303px";
  396. cmb_orddeptcd.attribute("top") = "18px";
  397. ipt_roomcd.visible = false;
  398. cmb_wardcd.visible = false;
  399. cmb_roomgrdecd.visible = false;
  400. cmb_roomtypecd.visible = false;
  401. cmb_orddeptcd.visible = true;
  402. cmb_sex.visible = false;
  403. cmb_prmisnroomflag.visible = false;
  404. cmb_building.visible = false;
  405. ipt_basedd.visible = false;
  406. model.setFocus("cmb_orddeptcd");
  407. } else if (choiflag == '7') {
  408. cmb_sex.attribute("left") = "303px";
  409. cmb_sex.attribute("top") = "18px";
  410. ipt_roomcd.visible = false;
  411. cmb_wardcd.visible = false;
  412. cmb_roomgrdecd.visible = false;
  413. cmb_roomtypecd.visible = false;
  414. cmb_orddeptcd.visible = false;
  415. cmb_sex.visible = true;
  416. cmb_prmisnroomflag.visible = false;
  417. cmb_building.visible = false;
  418. ipt_basedd.visible = false;
  419. model.setFocus("cmb_sex");
  420. } else if (choiflag == '8') {
  421. cmb_prmisnroomflag.attribute("left") = "303px";
  422. cmb_prmisnroomflag.attribute("top") = "18px";
  423. ipt_roomcd.visible = false;
  424. cmb_wardcd.visible = false;
  425. cmb_roomgrdecd.visible = false;
  426. cmb_roomtypecd.visible = false;
  427. cmb_orddeptcd.visible = false;
  428. cmb_sex.visible = false;
  429. cmb_prmisnroomflag.visible = true;
  430. cmb_building.visible = false;
  431. ipt_basedd.visible = false;
  432. model.setFocus("cmb_prmisnroomflag");
  433. }else if (choiflag == '12') {
  434. cmb_building.attribute("left") = "303px";
  435. cmb_building.attribute("top") = "18px";
  436. ipt_roomcd.visible = false;
  437. cmb_wardcd.visible = false;
  438. cmb_roomgrdecd.visible = false;
  439. cmb_roomtypecd.visible = false;
  440. cmb_orddeptcd.visible = false;
  441. cmb_sex.visible = false;
  442. cmb_prmisnroomflag.visible = false;
  443. cmb_building.visible = true;
  444. ipt_basedd.visible = false;
  445. model.setFocus("cmb_building");
  446. }else if (choiflag == '13') {
  447. ipt_basedd.attribute("left") = "303px";
  448. ipt_basedd.attribute("top") = "18px";
  449. ipt_roomcd.visible = false;
  450. cmb_wardcd.visible = false;
  451. cmb_roomgrdecd.visible = false;
  452. cmb_roomtypecd.visible = false;
  453. cmb_orddeptcd.visible = false;
  454. cmb_sex.visible = false;
  455. cmb_prmisnroomflag.visible = false;
  456. cmb_building.visible = false;
  457. ipt_basedd.visible = true;
  458. model.setFocus("ipt_basedd");
  459. }
  460. if (choiflag == "13") {
  461. ipt_basedd.value = getCurrentDate();
  462. } else {
  463. ipt_basedd.value = "";
  464. }
  465. model.refresh();
  466. }
  467. //그리드 enter key입력시 다음셀로 이동(
  468. function fSetGridNextCell(keyCode)
  469. {
  470. // 현재 event Target이 combo일 경우 처리
  471. model.setFocus("body");
  472. model.setFocus("grd_list");
  473. if( keyCode == null) {
  474. var grdCol = grd_list.col +1;
  475. grd_list.col = grdCol;
  476. grd_list.dispatch("onentercell");
  477. grd_list.editCell();
  478. }
  479. if( event.keyCode == keyCode ) {
  480. var grdCol = grd_list.col +1;
  481. grd_list.col = grdCol;
  482. grd_list.dispatch("onentercell");
  483. grd_list.editCell();
  484. }
  485. }
  486. function fPrntSeq(){
  487. var nodeList= instance1.selectNodes("/root/main/gridlist/roominfolistprint");
  488. if((nodeList != null) && (nodeList.length >0 )){
  489. exeReportPreview("RPPMB00301", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
  490. }else{
  491. }
  492. }
  493. ]]>
  494. </script>
  495. </xhtml:head>
  496. <xhtml:body guideline="2,-1;2,2;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  497. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  498. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">병상코드관리</caption>
  499. </group>
  500. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  501. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  502. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  503. <caption id="caption2" class="search_name" style="left:11px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  504. <button id="button1" class="btn1_letter2" navindex="3" style="left:1123px; top:7px; width:56px; height:22px; ">
  505. <caption>조회</caption>
  506. <script type="javascript" ev:event="DOMActivate">
  507. <![CDATA[
  508. model.removeNodeset("/root/main/gridlist");
  509. model.makeNode("/root/main/gridlist/bedinfolist");
  510. model.makeNode("/root/main/gridlist/bedinfolistprint");
  511. model.resetInstanceNode("/root/main/gridlist/roominfolist");
  512. model.resetInstanceNode("/root/main/gridlist/roominfolistprint");
  513. //setInputNodeCurText(); //inputbox 값을 읽어온다 smpark
  514. model.refresh();
  515. var s_srchcond = model.getValue("/root/send/data1/srchcond");
  516. if (s_srchcond == null || s_srchcond == "" || s_srchcond == " ") {
  517. messageBox("조회항목을","C002");
  518. return false;
  519. } else {
  520. submit("TRPMB00304");
  521. // 종료된 병상 표시
  522. // 요청은 없었으나 만들어둠. 필요하면 풀어서 사용
  523. /*
  524. var cnt = instance1.selectNodes("/root/main/gridlist/bedinfolist").length;
  525. for (var i = 1; i <= cnt; i++) {
  526. if (eval(model.getValue("/root/main/gridlist/bedinfolist[" + i + "]/todd")) < eval(getCurrentDate())) {
  527. grd_list.rowStyle(i, "all", "color") = "#ff5050";
  528. }
  529. }
  530. */
  531. }
  532. ]]>
  533. </script>
  534. </button>
  535. <line id="line13" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  536. <select1 id="cm_gubun" ref="/root/send/data1/srchcond" class="combo_s_essential" navindex="1" appearance="minimal" style="left:100px; top:8px; width:200px; height:19px; ">
  537. <choices>
  538. <item>
  539. <label>병동</label>
  540. <value>2</value>
  541. </item>
  542. <item>
  543. <label>병실호수</label>
  544. <value>3</value>
  545. </item>
  546. <item>
  547. <label>진료과</label>
  548. <value>6</value>
  549. </item>
  550. </choices>
  551. <script type="javascript" ev:event="xforms-select">
  552. <![CDATA[
  553. var choiflag = model.getValue("/root/send/data1/srchcond");
  554. //검색조건
  555. fChoiValue(choiflag);
  556. model.removeNodeset("/root/main/gridlist");
  557. model.makeNode("/root/main/gridlist/roominfolist");
  558. model.makeNode("/root/main/gridlist/roominfolistprint");
  559. model.resetInstanceNode("/root/main/gridlist/item");
  560. model.refresh();
  561. if (choiflag == '1' || choiflag == '9' || choiflag == '10' || choiflag == '11') {
  562. submit("TRPMB00304");
  563. }
  564. ]]>
  565. </script>
  566. </select1>
  567. <input id="ipt_roomcd" ref="/root/send/data1/srchcondnm" class="input_search" navindex="2" visibility="hidden" style="left:303px; top:8px; width:200px; height:19px; ">
  568. <script type="javascript" ev:event="onkeypress">
  569. <![CDATA[
  570. //병실조회시 Enter 일 경우 조회 smpark
  571. if (event.keyCode=='13') {
  572. button1.dispatch("DOMActivate");
  573. }
  574. ]]>
  575. </script>
  576. </input>
  577. </group>
  578. <caption id="caption20" class="tit_2" style="left:5px; top:55px; width:100px; height:14px; ">병상정보내역</caption>
  579. <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  580. <datagrid id="grd_list" nodeset="/root/main/gridlist/bedinfolist" class="datagrid2" caption="건물^wardcd^병동^병실^병상^병상명^진료과^부진료과1^부진료과2^부진료과3^부진료과4^부진료과5^참고사항^시작일자^종료일자^일련번호^상태^병상&#xA;구분^wardcd_old^roomcd_old^bedcd_old^bednm_old^todd_old^seqno_old" colsep="^" colwidth="55, 0, 158, 77, 77, 100, 120, 100, 100, 100, 100, 100, 170, 90, 90, 35, 35, 50, 40, 40, 40, 41, 40, 40" dataheight="32" explorerbar="sort" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" selectionmode="listbox" tooltip="true" navindex="1" style="left:0px; top:181px; width:1194px; height:559px; ">
  581. <col disabled="true" ref="building" type="combo" style="text-align:center; ">
  582. <choices>
  583. <itemset nodeset="/root/init/PK058list/PK058">
  584. <label ref="cdnm"/>
  585. <value ref="cdid"/>
  586. </itemset>
  587. </choices>
  588. </col>
  589. <!--
  590. <col disabled="true" ref="wardcd" type="combo" style="text-align:center; ">
  591. -->
  592. <!-- JHP, 20090306, 다시 병동 조회해오는걸로 수정 -->
  593. <!--
  594. <choices>
  595. <itemset nodeset="/root/hidden/warddeptlist/dept">
  596. <label ref="depthngnm"/>
  597. <value ref="deptcd"/>
  598. </itemset>
  599. </choices>
  600. <choices>
  601. <itemset nodeset="/root/hidden/init/wardcd">
  602. <label ref="nm"/>
  603. <value ref="cd"/>
  604. </itemset>
  605. </choices>
  606. </col>
  607. -->
  608. <col ref="wardcd"/>
  609. <col ref="wardnm" style="text-align:center; "/>
  610. <col disabled="true" ref="roomcd" style="text-align:center; "/>
  611. <col ref="bedcd"/>
  612. <col ref="bednm"/>
  613. <col disabled="true" ref="orddeptcd" type="combo">
  614. <choices>
  615. <itemset nodeset="/root/hidden/init/orddeptcd">
  616. <label ref="nm"/>
  617. <value ref="cd"/>
  618. </itemset>
  619. </choices>
  620. </col>
  621. <col disabled="true" ref="suborddeptcd1" type="combo">
  622. <choices>
  623. <itemset nodeset="/root/hidden/init/orddeptcd">
  624. <label ref="nm"/>
  625. <value ref="cd"/>
  626. </itemset>
  627. </choices>
  628. </col>
  629. <col disabled="true" ref="suborddeptcd2" type="combo">
  630. <choices>
  631. <itemset nodeset="/root/hidden/init/orddeptcd">
  632. <label ref="nm"/>
  633. <value ref="cd"/>
  634. </itemset>
  635. </choices>
  636. </col>
  637. <col disabled="true" ref="suborddeptcd3" type="combo">
  638. <choices>
  639. <itemset nodeset="/root/hidden/init/orddeptcd">
  640. <label ref="nm"/>
  641. <value ref="cd"/>
  642. </itemset>
  643. </choices>
  644. </col>
  645. <col disabled="true" ref="suborddeptcd4" type="combo">
  646. <choices>
  647. <itemset nodeset="/root/hidden/init/orddeptcd">
  648. <label ref="nm"/>
  649. <value ref="cd"/>
  650. </itemset>
  651. </choices>
  652. </col>
  653. <col disabled="true" ref="suborddeptcd5" type="combo">
  654. <choices>
  655. <itemset nodeset="/root/hidden/init/orddeptcd">
  656. <label ref="nm"/>
  657. <value ref="cd"/>
  658. </itemset>
  659. </choices>
  660. </col>
  661. <col disabled="true" ref="bedrem" type="input"/>
  662. <col autonext="false" disabled="true" ref="fromdd" type="inputdate"/>
  663. <col autonext="false" disabled="true" ref="todd" type="inputdate"/>
  664. <col ref="seqno" visibility="hidden"/>
  665. <col ref="histstat" visibility="hidden" style="left:1782px; top:32px; width:35px; height:23px; "/>
  666. <col type="combo">
  667. <choices>
  668. <item>
  669. <label>추가</label>
  670. <value>Y</value>
  671. </item>
  672. <item>
  673. <label>정규</label>
  674. <value>N</value>
  675. </item>
  676. </choices>
  677. </col>
  678. <col ref="wardcd_old" visibility="hidden"/>
  679. <col ref="roomcd_old" visibility="hidden"/>
  680. <col ref="bedcd_old" visibility="hidden"/>
  681. <col ref="bednm_old" visibility="hidden"/>
  682. <col ref="todd_old" visibility="hidden"/>
  683. <col ref="seqno_old" visibility="hidden"/>
  684. <script type="javascript" ev:event="ondblclick">
  685. <![CDATA[
  686. // 리스트 그리드에서 작업하는것이 하나도 없기때문에 일단 주석으로 막아놓음
  687. // JHP, 20090306
  688. //var cur_col = grd_list.col;
  689. //var cur_row = grd_list.row;
  690. //if (cur_col == 6) {
  691. // result = messageBox("종료일자를 현재 날짜로 종료","S001");
  692. // if (result == 6) {
  693. // model.setValue("/root/main/gridlist/roominfolist["+cur_row+"]/todd",getCurrentDate());
  694. // grd_list.addStatus(cur_row,"update");
  695. // }
  696. //}
  697. ]]>
  698. </script>
  699. <script type="javascript" ev:event="xforms-select">
  700. <![CDATA[
  701. //fSetGridNextCell();
  702. ]]>
  703. </script>
  704. <script type="javascript" ev:event="onendedit">
  705. <![CDATA[
  706. //fSetGridNextCell(13);
  707. ]]>
  708. </script>
  709. <script type="javascript" ev:event="ondayselect">
  710. <![CDATA[
  711. //fSetGridNextCell();
  712. ]]>
  713. </script>
  714. <script type="javascript" ev:event="onaftersort">
  715. <![CDATA[
  716. //sorting 시 인스턴스 구조를 재구성
  717. grd_list.gridToInstance();
  718. ]]>
  719. </script>
  720. <script type="javascript" ev:event="onclick">
  721. <![CDATA[
  722. var row = grd_list.row;
  723. if(row > 0){
  724. model.resetInstanceNode("/root/hidden/bedinfo");
  725. model.resetInstanceNode("/root/main/bedinfo");
  726. model.copyNode("/root/hidden/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
  727. model.copyNode("/root/main/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
  728. model.refresh();
  729. cmb_ward1.dispatch("xforms-select");
  730. }
  731. ]]>
  732. </script>
  733. </datagrid>
  734. <select1 id="cmb_wardcd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:313px; top:18px; width:240px; height:19px; ">
  735. <choices>
  736. <itemset nodeset="/root/init2/wardlist">
  737. <label ref="depthngnm"/>
  738. <value ref="deptcd"/>
  739. </itemset>
  740. </choices>
  741. <!-- JHP, 20090306, 다시 병동 조회해오는걸로 수정 -->
  742. <!--
  743. <choices>
  744. <itemset nodeset="/root/hidden/warddeptlist/dept">
  745. <label ref="depthngnm"/>
  746. <value ref="deptcd"/>
  747. </itemset>
  748. </choices>
  749. -->
  750. <!--<choices>
  751. <itemset nodeset="/root/hidden/init/wardcd">
  752. <label ref="nm"/>
  753. <value ref="cd"/>
  754. </itemset>
  755. </choices>-->
  756. <script type="javascript" ev:event="xforms-select">
  757. <![CDATA[
  758. button1.dispatch("DOMActivate");
  759. ]]>
  760. </script>
  761. </select1>
  762. <select1 id="cmb_roomgrdecd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:323px; top:18px; width:200px; height:19px; ">
  763. <choices>
  764. <itemset nodeset="/root/hidden/roomgrdelist/roomgrde">
  765. <label ref="cdnm"/>
  766. <value ref="cdid"/>
  767. </itemset>
  768. </choices>
  769. <script type="javascript" ev:event="xforms-select">
  770. <![CDATA[
  771. button1.dispatch("DOMActivate");
  772. ]]>
  773. </script>
  774. </select1>
  775. <select1 id="cmb_roomtypecd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:333px; top:18px; width:200px; height:19px; ">
  776. <choices>
  777. <![CDATA[>]]>
  778. <itemset nodeset="/root/init/P0026list/P0026">
  779. <label ref="cdnm"/>
  780. <value ref="cdid"/>
  781. </itemset>
  782. </choices>
  783. <script type="javascript" ev:event="xforms-select">
  784. <![CDATA[
  785. button1.dispatch("DOMActivate");
  786. ]]>
  787. </script>
  788. </select1>
  789. <select1 id="cmb_orddeptcd" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:343px; top:18px; width:200px; height:19px; ">
  790. <choices>
  791. <itemset nodeset="/root/hidden/init/orddeptcd">
  792. <label ref="nm"/>
  793. <value ref="cd"/>
  794. </itemset>
  795. </choices>
  796. <script type="javascript" ev:event="xforms-select">
  797. <![CDATA[
  798. button1.dispatch("DOMActivate");
  799. ]]>
  800. </script>
  801. </select1>
  802. <select1 id="cmb_sex" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:353px; top:18px; width:200px; height:19px; ">
  803. <choices>
  804. <item>
  805. <label>남</label>
  806. <value>M</value>
  807. </item>
  808. <item>
  809. <label>여</label>
  810. <value>F</value>
  811. </item>
  812. </choices>
  813. <script type="javascript" ev:event="xforms-select">
  814. <![CDATA[
  815. button1.dispatch("DOMActivate");
  816. ]]>
  817. </script>
  818. </select1>
  819. <select1 id="cmb_prmisnroomflag" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:363px; top:18px; width:200px; height:19px; ">
  820. <choices>
  821. <item>
  822. <label>Yes</label>
  823. <value>Y</value>
  824. </item>
  825. <item>
  826. <label>No</label>
  827. <value>N</value>
  828. </item>
  829. </choices>
  830. <script type="javascript" ev:event="xforms-select">
  831. <![CDATA[
  832. button1.dispatch("DOMActivate");
  833. ]]>
  834. </script>
  835. </select1>
  836. <select1 id="cmb_building" ref="/root/send/data1/srchcondnm" class="combo_search" navindex="2" visibility="hidden" appearance="minimal" style="left:376px; top:18px; width:200px; height:19px; ">
  837. <choices>
  838. <itemset nodeset="/root/init/srchPK058list/PK058">
  839. <label ref="cdnm"/>
  840. <value ref="cdid"/>
  841. </itemset>
  842. </choices>
  843. <script type="javascript" ev:event="xforms-select">
  844. <![CDATA[
  845. button1.dispatch("DOMActivate");
  846. ]]>
  847. </script>
  848. </select1>
  849. <input id="ipt_basedd" ref="/root/send/data1/srchcondnm" class="input_search" navindex="2" visibility="hidden" inputtype="date" style="left:390px; top:18px; width:200px; height:19px; "/>
  850. <line id="line1" class="line_1" style="x1:0px; y1:176px; x2:1194px; y2:176px; "/>
  851. <caption id="caption7" class="tit_2" style="left:5px; top:161px; width:140px; height:13px; ">병상정보내역 리스트</caption>
  852. <caption id="caption9" class="cell_1" style="left:204px; top:75px; width:66; height:23px; vertical-align:middle; ">병 동</caption>
  853. <caption id="caption8" class="cell_1" style="left:406px; top:75px; width:66; height:23px; vertical-align:middle; ">병 실</caption>
  854. <line id="line6" class="line_2" style="x1:0px; y1:98px; x2:1194px; y2:98px; "/>
  855. <line id="line2" class="line_2" style="x1:0px; y1:123px; x2:1194px; y2:123px; "/>
  856. <caption id="caption12" class="cell_1" style="left:204px; top:125px; width:66px; height:23px; vertical-align:middle; ">종료일자</caption>
  857. <input id="ipt_fromdd1" ref="/root/main/bedinfo/fromdd" class="input_default" navindex="7" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:71px; top:127px; width:128px; height:19px; "/>
  858. <input id="ipt_todd1" ref="/root/main/bedinfo/todd" class="input_default" navindex="8" imemode="disabled" inputtype="date" format="yyyy-mm-dd" style="left:273px; top:127px; width:128px; height:19px; "/>
  859. <caption id="caption15" class="cell_1" style="left:2px; top:125px; width:66px; height:23px; vertical-align:middle; ">시작일자</caption>
  860. <input id="ipt_bedroomrem1" ref="/root/main/bedinfo/bedrem" class="input_default" navindex="10" style="left:475px; top:127px; width:717px; height:19px; "/>
  861. <caption id="caption13" class="cell_1" style="left:405px; top:125px; width:66px; height:23px; vertical-align:middle; ">참고사항</caption>
  862. <select1 id="cmb_ward1" ref="/root/main/bedinfo/wardcd" class="combo_search" navindex="5" appearance="minimal" style="left:273px; top:77px; width:128px; height:19px; ">
  863. <choices>
  864. <itemset nodeset="/root/init2/wardlist">
  865. <label ref="depthngnm"/>
  866. <value ref="deptcd"/>
  867. </itemset>
  868. </choices>
  869. <script type="javascript" ev:event="xforms-select">
  870. <![CDATA[
  871. cmb_room.choices.itemset.attribute("nodeset") = "/root/init2/roomlist[wd = '"+ cmb_ward1.value +"']";
  872. cmb_room.refresh();
  873. ]]>
  874. </script>
  875. </select1>
  876. <select1 id="cmb_orddeptcd1" ref="/root/main/bedinfo/orddeptcd" class="combo_search" navindex="16" appearance="minimal" style="left:71px; top:102px; width:128px; height:19px; ">
  877. <choices>
  878. <itemset nodeset="/root/hidden/init/orddeptcd">
  879. <label ref="nm"/>
  880. <value ref="cd"/>
  881. </itemset>
  882. </choices>
  883. </select1>
  884. <button id="button6" class="btn5_letter4" navindex="30" style="left:1128px; top:50px; width:64px; height:19px; ">
  885. <caption>저 장</caption>
  886. <script type="javascript" ev:event="onclick">
  887. <![CDATA[
  888. var row = grd_list.row;
  889. var rowstatus = grd_list.rowStatus(row);
  890. if( row < 1) {
  891. messageBox("신규등록시 행추가 선택 후 저장 \n " , "E999");
  892. return false;
  893. }
  894. model.copyNode("/root/main/gridlist/bedinfolist[" + row + "]", "/root/main/bedinfo");
  895. if(rowstatus == '0'){
  896. grd_list.addStatus(row, "update");
  897. }
  898. //건물 기본값 세팅
  899. if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/building") == ""){
  900. model.setValue("/root/main/gridlist/bedinfolist["+row+"]/building", "M")
  901. }
  902. //종료일자 기본값 세팅
  903. if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/todd") == ""){
  904. model.setValue("/root/main/gridlist/bedinfolist["+row+"]/todd", "99991231")
  905. }
  906. //시작일자 기본값 세팅
  907. if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/fromdd") == ""){
  908. model.setValue("/root/main/gridlist/bedinfolist["+row+"]/fromdd", getCurrentDate())
  909. }
  910. if(model.getValue("/root/main/gridlist/bedinfolist["+row+"]/bednm") == ""){
  911. model.setValue("/root/main/gridlist/bedinfolist["+row+"]/bednm" , model.getValue("/root/main/bedinfo/bednm"))
  912. }
  913. //필수 입력값 체크
  914. if ((model.getValue("/root/main/gridlist/bedinfolist["+row+"]/wardcd") == "") || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/roomcd") == "")
  915. || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/bedcd") == "") || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/bednm") == "")
  916. || (model.getValue("/root/main/gridlist/bedinfolist["+row+"]/orddeptcd") == ""))
  917. {
  918. messageBox("병동, 병실, 병상, 병상명, 진료과 및 종료일자 정보를","C001");
  919. return false;
  920. }
  921. model.refresh();
  922. model.setValue("/root/send/updateData/datalist", grd_list.getUpdateData());
  923. if (submit("TXPMB00302")) {
  924. model.resetInstanceNode("/root/main/gridlist/bedinfolist");
  925. model.resetInstanceNode("/root/main/item");
  926. model.resetInstanceNode("/root/send/updateData/datalist");
  927. model.resetInstanceNode("/root/main/bedinfo");
  928. grd_list.clearStatus();
  929. submit("TRPMB00304");
  930. }
  931. grd_list.selectionMode = "";
  932. ]]>
  933. </script>
  934. </button>
  935. <select1 id="cmb_building1" ref="/root/main/bedinfo/building" class="combo_search" navindex="4" appearance="minimal" style="left:71px; top:77px; width:128px; height:19px; ">
  936. <choices>
  937. <itemset nodeset="/root/init/PK058list/PK058">
  938. <label ref="cdnm"/>
  939. <value ref="cdid"/>
  940. </itemset>
  941. </choices>
  942. </select1>
  943. <caption id="caption32" class="cell_1" style="left:2px; top:75px; width:66px; height:23px; vertical-align:middle; ">건 물</caption>
  944. <caption id="caption36" class="cell_1" style="left:2px; top:100px; width:66; height:23px; vertical-align:middle; ">진료과</caption>
  945. <line id="line4" class="line_3" style="x1:0px; y1:147px; x2:1194px; y2:147px; "/>
  946. <input id="input1" ref="/root/main/bedinfo/bedcd" class="input_default" navindex="12" imemode="disabled" maxlength="6" style="left:677px; top:77px; width:128px; height:19px; "/>
  947. <caption id="caption5" class="cell_1" style="left:608px; top:75px; width:66px; height:23px; vertical-align:middle; ">병 상</caption>
  948. <caption id="caption10" class="cell_1" style="left:204px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과1</caption>
  949. <select1 id="combo1" ref="/root/main/bedinfo/suborddeptcd1" class="combo_search" navindex="16" appearance="minimal" style="left:273px; top:102px; width:128px; height:19px; ">
  950. <choices>
  951. <itemset nodeset="/root/hidden/init/orddeptcd">
  952. <label ref="nm"/>
  953. <value ref="cd"/>
  954. </itemset>
  955. </choices>
  956. </select1>
  957. <caption id="caption11" class="cell_1" style="left:406px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과2</caption>
  958. <select1 id="combo2" ref="/root/main/bedinfo/suborddeptcd2" class="combo_search" navindex="16" appearance="minimal" style="left:475px; top:102px; width:128px; height:19px; ">
  959. <choices>
  960. <itemset nodeset="/root/hidden/init/orddeptcd">
  961. <label ref="nm"/>
  962. <value ref="cd"/>
  963. </itemset>
  964. </choices>
  965. </select1>
  966. <caption id="caption16" class="cell_1" style="left:608px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과3</caption>
  967. <select1 id="combo3" ref="/root/main/bedinfo/suborddeptcd3" class="combo_search" navindex="16" appearance="minimal" style="left:677px; top:102px; width:128px; height:19px; ">
  968. <choices>
  969. <itemset nodeset="/root/hidden/init/orddeptcd">
  970. <label ref="nm"/>
  971. <value ref="cd"/>
  972. </itemset>
  973. </choices>
  974. </select1>
  975. <select1 id="combo4" ref="/root/main/bedinfo/suborddeptcd4" class="combo_search" navindex="16" appearance="minimal" style="left:879px; top:102px; width:118px; height:19px; ">
  976. <choices>
  977. <itemset nodeset="/root/hidden/init/orddeptcd">
  978. <label ref="nm"/>
  979. <value ref="cd"/>
  980. </itemset>
  981. </choices>
  982. </select1>
  983. <caption id="caption17" class="cell_1" style="left:810px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과4</caption>
  984. <caption id="caption18" class="cell_1" style="left:1002px; top:75px; width:66px; height:23px; vertical-align:middle; ">병상구분</caption>
  985. <button id="button4" class="btn2_letter3" style="left:977px; top:156px; width:53px; height:19px; ">
  986. <caption>행복사</caption>
  987. <script type="javascript" ev:event="DOMActivate">
  988. <![CDATA[
  989. model.setValue("/root/send/updateData/s_wdrm/saveflag","CI");
  990. var cur_row = grd_list.row;
  991. if( cur_row < 1 ){
  992. messageBox("복사할 행을 선택해 주세요!", "E999");
  993. return false;
  994. }
  995. var icur_row = cur_row + 1;
  996. grd_list.insertItem(grd_list.row,"after");
  997. copyNodeType("/root/main/gridlist/bedinfolist["+ icur_row +"]", "/root/main/gridlist/bedinfolist["+ cur_row +"]");
  998. model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/wardcd_old", "");
  999. model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/roomcd_old", "");
  1000. model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/bedcd_old", "");
  1001. model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/todd_old", "");
  1002. model.setValue("/root/main/gridlist/bedinfolist["+ icur_row +"]/seqno_old", "");
  1003. grd_list.rebuild();
  1004. grd_list.addStatus(icur_row,"insert");
  1005. fflagcheck(2);
  1006. ]]>
  1007. </script>
  1008. </button>
  1009. <button id="button5" class="btn2_letter2" visibility="hidden" style="left:891px; top:156px; width:42px; height:19px; ">
  1010. <caption>출력</caption>
  1011. <script type="javascript" ev:event="DOMActivate">
  1012. <![CDATA[
  1013. fPrntSeq();
  1014. ]]>
  1015. </script>
  1016. </button>
  1017. <button id="btn_excsave" class="btn2_letter2" style="left:934px; top:156px; width:42px; height:19px; ">
  1018. <caption>엑셀</caption>
  1019. <script type="javascript" ev:event="DOMActivate">
  1020. <![CDATA[
  1021. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  1022. grd_list.saveExcel(file);
  1023. ]]>
  1024. </script>
  1025. </button>
  1026. <button id="button52" class="btn2_letter3" style="left:1031px; top:156px; width:53px; height:19px; ">
  1027. <caption>행추가</caption>
  1028. <script type="javascript" ev:event="DOMActivate">
  1029. <![CDATA[
  1030. // model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
  1031. // grd_list.addItem();
  1032. // //행추가, 행삽입 버튼 클릭시 셀 단위로 선택할 수 있도록 변경. 입력시 방향키로 이동 함.
  1033. // grd_list.selectionMode = "free";
  1034. model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
  1035. grd_list.addItem();
  1036. var row = grd_list.row;
  1037. if(row > 0){
  1038. model.copyNode("/root/main/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
  1039. model.refresh();
  1040. }
  1041. ]]>
  1042. </script>
  1043. </button>
  1044. <button id="button53" class="btn2_letter3" style="left:1085px; top:156px; width:53px; height:19px; ">
  1045. <caption>행삭제</caption>
  1046. <script type="javascript" ev:event="DOMActivate">
  1047. <![CDATA[
  1048. var cur_row = grd_list.row;
  1049. grd_list.deleteItem(cur_row);
  1050. ]]>
  1051. </script>
  1052. </button>
  1053. <button id="button54" class="btn2_letter3" style="left:1139px; top:156px; width:53px; height:19px; ">
  1054. <caption>행삽입</caption>
  1055. <script type="javascript" ev:event="DOMActivate">
  1056. <![CDATA[
  1057. // model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
  1058. // var cur_row = grd_list.row;
  1059. // grd_list.insertItem(cur_row,"after");
  1060. // grd_list.selectionMode = "free";
  1061. model.setValue("/root/send/updateData/s_wdrm/saveflag","AI");
  1062. var cur_row = grd_list.row;
  1063. grd_list.insertItem(cur_row,"after");
  1064. var row = grd_list.row;
  1065. if(row > 0){
  1066. model.copyNode("/root/main/bedinfo","/root/main/gridlist/bedinfolist[" + row + "]");
  1067. model.refresh();
  1068. }
  1069. ]]>
  1070. </script>
  1071. </button>
  1072. <select1 id="cmb_room" ref="/root/main/bedinfo/roomcd" class="combo_search" navindex="5" appearance="minimal" style="left:475px; top:77px; width:128px; height:19px; ">
  1073. <choices>
  1074. <itemset nodeset="/root/init2/roomlist">
  1075. <label ref="nm"/>
  1076. <value ref="cd"/>
  1077. </itemset>
  1078. </choices>
  1079. </select1>
  1080. <caption id="caption1" class="cell_1" style="left:810px; top:75px; width:66px; height:23px; vertical-align:middle; ">병상명</caption>
  1081. <input id="input2" ref="/root/main/bedinfo/bednm" class="input_default" navindex="12" maxlength="6" style="left:879px; top:77px; width:118px; height:19px; "/>
  1082. <select1 id="radio1" ref="/root/main/bedinfo/extrbedyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:1075px; top:76px; width:115px; height:20px; border-style:none; ">
  1083. <choices>
  1084. <item>
  1085. <label>정규</label>
  1086. <value>N</value>
  1087. </item>
  1088. <item>
  1089. <label>추가</label>
  1090. <value>Y</value>
  1091. </item>
  1092. </choices>
  1093. </select1>
  1094. <input id="input3" ref="/root/main/bedinfo/todd_old" visibility="hidden" inputtype="date" style="left:305px; top:127px; width:110px; height:19px; "/>
  1095. <bool id="bool1" checkvalue="Y,N" ref="/root/send/data1/roomflag" style="left:155px; top:160px; width:15px; height:15px; "/>
  1096. <caption id="caption3" style="left:170px; top:160px; width:70px; height:15px; text-align:left; ">병실이력</caption>
  1097. <select1 id="combo5" ref="/root/main/bedinfo/suborddeptcd5" class="combo_search" navindex="16" appearance="minimal" style="left:1071px; top:102px; width:118px; height:19px; ">
  1098. <choices>
  1099. <itemset nodeset="/root/hidden/init/orddeptcd">
  1100. <label ref="nm"/>
  1101. <value ref="cd"/>
  1102. </itemset>
  1103. </choices>
  1104. </select1>
  1105. <caption id="caption4" class="cell_1" style="left:1002px; top:100px; width:66px; height:23px; vertical-align:middle; ">부진료과5</caption>
  1106. </group>
  1107. <group id="group5" style="left:0px; top:757px; width:1195px; height:27px; ">
  1108. <button id="button2" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  1109. <caption>초기화</caption>
  1110. <script type="javascript" ev:event="DOMActivate">
  1111. <![CDATA[
  1112. fInitialize();
  1113. model.refresh();
  1114. // grd_list.selectionMode = "";
  1115. ]]>
  1116. </script>
  1117. </button>
  1118. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1119. <button id="button3" class="btn4_letter2" visibility="hidden" _auth="X" style="left:1066px; top:5px; width:56px; height:22px; ">
  1120. <caption>저장</caption>
  1121. <script type="javascript" ev:event="DOMActivate">
  1122. <![CDATA[
  1123. //그리드 행 번호 가져오기
  1124. var cur_row = grd_list.row;
  1125. // if (grd_list.addStatus == "D"
  1126. if ((model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/wardcd") == "") || (model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/roomcd") == "") || (model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/todd") == ""))
  1127. {
  1128. messageBox("병동 병실 종료일자를","C001");
  1129. return false;
  1130. }
  1131. //2007.10.31 층정보는 숫자로 입력해야한다.
  1132. var wdrm_posinfocd = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/posinfocd");
  1133. if (wdrm_posinfocd.isNumber() != true) {
  1134. messageBox("층정보는 숫자형식으로 입력해야 합니다","E999");
  1135. return false;
  1136. }
  1137. var wdrm_bedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/bedcnt");
  1138. var wdrm_tempaddbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/tempaddbedcnt");
  1139. var wdrm_tempclosbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/tempclosbedcnt");
  1140. var wdrm_basbedcnt = model.getValue("/root/main/gridlist/roominfolist["+cur_row+"]/basbedcnt");
  1141. if (wdrm_bedcnt.isNumber() != true || wdrm_tempaddbedcnt.isNumber() != true ||
  1142. wdrm_tempclosbedcnt.isNumber() != true || wdrm_basbedcnt.isNumber() != true) {
  1143. messageBox("병상수,추가병상,폐쇄병상,허가병상수는 숫자형식으로 입력해야 합니다","E999");
  1144. return false;
  1145. }
  1146. model.setValue("/root/send/updateData/datalist",grd_list.getUpdateData());
  1147. if (submit("TXPMB00302")) {
  1148. model.resetInstanceNode("/root/main/gridlist/roominfolist");
  1149. model.resetInstanceNode("/root/main/item");
  1150. submit("TRPMB00304");
  1151. }
  1152. grd_list.selectionMode = "";
  1153. ]]>
  1154. </script>
  1155. </button>
  1156. </group>
  1157. </xhtml:body>
  1158. </xhtml:html>