SMPMC00800_간병인관리.xrw 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>간병인관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <sendinfo>
  11. <carecmntno/>
  12. <carecmntnm/>
  13. <lastupdtdt/>
  14. <state/>
  15. </sendinfo>
  16. <sendinfo1>
  17. <hngnm/>
  18. <rrgstno/>
  19. <tel/>
  20. <mpphonno/>
  21. <namecardno/>
  22. <carecmntno/>
  23. <lastupdtdt/>
  24. <addr/>
  25. <spclmentfact/>
  26. <state/>
  27. </sendinfo1>
  28. <sendinfo2>
  29. <reference1/>
  30. <reference2/>
  31. </sendinfo2>
  32. <search>
  33. <srchcond/>
  34. <pid/>
  35. <hngnm/>
  36. <rrgstno1/>
  37. <rrgstno2/>
  38. <acptdd/>
  39. </search>
  40. <instcd>
  41. <sess_posinstcd>012</sess_posinstcd>
  42. </instcd>
  43. <data1>
  44. <carecmntno/>
  45. </data1>
  46. <data2>
  47. <carecmntno/>
  48. <namecardno/>
  49. <hngnm/>
  50. </data2>
  51. <data3>
  52. <reference/>
  53. <carecmntno/>
  54. <fromdd/>
  55. <wardcd/>
  56. <pid/>
  57. <namecardno/>
  58. <satsfctactcd/>
  59. </data3>
  60. <data4>
  61. <pid/>
  62. </data4>
  63. <data5>
  64. <rrgstno/>
  65. </data5>
  66. <data6>
  67. <carecmntno/>
  68. <namecardno/>
  69. </data6>
  70. </send>
  71. <main>
  72. <SiNursCmntMngt>
  73. <grdSiNursCmntMngt>
  74. <carecmntno/>
  75. <carecmntnm/>
  76. <lastupdtdt/>
  77. <lastupdtrid/>
  78. </grdSiNursCmntMngt>
  79. </SiNursCmntMngt>
  80. <SiNursMngt>
  81. <grdSiNursMngt>
  82. <carecmntno/>
  83. <namecardno/>
  84. <hngnm/>
  85. <rrgstno/>
  86. <tel/>
  87. <mpphonno/>
  88. <spclmentfact/>
  89. <fstrgstdt/>
  90. <addr/>
  91. <lastupdtrid/>
  92. </grdSiNursMngt>
  93. </SiNursMngt>
  94. <SiNurInfo>
  95. <grdSiNursInfo>
  96. <carecmntno/>
  97. <namecardno/>
  98. <carm_hngnm/>
  99. <fromdd/>
  100. <todd/>
  101. <pid/>
  102. <ptbs_hngnm/>
  103. <wardcd/>
  104. <roomcd/>
  105. <indd/>
  106. <dschdd/>
  107. <satsfctactcd/>
  108. <lastupdtrid/>
  109. <lastupdtdt/>
  110. <spclmentfact/>
  111. <spcffact/>
  112. <patseqno/>
  113. </grdSiNursInfo>
  114. </SiNurInfo>
  115. <PtbsInfo>
  116. <pid/>
  117. <hngnm/>
  118. <sex/>
  119. <age/>
  120. <rrgstno1/>
  121. <rrgstno2/>
  122. <hometel/>
  123. <mpphontel/>
  124. <zipcd1/>
  125. <zipcd2/>
  126. <zipcdseq/>
  127. <addr/>
  128. <detladdr/>
  129. </PtbsInfo>
  130. <InptInfo>
  131. <pid/>
  132. <orddeptcd/>
  133. <medispclid/>
  134. <atdoctid/>
  135. <inpath/>
  136. <indd/>
  137. <dschdd/>
  138. </InptInfo>
  139. <CarmInfo>
  140. <carecmntno/>
  141. <namecardno/>
  142. <hngnm/>
  143. <rrgstno/>
  144. </CarmInfo>
  145. <CarpInfo>
  146. <pid/>
  147. <patseqno/>
  148. <namecardno/>
  149. <carecmntno/>
  150. <instcd/>
  151. <indd/>
  152. <fromdd/>
  153. <todd/>
  154. <satsfctactcd/>
  155. <spcffact/>
  156. <fstrgstrid/>
  157. <fstrgstdt/>
  158. <lastupdtrid/>
  159. <lastupdtdt/>
  160. <state/>
  161. </CarpInfo>
  162. <carplist>
  163. <grdSiNursInfo>
  164. <carecmntno/>
  165. <namecardno/>
  166. <carm_hngnm/>
  167. <fromdd/>
  168. <todd/>
  169. <pid/>
  170. <ptbs_hngnm/>
  171. <wardcd/>
  172. <roomcd/>
  173. <indd/>
  174. <dschdd/>
  175. <satsfctactcd/>
  176. <lastupdtrid/>
  177. <lastupdtdt/>
  178. <spclmentfact/>
  179. <spcffact/>
  180. <patseqno/>
  181. </grdSiNursInfo>
  182. </carplist>
  183. <result/>
  184. <popupendflag/>
  185. </main>
  186. <init>
  187. <disccd>
  188. <cd/>
  189. <nm/>
  190. </disccd>
  191. <insukind>
  192. <cd/>
  193. <nm/>
  194. </insukind>
  195. <suppkind>
  196. <cd/>
  197. <nm/>
  198. <up/>
  199. <io/>
  200. </suppkind>
  201. <orddeptcd>
  202. <cd/>
  203. <nm/>
  204. </orddeptcd>
  205. <orddrid>
  206. <cd/>
  207. <nm/>
  208. <dp/>
  209. <sp/>
  210. </orddrid>
  211. <wardcd>
  212. <cd/>
  213. <nm/>
  214. <of/>
  215. </wardcd>
  216. <roomcd>
  217. <cd/>
  218. <nm/>
  219. <wd/>
  220. <gr/>
  221. <ty/>
  222. </roomcd>
  223. <flag>
  224. <prestdd/>
  225. </flag>
  226. </init>
  227. <hidden>
  228. <carecmntno>
  229. <nm/>
  230. <cd/>
  231. </carecmntno>
  232. <source>
  233. <srchcond/>
  234. <pid/>
  235. <hngnm/>
  236. <rrgstno1/>
  237. <rrgstno2/>
  238. </source>
  239. <h_carm>
  240. <getCarmList>
  241. <carecmntno/>
  242. <namecardno/>
  243. <hngnm/>
  244. <rrgstno/>
  245. <tel/>
  246. <mpphonno/>
  247. <spclmentfact/>
  248. <fstrgstdt/>
  249. <addr/>
  250. <lastupdtrid/>
  251. </getCarmList>
  252. </h_carm>
  253. <h_inpt>
  254. <PatInptInfo>
  255. <pid/>
  256. <indd/>
  257. <inpath/>
  258. <orddeptcd/>
  259. <mediclid/>
  260. <atdoctid/>
  261. <dschdd/>
  262. </PatInptInfo>
  263. </h_inpt>
  264. <h_carp>
  265. <grdSiNursInfo>
  266. <carecmntno/>
  267. <namecardno/>
  268. <carm_hngnm/>
  269. <fromdd/>
  270. <todd/>
  271. <pid/>
  272. <ptbs_hngnm/>
  273. <wardcd/>
  274. <roomcd/>
  275. <indd/>
  276. <dschdd/>
  277. <satsfctactcd/>
  278. <lastupdtrid/>
  279. <lastupdtdt/>
  280. <spclmentfact/>
  281. <spcffact/>
  282. <patseqno/>
  283. </grdSiNursInfo>
  284. </h_carp>
  285. <rcvflag>
  286. <flag>
  287. <chkcount/>
  288. </flag>
  289. </rcvflag>
  290. <carm_count>
  291. <flag>
  292. <count/>
  293. </flag>
  294. </carm_count>
  295. </hidden>
  296. </root>
  297. </instance>
  298. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/init"/>
  299. <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/source" resultref="/root/main/result/patinfo"/>
  300. <submission id="TRPMC00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/instcd" resultref="/root/main/SiNursCmntMngt/grdSiNursCmntMngt"/>
  301. <submission id="TRPMC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/SiNursMngt/grdSiNursMngt"/>
  302. <submission id="TRPMC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendinfo2" resultref="/root/main/SiNurInfo/grdSiNursInfo"/>
  303. <submission id="TRPMC00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/h_carm/getCarmList"/>
  304. <submission id="TRPMC00806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4" resultref="/root/hidden/h_inpt/PatInptInfo"/>
  305. <submission id="TXPMC00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendinfo"/>
  306. <submission id="TXPMC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendinfo1"/>
  307. <submission id="TXPMC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/CarpInfo"/>
  308. <submission id="TRPMC00807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/hidden/rcvflag"/>
  309. <submission id="TRPMC00808" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/carm_count"/>
  310. </model>
  311. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  312. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  313. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  314. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  315. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  316. <script type="javascript">
  317. <![CDATA[
  318. function initial_Reference(){
  319. cmb_carecmntno.visible= false;
  320. ipt_fromdd.visible = false;
  321. cmb_wardcd.visible= false;
  322. ipt_pid.visible = false;
  323. ipt_namecard.visible = false;
  324. model.setValue("/root/send/data3/reference", "0");
  325. model.setValue("/root/send/data3/carecmntno", "");
  326. model.setValue("/root/send/data3/fromdd", "");
  327. model.setValue("/root/send/data3/wardcd", "");
  328. model.setValue("/root/send/data3/pid", "");
  329. model.setValue("/root/send/data3/namecardno", "");
  330. model.refresh();
  331. }
  332. function initial_SiNursCmntMngt(){
  333. var currentdate = getCurrentDate();
  334. model.setValue("/root/send/sendinfo/lastupdtdt", currentdate);
  335. model.setValue("/root/send/sendinfo/carecmntno", "");
  336. model.setValue("/root/send/sendinfo/carecmntnm", "");
  337. model.setvalue("/root/send/sendinfo/state","I");
  338. model.resetInstanceNode("/root/main/SiNursCmntMngt/grdSiNursCmntMngt");
  339. ipt_carecmntno.disabled = false;
  340. model.refresh();
  341. }
  342. function initial_SiNursMngt(){
  343. var currentdate = getCurrentDate();
  344. model.setValue("/root/send/sendinfo1/lastupdtdt", currentdate);
  345. model.setValue("/root/send/sendinfo1/hngnm", "");
  346. model.setValue("/root/send/sendinfo1/rrgstno", "");
  347. model.setValue("/root/send/sendinfo1/tel", "");
  348. model.setValue("/root/send/sendinfo1/mpphonno", "");
  349. model.setValue("/root/send/sendinfo1/namecardno", "");
  350. model.setValue("/root/send/sendinfo1/carecmntno", "");
  351. model.setValue("/root/send/sendinfo1/addr", "");
  352. model.setValue("/root/send/sendinfo1/spclmentfact", "");
  353. model.setvalue("/root/send/sendinfo1/state","I");
  354. model.resetInstanceNode("/root/main/SiNursMngt/grdSiNursMngt");
  355. model.refresh();
  356. }
  357. function initial_SiNursInfo(){
  358. model.resetInstanceNode("/root/main/SiNurInfo/grdSiNursInfo");
  359. model.refresh();
  360. }
  361. // 환자간병내역 초기화
  362. function initial_PatSiNursInfo() {
  363. model.resetInstanceNode("/root/main/PtbsInfo");
  364. model.resetInstanceNode("/root/main/InptInfo");
  365. model.resetInstanceNode("/root/hidden/h_inpt/PatInptInfo");
  366. model.resetInstanceNode("/root/main/result");
  367. model.makeNode("/root/main/result/patinfo");
  368. model.resetInstanceNode("/root/main/CarmInfo");
  369. model.resetInstanceNode("/root/hidden/h_carm/getCarmList");
  370. model.resetInstanceNode("/root/main/carplist/grdSiNursInfo");
  371. model.resetInstanceNode("/root/main/CarpInfo");
  372. }
  373. // 2008.06.09
  374. function fGetSiNursCmntMngt() {
  375. submit("TRPMC00801");
  376. fSetCmntMngtComboInstance();
  377. }
  378. // 2008.06.09 간병인단체 콤보용 인스턴스 생성
  379. function fSetCmntMngtComboInstance() {
  380. model.resetInstanceNode("/root/hidden/carecmntno");
  381. var iCount = getNodesetCount("/root/main/SiNursCmntMngt/grdSiNursCmntMngt");
  382. for (var idx = 1 ; idx <= iCount ; idx++) {
  383. var sCdnm = model.getValue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + idx + "]/carecmntnm");
  384. var sCdid = model.getValue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + idx + "]/carecmntno");
  385. addComboItem("cmb_carecmntnm", sCdnm, sCdid, "after");
  386. }
  387. grd_SiNursCmntMngt.refresh();
  388. }
  389. // 2008.06.16 환자 입원등록정보 조회
  390. function fGetPatInptInfo() {
  391. var sPid = model.getValue("/root/main/PtbsInfo/pid");
  392. if (!isNull(sPid)) {
  393. model.setValue("/root/send/data4/pid", sPid);
  394. submit("TRPMC00806");
  395. }
  396. }
  397. // 환자간병내역조회
  398. function fGetCarpList() {
  399. model.setValue("/root/send/sendinfo2/reference1", "3"); // 환자번호로 검색
  400. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/main/PtbsInfo/pid"));
  401. if (submit("TRPMC00803", false, "/root/send/sendinfo2", "/root/hidden/h_carp/grdSiNursInfo") == true) {
  402. model.resetInstanceNode("/root/send/sendinfo2");
  403. copyNodesetType("/root/main/carplist/grdSiNursInfo", "/root/hidden/h_carp/grdSiNursInfo");
  404. }
  405. }
  406. // 간병인정보 조회
  407. function fGetSiNursInfo(pName) {
  408. model.setValue("/root/send/data2/hngnm", pName);
  409. submit("TRPMC00805");
  410. model.resetInstanceNode("/root/send/data2");
  411. // 조회 건수에 따라 처리
  412. var iCount = getNodesetCount("/root/hidden/h_carm/getCarmList");
  413. if (iCount == 1) {
  414. // 값설정
  415. model.setValue("/root/main/CarmInfo/carecmntno", model.getValue("/root/hidden/h_carm/getCarmList/carecmntno"));
  416. model.setValue("/root/main/CarmInfo/namecardno", model.getValue("/root/hidden/h_carm/getCarmList/namecardno"));
  417. model.setValue("/root/main/CarmInfo/hngnm", model.getValue("/root/hidden/h_carm/getCarmList/hngnm"));
  418. model.setValue("/root/main/CarmInfo/rrgstno", model.getValue("/root/hidden/h_carm/getCarmList/rrgstno"));
  419. }
  420. if (iCount > 1) {
  421. // 결과가 2건 이상일경우 팝업오픈
  422. model.resetInstanceNode("/root/hidden/h_carm/getCarmList");
  423. model.resetInstanceNode("/root/main/popupendflag");
  424. modal("SPPMC05200", 1,150, 150, "SPPMC05200", "/root/main/CarmInfo/hngnm", "/root/send/data1/hngnm");
  425. iCount = getNodesetCount("/root/hidden/h_carm/getCarmList");
  426. if (iCount == 1 && model.getValue("/root/main/popupendflag") == "ok") {
  427. model.setValue("/root/main/CarmInfo/carecmntno", model.getValue("/root/hidden/h_carm/getCarmList/carecmntno"));
  428. model.setValue("/root/main/CarmInfo/namecardno", model.getValue("/root/hidden/h_carm/getCarmList/namecardno"));
  429. model.setValue("/root/main/CarmInfo/hngnm", model.getValue("/root/hidden/h_carm/getCarmList/hngnm"));
  430. model.setValue("/root/main/CarmInfo/rrgstno", model.getValue("/root/hidden/h_carm/getCarmList/rrgstno"));
  431. }
  432. }
  433. }
  434. ]]>
  435. </script>
  436. <script type="javascript" ev:event="xforms-ready">
  437. <![CDATA[
  438. initial_Reference();
  439. initial_SiNursCmntMngt();
  440. initial_SiNursMngt();
  441. initial_SiNursInfo();
  442. submit("TRPMI00106"); //병동, 병실 기준자료 가져옴
  443. fGetSiNursCmntMngt();
  444. // submit("TRPMC00801"); // 위 함수로 대체
  445. // submit("TRPMC00802"); // 간병인 리스트 조회(전체)
  446. btn_sinurnmg.selected = true;
  447. btn_sinurnmg.dispatch("onclick");
  448. model.refresh();
  449. //2008-09-04 LEEDS
  450. //원목팀에서 화면을 호출할경우 조회만 가능하도록 저장/삭제 버튼 비활성화
  451. var parm = getScreenMenuParameter();
  452. if( parm == '4050400000' ){
  453. btn_savecarc.visible = false;
  454. btn_delcarc.visible = false;
  455. btn_savecarm.visible = false;
  456. button1.visible = false;
  457. btn_save3.visible = false;
  458. btn_delete3.visible = false;
  459. }
  460. ]]>
  461. </script>
  462. </xhtml:head>
  463. <xhtml:body guideline="1,1193;1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  464. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  465. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">간병인관리</caption>
  466. </group>
  467. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  468. <switch id="switch1" class="sw_box" style="left:0px; top:25px; width:1194px; height:719px; border-color:#c7a3cf; border-style:solid; ">
  469. <case id="case1" selected="true" style="left:0px; top:0px; width:1192px; height:717px; ">
  470. <caption id="caption18" class="cell_1" style="left:5px; top:54px; width:100px; height:23px; vertical-align:middle; ">간병단체명</caption>
  471. <line id="line1" class="line_3" style="x1:5px; y1:76px; x2:544px; y2:76px; "/>
  472. <line id="line6" class="line_2" style="x1:5px; y1:342px; x2:544px; y2:342px; "/>
  473. <line id="line7" class="line_2" style="x1:5px; y1:318px; x2:544px; y2:318px; "/>
  474. <line id="line5" class="line_2" style="x1:5px; y1:294px; x2:544px; y2:294px; "/>
  475. <line id="line18" class="line_2" style="x1:5px; y1:270px; x2:544px; y2:270px; "/>
  476. <caption id="caption4" class="tit_2" style="left:10px; top:10px; width:144px; height:13px; ">간병단체 관리</caption>
  477. <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:544px; y2:25px; "/>
  478. <caption id="caption5" class="tit_2" style="left:554px; top:55px; width:144px; height:13px; ">간병인조회</caption>
  479. <line id="line3" class="line_1" style="x1:549px; y1:70px; x2:1184px; y2:70px; "/>
  480. <caption id="caption33" class="tit_2" style="left:10px; top:228px; width:148px; height:13px; ">간병인 관리</caption>
  481. <line id="line16" class="line_1" style="x1:5px; y1:243px; x2:544px; y2:243px; "/>
  482. <datagrid id="grd_SiNursCmntMngt" nodeset="/root/main/SiNursCmntMngt/grdSiNursCmntMngt" caption="간병단체번호^간병단체명^등록일자^입력자" colsep="^" colwidth="90, 340, 87, 0" dataheight="23" defaultrows="1" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:81px; width:539px; height:137px; ">
  483. <col disabled="true" ref="carecmntno" style="text-align:center; "/>
  484. <col disabled="true" ref="carecmntnm"/>
  485. <col disabled="true" ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
  486. <col disabled="true" ref="lastupdtrid" style="text-align:center; "/>
  487. <script type="javascript" ev:event="onclick">
  488. <![CDATA[
  489. if( isDataCell() ){
  490. var row = grd_SiNursCmntMngt.row;
  491. if (row >= grd_SiNursCmntMngt.fixedrows){
  492. model.setvalue("/root/send/sendinfo/carecmntno",model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/carecmntno"));
  493. model.setvalue("/root/send/sendinfo/carecmntnm",model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/carecmntnm"));
  494. model.setvalue("/root/send/sendinfo/lastupdtdt",model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/lastupdtdt"));
  495. model.setvalue("/root/send/sendinfo/state","U");
  496. // 2008.06.09 - 수정시에는 관리번호는 수정 못하도록 막음
  497. ipt_carecmntno.disabled = true;
  498. model.resetInstanceNode("/root/send/sendinfo1");
  499. model.setValue("/root/send/data1/carecmntno", model.getvalue("/root/main/SiNursCmntMngt/grdSiNursCmntMngt[" + row + "]/carecmntno"));
  500. submit("TRPMC00802");
  501. model.refresh();
  502. }
  503. }
  504. ]]>
  505. </script>
  506. </datagrid>
  507. <caption id="caption1" class="cell_1" style="left:5px; top:30px; width:100px; height:23px; vertical-align:middle; ">간병단체번호</caption>
  508. <input id="ipt_carecmntno" ref="/root/send/sendinfo/carecmntno" class="input_default" navindex="1" style="left:108px; top:31px; width:165px; height:19px; "/>
  509. <input id="ipt_lastupdtdt" ref="/root/send/sendinfo/lastupdtdt" class="input_default" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:379px; top:31px; width:165px; height:19px; text-align:center; "/>
  510. <caption id="caption2" class="cell_1" style="left:276px; top:30px; width:100px; height:23px; vertical-align:middle; ">등록일자</caption>
  511. <caption id="caption3" class="cell_1" style="left:5px; top:248px; width:100px; height:23px; vertical-align:middle; ">성명</caption>
  512. <caption id="caption7" class="cell_1" style="left:276px; top:248px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
  513. <input id="ipt_hngnm" ref="/root/send/sendinfo1/hngnm" class="input_default" navindex="4" style="left:108px; top:249px; width:165px; height:19px; "/>
  514. <input id="input1" ref="/root/send/sendinfo1/lastupdtdt" class="input_default" navindex="10" inputtype="date" format="yyyy-mm-dd" style="left:379px; top:297px; width:165px; height:19px; text-align:center; "/>
  515. <caption id="caption10" class="cell_1" style="left:5px; top:320px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
  516. <caption id="caption13" class="cell_1" style="left:5px; top:344px; width:100px; height:38px; vertical-align:middle; ">특기사항</caption>
  517. <input id="ipt_addr" ref="/root/send/sendinfo1/addr" class="input_default" navindex="11" style="left:108px; top:321px; width:436px; height:19px; "/>
  518. <caption id="caption14" class="cell_1" style="left:5px; top:296px; width:100px; height:23px; vertical-align:middle; ">간호단체명</caption>
  519. <input id="ipt_namecardno" ref="/root/send/sendinfo1/namecardno" class="input_default" navindex="8" style="left:432px; top:273px; width:112px; height:19px; "/>
  520. <caption id="caption8" class="cell_1" style="left:276px; top:296px; width:100px; height:23px; vertical-align:middle; ">등록일시</caption>
  521. <input id="ipt_rrgstno" ref="/root/send/sendinfo1/rrgstno" class="input_default" navindex="5" format="999999-9999999" style="left:379px; top:249px; width:165px; height:19px; text-align:center; "/>
  522. <textarea id="txt_spclmentfact" ref="/root/send/sendinfo1/spclmentfact" navindex="12" scroll="vertical" style="left:108px; top:345px; width:436px; height:36px; "/>
  523. <datagrid id="grd_SiNursMngt" nodeset="/root/main/SiNursMngt/grdSiNursMngt" caption="단체번호^명찰번호^성명^주민번호^연락처^휴대폰^특기사항^등록일시^주소^입력자" colsep="^" colwidth="65, 81, 75, 100, 80, 80, 119, 100, 100, 100" dataheight="25" defaultrows="1" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:387px; width:539px; height:280px; ">
  524. <col ref="carecmntno"/>
  525. <col ref="namecardno"/>
  526. <col ref="hngnm"/>
  527. <col ref="rrgstno"/>
  528. <col ref="tel"/>
  529. <col ref="mpphonno"/>
  530. <col ref="spclmentfact"/>
  531. <col ref="fstrgstdt" format="yyyy-mm-dd/hh:nn:ss"/>
  532. <col ref="addr"/>
  533. <col ref="lastupdtrid"/>
  534. <script type="javascript" ev:event="onclick">
  535. <![CDATA[
  536. if( isDataCell() ){
  537. var row = grd_SiNursMngt.row;
  538. if (row >= grd_SiNursMngt.fixedrows){
  539. model.setvalue("/root/send/sendinfo1/hngnm", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/hngnm"));
  540. model.setvalue("/root/send/sendinfo1/rrgstno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/rrgstno"));
  541. model.setvalue("/root/send/sendinfo1/tel", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/tel"));
  542. model.setvalue("/root/send/sendinfo1/mpphonno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/mpphonno"));
  543. model.setvalue("/root/send/sendinfo1/namecardno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/namecardno"));
  544. model.setvalue("/root/send/sendinfo1/carecmntno", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/carecmntno"));
  545. model.setvalue("/root/send/sendinfo1/lastupdtdt", (model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/fstrgstdt")).substr(0, 8));
  546. model.setvalue("/root/send/sendinfo1/addr", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/addr"));
  547. model.setvalue("/root/send/sendinfo1/spclmentfact", model.getvalue("/root/main/SiNursMngt/grdSiNursMngt[" + row + "]/spclmentfact"));
  548. model.setvalue("/root/send/sendinfo1/state","U");
  549. model.refresh();
  550. }
  551. }
  552. ]]>
  553. </script>
  554. <script type="javascript" ev:event="onaftersort">
  555. <![CDATA[
  556. grd_SiNursMngt.gridToInstance();
  557. ]]>
  558. </script>
  559. </datagrid>
  560. <caption id="caption9" class="cell_1" style="left:5px; top:272px; width:100px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  561. <input id="ipt_tel" ref="/root/send/sendinfo1/tel" class="input_default" navindex="6" style="left:108px; top:273px; width:115px; height:19px; text-align:center; "/>
  562. <input id="ipt_mpphonno" ref="/root/send/sendinfo1/mpphonno" class="input_default" navindex="7" style="left:226px; top:273px; width:115px; height:19px; text-align:center; "/>
  563. <group id="group2" style="left:549px; top:10px; width:635px; height:35px; ">
  564. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:635px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  565. <line id="line40" class="line_4" style="x1:549px; y1:7px; x2:549px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  566. <button id="button9" class="btn1_letter2" navindex="15" style="left:564px; top:7px; width:56px; height:22px; ">
  567. <caption>조회</caption>
  568. <script type="javascript" ev:event="DOMActivate">
  569. <![CDATA[
  570. var referenceValue = model.getValue("/root/send/data3/reference");
  571. switch (referenceValue){
  572. case "0":
  573. model.setValue("/root/send/sendinfo2/reference2", "");
  574. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  575. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  576. break;
  577. case "1":
  578. if (model.getValue("/root/send/data3/carecmntno") == "") {
  579. messageBox("간병단체명 입력은", "I003");
  580. } else {
  581. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/carecmntno"));
  582. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  583. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  584. }
  585. break;
  586. case "2":
  587. if (model.getValue("/root/send/data3/fromdd") == "") {
  588. messageBox("간병시작일 입력은", "I003");
  589. } else {
  590. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/fromdd"));
  591. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  592. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  593. }
  594. break;
  595. // 병동조회조건 임시제거
  596. /*
  597. case "3":
  598. if (model.getValue("/root/send/data3/carecmntno") == "") {
  599. messageBox("병동선택은", "I003");
  600. } else {
  601. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/wardcd"));
  602. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  603. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  604. }
  605. break;
  606. */
  607. case "3":
  608. if (model.getValue("/root/send/data3/pid") == "") {
  609. messageBox("환자번호 입력은", "I003");
  610. } else {
  611. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/pid"));
  612. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  613. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  614. }
  615. break;
  616. case "4":
  617. if (model.getValue("/root/send/data3/namecardno") == "") {
  618. messageBox("명찰번호 입력은", "I003");
  619. } else {
  620. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/namecardno"));
  621. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  622. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  623. }
  624. break;
  625. case "5":
  626. if (model.getValue("/root/send/data3/namecardno") == "") {
  627. messageBox("간병인명 입력은", "I003");
  628. } else {
  629. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/namecardno"));
  630. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  631. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  632. }
  633. break;
  634. case "6":
  635. if (model.getValue("/root/send/data3/satsfctactcd") == "") {
  636. messageBox("간병인평가 구분을 선택하십시오!!", "I");
  637. } else {
  638. model.setValue("/root/send/sendinfo2/reference2", model.getValue("/root/send/data3/satsfctactcd"));
  639. model.setValue("/root/send/sendinfo2/reference1", referenceValue);
  640. submit("TRPMC00803", true, "/root/send/sendinfo2", "/root/main/SiNurInfo/grdSiNursInfo")
  641. }
  642. break;
  643. }
  644. ]]>
  645. </script>
  646. </button>
  647. <caption id="caption32" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회조건 :</caption>
  648. <select1 id="cmb_reference" ref="/root/send/data3/reference" class="combo_search" navindex="13" appearance="minimal" style="left:108px; top:8px; width:119px; height:19px; ">
  649. <choices>
  650. <item>
  651. <label/>
  652. <value>0</value>
  653. </item>
  654. <item>
  655. <label>간병단체</label>
  656. <value>1</value>
  657. </item>
  658. <item>
  659. <label>간병시작일</label>
  660. <value>2</value>
  661. </item>
  662. <item>
  663. <label>환자번호</label>
  664. <value>3</value>
  665. </item>
  666. <item>
  667. <label>명찰번호</label>
  668. <value>4</value>
  669. </item>
  670. <item>
  671. <label>간병인명</label>
  672. <value>5</value>
  673. </item>
  674. <item>
  675. <label>간병인평가</label>
  676. <value>6</value>
  677. </item>
  678. </choices>
  679. <script type="javascript" ev:event="xforms-select">
  680. <![CDATA[
  681. var referenceValue = cmb_reference.value;
  682. switch (referenceValue){
  683. case "0":
  684. cmb_carecmntno.visible= false;
  685. ipt_fromdd.visible = false;
  686. cmb_wardcd.visible= false;
  687. ipt_pid.visible = false;
  688. ipt_namecard.visible = false;
  689. cmb_satsfctactcd.visible = false;
  690. break;
  691. case "1":
  692. cmb_carecmntno.visible= true;
  693. ipt_fromdd.visible = false;
  694. cmb_wardcd.visible= false;
  695. ipt_pid.visible = false;
  696. ipt_namecard.visible = false;
  697. cmb_satsfctactcd.visible = false;
  698. model.setFocus("cmb_carecmntno");
  699. break;
  700. case "2":
  701. cmb_carecmntno.visible= false;
  702. ipt_fromdd.visible = true;
  703. cmb_wardcd.visible= false;
  704. ipt_pid.visible = false;
  705. ipt_namecard.visible = false;
  706. cmb_satsfctactcd.visible = false;
  707. model.setFocus("ipt_fromdd");
  708. break;
  709. // 병동 제거
  710. /* case "3":
  711. cmb_carecmntno.visible= false;
  712. ipt_fromdd.visible = false;
  713. cmb_wardcd.visible= true;
  714. ipt_pid.visible = false;
  715. ipt_namecard.visible = false;
  716. model.setFocus("cmb_wardcd");
  717. break;
  718. */
  719. case "3":
  720. cmb_carecmntno.visible= false;
  721. ipt_fromdd.visible = false;
  722. cmb_wardcd.visible= false;
  723. ipt_pid.visible = true;
  724. ipt_namecard.visible = false;
  725. cmb_satsfctactcd.visible = false;
  726. model.setFocus("ipt_pid");
  727. break;
  728. case "4":
  729. cmb_carecmntno.visible= false;
  730. ipt_fromdd.visible = false;
  731. cmb_wardcd.visible= false;
  732. ipt_pid.visible = false;
  733. ipt_namecard.visible = true;
  734. cmb_satsfctactcd.visible = false;
  735. model.setFocus("ipt_namecard");
  736. break;
  737. case "5":
  738. cmb_carecmntno.visible= false;
  739. ipt_fromdd.visible = false;
  740. cmb_wardcd.visible= false;
  741. ipt_pid.visible = false;
  742. ipt_namecard.visible = true;
  743. cmb_satsfctactcd.visible = false;
  744. model.setFocus("ipt_namecard");
  745. break;
  746. case "6":
  747. cmb_carecmntno.visible= false;
  748. ipt_fromdd.visible = false;
  749. cmb_wardcd.visible= false;
  750. ipt_pid.visible = false;
  751. ipt_namecard.visible = false;
  752. cmb_satsfctactcd.visible = true;
  753. model.setFocus("cmb_satsfctactcd");
  754. break;
  755. }
  756. model.refresh();
  757. ]]>
  758. </script>
  759. </select1>
  760. <input id="ipt_fromdd" ref="/root/send/data3/fromdd" class="input_search" format="yyyy-mm-dd" style="left:230px; top:8px; width:140px; height:19px; "/>
  761. <input id="ipt_pid" ref="/root/send/data3/pid" class="input_search" style="left:230px; top:8px; width:140px; height:19px; "/>
  762. <input id="ipt_namecard" ref="/root/send/data3/namecardno" class="input_search" style="left:230px; top:8px; width:140px; height:19px; "/>
  763. <select1 id="cmb_carecmntno" ref="/root/send/data3/carecmntno" class="combo_search" appearance="minimal" style="left:230px; top:8px; width:140px; height:19px; ">
  764. <choices>
  765. <itemset nodeset="/root/hidden/carecmntno">
  766. <label ref="nm"/>
  767. <value ref="cd"/>
  768. </itemset>
  769. </choices>
  770. </select1>
  771. <select1 id="cmb_wardcd" ref="/root/send/data3/wardcd" class="combo_search" appearance="minimal" style="left:230px; top:8px; width:140px; height:19px; ">
  772. <choices>
  773. <itemset nodeset="/root/init/wardcd">
  774. <label ref="nm"/>
  775. <value ref="cd"/>
  776. </itemset>
  777. </choices>
  778. </select1>
  779. <select1 id="cmb_satsfctactcd" ref="/root/send/data3/satsfctactcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:230px; top:8px; width:140px; height:19px; ">
  780. <choices>
  781. <item>
  782. <label/>
  783. <value>00</value>
  784. </item>
  785. <item>
  786. <label>매우만족</label>
  787. <value>01</value>
  788. </item>
  789. <item>
  790. <label>만족</label>
  791. <value>02</value>
  792. </item>
  793. <item>
  794. <label>보통</label>
  795. <value>03</value>
  796. </item>
  797. <item>
  798. <label>불만</label>
  799. <value>04</value>
  800. </item>
  801. <item>
  802. <label>매우불만</label>
  803. <value>05</value>
  804. </item>
  805. </choices>
  806. </select1>
  807. </group>
  808. <datagrid id="grd_SiNursInfo" nodeset="/root/main/SiNurInfo/grdSiNursInfo" caption="단체번호^명찰번호^간병인명^간병시작일^간병종료일^환자번호^환자성명^병동^병실^입원일자^퇴원일자^만족도" colsep="^" colwidth="55, 59, 61, 79, 77, 57, 62, 80, 45, 71, 77, 100" dataheight="23" defaultrows="1" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:549px; top:75px; width:635px; height:595px; ">
  809. <col disabled="false" ref="carecmntno"/>
  810. <col disabled="false" ref="namecardno"/>
  811. <col disabled="false" ref="carm_hngnm"/>
  812. <col disabled="false" ref="fromdd" format="yyyy-mm-dd"/>
  813. <col disabled="false" ref="todd" format="yyyy-mm-dd"/>
  814. <col disabled="false" ref="pid"/>
  815. <col disabled="false" ref="ptbs_hngnm"/>
  816. <col disabled="false" ref="wardcd" type="combo">
  817. <choices>
  818. <itemset nodeset="/root/init/wardcd">
  819. <label ref="nm"/>
  820. <value ref="cd"/>
  821. </itemset>
  822. </choices>
  823. </col>
  824. <col disabled="false" ref="roomcd" type="combo">
  825. <choices>
  826. <itemset nodeset="/root/init/roomcd">
  827. <label ref="nm"/>
  828. <value ref="cd"/>
  829. </itemset>
  830. </choices>
  831. </col>
  832. <col disabled="false" ref="indd" format="yyyy-mm-dd"/>
  833. <col disabled="false" ref="dschdd" format="yyyy-mm-dd"/>
  834. <col disabled="true" ref="satsfctactcd" type="combo">
  835. <choices>
  836. <item>
  837. <label/>
  838. <value>00</value>
  839. </item>
  840. <item>
  841. <label>매우만족</label>
  842. <value>01</value>
  843. </item>
  844. <item>
  845. <label>만족</label>
  846. <value>02</value>
  847. </item>
  848. <item>
  849. <label>보통</label>
  850. <value>03</value>
  851. </item>
  852. <item>
  853. <label>불만</label>
  854. <value>04</value>
  855. </item>
  856. <item>
  857. <label>매우불만</label>
  858. <value>05</value>
  859. </item>
  860. </choices>
  861. </col>
  862. <script type="javascript" ev:event="ondblclick">
  863. <![CDATA[
  864. // 이 정보를 기반으로 [환자간병관리] 탭의 정보 설정
  865. // 1. 환자정보조회
  866. // 2. 입원정보조회
  867. // 3. 간병인정보조회
  868. // 4. 환자간병내역조회
  869. if( isDataCell() ){
  870. var iCurrentRow = grd_SiNursInfo.row;
  871. if (iCurrentRow > 0) {
  872. // 노드셋 초기화
  873. initial_PatSiNursInfo();
  874. var sPid = model.getValue("/root/main/SiNurInfo/grdSiNursInfo[" + iCurrentRow + "]/pid");
  875. if (!isNull(sPid)) {
  876. model.setValue("/root/hidden/source/srchcond", "1");
  877. model.setValue("/root/hidden/source/pid", sPid);
  878. //환자등록번호 체크
  879. if(sPid.length >= 1 ){
  880. if(submit("TRPMC02500")){
  881. if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
  882. model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
  883. model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
  884. model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
  885. model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
  886. model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
  887. model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
  888. model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
  889. model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
  890. model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
  891. model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
  892. model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
  893. model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
  894. model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
  895. fGetPatInptInfo();
  896. model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
  897. model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
  898. model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
  899. model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
  900. model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
  901. model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
  902. // 환자간병내역조회
  903. fGetCarpList();
  904. model.refresh();
  905. }
  906. }
  907. }else{
  908. messageBox("환자등록번호를 정확히", "C001");
  909. }
  910. }
  911. var sHngnm = model.getValue("/root/main/SiNurInfo/grdSiNursInfo[" + iCurrentRow + "]/carm_hngnm");
  912. if (!isNull(sHngnm)) {
  913. // 간병인정보조회
  914. fGetSiNursInfo(sHngnm);
  915. }
  916. // 탭전환
  917. model.refresh();
  918. btn_patsinurnmg.selected= true;
  919. btn_patsinurnmg.dispatch("onclick");
  920. }
  921. }
  922. ]]>
  923. </script>
  924. <script type="javascript" ev:event="onaftersort">
  925. <![CDATA[
  926. grd_SiNursInfo.gridToInstance();
  927. ]]>
  928. </script>
  929. </datagrid>
  930. <group id="group4" style="left:5px; top:680px; width:1184px; height:27px; ">
  931. <button id="button10" class="btn4_letter3" style="left:1116px; top:5px; width:68px; height:22px; ">
  932. <caption>초기화</caption>
  933. <script type="javascript" ev:event="DOMActivate">
  934. <![CDATA[
  935. initial_Reference();
  936. initial_SiNursCmntMngt();
  937. initial_SiNursMngt();
  938. initial_SiNursInfo();
  939. initial_PatSiNursInfo();
  940. submit("TRPMI00106");
  941. fGetSiNursCmntMngt();
  942. //submit("TRPMC00801"); // 위 함수로 대체
  943. ]]>
  944. </script>
  945. </button>
  946. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1184px; y2:0px; "/>
  947. </group>
  948. <line id="line4" class="line_3" style="x1:5px; y1:382px; x2:544px; y2:382px; "/>
  949. <input id="ipt_carecmntnm" ref="/root/send/sendinfo/carecmntnm" class="input_default" navindex="2" style="left:108px; top:55px; width:436px; height:19px; "/>
  950. <line id="line12" class="line_2" style="x1:5px; y1:52px; x2:544px; y2:52px; "/>
  951. <caption id="caption11" class="cell_1" style="left:344px; top:272px; width:85px; height:23px; vertical-align:middle; ">명찰번호</caption>
  952. <select1 id="cmb_carecmntnm" ref="/root/send/sendinfo1/carecmntno" class="combo_default" navindex="9" appearance="minimal" style="left:108px; top:297px; width:165px; height:19px; ">
  953. <choices>
  954. <itemset nodeset="/root/hidden/carecmntno">
  955. <label ref="nm"/>
  956. <value ref="cd"/>
  957. </itemset>
  958. </choices>
  959. </select1>
  960. <button id="btn_delcarc" class="btn5_letter2" style="left:502px; top:5px; width:42px; height:19px; ">
  961. <caption>삭제</caption>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. model.setvalue("/root/send/sendinfo/state","D");
  965. submit("TXPMC00801");
  966. initial_SiNursCmntMngt();
  967. fGetSiNursCmntMngt();
  968. //submit("TRPMC00801"); // 위 함수로 대체
  969. ]]>
  970. </script>
  971. </button>
  972. <button id="btn_savecarc" class="btn5_letter2" style="left:457px; top:5px; width:42px; height:19px; ">
  973. <caption>저장</caption>
  974. <script type="javascript" ev:event="DOMActivate">
  975. <![CDATA[
  976. submit("TXPMC00801");
  977. initial_SiNursCmntMngt();
  978. fGetSiNursCmntMngt();
  979. //submit("TRPMC00801"); // 위 함수로 대체
  980. ]]>
  981. </script>
  982. </button>
  983. <button id="button1" class="btn5_letter2" style="left:502px; top:223px; width:42px; height:19px; ">
  984. <caption>삭제</caption>
  985. <script type="javascript" ev:event="DOMActivate">
  986. <![CDATA[
  987. model.setValue("/root/send/sendinfo1/state","D");
  988. submit("TXPMC00802");
  989. initial_SiNursMngt();
  990. submit("TRPMC00802");
  991. ]]>
  992. </script>
  993. </button>
  994. <button id="btn_savecarm" class="btn5_letter2" style="left:457px; top:223px; width:42px; height:19px; ">
  995. <caption>저장</caption>
  996. <script type="javascript" ev:event="DOMActivate">
  997. <![CDATA[
  998. model.resetInstanceNode("/root/send/data5");
  999. model.resetInstanceNode("/root/send/data6");
  1000. model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
  1001. model.resetInstanceNode("/root/hidden/carm_count/flag/count");
  1002. var sNameCardNo = model.getValue("/root/send/sendinfo1/namecardno");
  1003. var sCareCmntNo = model.getValue("/root/send/sendinfo1/carecmntno");
  1004. if (isNull(sNameCardNo)) {
  1005. messageBox("명찰번호를", "C001");
  1006. return;
  1007. }
  1008. if (isNull(sCareCmntNo)) {
  1009. messageBox("간호단체를", "C002");
  1010. return;
  1011. }
  1012. //2009/06/17 김주희- 간병인 이중등록 blocking (간병인 주민등록번호 기준)
  1013. model.setValue("/root/send/data5/rrgstno", model.getValue("/root/send/sendinfo1/rrgstno")); //주민번호
  1014. submit("TRPMC00807")
  1015. if(model.getValue("/root/hidden/rcvflag/flag/chkcount") > 0){
  1016. messageBox("주민번호가 같은 간병인정보가 존재합니다", "I007");
  1017. return;
  1018. }
  1019. //2009/06/18 김주희- 간호단체명과 명찰번호가 같은 간병인데이터 저장 시 blocking
  1020. model.setValue("/root/send/data6/carecmntno", model.getValue("/root/send/sendinfo1/carecmntno")); //간호단체명
  1021. model.setValue("/root/send/data6/namecardno", model.getValue("/root/send/sendinfo1/namecardno")); //명찰번호
  1022. submit("TRPMC00808")
  1023. if(model.getValue("/root/hidden/carm_count/flag/count") > 0){
  1024. messageBox("해당단체의 명찰번호가 존재합니다. 명찰번호를", "I007");
  1025. return;
  1026. }
  1027. //
  1028. var sState = model.getValue("/root/send/sendinfo1/state");
  1029. if (isNull(sState)) {
  1030. model.setvalue("/root/send/sendinfo1/state","I");
  1031. }
  1032. submit("TXPMC00802");
  1033. initial_SiNursMngt();
  1034. submit("TRPMC00802");
  1035. ]]>
  1036. </script>
  1037. </button>
  1038. </case>
  1039. <case id="case2">
  1040. <line id="line15" class="line_2" style="x1:5px; y1:152px; x2:773px; y2:152px; "/>
  1041. <line id="line11" class="line_2" style="x1:5px; y1:76px; x2:959px; y2:76px; "/>
  1042. <line id="line10" class="line_2" style="x1:5px; y1:52px; x2:959px; y2:52px; "/>
  1043. <caption id="caption20" class="cell_1" style="left:545px; top:30px; width:100px; height:23px; vertical-align:middle; ">진료과</caption>
  1044. <caption id="caption12" class="cell_1" style="left:961px; top:30px; width:100px; height:23px; vertical-align:middle; ">입원경로</caption>
  1045. <input id="ipt_hngnm2" ref="/root/main/PtbsInfo/hngnm" class="input_s_essential" imemode="hangul" style="left:108px; top:55px; width:115px; height:19px; ">
  1046. <script type="javascript" ev:event="onkeypress">
  1047. <![CDATA[
  1048. if (event.keyCode == '13') {
  1049. model.setValue("/root/hidden/source/srchcond", "2");
  1050. model.setValue("/root/hidden/source/hngnm", ipt_hngnm2.currentText);
  1051. //환자등록번호 체크
  1052. if(ipt_hngnm2.currentText.length >= 2 ){
  1053. model.resetInstanceNode("/root/main/result");
  1054. model.makeNode("/root/main/result/patinfo");
  1055. if(submit("TRPMC02500")){
  1056. if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
  1057. model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
  1058. model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
  1059. model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
  1060. model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
  1061. model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
  1062. model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
  1063. model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
  1064. model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
  1065. model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
  1066. model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
  1067. model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
  1068. model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
  1069. model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
  1070. fGetPatInptInfo();
  1071. model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
  1072. model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
  1073. model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
  1074. model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
  1075. model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
  1076. model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
  1077. model.refresh();
  1078. }else{
  1079. model.makeNode("/root/main/patinfo/patinfolist");
  1080. // 환자조회팝업 오픈
  1081. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/source", "/root/send");
  1082. model.resetInstanceNode("/root/hidden/source");
  1083. if (model.getValue("/root/main/popupendflag") == "ok") {
  1084. model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1085. model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1086. model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  1087. model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  1088. model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  1089. model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  1090. model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
  1091. model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
  1092. model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
  1093. model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
  1094. model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/patinfo/patinfolist/zipcdseq"));
  1095. model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
  1096. model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
  1097. fGetPatInptInfo();
  1098. model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
  1099. model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
  1100. model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
  1101. model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
  1102. model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
  1103. model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
  1104. }
  1105. model.refresh();
  1106. //messageBox("없는 환자 번호 입니다.", "E999", "");
  1107. }
  1108. }
  1109. }else{
  1110. // 환자 이름 길이 체크
  1111. model.alert("성명은 2자 이상이어야 합니다.!!");
  1112. //messageBox("환자등록번호를 정확히", "C001");
  1113. }
  1114. }
  1115. ]]>
  1116. </script>
  1117. </input>
  1118. <caption id="caption15" class="tit_2" style="left:10px; top:10px; width:170px; height:13px; ">인적사항</caption>
  1119. <caption id="caption16" class="cell_1" style="left:5px; top:54px; width:100px; height:23px; vertical-align:middle; ">성명[한글]</caption>
  1120. <caption id="caption17" class="cell_1" style="left:5px; top:78px; width:100px; height:23px; vertical-align:middle; ">성별/나이</caption>
  1121. <caption id="caption19" class="cell_1" style="left:545px; top:54px; width:100px; height:23px; vertical-align:middle; ">전문의</caption>
  1122. <caption id="caption22" class="cell_1" style="left:545px; top:78px; width:100px; height:23px; vertical-align:middle; ">하위주소</caption>
  1123. <caption id="caption23" class="cell_1" style="left:226px; top:54px; width:100px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  1124. <line id="line8" class="line_1" style="x1:5px; y1:25px; x2:1184px; y2:25px; "/>
  1125. <caption id="caption36" class="cell_1" style="left:961px; top:54px; width:100px; height:23px; vertical-align:middle; ">입원일자</caption>
  1126. <caption id="caption24" class="cell_1" style="left:226px; top:78px; width:100px; height:23px; vertical-align:middle; ">주소</caption>
  1127. <caption id="caption37" class="cell_1" style="left:961px; top:78px; width:100px; height:23px; vertical-align:middle; ">퇴원일자</caption>
  1128. <caption id="caption28" class="cell_1" style="left:5px; top:30px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
  1129. <input id="ipt_pid2" ref="/root/main/PtbsInfo/pid" class="input_s_essential" style="left:108px; top:31px; width:95px; height:19px; ">
  1130. <script type="javascript" ev:event="onkeypress">
  1131. <![CDATA[
  1132. if (event.keyCode == '13') {
  1133. model.setValue("/root/hidden/source/srchcond", "1");
  1134. model.setValue("/root/hidden/source/pid", ipt_pid2.currentText);
  1135. //환자등록번호 체크
  1136. if(ipt_pid2.currentText.length >= 1 ){
  1137. model.resetInstanceNode("/root/main/result");
  1138. model.makeNode("/root/main/result/patinfo");
  1139. if(submit("TRPMC02500")){
  1140. if( getNodesetCount("/root/main/result/patinfo/patinfolist") == 1 ){
  1141. model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/result/patinfo/patinfolist/pid"));
  1142. model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
  1143. model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
  1144. model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
  1145. model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1"));
  1146. model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
  1147. model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/result/patinfo/patinfolist/hometel"));
  1148. model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/result/patinfo/patinfolist/mpphontel"));
  1149. model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/result/patinfo/patinfolist/zipcd1"));
  1150. model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/result/patinfo/patinfolist/zipcd2"));
  1151. model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/result/patinfo/patinfolist/zipcdseq"));
  1152. model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/result/patinfo/patinfolist/addr"));
  1153. model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/result/patinfo/patinfolist/detladdr"));
  1154. fGetPatInptInfo();
  1155. model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
  1156. model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
  1157. model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
  1158. model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
  1159. model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
  1160. model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
  1161. // 환자간병내역조회
  1162. fGetCarpList();
  1163. model.refresh();
  1164. }else{
  1165. model.makeNode("/root/main/patinfo/patinfolist");
  1166. // 환자조회팝업 오픈
  1167. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/source", "/root/send");
  1168. model.resetInstanceNode("/root/hidden/source");
  1169. if (model.getValue("/root/main/popupendflag") == "ok") {
  1170. model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1171. model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1172. model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  1173. model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  1174. model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  1175. model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  1176. model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
  1177. model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
  1178. model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
  1179. model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
  1180. model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/patinfo/patinfolist/zipcdseq"));
  1181. model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
  1182. model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
  1183. fGetPatInptInfo();
  1184. model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
  1185. model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
  1186. model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
  1187. model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
  1188. model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
  1189. model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
  1190. }
  1191. model.refresh();
  1192. //messageBox("없는 환자 번호 입니다.", "E999", "");
  1193. }
  1194. }
  1195. }else{
  1196. messageBox("환자등록번호를 정확히", "C001");
  1197. }
  1198. }
  1199. ]]>
  1200. </script>
  1201. </input>
  1202. <caption id="caption30" class="cell_1" style="left:226px; top:30px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
  1203. <caption id="caption31" class="cell_1" style="left:761px; top:55px; width:83px; height:23px; vertical-align:middle; ">주치의</caption>
  1204. <line id="line9" class="line_1" style="x1:5px; y1:125px; x2:1184px; y2:125px; "/>
  1205. <caption id="caption21" class="cell_1" style="left:231px; top:130px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
  1206. <caption id="caption26" class="cell_1" style="left:550px; top:130px; width:100px; height:23px; vertical-align:middle; ">명찰번호</caption>
  1207. <input id="input29" ref="/root/main/CarmInfo/namecardno" class="input_default" disabled="true" style="left:653px; top:131px; width:120px; height:19px; "/>
  1208. <caption id="caption27" class="tit_2" style="left:10px; top:110px; width:170px; height:13px; ">간병인등록</caption>
  1209. <caption id="caption29" class="cell_1" style="left:5px; top:130px; width:100px; height:23px; vertical-align:middle; ">성명</caption>
  1210. <input id="ipt_hngnm3" ref="/root/main/CarmInfo/hngnm" class="input_default" imemode="hangul" style="left:108px; top:131px; width:101px; height:19px; ">
  1211. <script type="javascript" ev:event="onkeypress">
  1212. <![CDATA[
  1213. if (event.keyCode == '13') {
  1214. //환자등록번호 체크
  1215. if(ipt_hngnm3.currentText.length >= 2 ){
  1216. // 간병인정보 조회
  1217. fGetSiNursInfo(ipt_hngnm3.currentText);
  1218. } else {
  1219. model.alert("이름은 2자이상 입력해야 합니다.!!");
  1220. }
  1221. model.refresh();
  1222. }
  1223. ]]>
  1224. </script>
  1225. </input>
  1226. <button id="btn_search2" class="icon_search" style="left:212px; top:132px; width:16px; height:16px; ">
  1227. <caption/>
  1228. <script type="javascript" ev:event="DOMActivate">
  1229. <![CDATA[
  1230. modal("SPPMC05200", 1,150, 150, "SPPMC05200", "/root/main/CarmInfo/hngnm", "/root/send/data1/hngnm");
  1231. iCount = getNodesetCount("/root/hidden/h_carm/getCarmList");
  1232. if (iCount == 1) {
  1233. model.setValue("/root/main/CarmInfo/carecmntno", model.getValue("/root/hidden/h_carm/getCarmList/carecmntno"));
  1234. model.setValue("/root/main/CarmInfo/namecardno", model.getValue("/root/hidden/h_carm/getCarmList/namecardno"));
  1235. model.setValue("/root/main/CarmInfo/hngnm", model.getValue("/root/hidden/h_carm/getCarmList/hngnm"));
  1236. model.setValue("/root/main/CarmInfo/rrgstno", model.getValue("/root/hidden/h_carm/getCarmList/rrgstno"));
  1237. }
  1238. model.refresh();
  1239. ]]>
  1240. </script>
  1241. </button>
  1242. <input id="input10" ref="/root/main/CarmInfo/rrgstno" class="input_default" disabled="true" format="999999-9999999" style="left:334px; top:131px; width:211px; height:19px; text-align:center; "/>
  1243. <input id="input20" ref="/root/main/CarpInfo/fromdd" class="input_default" inputtype="date" style="left:108px; top:155px; width:120px; height:19px; "/>
  1244. <caption id="caption34" class="cell_1" style="left:5px; top:154px; width:100px; height:23px; vertical-align:middle; ">시작일자</caption>
  1245. <caption id="caption35" class="cell_1" style="left:231px; top:154px; width:100px; height:23px; vertical-align:middle; ">종료일자</caption>
  1246. <input id="input35" ref="/root/main/CarpInfo/todd" class="input_default" inputtype="date" style="left:334px; top:155px; width:120px; height:19px; "/>
  1247. <caption id="caption38" class="cell_1" style="left:550px; top:154px; width:100px; height:23px; vertical-align:middle; ">만족도</caption>
  1248. <select1 id="combo1" ref="/root/main/CarpInfo/satsfctactcd" class="combo_default" appearance="minimal" style="left:653px; top:155px; width:120px; height:19px; ">
  1249. <choices>
  1250. <item>
  1251. <label/>
  1252. <value>00</value>
  1253. </item>
  1254. <item>
  1255. <label>매우만족</label>
  1256. <value>01</value>
  1257. </item>
  1258. <item>
  1259. <label>만족</label>
  1260. <value>02</value>
  1261. </item>
  1262. <item>
  1263. <label>보통</label>
  1264. <value>03</value>
  1265. </item>
  1266. <item>
  1267. <label>불만</label>
  1268. <value>04</value>
  1269. </item>
  1270. <item>
  1271. <label>매우불만</label>
  1272. <value>05</value>
  1273. </item>
  1274. </choices>
  1275. </select1>
  1276. <textarea id="textarea2" ref="/root/main/CarpInfo/spcffact" disabled="false" scroll="vertical" imemode="hangul" style="left:879px; top:132px; width:305px; height:42px; "/>
  1277. <caption id="caption39" class="cell_1" style="left:776px; top:130px; width:100px; height:47px; vertical-align:middle; ">특이사항</caption>
  1278. <line id="line17" class="line_1" style="x1:5px; y1:201px; x2:1184px; y2:201px; "/>
  1279. <caption id="caption40" class="tit_2" style="left:10px; top:186px; width:170px; height:13px; ">환자간병내역</caption>
  1280. <output id="output2" ref="/root/main/PtbsInfo/zipcd1" class="output_fix" appearance="output" style="left:329px; top:80px; width:30px; height:19px; "/>
  1281. <output id="output3" ref="/root/main/PtbsInfo/zipcd2" class="output_fix" appearance="output" style="left:362px; top:80px; width:30px; height:19px; "/>
  1282. <output id="output4" ref="/root/main/PtbsInfo/addr" class="output_fix" appearance="output" style="left:395px; top:80px; width:147px; height:19px; "/>
  1283. <output id="output5" ref="/root/main/PtbsInfo/detladdr" class="output_fix" appearance="output" style="left:648px; top:80px; width:310px; height:19px; "/>
  1284. <output id="output6" ref="/root/main/PtbsInfo/mpphontel" class="output_fix" appearance="output" style="left:437px; top:55px; width:105px; height:19px; "/>
  1285. <output id="output7" ref="/root/main/PtbsInfo/hometel" class="output_fix" appearance="output" style="left:329px; top:55px; width:105px; height:19px; "/>
  1286. <output id="output11" ref="/root/main/InptInfo/inpath" class="output_fix" appearance="output" style="left:1064px; top:31px; width:120px; height:19px; "/>
  1287. <output id="output12" ref="/root/main/InptInfo/indd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1064px; top:55px; width:120px; height:19px; "/>
  1288. <output id="output13" ref="/root/main/InptInfo/dschdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1064px; top:79px; width:120px; height:19px; "/>
  1289. <output id="output14" ref="/root/main/PtbsInfo/sex" class="output_fix" appearance="output" style="left:108px; top:80px; width:56px; height:19px; "/>
  1290. <output id="output15" ref="/root/main/PtbsInfo/rrgstno1" class="output_fix" appearance="output" style="left:329px; top:31px; width:105px; height:19px; "/>
  1291. <output id="output17" ref="/root/main/PtbsInfo/age" class="output_fix" appearance="output" style="left:167px; top:80px; width:56px; height:19px; "/>
  1292. <group id="group5" style="left:5px; top:680px; width:1184px; height:27px; ">
  1293. <button id="btn_save3" class="btn4_letter2" style="left:997px; top:5px; width:56px; height:22px; ">
  1294. <caption>저장</caption>
  1295. <script type="javascript" ev:event="DOMActivate">
  1296. <![CDATA[
  1297. // 간병관리내역 등록
  1298. var sPid = model.getValue("/root/main/PtbsInfo/pid");
  1299. var sNameCardNo = model.getValue("/root/main/CarmInfo/namecardno");
  1300. var sIndd = model.getValue("/root/main/InptInfo/indd");
  1301. if (isNull(sPid)) {
  1302. messageBox("환자정보를", "C001");
  1303. return;
  1304. }
  1305. if (isNull(sNameCardNo)) {
  1306. messageBox("간병인 정보를", "C001");
  1307. return;
  1308. }
  1309. //재원환자 아니여도 간병인 등록가능하게 풀어달라 요청(성가:김성진/서울성모:조진희/의정부:정수경간호사)-20090728김주희수정
  1310. /*
  1311. if (isNull(sIndd)) {
  1312. messageBox("입원환자가 아닙니다. 간병인내역을 저장", "E001");
  1313. return;
  1314. }*/
  1315. // 환자 간병인내역 셋팅
  1316. model.setValue("/root/main/CarpInfo/pid", model.getValue("/root/main/PtbsInfo/pid"));
  1317. model.setValue("/root/main/CarpInfo/namecardno", model.getValue("/root/main/CarmInfo/namecardno"));
  1318. model.setValue("/root/main/CarpInfo/carecmntno", model.getValue("/root/main/CarmInfo/carecmntno"));
  1319. //model.setValue("/root/main/CarpInfo/instcd", "");
  1320. model.setValue("/root/main/CarpInfo/indd", model.getValue("/root/main/InptInfo/indd"));
  1321. //model.setValue("/root/main/CarpInfo/fromdd", "");
  1322. //model.setValue("/root/main/CarpInfo/todd", "");
  1323. //model.setValue("/root/main/CarpInfo/satsfctactcd", "");
  1324. //model.setValue("/root/main/CarpInfo/spcffact", "");
  1325. // Insert, Update 구분 - 환자별 간병내역 그리드를 선택하면 Update가 되고 그렇지 않으면 Insert가 된다.
  1326. var sState = model.getValue("/root/main/CarpInfo/state");
  1327. if (isNull(sState)) {
  1328. model.setValue("/root/main/CarpInfo/state", "I");
  1329. }
  1330. if (submit("TXPMC00803")) {
  1331. messageBox("간병인 내역 저장이", "I001");
  1332. fGetCarpList();
  1333. model.refresh();
  1334. }
  1335. ]]>
  1336. </script>
  1337. </button>
  1338. <button id="button12" class="btn4_letter3" style="left:1116px; top:5px; width:68px; height:22px; ">
  1339. <caption>초기화</caption>
  1340. <script type="javascript" ev:event="DOMActivate">
  1341. <![CDATA[
  1342. initial_Reference();
  1343. initial_SiNursCmntMngt();
  1344. initial_SiNursMngt();
  1345. initial_SiNursInfo();
  1346. initial_PatSiNursInfo();
  1347. submit("TRPMI00106");
  1348. fGetSiNursCmntMngt();
  1349. ]]>
  1350. </script>
  1351. </button>
  1352. <line id="line19" class="line_6" style="x1:0px; y1:0px; x2:1184px; y2:0px; "/>
  1353. <line id="line20" class="line_6" style="x1:0px; y1:0px; x2:1184px; y2:0px; "/>
  1354. <button id="btn_delete3" class="btn4_letter2" style="left:1057px; top:5px; width:56px; height:22px; ">
  1355. <caption>삭제</caption>
  1356. <script type="javascript" ev:event="DOMActivate">
  1357. <![CDATA[
  1358. // 간병관리내역 삭제
  1359. // 환자 간병인내역 셋팅
  1360. var sPid = model.getValue("/root/main/CarpInfo/pid");
  1361. if (!isNull(sPid)) {
  1362. model.setValue("/root/main/CarpInfo/state", "D");
  1363. if (submit("TXPMC00803")) {
  1364. messageBox("간병인 내역 삭제가", "I001");
  1365. fGetCarpList();
  1366. model.refresh();
  1367. }
  1368. }
  1369. ]]>
  1370. </script>
  1371. </button>
  1372. </group>
  1373. <line id="line13" class="line_3" style="x1:5px; y1:100px; x2:1184px; y2:100px; "/>
  1374. <line id="line14" class="line_3" style="x1:5px; y1:176px; x2:1184px; y2:176px; "/>
  1375. <output id="output1" ref="/root/main/PtbsInfo/rrgstno2" class="output_fix" appearance="output" style="left:437px; top:31px; width:105px; height:19px; "/>
  1376. <button id="btn_search" class="icon_search" style="left:208px; top:32px; width:16px; height:16px; ">
  1377. <caption/>
  1378. <script type="javascript" ev:event="DOMActivate">
  1379. <![CDATA[
  1380. //팝업창
  1381. model.makeNode("/root/main/patinfo/patinfolist");
  1382. // 환자조회팝업 오픈
  1383. modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/source", "/root/send");
  1384. model.resetInstanceNode("/root/hidden/source");
  1385. if (model.getValue("/root/main/popupendflag") == "ok") {
  1386. model.setValue("/root/main/PtbsInfo/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1387. model.setValue("/root/main/PtbsInfo/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  1388. model.setValue("/root/main/PtbsInfo/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  1389. model.setValue("/root/main/PtbsInfo/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  1390. model.setValue("/root/main/PtbsInfo/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
  1391. model.setValue("/root/main/PtbsInfo/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
  1392. model.setValue("/root/main/PtbsInfo/hometel", model.getValue("/root/main/patinfo/patinfolist/hometel"));
  1393. model.setValue("/root/main/PtbsInfo/mpphontel", model.getValue("/root/main/patinfo/patinfolist/mpphontel"));
  1394. model.setValue("/root/main/PtbsInfo/zipcd1", model.getValue("/root/main/patinfo/patinfolist/zipcd1"));
  1395. model.setValue("/root/main/PtbsInfo/zipcd2", model.getValue("/root/main/patinfo/patinfolist/zipcd2"));
  1396. model.setValue("/root/main/PtbsInfo/zipcdseq", model.getValue("/root/main/patinfo/patinfolist/zipcdseq"));
  1397. model.setValue("/root/main/PtbsInfo/addr", model.getValue("/root/main/patinfo/patinfolist/addr"));
  1398. model.setValue("/root/main/PtbsInfo/detladdr", model.getValue("/root/main/patinfo/patinfolist/detladdr"));
  1399. // 환자입원등록정보 조회
  1400. fGetPatInptInfo();
  1401. model.setValue("/root/main/InptInfo/indd", model.getValue("/root/hidden/h_inpt/PatInptInfo/indd"));
  1402. model.setValue("/root/main/InptInfo/inpath", model.getValue("/root/hidden/h_inpt/PatInptInfo/inpath"));
  1403. model.setValue("/root/main/InptInfo/orddeptcd", model.getValue("/root/hidden/h_inpt/PatInptInfo/orddeptcd"));
  1404. model.setValue("/root/main/InptInfo/medispclid", model.getValue("/root/hidden/h_inpt/PatInptInfo/medispclid"));
  1405. model.setValue("/root/main/InptInfo/atdoctid", model.getValue("/root/hidden/h_inpt/PatInptInfo/atdoctid"));
  1406. model.setValue("/root/main/InptInfo/dschdd", model.getValue("/root/hidden/h_inpt/PatInptInfo/dschdd"));
  1407. // 환자간병내역 조회
  1408. fGetCarpList();
  1409. }
  1410. model.refresh();
  1411. ]]>
  1412. </script>
  1413. </button>
  1414. <datagrid id="grd_carplist" nodeset="/root/main/carplist/grdSiNursInfo" caption="입원일자^퇴원일자^명찰번호^간병인성명^시작일자^종료일자^만족도^입력자^입력일자^특이사항" colsep="^" colwidth="85, 85, 100, 85, 88, 100, 100, 100, 90, 310" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:5px; top:206px; width:1179px; height:460px; ">
  1415. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  1416. <col ref="dschdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1417. <col ref="namecardno" style="text-align:center; "/>
  1418. <col ref="carm_hngnm" style="text-align:center; "/>
  1419. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1420. <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
  1421. <col disabled="true" ref="satsfctactcd" type="combo" style="text-align:center; ">
  1422. <choices>
  1423. <item>
  1424. <label/>
  1425. <value>00</value>
  1426. </item>
  1427. <item>
  1428. <label>매우만족</label>
  1429. <value>01</value>
  1430. </item>
  1431. <item>
  1432. <label>만족</label>
  1433. <value>02</value>
  1434. </item>
  1435. <item>
  1436. <label>보통</label>
  1437. <value>03</value>
  1438. </item>
  1439. <item>
  1440. <label>불만</label>
  1441. <value>04</value>
  1442. </item>
  1443. <item>
  1444. <label>매우불만</label>
  1445. <value>05</value>
  1446. </item>
  1447. </choices>
  1448. </col>
  1449. <col ref="lastupdtrid" style="text-align:center; "/>
  1450. <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
  1451. <col ref="spcffact"/>
  1452. <script type="javascript" ev:event="onclick">
  1453. <![CDATA[
  1454. // 수정 기능
  1455. if( isDataCell() ){
  1456. // 1. 환자번호에 대한 ptbs, inpt 조회
  1457. // 그리드를 선택하는 시점에 ptbs와 inpt는 조회되어 있으므로 다시 조회하지 않음
  1458. // 2. 간병인 이름으로 간병인정보조회
  1459. var iCurrentRow = grd_carplist.row;
  1460. if (iCurrentRow > 0) {
  1461. var sHngnm = model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/carm_hngnm");
  1462. if (!isNull(sHngnm)) {
  1463. // 간병인정보 조회
  1464. fGetSiNursInfo(sHngnm);
  1465. model.setValue("/root/main/CarpInfo/pid", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/pid"));
  1466. model.setValue("/root/main/CarpInfo/patseqno", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/patseqno"));
  1467. model.setValue("/root/main/CarpInfo/namecardno", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/namecardno"));
  1468. model.setValue("/root/main/CarpInfo/carecmntno", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/carecmntno"));
  1469. //model.setValue("/root/main/CarpInfo/instcd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/instcd"));
  1470. model.setValue("/root/main/CarpInfo/indd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/indd"));
  1471. model.setValue("/root/main/CarpInfo/fromdd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/fromdd"));
  1472. model.setValue("/root/main/CarpInfo/todd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/todd"));
  1473. model.setValue("/root/main/CarpInfo/satsfctactcd", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/satsfctactcd"));
  1474. model.setValue("/root/main/CarpInfo/spcffact", model.getValue("/root/main/carplist/grdSiNursInfo[" + iCurrentRow + "]/spcffact"));
  1475. model.setValue("/root/main/CarpInfo/state", "U");
  1476. model.refresh();
  1477. }
  1478. }
  1479. }
  1480. ]]>
  1481. </script>
  1482. </datagrid>
  1483. <select1 id="cmb_orddeptcd" ref="/root/main/InptInfo/orddeptcd" class="combo_fix" disabled="true" appearance="minimal" style="left:648px; top:31px; width:309px; height:19px; ">
  1484. <choices>
  1485. <itemset nodeset="/root/init/orddeptcd">
  1486. <label ref="nm"/>
  1487. <value ref="cd"/>
  1488. </itemset>
  1489. </choices>
  1490. </select1>
  1491. <select1 id="cmb_medispclid" ref="/root/main/InptInfo/medispclid" class="combo_fix" disabled="true" appearance="minimal" style="left:648px; top:55px; width:109px; height:19px; ">
  1492. <choices>
  1493. <itemset nodeset="/root/init/orddrid">
  1494. <label ref="nm"/>
  1495. <value ref="cd"/>
  1496. </itemset>
  1497. </choices>
  1498. </select1>
  1499. <select1 id="combo2" ref="/root/main/InptInfo/atdoctid" class="combo_fix" disabled="true" appearance="minimal" style="left:846px; top:55px; width:109px; height:19px; ">
  1500. <choices>
  1501. <itemset nodeset="/root/init/orddrid">
  1502. <label ref="nm"/>
  1503. <value ref="cd"/>
  1504. </itemset>
  1505. </choices>
  1506. </select1>
  1507. </case>
  1508. </switch>
  1509. <button id="btn_sinurnmg" class="btn_sw" group="tab" selected="true" style="left:0px; top:4px; width:72px; height:22px; ">
  1510. <caption>간병인관리</caption>
  1511. <toggle case="case1" ev:event="onclick"/>
  1512. </button>
  1513. <button id="btn_patsinurnmg" class="btn_sw" group="tab" style="left:72px; top:4px; width:84px; height:22px; ">
  1514. <caption>환자간병관리</caption>
  1515. <toggle case="case2" ev:event="onclick"/>
  1516. </button>
  1517. </group>
  1518. </xhtml:body>
  1519. </xhtml:html>