SMPIJ02800_평가대상자관리.xrw 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. [개발이력]
  4. 2010.01.11 / 최초작성 /김상민
  5. -->
  6. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>평가대상자관리</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <list01>
  15. <gridtstlist/>
  16. </list01>
  17. </main>
  18. <send>
  19. <fromdd/>
  20. <todd/>
  21. <orddeptcd/>
  22. <orddrid/>
  23. <judgrid/>
  24. <inptsel/>
  25. <con1/>
  26. <con2/>
  27. <mskind/>
  28. <tststndrdcd/>
  29. <con3/>
  30. <tststndrdnm/>
  31. <selectetstlist/>
  32. <updatedata>
  33. <datalist/>
  34. </updatedata>
  35. <updatememo>
  36. <pid/>
  37. <indd/>
  38. <cretno/>
  39. <seqno/>
  40. <memo/>
  41. <mskind/>
  42. </updatememo>
  43. <tststndrdcdlist/>
  44. <tststndrdcdnm/>
  45. </send>
  46. <init>
  47. <orddeptcdlist>
  48. <cd/>
  49. <nm/>
  50. </orddeptcdlist>
  51. <orddrid>
  52. <cd/>
  53. <nm/>
  54. </orddrid>
  55. </init>
  56. <hidden>
  57. <tstrmk/>
  58. <sppiz00700>
  59. <cond>
  60. <judgrid/>
  61. <memoflag/>
  62. <memocls/>
  63. <ediitem1/>
  64. </cond>
  65. <rslt>
  66. <memocd/>
  67. <memo/>
  68. </rslt>
  69. </sppiz00700>
  70. </hidden>
  71. <temp>
  72. <tststndrdlist>
  73. </tststndrdlist>
  74. </temp>
  75. <globalvalue>
  76. <currow/>
  77. </globalvalue>
  78. </root>
  79. </instance>
  80. <script type="javascript" ev:event="xforms-ready">
  81. <![CDATA[
  82. // 공통코드를 로드한다.
  83. CommCode_Load();
  84. // 화면 실행 시 그리드 행이 하나도 안보이도록 한다.
  85. //model.removeNodeset("/root/main/list01/griduncoinfo");
  86. model.refresh();
  87. ]]>
  88. </script>
  89. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  90. <submission id="TRPIJ02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  91. <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
  92. <submission id="TRPIJ02802" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/temp"/>
  93. <submission id="TXPIJ02803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
  94. <submission id="TXPIJ02804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
  95. <submission id="TXPIJ02805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatememo"/>
  96. </model>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  101. <script type="javascript">
  102. <![CDATA[
  103. // 공통코드 Load작업
  104. function CommCode_Load() {
  105. // 관련 Control 초기화
  106. zbcfGetCodeList(new Array("P0010"), new Array("/root/init/P0010list")); // 보조유형
  107. zbcfGetCodeList(new Array("P0370"), new Array("/root/init/P0370list")); // 미수처리구분
  108. fInitialize();
  109. }
  110. // 2007.09.07 초기화 함수
  111. function fInitialize(){
  112. //submit("TRPID20309");
  113. // ---------------------------------------------------------------
  114. // 청구과, 심사자, 진료과, 주치의, 청구차수, 삼시자선택 초기화
  115. // ---------------------------------------------------------------
  116. submit("TRPID20201",false);
  117. model.removeNodeset("root/init/judgrid");
  118. model.removeNodeset("root/init/suppkind");
  119. model.removeNodeset("root/init/orddrid");
  120. model.removeNodeset("root/init/orddrid2");
  121. model.removeNodeset("root/init/clamdept");
  122. model.removeNodeset("root/init/orddeptcd");
  123. model.removeNodeset("root/init/orddeptcd2");
  124. model.removeNodeset("root/init/item3");
  125. model.removeNodeset("root/init/clamdg");
  126. model.makeNode("root/init/judgrid");
  127. model.makeNode("root/init/suppkind");
  128. model.makeNode("root/init/orddrid");
  129. model.makeNode("root/init/orddrid2");
  130. model.makeNode("root/init/clamdept");
  131. model.makeNode("root/init/orddeptcd");
  132. model.makeNode("root/init/orddeptcd2");
  133. model.makeNode("root/init/item3");
  134. model.makeNode("root/init/clamdg");
  135. model.copyNode("root/init/judgrid", "root/init/tmp/judgrid");
  136. model.copyNode("root/init/suppkind", "root/init/tmp/suppkind");
  137. model.copyNode("root/init/orddrid", "root/init/tmp/orddrid");
  138. model.copyNode("root/init/orddrid2", "root/init/tmp/orddrid2");
  139. model.copyNode("root/init/clamdept", "root/init/tmp/clamdept");
  140. model.copyNode("root/init/orddeptcd", "root/init/tmp/orddeptcd");
  141. model.copyNode("root/init/orddeptcd2", "root/init/tmp/orddeptcd2");
  142. model.copyNode("root/init/item3", "root/init/tmp/item3");
  143. model.copyNode("root/init/clamdg", "root/init/tmp/clamdg");
  144. model.removeNodeset("root/init/tmp/judgrid");
  145. model.removeNodeset("root/init/tmp/suppkind");
  146. model.removeNodeset("root/init/tmp/orddrid");
  147. model.removeNodeset("root/init/tmp/orddrid2");
  148. model.removeNodeset("root/init/tmp/clamdept");
  149. model.removeNodeset("root/init/tmp/orddeptcd");
  150. model.removeNodeset("root/init/tmp/orddeptcd2");
  151. model.removeNodeset("root/init/tmp/item3");
  152. model.removeNodeset("root/init/tmp/clamdg");
  153. model.resetInstanceNode("/root/send/selectetstlist");
  154. // 평가종류조회
  155. // ---------------------------------------------------------------
  156. submit("TRPIJ02802");
  157. model.setValue("/root/send/tststndrdcd", model.getValue("/root/temp/tststndrdlist/tststndrdcd"));
  158. model.setValue("/root/send/tststndrdnm", model.getValue("/root/temp/tststndrdlist/tststndrdnm"));
  159. // 조회 조건 입력값 초기화
  160. combo2.value = "I";
  161. var curDate = getCurrentDate();
  162. model.setValue("/root/send/fromdd", curDate);
  163. model.setValue("/root/send/todd", curDate);
  164. //addComboItem("cmb_tststndrd","전체","","above");
  165. //조회기간 보임
  166. ipt_fromdd.disabled = false;
  167. ipt_todd.disabled = false;
  168. //재원만 체크 보임
  169. chk_all.disabled = false;
  170. //조회조건 보임
  171. radio1.disabled = false;
  172. radio2.disabled = false;
  173. //평가종류 보임
  174. btn_tstlist.disabled = true;
  175. cmb_tststndrd.disabled = false;
  176. rdo_con1.value = "A";
  177. opt_tstlist.value = "";
  178. radio1.value = "A";
  179. radio2.value = "A";
  180. chk_tstlist.visible = false;
  181. // 그리드 공라인 없애기
  182. model.removeNodeset("/root/main/list01/griduncoinfo");
  183. model.refresh();
  184. }
  185. function fSearch(){
  186. var af = model.getValue("/root/send/tststndrdcdlist");
  187. var bf = model.getValue("");
  188. var cnt = af.length;
  189. if(model.getValue("/root/send/tststndrdcdlist") != " " || model.getValue("/root/send/tststndrdcdlist") != "" ) {
  190. bf = af.replace(" ", "','");
  191. for(var i=1; i < cnt; i++){
  192. bf = bf.replace(" ", "','");
  193. if(bf.substr(0,1) != "'"){
  194. bf = "'" + bf + "'";
  195. }
  196. }
  197. }
  198. model.setValue("/root/send/tststndrdcdlist", bf);
  199. /*
  200. var tststndrdcdlist = model.getValue("/root/send/tststndrdcdlist");
  201. if(tststndrdcdlist == " " || tststndrdcdlist == ""){
  202. model.setValue("/root/send/tststndrdcdlist", "A");
  203. }
  204. */
  205. if(submit("TRPIJ02801")){
  206. //평가대상자 중복 제거 로직
  207. if( getNodesetCount("/root/main/list01/gridtstlist") < 1 ){
  208. messageBox("검색된 대상자가 없습니다.", "E999", "");
  209. return;
  210. }
  211. else{ //INSTCD, PID, INDD, CRETNO
  212. for(var i=1; i < grd_tstlist.rows; i++){
  213. for(var j=i+1; j < grd_tstlist.rows; j++){
  214. if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/pid") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/pid")){
  215. if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/indd") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/indd")){
  216. if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/cretno") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/cretno")){
  217. if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/testgrup") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/testgrup")){
  218. grd_tstlist.deleteItem(j);
  219. }
  220. }
  221. }
  222. }
  223. }
  224. }
  225. }
  226. }
  227. }
  228. // SPPIZ00700_심사Comment조회.xrw 호출(심사자메모,EDI메모)
  229. function fGetJudgEdiComment(memoflag, memocls) {
  230. model.resetInstanceNode("/root/hidden/sppiz00700/rslt");
  231. model.resetInstanceNode("/root/hidden/sppiz00700/cond");
  232. model.setValue("/root/hidden/sppiz00700/cond/memoflag", memoflag);
  233. model.setValue("/root/hidden/sppiz00700/cond/memocls", memocls);
  234. modal("SPPIZ00700" ,"", "10", "10", "SPPIZ00700", "/root/hidden/sppiz00700", "/root/send/sppiz00700", "", "");
  235. }
  236. function fSetTstMemoRefresh(){
  237. var cur_row = model.getValue("/root/globalvalue/currow");
  238. var memo = model.getValue("/root/hidden/sppiz00700/rslt/memo");
  239. var bfmemo = model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo");
  240. if( bfmemo == '-' || bfmemo == '' || bfmemo == ' '){
  241. //bfTelRsrvRem = telrsrvrem;
  242. }else{
  243. memo = bfmemo + " " + memo;
  244. }
  245. model.setValue("/root/hidden/tstrmk",memo);
  246. //model.setValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo",tmp + memo);
  247. model.refresh();
  248. }
  249. ]]>
  250. </script>
  251. </xhtml:head>
  252. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  253. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  254. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">평가대상자관리</caption>
  255. </group>
  256. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:760px; ">
  257. <caption id="caption1" class="tit_2" style="left:6px; top:124px; width:121px; height:13px; ">평가대상자리스트</caption>
  258. <line id="line1" class="line_1" style="x1:0px; y1:139px; x2:1194px; y2:139px; "/>
  259. <group id="group4" style="left:0px; top:10px; width:1194px; height:105px; vertical-align:top; ">
  260. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:105px; background-color:#fffbf2; border-color:#ffd799; "/>
  261. <line id="line2" class="line_4" style="x1:1121px; y1:12px; x2:1121px; y2:89px; border-color:#ffe4bb; border-left-style:solid; "/>
  262. <button id="btn_srch" class="btn1_letter2" style="left:1132px; top:37px; width:56px; height:22px; ">
  263. <caption>조회</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. fSearch();
  267. ]]>
  268. </script>
  269. </button>
  270. <caption id="cap_orddeptcd" class="search_name" style="left:479px; top:14px; width:86px; height:17px; ">진료과 :</caption>
  271. <caption id="cap_dd" class="search_name" style="left:6px; top:14px; width:86px; height:17px; ">조회기간 :</caption>
  272. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:295px; top:13px; width:85px; height:19px; "/>
  273. <caption id="caption2" style="left:280px; top:13px; width:11px; height:18px; ">~</caption>
  274. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:193px; top:13px; width:85px; height:19px; "/>
  275. <select id="chk_all" ref="/root/send/inptsel" overflow="visible" appearance="full" style="left:385px; top:15px; width:80px; height:15px; border-style:none; ">
  276. <choices>
  277. <item>
  278. <label>재원환자만</label>
  279. <value>Y</value>
  280. </item>
  281. </choices>
  282. <script type="javascript" ev:event="xforms-deselect">
  283. <![CDATA[
  284. ipt_fromdd.disabled = false;
  285. ipt_todd.disabled = false;
  286. model.setValue("/root/send/fromdd",getCurrentDate());
  287. model.setValue("/root/send/todd",getCurrentDate());
  288. //alert(model.getValue("/root/temp/fromdd"));
  289. //alert(model.getValue("/root/temp/todd"));
  290. model.refresh();
  291. ]]>
  292. </script>
  293. <script type="javascript" ev:event="xforms-select">
  294. <![CDATA[
  295. ipt_fromdd.disabled = true;
  296. ipt_todd.disabled = true;
  297. model.setValue("/root/send/fromdd","");
  298. model.setValue("/root/send/todd","");
  299. model.refresh();
  300. ]]>
  301. </script>
  302. </select>
  303. <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:555px; top:13px; width:120px; height:19px; ">
  304. <choices>
  305. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  306. <label ref="nm"/>
  307. <value ref="cd"/>
  308. </itemset>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. var orddeptcd = model.getValue("/root/send/orddeptcd");
  313. if (orddeptcd) {
  314. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp='" + orddeptcd + "']";
  315. cmb_orddrid.disabled = false;
  316. } else {
  317. cmb_orddrid.disabled = true;
  318. }
  319. model.setValue("/root/send/orddrid", ""); // 주치의 선택을 초기화한다.
  320. model.refresh();
  321. ]]>
  322. </script>
  323. </select1>
  324. <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:783px; top:13px; width:120px; height:19px; ">
  325. <choices>
  326. <itemset nodeset="/root/init/orddrid/orddridlist">
  327. <label ref="nm"/>
  328. <value ref="cd"/>
  329. </itemset>
  330. </choices>
  331. </select1>
  332. <caption id="caption9" class="search_name" style="left:693px; top:14px; width:86px; height:17px; ">진료의사 :</caption>
  333. <caption id="caption3" class="search_name" style="left:915px; top:13px; width:91px; height:17px; ">심 사 자 :</caption>
  334. <select1 id="cmb_judgrid" ref="/root/send/judgrid" class="combo_search" appearance="minimal" style="left:1015px; top:13px; width:90px; height:19px; ">
  335. <choices>
  336. <itemset nodeset="/root/init/judgrid/judgridlist">
  337. <label ref="nm"/>
  338. <value ref="cd"/>
  339. </itemset>
  340. </choices>
  341. </select1>
  342. <caption id="caption4" class="search_name" style="left:6px; top:59px; width:86px; height:17px; ">조회조건 :</caption>
  343. <select1 id="rdo_con1" ref="/root/send/con2" overflow="visible" appearance="full" cols="5" rows="1" style="left:95px; top:40px; width:135px; height:15px; border-style:none; ">
  344. <choices>
  345. <item>
  346. <label>전체</label>
  347. <value>A</value>
  348. </item>
  349. <item>
  350. <label>관리대상만</label>
  351. <value>B</value>
  352. </item>
  353. </choices>
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. var con1 = model.getValue("/root/send/con2");
  357. if(con1 == "A"){
  358. //조회기간 보임
  359. ipt_fromdd.disabled = false;
  360. ipt_todd.disabled = false;
  361. //재원만 체크 보임
  362. chk_all.disabled = false;
  363. //조회조건 보임
  364. radio1.disabled = false;
  365. radio2.disabled = false;
  366. //평가종류 보임
  367. btn_tstlist.disabled = true;
  368. cmb_tststndrd.disabled = false;
  369. opt_tstlist.value = "";
  370. input1.value = "";
  371. }else if(con1 == "B"){
  372. //조회기간 숨김
  373. ipt_fromdd.disabled = true;
  374. ipt_todd.disabled = true;
  375. //재원만 체크 숨김
  376. chk_all.disabled = true;
  377. //조회조건 숨김
  378. radio1.disabled = true;
  379. radio2.disabled = true;
  380. //평가종류 숨김
  381. btn_tstlist.disabled = false;
  382. cmb_tststndrd.disabled = true;
  383. cmb_tststndrd.value = "";
  384. }
  385. model.refresh();
  386. ]]>
  387. </script>
  388. </select1>
  389. <caption id="caption5" class="search_name" style="left:479px; top:59px; width:86px; height:17px; ">평가종류 :</caption>
  390. <select1 id="cmb_tststndrd" ref="/root/send/tststndrdcdnm" class="combo_search" appearance="minimal" style="left:585px; top:59px; width:175px; height:19px; ">
  391. <choices>
  392. <itemset nodeset="/root/temp/tststndrdlist">
  393. <label ref="tststndrdnm"/>
  394. <value ref="tststndrdcd"/>
  395. </itemset>
  396. </choices>
  397. </select1>
  398. <select1 id="combo2" ref="/root/send/con1" class="combo_search" appearance="minimal" style="left:95px; top:13px; width:95px; height:19px; ">
  399. <choices>
  400. <item>
  401. <label>입원일자</label>
  402. <value>I</value>
  403. </item>
  404. <item>
  405. <label>퇴원일자</label>
  406. <value>D</value>
  407. </item>
  408. </choices>
  409. </select1>
  410. <select1 id="radio1" ref="/root/send/con3" overflow="visible" appearance="full" cols="5" rows="1" style="left:95px; top:60px; width:195px; height:15px; border-style:none; ">
  411. <choices>
  412. <item>
  413. <label>전체</label>
  414. <value>A</value>
  415. </item>
  416. <item>
  417. <label>진료상병</label>
  418. <value>O</value>
  419. </item>
  420. <item>
  421. <label>심사상병</label>
  422. <value>J</value>
  423. </item>
  424. </choices>
  425. </select1>
  426. <select1 id="radio2" ref="/root/send/mskind" overflow="visible" appearance="full" cols="5" rows="1" style="left:95px; top:80px; width:195px; height:15px; border-style:none; ">
  427. <choices>
  428. <item>
  429. <label>전체</label>
  430. <value>A</value>
  431. </item>
  432. <item>
  433. <label>주상병</label>
  434. <value>M</value>
  435. </item>
  436. </choices>
  437. </select1>
  438. <button id="btn_tstlist" class="icon_search" style="left:960px; top:59px; width:16px; height:16px; ">
  439. <caption/>
  440. <script type="javascript" ev:event="DOMActivate">
  441. <![CDATA[
  442. if(chk_tstlist.visible == "" ||chk_tstlist.visible == "false" ){
  443. chk_tstlist.visible = true;
  444. }else {
  445. chk_tstlist.visible = false;
  446. }
  447. //addComboItem("chk_tstlist","전체","","above");
  448. //평가종류 뿌려주기
  449. opt_tstlist.value = chk_tstlist.label;
  450. input1.value = chk_tstlist.value;
  451. ]]>
  452. </script>
  453. </button>
  454. <output id="opt_tstlist" class="output_search" style="left:765px; top:59px; width:193px; height:19px; "/>
  455. <input id="input1" ref="/root/send/tststndrdcdlist" visibility="hidden" style="left:960px; top:80px; width:145px; height:19px; "/>
  456. </group>
  457. <col type="checkbox"/>
  458. <button id="button3" class="btn2_letter4" style="left:1130px; top:118px; width:64px; height:19px; ">
  459. <caption>엑셀저장</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  463. if (fileName != "") {
  464. grd_tstlist.saveExcel(fileName, "SheetName", true, true, "", "", "");
  465. }
  466. ]]>
  467. </script>
  468. </button>
  469. <datagrid id="grd_tstlist" nodeset="/root/main/list01/gridtstlist" visibility="visible" caption="선택^적용^예고^평가종류^평가종류^진료과^등록번호^환자명^성별^나이^유형^메모^입원일자^퇴원일자^심사상병^진료상병^관련처방^처방명^심사자^cretno^mskind^seqno^orddeptcd" colsep="^" colwidth="35, 35, 36, 40, 120, 75, 75, 70, 35, 35, 35, 75, 75, 75, 100, 100, 100, 120, 93, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:144px; width:1194px; height:583px; ">
  470. <col checkvalue="Y,N" ref="chkbox" type="checkbox"/>
  471. <col ref="useyn" style="text-align:center; "/>
  472. <col ref="dschdclrtyn" style="text-align:center; "/>
  473. <col ref="testgrup" style="text-align:center; "/>
  474. <col ref="testgrupnm" style="text-align:center; "/>
  475. <col ref="orddeptnm" style="text-align:center; "/>
  476. <col ref="pid" style="text-align:center; "/>
  477. <col ref="hngnm" style="text-align:center; "/>
  478. <col ref="sex" style="text-align:center; "/>
  479. <col ref="age" style="text-align:center; "/>
  480. <col ref="insukind" style="text-align:center; "/>
  481. <col ref="memo" type="inputbutton" _chartype="upper"/>
  482. <script type="javascript" ev:event="onbuttonclick">
  483. <![CDATA[
  484. grp_tstmemo.visible = true;
  485. var cur_row = grd_tstlist.row;
  486. var memo = model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo");
  487. var useyn = model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/useyn");
  488. if(useyn == "N"){
  489. btn_savememo.disabled = true;
  490. }else{
  491. btn_savememo.disabled = false;
  492. }
  493. model.setValue("/root/globalvalue/currow", cur_row);
  494. model.setValue("/root/hidden/tstrmk", memo);
  495. model.refresh();
  496. ]]>
  497. </script>
  498. <col ref="indd" style="text-align:center; "/>
  499. <col ref="dschdd" style="text-align:center; "/>
  500. <col ref="judgdiagcd" style="text-align:right; "/>
  501. <col ref="diagcd" style="text-align:right; "/>
  502. <col ref="calcscorcd" style="text-align:right; "/>
  503. <col ref="calcscornm" visibility="visible" style="text-align:right; "/>
  504. <col ref="judgrnm" visibility="visible" style="text-align:right; "/>
  505. <col ref="cretno" visibility="hidden" style="text-align:center; "/>
  506. <col ref="mskind" visibility="hidden" style="text-align:center; "/>
  507. <col ref="seqno" visibility="hidden" style="text-align:center; "/>
  508. <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
  509. <col ref="medispclid" visibility="hidden" style="text-align:center; "/>
  510. <col ref="mainjudgid" visibility="hidden" style="text-align:center; "/>
  511. <script type="javascript" ev:event="onendedit">
  512. <![CDATA[
  513. ]]>
  514. </script>
  515. <script type="javascript" ev:event="oncopy">
  516. <![CDATA[
  517. // 그리드 내용 복사
  518. if (grd_tstlist.selectedRows == 1) { // 한줄
  519. var row = grd_tstlist.row;
  520. var col = grd_tstlist.col;
  521. if (col == grd_tstlist.colRef("pid") ) {
  522. // 등록번호
  523. var clip = grd_tstlist.labelMatrix(row, col);
  524. window.clipBoardData = clip;
  525. } else {
  526. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  527. }
  528. }
  529. else if (grd_tstlist.selectedRows > 1) { // 여러줄
  530. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  531. }
  532. ]]>
  533. </script>
  534. </datagrid>
  535. <group id="grp_tstmemo" visibility="hidden" style="left:315px; top:220px; width:620px; height:371px; border-color:#c7a3cf; border-style:solid; ">
  536. <caption id="cpt_detail" class="tit_2" style="left:5px; top:0px; width:118px; height:14px; ">평가관리 메모</caption>
  537. <line id="line4" class="line_1" style="x1:0px; y1:15px; x2:602px; y2:15px; "/>
  538. <textarea id="txt_tstrmk" ref="/root/hidden/tstrmk" scroll="vertical" imemode="hangul" maxlength="1750" style="left:5px; top:45px; width:599px; height:294px; vertical-align:top; "/>
  539. <button id="btn_closememot" class="btn4_letter2" style="left:546px; top:342px; width:56px; height:22px; ">
  540. <caption>
  541. <![CDATA[닫기]]>
  542. </caption>
  543. <script type="javascript" ev:event="DOMActivate">
  544. <![CDATA[
  545. grp_tstmemo.visible = false;
  546. ]]>
  547. </script>
  548. </button>
  549. <button id="btn_savememo" class="btn4_letter2" style="left:486px; top:342px; width:56px; height:22px; ">
  550. <caption>
  551. <![CDATA[저장]]>
  552. </caption>
  553. <script type="javascript" ev:event="DOMActivate">
  554. <![CDATA[
  555. var cur_row = model.getValue("/root/globalvalue/currow");
  556. var tstrmk = model.getValue("/root/hidden/tstrmk");
  557. model.setValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo", tstrmk);
  558. grp_tstmemo.visible = false;
  559. //이미 저장된 데이터의 경우 수정, 저장이 안된 데이터는 화면에 세팅만
  560. if(model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/useyn") == "Y"){
  561. model.setValue("/root/send/updatememo/pid", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/pid"));
  562. model.setValue("/root/send/updatememo/indd", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/indd"));
  563. model.setValue("/root/send/updatememo/cretno", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/cretno"));
  564. model.setValue("/root/send/updatememo/seqno", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/seqno"));
  565. model.setValue("/root/send/updatememo/mskind", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/mskind"));
  566. model.setValue("/root/send/updatememo/memo", tstrmk);
  567. submit("TXPIJ02805")
  568. }
  569. model.refresh();
  570. ]]>
  571. </script>
  572. </button>
  573. <button id="btn_memohistory_treat" class="btn2_letter2" _auth="X" style="left:183px; top:24px; width:42px; height:19px; ">
  574. <caption>분만</caption>
  575. <script type="javascript" ev:event="DOMActivate">
  576. <![CDATA[
  577. // SPPIZ00700_심사Comment조회.xrw 호출
  578. fGetJudgEdiComment("6", "14"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  579. ]]>
  580. </script>
  581. </button>
  582. <button id="btn_memohistory" class="btn2_letter4" _auth="X" style="left:4px; top:24px; width:64px; height:19px; ">
  583. <caption>평가공통</caption>
  584. <script type="javascript" ev:event="DOMActivate">
  585. <![CDATA[
  586. // SPPIZ00700_심사Comment조회.xrw 호출
  587. fGetJudgEdiComment("6", "11");
  588. ]]>
  589. </script>
  590. </button>
  591. <button id="btn_memohistory_injection" class="btn2_letter3" _auth="X" style="left:127px; top:24px; width:53px; height:19px; ">
  592. <caption>CABG</caption>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. // SPPIZ00700_심사Comment조회.xrw 호출
  596. fGetJudgEdiComment("6", "13"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  597. ]]>
  598. </script>
  599. </button>
  600. <button id="btn_memohistory_drug" class="btn2_letter3" _auth="X" style="left:71px; top:24px; width:42px; height:19px; ">
  601. <caption>AMI</caption>
  602. <script type="javascript" ev:event="DOMActivate">
  603. <![CDATA[
  604. // SPPIZ00700_심사Comment조회.xrw 호출
  605. fGetJudgEdiComment("6", "12"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  606. ]]>
  607. </script>
  608. </button>
  609. <button id="button6" class="btn2_letter3" _auth="X" style="left:228px; top:24px; width:53px; height:19px; ">
  610. <caption>뇌졸증</caption>
  611. <script type="javascript" ev:event="DOMActivate">
  612. <![CDATA[
  613. // SPPIZ00700_심사Comment조회.xrw 호출
  614. fGetJudgEdiComment("6", "15");
  615. ]]>
  616. </script>
  617. </button>
  618. <button id="button8" class="btn2_letter5" _auth="X" style="left:284px; top:24px; width:75px; height:19px; ">
  619. <caption>예방항생제</caption>
  620. <script type="javascript" ev:event="DOMActivate">
  621. <![CDATA[
  622. // SPPIZ00700_심사Comment조회.xrw 호출
  623. fGetJudgEdiComment("6", "16"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
  624. ]]>
  625. </script>
  626. </button>
  627. </group>
  628. <button id="button4" class="btn2_letter4" navindex="4" style="left:923px; top:118px; width:64px; height:19px; ">
  629. <caption>전체취소</caption>
  630. <script type="javascript" ev:event="DOMActivate">
  631. <![CDATA[
  632. for(var i=1; i < grd_tstlist.rows; i++){
  633. model.setValue("/root/main/list01/gridtstlist[" + i + "]/chkbox", "N");
  634. //grd_orddeptcdlist.fixedcellischeck(0,1) = false;
  635. }
  636. model.refresh();
  637. ]]>
  638. </script>
  639. </button>
  640. <button id="button5" class="btn2_letter4" navindex="3" style="left:854px; top:118px; width:64px; height:19px; ">
  641. <caption>전체선택</caption>
  642. <script type="javascript" ev:event="DOMActivate">
  643. <![CDATA[
  644. for(var i=1; i < grd_tstlist.rows; i++){
  645. if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/useyn") != "Y"){
  646. model.setValue("/root/main/list01/gridtstlist[" + i + "]/chkbox", "Y");
  647. }
  648. }
  649. model.refresh();
  650. ]]>
  651. </script>
  652. </button>
  653. <button id="button1" class="btn5_letter4" navindex="4" style="left:1061px; top:118px; width:64px; height:19px; ">
  654. <caption>대상해제</caption>
  655. <script type="javascript" ev:event="DOMActivate">
  656. <![CDATA[
  657. var startRow = grd_tstlist.fixedRows;
  658. var endRow = grd_tstlist.rows;
  659. //대상해제 내역 확인
  660. for( var i = startRow; i < endRow; i++){
  661. if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/chkbox") == 'Y' ){
  662. if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/useyn") == 'N' ){
  663. messageBox("선택한 항목중에 해제 할 대상이 존재하지 않는 항목이 존재합니다. 확인 후 다시 시도해 주세요. ","E999");
  664. return;
  665. }
  666. }
  667. }
  668. var nodeList = instance1.selectNodes("/root/main/list01/gridtstlist[chkbox='Y']");
  669. var rCSV = getNodeListCSV(nodeList);
  670. if( rCSV == "" || rCSV == null || rCSV == undefined){
  671. //messageBox("일정을 생성할 기준자료가 선택되지 않았습니다.", "E999", "");
  672. messageBox("해제할 대상이 선택되지", "E007");
  673. return false;
  674. }
  675. if(messageBox("선택된 대상을 적용해제 하시겠습니까?", "Q999") != 6){
  676. return false;
  677. }
  678. model.resetInstanceNode("/root/send/updatedata");
  679. model.setValue("/root/send/updatedata/datalist", rCSV);
  680. //model.alert(model.getValue("/root/send/updatedata/datalist"));
  681. if(submit("TXPIJ02804")){
  682. var srow = grd_tstlist.fixedRows;
  683. var erow = grd_tstlist.rows;
  684. var checkRow = startRow;
  685. checkRow = srow;
  686. for( var i = srow; i < erow; i++){
  687. if( grd_tstlist.valueMatrix( checkRow, grd_tstlist.colRef("chkbox") ) == 'Y' ){
  688. //디비에서 삭제한 데이터를 그리드에서 삭제한다.
  689. grd_tstlist.deleteItem(checkRow);
  690. }else{
  691. checkRow++;
  692. }
  693. }
  694. messageBox("선택하신 대상이 해제되었습니다.. ","E999");
  695. }
  696. ]]>
  697. </script>
  698. </button>
  699. <button id="button2" class="btn2_letter4" navindex="3" style="left:992px; top:118px; width:64px; height:19px; ">
  700. <caption>대상적용</caption>
  701. <script type="javascript" ev:event="DOMActivate">
  702. <![CDATA[
  703. var startRow = grd_tstlist.fixedRows;
  704. var endRow = grd_tstlist.rows;
  705. //적용대상 내역 확인
  706. for( var i = startRow; i < endRow; i++){
  707. if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/chkbox") == 'Y' ){
  708. if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/useyn") == 'Y' ){
  709. messageBox("선택한 항목중에 이미 적용된 대상이 존재합니다. 확인 후 다시 시도해 주세요. ","E999");
  710. return;
  711. }
  712. }
  713. }
  714. //대상자 적용시 평가메모 자동입력 로직
  715. for( var i = startRow; i < endRow; i++){
  716. if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/chkbox") == 'Y' ){
  717. var memo = model.getValue("/root/main/list01/gridtstlist["+ i +"]/memo");
  718. var testgrup = model.getValue("/root/main/list01/gridtstlist["+ i +"]/testgrup");
  719. var testgrupnm = model.getValue("/root/main/list01/gridtstlist["+ i +"]/testgrupnm");
  720. if( memo == '-' || memo == '' || memo == ' '){
  721. model.setValue("/root/main/list01/gridtstlist["+ i +"]/memo", testgrupnm + "(" + testgrup + ") 평가 대상자 입니다\n");
  722. }else{
  723. model.setValue("/root/main/list01/gridtstlist["+ i +"]/memo", memo + "\n"+ testgrupnm + "(" + testgrup + ") 평가 대상자 입니다\n");
  724. }
  725. }
  726. }
  727. var nodeList = instance1.selectNodes("/root/main/list01/gridtstlist[chkbox='Y']");
  728. var rCSV = getNodeListCSV(nodeList);
  729. if( rCSV == "" || rCSV == null || rCSV == undefined){
  730. messageBox("적용할 대상이 선택되지", "E007");
  731. return false;
  732. }
  733. if(messageBox("선택된 대상을 적용하시겠습니까?", "Q999") != 6){
  734. return;
  735. }
  736. model.resetInstanceNode("/root/send/updatedata");
  737. model.setValue("/root/send/updatedata/datalist", rCSV);
  738. if(submit("TXPIJ02803")){
  739. var srow = grd_tstlist.fixedRows;
  740. var erow = grd_tstlist.rows;
  741. var checkRow = startRow;
  742. checkRow = srow;
  743. for( var i = srow; i < erow; i++){
  744. if( grd_tstlist.valueMatrix( checkRow, grd_tstlist.colRef("chkbox") ) == 'Y' ){
  745. //디비에서 삭제한 데이터를 그리드에서 삭제한다.
  746. grd_tstlist.deleteItem(checkRow);
  747. }else{
  748. checkRow++;
  749. }
  750. }
  751. messageBox("선택하신 대상이 적용되었습니다. ","E999");
  752. }else{
  753. messageBox("일정생성이 비정상 종료!", "I999");
  754. return;
  755. }
  756. ]]>
  757. </script>
  758. </button>
  759. <select id="chk_tstlist" ref="/root/send/selectetstlist" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:765px; top:90px; width:190px; height:15px; background-color:#e5eae9; border-style:none; ">
  760. <choices>
  761. <itemset nodeset="/root/temp/tststndrdlist">
  762. <label ref="tststndrdnm"/>
  763. <value ref="tststndrdcd"/>
  764. </itemset>
  765. </choices>
  766. <script type="javascript" ev:event="xforms-value-changed">
  767. <![CDATA[
  768. ]]>
  769. </script>
  770. </select>
  771. <group id="group2" scroll="auto" style="left:0px; top:727px; width:1195px; height:27px; ">
  772. <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  773. <caption>초기화</caption>
  774. <script type="javascript" ev:event="DOMActivate">
  775. <![CDATA[
  776. fInitialize();
  777. ]]>
  778. </script>
  779. </button>
  780. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  781. </group>
  782. </group>
  783. </xhtml:body>
  784. </xhtml:html>