SMAEA02601_간호기록관리(사이버나이프).xrw 62 KB

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