SMAEA04600_치료예약스케줄상세정보관리.xrw 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>치료스케줄관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <curescheinfo>
  11. <maininfo>
  12. <flag/>
  13. <genrdd/>
  14. <genrno/>
  15. <suppdeptcd/>
  16. <pid/>
  17. <hngnm/>
  18. <sex/>
  19. <age/>
  20. <rrgstno1/>
  21. <rrgstno2/>
  22. <tel/>
  23. <addr/>
  24. <orddrid/>
  25. <orddeptcd/>
  26. <statcd/>
  27. <cntctel/>
  28. <curedg1/>
  29. <oldcuredg1/>
  30. <curedgseq1/>
  31. <curedg2/>
  32. <oldcuredg2/>
  33. <curedgseq2/>
  34. <curedg3/>
  35. <oldcuredg3/>
  36. <curedgseq3/>
  37. <curedg4/>
  38. <oldcuredg4/>
  39. <curedgseq4/>
  40. <curedg5/>
  41. <oldcuredg5/>
  42. <curedgseq5/>
  43. <curedg6/>
  44. <oldcuredg6/>
  45. <curedgseq6/>
  46. <remfact/>
  47. <startdd/>
  48. <endcnts/>
  49. <inschedd/>
  50. <dutplceinstnm/>
  51. <depttel/>
  52. <depttime1/>
  53. <depttime2/>
  54. <depttime3/>
  55. <curedg7/>
  56. <curedgseq7/>
  57. </maininfo>
  58. </curescheinfo>
  59. <cureschelist>
  60. <mainlist>
  61. <flag/>
  62. <genrdd/>
  63. <genrno/>
  64. <suppdeptcd/>
  65. <pid/>
  66. <hngnm/>
  67. <sex/>
  68. <age/>
  69. <rrgstno1/>
  70. <rrgstno2/>
  71. <tel/>
  72. <addr/>
  73. <orddrid/>
  74. <orddeptcd/>
  75. <statcd/>
  76. <cntctel/>
  77. <curedg1/>
  78. <oldcuredg1/>
  79. <curedgseq1/>
  80. <curedg2/>
  81. <oldcuredg2/>
  82. <curedgseq2/>
  83. <curedg3/>
  84. <oldcuredg3/>
  85. <curedgseq3/>
  86. <curedg4/>
  87. <oldcuredg4/>
  88. <curedgseq4/>
  89. <curedg5/>
  90. <oldcuredg5/>
  91. <curedgseq5/>
  92. <curedg6/>
  93. <oldcuredg6/>
  94. <curedgseq6/>
  95. <remfact/>
  96. <startdd/>
  97. <endcnts/>
  98. <inschedd/>
  99. </mainlist>
  100. </cureschelist>
  101. <patinfo>
  102. <patinfolist>
  103. <pid/>
  104. <hngnm/>
  105. </patinfolist>
  106. </patinfo>
  107. <iptbox>
  108. <wardcd/>
  109. <roomcd/>
  110. </iptbox>
  111. <popupendflag/>
  112. <list>
  113. <item/>
  114. </list>
  115. </main>
  116. <send>
  117. <data>
  118. <srchpid/>
  119. <hngnm/>
  120. <fromdd/>
  121. <todd/>
  122. </data>
  123. <savedata/>
  124. <data2>
  125. <srchcond/>
  126. <pid/>
  127. <hngnm/>
  128. <rrgstno1/>
  129. <rrgstno2/>
  130. <acptdd/>
  131. </data2>
  132. <globalinstance>
  133. <instance1/>
  134. </globalinstance>
  135. <useyn/>
  136. </send>
  137. <hidden>
  138. <srchcond/>
  139. <pid/>
  140. <hngnm/>
  141. <rrgstno1/>
  142. <rrgstno2/>
  143. <session/>
  144. </hidden>
  145. <init>
  146. <today/>
  147. <roomlist/>
  148. <orddeptcd>
  149. <cd/>
  150. <nm/>
  151. <deptengabbr/>
  152. <reqdeptno/>
  153. </orddeptcd>
  154. <orddrid>
  155. <cd/>
  156. <nm/>
  157. <dp/>
  158. <sp/>
  159. </orddrid>
  160. </init>
  161. <temp>
  162. <printyn1/>
  163. <printyn2/>
  164. <printyn3/>
  165. <printyn4/>
  166. <printetcflag/>
  167. </temp>
  168. </root>
  169. </instance>
  170. <script type="javascript" ev:event="xforms-ready">
  171. <![CDATA[
  172. makeReportPreview(0,50,1194,600, "grp_report");
  173. fInit();
  174. // 부서코드 설정
  175. aezfSetSuppDeptcd();
  176. // 여기
  177. model.setValue("/root/send/useyn", "Y");
  178. submit("TRAEA05002");
  179. // 치료 스케쥴 기준정보 조회 (2개이상일 때만 검사촬영일2 활성화 - 빈센트 요구 사항 2009.09.25 임여원 )
  180. var NodeCnt=getNodesetCount("/root/main/list/item");
  181. if(NodeCnt>1) //검사 2개 이상일 때 출력물에도 검사 촬영일자 추가하는 파라미터추가
  182. {
  183. caption39.visible=true;
  184. input6.visible=true;
  185. caption40.visible=true;
  186. model.makeValue("/root/temp/printetcflag","Y");
  187. }
  188. else
  189. {
  190. caption39.visible=false;
  191. input6.visible=false;
  192. caption40.visible=false;
  193. model.makeValue("/root/temp/printetcflag","N");
  194. }
  195. // 진료과/진료의 조회
  196. submit("TRPMOCOM01", false);
  197. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  198. // cmb_orddept.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd[cd='"+ suppdeptcd + "']";
  199. // cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp='"+ suppdeptcd + "']";
  200. // cmb_orddept.value = suppdeptcd;
  201. makeReportPreview(0, 50, 1179, 678, "grp_report1");
  202. makeReportPreview(0, 50, 1179, 678, "grp_report2");
  203. makeReportPreview(0, 50, 1179, 678, "grp_report3");
  204. makeReportPreview(0, 50, 1179, 678, "grp_report4");
  205. makeReportPreview(0, 50, 1179, 678, "grp_report5");
  206. makeReportPreview(0, 50, 1179, 678, "grp_report6");
  207. makeReportPreview(0, 50, 1179, 678, "grp_report7");
  208. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  209. // if (suppdeptcd != "2180000000" ) {
  210. // btn_hold.disabled = true;
  211. // btn_holdcncl.disabled = true;
  212. // }
  213. var srchpid = model.getValue("/root/hidden/pid");
  214. if ( srchpid != "" ) {
  215. model.setValue("/root/send/data/srchpid", srchpid);
  216. fGetCureScheList();
  217. }
  218. model.setValue("/root/temp/printyn1", "Y");
  219. model.refresh();
  220. ]]>
  221. </script>
  222. <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
  223. <submission id="TRMMO04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/patnm"/>
  224. <submission id="TRAEA04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/cureschelist"/>
  225. <submission id="TRAEB02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/patinfo" resultref="/root/main/patinfo"/>
  226. <submission id="TXAEA04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/curescheinfo/maininfo"/>
  227. <submission id="TRAEA05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  228. </model>
  229. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  230. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  231. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  232. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  233. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  234. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  235. <script type="javascript">
  236. <![CDATA[
  237. function fInit() {
  238. model.resetInstanceNode("/root/send/data");
  239. model.resetInstanceNode("/root/main/curescheinfo/maininfo");
  240. model.removenode("/root/main/cureschelist");
  241. // //조회기간 시작일자는 7일 전, 종료일자는 7일 후로 설정한다.
  242. // var fromdd = ((getCurrentDate()).toDate()).getAddDate(-7);
  243. // model.setValue("/root/send/data/fromdd", fromdd.getDateFormat());
  244. // var todd = ((getCurrentDate()).toDate()).getAddDate(7);
  245. // model.setValue("/root/send/data/todd" , todd.getDateFormat());
  246. //
  247. // model.makeValue("/root/main/curescheinfo/maininfo/curedg1",getCurrentDate());
  248. // model.makeValue("/root/main/curescheinfo/maininfo/curedg2",((getCurrentDate()).toDate()).getAddDate(7).getDateFormat());
  249. // model.makeValue("/root/main/curescheinfo/maininfo/curedg3",((getCurrentDate()).toDate()).getAddDate(14).getDateFormat());
  250. // model.makeValue("/root/main/curescheinfo/maininfo/curedg4",((getCurrentDate()).toDate()).getAddDate(21).getDateFormat());
  251. // model.makeValue("/root/main/curescheinfo/maininfo/curedg5",((getCurrentDate()).toDate()).getAddDate(28).getDateFormat());
  252. // model.makeValue("/root/main/curescheinfo/maininfo/curedg6",((getCurrentDate()).toDate()).getAddDate(35).getDateFormat());
  253. //
  254. // model.makeValue("/root/main/curescheinfo/maininfo/startdd",((getCurrentDate()).toDate()).getAddDate(7).getDateFormat());
  255. // model.makeValue("/root/main/curescheinfo/maininfo/inschedd",((getCurrentDate()).toDate()).getAddDate(28).getDateFormat());
  256. model.refresh();
  257. }
  258. // 환자별 치료 스케줄 조회
  259. function fGetCureScheList() {
  260. model.resetInstanceNode("/root/main/curescheinfo/maininfo");
  261. model.removenode("/root/main/cureschelist");
  262. if (submit("TRAEA04601")) {
  263. var rows = grd_cureschelist.rows;
  264. if ( rows > 1 ) {
  265. grd_cureschelist.row = 1;
  266. copyNodesetType("/root/main/curescheinfo/maininfo", "/root/main/cureschelist/mainlist[1]", "replace");
  267. var curedg3 = model.getValue("/root/main/curescheinfo/maininfo/curedg3");
  268. var curedg5 = model.getValue("/root/main/curescheinfo/maininfo/curedg5");
  269. var fstinjdrugdd = curedg3.toDate().getAddDate(-2);
  270. var scndinjdrugdd = curedg5.toDate().getAddDate(-2);
  271. model.makeValue("/root/main/curescheinfo/maininfo/fstinjdrugdd", fstinjdrugdd.getDateFormat());
  272. model.makeValue("/root/main/curescheinfo/maininfo/scndinjdrugdd", scndinjdrugdd.getDateFormat());
  273. }
  274. }
  275. model.refresh();
  276. }
  277. /**
  278. * @desc : 환자정보 조회
  279. * @
  280. * @param :
  281. * @return :
  282. * @author :
  283. * @---------------------------------------------------
  284. */
  285. function fGetPatInfo(){
  286. var pid = model.getValue("/root/main/curescheinfo/maininfo/pid");
  287. model.makeValue("/root/main/patinfo/patinfolist/pid",pid);
  288. if ( submit("TRAEB02902",false) ) {
  289. var cnt = getNodesetCount("/root/main/patinfo/patinfolist");
  290. if (cnt == 0) {
  291. model.makeValue("/root/main/curescheinfo/maininfo/suppdeptcd", "");
  292. model.makeValue("/root/main/curescheinfo/maininfo/hngnm", "");
  293. model.makeValue("/root/main/curescheinfo/maininfo/sex", "");
  294. model.makeValue("/root/main/curescheinfo/maininfo/age", "");
  295. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno1", "");
  296. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno2", "");
  297. model.makeValue("/root/main/curescheinfo/maininfo/tel", "");
  298. model.makeValue("/root/main/curescheinfo/maininfo/addr", "");
  299. messageBox("등록된 환자 정보가","I004");
  300. } else if (cnt == 1) {
  301. model.makeValue("/root/main/curescheinfo/maininfo/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  302. model.makeValue("/root/main/curescheinfo/maininfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  303. model.makeValue("/root/main/curescheinfo/maininfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  304. model.makeValue("/root/main/curescheinfo/maininfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  305. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  306. model.makeValue("/root/main/curescheinfo/maininfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  307. model.makeValue("/root/main/curescheinfo/maininfo/tel", model.getValue("/root/main/patinfo/patinfolist/tel"));
  308. model.makeValue("/root/main/curescheinfo/maininfo/addr", "");
  309. }
  310. var suppdeptcd = model.getValue("/root/send/globalinstance/instance1");
  311. cmb_orddept.choices.itemset.attribute("nodeset") = "/root/init/orddeptcd[cd='"+ suppdeptcd + "']";
  312. cmb_orddr.choices.itemset.attribute("nodeset") = "/root/init/orddrid[dp='"+ suppdeptcd + "']";
  313. cmb_orddept.value = suppdeptcd;
  314. model.refresh();
  315. }
  316. }
  317. ]]>
  318. </script>
  319. </xhtml:head>
  320. <xhtml:body pagewidth="950" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  321. <line id="line1" class="line_1" style="x1:5px; y1:83px; x2:925px; y2:83px; "/>
  322. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:20px; width:920px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  323. <button id="btn_req" class="btn1_letter2" style="left:847px; top:30px; width:56px; height:22px; ">
  324. <caption>조회</caption>
  325. <script type="javascript" ev:event="DOMActivate">
  326. <![CDATA[
  327. fGetCureScheList();
  328. ]]>
  329. </script>
  330. </button>
  331. <line id="line3" style="x1:836px; y1:28px; x2:836px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  332. <caption id="caption5" class="search_name" style="left:7px; top:30px; width:91px; height:17px; ">등록번호 :</caption>
  333. <input id="ipt_pid" ref="/root/send/data/srchpid" style="left:98px; top:30px; width:88px; height:19px; ">
  334. <script type="javascript" ev:event="onkeypress">
  335. <![CDATA[
  336. if (event.keyCode == '13') { // Enter 입력 시에
  337. setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
  338. inputEnterKey("btn_req","DOMActivate");
  339. }
  340. ]]>
  341. </script>
  342. </input>
  343. <button id="btn_getpatinfo" class="icon_search" style="left:190px; top:30px; width:16px; height:16px; ">
  344. <caption/>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. model.setValue("/root/send/data2/srchcond", "2");
  348. model.setValue("/root/send/data2/pid", model.getValue("/root/main/cond/pid"));
  349. modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/data2","/root/send");
  350. var sPid = model.getValue("/root/main/patinfo/patinfolist/pid");
  351. var sHngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
  352. model.setValue("/root/send/data/srchpid", sPid);
  353. model.setValue("/root/send/data/hngnm", sHngnm);
  354. model.refresh();
  355. ]]>
  356. </script>
  357. </button>
  358. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:204px; height:14px; ">치료예약스케줄 상세정보관리</caption>
  359. <input id="input1" ref="/root/main/curescheinfo/maininfo/curedg1" class="input_default" inputtype="date" style="left:100px; top:387px; width:130px; height:19px; font-size:11pt; font-weight:bold; ">
  360. <script type="javascript" ev:event="xforms-value-changed">
  361. <![CDATA[
  362. ]]>
  363. </script>
  364. </input>
  365. <input id="input7" ref="/root/main/curescheinfo/maininfo/curedg6" class="input_default" inputtype="date" style="left:100px; top:538px; width:130px; height:19px; font-size:11pt; font-weight:bold; "/>
  366. <caption id="caption3" style="left:240px; top:387px; width:673px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">의사의 지시가 있을 때 까지 지금 먹는 갑상선 호르몬 (노란색 씬지로이드) 중지</caption>
  367. <caption id="caption15" style="left:240px; top:511px; width:673px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">치료를 위한 약물 투여 (입원·외래 시) 입원 혹은 외래 치료 6시간 전 금식하세요</caption>
  368. <caption id="caption17" style="left:240px; top:538px; width:673px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">치료 후 사진 촬영 (전신 촬영)</caption>
  369. <caption id="caption18" style="left:107px; top:565px; width:700px; height:19px; font-family:굴림체; font-size:10pt; font-weight:bold; ">칼슘약, 비타민 D, 혈압약, 당뇨약은 매일 드세요.</caption>
  370. <caption id="caption19" style="left:107px; top:584px; width:700px; height:19px; font-family:굴림체; font-size:10pt; font-weight:bold; ">갑상선 호르몬을 끊으면 피로, 의욕상실, 소화불량, 몸이 붓는 등의 증상</caption>
  371. <caption id="caption20" style="left:107px; top:603px; width:700px; height:19px; font-family:굴림체; font-size:10pt; font-weight:bold; ">이 나타날 수도 있습니다. (나타나지 않는 환자도 많습니다.)</caption>
  372. <caption id="caption21" style="left:107px; top:622px; width:700px; height:19px; font-family:굴림체; font-size:10pt; font-weight:bold; ">치료 약 투여 후 1년 간 환자는(남녀 모두) 반드시 피임하셔야 합니다.</caption>
  373. <datagrid id="grd_cureschelist" nodeset="/root/main/cureschelist/mainlist" caption="상태^등록일자^발생번호^지원부서^등록번호^이름^성별^나이^주민번호1^주민번호2^연락처^주소^진료과^진료의^상태^연락처^악물조절^변경전 일자^임시예약 순번^식이요법^변경전 일자^임시예약 순번^검사예약^변경전 일자^임시예약 순번^촬영^변경전 일자^임시예약 순번^치료일^변경전 일자^임시예약 순번^치료후 촬영^변경전 일자^임시예약 순번^참고사항^시작일자^종료내용^입원예정일" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 90, 0, 0, 90, 0, 0, 90, 0, 0, 90, 0, 0, 90, 0, 0, 90, 0, 0, 252, 0, 0, 0,0,0,0,0,0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:88px; width:920px; height:152px; ">
  374. <col ref="flag"/>
  375. <col ref="genrdd" format="yyyy-mm-dd"/>
  376. <col ref="genrno"/>
  377. <col ref="suppdeptcd"/>
  378. <col ref="pid" style="text-align:center; "/>
  379. <col ref="hngnm" style="text-align:center; "/>
  380. <col ref="sex" style="text-align:center; "/>
  381. <col ref="age" style="text-align:center; "/>
  382. <col ref="rrgstno1"/>
  383. <col ref="rrgstno2"/>
  384. <col ref="tel"/>
  385. <col ref="addr"/>
  386. <col ref="orddrid"/>
  387. <col ref="orddeptcd"/>
  388. <col ref="statcd" type="combo">
  389. <choices>
  390. <item>
  391. <label>입원</label>
  392. <value>I</value>
  393. </item>
  394. <item>
  395. <label>입원예정</label>
  396. <value>R</value>
  397. </item>
  398. <item>
  399. <label>대기</label>
  400. <value>D</value>
  401. </item>
  402. <item>
  403. <label>외래</label>
  404. <value>O</value>
  405. </item>
  406. </choices>
  407. </col>
  408. <col ref="cntctel"/>
  409. <col ref="curedg1" format="yyyy-mm-dd" style="text-align:center; "/>
  410. <col ref="oldcuredg1"/>
  411. <col ref="curedgseq1"/>
  412. <col ref="curedg2" format="yyyy-mm-dd" style="text-align:center; "/>
  413. <col ref="oldcuredg2"/>
  414. <col ref="curedgseq2"/>
  415. <col ref="curedg3" format="yyyy-mm-dd" style="text-align:center; "/>
  416. <col ref="oldcuredg3"/>
  417. <col ref="curedgseq3"/>
  418. <col ref="curedg4" format="yyyy-mm-dd" style="text-align:center; "/>
  419. <col ref="oldcuredg4"/>
  420. <col ref="curedgseq4"/>
  421. <col ref="curedg5" format="yyyy-mm-dd" style="text-align:center; "/>
  422. <col ref="oldcuredg5"/>
  423. <col ref="curedgseq5"/>
  424. <col ref="curedg6" format="yyyy-mm-dd" style="text-align:center; "/>
  425. <col ref="oldcuredg6"/>
  426. <col ref="curedgseq6"/>
  427. <col ref="remfact"/>
  428. <col ref="startdd"/>
  429. <col ref="endcnts"/>
  430. <col ref="inschedd"/>
  431. <col ref="dutplceinstnm"/>
  432. <col ref="depttel"/>
  433. <col ref="depttime1"/>
  434. <col ref="depttime2"/>
  435. <col ref="depttime3"/>
  436. <script type="javascript" ev:event="onclick">
  437. <![CDATA[
  438. if ( (grd_cureschelist.row >= grd_cureschelist.fixedRows) && (grd_cureschelist.isCell(event.target))) {
  439. var row = grd_cureschelist.row;
  440. copyNodesetType("/root/main/curescheinfo/maininfo", "/root/main/cureschelist/mainlist[" + row + "]", "replace");
  441. var curedg3 = model.getValue("/root/main/curescheinfo/maininfo/curedg3");
  442. var curedg5 = model.getValue("/root/main/curescheinfo/maininfo/curedg5");
  443. var fstinjdrugdd = curedg3.toDate().getAddDate(-2);
  444. var scndinjdrugdd = curedg5.toDate().getAddDate(-2);
  445. model.makeValue("/root/main/curescheinfo/maininfo/fstinjdrugdd", fstinjdrugdd.getDateFormat());
  446. model.makeValue("/root/main/curescheinfo/maininfo/scndinjdrugdd", scndinjdrugdd.getDateFormat());
  447. // model.setValue("/root/main/curescheinfo/maininfo/flag", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/flag"));
  448. // model.setValue("/root/main/curescheinfo/maininfo/genrdd", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/genrdd"));
  449. // model.setValue("/root/main/curescheinfo/maininfo/genrno", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/genrno"));
  450. // model.setValue("/root/main/curescheinfo/maininfo/suppdeptcd", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/suppdeptcd"));
  451. // model.setValue("/root/main/curescheinfo/maininfo/pid", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/pid"));
  452. // model.setValue("/root/main/curescheinfo/maininfo/hngnm", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/hngnm"));
  453. // model.setValue("/root/main/curescheinfo/maininfo/sex", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/sex"));
  454. // model.setValue("/root/main/curescheinfo/maininfo/age", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/age"));
  455. // model.setValue("/root/main/curescheinfo/maininfo/rrgstno1", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/rrgstno1"));
  456. // model.setValue("/root/main/curescheinfo/maininfo/rrgstno2", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/rrgstno2"));
  457. // model.setValue("/root/main/curescheinfo/maininfo/tel", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/tel"));
  458. // model.setValue("/root/main/curescheinfo/maininfo/addr", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/addr"));
  459. // model.setValue("/root/main/curescheinfo/maininfo/orddrid", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/orddrid"));
  460. // model.setValue("/root/main/curescheinfo/maininfo/orddeptcd", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/orddeptcd"));
  461. // model.setValue("/root/main/curescheinfo/maininfo/statcd", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/statcd"));
  462. // model.setValue("/root/main/curescheinfo/maininfo/cntctel", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/cntctel"));
  463. // model.setValue("/root/main/curescheinfo/maininfo/curedg1", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedg1"));
  464. // model.setValue("/root/main/curescheinfo/maininfo/oldcuredg1", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/oldcuredg1"));
  465. // model.setValue("/root/main/curescheinfo/maininfo/curedgseq1", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedgseq1"));
  466. // model.setValue("/root/main/curescheinfo/maininfo/curedg2", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedg2"));
  467. // model.setValue("/root/main/curescheinfo/maininfo/oldcuredg2", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/oldcuredg2"));
  468. // model.setValue("/root/main/curescheinfo/maininfo/curedgseq2", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedgseq2"));
  469. // model.setValue("/root/main/curescheinfo/maininfo/curedg3", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedg3"));
  470. // model.setValue("/root/main/curescheinfo/maininfo/oldcuredg3", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/oldcuredg3"));
  471. // model.setValue("/root/main/curescheinfo/maininfo/curedgseq3", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedgseq3"));
  472. // model.setValue("/root/main/curescheinfo/maininfo/curedg4", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedg4"));
  473. // model.setValue("/root/main/curescheinfo/maininfo/oldcuredg4", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/oldcuredg4"));
  474. // model.setValue("/root/main/curescheinfo/maininfo/curedgseq4", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedgseq4"));
  475. // model.setValue("/root/main/curescheinfo/maininfo/curedg5", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedg5"));
  476. // model.setValue("/root/main/curescheinfo/maininfo/oldcuredg5", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/oldcuredg5"));
  477. // model.setValue("/root/main/curescheinfo/maininfo/curedgseq5", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedgseq"));
  478. // model.setValue("/root/main/curescheinfo/maininfo/curedg6", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedg6"));
  479. // model.setValue("/root/main/curescheinfo/maininfo/oldcuredg6", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/oldcuredg6"));
  480. // model.setValue("/root/main/curescheinfo/maininfo/curedgseq6", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/curedgseq6"));
  481. // model.setValue("/root/main/curescheinfo/maininfo/remfact", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/remfact"));
  482. // model.setValue("/root/main/curescheinfo/maininfo/startdd", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/startdd"));
  483. // model.setValue("/root/main/curescheinfo/maininfo/endcnts", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/endcnts"));
  484. // model.setValue("/root/main/curescheinfo/maininfo/inschedd", model.getValue("/root/main/cureschelist/mainlist[" + row + "]/inschedd"));
  485. //
  486. model.refresh();
  487. }
  488. ]]>
  489. </script>
  490. </datagrid>
  491. <caption id="caption23" class="tit_2" style="left:5px; top:68px; width:181px; height:13px; ">치료 스케줄</caption>
  492. <output id="ipt_patnm" ref="/root/send/data/hngnm" class="output_fix" style="left:210px; top:30px; width:72px; height:19px; "/>
  493. <caption id="caption26" style="left:240px; top:430px; width:673px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">갑상선 호르몬 (흰색 테트로닌) 중지 식사 조절 (저요오드식) 시작</caption>
  494. <line id="line12" class="line_2" style="x1:5px; y1:424px; x2:925px; y2:424px; "/>
  495. <output id="opt_sex" ref="/root/main/curescheinfo/maininfo/sex" class="output_fix" appearance="output" style="left:519px; top:272px; width:30px; height:19px; "/>
  496. <output id="opt_hngnm" ref="/root/main/curescheinfo/maininfo/hngnm" class="output_fix" appearance="output" style="left:310px; top:272px; width:110px; height:19px; "/>
  497. <line id="line13" class="line_1" style="x1:5px; y1:265px; x2:925px; y2:265px; "/>
  498. <caption id="caption2" class="cell_1" style="left:215px; top:270px; width:92px; height:23px; text-align:left; vertical-align:middle; ">성명</caption>
  499. <caption id="caption11" class="cell_1" style="left:5px; top:270px; width:92px; height:23px; text-align:left; vertical-align:middle; ">등 록 번 호</caption>
  500. <input id="opt_pid" ref="/root/main/curescheinfo/maininfo/pid" class="output_fix" appearance="input" style="left:100px; top:272px; width:110px; height:19px; ">
  501. <script type="javascript" ev:event="onkeypress">
  502. <![CDATA[
  503. if ( event.keyCode == 13 ) {
  504. setInputNodeCurText();
  505. fGetPatInfo();
  506. }
  507. ]]>
  508. </script>
  509. </input>
  510. <caption id="caption4" class="cell_1" style="left:424px; top:270px; width:92px; height:23px; text-align:left; vertical-align:middle; ">성별/나이</caption>
  511. <caption id="caption27" class="tit_2" style="left:5px; top:250px; width:193px; height:13px; ">환자정보</caption>
  512. <output id="opt_age" ref="/root/main/curescheinfo/maininfo/age" class="output_fix" appearance="output" style="left:553px; top:272px; width:30px; height:19px; "/>
  513. <line id="line5" class="line_2" style="x1:5px; y1:321px; x2:925px; y2:321px; "/>
  514. <line id="line18" class="line_2" style="x1:5px; y1:294px; x2:925px; y2:294px; "/>
  515. <input id="input2" ref="/root/main/curescheinfo/maininfo/remfact" class="input_default" appearance="input" style="left:100px; top:327px; width:825px; height:19px; "/>
  516. <select id="chk_printyn" ref="/root/temp/printyn1" overflow="visible" appearance="full" style="left:5px; top:715px; width:185px; height:15px; border-style:none; ">
  517. <choices>
  518. <item>
  519. <label>방사성요오드치료준비안내출력</label>
  520. <value>Y</value>
  521. </item>
  522. </choices>
  523. </select>
  524. <select id="checkbox2" ref="/root/temp/printyn2" overflow="visible" appearance="full" style="left:198px; top:715px; width:115px; height:15px; border-style:none; ">
  525. <choices>
  526. <item>
  527. <label>저요오드식안내문</label>
  528. <value>Y</value>
  529. </item>
  530. </choices>
  531. </select>
  532. <select id="checkbox3" ref="/root/temp/printyn3" overflow="visible" appearance="full" style="left:320px; top:715px; width:100px; height:15px; border-style:none; ">
  533. <choices>
  534. <item>
  535. <label>안내와주의사항</label>
  536. <value>Y</value>
  537. </item>
  538. </choices>
  539. </select>
  540. <select id="checkbox1" ref="/root/temp/printyn4" overflow="visible" appearance="full" style="left:425px; top:715px; width:75px; height:15px; border-style:none; ">
  541. <choices>
  542. <item>
  543. <label>주사요법</label>
  544. <value>Y</value>
  545. </item>
  546. </choices>
  547. </select>
  548. <input id="input8" ref="/root/main/curescheinfo/maininfo/startdd" class="input_default" inputtype="date" style="left:100px; top:677px; width:110px; height:19px; "/>
  549. <select1 id="cmb_endcnts" ref="/root/main/curescheinfo/maininfo/endcnts" appearance="minimal" style="left:310px; top:677px; width:145px; height:19px; ">
  550. <choices>
  551. <item>
  552. <label>지시사항 있을때</label>
  553. <value>1</value>
  554. </item>
  555. <item>
  556. <label>I-131 검사날</label>
  557. <value>2</value>
  558. </item>
  559. <item>
  560. <label>I-123 검사날</label>
  561. <value>3</value>
  562. </item>
  563. <item>
  564. <label>입원 하는날</label>
  565. <value>4</value>
  566. </item>
  567. </choices>
  568. </select1>
  569. <input id="input9" ref="/root/main/curescheinfo/maininfo/inschedd" class="input_default" inputtype="date" style="left:572px; top:678px; width:123px; height:19px; "/>
  570. <group id="grp_report1" visibility="hidden" style="left:10px; top:145px; width:85px; height:85px; "/>
  571. <group id="grp_report2" visibility="hidden" style="left:100px; top:145px; width:85px; height:85px; "/>
  572. <group id="grp_report3" visibility="hidden" style="left:190px; top:145px; width:85px; height:85px; "/>
  573. <group id="grp_report4" visibility="hidden" style="left:280px; top:145px; width:85px; height:85px; "/>
  574. <group id="grp_report5" visibility="hidden" style="left:370px; top:145px; width:85px; height:85px; "/>
  575. <group id="grp_report6" visibility="hidden" style="left:460px; top:145px; width:85px; height:85px; "/>
  576. <group id="grp_report7" visibility="hidden" style="left:550px; top:145px; width:85px; height:85px; "/>
  577. <caption id="caption22" style="left:240px; top:457px; width:673px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">6시간 전 금식 후 핵의학과 혈액검사 검사를 위한 약물 투여</caption>
  578. <caption id="caption28" style="left:240px; top:483px; width:252px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">검사용사진촬영(전신촬영I-131)</caption>
  579. <input id="input10" ref="/root/main/curescheinfo/maininfo/curedg3" class="input_default" inputtype="date" style="left:100px; top:457px; width:130px; height:19px; font-size:11pt; font-weight:bold; ">
  580. <script type="javascript" ev:event="xforms-value-changed">
  581. <![CDATA[
  582. var curedg3 = model.getValue("/root/main/curescheinfo/maininfo/curedg3");
  583. if (curedg3 != "") {
  584. model.setValue("/root/main/curescheinfo/maininfo/curedg2", curedg3.toDate().getAddDate(model.getValue("root/main/list/item/dietregmdd")*1).getDateFormat());
  585. model.setValue("/root/main/curescheinfo/maininfo/curedg1", curedg3.toDate().getAddDate(model.getValue("root/main/list/item/drugadjtdd")*1).getDateFormat());
  586. //model.setValue("/root/main/curescheinfo/maininfo/curedg7", curedg3.toDate().getAddDate(model.getValue("root/main/list/item/examrsrvdd")*1).getDateFormat());
  587. model.setValue("/root/main/curescheinfo/maininfo/curedg7", model.getValue("/root/main/curescheinfo/maininfo/curedg3"));
  588. model.setValue("/root/main/curescheinfo/maininfo/startdd", model.getValue("/root/main/curescheinfo/maininfo/curedg2"));
  589. model.refresh();
  590. }
  591. ]]>
  592. </script>
  593. </input>
  594. <input id="input11" ref="/root/main/curescheinfo/maininfo/curedg2" class="input_default" inputtype="date" style="left:100px; top:430px; width:130px; height:19px; font-size:11pt; font-weight:bold; ">
  595. <script type="javascript" ev:event="xforms-value-changed">
  596. <![CDATA[
  597. ]]>
  598. </script>
  599. </input>
  600. <input id="input12" ref="/root/main/curescheinfo/maininfo/curedg4" class="input_default" inputtype="date" style="left:100px; top:483px; width:130px; height:19px; font-size:11pt; font-weight:bold; "/>
  601. <input id="input13" ref="/root/main/curescheinfo/maininfo/curedg5" class="input_default" inputtype="date" style="left:100px; top:511px; width:130px; height:19px; font-size:11pt; font-weight:bold; ">
  602. <script type="javascript" ev:event="xforms-value-changed">
  603. <![CDATA[
  604. ]]>
  605. </script>
  606. </input>
  607. <caption id="caption8" class="cell_1" style="left:5px; top:385px; width:92px; height:23px; text-align:left; vertical-align:middle; ">약품조절</caption>
  608. <caption id="caption10" class="cell_1" style="left:5px; top:427px; width:92px; height:23px; text-align:left; vertical-align:middle; ">식이요법</caption>
  609. <caption id="caption30" class="cell_1" style="left:5px; top:454px; width:92px; height:23px; text-align:left; vertical-align:middle; ">검사예약</caption>
  610. <caption id="caption31" class="cell_1" style="left:5px; top:481px; width:92px; height:23px; text-align:left; vertical-align:middle; ">검사촬영1</caption>
  611. <caption id="caption32" class="cell_1" style="left:5px; top:508px; width:92px; height:23px; text-align:left; vertical-align:middle; ">치료일</caption>
  612. <caption id="caption33" class="cell_1" style="left:5px; top:535px; width:92px; height:23px; text-align:left; vertical-align:middle; ">치료 후 촬영</caption>
  613. <line id="line9" class="line_1" style="x1:5px; y1:380px; x2:925px; y2:380px; "/>
  614. <caption id="caption34" class="tit_2" style="left:5px; top:365px; width:193px; height:13px; ">방사성 요오드 치료 준비 안내</caption>
  615. <caption id="caption35" style="left:240px; top:407px; width:673px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">새로 처방 받은 호르몬 (흰색 테트로닌) 시작</caption>
  616. <line id="line2" class="line_2" style="x1:5px; y1:451px; x2:925px; y2:451px; "/>
  617. <line id="line4" class="line_2" style="x1:5px; y1:478px; x2:97px; y2:478px; "/>
  618. <line id="line6" class="line_2" style="x1:5px; y1:505px; x2:925px; y2:505px; "/>
  619. <line id="line7" class="line_2" style="x1:5px; y1:532px; x2:925px; y2:532px; "/>
  620. <line id="line8" class="line_2" style="x1:5px; y1:560px; x2:925px; y2:560px; "/>
  621. <caption id="caption12" class="cell_1" style="left:5px; top:562px; width:92px; height:23px; text-align:left; vertical-align:middle; ">안내</caption>
  622. <line id="line10" class="line_3" style="x1:5px; y1:640px; x2:925px; y2:640px; "/>
  623. <line id="line11" class="line_1" style="x1:5px; y1:670px; x2:455px; y2:670px; "/>
  624. <caption id="caption14" class="tit_2" style="left:5px; top:655px; width:240px; height:13px; ">저요오드식(Low lodine Diet) 안내문</caption>
  625. <caption id="caption29" class="cell_1" style="left:5px; top:675px; width:92px; height:23px; text-align:left; vertical-align:middle; ">시작</caption>
  626. <caption id="caption24" class="cell_1" style="left:215px; top:675px; width:92px; height:23px; text-align:left; vertical-align:middle; ">아침부터 ~ 끝</caption>
  627. <line id="line14" class="line_1" style="x1:475px; y1:670px; x2:925px; y2:670px; "/>
  628. <caption id="caption25" class="tit_2" style="left:475px; top:655px; width:302px; height:13px; ">방사성 요오드 입원치료에 대한 안내와 주의사항</caption>
  629. <caption id="caption36" class="cell_1" style="left:475px; top:675px; width:92px; height:23px; text-align:left; vertical-align:middle; ">입원 예정일</caption>
  630. <line id="line15" class="line_3" style="x1:5px; y1:699px; x2:455px; y2:699px; "/>
  631. <line id="line16" class="line_3" style="x1:475px; y1:699px; x2:925px; y2:699px; "/>
  632. <group id="group1" style="left:5px; top:735px; width:920px; height:30px; ">
  633. <button id="btn_holdcncl" class="btn4_letter2" visibility="hidden" style="left:520px; top:5px; width:56px; height:22px; ">
  634. <caption>삭제</caption>
  635. <script type="javascript" ev:event="DOMActivate">
  636. <![CDATA[
  637. var flag = model.getValue("/root/main/curescheinfo/maininfo/flag");
  638. if (flag == "I" ) {
  639. model.resetInstanceNode("/root/main/curescheinfo/maininfo");
  640. model.refresh();
  641. } else {
  642. model.setValue("/root/main/curescheinfo/maininfo/flag","D");
  643. submit("TXAEA04601");
  644. }
  645. ]]>
  646. </script>
  647. </button>
  648. <button id="btn_print" class="btn4_letter2" style="left:803px; top:5px; width:56px; height:22px; ">
  649. <caption>출력</caption>
  650. <script type="javascript" ev:event="DOMActivate">
  651. <![CDATA[
  652. model.makeValue("/root/main/curescheinfo/maininfo/endcontsnm" , cmb_endcnts.label);
  653. var dutplcedepthngnm = model.getValue("/root/main/curescheinfo/maininfo/dutplcedepthngnm");
  654. var dutplceinstnm = getUserInfo("dutplceinstnm");
  655. model.makeValue("/root/main/curescheinfo/maininfo/dutplceinstnm", dutplceinstnm + " " + dutplcedepthngnm);
  656. var printyn1 = model.getValue("/root/temp/printyn1");
  657. var printyn2 = model.getValue("/root/temp/printyn2");
  658. var printyn3 = model.getValue("/root/temp/printyn3");
  659. var printyn4 = model.getValue("/root/temp/printyn4");
  660. var sPreview = "true";
  661. if ( printyn1 == "Y" ) {
  662. exeReportPreview("RPAEB02900", "XMLSTR", "/root/main/curescheinfo/maininfo", "", sPreview, "", "", "", "", "", "", "grp_report1");
  663. }
  664. if ( printyn2 == "Y" ) {
  665. exeReportPreview("RPAEB03000", "XMLSTR", "/root/main/curescheinfo/maininfo", "", sPreview, "", "", "", "", "", "", "grp_report2");
  666. exeReportPreview("RPAEB03100", "XMLSTR", "/root/main/curescheinfo/maininfo", "", sPreview, "", "", "", "", "", "", "grp_report3");
  667. }
  668. if ( printyn3 == "Y" ) {
  669. exeReportPreview("RPAEB03200", "XMLSTR", "/root/main/curescheinfo/maininfo", "", sPreview, "", "", "", "", "", "", "grp_report4");
  670. exeReportPreview("RPAEB03300", "XMLSTR", "/root/main/curescheinfo/maininfo", "", sPreview, "", "", "", "", "", "", "grp_report5");
  671. exeReportPreview("RPAEB03400", "XMLSTR", "/root/main/curescheinfo/maininfo", "", sPreview, "", "", "", "", "", "", "grp_report6");
  672. }
  673. if ( printyn4 == "Y" ) {
  674. model.removenode("/root/print4/temp");
  675. var day ="";
  676. var baseDate;
  677. var pid = model.getValue("/root/main/curescheinfo/maininfo/pid");
  678. var hngnm = model.getValue("/root/main/curescheinfo/maininfo/hngnm");
  679. var curedg2 = model.getValue("/root/main/curescheinfo/maininfo/curedg2");
  680. var curedg3 = model.getValue("/root/main/curescheinfo/maininfo/curedg3");
  681. var curedg4 = model.getValue("/root/main/curescheinfo/maininfo/curedg4");
  682. var curedg5 = model.getValue("/root/main/curescheinfo/maininfo/curedg5");
  683. var curedg6 = model.getValue("/root/main/curescheinfo/maininfo/curedg6");
  684. var fstinjdrugdd = model.getValue("/root/main/curescheinfo/maininfo/fstinjdrugdd");
  685. var scndinjdrugdd = model.getValue("/root/main/curescheinfo/maininfo/scndinjdrugdd");
  686. var fstinjdrugdd1 = fstinjdrugdd.toDate().getAddDate(1).getDateFormat();
  687. var scndinjdrugdd1 = scndinjdrugdd.toDate().getAddDate(1).getDateFormat();
  688. baseDate = curedg2.toDate("YYYYMMDD");
  689. day = baseDate.getDayOfWeek("K");
  690. curedg2 = curedg2.substr(0, 4) + "년 " + curedg2.substr(4, 2) + "월 " + curedg2.substr(6, 2) + "일 " + day + "요일";
  691. baseDate = curedg3.toDate("YYYYMMDD");
  692. day = baseDate.getDayOfWeek("K");
  693. curedg3 = curedg3.substr(0, 4) + "년 " + curedg3.substr(4, 2) + "월 " + curedg3.substr(6, 2) + "일 " + day + "요일";
  694. baseDate = curedg4.toDate("YYYYMMDD");
  695. day = baseDate.getDayOfWeek("K");
  696. curedg4 = curedg4.substr(0, 4) + "년 " + curedg4.substr(4, 2) + "월 " + curedg4.substr(6, 2) + "일 " + day + "요일";
  697. baseDate = curedg5.toDate("YYYYMMDD");
  698. day = baseDate.getDayOfWeek("K");
  699. curedg5 = curedg5.substr(0, 4) + "년 " + curedg5.substr(4, 2) + "월 " + curedg5.substr(6, 2) + "일 " + day + "요일";
  700. baseDate = curedg6.toDate("YYYYMMDD");
  701. day = baseDate.getDayOfWeek("K");
  702. curedg6 = curedg6.substr(0, 4) + "년 " + curedg6.substr(4, 2) + "월 " + curedg6.substr(6, 2) + "일 " + day + "요일";
  703. baseDate = fstinjdrugdd.toDate("YYYYMMDD");
  704. day = baseDate.getDayOfWeek("K");
  705. fstinjdrugdd = fstinjdrugdd.substr(0, 4) + "년 " + fstinjdrugdd.substr(4, 2) + "월 " + fstinjdrugdd.substr(6, 2) + "일 " + day + "요일";
  706. baseDate = scndinjdrugdd.toDate("YYYYMMDD");
  707. day = baseDate.getDayOfWeek("K");
  708. scndinjdrugdd = scndinjdrugdd.substr(0, 4) + "년 " + scndinjdrugdd.substr(4, 2) + "월 " + scndinjdrugdd.substr(6, 2) + "일 " + day + "요일";
  709. baseDate = fstinjdrugdd1.toDate("YYYYMMDD");
  710. day = baseDate.getDayOfWeek("K");
  711. fstinjdrugdd1 = fstinjdrugdd1.substr(0, 4) + "년 " + fstinjdrugdd1.substr(4, 2) + "월 " + fstinjdrugdd1.substr(6, 2) + "일 " + day + "요일";
  712. baseDate = scndinjdrugdd1.toDate("YYYYMMDD");
  713. day = baseDate.getDayOfWeek("K");
  714. scndinjdrugdd1 = scndinjdrugdd1.substr(0, 4) + "년 " + scndinjdrugdd1.substr(4, 2) + "월 " + scndinjdrugdd1.substr(6, 2) + "일 " + day + "요일";
  715. model.makeValue("/root/print4/temp/pid", pid);
  716. model.makeValue("/root/print4/temp/hngnm", hngnm);
  717. model.makeValue("/root/print4/temp/curedg2", curedg2);
  718. model.makeValue("/root/print4/temp/curedg3", curedg3);
  719. model.makeValue("/root/print4/temp/curedg4", curedg4);
  720. model.makeValue("/root/print4/temp/curedg5", curedg5);
  721. model.makeValue("/root/print4/temp/curedg6", curedg6);
  722. model.makeValue("/root/print4/temp/fstinjdrugdd", fstinjdrugdd);
  723. model.makeValue("/root/print4/temp/scndinjdrugdd", scndinjdrugdd);
  724. model.makeValue("/root/print4/temp/fstinjdrugdd1", fstinjdrugdd1);
  725. model.makeValue("/root/print4/temp/scndinjdrugdd1", scndinjdrugdd1);
  726. model.makeValue("/root/print4/temp/dutplceinstnm", dutplceinstnm + " " + dutplcedepthngnm);
  727. model.makeValue("/root/print4/temp/depttel", model.getValue("/root/main/curescheinfo/maininfo/depttel")); //2009-07-6 문의전화 추가
  728. model.makeValue("/root/print4/temp/depttime1", model.getValue("/root/main/curescheinfo/maininfo/depttime1")); //2009-07-6 문의시간_1 추가
  729. model.makeValue("/root/print4/temp/depttime2", model.getValue("/root/main/curescheinfo/maininfo/depttime2")); //2009-07-6 문의시간_2 추가
  730. model.makeValue("/root/print4/temp/depttime3", model.getValue("/root/main/curescheinfo/maininfo/depttime3")); //2009-07-6 문의시간_3 추가
  731. exeReportPreview("RPAEB03500", "XMLSTR", "/root/print4/temp", "", sPreview, "", "", "", "", "", "", "grp_report7");
  732. }
  733. ]]>
  734. </script>
  735. </button>
  736. <button id="button3" class="btn4_letter3" style="left:674px; top:5px; width:68px; height:22px; ">
  737. <caption>초기화</caption>
  738. <script type="javascript" ev:event="DOMActivate">
  739. <![CDATA[
  740. fInit();
  741. ]]>
  742. </script>
  743. </button>
  744. <button id="button4" class="btn4_letter2" style="left:744px; top:5px; width:56px; height:22px; ">
  745. <caption>저장</caption>
  746. <script type="javascript" ev:event="DOMActivate">
  747. <![CDATA[
  748. var pid = model.getValue("/root/main/curescheinfo/maininfo/pid");
  749. if ( pid == "" ) {
  750. messageBox("등록번호를","C001");
  751. return "0";
  752. }
  753. var flag = model.getValue("/root/main/curescheinfo/maininfo/flag");
  754. var age = model.getValue("/root/main/curescheinfo/maininfo/age");
  755. if (flag == "" ) {
  756. model.setValue("/root/main/curescheinfo/maininfo/flag","I");
  757. model.setValue("/root/main/curescheinfo/maininfo/genrdd",getCurrentDate());
  758. }
  759. if (age == "-") {
  760. model.setValue("/root/main/curescheinfo/maininfo/age","0");
  761. }
  762. model.setValue("/root/main/curescheinfo/maininfo/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  763. model.setValue("/root/send/data/srchpid", model.getValue("/root/main/curescheinfo/maininfo/pid"));
  764. if (submit("TXAEA04601", false)) {
  765. fGetCureScheList();
  766. model.refresh();
  767. }
  768. ]]>
  769. </script>
  770. </button>
  771. <button id="button1" class="btn4_letter2" style="left:860px; top:5px; width:56px; height:22px; ">
  772. <caption>닫기</caption>
  773. <script type="javascript" ev:event="DOMActivate">
  774. <![CDATA[
  775. if (checkOpener()) {
  776. // opener.javascript.fRefresh();
  777. opener.model.refresh();
  778. }
  779. window.close();
  780. ]]>
  781. </script>
  782. </button>
  783. <button id="button2" class="btn4_letter2" style="left:5px; top:5px; width:56px; height:22px; ">
  784. <caption>복사</caption>
  785. <script type="javascript" ev:event="DOMActivate">
  786. <![CDATA[
  787. var copyValue = "";
  788. copyValue += "약품조절 : " + model.getValue("/root/main/curescheinfo/maininfo/curedg1") + "\r\n";
  789. copyValue += "식이요법 : " + model.getValue("/root/main/curescheinfo/maininfo/curedg2") + "\r\n";
  790. copyValue += "검사예약 : " + model.getValue("/root/main/curescheinfo/maininfo/curedg3") + "\r\n";
  791. copyValue += "검사촬영 : " + model.getValue("/root/main/curescheinfo/maininfo/curedg4") + "\r\n";
  792. copyValue += "치료일 : " + model.getValue("/root/main/curescheinfo/maininfo/curedg5") + "\r\n";
  793. copyValue += "치료 후 촬영 : " + model.getValue("/root/main/curescheinfo/maininfo/curedg6");
  794. window.clipBoardData = copyValue;
  795. ]]>
  796. </script>
  797. </button>
  798. </group>
  799. <caption id="caption16" class="cell_1" style="left:215px; top:297px; width:92px; height:23px; text-align:left; vertical-align:middle; ">의사명</caption>
  800. <caption id="caption37" class="cell_1" style="left:5px; top:297px; width:92px; height:23px; text-align:left; vertical-align:middle; ">진료과</caption>
  801. <select1 id="cmb_orddr" ref="/root/main/curescheinfo/maininfo/orddrid" appearance="minimal" style="left:310px; top:300px; width:110px; height:19px; ">
  802. <choices>
  803. <itemset nodeset="/root/init/orddrid">
  804. <label ref="nm"/>
  805. <value ref="cd"/>
  806. </itemset>
  807. </choices>
  808. </select1>
  809. <caption id="caption38" class="cell_1" style="left:5px; top:324px; width:92px; height:23px; text-align:left; vertical-align:middle; ">참고사항</caption>
  810. <select1 id="cmb_orddept" ref="/root/main/curescheinfo/maininfo/orddeptcd" appearance="minimal" style="left:100px; top:300px; width:110px; height:19px; ">
  811. <choices>
  812. <itemset nodeset="/root/init/orddeptcd">
  813. <label ref="nm"/>
  814. <value ref="cd"/>
  815. </itemset>
  816. </choices>
  817. </select1>
  818. <caption id="caption1" class="cell_1" style="left:425px; top:297px; width:92px; height:23px; text-align:left; vertical-align:middle; ">상태</caption>
  819. <caption id="caption7" class="cell_1" style="left:635px; top:297px; width:92px; height:23px; text-align:left; vertical-align:middle; ">연락처</caption>
  820. <input id="input5" ref="/root/main/curescheinfo/maininfo/cntctel" style="left:730px; top:300px; width:195px; height:19px; "/>
  821. <line id="line17" class="line_3" style="x1:5px; y1:349px; x2:925px; y2:349px; "/>
  822. <select1 id="combo1" ref="/root/main/curescheinfo/maininfo/statcd" appearance="minimal" style="left:519px; top:300px; width:110px; height:19px; ">
  823. <choices>
  824. <item>
  825. <label>입원</label>
  826. <value>I</value>
  827. </item>
  828. <item>
  829. <label>입원예정</label>
  830. <value>R</value>
  831. </item>
  832. <item>
  833. <label>대기</label>
  834. <value>D</value>
  835. </item>
  836. <item>
  837. <label>외래</label>
  838. <value>O</value>
  839. </item>
  840. </choices>
  841. </select1>
  842. <input id="input3" ref="/root/main/curescheinfo/maininfo/fstinjdrugdd" class="input_default" inputtype="date" style="left:600px; top:712px; width:110px; height:19px; "/>
  843. <caption id="caption9" class="cell_1" style="left:505px; top:710px; width:92px; height:23px; text-align:left; vertical-align:middle; ">1차 주사일</caption>
  844. <input id="input4" ref="/root/main/curescheinfo/maininfo/scndinjdrugdd" class="input_default" inputtype="date" style="left:812px; top:712px; width:110px; height:19px; "/>
  845. <caption id="caption13" class="cell_1" style="left:717px; top:710px; width:92px; height:23px; text-align:left; vertical-align:middle; ">2차 주사일</caption>
  846. <caption id="caption39" class="cell_1" visibility="hidden" style="left:495px; top:481px; width:92px; height:23px; text-align:left; vertical-align:middle; ">검사촬영2</caption>
  847. <input id="input6" ref="/root/main/curescheinfo/maininfo/curedg7" class="input_default" visibility="hidden" inputtype="date" style="left:590px; top:483px; width:130px; height:19px; font-size:11pt; font-weight:bold; "/>
  848. <caption id="caption40" visibility="hidden" style="left:728px; top:483px; width:175px; height:19px; font-family:굴림체; font-size:11pt; font-weight:bold; ">검사용사진촬영(MIBI)</caption>
  849. </xhtml:body>
  850. </xhtml:html>