SMMNH01400_통증사정도구.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  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>Hospice follow up sheet</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <inpt>
  11. <inptlist>
  12. <supitem/>
  13. <recitem/>
  14. <dday/>
  15. <staiud/>
  16. <dday_1/>
  17. <staiud_1/>
  18. <dday_2/>
  19. <staiud_2/>
  20. <dday_3/>
  21. <staiud_3/>
  22. <dday_4/>
  23. <staiud_4/>
  24. <supitemcd/>
  25. <recitemcd/>
  26. <chrtpcl/>
  27. <suprefenum/>
  28. <refenum/>
  29. <pid/>
  30. <cretdd/>
  31. <crettm/>
  32. </inptlist>
  33. <pasmlist>
  34. <supitem/>
  35. <recitem/>
  36. <dday/>
  37. <staiud/>
  38. <dday_1/>
  39. <staiud_1/>
  40. <dday_2/>
  41. <staiud_2/>
  42. <dday_3/>
  43. <staiud_3/>
  44. <dday_4/>
  45. <staiud_4/>
  46. <supitemcd/>
  47. <recitemcd/>
  48. <chrtpcl/>
  49. <suprefenum/>
  50. <refenum/>
  51. <pid/>
  52. <cretdd/>
  53. <crettm/>
  54. </pasmlist>
  55. <iovslist>
  56. <supitem/>
  57. <recitem/>
  58. <dday/>
  59. <staiud/>
  60. <dday_1/>
  61. <staiud_1/>
  62. <dday_2/>
  63. <staiud_2/>
  64. <dday_3/>
  65. <staiud_3/>
  66. <dday_4/>
  67. <staiud_4/>
  68. <supitemcd/>
  69. <recitemcd/>
  70. <chrtpcl/>
  71. <suprefenum/>
  72. <refenum/>
  73. <pid/>
  74. <cretdd/>
  75. <crettm/>
  76. </iovslist>
  77. <painlist>
  78. <supitem/>
  79. <recitem/>
  80. <dday/>
  81. <staiud/>
  82. <dday_1/>
  83. <staiud_1/>
  84. <dday_2/>
  85. <staiud_2/>
  86. <dday_3/>
  87. <staiud_3/>
  88. <dday_4/>
  89. <staiud_4/>
  90. <supitemcd/>
  91. <recitemcd/>
  92. <chrtpcl/>
  93. <suprefenum/>
  94. <refenum/>
  95. <pid/>
  96. <cretdd/>
  97. <crettm/>
  98. </painlist>
  99. <inptlist2>
  100. <supitem/>
  101. <recitem/>
  102. <dday/>
  103. <staiud/>
  104. <dday_1/>
  105. <staiud_1/>
  106. <dday_2/>
  107. <staiud_2/>
  108. <dday_3/>
  109. <staiud_3/>
  110. <dday_4/>
  111. <staiud_4/>
  112. <supitemcd/>
  113. <recitemcd/>
  114. <chrtpcl/>
  115. <suprefenum/>
  116. <refenum/>
  117. <pid/>
  118. <cretdd/>
  119. <crettm/>
  120. </inptlist2>
  121. </inpt>
  122. <htfa>
  123. <htfalist>
  124. <roomcd/>
  125. <pid/>
  126. <hngnm/>
  127. <cretdd/>
  128. <crettm/>
  129. <indd/>
  130. <cretno/>
  131. </htfalist>
  132. </htfa>
  133. </main>
  134. <init>
  135. <M0224list>
  136. <cdid/>
  137. <cdnm/>
  138. </M0224list>
  139. <combo_temp>
  140. <item>
  141. <cdid/>
  142. <cdnm/>
  143. </item>
  144. </combo_temp>
  145. </init>
  146. <hidden>
  147. <gubun>A</gubun>
  148. <fromdd/>
  149. <todd/>
  150. </hidden>
  151. <temp>
  152. <fromdd/>
  153. <enddd/>
  154. </temp>
  155. <tmp>
  156. <printinfo>
  157. <cond>
  158. <dethbfc/>
  159. <dethcare/>
  160. <dethaftcare/>
  161. </cond>
  162. <dethbfc/>
  163. <dethcare/>
  164. <dethaftcare/>
  165. </printinfo>
  166. </tmp>
  167. </root>
  168. </instance>
  169. <submission id="TRMNH01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/htfalist"/>
  170. <submission id="TXMNH01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  171. <submission id="TRMNH01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inptlist"/>
  172. <submission id="TRMNH01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inptlist2"/>
  173. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  174. <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH014.js"/>
  175. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  176. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  177. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  178. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  179. <script type="javascript" ev:event="xforms-ready">
  180. <![CDATA[
  181. //조회구간 default 4일로 설정
  182. ipt_fromdd.value = getCurrentDate();
  183. ipt_enddd.value = getAddDay(getCurrentDate(),-4);
  184. ipt_enddd.disabled = true;
  185. //M/S항목의 Orientation의 공통코드로드
  186. zbcfGetCodeList(new Array("M0224"), new Array("/root/init/M0224list"));
  187. //통증사정도구 환자리스트를 조회해서 grd_htfalist에 로드 한다.
  188. fSearch();
  189. //sheet I을 default로 보여줌.
  190. toggle = 1;
  191. fChangeGridDate();
  192. //셀을 병합하지 않는다.
  193. for( var i = 1; i < grd_inptlist.cols; i++ ) {
  194. grd_inptlist.mergeCol(i) = false;
  195. }
  196. for( var i = 1; i < grd_pasmlist.cols; i++ ) {
  197. grd_pasmlist.mergeCol(i) = false;
  198. }
  199. for( var i = 1; i < grd_iovslist.cols; i++ ) {
  200. grd_iovslist.mergeCol(i) = false;
  201. }
  202. for( var i = 1; i < grd_painlist.cols; i++ ) {
  203. grd_painlist.mergeCol(i) = false;
  204. }
  205. for( var i = 1; i < grd_inptlist2.cols; i++ ) {
  206. grd_inptlist2.mergeCol(i) = false;
  207. }
  208. //sheet I,II 인스턴스 초기화
  209. model.removenodeset("/root/main/inpt/inptlist" );
  210. model.removenodeset("/root/main/inpt/pasmlist" );
  211. model.removenodeset("/root/main/inpt/iovslist" );
  212. model.removenodeset("/root/main/inpt/painlist" );
  213. model.removenodeset("/root/main/inpt/inptlist2" );
  214. model.refresh();
  215. ]]>
  216. </script>
  217. </model>
  218. <script type="javascript">
  219. <![CDATA[
  220. var grd_inptcol;
  221. var grd_pasmcol;
  222. var grd_iovscol;
  223. var grd_paincol;
  224. var grd_inpt2col;
  225. var toggle =0;
  226. ]]>
  227. </script>
  228. </xhtml:head>
  229. <xhtml:body guideline="1,5;1,1193;1,279;2,839;1,1209;2,5;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  230. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1145px; height:757px; background-color:transparent; ">
  231. <datagrid id="grd_htfalist" nodeset="/root/main/htfa/htfalist" caption="병실^등록번호^환자명" colsep="^" colwidth="50, 95, 84, 0, 0, 0, 0, 0" defaultrows="1" rowheader="seq" rowheight="33" rowsep="|" style="left:0px; top:75px; width:273px; height:654px; ">
  232. <col ref="roomcd"/>
  233. <col ref="pid"/>
  234. <col ref="hngnm"/>
  235. <col ref="cretdd"/>
  236. <col ref="crettm"/>
  237. <col ref="indd"/>
  238. <col ref="cretno"/>
  239. <script type="javascript" ev:event="onclick">
  240. <![CDATA[
  241. if(isDataCell()){
  242. fPcoiSearch(); //환자별 통증사정도구 기록 조회
  243. fShowOrientation(); //Sheet I 조회시 Orientation 콤보데이터가 코드로 보여지는 버그를 보완
  244. var refArray = new Array("dday", "dday_1", "dday_2", "dday_3", "dday_4");
  245. for( var i = 0; i < refArray.length; i++ )
  246. grd_inptlist.cellComboNodeset(3, grd_inptlist.colRef(refArray[i])) = "/root/init/M0224list/M0224";
  247. }
  248. ]]>
  249. </script>
  250. </datagrid>
  251. <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:273px; y2:70px; "/>
  252. <button id="button1" class="btn_sw" group="tab" selected="true" style="left:356px; top:50px; width:84px; height:22px; ">
  253. <caption>Sheet II</caption>
  254. <toggle case="case1" ev:event="onclick"/>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. //탭을 클릭하여 화면을 이동할때 마다 조회를 다시 하기 때문에
  258. //입력된 데이터가 지워지는 것을 방지하기 위해 이미 입력된 데이터를 저장후 조회한다.
  259. fSave();
  260. model.toggle("case2");
  261. toggle = 2;
  262. fPcoiSearch();//환자별 통증사정도구 기록 조회
  263. ]]>
  264. </script>
  265. </button>
  266. <button id="button66" class="btn_sw" group="tab" selected="true" style="left:278px; top:50px; width:78px; height:22px; ">
  267. <caption>Sheet I</caption>
  268. <toggle case="case1" ev:event="onclick"/>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. //탭을 클릭하여 화면을 이동할때 마다 조회를 다시 하기 때문에
  272. //입력된 데이터가 지워지는 것을 방지하기 위해 이미 입력된 데이터를 저장후 조회한다
  273. fSave();
  274. model.toggle("case1");
  275. toggle = 1;
  276. fPcoiSearch();//환자별 통증사정도구 기록 조회
  277. ]]>
  278. </script>
  279. </button>
  280. <switch id="switch1" style="left:278px; top:70px; width:850px; height:660px; border-color:#c7a3cf; border-style:solid; ">
  281. <case id="case1" style="left:0px; top:0px; width:850px; height:708px; ">
  282. <line id="line5" class="line_1" style="x1:5px; y1:26px; x2:847px; y2:26px; "/>
  283. <button id="button3" class="btn5_letter2" style="left:803px; top:5px; width:42px; height:19px; ">
  284. <caption>저장</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. if(grd_htfalist.rows < 2 ){
  288. messageBox("저장할 환자를 ","C002");
  289. return;
  290. }
  291. if(messageBox("","Q002") != 6) return;
  292. fSave();
  293. ]]>
  294. </script>
  295. </button>
  296. <datagrid id="grd_painlist" nodeset="/root/main/inpt/painlist" allowselection="false" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:439px; width:844px; height:216px; ">
  297. <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
  298. <col ref="recitem"/>
  299. <col editmode="input" ref="dday" type="input" format="###,###.##"/>
  300. <col ref="staiud"/>
  301. <col editmode="input" ref="dday_1" type="input" format="###,###.##"/>
  302. <col ref="staiud_1"/>
  303. <col editmode="input" ref="dday_2" type="input" format="###,###.##"/>
  304. <col ref="staiud_2"/>
  305. <col editmode="input" ref="dday_3" type="input" format="###,###.##"/>
  306. <col ref="staiud_3"/>
  307. <col editmode="input" ref="dday_4" type="input" format="###,###.##"/>
  308. <col ref="staiud_4"/>
  309. <col ref="supitemcd"/>
  310. <col ref="recitemcd"/>
  311. <col ref="chrtpcl"/>
  312. <col ref="suprefenum"/>
  313. <col ref="refenum"/>
  314. <col ref="pid"/>
  315. <col ref="cretdd"/>
  316. <col ref="crettm"/>
  317. <script type="javascript" ev:event="onstartedit">
  318. <![CDATA[
  319. if( grd_painlist.col == 0 ){
  320. event.preventDefault();
  321. }
  322. ]]>
  323. </script>
  324. <script type="javascript" ev:event="onclick">
  325. <![CDATA[
  326. grd_paincol = grd_painlist.col;//선택된 col값
  327. ]]>
  328. </script>
  329. <script type="javascript" ev:event="onkeydown">
  330. <![CDATA[
  331. if( event.keyCode == 9 ) {
  332. grd_painlist.col = grd_paincol;
  333. grd_painlist.row = grd_painlist.row+1;
  334. grd_painlist.editCell();
  335. }
  336. ]]>
  337. </script>
  338. </datagrid>
  339. <datagrid id="grd_iovslist" nodeset="/root/main/inpt/iovslist" allowselection="false" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:254px; width:844px; height:183px; ">
  340. <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
  341. <col ref="recitem"/>
  342. <col editmode="input" ref="dday" type="input" format="###,###"/>
  343. <col ref="staiud"/>
  344. <col editmode="input" ref="dday_1" type="input" format="###,###"/>
  345. <col ref="staiud_1"/>
  346. <col editmode="input" ref="dday_2" type="input" format="###,###"/>
  347. <col ref="staiud_2"/>
  348. <col editmode="input" ref="dday_3" type="input" format="###,###"/>
  349. <col ref="staiud_3"/>
  350. <col editmode="input" ref="dday_4" type="input" format="###,###"/>
  351. <col ref="staiud_4"/>
  352. <col ref="supitemcd"/>
  353. <col ref="recitemcd"/>
  354. <col ref="chrtpcl"/>
  355. <col ref="suprefenum"/>
  356. <col ref="refenum"/>
  357. <col ref="pid"/>
  358. <col ref="cretdd"/>
  359. <col ref="crettm"/>
  360. <script type="javascript" ev:event="onstartedit">
  361. <![CDATA[
  362. if( grd_iovslist.col == 0 ){
  363. event.preventDefault();
  364. }
  365. ]]>
  366. </script>
  367. <script type="javascript" ev:event="onclick">
  368. <![CDATA[
  369. grd_iovscol = grd_iovslist.col;//선택된 col값
  370. ]]>
  371. </script>
  372. <script type="javascript" ev:event="onkeydown">
  373. <![CDATA[
  374. if( event.keyCode == 9 ) {
  375. grd_iovslist.col = grd_iovscol;
  376. grd_iovslist.row = grd_iovslist.row+1;
  377. grd_iovslist.editCell();
  378. }
  379. ]]>
  380. </script>
  381. </datagrid>
  382. <!-- 20120223_KNUH_Start 김병국 Pain assess항목 삭제.(숨김처리) -->
  383. <datagrid id="grd_pasmlist" nodeset="/root/main/inpt/pasmlist" visibility="hidden" allowselection="false" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:100px; width:844px; height:152px; ">
  384. <col ref="supitem" type="inputbutton" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
  385. <col ref="recitem" type="input"/>
  386. <col editmode="input" ref="dday" type="input"/>
  387. <col ref="staiud"/>
  388. <col editmode="input" ref="dday_1" type="input"/>
  389. <col ref="staiud_1"/>
  390. <col editmode="input" ref="dday_2" type="input"/>
  391. <col ref="staiud_2"/>
  392. <col editmode="input" ref="dday_3" type="input"/>
  393. <col ref="staiud_3"/>
  394. <col editmode="input" ref="dday_4" type="input"/>
  395. <col ref="staiud_4"/>
  396. <col ref="supitemcd"/>
  397. <col ref="recitemcd"/>
  398. <col ref="chrtpcl"/>
  399. <col ref="suprefenum"/>
  400. <col ref="refenum"/>
  401. <col ref="pid"/>
  402. <col ref="cretdd"/>
  403. <col ref="crettm"/>
  404. <script type="javascript" ev:event="onstartedit">
  405. <![CDATA[
  406. if( grd_pasmlist.col == 0 ){
  407. event.preventDefault();
  408. }
  409. ]]>
  410. </script>
  411. <!--그리드의 이미지 버튼 클릭해서 pain control 행추가 -->
  412. <script type="javascript" ev:event="onbuttonclick">
  413. <![CDATA[
  414. var i = grd_pasmlist.row;
  415. var supnm = grd_pasmlist.valueMatrix(i,0);
  416. for(i ; i < grd_pasmlist.rows+1 ; i++){
  417. if(supnm != grd_pasmlist.valueMatrix(i,0)){
  418. grd_pasmlist.addRow();
  419. var refenum = String(Number(grd_pasmlist.valueMatrix(i-1,16))+1);
  420. var strnum;
  421. if(refenum.length = 1){
  422. strnum = "000"+refenum;
  423. }else if(refenum.length = 2){
  424. strnum = "00"+refenum;
  425. }else if(refenum.length = 3){
  426. strnum = "0"+refenum;
  427. }
  428. var recitemcd = grd_pasmlist.valueMatrix(i-1,13).substring(0,4) + strnum ;
  429. grd_pasmlist.valueMatrix(i,0) = grd_pasmlist.valueMatrix(i-1,0); // supitem
  430. grd_pasmlist.valueMatrix(i,12) = grd_pasmlist.valueMatrix(i-1,12); // supitemcd
  431. grd_pasmlist.valueMatrix(i,13) = recitemcd; // recitemcd
  432. grd_pasmlist.valueMatrix(i,14) = grd_pasmlist.valueMatrix(i-1,14); // chrtpcl
  433. grd_pasmlist.valueMatrix(i,15) = '6' ; // suprefenum
  434. grd_pasmlist.valueMatrix(i,16) = refenum; // refenum
  435. grd_pasmlist.valueMatrix(i,17) = grd_pasmlist.valueMatrix(i-1,17); // pid
  436. grd_pasmlist.valueMatrix(i,18) = grd_pasmlist.valueMatrix(i-1,18); // cretdd
  437. grd_pasmlist.valueMatrix(i,19) = grd_pasmlist.valueMatrix(i-1,19); // crettm
  438. grd_pasmlist.merge();
  439. break;
  440. }
  441. supnm = grd_pasmlist.valueMatrix(i,0);
  442. }
  443. ]]>
  444. </script>
  445. <script type="javascript" ev:event="onclick">
  446. <![CDATA[
  447. if(isDataCell()){
  448. grd_pasmcol = grd_pasmlist.col;//선택된 col값
  449. //12번째 행을 클릭했을때....(VAS이력 등록 팝업 호출)
  450. if(grd_pasmlist.row == 1){
  451. fOpenVasKpsPopup('VAS');
  452. }
  453. }
  454. ]]>
  455. </script>
  456. <script type="javascript" ev:event="onkeydown">
  457. <![CDATA[
  458. if( event.keyCode == 9 ) {
  459. grd_pasmlist.col = grd_col;
  460. grd_pasmlist.row = grd_pasmlist.row+1;
  461. grd_pasmlist.editCell();
  462. }
  463. ]]>
  464. </script>
  465. </datagrid>
  466. <datagrid id="grd_inptlist" nodeset="/root/main/inpt/inptlist" allowselection="true" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0,0,0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:5px; top:31px; width:844px; height:221px; ">
  467. <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
  468. <col ref="recitem"/>
  469. <col editmode="input" ref="dday" type="combo">
  470. <choices>
  471. <itemset nodeset="/root/init/combo_temp/item">
  472. <label ref="cdnm"/>
  473. <value ref="cdid"/>
  474. </itemset>
  475. </choices>
  476. </col>
  477. <col ref="staiud"/>
  478. <col editmode="input" ref="dday_1" type="combo">
  479. <choices>
  480. <itemset nodeset="/root/init/combo_temp/item">
  481. <label ref="cdnm"/>
  482. <value ref="cdid"/>
  483. </itemset>
  484. </choices>
  485. </col>
  486. <col ref="staiud_1"/>
  487. <col editmode="input" ref="dday_2" type="combo">
  488. <choices>
  489. <itemset nodeset="/root/init/combo_temp/item">
  490. <label ref="cdnm"/>
  491. <value ref="cdid"/>
  492. </itemset>
  493. </choices>
  494. </col>
  495. <col ref="staiud_2"/>
  496. <col editmode="input" ref="dday_3" type="combo">
  497. <choices>
  498. <itemset nodeset="/root/init/combo_temp/item">
  499. <label ref="cdnm"/>
  500. <value ref="cdid"/>
  501. </itemset>
  502. </choices>
  503. </col>
  504. <col ref="staiud_3"/>
  505. <col editmode="input" ref="dday_4" type="combo">
  506. <choices>
  507. <itemset nodeset="/root/init/combo_temp/item">
  508. <label ref="cdnm"/>
  509. <value ref="cdid"/>
  510. </itemset>
  511. </choices>
  512. </col>
  513. <col ref="staiud_4"/>
  514. <col ref="supitemcd"/>
  515. <col ref="recitemcd"/>
  516. <col ref="chrtpcl"/>
  517. <col ref="suprefenum"/>
  518. <col ref="refenum"/>
  519. <col ref="pid"/>
  520. <col ref="cretdd"/>
  521. <col ref="crettm"/>
  522. <script type="javascript" ev:event="onstartedit">
  523. <![CDATA[
  524. if( grd_inptlist.col == 0 ){
  525. event.preventDefault();
  526. }
  527. ]]>
  528. </script>
  529. <script type="javascript" ev:event="onclick">
  530. <![CDATA[
  531. if(isDataCell()){
  532. grd_inptcol = grd_inptlist.col; //선택된 col값
  533. if(grd_inptlist.row == 1){
  534. fOpenVasKpsPopup('KPS');
  535. }
  536. }
  537. ]]>
  538. </script>
  539. <script type="javascript" ev:event="onkeydown">
  540. <![CDATA[
  541. if( event.keyCode == 9 ) {
  542. grd_inptlist.col = grd_inptcol;
  543. grd_inptlist.row = grd_inptlist.row+1;
  544. grd_inptlist.editCell();
  545. }
  546. ]]>
  547. </script>
  548. <!-- Date(M/D) 컬럼에 Orientation row는 콤보로 구성되어 공통코드를 선택하도록 한다. -->
  549. <script type="javascript" ev:event="onentercell">
  550. <![CDATA[
  551. if(grd_inptlist.col>1){
  552. if( grd_inptlist.row== 3){
  553. grd_inptlist.combo.button.visible = true;
  554. //grd_inptlist.cellComboNodeset(3, grd_inptlist.col) = "/root/init/M0224list/M0224";
  555. //model.setFocus("body");
  556. //model.setFocus("grd_inptlist")
  557. //model.refresh();
  558. grd_inptlist.combo.input.attribute("width") = grd_inptlist.colWidth(grd_inptlist.col) - 20;
  559. //grd_inptlist.col = grd_inptcol;
  560. }else {
  561. grd_inptlist.combo.button.visible = false;
  562. grd_inptlist.combo.input.attribute("width") = grd_inptlist.colWidth(grd_inptlist.col);
  563. }
  564. //model.refresh();
  565. }
  566. ]]>
  567. </script>
  568. </datagrid>
  569. </case>
  570. <case id="case2" selected="true" style="left:0px; top:0px; width:850px; height:890px; ">
  571. <button id="button2" class="btn5_letter2" style="left:803px; top:5px; width:42px; height:19px; ">
  572. <caption>저장</caption>
  573. <script type="javascript" ev:event="DOMActivate">
  574. <![CDATA[
  575. if(messageBox("","Q002") != 6) return;
  576. fSave();
  577. ]]>
  578. </script>
  579. </button>
  580. <datagrid id="grd_inptlist2" nodeset="/root/main/inpt/inptlist2" caption="^Date(M/D)^D^^D-1^^D-2^^D-3^^D-4^^^" colsep="^" colwidth="123, 127, 115, 0, 115, 0, 115, 0, 115, 0, 115, 0, 0, 0, 0, 0, 0, 0" defaultrows="1" mergecells="bycol" mergecellsfixedcols="bycol" rowsep="|" selectionmode="free" style="left:0px; top:30px; width:844px; height:624px; ">
  581. <col ref="supitem" style="text-align:center; background-image:../../../com/commonweb/images/grid_bg.gif; background-stretch:stretch; "/>
  582. <col ref="recitem"/>
  583. <col editmode="input" ref="dday" type="combo">
  584. <choices>
  585. <item>
  586. <label>Y</label>
  587. <value>Y</value>
  588. </item>
  589. <item>
  590. <label>N</label>
  591. <value>N</value>
  592. </item>
  593. </choices>
  594. </col>
  595. <col ref="staiud"/>
  596. <col editmode="input" ref="dday_1" type="combo">
  597. <choices>
  598. <item>
  599. <label>Y</label>
  600. <value>Y</value>
  601. </item>
  602. <item>
  603. <label>N</label>
  604. <value>N</value>
  605. </item>
  606. </choices>
  607. </col>
  608. <col ref="staiud_1"/>
  609. <col editmode="input" ref="dday_2" type="combo">
  610. <choices>
  611. <item>
  612. <label>Y</label>
  613. <value>Y</value>
  614. </item>
  615. <item>
  616. <label>N</label>
  617. <value>N</value>
  618. </item>
  619. </choices>
  620. </col>
  621. <col ref="staiud_2"/>
  622. <col editmode="input" ref="dday_3" type="combo">
  623. <choices>
  624. <item>
  625. <label>Y</label>
  626. <value>Y</value>
  627. </item>
  628. <item>
  629. <label>N</label>
  630. <value>N</value>
  631. </item>
  632. </choices>
  633. </col>
  634. <col ref="staiud_3"/>
  635. <col editmode="input" ref="dday_4" type="combo">
  636. <choices>
  637. <item>
  638. <label>Y</label>
  639. <value>Y</value>
  640. </item>
  641. <item>
  642. <label>N</label>
  643. <value>N</value>
  644. </item>
  645. </choices>
  646. </col>
  647. <col ref="staiud_4"/>
  648. <col ref="supitemcd"/>
  649. <col ref="recitemcd"/>
  650. <col ref="chrtpcl"/>
  651. <col ref="pid"/>
  652. <col ref="cretdt"/>
  653. <col ref="suprefenum"/>
  654. <script type="javascript" ev:event="onstartedit">
  655. <![CDATA[
  656. if( grd_inptlist2.col == 0 ){
  657. event.preventDefault();
  658. }
  659. ]]>
  660. </script>
  661. <script type="javascript" ev:event="xforms-value-changed">
  662. <![CDATA[
  663. //var staiud = model.getValue("/root/main/inpt/inptlist2["grd_inptlist2.row+"]/staiud");
  664. ]]>
  665. </script>
  666. <script type="javascript" ev:event="onclick">
  667. <![CDATA[
  668. //Sheet II 그리드 onclick 이벤트가 발생하면
  669. //Symptom항목에 한해서 Symtom and Sign 사정도구 팝업을 호출한다.
  670. //임종전증상발견, Accept항목은 팝업을 호출 하지 않고, 콤보로 Y, N을 선택할 수 있도록 한다.
  671. //그리드의 수정상태를 판단하기 위해 인스턴스에 별도로 staiud, staiud_1, staiud_2, staiud_4를 두어
  672. //실제 입력되는 값인 dday, dday_1, dday_2, dday_3, dday_4 입력값과 비교한다.
  673. if(isDataCell()){
  674. var curCol = grd_inptlist2.col;
  675. var curRow = grd_inptlist2.row;
  676. grd_col = grd_inptlist2.col;
  677. if((curCol==2) || (curCol==4) || (curCol==6) ||(curCol==8) || (curCol==10)){
  678. /* input을 false로 막아줘야돼.... tf에 문의할것!!!
  679. //임종전증상발견, Accept항목 클릭시 콤보값을 선택할수 있는 상태로 만든다.
  680. if(curRow > 31){
  681. grd_inptlist2.combo.button.visible = true;
  682. grd_inptlist2.combo.editmode= 'search';
  683. }else {
  684. grd_inptlist2.combo.button.visible = false;
  685. }
  686. */
  687. if(grd_inptlist2.valueMatrix(curRow, 0) == "Symptom"){
  688. fSave();
  689. var pid = model.getValue("/root/main/htfa/htfalist["+grd_htfalist.row+"]/pid");
  690. var cretdd = model.getValue("/root/main/htfa/htfalist["+grd_htfalist.row+"]/cretdd");
  691. var crettm = model.getValue("/root/main/htfa/htfalist["+grd_htfalist.row+"]/crettm");
  692. if(curCol==2)
  693. recdd = grd_inptlist2.valueMatrix(0,3);
  694. else if(curCol==4)
  695. recdd = grd_inptlist2.valueMatrix(0,5);
  696. else if(curCol==6)
  697. recdd = grd_inptlist2.valueMatrix(0,7);
  698. else if(curCol==8)
  699. recdd = grd_inptlist2.valueMatrix(0,9);
  700. else if(curCol==10)
  701. recdd = grd_inptlist2.valueMatrix(0,11);
  702. setParameter("pid", pid);
  703. setParameter("cretdd", cretdd);
  704. setParameter("crettm", crettm);
  705. setParameter("recdd", recdd);
  706. var left = 250;
  707. var top = 30;
  708. modal("SMMNH03400",1,left,top);
  709. clearParameter("pid");
  710. clearParameter("cretdd");
  711. clearParameter("crettm");
  712. clearParameter("recdd");
  713. fPcoiSearch();
  714. }
  715. }
  716. }
  717. ]]>
  718. </script>
  719. <script type="javascript" ev:event="onkeydown">
  720. <![CDATA[
  721. if( event.keyCode == 9 ) {
  722. grd_inptlist2.col = grd_col;
  723. grd_inptlist2.row = grd_inptlist2.row+1;
  724. grd_inptlist2.editCell();
  725. }
  726. ]]>
  727. </script>
  728. </datagrid>
  729. <line id="line1" class="line_1" style="x1:5px; y1:26px; x2:847px; y2:26px; "/>
  730. <group id="group1" visibility="hidden" style="left:250px; top:53px; width:575px; height:600px; background-color:transparent; "/>
  731. </case>
  732. </switch>
  733. <caption id="caption2" class="search_no_b" style="left:470px; top:76px; width:12px; height:17px; ">~</caption>
  734. <input id="ipt_fromdd" ref="/root/temp/fromdd" class="input_default" navindex="1" inputtype="date" style="left:367px; top:76px; width:100px; height:19px; ">
  735. <script type="javascript" ev:event="xforms-value-changed">
  736. <![CDATA[
  737. ipt_enddd.value = getAddDay(ipt_fromdd.value,-4);
  738. fChangeGridDate();
  739. fPcoiSearch();
  740. ]]>
  741. </script>
  742. </input>
  743. <input id="ipt_enddd" ref="/root/temp/enddd" class="input_default" navindex="2" inputtype="date" style="left:485px; top:76px; width:100px; height:19px; "/>
  744. <caption id="caption29" class="cell_1" style="left:285px; top:74px; width:79px; height:21px; text-align:center; vertical-align:middle; ">조회기간</caption>
  745. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1130px; height:39px; background-color:#fffbf2; border-color:#ffd799; "/>
  746. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:82px; height:13px; ">환자리스트</caption>
  747. <caption id="caption4" class="search_name" style="left:5px; top:15px; width:107px; height:17px; ">환자구분 :</caption>
  748. <select1 id="radio2" ref="/root/hidden/gubun" class="radio_search" navindex="4" appearance="full" cols="5" overflow="visible" style="left:96px; top:15px; width:294px; height:20px; background-color:transparent; border-style:none; ">
  749. <choices>
  750. <item>
  751. <label>전체</label>
  752. <value>A</value>
  753. </item>
  754. <item>
  755. <label>입실자</label>
  756. <value>I</value>
  757. </item>
  758. <item>
  759. <label>대기자(분산)</label>
  760. <value>W</value>
  761. </item>
  762. <item>
  763. <label>퇴실자</label>
  764. <value>L</value>
  765. </item>
  766. </choices>
  767. <script type="javascript" ev:event="xforms-value-changed">
  768. <![CDATA[
  769. var gubun = model.getValue("/root/hidden/gubun");
  770. if( gubun == "L" ){
  771. group1.visible = true;
  772. button2.visible = false;
  773. button3.visible = false;
  774. grd_htfalist.colHidden(1) = true;
  775. grd_pasmlist.disabled = true;
  776. grd_iovslist.disabled = true;
  777. grd_painlist.disabled = true;
  778. grd_inptlist.disabled = true;
  779. caption7.visible = true;
  780. ipt_todd.visible = true;
  781. ipt_fromdd2.visible = true;
  782. caption5.visible = true;
  783. model.setValue("/root/hidden/fromdd", getAddDay(getCurrentDate(),-14));
  784. model.setValue("/root/hidden/todd", getCurrentDate());
  785. }else{
  786. group1.visible = false;
  787. button2.visible = true;
  788. button3.visible = true;
  789. grd_htfalist.colHidden(1) = false;
  790. grd_pasmlist.disabled = false;
  791. grd_iovslist.disabled = false;
  792. grd_painlist.disabled = false;
  793. grd_inptlist.disabled = false;
  794. grd_inptlist2.isReadOnly(1,1,6,50) = false;
  795. caption7.visible = false;
  796. ipt_todd.visible = false;
  797. ipt_fromdd2.visible = false;
  798. caption5.visible = false;
  799. }
  800. button4.dispatch("DOMActivate");
  801. model.refresh();
  802. ]]>
  803. </script>
  804. </select1>
  805. <button id="button4" class="btn1_letter2" navindex="4" style="left:990px; top:14px; width:56px; height:22px; ">
  806. <caption>조회</caption>
  807. <script type="javascript" ev:event="DOMActivate">
  808. <![CDATA[
  809. fSearch();
  810. ]]>
  811. </script>
  812. </button>
  813. <line id="line13" class="line_4" style="x1:979px; y1:14px; x2:979px; y2:36px; "/>
  814. <button id="button5" class="btn1_letter2" navindex="4" style="left:1055px; top:14px; width:56px; height:22px; ">
  815. <caption>출력</caption>
  816. <script type="javascript" ev:event="DOMActivate">
  817. <![CDATA[
  818. group6.visible = true;
  819. ]]>
  820. </script>
  821. </button>
  822. <caption id="caption5" class="search_no_b" visibility="hidden" style="left:565px; top:14px; width:12px; height:17px; ">~</caption>
  823. <input id="ipt_fromdd2" ref="/root/hidden/fromdd" class="input_default" navindex="1" visibility="hidden" inputtype="date" style="left:477px; top:14px; width:85px; height:19px; "/>
  824. <caption id="caption7" class="search_name" visibility="hidden" style="left:390px; top:14px; width:86px; height:17px; ">조회기간 :</caption>
  825. <input id="ipt_todd" ref="/root/hidden/todd" class="input_default" navindex="2" visibility="hidden" inputtype="date" style="left:580px; top:14px; width:85px; height:19px; "/>
  826. </group>
  827. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">Hospice follow up Sheet</caption>
  828. <group id="group6" class="grp_1" visibility="hidden" style="left:990px; top:45px; width:120px; height:109px; background-color:#87CEFA; border-width:1px; ">
  829. <select id="chk_dethbfc" ref="/root/tmp/printinfo/cond/dethbfc" overflow="visible" appearance="full" style="left:5px; top:10px; width:113px; height:20px; border-style:none; ">
  830. <choices>
  831. <item>
  832. <label>임종 전 증상발견</label>
  833. <value>Y</value>
  834. </item>
  835. </choices>
  836. </select>
  837. <select id="chk_dethcare" ref="/root/tmp/printinfo/cond/dethcare" overflow="visible" appearance="full" style="left:5px; top:33px; width:100px; height:20px; border-style:none; ">
  838. <choices>
  839. <item>
  840. <label>임종 전 돌봄</label>
  841. <value>Y</value>
  842. </item>
  843. </choices>
  844. </select>
  845. <select id="chk_dethaftcare" ref="/root/tmp/printinfo/cond/dethaftcare" overflow="visible" appearance="full" style="left:5px; top:56px; width:100px; height:20px; border-style:none; ">
  846. <choices>
  847. <item>
  848. <label>임종 후 돌봄</label>
  849. <value>Y</value>
  850. </item>
  851. </choices>
  852. </select>
  853. <button id="btn_cert" class="btn5_letter2" style="left:32px; top:82px; width:42px; height:19px; ">
  854. <caption>확인</caption>
  855. <script type="javascript" ev:event="DOMActivate">
  856. <![CDATA[
  857. group6.visible = false;
  858. fPrint();
  859. ]]>
  860. </script>
  861. </button>
  862. <button id="btn_cancel" class="btn5_letter2" style="left:75px; top:82px; width:42px; height:19px; ">
  863. <caption>취소</caption>
  864. <script type="javascript" ev:event="DOMActivate">
  865. <![CDATA[
  866. group6.visible = false;
  867. ]]>
  868. </script>
  869. </button>
  870. </group>
  871. </xhtml:body>
  872. </xhtml:html>