SMAYA03600_환자관리.xrw 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770
  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. <inptinfo>
  11. <inptlist>
  12. <chk/>
  13. <roomcd/>
  14. <pid/>
  15. <hngnm/>
  16. <hngnmbtn/>
  17. <baptnm/>
  18. <baptnmbtn/>
  19. <relignnm/>
  20. <wardbaotnm/>
  21. <wardreligncd/>
  22. <vipyn/>
  23. <nurseno/>
  24. <cnstno/>
  25. <etcno/>
  26. <conslrchono/>
  27. <reqcnts/>
  28. <visittims/>
  29. <asesrec/>
  30. <sex/>
  31. <age/>
  32. <deptnm/>
  33. <atdoctnm/>
  34. <indd/>
  35. <opschedd/>
  36. <dschdd/>
  37. <dethdt/>
  38. <engnmdiagnm/>
  39. <hngnmdiagnm/>
  40. <cretno/>
  41. <etcactdd/>
  42. <etcconslrid/>
  43. <etcrem/>
  44. <etcconslrnm/>
  45. <etcseqno/>
  46. <reqyn/>
  47. <etcyn/>
  48. <sickdivseryn/>
  49. <reqkind/>
  50. <actflag/>
  51. <cnstreq/>
  52. </inptlist>
  53. </inptinfo>
  54. <inptcnt>
  55. <inhospcnt/>
  56. <visitcnt/>
  57. <asescnt/>
  58. <reqcnt/>
  59. <sickdivsercnt/>
  60. </inptcnt>
  61. <patminfo>
  62. <conslrid/>
  63. <actdd/>
  64. <actflag/>
  65. <seqno/>
  66. <pid/>
  67. <indd/>
  68. <cretno/>
  69. <acttims/>
  70. <acttm/>
  71. <acttmhour/>
  72. <acttmminu/>
  73. <asescarereccnst/>
  74. <rem/>
  75. <conslrnm/>
  76. </patminfo>
  77. <etcreq>
  78. <conslrid/>
  79. <actdd/>
  80. <actflag/>
  81. <seqno/>
  82. <pid/>
  83. <indd/>
  84. <cretno/>
  85. <acttims/>
  86. <acttm/>
  87. <acttmhour/>
  88. <acttmminu/>
  89. <asescarereccnst/>
  90. <rem/>
  91. <conslrnm/>
  92. <status/>
  93. <asesrec/>
  94. <nurseno/>
  95. <cnstno/>
  96. <etcno/>
  97. <conslrchono/>
  98. </etcreq>
  99. </main>
  100. <send>
  101. <reqdata/>
  102. <cond>
  103. <choice>1</choice>
  104. <wardcd/>
  105. <roomcd/>
  106. <patflag>2</patflag>
  107. <fromdd/>
  108. <todd/>
  109. <relign/>
  110. <aseskind>A</aseskind>
  111. <diagflag>H</diagflag>
  112. <conslrid/>
  113. </cond>
  114. <savedata/>
  115. <cmbcond/>
  116. </send>
  117. <init>
  118. <dept>
  119. <dept>
  120. </dept>
  121. </dept>
  122. <codelist/>
  123. <cmblist>
  124. <ward>
  125. </ward>
  126. <conslrward>
  127. <dept>
  128. <depthngnm/>
  129. <deptcd/>
  130. </dept>
  131. </conslrward>
  132. <relign>
  133. <P0157>
  134. </P0157>
  135. </relign>
  136. <wardrelign>
  137. <M0070>
  138. </M0070>
  139. </wardrelign>
  140. <roomlist>
  141. <room>
  142. <roomnm/>
  143. <roomcd/>
  144. </room>
  145. </roomlist>
  146. <actflag/>
  147. <aseskind>
  148. <A0464/>
  149. </aseskind>
  150. <etcactflag/>
  151. </cmblist>
  152. </init>
  153. <hidden>
  154. <errmsg/>
  155. </hidden>
  156. </root>
  157. </instance>
  158. <script type="javascript" ev:event="xforms-ready">
  159. <![CDATA[
  160. fGetJobrespcd();
  161. fInit();
  162. ]]>
  163. </script>
  164. <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  165. <submission id="TRZBC00105" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  166. <submission id="TRZSD00109" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  167. <submission id="TRAYA03601" ref="/root/send/cmbcond" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/cmblist/conslrward"/>
  168. <submission id="TRAYA03602" ref="/root/send/cmbcond" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/cmblist/roomlist"/>
  169. <submission id="TRAYA03603" ref="/root/send/cond" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/inptinfo"/>
  170. <submission id="TXAYA03501" ref="/root/send/savedata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/hidden/errmsg"/>
  171. <script type="javascript" ev:event="xforms-model-destruct">
  172. <![CDATA[
  173. if(getGlobalVariable("paminfo").length > 0){
  174. delPatientInfos();
  175. }
  176. ]]>
  177. </script>
  178. </model>
  179. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  180. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  181. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  182. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  183. <script type="javascript" src="../../../com/departmentcodeweb/js/common.js"/>
  184. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  185. <script type="javascript">
  186. <![CDATA[
  187. // 초기값 셋팅
  188. function fInit()
  189. {
  190. var userid = getUserInfo("userid");
  191. var usernm = getUserInfo("usernm");
  192. var dutplcecd = getUserInfo("dutplcecd");
  193. //alert(dutplcecd);
  194. // dutplcecd = "4050100000";
  195. // 원목자인 경우만 저장 가능
  196. if (dutplcecd == "4050100000" || dutplcecd == "4050400000")
  197. {
  198. btn_patmsave.disabled = false;
  199. btn_etcsave.disabled = false;
  200. btn_etcdel.disabled = false;
  201. }
  202. model.removeNodeset("/root/main/inptinfo/inptlist");
  203. grd_list.fixedcellcheckbox(0,1) = true;
  204. // 병동
  205. //var instcd = "012";
  206. var instcd = getUserInfo("dutplceinstcd");
  207. //alert("instcd : "+instcd);
  208. var standard_yn = "orduseyn";
  209. var ord_deptflag = 'W';
  210. var rslt_ref = "/root/init/cmblist/ward";
  211. var sort_method = "depthngnm";
  212. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
  213. // 공통코드
  214. zbcfGetCodeList(new Array("P0157", "A0464", "M0070"), new Array("/root/init/cmblist/relign", "/root/init/cmblist/aseskind", "/root/init/cmblist/wardrelign"), true);
  215. // 환자정보 중 종교 정보 병동간호조사지와 연동 (2009.11.18 hhm)
  216. // zbcfGetCodeList(new Array("M0070", "A0464"), new Array("/root/init/cmblist/relign", "/root/init/cmblist/aseskind"), true);
  217. // 유형코드(구분항목)
  218. zbcfGetKindCodeList(
  219. new Array("A0012"), //업무규칙
  220. new Array("A0457"), //코드군
  221. new Array("/root/init/cmblist/actflag"), //노드
  222. true, //minimum : true TRZBC00105
  223. new Array("dispseq"), //sorting 항목
  224. new Array("asc")
  225. );
  226. // 유형코드(구분항목)
  227. zbcfGetKindCodeList(
  228. new Array("A0017"), //업무규칙
  229. new Array("A0457"), //코드군
  230. new Array("/root/init/cmblist/etcactflag"), //노드
  231. true, //minimum : true TRZBC00105
  232. '',
  233. ''
  234. );
  235. // 종교 콤보에 전체 추가
  236. addComboItem("cmb_relign", "", "", "above");
  237. cmb_relign.select(0);
  238. //model.setValue("/root/send/cond/relign", "1");
  239. addComboItem("cmb_aseskind", "의뢰환자전체", "B", "above");
  240. addComboItem("cmb_aseskind", "", "", "above");
  241. cmb_aseskind.select(0);
  242. //진단명
  243. grd_list.colHidden(26) = true;
  244. grd_list.colHidden(25) = false;
  245. // 원목자지정병동 조회
  246. fConslrWard();
  247. // 선택(원목자지정병동, 병동)
  248. fChoice();
  249. fDiagnm();
  250. // 원목자지정병동인 경우는 전체가 표시되어야 함
  251. // Default가 원목자 지정이기 때문에 Load되면서 무조건 전체 추가되도록 함
  252. // Default가 병동인 경우는 다른 방법으로 해야 함.
  253. //=================================================
  254. addComboItem("cmb_wardcd", "", "A", "above");
  255. cmb_wardcd.refresh();
  256. cmb_wardcd.select(0);
  257. cmb_wardcd.dispatch("xforms-select");
  258. //=================================================
  259. //조회기간 오늘 날짜로 세팅
  260. var CurrentDate = getCurrentDate();
  261. model.setValue("/root/send/cond/fromdd", CurrentDate.substr(0, 6) + "01");
  262. model.setValue("/root/send/cond/todd", CurrentDate);
  263. // 환자관리 내용 등록 부분
  264. model.setValue("/root/main/patminfo/actdd", CurrentDate);
  265. model.setValue("/root/main/patminfo/conslrnm", usernm);
  266. // 기타의뢰 환자 등록 부분
  267. model.setValue("/root/main/etcreq/actdd", CurrentDate);
  268. model.setValue("/root/main/etcreq/conslrnm", usernm);
  269. // 재원을 Default로
  270. fPatFalgSelect();
  271. model.refresh();
  272. }
  273. /**========================================================================================================================================
  274. * 원목자 권한
  275. =========================================================================================================================================*/
  276. function fGetJobrespcd(){
  277. //사용자ID (입력자 또는 로그인한 사용자ID)
  278. // var userid = getUserInfo("userid");
  279. // model.setValue(cmb_conslrid.attribute("ref"), userid);
  280. //
  281. // model.refresh();
  282. //
  283. // var code = getUserInfo('jobposcd');
  284. // if(code == '1786' || code == '1782' || code == '1834' || code == '0550'){
  285. // //alert(code);
  286. // btn_emr.visible = true;
  287. // btn_consult.visible = true;
  288. // }else{
  289. // btn_emr.visible = false;
  290. // btn_consult.visible = false;
  291. //
  292. // }
  293. // }
  294. var SMAYA03600_param=getScreenMenuParameter();
  295. if(SMAYA03600_param=='N')
  296. { //호스피스로 로그인시 확인서 출력, 직인선택, 특별활동 등록 버튼 활성화
  297. btn_emr.visible = false;
  298. btn_consult.visible = false;
  299. btn_fAYA03500.visible = false;
  300. }
  301. else{
  302. btn_emr.visible = true;
  303. btn_consult.visible = true;
  304. btn_fAYA03500.visible = true;
  305. }
  306. }
  307. // 원목자지정병동 조회
  308. function fConslrWard()
  309. {
  310. var userid = getUserInfo("userid");
  311. model.removeNodeset("/root/send/cmbcond");
  312. model.makeValue("/root/send/cmbcond/conslrid", userid);
  313. submit("TRAYA03601", false);
  314. }
  315. // 선택(원목자지정병동, 병동)
  316. function fChoice()
  317. {
  318. var choice = rdo_choice.value;
  319. model.resetInstanceNode("/root/init/cmblist/roomlist");
  320. // 2: 병동
  321. if (choice== '2') {
  322. cmb_wardcd.choices.itemset.attribute("nodeset") = "/root/init/cmblist/ward/dept";
  323. }
  324. else
  325. {
  326. cmb_wardcd.choices.itemset.attribute("nodeset") = "/root/init/cmblist/conslrward/dept";
  327. if (model.instances(0).selectNodes("/root/init/cmblist/conslrward/dept").length == 0)
  328. {
  329. model.makeNode("/root/init/cmblist/conslrward/dept");
  330. }
  331. //addComboItem("cmb_wardcd", "", "A", "above");
  332. }
  333. cmb_wardcd.refresh();
  334. cmb_wardcd.select(0);
  335. cmb_wardcd.dispatch("xforms-select");
  336. //cmb_roomcd.refresh();
  337. //cmb_roomcd.select(0);
  338. }
  339. // 병실 콤보 가져오기
  340. function fGetRoomList()
  341. {
  342. var userid = getUserInfo("userid");
  343. model.removeNodeset("/root/send/cmbcond");
  344. model.makeValue("/root/send/cmbcond/conslrid", userid);
  345. model.makeValue("/root/send/cmbcond/wardcd", cmb_wardcd.value);
  346. model.makeValue("/root/send/cmbcond/choice", rdo_choice.value);
  347. model.resetInstanceNode("/root/send/cond/roomcd");
  348. if (submit("TRAYA03602", false) == true)
  349. {
  350. if (model.instances(0).selectNodes("/root/init/cmblist/roomlist/room").length == 0)
  351. {
  352. model.makeNode("/root/init/cmblist/roomlist/room");
  353. }
  354. addComboItem("cmb_roomcd", "", "", "above");
  355. }
  356. }
  357. // 환자관리내용조회 팝업
  358. function fAYA03500()
  359. {
  360. //2009.12.10, 원목팀 정성숙 선생님 요청으로 modal->modeless로 변경함.(2010.01.22 재변경 hhm)
  361. open("SPAYA03500",1,100,100);
  362. //modal("SPAYA03500",1,100,100);
  363. //modal("SPAYA03500",null,null,null, "SPAYA03500", "/root/actsource", "/root/main/actsource");
  364. }
  365. // 조회
  366. function fSearch()
  367. {
  368. var CurrentDate = getCurrentDate();
  369. var fromdd = model.getValue("/root/send/cond/fromdd");
  370. var todd = model.getValue("/root/send/cond/todd");
  371. var dateintval=getDateInterval(fromdd,todd);
  372. //alert(dateintval);
  373. if(dateintval>31)
  374. {
  375. messageBox("조회기간은 최대 1달까지 할 수 있습니다.","I");
  376. model.setValue("/root/send/cond/fromdd", CurrentDate.substr(0, 6) + "01");
  377. model.setValue("/root/send/cond/todd", CurrentDate);
  378. return;
  379. }
  380. if (model.getValue("/root/send/cond/wardcd") == "") {
  381. messageBox("병동을 ","C001");
  382. model.setFocus("cmb_wardcd");
  383. return;
  384. }
  385. grd_list.fixedcellischeck(0,1) = false;
  386. model.resetInstanceNode("/root/main/inptcnt");
  387. fPatmCancel();
  388. fEtcCancel();
  389. var userid = getUserInfo("userid");
  390. model.setValue("/root/send/cond/conslrid", userid);
  391. // reqGetInptPatInfo
  392. if (submit("TRAYA03603", false) == true)
  393. {
  394. var inhospcnt = 0;
  395. var visitcnt = 0;
  396. var asescnt = 0;
  397. var reqcnt = 0;
  398. var sickdivsercnt = 0;
  399. var nodecnt = model.instances(0).selectNodes("/root/main/inptinfo/inptlist").length;
  400. for(var i = 1; i<=nodecnt; i++)
  401. {
  402. var pid = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/pid")
  403. var reqkind = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/reqkind");
  404. var reqcnts = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/reqcnts");
  405. var visittims = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/visittims");
  406. var asesrec = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/asesrec");
  407. var reqyn = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/reqyn");
  408. var etcyn = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/etcyn");
  409. var sickdivseryn = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/sickdivseryn");
  410. // 재원환자수
  411. if (pid != "")
  412. {
  413. inhospcnt = inhospcnt + 1;
  414. }
  415. // 총방문자수
  416. if (visittims > 0)
  417. {
  418. visitcnt = visitcnt + 1;
  419. }
  420. // 영적돌봄의뢰수
  421. if (reqkind != "")
  422. {
  423. asescnt = asescnt + 1;
  424. }
  425. // 의뢰환자방문수
  426. if (reqkind != "" && visittims > 0)
  427. {
  428. reqcnt = reqcnt + 1;
  429. }
  430. // 병자성사수
  431. if (sickdivseryn == "Y")
  432. {
  433. sickdivsercnt = sickdivsercnt + 1;
  434. }
  435. model.setValue("/root/main/inptcnt/inhospcnt", inhospcnt);
  436. model.setValue("/root/main/inptcnt/visitcnt", visitcnt);
  437. model.setValue("/root/main/inptcnt/asescnt", asescnt);
  438. model.setValue("/root/main/inptcnt/reqcnt", reqcnt);
  439. model.setValue("/root/main/inptcnt/sickdivsercnt", sickdivsercnt);
  440. }
  441. //타과의뢰로 조회된 환자중 의뢰/의뢰확정환자 색표시
  442. var idxRows=grd_list.rows;
  443. if(idxRows =='0' || idxRows !='0')
  444. {
  445. for(i=1;i<=idxRows;i++)
  446. {
  447. var cnstreq = model.getValue("/root/main/inptinfo/inptlist"+"["+i+"]/cnstreq");
  448. if(cnstreq=="Y")
  449. {
  450. //alert(cnstreq);
  451. grd_list.cellStyle("background-color",i+1,1, i+1, 26) = "#FDE899";
  452. }
  453. else
  454. {
  455. grd_list.cellStyle("background-color",i+1,0, i+1, 26) = "#ffffff";
  456. }
  457. }
  458. }
  459. model.refresh();
  460. }
  461. else
  462. {
  463. }
  464. }
  465. // 저장시 필수체크 여부
  466. function fCheckPatmDate()
  467. {
  468. var chk = "N";
  469. for(var i =0; i<grd_list.rows; i++)
  470. {
  471. if (grd_list.valueMatrix(i, grd_list.colRef("chk")) == "Y")
  472. {
  473. chk = "Y";
  474. break;
  475. }
  476. }
  477. if (chk == "N")
  478. {
  479. messageBox("환자관리 내용을 등록할 입원환자를", "C002");
  480. return false;
  481. }
  482. if (model.getValue("/root/main/patminfo/actdd") == "") {
  483. messageBox("활동일자를 ","C001");
  484. model.setFocus("ipt_actdd");
  485. return false;
  486. }
  487. if (model.getValue("/root/main/patminfo/actflag") == "") {
  488. messageBox("구분을 ","C001");
  489. model.setFocus("cmb_actflag");
  490. return false;
  491. }
  492. // 횟수 체크
  493. var actflag = model.getValue("/root/main/patminfo/actflag");
  494. // 방문 :1, 상담:2, 봉성체:3
  495. if (actflag == "1")
  496. {
  497. if (model.getValue("/root/main/patminfo/acttims") == "") {
  498. messageBox("횟수를 ","C001");
  499. model.setFocus("ipt_acttims");
  500. return false;
  501. }
  502. }
  503. else if (actflag == "2")
  504. {
  505. if (model.getValue("/root/main/patminfo/acttims") == "") {
  506. messageBox("횟수를 ","C001");
  507. model.setFocus("ipt_acttims");
  508. return false;
  509. }
  510. }
  511. return true;
  512. }
  513. // 환자관리 내용 저장
  514. function fPatmSave()
  515. {
  516. var sPassData =
  517. "conslrid" //원목자ID
  518. + "▦actdd" //활동일자
  519. + "▦actflag" //활동구분
  520. + "▦pid" //등록번호
  521. + "▦indd" //진료일자
  522. + "▦cretno" //생성번호
  523. + "▦acttims" //활동횟수
  524. + "▦acttm" //활동횟수
  525. + "▦asescarereccnst" //영적돌봄기록상담여부
  526. + "▦rem" //비고
  527. + "▦status" //상태
  528. + "▩" ;
  529. var conslrid = getUserInfo("userid");
  530. var actdd = model.getValue("/root/main/patminfo/actdd");
  531. var actflag = model.getValue("/root/main/patminfo/actflag");
  532. var acttims = model.getValue("/root/main/patminfo/acttims");
  533. // 시간 계산
  534. //==============================================================
  535. //var acttm = model.getValue("/root/main/patminfo/acttm");
  536. var acttmhour = model.getValue("/root/main/patminfo/acttmhour");
  537. var acttmminu = model.getValue("/root/main/patminfo/acttmminu");
  538. acttmhour = (acttmhour == '')? 0 : acttmhour;
  539. acttmminu = (acttmminu == '')? 0 : acttmminu;
  540. var tot = (eval(acttmhour)*60) + eval(acttmminu);
  541. var chkcnt = model.instances(0).selectNodes("/root/main/inptinfo/inptlist[chk='Y']").length;
  542. var acttm = "0";
  543. if (chkcnt == "0")
  544. {
  545. acttm = "0";
  546. }
  547. else
  548. {
  549. acttm = Math.round(tot/chkcnt);
  550. }
  551. //alert(acttm);
  552. //==============================================================
  553. //var asescarereccnst = model.getValue("/root/main/patminfo/asescarereccnst");
  554. var rem = model.getValue("/root/main/patminfo/rem");
  555. var asescarereccnst = "N";
  556. if (bol_asescarereccnst.value == "true")
  557. {
  558. asescarereccnst = "Y";
  559. }
  560. var totRow = grd_list.rows;
  561. var chkYN = "";
  562. for(var i = 1; i < totRow; i++) {
  563. var chkFlag = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/chk"); //체크되었을 때 true를 반환함
  564. var attdncdd = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd");
  565. if (chkFlag == "Y"){
  566. sPassData = sPassData + conslrid
  567. + "▦" + actdd
  568. + "▦" + actflag
  569. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/pid")
  570. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/indd")
  571. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/cretno")
  572. + "▦" + acttims
  573. + "▦" + acttm
  574. + "▦" + asescarereccnst
  575. + "▦" + rem
  576. + "▦" + "i"
  577. + "▩" ;
  578. chkYN = 'Y'; //체크여부 확인하기 위한 값
  579. }
  580. }
  581. model.removeNodeset("/root/send/savedata");
  582. model.makeNode("/root/send/savedata");
  583. model.setValue("/root/send/savedata", sPassData);
  584. //체크박스 체크여부 확인
  585. if (chkYN == "") {
  586. messageBox("환자관리 내용을 등록할 입원환자를 ","C002");
  587. return;
  588. }
  589. //model.resetInstanceNode("/root/hidden/errmsg");
  590. if (submit("TXAYA03501", false)) {
  591. var chkerror = fChkError(); //중복체크
  592. //var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  593. // 1(에러), 0: 성공
  594. if (chkerror == 0)
  595. {
  596. messageBox("저장이", "I002");
  597. fSearch();
  598. //fTrgtManRef();
  599. //fAttdncReset();
  600. }
  601. }
  602. }
  603. //중복 저장 체크(기타 의뢰는 한건만 입력되어야 함)
  604. function fChkError(){
  605. var errcd = model.getValue("/root/hidden/errmsg/errcd");
  606. var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  607. //var trgtmanid = model.getValue("/root/hidden/errmsg/trgtmanid"); //중복체크된 rownum
  608. //alert(trgtmanid);
  609. var totRow = grd_list.rows;
  610. if(errcd == "err01"){
  611. /*
  612. var trgtmannm = model.getValue("/root/main/trgtmanlist/trgtmanlistinfo[trgtmanid='" + trgtmanid + "']/trgtmannm");
  613. var attdncdd = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd");
  614. messageBox(trgtmannm + "의 " + attdncdd + "일자 출석이", "E006");
  615. */
  616. messageBox("해당환자의 등록내역이", "E006");
  617. return 1;
  618. }
  619. return 0;
  620. }
  621. // 환자관리 내용 등록 취소버튼
  622. function fPatmCancel()
  623. {
  624. model.resetInstanceNode("/root/main/patminfo");
  625. //조회기간 오늘 날짜로 세팅
  626. var CurrentDate = getCurrentDate();
  627. model.setValue("/root/main/patminfo/actdd", CurrentDate);
  628. var usernm = getUserInfo("usernm");
  629. model.setValue("/root/main/patminfo/conslrnm", usernm);
  630. }
  631. // 기타의뢰 등록시 필수 체크
  632. function fCheckEtcDate()
  633. {
  634. var chk = "N";
  635. var chkcnt = 0;
  636. for(var i =0; i<grd_list.rows; i++)
  637. {
  638. if (grd_list.valueMatrix(i, grd_list.colRef("chk")) == "Y")
  639. {
  640. //chk = "Y";
  641. chkcnt = chkcnt + 1;
  642. //break;
  643. }
  644. }
  645. if (chkcnt == "0")
  646. {
  647. messageBox("기타의뢰 등록할 입원환자를", "C002");
  648. return false;
  649. }
  650. else if (chkcnt > 1)
  651. {
  652. messageBox("기타의뢰등록은 환자 개개인에 대해서만 저장이 가능합니다. 다시", "C002");
  653. return false;
  654. }
  655. if (model.getValue("/root/main/etcreq/actdd") == "") {
  656. messageBox("의뢰일자를 ","C001");
  657. model.setFocus("ipt_etcactdd");
  658. return false;
  659. }
  660. return true;
  661. }
  662. // 기타의뢰 삭제시 필수 체크
  663. function fCheckEtcDelete()
  664. {
  665. var chk = "N";
  666. var chkcnt = 0;
  667. for(var i =0; i<grd_list.rows; i++)
  668. {
  669. if (grd_list.valueMatrix(i, grd_list.colRef("chk")) == "Y")
  670. {
  671. //chk = "Y";
  672. chkcnt = chkcnt + 1;
  673. //break;
  674. }
  675. }
  676. if (chkcnt == "0")
  677. {
  678. messageBox("기타의뢰 삭제할 입원환자를", "C002");
  679. return false;
  680. }
  681. else if (chkcnt > 1)
  682. {
  683. messageBox("기타의뢰등록은 환자 개개인에 대해서만 삭제가 가능합니다. 다시", "C002");
  684. return false;
  685. }
  686. return true;
  687. }
  688. // 기타의뢰 환자 저장
  689. function fEtcSave()
  690. {
  691. var sPassData =
  692. "conslrid" //원목자ID
  693. + "▦actdd" //활동일자
  694. + "▦actflag" //활동구분
  695. + "▦pid" //등록번호
  696. + "▦indd" //진료일자
  697. + "▦cretno" //생성번호
  698. + "▦acttims" //활동횟수
  699. + "▦acttm" //활동횟수
  700. + "▦asescarereccnst" //영적돌봄기록상담여부s
  701. + "▦rem" //비고
  702. + "▦seqno" //일련번호
  703. + "▦status" //상태
  704. + "▩" ;
  705. //var conslrid = getUserInfo("userid");
  706. var conslrid = model.getValue("/root/main/etcreq/conslrid");
  707. var actdd = model.getValue("/root/main/etcreq/actdd");
  708. //var actflag = "4";
  709. var actflag = model.getValue("/root/main/etcreq/actflag");
  710. var acttims = "0";
  711. var acttm = "0";
  712. //var asescarereccnst = model.getValue("/root/main/patminfo/asescarereccnst");
  713. var rem = model.getValue("/root/main/etcreq/rem");
  714. var asescarereccnst = "N";
  715. /*
  716. if (bol_asescarereccnst.value == "Y")
  717. {
  718. asescarereccnst = "Y";
  719. }
  720. */
  721. var totRow = grd_list.rows;
  722. var chkYN = "";
  723. for(var i = 1; i < totRow; i++) {
  724. var chkFlag = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/chk"); //체크되었을 때 true를 반환함
  725. var attdncdd = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd");
  726. if (chkFlag == "Y"){
  727. if (model.getValue("/root/main/etcreq/status") == "")
  728. {
  729. model.setValue("/root/main/etcreq/status", "d");
  730. }
  731. sPassData = sPassData + conslrid
  732. + "▦" + actdd
  733. + "▦" + actflag
  734. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/pid")
  735. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/indd")
  736. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/cretno")
  737. + "▦" + acttims
  738. + "▦" + acttm
  739. + "▦" + asescarereccnst
  740. + "▦" + rem
  741. + "▦" + model.getValue("/root/main/etcreq/seqno")
  742. + "▦" + model.getValue("/root/main/etcreq/status")
  743. + "▩" ;
  744. chkYN = 'Y'; //체크여부 확인하기 위한 값
  745. }
  746. }
  747. model.removeNodeset("/root/send/savedata");
  748. model.makeNode("/root/send/savedata");
  749. model.setValue("/root/send/savedata", sPassData);
  750. //체크박스 체크여부 확인
  751. if (chkYN == "") {
  752. messageBox("등록할 입원환자를 ","C002");
  753. return;
  754. }
  755. //기타의뢰/원목자등록 선택여부 확인
  756. var etcactflag = model.getValue("/root/main/etcreq/actflag");
  757. if (etcactflag == ""){
  758. messageBox("구분을 ","C001");
  759. model.setFocus("cmb_etcflag");
  760. return false;
  761. }
  762. //model.resetInstanceNode("/root/hidden/errmsg");
  763. if (submit("TXAYA03501", false)) {
  764. var chkerror = fChkError(); //중복체크
  765. //var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  766. // 1(에러), 0: 성공
  767. if (chkerror == 0)
  768. {
  769. messageBox("저장이", "I002");
  770. fSearch();
  771. //fTrgtManRef();
  772. //fAttdncReset();
  773. }
  774. }
  775. }
  776. // 기타의뢰 환자 삭제
  777. function fEtcDelete()
  778. {
  779. var btn = messageBox("선택한 환자의 기타의뢰내역을", "Q001");
  780. if (btn == "7")
  781. {
  782. return;
  783. }
  784. var sPassData =
  785. "conslrid" //원목자ID
  786. + "▦actdd" //활동일자
  787. + "▦actflag" //활동구분
  788. + "▦pid" //등록번호
  789. + "▦indd" //진료일자
  790. + "▦cretno" //생성번호
  791. + "▦acttims" //활동횟수
  792. + "▦acttm" //활동횟수
  793. + "▦asescarereccnst" //영적돌봄기록상담여부
  794. + "▦rem" //비고
  795. + "▦seqno" //일련번호
  796. + "▦status" //상태
  797. + "▩" ;
  798. //var conslrid = getUserInfo("userid");
  799. var conslrid = model.getValue("/root/main/etcreq/conslrid");
  800. var actdd = model.getValue("/root/main/etcreq/actdd");
  801. //var actflag = "4";
  802. var actflag = model.getValue("/root/main/etcreq/actflag");
  803. var acttims = "0";
  804. var acttm = "0";
  805. var rem = model.getValue("/root/main/etcreq/rem");
  806. var asescarereccnst = "N";
  807. var totRow = grd_list.rows;
  808. var chkYN = "";
  809. for(var i = 1; i < totRow; i++) {
  810. var chkFlag = model.getValue("/root/main/inptinfo/inptlist[" + i + "]/chk"); //체크되었을 때 true를 반환함
  811. var attdncdd = model.getValue("/root/main/attdabsnrgst/attdabsnrgstinfo/attdncdd");
  812. if (chkFlag == "Y"){
  813. sPassData = sPassData
  814. + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/etcconslrid")
  815. + "▦" +model.getValue("/root/main/inptinfo/inptlist[" + i + "]/etcactdd")
  816. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/actflag")
  817. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/pid")
  818. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/indd")
  819. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/cretno")
  820. + "▦" + acttims
  821. + "▦" + acttm
  822. + "▦" + asescarereccnst
  823. + "▦" + rem
  824. + "▦" + model.getValue("/root/main/inptinfo/inptlist[" + i + "]/etcseqno")
  825. + "▦" + "d"
  826. + "▩" ;
  827. chkYN = 'Y'; //체크여부 확인하기 위한 값
  828. }
  829. }
  830. var idx = grd_list.row-1;
  831. //alert(idx);
  832. var asesrecyn = model.getValue("/root/main/inptinfo/inptlist[" + idx + "]/asesrec");
  833. var nursenoyn = model.getValue("/root/main/inptinfo/inptlist[" + idx + "]/nurseno");
  834. var cnstnoyn = model.getValue("/root/main/inptinfo/inptlist[" + idx + "]/cnstno");
  835. var etcnoyn = model.getValue("/root/main/inptinfo/inptlist[" + idx + "]/etcno");
  836. var conslrchonoyn = model.getValue("/root/main/inptinfo/inptlist[" + idx + "]/conslrchono");
  837. model.setValue("/root/main/etcreq/asesrec",asesrecyn);
  838. model.setValue("/root/main/etcreq/etcno",nursenoyn);
  839. model.setValue("/root/main/etcreq/etcno",cnstnoyn);
  840. model.setValue("/root/main/etcreq/etcno",etcnoyn);
  841. model.setValue("/root/main/etcreq/conslrchono",conslrchonoyn);
  842. if(asesrecyn =="Y"){
  843. if((nursenoyn =='1')&&(etcnoyn =='3')){
  844. messageBox("삭제가", "I002");
  845. }else if((nursenoyn =='1')&&(conslrchonoyn =='4')){
  846. messageBox("삭제가", "I002");
  847. }else if((cnstnoyn =='2')&&(etcnoyn =='3')){
  848. messageBox("삭제가", "I002");
  849. }else if((cnstnoyn =='2')&&(conslrchonoyn =='4')){
  850. messageBox("삭제가", "I002");
  851. }else if((nursenoyn =='')&&(etcnoyn =='3')){
  852. messageBox("영적돌봄기록지 정보가 존재합니다. 삭제처리 하실 수", "I004");
  853. return;
  854. }else if((nursenoyn =='')&&(conslrchonoyn =='4')){
  855. messageBox("영적돌봄기록지 정보가 존재합니다. 삭제처리 하실 수", "I004");
  856. return;
  857. }else if((cnstnoyn =='')&&(etcnoyn =='3')){
  858. messageBox("영적돌봄기록지 정보가 존재합니다. 삭제처리 하실 수", "I004");
  859. return;
  860. }else if((cnstnoyn =='')&&(conslrchonoyn =='4')){
  861. messageBox("영적돌봄기록지 정보가 존재합니다. 삭제처리 하실 수", "I004");
  862. return;
  863. }
  864. }
  865. else{
  866. messageBox("삭제가", "I002");
  867. }
  868. model.removeNodeset("/root/send/savedata");
  869. model.makeNode("/root/send/savedata");
  870. model.setValue("/root/send/savedata", sPassData);
  871. //model.resetInstanceNode("/root/hidden/errmsg");
  872. if (submit("TXAYA03501", false)== true) {
  873. var chkerror = fChkError(); //중복체크
  874. //var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  875. // 1(에러), 0: 성공
  876. if (chkerror == 0)
  877. {
  878. fSearch();
  879. //fTrgtManRef();
  880. //fAttdncReset();
  881. }
  882. }
  883. }
  884. // 기타의뢰 환자 취소
  885. function fEtcCancel()
  886. {
  887. model.resetInstanceNode("/root/main/etcreq");
  888. //조회기간 오늘 날짜로 세팅
  889. ipt_etcactdd.disabled = false;
  890. var CurrentDate = getCurrentDate();
  891. model.setValue("/root/main/etcreq/actdd", CurrentDate);
  892. var usernm = getUserInfo("usernm");
  893. var userid = getUserInfo("userid");
  894. model.setValue("/root/main/etcreq/conslrnm", usernm);
  895. model.setValue("/root/main/etcreq/conslrid", userid);
  896. model.setValue("/root/main/etcreq/seqno", "0");
  897. model.setValue("/root/main/etcreq/status", "i");
  898. model.setFocus("ipt_etcactdd");
  899. }
  900. // 환자관리 구분 선택
  901. function fSelectActflag()
  902. {
  903. var actflag = model.getValue("/root/main/patminfo/actflag");
  904. // 방문 :1, 상담:2, 봉성체:3
  905. if (actflag == "1")
  906. {
  907. model.resetInstanceNode("/root/main/patminfo/acttims");
  908. model.setValue("/root/main/patminfo/acttims", "1");
  909. model.resetInstanceNode("/root/main/patminfo/acttm");
  910. model.resetInstanceNode("/root/main/patminfo/acttmhour");
  911. model.resetInstanceNode("/root/main/patminfo/acttmminu");
  912. model.resetInstanceNode("/root/main/patminfo/asescarereccnst");
  913. ipt_acttims.disabled = false;
  914. //ipt_acttm.disabled = false;
  915. bol_asescarereccnst.disabled = true;
  916. model.setFocus("ipt_acttims");
  917. }
  918. else if (actflag == "2")
  919. {
  920. model.resetInstanceNode("/root/main/patminfo/acttims");
  921. model.setValue("/root/main/patminfo/acttims", "1");
  922. model.resetInstanceNode("/root/main/patminfo/acttm");
  923. model.resetInstanceNode("/root/main/patminfo/acttmhour");
  924. model.resetInstanceNode("/root/main/patminfo/acttmminu");
  925. model.resetInstanceNode("/root/main/patminfo/asescarereccnst");
  926. ipt_acttims.disabled = false;
  927. //ipt_acttm.disabled = false;
  928. bol_asescarereccnst.disabled = false;
  929. model.setFocus("ipt_acttims");
  930. }
  931. else
  932. {
  933. model.resetInstanceNode("/root/main/patminfo/acttims");
  934. model.setValue("/root/main/patminfo/acttims", "1");
  935. model.resetInstanceNode("/root/main/patminfo/acttm");
  936. model.resetInstanceNode("/root/main/patminfo/acttmhour");
  937. model.resetInstanceNode("/root/main/patminfo/acttmminu");
  938. model.resetInstanceNode("/root/main/patminfo/asescarereccnst");
  939. ipt_acttims.disabled = true;
  940. //ipt_acttm.disabled = true;
  941. bol_asescarereccnst.disabled = true;
  942. model.setFocus("ipt_acttmhour");
  943. }
  944. }
  945. // 그리드 버튼 클릭(성명, 세례명)
  946. function fGrdButtonClick()
  947. {
  948. if (grd_list.rows <= 2) return;
  949. if (grd_list.row < 2) return;
  950. var lrow = grd_list.row - 1;
  951. var colname = grd_list.colAttribute(grd_list.col, "ref");
  952. //alert(colname);
  953. //alert(model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/pid"));
  954. //alert(model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/indd"));
  955. //alert(model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/cretno"));
  956. var pid = setParameter("pid", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/pid") );
  957. var indd = setParameter("indd", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/indd"));
  958. var cretno = setParameter("cretno", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/cretno"));
  959. // 개별환자추가정보, 환자정보수정 팝업
  960. if (colname == "hngnmbtn")
  961. {
  962. modal("SPAYA03900",1,100,100);
  963. //modal("SPAYA03900",null,null,null, "SPAYA03900", "/root/actsource", "/root/main/actsource");
  964. }
  965. else if (colname == "baptnmbtn")
  966. {
  967. modal("SPAYA03800",1,100,100);
  968. //modal("SPAYA03800",null,null,null, "SPAYA03800", "/root/actsource", "/root/main/actsource");
  969. fSearch();
  970. }
  971. }
  972. // 상단에 환자정보 올리기
  973. function fUpPatInfo()
  974. {
  975. delPatientInfos();
  976. if (grd_list.rows <= 2) return;
  977. if (grd_list.row < 2) return;
  978. if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
  979. {
  980. }
  981. else
  982. {
  983. return;
  984. }
  985. var idxRow = grd_list.row - 1; //그리드에서 해당 환자 선택
  986. var instcd = getUserInfo("dutplceinstcd");
  987. var pid = model.getValue("/root/main/inptinfo/inptlist["+idxRow+"]/pid");
  988. var indd = model.getValue("/root/main/inptinfo/inptlist["+idxRow+"]/indd");
  989. var cretno = model.getValue("/root/main/inptinfo/inptlist["+idxRow+"]/cretno");
  990. var dschdd = model.getValue("/root/main/inptinfo/inptlist["+idxRow+"]/dschdd");
  991. var CurrentDate = getCurrentDate();
  992. //재원자 - 현재일자
  993. if(dschdd == "99991231"){
  994. var condparam1 = "I▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + CurrentDate;
  995. setParameter("condparam", condparam1);
  996. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  997. }
  998. //퇴원자 - 퇴원일자
  999. else if(dschdd != "99991231"){
  1000. var condparam2 = "I▦" + pid + "▦" + indd + "▦" + cretno + "▦" + instcd + "▦" + dschdd;
  1001. setParameter("condparam", condparam2);
  1002. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  1003. }
  1004. //modal("SPMMO08900");
  1005. }
  1006. // 리스트 엑셀 파일로 저장
  1007. function fExcel()
  1008. {
  1009. if (grd_list.rows <= 2) return;
  1010. var fileName = window.fileDialog("save", ",", false, "입원환자 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1011. if (fileName != ""){
  1012. grd_list.saveExcel(fileName, "SheetName", false, false, "", "", false);
  1013. }
  1014. }
  1015. // 기타의뢰 정보 조회
  1016. function fEtcInfo()
  1017. {
  1018. if (grd_list.rows <= 2) return;
  1019. if (grd_list.row < 2) return;
  1020. if(grd_list.isCell(event.target) && grd_list.mouseRow >= grd_list.fixedrows)
  1021. {
  1022. }
  1023. else
  1024. {
  1025. return;
  1026. }
  1027. var lrow = grd_list.row - 1; //그리드에서 해당 환자 선택
  1028. model.resetInstanceNode("/root/main/etcreq");
  1029. var actdd = model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/etcactdd");
  1030. var actflag = model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/actflag");
  1031. //alert(actdd);
  1032. //alert(actflag);
  1033. if (actdd == "")
  1034. {
  1035. ipt_etcactdd.disabled = false;
  1036. cmb_etcflag.disabled = false;
  1037. var userid = getUserInfo("userid");
  1038. var usernm = getUserInfo("usernm");
  1039. var CurrentDate = getCurrentDate();
  1040. // 기타의뢰 환자 등록 부분
  1041. model.setValue("/root/main/etcreq/actdd", CurrentDate);
  1042. model.setValue("/root/main/etcreq/conslrnm", usernm);
  1043. model.setValue("/root/main/etcreq/conslrid", userid);
  1044. model.setValue("/root/main/etcreq/seqno", "0");
  1045. model.setValue("/root/main/etcreq/status", "i");
  1046. }
  1047. else
  1048. {
  1049. // ipt_etcactdd.disabled = true;
  1050. // cmb_etcflag.disabled = true;
  1051. model.setValue("/root/main/etcreq/actflag", actflag);
  1052. model.setValue("/root/main/etcreq/actdd", actdd);
  1053. model.setValue("/root/main/etcreq/actflag", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/actflag"));
  1054. model.setValue("/root/main/etcreq/conslrnm", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/etcconslrnm"));
  1055. model.setValue("/root/main/etcreq/conslrid", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/etcconslrid"));
  1056. model.setValue("/root/main/etcreq/rem", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/etcrem"));
  1057. model.setValue("/root/main/etcreq/seqno", model.getValue("/root/main/inptinfo/inptlist[" + lrow + "]/etcseqno"));
  1058. model.setValue("/root/main/etcreq/status", "u");
  1059. }
  1060. model.refresh();
  1061. }
  1062. // 출력
  1063. function fPreview()
  1064. {
  1065. exeReportPreview("RPAYA03601", "XMLSTR");
  1066. /*
  1067. if(chk_lookaheadyn.value == "Y"){
  1068. exeReportPreview("RPAHA00404", "XMLSTR");
  1069. }
  1070. else {
  1071. exeReportPreview("RPAYA00201", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  1072. }
  1073. */
  1074. }
  1075. function fPreview2()
  1076. {
  1077. exeReportPreview("RPAYA03602", "XMLSTR");
  1078. /*
  1079. if(chk_lookaheadyn.value == "Y"){
  1080. exeReportPreview("RPAHA00404", "XMLSTR");
  1081. }
  1082. else {
  1083. exeReportPreview("RPAYA00201", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
  1084. }
  1085. */
  1086. }
  1087. // 타과의뢰 open
  1088. function fMMR05000()
  1089. {
  1090. setParameter("SMMMR05000_param_userdept", "4050400000");
  1091. modal("SMMMR05000",1,100,100);
  1092. //modal("SMMMR05000",null,null,null, "SMMMR05000", "/root/actsource", "/root/main/actsource");
  1093. }
  1094. // 환자구분 선택시 일자 disable
  1095. function fPatFalgSelect()
  1096. {
  1097. if (rdo_patflag.value == "2")
  1098. {
  1099. ipt_fromdd.disabled = true;
  1100. ipt_todd.disabled = true;
  1101. }
  1102. else
  1103. {
  1104. ipt_fromdd.disabled = false;
  1105. ipt_todd.disabled = false;
  1106. }
  1107. }
  1108. // 영적돌봄기록
  1109. function fAYA04200()
  1110. {
  1111. open("SMAYA04200",1,100,100);
  1112. }
  1113. // 환자추가정보조회
  1114. function fAYA03700()
  1115. {
  1116. modal("SMAYA03700",1,100,100);
  1117. //modal("SMAYA03700",null,null,null, "SMAYA03700", "/root/actsource", "/root/main/actsource");
  1118. }
  1119. // 진단명
  1120. function fDiagnm()
  1121. {
  1122. if (rdo_diag.value == "E")
  1123. {
  1124. // grd_list.colHidden(27) = true;
  1125. // grd_list.colHidden(28) = false;
  1126. grd_list.colHidden(grd_list.colRef("engnmdiagnm")) = false;
  1127. grd_list.colHidden(grd_list.colRef("hngnmdiagnm")) = true;
  1128. }
  1129. else if(rdo_diag.value == "H")
  1130. {
  1131. // grd_list.colHidden(27) = true;
  1132. // grd_list.colHidden(28) = false;
  1133. grd_list.colHidden(grd_list.colRef("engnmdiagnm")) = true;
  1134. grd_list.colHidden(grd_list.colRef("hngnmdiagnm")) = false
  1135. }
  1136. model.refresh();
  1137. }
  1138. ]]>
  1139. </script>
  1140. </xhtml:head>
  1141. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1142. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  1143. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:147px; height:14px; ">환자관리</caption>
  1144. </group>
  1145. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  1146. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1147. </group>
  1148. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:762px; ">
  1149. <caption id="caption21" class="tit_2" style="left:0px; top:80px; width:125px; height:13px; ">입원환자 조회</caption>
  1150. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:99px; "/>
  1151. <group id="group4" style="left:0px; top:5px; width:1194px; height:60px; vertical-align:top; ">
  1152. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  1153. <caption id="caption23" class="search_name" style="left:255px; top:35px; width:150px; height:17px; ">영적돌봄의뢰유형 :</caption>
  1154. <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:575px; top:34px; width:180px; height:19px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  1155. <caption id="caption25" class="search_name" style="left:20px; top:10px; width:85px; height:17px; ">선 택 :</caption>
  1156. <caption id="caption26" class="search_name" style="left:20px; top:35px; width:65px; height:17px; ">종 교 :</caption>
  1157. <caption id="caption5" class="search_name" style="left:570px; top:10px; width:86px; height:17px; ">환자구분 :</caption>
  1158. <line id="line2" class="line_4" style="x1:1105px; y1:10px; x2:1105px; y2:53px; "/>
  1159. <caption id="caption9" class="search_no_b" style="left:975px; top:10px; width:12px; height:17px; ">~</caption>
  1160. <select1 id="rdo_choice" ref="/root/send/cond/choice" overflow="visible" appearance="full" rows="1" cols="2" cellspacing="6" style="left:95px; top:10px; width:190px; height:17px; border-style:none; ">
  1161. <choices>
  1162. <item>
  1163. <label>원목자지정병동</label>
  1164. <value>1</value>
  1165. </item>
  1166. <item>
  1167. <label>병동선택</label>
  1168. <value>2</value>
  1169. </item>
  1170. </choices>
  1171. <script type="javascript" ev:event="xforms-value-changed">
  1172. <![CDATA[
  1173. fChoice();
  1174. model.refresh();
  1175. ]]>
  1176. </script>
  1177. </select1>
  1178. <select1 id="cmb_wardcd" ref="/root/send/cond/wardcd" class="combo_search" appearance="minimal" style="left:290px; top:10px; width:110px; height:19px; ">
  1179. <choices>
  1180. <itemset>
  1181. <label ref="depthngnm"/>
  1182. <value ref="deptcd"/>
  1183. </itemset>
  1184. </choices>
  1185. <script type="javascript" ev:event="xforms-select">
  1186. <![CDATA[
  1187. fGetRoomList();
  1188. model.refresh();
  1189. ]]>
  1190. </script>
  1191. </select1>
  1192. <select1 id="cmb_roomcd" ref="/root/send/cond/roomcd" class="combo_search" appearance="minimal" style="left:406px; top:10px; width:130px; height:19px; ">
  1193. <choices>
  1194. <itemset nodeset="/root/init/cmblist/roomlist/room">
  1195. <label ref="roomnm"/>
  1196. <value ref="roomcd"/>
  1197. </itemset>
  1198. </choices>
  1199. </select1>
  1200. <select1 id="rdo_patflag" ref="/root/send/cond/patflag" overflow="visible" appearance="full" rows="1" cols="4" cellspacing="6" style="left:660px; top:10px; width:220px; height:17px; border-style:none; ">
  1201. <choices>
  1202. <item>
  1203. <label>전체</label>
  1204. <value>1</value>
  1205. </item>
  1206. <item>
  1207. <label>재원</label>
  1208. <value>2</value>
  1209. </item>
  1210. <item>
  1211. <label>퇴원</label>
  1212. <value>3</value>
  1213. </item>
  1214. <item>
  1215. <label>가퇴원</label>
  1216. <value>4</value>
  1217. </item>
  1218. </choices>
  1219. <script type="javascript" ev:event="xforms-select">
  1220. <![CDATA[
  1221. fPatFalgSelect();
  1222. model.refresh();
  1223. ]]>
  1224. </script>
  1225. </select1>
  1226. <input id="ipt_fromdd" ref="/root/send/cond/fromdd" class="input_default" inputtype="date" style="left:885px; top:10px; width:90px; height:19px; "/>
  1227. <input id="ipt_todd" ref="/root/send/cond/todd" class="input_default" inputtype="date" style="left:990px; top:10px; width:90px; height:19px; "/>
  1228. <select1 id="cmb_relign" ref="/root/send/cond/relign" class="combo_search" appearance="minimal" style="left:95px; top:35px; width:90px; height:19px; ">
  1229. <choices>
  1230. <itemset nodeset="/root/init/cmblist/relign/P0157">
  1231. <label ref="cdnm"/>
  1232. <value ref="cdid"/>
  1233. </itemset>
  1234. </choices>
  1235. </select1>
  1236. <select1 id="cmb_aseskind" ref="/root/send/cond/aseskind" class="combo_search" appearance="minimal" style="left:406px; top:35px; width:130px; height:19px; ">
  1237. <choices>
  1238. <itemset nodeset="/root/init/cmblist/aseskind/A0464">
  1239. <label ref="cdnm"/>
  1240. <value ref="cdid"/>
  1241. </itemset>
  1242. </choices>
  1243. </select1>
  1244. <select1 id="rdo_diag" ref="/root/send/cond/diagflag" overflow="visible" appearance="full" rows="1" cols="2" cellspacing="6" style="left:580px; top:35px; width:170px; height:17px; border-style:none; ">
  1245. <choices>
  1246. <item>
  1247. <label>영문진단명</label>
  1248. <value>E</value>
  1249. </item>
  1250. <item>
  1251. <label>한글진단명</label>
  1252. <value>H</value>
  1253. </item>
  1254. </choices>
  1255. <script type="javascript" ev:event="xforms-value-changed">
  1256. <![CDATA[
  1257. fDiagnm();
  1258. ]]>
  1259. </script>
  1260. </select1>
  1261. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:20px; width:56px; height:22px; ">
  1262. <caption>조회</caption>
  1263. <script type="javascript" ev:event="DOMActivate">
  1264. <![CDATA[
  1265. if(getGlobalVariable("paminfo").length > 0){
  1266. delPatientInfos();
  1267. }
  1268. fSearch();
  1269. ]]>
  1270. </script>
  1271. </button>
  1272. <select1 id="cmb_conslrid" ref="/root/send/cond/conslrid" class="combo_default" visibility="hidden" appearance="minimal" style="left:765px; top:33px; width:130px; height:19px; ">
  1273. <choices>
  1274. <itemset nodeset="/root/init/comcodelist/conslrlist/conslrlistinfo">
  1275. <label ref="conslrnm"/>
  1276. <value ref="conslrid"/>
  1277. </itemset>
  1278. </choices>
  1279. </select1>
  1280. </group>
  1281. <group id="group6" style="left:405px; top:580px; width:785px; height:100px; ">
  1282. <caption id="caption51" class="cell_1" style="left:0px; top:30px; width:67px; height:23px; vertical-align:middle; ">활동일자</caption>
  1283. <caption id="caption78" class="cell_1" style="left:167px; top:30px; width:50px; height:23px; vertical-align:middle; ">구분</caption>
  1284. <line id="line8" class="line_3" style="x1:0px; y1:97px; x2:780px; y2:97px; "/>
  1285. <caption id="caption7" class="tit_2" style="left:8px; top:7px; width:137px; height:13px; font-family:돋움; vertical-align:middle; ">환자관리 내용 등록</caption>
  1286. <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:780px; y2:25px; "/>
  1287. <button id="btn_fAYA03500" class="btn3_letter8" style="left:551px; top:3px; width:128px; height:22px; ">
  1288. <caption>환자관리내용조회</caption>
  1289. <script type="javascript" ev:event="DOMActivate">
  1290. <![CDATA[
  1291. fAYA03500();
  1292. ]]>
  1293. </script>
  1294. </button>
  1295. <caption id="caption2" class="cell_1" style="left:631px; top:30px; width:110px; height:23px; vertical-align:middle; ">영적돌봄기록상담</caption>
  1296. <caption id="caption3" class="cell_1" style="left:308px; top:30px; width:50px; height:23px; vertical-align:middle; ">횟수</caption>
  1297. <caption id="caption10" class="cell_1" style="left:0px; top:55px; width:67px; height:40px; vertical-align:middle; ">비고</caption>
  1298. <caption id="caption11" class="cell_1" style="left:418px; top:30px; width:60px; height:23px; vertical-align:middle; ">소요시간</caption>
  1299. <caption id="caption12" style="left:613px; top:32px; width:20px; height:20px; ">분</caption>
  1300. <button id="btn_patmsave" class="btn5_letter2" disabled="false" style="left:681px; top:5px; width:42px; height:19px; ">
  1301. <caption>저장</caption>
  1302. <script type="javascript" ev:event="DOMActivate">
  1303. <![CDATA[
  1304. if ( !fCheckPatmDate() ) return; //필수 저장여부 체크
  1305. fPatmSave();
  1306. model.refresh();
  1307. ]]>
  1308. </script>
  1309. </button>
  1310. <button id="btn_patmcancel" class="btn5_letter3" style="left:726px; top:5px; width:53px; height:19px; ">
  1311. <caption>취소</caption>
  1312. <script type="javascript" ev:event="DOMActivate">
  1313. <![CDATA[
  1314. fPatmCancel();
  1315. model.refresh();
  1316. ]]>
  1317. </script>
  1318. </button>
  1319. <input id="ipt_actdd" ref="/root/main/patminfo/actdd" class="input_default" inputtype="date" style="left:72px; top:32px; width:90px; height:19px; "/>
  1320. <select1 id="cmb_actflag" ref="/root/main/patminfo/actflag" class="combo_default" appearance="minimal" style="left:222px; top:32px; width:80px; height:19px; ">
  1321. <choices>
  1322. <itemset nodeset="/root/init/cmblist/actflag/A0012A0457">
  1323. <label ref="cdnm"/>
  1324. <value ref="cdid"/>
  1325. </itemset>
  1326. </choices>
  1327. <script type="javascript" ev:event="xforms-select">
  1328. <![CDATA[
  1329. fSelectActflag();
  1330. model.refresh();
  1331. ]]>
  1332. </script>
  1333. </select1>
  1334. <input id="ipt_acttims" ref="/root/main/patminfo/acttims" class="input_default" maxlength="2" format="#,###" style="left:363px; top:32px; width:50px; height:19px; "/>
  1335. <input id="ipt_acttmhour" ref="/root/main/patminfo/acttmhour" class="input_default" maxlength="2" format="#,###" style="left:483px; top:32px; width:40px; height:19px; "/>
  1336. <input id="ipt_acttmminu" ref="/root/main/patminfo/acttmminu" class="input_default" maxlength="2" format="#,###" style="left:558px; top:32px; width:50px; height:19px; "/>
  1337. <bool id="bol_asescarereccnst" checkvalue="Y" ref="/root/main/patminfo/asescarereccnst" style="left:741px; top:30px; width:35px; height:20px; "/>
  1338. <caption id="caption16" style="left:528px; top:32px; width:26px; height:20px; ">시간</caption>
  1339. <textarea id="textarea1" ref="/root/main/patminfo/rem" maxlength="100" imemode="hangul" style="left:72px; top:55px; width:553px; height:40px; "/>
  1340. <caption id="caption18" class="cell_1" style="left:631px; top:55px; width:50px; height:23px; vertical-align:middle; ">원목자</caption>
  1341. <output id="opt_conslrnm" ref="/root/main/patminfo/conslrnm" class="output_fix" style="left:684px; top:56px; width:93px; height:19px; "/>
  1342. </group>
  1343. <group id="group7" style="left:0px; top:580px; width:400px; height:170px; ">
  1344. <output id="output20" ref="/root/main/inptcnt/asescnt" class="output_fix" appearance="output" style="left:128px; top:47px; width:67px; height:19px; text-align:right; "/>
  1345. <output id="output21" ref="/root/main/inptcnt/sickdivsercnt" class="output_fix" appearance="output" style="left:128px; top:81px; width:67px; height:19px; text-align:right; "/>
  1346. <shape id="roundrect5" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:115px; width:390px; height:45px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  1347. <output id="output23" ref="/root/main/inptcnt/reqcnt" class="output_fix" appearance="output" style="left:325px; top:48px; width:67px; height:19px; text-align:right; "/>
  1348. <output id="input31" ref="/root/main/inptcnt/inhospcnt" class="output_fix" appearance="output" style="left:128px; top:14px; width:67px; height:19px; text-align:right; "/>
  1349. <caption id="caption31" class="cell_2" style="left:10px; top:120px; width:125px; height:20px; vertical-align:middle; ">의뢰유형/원목자</caption>
  1350. <caption id="caption53" class="cell_1" style="left:5px; top:10px; width:120px; height:28px; ">환자수</caption>
  1351. <caption id="caption65" class="cell_1" style="left:5px; top:77px; width:120px; height:28px; ">병자성사환자수</caption>
  1352. <caption id="caption33" style="left:148px; top:123px; width:90px; height:14px; vertical-align:middle; ">① 간호사스크린</caption>
  1353. <caption id="caption55" class="cell_1" style="left:202px; top:10px; width:120px; height:28px; ">총방문환자수</caption>
  1354. <output id="output26" ref="/root/main/inptcnt/visitcnt" class="output_fix" appearance="output" style="left:325px; top:14px; width:67px; height:19px; text-align:right; "/>
  1355. <caption id="caption66" class="cell_1" style="left:5px; top:43px; width:120px; height:28px; ">영적돌봄의뢰수</caption>
  1356. <caption id="caption34" style="left:148px; top:140px; width:144px; height:14px; vertical-align:middle; ">③ 기타의뢰</caption>
  1357. <caption id="caption59" class="cell_1" style="left:202px; top:44px; width:120px; height:28px; ">의뢰환자방문수</caption>
  1358. <caption id="caption28" style="left:293px; top:123px; width:66px; height:14px; vertical-align:middle; ">② 타과의뢰</caption>
  1359. <caption id="caption29" style="left:293px; top:140px; width:78px; height:14px; vertical-align:middle; ">④ 원목자선정</caption>
  1360. <line id="line6" class="line_3" style="x1:5px; y1:5px; x2:400px; y2:5px; "/>
  1361. <line id="line5" class="line_2" style="x1:0px; y1:40px; x2:395px; y2:40px; "/>
  1362. <line id="line9" class="line_2" style="x1:5px; y1:74px; x2:400px; y2:74px; "/>
  1363. <line id="line10" class="line_2" style="x1:0px; y1:107px; x2:395px; y2:107px; "/>
  1364. </group>
  1365. <bool id="bool1" visibility="hidden" style="left:400px; top:75px; width:30px; height:20px; "/>
  1366. <caption id="caption4" visibility="hidden" style="left:425px; top:75px; width:55px; height:20px; ">전체선택</caption>
  1367. <group id="group9" style="left:405px; top:690px; width:785px; height:65px; ">
  1368. <caption id="caption13" class="tit_2" style="left:8px; top:2px; width:152px; height:13px; font-family:돋움; vertical-align:middle; ">기타의뢰 / 원목자등록</caption>
  1369. <caption id="caption14" class="cell_1" style="left:165px; top:25px; width:67px; height:23px; vertical-align:middle; ">의뢰일자</caption>
  1370. <caption id="caption15" class="cell_1" style="left:512px; top:25px; width:50px; height:23px; vertical-align:middle; ">비고</caption>
  1371. <line id="line12" class="line_1" style="x1:0px; y1:20px; x2:780px; y2:20px; "/>
  1372. <caption id="caption8" class="cell_1" style="left:330px; top:25px; width:50px; height:23px; vertical-align:middle; ">원목자</caption>
  1373. <button id="btn_etcsave" class="btn5_letter2" style="left:637px; top:0px; width:42px; height:19px; ">
  1374. <caption>저장</caption>
  1375. <script type="javascript" ev:event="DOMActivate">
  1376. <![CDATA[
  1377. if ( !fCheckEtcDate() ) return; //필수 저장여부 체크
  1378. fEtcSave();
  1379. model.refresh();
  1380. ]]>
  1381. </script>
  1382. </button>
  1383. <button id="btn_etcdel" class="btn5_letter2" style="left:682px; top:0px; width:42px; height:19px; ">
  1384. <caption>삭제</caption>
  1385. <script type="javascript" ev:event="DOMActivate">
  1386. <![CDATA[
  1387. if ( !fCheckEtcDelete() ) return; //필수 삭제여부 체크
  1388. fEtcDelete();
  1389. model.refresh();
  1390. ]]>
  1391. </script>
  1392. </button>
  1393. <button id="btn_etccancel" class="btn5_letter3" style="left:727px; top:0px; width:53px; height:19px; ">
  1394. <caption>취소</caption>
  1395. <script type="javascript" ev:event="DOMActivate">
  1396. <![CDATA[
  1397. fEtcCancel();
  1398. model.refresh();
  1399. ]]>
  1400. </script>
  1401. </button>
  1402. <output id="opt_etcconslrnm" ref="/root/main/etcreq/conslrnm" class="output_fix" style="left:385px; top:27px; width:120px; height:19px; "/>
  1403. <textarea id="tar_etcrem" ref="/root/main/etcreq/rem" overflow="hidden" maxlength="30" imemode="hangul" style="left:565px; top:25px; width:215px; height:23px; "/>
  1404. <input id="ipt_etcactdd" ref="/root/main/etcreq/actdd" class="input_default" disabled="true" inputtype="date" style="left:236px; top:27px; width:90px; height:19px; "/>
  1405. <caption id="caption17" class="cell_1" style="left:0px; top:25px; width:50px; height:23px; vertical-align:middle; ">구분</caption>
  1406. <select1 id="cmb_etcflag" ref="/root/main/etcreq/actflag" class="combo_default" appearance="minimal" style="left:54px; top:27px; width:106px; height:19px; ">
  1407. <choices>
  1408. <itemset nodeset="/root/init/cmblist/etcactflag/A0017A0457">
  1409. <label ref="cdnm"/>
  1410. <value ref="cdid"/>
  1411. </itemset>
  1412. </choices>
  1413. <script type="javascript" ev:event="xforms-select">
  1414. <![CDATA[
  1415. fSelectActflag();
  1416. model.refresh();
  1417. ]]>
  1418. </script>
  1419. </select1>
  1420. <line id="line3" class="line_3" style="x1:0px; y1:50px; x2:780px; y2:50px; "/>
  1421. </group>
  1422. <button id="btn_consult" class="btn3_letter4" style="left:800px; top:75px; width:80px; height:22px; ">
  1423. <caption>타과의뢰</caption>
  1424. <script type="javascript" ev:event="DOMActivate">
  1425. <![CDATA[
  1426. fMMR05000();
  1427. ]]>
  1428. </script>
  1429. </button>
  1430. <button id="btn_pataddinfo" class="btn3_letter8" style="left:886px; top:75px; width:128px; height:22px; ">
  1431. <caption>환자추가정보조회</caption>
  1432. <script type="javascript" ev:event="DOMActivate">
  1433. <![CDATA[
  1434. fAYA03700();
  1435. ]]>
  1436. </script>
  1437. </button>
  1438. <button id="btn_print" class="btn2_letter2" style="left:1090px; top:75px; width:42px; height:19px; ">
  1439. <caption>출력</caption>
  1440. <script type="javascript" ev:event="DOMActivate">
  1441. <![CDATA[
  1442. fPreview();
  1443. ]]>
  1444. </script>
  1445. </button>
  1446. <button id="btn_excel" class="btn2_letter4" style="left:1020px; top:75px; width:64px; height:19px; ">
  1447. <caption>엑셀저장</caption>
  1448. <script type="javascript" ev:event="DOMActivate">
  1449. <![CDATA[
  1450. fExcel();
  1451. ]]>
  1452. </script>
  1453. </button>
  1454. <datagrid id="grd_list" nodeset="/root/main/inptinfo/inptlist" caption="^병실^등록번호^성명^성명^환자정보^환자정보^환자정보^병동간호기록^병동간호기록^VIP^영적돌봄^영적돌봄^영적돌봄^영적돌봄^영적돌봄^영적돌봄^영적돌봄^성별^나이^진료과^주치의^입원일자^수술예정일자^퇴원일자^사망일자^진단명^진 단 명^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption13^caption12|^병실^등록번호^성명^성명^세례명^세례명^종교^세례명^종교^VIP^의뢰유형/원목자^의뢰유형/원목자^의뢰유형/원목자^의뢰유형/원목자^의뢰유형/원목자^방문횟수^영적기록지^성별^나이^진료과^주치의^입원일자^수술예정일자^퇴원일자^사망일자^진단명^진 단 명^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption13^caption12" colwidth="31, 50, 75, 80, 20, 110, 20, 64, 110, 64, 30, 25, 25, 25, 25, 70, 60, 73, 35, 40, 100, 100, 80, 83, 80, 80, 500, 500, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="7" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:100px; width:1195px; height:475px; ">
  1455. <col ref="chk" type="checkbox" checkvalue="Y,N" style="left:20px; top:43px; width:31px; height:23px; "/>
  1456. <col ref="roomcd" style="text-align:center; "/>
  1457. <col ref="pid" style="text-align:center; "/>
  1458. <col ref="hngnm" style="text-align:center; "/>
  1459. <col ref="hngnmbtn" type="inputbutton"/>
  1460. <col ref="baptnm" style="text-align:center; "/>
  1461. <col ref="baptnmbtn" type="inputbutton"/>
  1462. <col ref="relignnm" style="text-align:center; "/>
  1463. <col ref="wardbaptnm" style="text-align:center; "/>
  1464. <col ref="wardreligncd" type="combo" disabled="true" style="text-align:center; ">
  1465. <choices>
  1466. <itemset nodeset="/root/init/cmblist/wardrelign/M0070">
  1467. <label ref="cdnm"/>
  1468. <value ref="cdid"/>
  1469. </itemset>
  1470. </choices>
  1471. </col>
  1472. <col ref="vipyn" type="checkbox" checkvalue="Y,N" disabled="true"/>
  1473. <col ref="nurseno" style="text-align:center; "/>
  1474. <col ref="cnstno" style="text-align:center; "/>
  1475. <col ref="etcno" style="text-align:center; "/>
  1476. <col ref="conslrchono" style="text-align:center; "/>
  1477. <col ref="reqcnts" style="text-align:center; "/>
  1478. <col ref="visittims" style="text-align:center; "/>
  1479. <col ref="asesrec" type="checkbox" checkvalue="Y,N" disabled="true"/>
  1480. <col ref="sex" style="text-align:center; "/>
  1481. <col ref="age" style="text-align:center; "/>
  1482. <col ref="deptnm"/>
  1483. <col ref="atdoctnm" style="text-align:center; "/>
  1484. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  1485. <col ref="opschedd" format="yyyy-mm-dd" style="text-align:center; "/>
  1486. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1487. <col ref="dethdt" format="yyyy-mm-dd" style="text-align:center; "/>
  1488. <col ref="engnmdiagnm"/>
  1489. <col ref="hngnmdiagnm"/>
  1490. <col ref="cretno" visibility="hidden"/>
  1491. <col ref="etcactdd" visibility="hidden"/>
  1492. <col ref="etcconslrid" visibility="hidden"/>
  1493. <col ref="etcrem" visibility="hidden"/>
  1494. <col ref="etcconslrnm" visibility="hidden"/>
  1495. <col ref="etcseqno" visibility="hidden"/>
  1496. <col ref="reqyn" visibility="hidden"/>
  1497. <col ref="etcyn" visibility="hidden"/>
  1498. <col ref="sickdivseryn" visibility="hidden"/>
  1499. <col ref="reqkind" visibility="hidden"/>
  1500. <col ref="actflag" visibility="hidden"/>
  1501. <col ref="cnstreq" visibility="hidden"/>
  1502. <script type="javascript" ev:event="onbuttonclick">
  1503. <![CDATA[
  1504. fGrdButtonClick();
  1505. model.refresh();
  1506. ]]>
  1507. </script>
  1508. <script type="javascript" ev:event="ondblclick">
  1509. <![CDATA[
  1510. // 기타등록내역 조회
  1511. fEtcInfo();
  1512. // 상단에 환자정보 올리기
  1513. fUpPatInfo();
  1514. ]]>
  1515. </script>
  1516. <script type="javascript" ev:event="onclick">
  1517. <![CDATA[
  1518. //fEtcInfo();
  1519. ]]>
  1520. </script>
  1521. <script type="javascript" ev:event="onaftersort">
  1522. <![CDATA[
  1523. grd_list.gridToInstance();
  1524. ]]>
  1525. </script>
  1526. </datagrid>
  1527. <button id="btn_emr" class="btn3_letter6" style="left:690px; top:75px; width:104px; height:22px; ">
  1528. <caption>영적돌봄기록</caption>
  1529. <script type="javascript" ev:event="DOMActivate">
  1530. <![CDATA[
  1531. fAYA04200();
  1532. ]]>
  1533. </script>
  1534. </button>
  1535. <caption id="cap_color" class="color_2" style="left:117px; top:77px; width:15px; height:15px; vertical-align:middle; "/>
  1536. <caption id="cap_uncnfm" style="left:138px; top:75px; width:57px; height:20px; ">회신대상</caption>
  1537. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:110px; top:73px; width:85px; height:22px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
  1538. <button id="button1" class="btn2_letter3" style="left:1138px; top:75px; width:53px; height:19px; ">
  1539. <caption>출력2</caption>
  1540. <script type="javascript" ev:event="DOMActivate">
  1541. <![CDATA[
  1542. fPreview2();
  1543. ]]>
  1544. </script>
  1545. </button>
  1546. </group>
  1547. </xhtml:body>
  1548. </xhtml:html>