SMAEA02600_간호기록관리.xrw 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  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>CyberKnife간호기록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <patinfo>
  11. <patinfolist/>
  12. </patinfo>
  13. <patpsn>
  14. <patpsninfo>
  15. <pid/>
  16. <hngnm/>
  17. <instcd/>
  18. <iogb/>
  19. <mpphontel/>
  20. <hometel/>
  21. <sex/>
  22. <age/>
  23. <rrgstno/>
  24. <homedetladdr/>
  25. </patpsninfo>
  26. </patpsn>
  27. <carerecinfo>
  28. <carerecmat>
  29. <ckno/>
  30. <cknoseq/>
  31. <cybplanimg/>
  32. <fiducialdd/>
  33. <fiducialhh/>
  34. <fiducialmm/>
  35. <rayphodd1/>
  36. <rayphohh1/>
  37. <rayphomm1/>
  38. <rayphodd2/>
  39. <rayphohh2/>
  40. <rayphomm2/>
  41. <reqinstcd/>
  42. <reqinstcd2/>
  43. <reqdeptcd1/>
  44. <reqdrid1/>
  45. <reqdeptcd2/>
  46. <reqdrid2/>
  47. <exeinstcd/>
  48. <exeinstcd2/>
  49. <execdeptcd1/>
  50. <execdrid1/>
  51. <execdeptcd2/>
  52. <execdrid2/>
  53. <pid/>
  54. <instcd/>
  55. <iudgb/>
  56. </carerecmat>
  57. <caresumdetl>
  58. <seq/>
  59. <curepartcnt/>
  60. <curefromdd/>
  61. <curetodd/>
  62. <cktype/>
  63. <tumkind/>
  64. <partgrupcd/>
  65. <partcd/>
  66. <diagnm/>
  67. <diagcd/>
  68. <cklocation/>
  69. <curecnt/>
  70. <memo/>
  71. <ckno/>
  72. <cknoseq/>
  73. <pid/>
  74. <curemdyn/>
  75. <partgrupnm/>
  76. <partnm/>
  77. </caresumdetl>
  78. <carerecdetl>
  79. <curepartcnt/>
  80. <pxseq/>
  81. <fx/>
  82. <seq/>
  83. <cureldd/>
  84. <bp/>
  85. <pulse/>
  86. <breth/>
  87. <bdtp/>
  88. <memo/>
  89. <ckno/>
  90. <cknoseq/>
  91. </carerecdetl>
  92. </carerecinfo>
  93. <popupendflag/>
  94. </main>
  95. <send>
  96. <reqdata>
  97. <pid/>
  98. <ckno/>
  99. <cknoseq/>
  100. <gb/>
  101. <suppdeptcd/>
  102. <srchflag/>
  103. </reqdata>
  104. <globalinstance>
  105. <instance1/>
  106. </globalinstance>
  107. <popdata>
  108. <pid/>
  109. <ckno/>
  110. <cknoseq/>
  111. <lrgcd/>
  112. <partgrupcd/>
  113. <diagcd/>
  114. <diagnm/>
  115. <partcd/>
  116. <suppdeptcd/>
  117. </popdata>
  118. </send>
  119. <senddata>
  120. <execdata>
  121. <carerecmat/>
  122. <carerecdetl/>
  123. <caresumdetl/>
  124. </execdata>
  125. </senddata>
  126. <init>
  127. <cmb_info>
  128. <seqinfo>
  129. <cknoseq/>
  130. <cknoseqnm/>
  131. </seqinfo>
  132. </cmb_info>
  133. <cmb_info1>
  134. <partgrupcdlist>
  135. <basecd/>
  136. <basecdflagdesc/>
  137. </partgrupcdlist>
  138. <partcdlist>
  139. <basecd/>
  140. <basecdflagdesc/>
  141. </partcdlist>
  142. </cmb_info1>
  143. <cmbinfo>
  144. <instcd>
  145. <Z0007>
  146. <cdid/>
  147. <cdnm/>
  148. </Z0007>
  149. </instcd>
  150. </cmbinfo>
  151. <userlist>
  152. <usercombo>
  153. <userid/>
  154. <usernm/>
  155. </usercombo>
  156. </userlist>
  157. <userlist1>
  158. <usercombo>
  159. <userid/>
  160. <usernm/>
  161. </usercombo>
  162. </userlist1>
  163. <cmb_cdinfo>
  164. <targetnolist>
  165. <basecd/>
  166. <basecdflagdesc/>
  167. </targetnolist>
  168. <cktypelist>
  169. <basecd/>
  170. <basecdflagdesc/>
  171. </cktypelist>
  172. <tumorkindlist>
  173. <basecd/>
  174. <basecdflagdesc/>
  175. </tumorkindlist>
  176. <lesionlist>
  177. <basecd/>
  178. <basecdflagdesc/>
  179. </lesionlist>
  180. <tumortypelist>
  181. <basecd/>
  182. <basecdflagdesc/>
  183. </tumortypelist>
  184. <diagcdlist>
  185. <basecd/>
  186. <basecdflagdesc/>
  187. </diagcdlist>
  188. <locationlist>
  189. <basecd/>
  190. <basecdflagdesc/>
  191. </locationlist>
  192. <fractiontypelist>
  193. <basecd/>
  194. <basecdflagdesc/>
  195. </fractiontypelist>
  196. <fxlist>
  197. <basecd/>
  198. <basecdflagdesc/>
  199. </fxlist>
  200. </cmb_cdinfo>
  201. </init>
  202. <hidden>
  203. <instlist/>
  204. <reqinoutorddeptlist/>
  205. <exeinoutorddeptlist/>
  206. <reqinoutorddeptdoctorlist1/>
  207. <reqinoutorddeptdoctorlist2/>
  208. <exeinoutorddeptdoctorlist1/>
  209. <exeinoutorddeptdoctorlist2/>
  210. </hidden>
  211. <temp>
  212. <count/>
  213. </temp>
  214. </root>
  215. </instance>
  216. <script type="javascript" ev:event="xforms-ready">
  217. <![CDATA[
  218. //=====================================================================================================
  219. // 타병원조회를 위한 세팅
  220. //-----------------------------------------------------------------------------------------------------
  221. var instcd = "012";
  222. var rslt_ref = "/root/hidden/reqinoutorddeptlist1";
  223. var sort_field = "dispseq";
  224. var sort_method = "asc";
  225. var basedd = getCurrentDate();
  226. //zsdfGetInOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, basedd );
  227. zbcfGetKindCodeList(new Array("A0025"), new Array("Z0007"), new Array("/root/hidden/instlist"), true, new Array("cdnm"), new Array("asc"));
  228. //=====================================================================================================
  229. zbcfGetCodeList( new Array("Z0007"), new Array("/root/init/cmbinfo/instcd"));
  230. //병원코드
  231. submit("TRZBC00101", false);
  232. model.setValue("/root/send/reqdata/pid", model.getValue("/root/send/popdata/pid"));
  233. model.setValue("/root/send/reqdata/ckno", model.getValue("/root/send/popdata/ckno"));
  234. // model.setValue("/root/send/reqdata/pid", "58882"); //상준 테스트
  235. // model.setValue("/root/send/reqdata/ckno","922");
  236. // model.setValue("/root/send/reqdata/cknoseq","3");
  237. // 개발
  238. // model.setValue("/root/send/reqdata/pid", "19320891"); //상준 테스트
  239. // model.setValue("/root/send/reqdata/ckno","907");
  240. // model.setValue("/root/send/reqdata/cknoseq","1");
  241. aezfSetSuppDeptcd();
  242. model.setValue("/root/send/reqdata/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  243. //CKNO seq 갖고오기
  244. submit("TRAEA02601");
  245. // 저장되어 있던 정보를 보여준다
  246. combo1.select(0);
  247. //코드조회
  248. submit("TRAEA02605");
  249. //환자정보
  250. submit("TRAEA02602");
  251. var instcd = getUserInfo("dutplceinstcd");
  252. var standard_yn = "orduseyn";
  253. var ord_deptflag = 'D';
  254. var rslt_ref = "/root/hidden1/orddeptlist";
  255. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  256. submit("TRAEA02604");
  257. if (model.getValue("/root/send/reqdata/cknoseq") == ""){
  258. messageBox("해당 CK NO 순번이 없어서 간호기록을 할 수가 없습니다.", "E999", "");
  259. group1.disabled = true;
  260. btn_save.disabled = true;
  261. btn_del.disabled = true;
  262. button5.visible = false;
  263. return;
  264. }
  265. ]]>
  266. </script>
  267. <submission id="TRAEA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/cmb_info"/>
  268. <submission id="TRAEA02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/patpsn"/>
  269. <submission id="TRAEA02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/carerecinfo"/>
  270. <submission id="TRZBC00101"/>
  271. <submission id="TXAEA02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata" resultref="/root/temp"/>
  272. <submission id="TXAEA02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata" resultref="/root/temp"/>
  273. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
  274. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
  275. <submission id="TRAEA02604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info1"/>
  276. <submission id="TRAEA02605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_cdinfo"/>
  277. <submission id="TRAEA03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/init/tempdata"/>
  278. <!-- 타병원조회-->
  279. <submission id="TRZSU10117" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  280. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  281. </model>
  282. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  283. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  284. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  285. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  286. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  287. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  288. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  289. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  290. <script type="javascript">
  291. <![CDATA[
  292. /****************************************************************************************************************************************************
  293. @ 해당 조건에 대한 검사내역을 조회한다.
  294. *****************************************************************************************************************************************************/
  295. function readfunc(){
  296. model.removeNodeset("/root/main/carerecinfo/carerecdetl");
  297. model.removeNodeset("/root/main/carerecinfo/caresumdetl");
  298. //model.resetInstanceNode("/root/main/patpsn/patpsninfo");
  299. model.resetInstanceNode("/root/main/carerecinfo/carerecmat");
  300. if (submit("TRAEA02603")){
  301. btn_save.disabled = false;
  302. if (model.getValue("/root/main/carerecinfo/carerecmat/ckno") == ""){
  303. btn_del.disabled = true;
  304. model.setValue("/root/main/carerecinfo/carerecmat/iudgb", "I");
  305. model.setValue("/root/main/carerecinfo/carerecmat/ckno", model.getValue("/root/send/reqdata/ckno"));
  306. model.setValue("/root/main/carerecinfo/carerecmat/pid", model.getValue("/root/send/reqdata/pid"));
  307. model.setValue("/root/main/carerecinfo/carerecmat/cknoseq", model.getValue("/root/send/reqdata/cknoseq"));
  308. }else{
  309. btn_del.disabled = false;
  310. }
  311. if (model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1") == "" || model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1") == "-"){
  312. }else{
  313. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1");
  314. var zsuResultRef = "/root/hidden/zsu/userlist";
  315. model.removenode(zsuResultRef);
  316. model.makenode(zsuResultRef);
  317. setParameter("dutplcecd", deptcd);
  318. setParameter("flag", "_D");
  319. submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
  320. model.copyNode("/root/hidden1/userlist", "/root/hidden/zsu/userlist");
  321. }
  322. if (model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2") == "" || model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2") == "-"){
  323. }else{
  324. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2");
  325. var zsuResultRef = "/root/hidden/zsu/userlist";
  326. model.removenode(zsuResultRef);
  327. model.makenode(zsuResultRef);
  328. setParameter("dutplcecd", deptcd);
  329. setParameter("flag", "_D");
  330. submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
  331. model.copyNode("/root/hidden1/userlist1", "/root/hidden/zsu/userlist");
  332. }
  333. if (model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1") == "" || model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1") == "-"){
  334. }else{
  335. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1");
  336. zsufGetUserInfoCombo(deptcd, "/root/init/userlist","_D");
  337. model.refresh();
  338. }
  339. if (model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2") == "" || model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2") == "-"){
  340. }else{
  341. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2");
  342. zsufGetUserInfoCombo(deptcd, "/root/init/userlist1","_D");
  343. model.refresh();
  344. }
  345. }
  346. //의뢰병원 조회건수 있을경우 콤보박스 선택됨
  347. if( model.getValue("/root/main/carerecinfo/carerecmat/reqinstcd") != ''){
  348. cmb_reqhosp.dispatch("xforms-select");
  349. }
  350. //의뢰과1 조회건수 있을경우 콤보박스 선택됨
  351. if( model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1") != ''){
  352. cmb_reqdeptcd1.dispatch("xforms-value-changed");
  353. }
  354. //의뢰병원2 조회건수 있을경우 콤보박스 선택됨
  355. if( model.getValue("/root/main/carerecinfo/carerecmat/reqinstcd2") != ''){
  356. combo2.dispatch("xforms-select");
  357. }
  358. //의뢰과2 조회건수 있을경우 콤보박스 선택됨
  359. if( model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2") != ''){
  360. cmb_reqdeptcd2.dispatch("xforms-value-changed");
  361. }
  362. //시행병원 조회건수 있을경우 콤보박스 선택됨
  363. if( model.getValue("/root/main/carerecinfo/carerecmat/exeinstcd") != ''){
  364. cmb_exeinstcd.dispatch("xforms-select");
  365. }
  366. //치료과1 조회건수 있을경우 콤보박스 선택됨
  367. if( model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1") != ''){
  368. cmb_execdeptcd1.dispatch("xforms-value-changed");
  369. }
  370. //시행병원2 조회건수 있을경우 콤보박스 선택됨
  371. if( model.getValue("/root/main/carerecinfo/carerecmat/exeinstcd2") != ''){
  372. combo3.dispatch("xforms-select");
  373. }
  374. //치료과2 조회건수 있을경우 콤보박스 선택됨
  375. if( model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2") != ''){
  376. cmb_execdeptcd2.dispatch("xforms-value-changed");
  377. }
  378. model.refresh();
  379. }
  380. /****************************************************************************************************************************************************
  381. @ 간호기록 저장시 항목체크
  382. *****************************************************************************************************************************************************/
  383. function datacheck(){
  384. if (isDate(model.getValue("/root/main/carerecinfo/carerecmat/fiducialdd")) == false){
  385. messageBox("Fiducial일자의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  386. return false;
  387. }
  388. if (model.getValue("/root/main/carerecinfo/carerecmat/fiducialhh") != ""){
  389. if (model.getValue("/root/main/carerecinfo/carerecmat/fiducialhh") > "23"){
  390. messageBox("Fiducial일자의 시간이 잘못 입력되었습니다.", "E999", "");
  391. return false;
  392. }
  393. }
  394. if (model.getValue("/root/main/carerecinfo/carerecmat/fiducialmm") != ""){
  395. if (model.getValue("/root/main/carerecinfo/carerecmat/fiducialmm") > "59"){
  396. messageBox("Fiducial일자의 분이 잘못 입력되었습니다.", "E999", "");
  397. return false;
  398. }
  399. }
  400. if (isDate(model.getValue("/root/main/carerecinfo/carerecmat/rayphodd1")) == false){
  401. messageBox("방사선 촬영일자1 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  402. return false;
  403. }
  404. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphohh1") != ""){
  405. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphohh1") > "23"){
  406. messageBox("방사선 촬영일자1의 시간이 잘못 입력되었습니다.", "E999", "");
  407. return false;
  408. }
  409. }
  410. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphomm1") != ""){
  411. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphomm1") > "59"){
  412. messageBox("방사선 촬영일자1의 분이 잘못 입력되었습니다.", "E999", "");
  413. return false;
  414. }
  415. }
  416. if (isDate(model.getValue("/root/main/carerecinfo/carerecmat/rayphodd2")) == false){
  417. messageBox("방사선 촬영일자2 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  418. return false;
  419. }
  420. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphohh2") != ""){
  421. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphohh2") > "23"){
  422. messageBox("방사선 촬영일자2의 시간이 잘못 입력되었습니다.", "E999", "");
  423. return false;
  424. }
  425. }
  426. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphomm2") != ""){
  427. if (model.getValue("/root/main/carerecinfo/carerecmat/rayphomm2") > "59"){
  428. messageBox("방사선 촬영일자2의 분이 잘못 입력되었습니다.", "E999", "");
  429. return false;
  430. }
  431. }
  432. for (var i = 1; i < grd_nurrec.rows; i ++){
  433. if (isDate(model.getValue("/root/main/carerecinfo/carerecdetl[" + i + "]/cureldd")) == false){
  434. messageBox("치료일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  435. return false;
  436. }
  437. }
  438. return true;
  439. }
  440. /****************************************************************************************************************************************************
  441. @ 간호기록 저장
  442. *****************************************************************************************************************************************************/
  443. function ExecData(){
  444. /*
  445. for (var i = 1; i < grd_nursum.rows; i++){
  446. if (model.getValue("/root/main/carerecinfo/caresumdetl[" + i + "]/curepartcnt") == "" || model.getValue("/root/main/carerecinfo/caresumdetl[" + i + "]/curepartcnt") == "0"){
  447. messageBox("치료부위수는 필수 입력 항목입니다.", "E999", "");
  448. return;
  449. }
  450. if (isDate(model.getValue("/root/main/carerecinfo/caresumdetl[" + i + "]/curefromdd")) == false){
  451. messageBox(i + "번째 행의 치료시작일자의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  452. return;
  453. }
  454. if (isDate(model.getValue("/root/main/carerecinfo/caresumdetl[" + i + "]/curetodd")) == false){
  455. messageBox(i + "번째 행의 치료종료일자의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  456. return;
  457. }
  458. }
  459. */
  460. // 저장하기 전에 간호기록현황 에서 TatgetNo 필수입력 체크하기
  461. for (var i = 1; i < grd_nurrec.rows; i++){
  462. if (model.getValue("/root/main/carerecinfo/carerecdetl[" + i + "]/curepartcnt") == "" ){
  463. // alert (model.getValue("/root/main/carerecinfo/carerecdetl[" + i + "]/curepartcnt"));
  464. messageBox("간호기록 TatgetNo는 필수 입력 항목입니다.", "E999", "");
  465. return;
  466. }
  467. }
  468. var update = getGridUpdateData(grd_nurrec);
  469. model.setValue("/root/senddata/execdata/carerecdetl", update);
  470. var update1 = getGridUpdateData(grd_nursum);
  471. model.setValue("/root/senddata/execdata/caresumdetl", update1);
  472. model.copyNode("/root/senddata/execdata/carerecmat", "/root/main/carerecinfo/carerecmat");
  473. if (submit("TXAEA02601")){
  474. readfunc();
  475. }
  476. }
  477. /****************************************************************************************************************************************************
  478. @ 데이터 삭제
  479. *****************************************************************************************************************************************************/
  480. function DelData(){
  481. model.copyNode("/root/senddata/execdata/carerecmat", "/root/main/carerecinfo/carerecmat");
  482. if (submit("TXAEA02602")){
  483. submit("TRAEA02601");
  484. combo1.select(0);
  485. if (model.getValue("/root/send/reqdata/cknoseq") == ""){
  486. messageBox("해당 CK NO 순번이 없어서 간호기록을 할 수가 없습니다.", "E999", "");
  487. group1.disabled = true;
  488. btn_save.disabled = true;
  489. btn_del.disabled = true;
  490. return;
  491. }
  492. readfunc();
  493. }
  494. }
  495. /****************************************************************************************************************************************************
  496. @ 날짜 형식에 대한 적합여부 체크
  497. *****************************************************************************************************************************************************/
  498. function isDate(str) {
  499. if (str == "") return true; // 빈건 체크안함
  500. if (trim(str) == "") return true; // 빈건 체크안함
  501. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  502. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  503. var yy = new Number(str.substring(0, 4));
  504. var mm = new Number(str.substring(4, 6)) - 1;
  505. var dd = new Number(str.substring(6, 8));
  506. var date = new Date(yy, mm, dd);
  507. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  508. if (yy != date.getFullYear() ||
  509. mm != date.getMonth() ||
  510. dd != date.getDate()) {
  511. return false; // 존재하지 않는 날짜
  512. }
  513. return true; // 존재하는 날짜
  514. }
  515. /****************************************************************************************************************************************************
  516. @ 문자에 대한 TRIM 작업
  517. *****************************************************************************************************************************************************/
  518. function trim(data){
  519. return data.replace(/(^\s*)|(\s*$)/g, "");
  520. }
  521. /****************************************************************************************************************************************************
  522. @ MD 승인된 데이터를 수정하려고 하면 수정못하게 막기위해 체크한다.
  523. *****************************************************************************************************************************************************/
  524. function CuremdynChk(){
  525. var row = 0;
  526. var row = grd_nursum.row;
  527. // alert("선택된로우넘버 : " + row);
  528. if(model.getValue("/root/main/carerecinfo/caresumdetl[" + row + "]/curemdyn")=="Y"){
  529. messageBox("승인","I001");
  530. return(0);
  531. }
  532. }
  533. ]]>
  534. </script>
  535. </xhtml:head>
  536. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  537. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; ">CyberKnife 간호기록</caption>
  538. <line id="line6" class="line_3" style="x1:0px; y1:165px; x2:1194px; y2:165px; "/>
  539. <group id="group2" style="left:1px; top:20px; width:1194px; height:35px; vertical-align:top; ">
  540. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  541. <line id="line13" style="x1:1094px; y1:7px; x2:1094px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  542. <button id="btn_sea" class="btn1_letter2" style="left:1110px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  543. <caption>조회</caption>
  544. <script type="javascript" ev:event="DOMActivate">
  545. <![CDATA[
  546. if( model.getValue("/root/send/reqdata/srchflag") == "ckno" ) {
  547. //CKNO seq 갖고오기
  548. submit("TRAEA02601");
  549. combo1.select(0);
  550. //등록번호 갖고오기
  551. submit("TRAEA03902");
  552. model.setValue("/root/send/reqdata/pid", model.getValue("/root/init/tempdata/pidinfo/pid"));
  553. //환자정보 조회
  554. submit("TRAEA02602");
  555. // 적용 후 flag값 초기화
  556. model.setValue("/root/send/reqdata/srchflag", "");
  557. }
  558. model.setValue("/root/send/reqdata/gb", "R");
  559. readfunc();
  560. ]]>
  561. </script>
  562. </button>
  563. <select1 id="combo1" ref="/root/send/reqdata/cknoseq" navindex="2" appearance="minimal" style="left:215px; top:8px; width:100px; height:19px; ">
  564. <choices>
  565. <itemset nodeset="/root/init/cmb_info/seqinfo">
  566. <label ref="cknoseqnm"/>
  567. <value ref="cknoseq"/>
  568. </itemset>
  569. </choices>
  570. <script type="javascript" ev:event="xforms-value-changed">
  571. <![CDATA[
  572. readfunc();
  573. ]]>
  574. </script>
  575. </select1>
  576. </group>
  577. <caption id="caption47" class="search_name" style="left:20px; top:30px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">CK 번호 :</caption>
  578. <input id="ipt_basecd" ref="/root/send/reqdata/ckno" class="input_search" disabled="false" navindex="1" _chartype="upper" style="left:107px; top:28px; width:105px; height:19px; ">
  579. <script type="javascript" ev:event="onkeydown">
  580. <![CDATA[
  581. model.setValue("/root/send/reqdata/srchflag", "ckno");
  582. inputEnterKey("btn_sea","DOMActivate");
  583. ]]>
  584. </script>
  585. </input>
  586. <group id="group1" style="left:0px; top:60px; width:1194px; height:715px; ">
  587. <caption id="caption29" class="cell_1" style="left:0px; top:100px; width:140px; height:23px; vertical-align:middle; ">Fiducial 시행일</caption>
  588. <caption id="caption46" class="cell_1" style="left:0px; top:125px; width:140px; height:73px; vertical-align:middle; ">
  589. <![CDATA[CyberKnife Plan Image
  590. 방사선 촬영일]]>
  591. </caption>
  592. <line id="line10" class="line_2" style="x1:0px; y1:199px; x2:1192px; y2:199px; "/>
  593. <output id="op" ref="/root/main/patpsn/patpsninfo/sex" class="output_fix" style="left:93px; top:52px; width:55px; height:19px; text-align:center; "/>
  594. <output id="opRT" ref="/root/main/patpsn/patpsninfo/hngnm" class="output_fix" style="left:324px; top:27px; width:120px; height:19px; text-align:center; "/>
  595. <button id="button2" class="btn4_letter2" style="left:1137px; top:688px; width:56px; height:22px; ">
  596. <caption>종료</caption>
  597. <script type="javascript" ev:event="onclick">
  598. <![CDATA[
  599. window.close();
  600. ]]>
  601. </script>
  602. </button>
  603. <caption id="caption43" style="left:155px; top:54px; width:10px; height:20px; vertical-align:middle; ">/</caption>
  604. <caption id="caption22" class="tit_2" style="left:6px; top:5px; width:100px; height:13px; ">환자 인적사항</caption>
  605. <caption id="caption45" class="tit_2" style="left:6px; top:444px; width:105px; height:13px; ">간호기록 현황</caption>
  606. <caption id="caption12" class="cell_1" style="left:0px; top:26px; width:90px; height:23px; ">등록번호</caption>
  607. <caption id="caption4" class="cell_1" style="left:231px; top:26px; width:90px; height:23px; text-align:left; vertical-align:middle; ">환자이름</caption>
  608. <line id="line17" class="line_2" style="x1:0px; y1:50px; x2:1192px; y2:50px; "/>
  609. <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:1192px; y2:21px; "/>
  610. <line id="line4" class="line_2" style="x1:0px; y1:48px; x2:1192px; y2:48px; "/>
  611. <line id="line8" class="line_3" style="x1:0px; y1:199px; x2:1192px; y2:199px; "/>
  612. <line id="line2" class="line_1" style="x1:0px; y1:95px; x2:1192px; y2:95px; "/>
  613. <output id="opAge" ref="/root/main/patpsn/patpsninfo/age" class="output_fix" style="left:172px; top:52px; width:55px; height:19px; text-align:center; "/>
  614. <caption id="caption6" class="cell_1" style="left:231px; top:50px; width:90px; height:23px; text-align:left; vertical-align:middle; ">주민번호</caption>
  615. <line id="line11" class="line_3" style="x1:0px; y1:73px; x2:1192px; y2:73px; "/>
  616. <output id="opID" ref="/root/main/patpsn/patpsninfo/pid" class="output_fix" style="left:93px; top:27px; width:134px; height:19px; text-align:center; "/>
  617. <button id="btn_save" class="btn4_letter2" disabled="true" style="left:1019px; top:688px; width:56px; height:22px; ">
  618. <caption>저장</caption>
  619. <script type="javascript" ev:event="onclick">
  620. <![CDATA[
  621. // if (datacheck() == false){
  622. // return;
  623. // }
  624. model.setValue("/root/send/reqdata/gb", "S");
  625. ExecData();
  626. ]]>
  627. </script>
  628. </button>
  629. <line id="line5" class="line_1" style="x1:0px; y1:459px; x2:1192px; y2:459px; "/>
  630. <caption id="caption9" class="tit_2" style="left:6px; top:80px; width:118px; height:13px; ">Nursing Record</caption>
  631. <output id="opRegNo" ref="/root/main/patpsn/patpsninfo/rrgstno" class="output_fix" format="999999-9999999" style="left:324px; top:52px; width:120px; height:19px; text-align:center; "/>
  632. <caption id="caption1" class="cell_1" style="left:0px; top:50px; width:90px; height:23px; ">성별/나이</caption>
  633. <button id="btn_del" class="btn4_letter2" disabled="true" style="left:1079px; top:688px; width:56px; height:22px; ">
  634. <caption>삭제</caption>
  635. <script type="javascript" ev:event="onclick">
  636. <![CDATA[
  637. var okyn = messageBox("해당 간호기록을 전부 ", "Q001");
  638. if (okyn == 6){
  639. model.setValue("/root/send/reqdata/gb", "D");
  640. model.setValue("/root/main/carerecinfo/carerecmat/iudgb", "D");
  641. DelData();
  642. }
  643. ]]>
  644. </script>
  645. </button>
  646. <button id="button52" class="btn2_letter3" navindex="23" style="left:1082px; top:438px; width:53px; height:19px; ">
  647. <caption>행추가</caption>
  648. <script type="javascript" ev:event="onclick">
  649. <![CDATA[
  650. grd_nurrec.addRow();
  651. var irow = grd_nurrec.row;
  652. model.setValue("/root/main/carerecinfo/carerecdetl[" + irow + "]/ckno", model.getValue("/root/send/reqdata/ckno"));
  653. model.setValue("/root/main/carerecinfo/carerecdetl[" + irow + "]/cknoseq", model.getValue("/root/send/reqdata/cknoseq"));
  654. grd_nurrec.refresh();
  655. ]]>
  656. </script>
  657. </button>
  658. <button id="button53" class="btn2_letter3" navindex="24" style="left:1139px; top:438px; width:53px; height:19px; ">
  659. <caption>행삭제</caption>
  660. <script type="javascript" ev:event="onclick">
  661. <![CDATA[
  662. grd_nurrec.deleteItem(grd_nurrec.row);
  663. ]]>
  664. </script>
  665. </button>
  666. <caption id="caption24" class="tit_2" style="left:6px; top:217px; width:129px; height:13px; ">Nursing Summary</caption>
  667. <button id="button1" class="btn2_letter3" navindex="21" style="left:1082px; top:211px; width:53px; height:19px; ">
  668. <caption>행추가</caption>
  669. <script type="javascript" ev:event="onclick">
  670. <![CDATA[
  671. grd_nursum.addRow();
  672. var irow = grd_nursum.row;
  673. model.setValue("/root/main/carerecinfo/caresumdetl[" + irow + "]/ckno", model.getValue("/root/send/reqdata/ckno"));
  674. model.setValue("/root/main/carerecinfo/caresumdetl[" + irow + "]/cknoseq", model.getValue("/root/send/reqdata/cknoseq"));
  675. grd_nursum.refresh();
  676. ]]>
  677. </script>
  678. </button>
  679. <button id="button3" class="btn2_letter3" navindex="22" style="left:1139px; top:211px; width:53px; height:19px; ">
  680. <caption>행삭제</caption>
  681. <script type="javascript" ev:event="onclick">
  682. <![CDATA[
  683. grd_nursum.deleteItem(grd_nursum.row);
  684. ]]>
  685. </script>
  686. </button>
  687. <line id="line3" class="line_1" style="x1:0px; y1:232px; x2:1192px; y2:232px; "/>
  688. <datagrid id="grd_nursum" nodeset="/root/main/carerecinfo/caresumdetl" autoresize="true" caption="순번^Target No^치료시작일자^치료종료일자^Ck Type^Tumor Kind^대분류^중분류^대분류명^중분류명^진단명^진단코드^Location^Fraction No^Remark^caption1^caption2^caption3^curemdyn" colsep="^" colwidth="32, 62, 91, 91, 85, 86, 86, 86, 86, 94, 121, 109, 84, 96, 365, 38, 29, 30, 72" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:235px; width:1192px; height:190px; ">
  689. <col ref="seq" visibility="hidden"/>
  690. <col ref="curepartcnt" type="combo">
  691. <choices>
  692. <itemset nodeset="/root/init/cmb_cdinfo/targetnolist">
  693. <label ref="basecdflagdesc"/>
  694. <value ref="basecd"/>
  695. </itemset>
  696. </choices>
  697. </col>
  698. <col ref="curefromdd" type="inputdate"/>
  699. <col ref="curetodd" type="inputdate"/>
  700. <col editmode="inputsearch" ref="cktype" type="combo">
  701. <choices>
  702. <itemset nodeset="/root/init/cmb_cdinfo/cktypelist">
  703. <label ref="basecdflagdesc"/>
  704. <value ref="basecd"/>
  705. </itemset>
  706. </choices>
  707. </col>
  708. <col ref="tumkind" type="combo">
  709. <choices>
  710. <itemset nodeset="/root/init/cmb_cdinfo/tumorkindlist">
  711. <label ref="basecdflagdesc"/>
  712. <value ref="basecd"/>
  713. </itemset>
  714. </choices>
  715. </col>
  716. <col ref="partgrupcd" visibility="hidden" style="text-align:left; "/>
  717. <col ref="partcd" visibility="hidden" style="text-align:left; "/>
  718. <col ref="partgrupnm" style="text-align:left; "/>
  719. <col ref="partnm" style="text-align:left; "/>
  720. <col ref="diagnm"/>
  721. <col ref="diagcd" type="inputbutton" style="text-align:left; "/>
  722. <col editmode="inputsearch" ref="cklocation" type="combo">
  723. <choices>
  724. <itemset nodeset="/root/init/cmb_cdinfo/locationlist">
  725. <label ref="basecdflagdesc"/>
  726. <value ref="basecd"/>
  727. </itemset>
  728. </choices>
  729. </col>
  730. <col ref="curecnt" type="combo">
  731. <choices>
  732. <itemset nodeset="/root/init/cmb_cdinfo/fractiontypelist">
  733. <label ref="basecdflagdesc"/>
  734. <value ref="basecd"/>
  735. </itemset>
  736. </choices>
  737. </col>
  738. <col ref="memo" type="input"/>
  739. <col ref="ckno" visibility="hidden"/>
  740. <col ref="cknoseq" visibility="hidden"/>
  741. <col ref="pid" visibility="hidden"/>
  742. <col ref="curemdyn" visibility="hidden"/>
  743. <script type="javascript" ev:event="onbuttonclick">
  744. <![CDATA[
  745. // MD승인여부 체크하기
  746. CuremdynChk();
  747. if(grd_nursum.colAttribute(grd_nursum.col, "ref") == "diagcd") {
  748. model.property("partgrupcd") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partgrupcd";
  749. model.property("partcd") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partcd";
  750. model.property("partgrupnm") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partgrupnm";
  751. model.property("partnm") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partnm";
  752. model.property("diagcd") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/diagcd";
  753. model.property("termengnm") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/diagnm";
  754. model.makeNode("/root/senddata/pid");
  755. model.makeNode("/root/senddata/partgrupcd");
  756. model.makeNode("/root/senddata/partcd");
  757. model.makeNode("/root/senddata/diagcd");
  758. model.makeNode("/root/senddata/diagnm");
  759. model.makeNode("/root/senddata/suppdeptcd");
  760. model.setValue("/root/senddata/pid", model.getValue("/root/main/patpsn/patpsninfo/pid"));
  761. model.setValue("/root/senddata/partgrupcd", model.getValue("/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partgrupcd"));
  762. model.setValue("/root/senddata/partcd", model.getValue("/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partcd"));
  763. model.setValue("/root/senddata/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  764. model.property("diagcd") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/diagcd";
  765. model.property("termengnm") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/diagnm";
  766. model.property("partgrupcd") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partgrupcd";
  767. model.property("partcd") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partcd";
  768. model.property("partgrupnm") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partgrupnm";
  769. model.property("partnm") = "/root/main/carerecinfo/caresumdetl[" + grd_nursum.row + "]/partnm";
  770. modal("SPAER02400", "", "200", "200", "SPAER02400","/root/senddata","/root/popdata");
  771. }
  772. ]]>
  773. </script>
  774. <script type="javascript" ev:event="onclick">
  775. <![CDATA[
  776. // MD승인여부 체크하기
  777. CuremdynChk();
  778. ]]>
  779. </script>
  780. </datagrid>
  781. <datagrid id="grd_nurrec" nodeset="/root/main/carerecinfo/carerecdetl" autoresize="true" caption="FX^Target No^Fx^순번^치료일^혈압^맥박^호흡^체온^메 모^caption31^caption32^caption18" colsep="^" colwidth="41, 67, 65, 42, 115, 50, 40, 40, 40, 729, 22, 24" dataheight="30" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:2px; top:464px; width:1192px; height:216px; ">
  782. <col ref="pxseq" visibility="hidden" style="text-align:center; vertical-align:middle; "/>
  783. <col ref="curepartcnt" type="combo" style="text-align:center; vertical-align:middle; ">
  784. <choices>
  785. <itemset nodeset="/root/init/cmb_cdinfo/targetnolist">
  786. <label ref="basecdflagdesc"/>
  787. <value ref="basecd"/>
  788. </itemset>
  789. </choices>
  790. </col>
  791. <col ref="fx" type="combo" style="text-align:center; ">
  792. <choices>
  793. <itemset nodeset="/root/init/cmb_cdinfo/fxlist">
  794. <label ref="basecdflagdesc"/>
  795. <value ref="basecd"/>
  796. </itemset>
  797. </choices>
  798. </col>
  799. <choices>
  800. <itemset nodeset="/root/init/cmb_cdinfo/targetnolist">
  801. <label ref="basecdflagdesc"/>
  802. <value ref="basecd"/>
  803. </itemset>
  804. </choices>
  805. <col ref="seq" visibility="hidden"/>
  806. <col ref="cureldd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  807. <col ref="bp" type="input" maxlength="20" style="text-align:center; "/>
  808. <col ref="pulse" type="input" maxlength="20" style="text-align:center; "/>
  809. <col ref="breth" type="input" maxlength="20" style="text-align:center; "/>
  810. <col ref="bdtp" type="input" maxlength="20" style="text-align:center; "/>
  811. <col ref="memo" type="input"/>
  812. <col ref="ckno" visibility="hidden"/>
  813. <col ref="cknoseq" visibility="hidden"/>
  814. <script type="javascript" ev:event="onkeydown">
  815. <![CDATA[
  816. // 엔터키를 치면 다음 컬럼으로 포커스가 넘어가도록 만듬
  817. if(event.keyCode == "13"){
  818. grd_nurrec.col= grd_nurrec.col + 1;
  819. }
  820. ]]>
  821. </script>
  822. </datagrid>
  823. <caption id="caption2" class="cell_1" style="left:448px; top:49px; width:102px; height:23px; text-align:left; vertical-align:middle; ">집주소</caption>
  824. <output id="opPhone" ref="/root/main/patpsn/patpsninfo/mpphontel" class="output_fix" style="left:1044px; top:26px; width:149px; height:19px; text-align:center; ">
  825. <script type="javascript" ev:event="ondblclick">
  826. <![CDATA[
  827. if( model.getValue("/root/main/patpsn/patpsninfo/pid") != "" || model.getValue("/root/main/patpsn/patpsninfo/pid") != " " ) {
  828. // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
  829. //예약내역이 없는 필드 체크
  830. var hngnm = model.getValue("/root/main/patpsn/patpsninfo/hngnm");
  831. var pid = model.getValue("/root/main/patpsn/patpsninfo/pid");
  832. if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
  833. return false;
  834. }
  835. //setParameter("opener_parameter_id", pid);
  836. model.removeNodeset("/root/temp/source");
  837. model.makeValue("/root/temp/source/srchcond", "1");
  838. model.makeValue("/root/temp/source/pid", pid);
  839. modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
  840. var hometel = getParameter("SMPMO01400_hometel");
  841. var mpphontel = getParameter("SMPMO01400_mpphontel");
  842. if( hometel != '' && mpphontel != '' ){
  843. model.setValue("/root/main/patpsn/patpsninfo/hometel", hometel) ;
  844. model.setValue("/root/main/patpsn/patpsninfo/mpphontel", mpphontel) ;
  845. }
  846. model.removeNodeset("/root/temp/source");
  847. model.refresh();
  848. }
  849. ]]>
  850. </script>
  851. </output>
  852. <caption id="caption5" class="cell_1" style="left:721px; top:25px; width:80px; height:23px; text-align:left; vertical-align:middle; ">연락처1</caption>
  853. <select1 id="radio3" ref="/root/main/patpsn/patpsninfo/iogb" disabled="true" appearance="full" cols="2" overflow="visible" style="left:450px; top:29px; width:100px; height:20px; border-style:none; ">
  854. <choices>
  855. <item>
  856. <label>입원</label>
  857. <value>I</value>
  858. </item>
  859. <item>
  860. <label>외래</label>
  861. <value>O</value>
  862. </item>
  863. </choices>
  864. </select1>
  865. <input id="input2" ref="/root/main/patpsn/patpsninfo/homedetladdr" class="input_default" disabled="true" style="left:555px; top:51px; width:638px; height:19px; "/>
  866. <caption id="caption7" class="cell_1" style="left:960px; top:25px; width:80px; height:23px; text-align:left; vertical-align:middle; ">연락처2</caption>
  867. <output id="output1" ref="/root/main/patpsn/patpsninfo/hometel" class="output_fix" style="left:805px; top:26px; width:149px; height:19px; text-align:center; ">
  868. <script type="javascript" ev:event="ondblclick">
  869. <![CDATA[
  870. if( model.getValue("/root/main/patpsn/patpsninfo/pid") != "" || model.getValue("/root/main/patpsn/patpsninfo/pid") != " " ) {
  871. // 전화번호 더블클릭시 해당환자의 '전화번호/주소 조회 및 수정 창' 팝업창을 호출!!!
  872. //예약내역이 없는 필드 체크
  873. var hngnm = model.getValue("/root/main/patpsn/patpsninfo/hngnm");
  874. var pid = model.getValue("/root/main/patpsn/patpsninfo/pid");
  875. if (hngnm == null && hngnm == "" && hngnm == " " && hngnm == "-"){
  876. return false;
  877. }
  878. //setParameter("opener_parameter_id", pid);
  879. model.removeNodeset("/root/temp/source");
  880. model.makeValue("/root/temp/source/srchcond", "1");
  881. model.makeValue("/root/temp/source/pid", pid);
  882. modal("SPPMO01400", "1", "100", "100", "SPPMO01400", "/root/temp/source", "/root/source");
  883. var hometel = getParameter("SMPMO01400_hometel");
  884. var mpphontel = getParameter("SMPMO01400_mpphontel");
  885. if( hometel != '' && mpphontel != '' ){
  886. model.setValue("/root/main/patpsn/patpsninfo/hometel", hometel) ;
  887. model.setValue("/root/main/patpsn/patpsninfo/mpphontel", mpphontel) ;
  888. }
  889. model.removeNodeset("/root/temp/source");
  890. model.refresh();
  891. }
  892. ]]>
  893. </script>
  894. </output>
  895. <button id="button4" class="icon_search" navindex="33" style="left:100px; top:165px; width:16px; height:16px; ">
  896. <caption/>
  897. <script type="javascript" ev:event="onclick">
  898. <![CDATA[
  899. // 인스턴스 노드를 통으로 넘겨서 처리하기. 팝업쪽에서는 별도의 작업 없이 해당 노드로 셋팅 됨.
  900. // modal("SPAEA02601", "", "470", "630", "SPAEA02601","/root/main/patpsn","/root/main/patpsn");
  901. // 파라미터를 이용한 방법 첫번째
  902. // setParameter("opener_parameter_id", model.getValue("/root/main/patpsn/patpsninfo/pid"));
  903. // modal("SPAEA02601", "", "470", "630", "SPAEA02601","","");
  904. // 파라미터 두번째 방법
  905. var index = "2";
  906. var pid = model.getValue("/root/main/patpsn/patpsninfo/pid");
  907. var hngnm = model.getValue("/root/main/patpsn/patpsninfo/hngnm");
  908. var text2 = model.getValue("/root/main/carerecinfo/carerecmat/rayphodd1");
  909. var sflag = (index + "▦" + pid + "▦" + hngnm + "▦" + text2);
  910. setParameter("opener_parameter_id",sflag);
  911. modal("SPAEA02601", "", "470", "630", "SPAEA02601","","");
  912. ]]>
  913. </script>
  914. </button>
  915. <button id="button6" class="icon_search" navindex="33" style="left:99px; top:102px; width:16px; height:16px; ">
  916. <caption/>
  917. <script type="javascript" ev:event="onclick">
  918. <![CDATA[
  919. // 인스턴스 노드를 통으로 넘겨서 처리하기. 팝업쪽에서는 별도의 작업 없이 해당 노드로 셋팅 됨.
  920. // modal("SPAEA02601", "", "470", "630", "SPAEA02601","/root/main/patpsn","/root/main/patpsn");
  921. // 파라미터를 이용한 방법 첫번째
  922. // setParameter("opener_parameter_id", model.getValue("/root/main/patpsn/patpsninfo/pid"));
  923. // modal("SPAEA02601", "", "470", "630", "SPAEA02601","","");
  924. // 파라미터 두번째 방법
  925. var index = "1";
  926. var pid = model.getValue("/root/main/patpsn/patpsninfo/pid");
  927. var hngnm = model.getValue("/root/main/patpsn/patpsninfo/hngnm");
  928. var text1 = model.getValue("/root/main/carerecinfo/carerecmat/fiducialdd");
  929. var sflag = (index + "▦" + pid + "▦" + hngnm + "▦" + text1);
  930. setParameter("opener_parameter_id",sflag);
  931. modal("SPAEA02601", "0", "470", "630", "SPAEA02601","","");
  932. ]]>
  933. </script>
  934. </button>
  935. <input id="input1" ref="/root/main/carerecinfo/carerecmat/fiducialdd" style="left:143px; top:102px; width:302px; height:19px; "/>
  936. <textarea id="textarea1" ref="/root/main/carerecinfo/carerecmat/rayphodd1" style="left:144px; top:125px; width:301px; height:75px; "/>
  937. <caption id="caption30" class="cell_1" style="left:985px; top:100px; width:80px; height:23px; vertical-align:middle; ">의뢰 의사1</caption>
  938. <caption id="caption20" class="cell_1" style="left:985px; top:151px; width:80px; height:23px; vertical-align:middle; ">치료 의사1</caption>
  939. <caption id="caption31" class="cell_1" style="left:779px; top:125px; width:81px; height:23px; vertical-align:middle; ">의뢰 과2</caption>
  940. <caption id="caption10" class="cell_1" style="left:589px; top:125px; width:76px; height:23px; ">의뢰병원2</caption>
  941. <caption id="caption21" class="cell_1" style="left:779px; top:176px; width:80px; height:23px; vertical-align:middle; ">치료 과2</caption>
  942. <caption id="caption11" class="cell_1" style="left:589px; top:176px; width:76px; height:23px; ">시행병원2</caption>
  943. <caption id="caption33" class="cell_1" style="left:447px; top:151px; width:140px; height:48px; vertical-align:middle; ">
  944. <![CDATA[< 치료시행 과 / 의사 >]]>
  945. </caption>
  946. <caption id="caption3" class="cell_1" style="left:589px; top:100px; width:76px; height:23px; text-align:left; vertical-align:middle; ">의뢰병원1</caption>
  947. <select1 id="cmb_reqhosp" ref="/root/main/carerecinfo/carerecmat/reqinstcd" appearance="minimal" style="left:667px; top:102px; width:110px; height:19px; ">
  948. <choices>
  949. <itemset nodeset="/root/hidden/instlist/A0025Z0007">
  950. <label ref="cdnm"/>
  951. <value ref="cdid"/>
  952. </itemset>
  953. </choices>
  954. <script type="javascript" ev:event="xforms-select">
  955. <![CDATA[
  956. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/reqinstcd");
  957. var rslt_ref = "/root/hidden/reqinoutorddeptlist";
  958. var sort_field = "dispseq";
  959. var sort_method = "asc";
  960. var basedd = getCurrentDate();
  961. zsdfGetInOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, basedd );
  962. model.refresh();
  963. ]]>
  964. </script>
  965. </select1>
  966. <caption id="caption23" class="cell_1" style="left:985px; top:176px; width:80px; height:23px; vertical-align:middle; ">치료 의사2</caption>
  967. <caption id="caption26" class="cell_1" style="left:447px; top:100px; width:140px; height:48px; vertical-align:middle; ">
  968. <![CDATA[< 치료의뢰 과 / 의사 >]]>
  969. </caption>
  970. <select1 id="combo10" ref="/root/main/carerecinfo/carerecmat/execdrid1" class="combo_search" navindex="18" appearance="minimal" style="left:1069px; top:152px; width:120px; height:19px; ">
  971. <choices>
  972. <itemset nodeset="/root/hidden/exeinoutorddeptdoctorlist1/user">
  973. <label ref="userinfo"/>
  974. <value ref="userid"/>
  975. </itemset>
  976. </choices>
  977. </select1>
  978. <select1 id="combo11" ref="/root/main/carerecinfo/carerecmat/execdrid2" class="combo_search" navindex="20" appearance="minimal" style="left:1069px; top:178px; width:120px; height:19px; ">
  979. <choices>
  980. <itemset nodeset="/root/hidden/exeinoutorddeptdoctorlist2/user">
  981. <label ref="userinfo"/>
  982. <value ref="userid"/>
  983. </itemset>
  984. </choices>
  985. </select1>
  986. <caption id="caption16" class="cell_1" style="left:985px; top:125px; width:80px; height:23px; vertical-align:middle; ">의뢰 의사2</caption>
  987. <caption id="caption27" class="cell_1" style="left:779px; top:100px; width:81px; height:23px; vertical-align:middle; ">의뢰 과1</caption>
  988. <caption id="caption8" class="cell_1" style="left:589px; top:152px; width:76px; height:23px; text-align:left; vertical-align:middle; ">시행병원1</caption>
  989. <select1 id="cmb_reqapntdrid1" ref="/root/main/carerecinfo/carerecmat/reqdrid1" class="combo_search" navindex="14" appearance="minimal" style="left:1069px; top:101px; width:120px; height:19px; ">
  990. <choices>
  991. <itemset nodeset="/root/hidden/reqinoutorddeptdoctorlist1/user">
  992. <label ref="userinfo"/>
  993. <value ref="userid"/>
  994. </itemset>
  995. </choices>
  996. </select1>
  997. <caption id="caption18" class="cell_1" style="left:779px; top:151px; width:80px; height:23px; vertical-align:middle; ">치료 과1</caption>
  998. <select1 id="cmb_reqapntdrid2" ref="/root/main/carerecinfo/carerecmat/reqdrid2" class="combo_search" navindex="16" appearance="minimal" style="left:1069px; top:127px; width:120px; height:19px; ">
  999. <choices>
  1000. <itemset nodeset="/root/hidden/reqinoutorddeptdoctorlist2/user">
  1001. <label ref="userinfo"/>
  1002. <value ref="userid"/>
  1003. </itemset>
  1004. </choices>
  1005. </select1>
  1006. <line id="line7" class="line_2" style="x1:584px; y1:120px; x2:1194px; y2:120px; "/>
  1007. <select1 id="cmb_reqdeptcd1" ref="/root/main/carerecinfo/carerecmat/reqdeptcd1" class="combo_search" navindex="13" appearance="minimal" editmode="inputsearch" style="left:862px; top:101px; width:120px; height:19px; ">
  1008. <choices>
  1009. <itemset nodeset="/root/hidden/reqinoutorddeptlist/dept">
  1010. <label ref="depthngnm"/>
  1011. <value ref="deptcd"/>
  1012. </itemset>
  1013. </choices>
  1014. <script type="javascript" ev:event="xforms-value-changed">
  1015. <![CDATA[
  1016. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/reqinstcd");
  1017. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1");
  1018. var basedd = getCurrentDate();
  1019. zsufGetInOutOrdDeptDoctorList(instcd, deptcd, "/root/hidden/reqinoutorddeptdoctorlist1","usernm", "asc", basedd);
  1020. model.refresh();
  1021. /*
  1022. model.setValue("/root/main/carerecinfo/carerecmat/reqdrid1", "");
  1023. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd1");
  1024. if (deptcd != ""){
  1025. var zsuResultRef = "/root/hidden/zsu/userlist";
  1026. model.removenode(zsuResultRef);
  1027. model.makenode(zsuResultRef);
  1028. //setParameter("deptcd", deptcd);
  1029. setParameter("dutplcecd", deptcd);
  1030. setParameter("flag", "_D");
  1031. submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
  1032. model.copyNode("/root/hidden1/userlist", "/root/hidden/zsu/userlist");
  1033. model.refresh();
  1034. //zsufGetUserInfoCombo(deptcd, "/root/hidden1/userlist","_D");
  1035. //model.refresh();
  1036. }
  1037. */
  1038. ]]>
  1039. </script>
  1040. </select1>
  1041. <select1 id="cmb_reqdeptcd2" ref="/root/main/carerecinfo/carerecmat/reqdeptcd2" class="combo_search" navindex="15" appearance="minimal" editmode="inputsearch" style="left:862px; top:127px; width:120px; height:19px; ">
  1042. <choices>
  1043. <itemset nodeset="/root/hidden/reqinoutorddeptlist/dept">
  1044. <label ref="depthngnm"/>
  1045. <value ref="deptcd"/>
  1046. </itemset>
  1047. </choices>
  1048. <script type="javascript" ev:event="xforms-value-changed">
  1049. <![CDATA[
  1050. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/reqinstcd2");
  1051. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2");
  1052. var basedd = getCurrentDate();
  1053. zsufGetInOutOrdDeptDoctorList(instcd, deptcd, "/root/hidden/reqinoutorddeptdoctorlist2","usernm", "asc", basedd);
  1054. model.refresh();
  1055. /*
  1056. model.setValue("/root/main/carerecinfo/carerecmat/reqdrid2", "");
  1057. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/reqdeptcd2");
  1058. if (deptcd != ""){
  1059. var zsuResultRef = "/root/hidden/zsu/userlist";
  1060. model.removenode(zsuResultRef);
  1061. model.makenode(zsuResultRef);
  1062. //setParameter("deptcd", deptcd);
  1063. setParameter("dutplcecd", deptcd);
  1064. setParameter("flag", "_D");
  1065. submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
  1066. model.copyNode("/root/hidden1/userlist1", "/root/hidden/zsu/userlist");
  1067. model.refresh();
  1068. //zsufGetUserInfoCombo(deptcd, "/root/hidden1/userlist1","_D");
  1069. //model.refresh();
  1070. }*/
  1071. ]]>
  1072. </script>
  1073. </select1>
  1074. <select1 id="cmb_execdeptcd2" ref="/root/main/carerecinfo/carerecmat/execdeptcd2" class="combo_search" navindex="19" appearance="minimal" editmode="inputsearch" style="left:862px; top:178px; width:120px; height:19px; ">
  1075. <choices>
  1076. <itemset nodeset="/root/hidden/exeinoutorddeptlist/dept">
  1077. <label ref="depthngnm"/>
  1078. <value ref="deptcd"/>
  1079. </itemset>
  1080. </choices>
  1081. <script type="javascript" ev:event="xforms-value-changed">
  1082. <![CDATA[
  1083. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/exeinstcd2");
  1084. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd2");
  1085. var basedd = getCurrentDate();
  1086. zsufGetInOutOrdDeptDoctorList(instcd, deptcd, "/root/hidden/exeinoutorddeptdoctorlist2","usernm", "asc", basedd);
  1087. model.refresh();
  1088. ]]>
  1089. </script>
  1090. </select1>
  1091. <select1 id="cmb_execdeptcd1" ref="/root/main/carerecinfo/carerecmat/execdeptcd1" class="combo_search" navindex="17" appearance="minimal" editmode="inputsearch" style="left:862px; top:152px; width:120px; height:19px; ">
  1092. <choices>
  1093. <itemset nodeset="/root/hidden/exeinoutorddeptlist/dept">
  1094. <label ref="depthngnm"/>
  1095. <value ref="deptcd"/>
  1096. </itemset>
  1097. </choices>
  1098. <script type="javascript" ev:event="xforms-value-changed">
  1099. <![CDATA[
  1100. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/exeinstcd");
  1101. var deptcd = model.getValue("/root/main/carerecinfo/carerecmat/execdeptcd1");
  1102. var basedd = getCurrentDate();
  1103. zsufGetInOutOrdDeptDoctorList(instcd, deptcd, "/root/hidden/exeinoutorddeptdoctorlist1","usernm", "asc", basedd);
  1104. model.refresh();
  1105. ]]>
  1106. </script>
  1107. </select1>
  1108. <select1 id="cmb_exeinstcd" ref="/root/main/carerecinfo/carerecmat/exeinstcd" appearance="minimal" style="left:667px; top:154px; width:110px; height:19px; ">
  1109. <choices>
  1110. <itemset nodeset="/root/hidden/instlist/A0025Z0007">
  1111. <label ref="cdnm"/>
  1112. <value ref="cdid"/>
  1113. </itemset>
  1114. </choices>
  1115. <script type="javascript" ev:event="xforms-select">
  1116. <![CDATA[
  1117. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/exeinstcd");
  1118. var rslt_ref = "/root/hidden/exeinoutorddeptlist";
  1119. var sort_field = "dispseq";
  1120. var sort_method = "asc";
  1121. var basedd = getCurrentDate();
  1122. zsdfGetInOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, basedd );
  1123. model.refresh();
  1124. ]]>
  1125. </script>
  1126. </select1>
  1127. <select1 id="combo2" ref="/root/main/carerecinfo/carerecmat/reqinstcd2" appearance="minimal" style="left:667px; top:127px; width:110px; height:19px; ">
  1128. <choices>
  1129. <itemset nodeset="/root/hidden/instlist/A0025Z0007">
  1130. <label ref="cdnm"/>
  1131. <value ref="cdid"/>
  1132. </itemset>
  1133. </choices>
  1134. <script type="javascript" ev:event="xforms-select">
  1135. <![CDATA[
  1136. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/reqinstcd2");
  1137. var rslt_ref = "/root/hidden/reqinoutorddeptlist";
  1138. var sort_field = "dispseq";
  1139. var sort_method = "asc";
  1140. var basedd = getCurrentDate();
  1141. zsdfGetInOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, basedd );
  1142. model.refresh();
  1143. ]]>
  1144. </script>
  1145. </select1>
  1146. <select1 id="combo3" ref="/root/main/carerecinfo/carerecmat/exeinstcd2" appearance="minimal" style="left:666px; top:178px; width:110px; height:19px; ">
  1147. <choices>
  1148. <itemset nodeset="/root/hidden/instlist/A0025Z0007">
  1149. <label ref="cdnm"/>
  1150. <value ref="cdid"/>
  1151. </itemset>
  1152. </choices>
  1153. <script type="javascript" ev:event="xforms-select">
  1154. <![CDATA[
  1155. var instcd = model.getValue("/root/main/carerecinfo/carerecmat/exeinstcd2");
  1156. var rslt_ref = "/root/hidden/exeinoutorddeptlist";
  1157. var sort_field = "dispseq";
  1158. var sort_method = "asc";
  1159. var basedd = getCurrentDate();
  1160. zsdfGetInOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, basedd );
  1161. model.refresh();
  1162. ]]>
  1163. </script>
  1164. </select1>
  1165. </group>
  1166. </xhtml:body>
  1167. </xhtml:html>