SMMNO02500_외래선처치시행부서 처방기준자료관리.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMMNO02300_외래선처치기준자료등록.xrw
  4. * 설 명 : 외래선처치기준자료등록
  5. * 수정이력 :
  6. * 기 타 :
  7. -->
  8. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  9. <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">
  10. <xhtml:head>
  11. <xhtml:title>외래선처치/처방시행부서 기준자료등록</xhtml:title>
  12. <model id="model1">
  13. <instance id="instance1">
  14. <root xmlns="">
  15. <main>
  16. <actprcpinfo>
  17. <actprcplist>
  18. <checks/>
  19. <deptnm/>
  20. <prcpclscd/>
  21. <prcpcd/>
  22. <prcpnm/>
  23. <precureprcpflag/>
  24. <prcpexecdeptcd/>
  25. <acptdeptnm/>
  26. <rgstdd/>
  27. <deptcd/>
  28. <instcd/>
  29. <baseflag/>
  30. <ordtype/>
  31. </actprcplist>
  32. </actprcpinfo>
  33. <prcprefinfo>
  34. <prcpreflist>
  35. <checks/>
  36. <deptnm/>
  37. <prcpclscd/>
  38. <prcpcd/>
  39. <prcpnm/>
  40. <precureprcpflag/>
  41. <prcpexecdeptcd/>
  42. <acptdeptnm/>
  43. <rgstdd/>
  44. <deptcd/>
  45. <instcd/>
  46. <baseflag/>
  47. <ordtype/>
  48. </prcpreflist>
  49. </prcprefinfo>
  50. <cond>
  51. <deptcd/>
  52. <prcpclscd/>
  53. <precureflag/>
  54. <deptnm/>
  55. <srchprcpclscd/>
  56. <prcprefflag/>
  57. <prcpscrhnm/>
  58. <ordclsdeptflag/>
  59. <supdeptcd/>
  60. </cond>
  61. <prcp>
  62. <prcplist>
  63. <prcpexecdeptcd/>
  64. </prcplist>
  65. </prcp>
  66. </main>
  67. <send>
  68. </send>
  69. <hidden/>
  70. <init>
  71. <deptlist>
  72. <dept>
  73. <deptcd/>
  74. <depthngnm/>
  75. </dept>
  76. </deptlist>
  77. <execdeptlist>
  78. <dept>
  79. <deptcd/>
  80. <depthngnm/>
  81. </dept>
  82. </execdeptlist>
  83. <prcpclscdlist>
  84. <M0005/>
  85. </prcpclscdlist>
  86. </init>
  87. <temp>
  88. <prcpinfo/>
  89. </temp>
  90. <orddept>
  91. </orddept>
  92. </root>
  93. </instance>
  94. <script type="javascript">
  95. <![CDATA[
  96. var sACTPRCPLIST_PATH = "/root/main/actprcpinfo/actprcplist";
  97. function fInitialize()
  98. {
  99. // zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/deptlist", "depthngnm", "asc"); //부서코드 콤보조회
  100. //addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "ALL^전체", "dept"); //부서콤보 전체추가
  101. //처방조회그리드 컬림히든
  102. grd_prcpreflist.colHidden(10) = true;
  103. grd_prcpreflist.colHidden(11) = true;
  104. grd_prcpreflist.colHidden(12) = true;
  105. model.removeNodeset("/root/main/prcprefinfo/prcpreflist");
  106. //진료과리스트 - 외래간호메인의 진료과 기준으로 세팅 -> 2008-02-11
  107. var instcd = getUserInfo("dutplceinstcd");
  108. var standard_yn = "rcptuseyn";
  109. var ord_deptflag = 'X';
  110. var rslt_ref = "/root/init/deptlist";
  111. var sort_field = "depthngnm";
  112. var sort_method = "asc";
  113. var dt = getCurrentDate();
  114. //zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method); //진료과리스트조회
  115. //zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
  116. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  117. zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
  118. //시행부서리스트
  119. submit("TRMNO02501");
  120. //처방분류리스트 및 "전체" 포함
  121. zbcfGetCodeList(new Array("M0005"), new Array("/root/init/prcpclscdlist"), true);
  122. addComboItem("combo1", "전체", "ALL", "above" );
  123. //개인부서정보로 부서정보세팅
  124. model.setValue("/root/main/cond/deptcd", getUserInfo("dutplcecd")); // 근무지부서코드
  125. model.setValue("/root/main/cond/deptnm", getUserInfo("dutplcenm")); // 부서코드
  126. //디폴트데이터 세팅
  127. model.setValue("/root/main/cond/precureflag", "1"); // 선처치조회구분
  128. model.setValue("/root/main/cond/prcprefflag", "1"); // 처방검색구분
  129. model.setValue("/root/main/cond/prcpclscd", "ALL"); // 기준자료용 처방구분코드
  130. model.setValue("/root/main/cond/srchprcpclscd", "ALL"); // 처방조회용 처방구분코드
  131. fSrchPrcpInfo();
  132. }
  133. //진료과별 외래선처치처방수행부서 기준자료
  134. function fSrchPrcpInfo(){
  135. model.removenode("/root/send");
  136. model.makeValue("/root/send/deptnm", model.getValue("/root/main/cond/deptnm"));
  137. model.makeValue("/root/send/deptcd", model.getValue("/root/main/cond/deptcd"));
  138. model.makeValue("/root/send/precureflag", model.getValue("/root/main/cond/precureflag"));
  139. model.makeValue("/root/send/prcpclscd", model.getValue("/root/main/cond/prcpclscd"));
  140. submit("TRMNO02502");
  141. }
  142. //처방검색 조회
  143. function fPrcpListSrch() {
  144. if (model.getValue("/root/main/cond/prcpscrhnm").length >= 2) {
  145. model.removenode("/root/send");
  146. model.makeValue("/root/send/deptnm", model.getValue("/root/main/cond/deptnm"));
  147. model.makeValue("/root/send/deptcd", model.getValue("/root/main/cond/deptcd"));
  148. model.makeValue("/root/send/prcprefflag", model.getValue("/root/main/cond/prcprefflag"));
  149. model.makeValue("/root/send/prcpscrhnm", model.getValue("/root/main/cond/prcpscrhnm"));
  150. model.makeValue("/root/send/prcpclscd", model.getValue("/root/main/cond/srchprcpclscd"));
  151. submit("TRMNO02503");
  152. } else {
  153. messageBox("검색어는 2자 이상","C001");
  154. model.setFocus("ipt_prcpscrhnm");
  155. return;
  156. }
  157. }
  158. function fSavePrcpInfo(){
  159. var SavePrcpInfoHeader = "baseflag▦ordtype▦orddeptcd▦calcscorcd▦instcd▦applstage▦precureprcpflag▦prcpexecdeptcd▦rem▩";
  160. var SavePrcpInfoData = "";
  161. for (var i = 1; i <= getNodesetCount("/root/main/prcprefinfo/prcpreflist"); i++) {
  162. if (model.getValue("/root/main/prcprefinfo/prcpreflist[" + i + "]/checks") == "true") {
  163. SavePrcpInfoData += "B"
  164. + "▦" + model.getValue("/root/main/prcprefinfo/prcpreflist["+i+"]/ordtype")
  165. + "▦" + model.getValue("/root/main/prcprefinfo/prcpreflist["+i+"]/deptcd")
  166. + "▦" + model.getValue("/root/main/prcprefinfo/prcpreflist["+i+"]/prcpcd")
  167. + "▦" + model.getValue("/root/main/prcprefinfo/prcpreflist["+i+"]/instcd")
  168. + "▦" + "A"
  169. + "▦" + model.getValue("/root/main/prcprefinfo/prcpreflist["+i+"]/precureprcpflag")
  170. + "▦" + model.getValue("/root/main/prcprefinfo/prcpreflist["+i+"]/prcpexecdeptcd")
  171. + "▦" + ""
  172. + "▩";
  173. }
  174. }
  175. if (SavePrcpInfoData == "") {
  176. messageBox("선택한 처방이 없습니다.", "I");
  177. } else {
  178. model.removenode("/root/send");
  179. model.makeValue("/root/send/prcpinfo", SavePrcpInfoHeader + SavePrcpInfoData );
  180. if(submit("TXMNO02501", false)) {
  181. messageBox("선택한 처방이 저장 되었습니다.", "I");
  182. fSrchPrcpInfo();
  183. }
  184. }
  185. }
  186. function fDelPrcpInfo(){
  187. var SavePrcpInfoHeader = "baseflag▦ordtype▦orddeptcd▦calcscorcd▦instcd▩";
  188. var SavePrcpInfoData = "";
  189. for (var i = 1; i <= getNodesetCount("/root/main/actprcpinfo/actprcplist"); i++) {
  190. if (model.getValue("/root/main/actprcpinfo/actprcplist[" + i + "]/checks") == "true") {
  191. SavePrcpInfoData += "B"
  192. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/ordtype")
  193. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/deptcd")
  194. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/prcpcd")
  195. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/instcd")
  196. + "▩";
  197. }
  198. }
  199. if (SavePrcpInfoData == "") {
  200. messageBox("선택한 처방이 없습니다.", "I");
  201. } else {
  202. model.removenode("/root/send");
  203. model.makeValue("/root/send/prcpinfo", SavePrcpInfoHeader + SavePrcpInfoData );
  204. if(submit("TXMNO02502", false)) {
  205. messageBox("선택한 처방이 삭제 되었습니다.", "I");
  206. fSrchPrcpInfo();
  207. }
  208. }
  209. }
  210. function fUpdtPrcpInfo(){
  211. var SavePrcpInfoHeader = "baseflag▦ordtype▦orddeptcd▦calcscorcd▦instcd▦precureprcpflag▦prcpexecdeptcd▩";
  212. var SavePrcpInfoData = "";
  213. for (var i = 1; i <= getNodesetCount("/root/main/actprcpinfo/actprcplist"); i++) {
  214. if (grd_comprcplist.rowStatus(i) == 2 ) {
  215. SavePrcpInfoData += "B"
  216. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/ordtype")
  217. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/deptcd")
  218. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/prcpcd")
  219. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/instcd")
  220. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/precureprcpflag")
  221. + "▦" + model.getValue("/root/main/actprcpinfo/actprcplist["+i+"]/prcpexecdeptcd")
  222. + "▦" + ""
  223. + "▩";
  224. }
  225. }
  226. if (SavePrcpInfoData == "") {
  227. messageBox("선택한 처방이 없습니다.", "I");
  228. } else {
  229. model.removenode("/root/send");
  230. model.makeValue("/root/send/prcpinfo", SavePrcpInfoHeader + SavePrcpInfoData );
  231. if(submit("TXMNO02503", false)) {
  232. messageBox("선택한 처방이 수정 되었습니다.", "I");
  233. fSrchPrcpInfo();
  234. }
  235. }
  236. }
  237. ]]>
  238. </script>
  239. <script type="javascript" ev:event="xforms-ready">
  240. <![CDATA[
  241. fInitialize();
  242. ]]>
  243. </script>
  244. <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  245. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  246. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post"/>
  247. <submission id="TRMNO02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/execdeptlist"/>
  248. <submission id="TRMNO02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/actprcpinfo"/>
  249. <submission id="TRMNO02503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcprefinfo"/>
  250. <submission id="TXMNO02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
  251. <submission id="TXMNO02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
  252. <submission id="TXMNO02503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/result"/>
  253. <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  254. </model>
  255. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  256. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  257. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  258. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  259. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  260. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  261. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  262. </xhtml:head>
  263. <xhtml:body pagewidth="1175" pageheight="755" guideline="1,1159;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  264. <group id="group1" style="left:0px; top:0px; width:650px; height:13px; ">
  265. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:300px; height:14px; ">외래선처치/처방시행부서 기준자료관리</caption>
  266. </group>
  267. <group id="group5" scroll="auto" style="left:0px; top:13px; width:1159px; height:742px; ">
  268. <group id="group4" style="left:0px; top:403px; width:660px; height:33px; vertical-align:top; ">
  269. <shape id="roundrect4" appearance="roundrect" style="left:0px; top:1px; width:655px; height:30px; "/>
  270. <line id="line4" class="line_4" style="x1:580px; y1:5px; x2:580px; y2:30px; "/>
  271. <caption id="caption4" class="search_name" style="left:201px; top:7px; width:89px; height:17px; ">검색구분 :</caption>
  272. <input id="ipt_prcpscrhnm" ref="/root/main/cond/prcpscrhnm" class="input_default" navindex="2" imemode="alpha" maxlength="20" style="left:416px; top:7px; width:154px; height:19px; ">
  273. <script type="javascript" ev:event="onkeydown">
  274. <![CDATA[
  275. if(event.keycode == "13"){
  276. model.setFocus("btn_prcpsrch");
  277. // fPrcpListSrch();
  278. }
  279. ]]>
  280. </script>
  281. </input>
  282. <button id="btn_prcpsrch" class="btn1_letter2" navindex="6" style="left:591px; top:5px; width:56px; height:22px; ">
  283. <caption>조회</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. fPrcpListSrch();
  287. ]]>
  288. </script>
  289. </button>
  290. <select1 id="radio1" ref="/root/main/cond/prcprefflag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:288px; top:8px; width:125px; height:15px; border-style:none; ">
  291. <choices>
  292. <item>
  293. <label>처방코드</label>
  294. <value>1</value>
  295. </item>
  296. <item>
  297. <label>처방명</label>
  298. <value>2</value>
  299. </item>
  300. </choices>
  301. </select1>
  302. <caption id="caption5" class="search_name" style="left:6px; top:7px; width:156px; height:17px; ">처방분류 :</caption>
  303. <select1 id="combo3" ref="/root/main/cond/srchprcpclscd" class="combo_search" navindex="4" appearance="minimal" style="left:94px; top:7px; width:92px; height:19px; ">
  304. <choices>
  305. <itemset nodeset="/root/init/prcpclscdlist/M0005">
  306. <label ref="cdnm"/>
  307. <value ref="cdid"/>
  308. </itemset>
  309. </choices>
  310. </select1>
  311. </group>
  312. <caption id="caption42" class="tit_2" style="left:5px; top:49px; width:224px; height:13px; ">외래선처치/처방시행부서 기준자료</caption>
  313. <line id="line18" class="line_1" style="x1:0px; y1:65px; x2:1154px; y2:66px; "/>
  314. <datagrid id="grd_comprcplist" nodeset="/root/main/actprcpinfo/actprcplist" class="datagrid2" caption="선택^진료과^처방분류^처방코드^처방명^선처치^시행부서^(수가)시행부서^등록일^caption2^caption3^caption4^caption1" colsep="^" colwidth="31, 120, 80, 90, 412, 43, 120, 120, 100, 0, 0, 0, 0" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" navindex="10" style="left:0px; top:69px; width:1155px; height:323px; ">
  315. <col ref="checks" type="checkbox"/>
  316. <col ref="deptnm" style="text-align:left; "/>
  317. <col disabled="true" ref="prcpclscd" type="combo">
  318. <choices>
  319. <itemset nodeset="/root/init/prcpclscdlist/M0005">
  320. <label ref="cdnm"/>
  321. <value ref="cdid"/>
  322. </itemset>
  323. </choices>
  324. </col>
  325. <col ref="prcpcd"/>
  326. <col ref="prcpnm"/>
  327. <col ref="precureprcpflag" type="combo" style="text-align:center; ">
  328. <choices>
  329. <item>
  330. <label>Y</label>
  331. <value>Y</value>
  332. </item>
  333. <item>
  334. <label>N</label>
  335. <value>N</value>
  336. </item>
  337. </choices>
  338. </col>
  339. <col ref="prcpexecdeptcd" type="combo">
  340. <choices>
  341. <itemset nodeset="/root/init/execdeptlist/dept">
  342. <label ref="depthngnm"/>
  343. <value ref="deptcd"/>
  344. </itemset>
  345. </choices>
  346. </col>
  347. <col ref="acptdeptnm"/>
  348. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  349. <col ref="instcd"/>
  350. <col ref="baseflag"/>
  351. <col ref="ordtype"/>
  352. <col ref="deptcd"/>
  353. <script type="javascript" ev:event="onclick">
  354. <![CDATA[
  355. if( grd_comprcplist.col != 0 && isDataCell()) {
  356. if( grd_comprcplist.col != 1) {
  357. var check = model.getValue("/root/main/actprcpinfo/actprcplist["+grd_comprcplist.selectedRow(0)+"]/checks");
  358. if (check == "true") {
  359. model.setValue("/root/main/actprcpinfo/actprcplist["+grd_comprcplist.selectedRow(0)+"]/checks","false");
  360. } else {
  361. model.setValue("/root/main/actprcpinfo/actprcplist["+grd_comprcplist.selectedRow(0)+"]/checks","true");
  362. }
  363. }
  364. }
  365. ]]>
  366. </script>
  367. <script type="javascript" ev:event="onaftersort">
  368. <![CDATA[
  369. grd_comprcplist.gridToInstance();
  370. ]]>
  371. </script>
  372. </datagrid>
  373. <button id="button2" class="btn5_letter2" navindex="8" style="left:1069px; top:43px; width:42px; height:19px; ">
  374. <caption>수정</caption>
  375. <script type="javascript" ev:event="DOMActivate">
  376. <![CDATA[
  377. fUpdtPrcpInfo();
  378. ]]>
  379. </script>
  380. </button>
  381. <button id="button1" class="btn2_letter4" navindex="3" style="left:1003px; top:43px; width:64px; height:19px; ">
  382. <caption>엑셀저장</caption>
  383. <script type="javascript" ev:event="DOMActivate">
  384. <![CDATA[
  385. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  386. if (fileName != "") {
  387. grd_comprcplist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  388. }
  389. ]]>
  390. </script>
  391. </button>
  392. <button id="button7" class="btn2_letter3" navindex="3" style="left:1057px; top:434px; width:53px; height:19px; ">
  393. <caption>초기화</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. model.setValue("/root/main/cond/srchprcpclscd", "ALL");
  397. model.setValue("/root/main/cond/prcprefflag","1");
  398. model.setValue("/root/main/cond/prcpscrhnm", "");
  399. model.removeNodeset("/root/main/prcprefinfo/prcpreflist");
  400. model.refresh();
  401. ]]>
  402. </script>
  403. </button>
  404. <button id="button8" class="btn5_letter2" navindex="8" style="left:1112px; top:434px; width:42px; height:19px; ">
  405. <caption>등록</caption>
  406. <script type="javascript" ev:event="DOMActivate">
  407. <![CDATA[
  408. fSavePrcpInfo();
  409. ]]>
  410. </script>
  411. </button>
  412. <caption id="caption8" class="tit_2" style="left:5px; top:440px; width:276px; height:14px; ">처방조회내역</caption>
  413. <line id="line2" class="line_1" style="x1:0px; y1:455px; x2:1154px; y2:455px; "/>
  414. <datagrid id="grd_prcpreflist" nodeset="/root/main/prcprefinfo/prcpreflist" class="datagrid2" caption="선택^진료과^처방분류^처방코드^처방명^선처치^시행부서^(수가)시행부서^등록일^deptcd^instcd^ordtype^caption2^caption3^caption4^caption1" colsep="^" colwidth="31, 120, 80, 90, 412, 43, 120, 120, 100, 100, 100, 100, 0, 0, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" navindex="10" style="left:0px; top:460px; width:1155px; height:276px; ">
  415. <col ref="checks" type="checkbox"/>
  416. <col ref="deptnm" style="text-align:left; "/>
  417. <col disabled="true" ref="prcpclscd" type="combo">
  418. <choices>
  419. <itemset nodeset="/root/init/prcpclscdlist/M0005">
  420. <label ref="cdnm"/>
  421. <value ref="cdid"/>
  422. </itemset>
  423. </choices>
  424. </col>
  425. <col ref="prcpcd"/>
  426. <col ref="prcpnm"/>
  427. <col ref="precureprcpflag" type="combo" style="text-align:center; ">
  428. <choices>
  429. <item>
  430. <label>Y</label>
  431. <value>Y</value>
  432. </item>
  433. <item>
  434. <label>N</label>
  435. <value>N</value>
  436. </item>
  437. </choices>
  438. </col>
  439. <col ref="prcpexecdeptcd" type="combo">
  440. <choices>
  441. <itemset nodeset="/root/init/execdeptlist/dept">
  442. <label ref="depthngnm"/>
  443. <value ref="deptcd"/>
  444. </itemset>
  445. </choices>
  446. </col>
  447. <col ref="acptdeptnm"/>
  448. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  449. <col ref="deptcd"/>
  450. <col ref="instcd"/>
  451. <col ref="ordtype"/>
  452. <col ref="deptcd"/>
  453. <col ref="instcd"/>
  454. <col ref="ordtype"/>
  455. <script type="javascript" ev:event="onclick">
  456. <![CDATA[
  457. if( grd_prcpreflist.col != 0 && isDataCell()) {
  458. if( grd_prcpreflist.col != 1) {
  459. var check = model.getValue("/root/main/prcprefinfo/prcpreflist["+grd_prcpreflist.selectedRow(0)+"]/checks");
  460. if (check == "true") {
  461. model.setValue("/root/main/prcprefinfo/prcpreflist["+grd_prcpreflist.selectedRow(0)+"]/checks","false");
  462. } else {
  463. model.setValue("/root/main/prcprefinfo/prcpreflist["+grd_prcpreflist.selectedRow(0)+"]/checks","true");
  464. }
  465. }
  466. }
  467. ]]>
  468. </script>
  469. </datagrid>
  470. <button id="button104" class="icon_top" style="left:681px; top:410px; width:26px; height:19px; ">
  471. <caption/>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. ]]>
  475. </script>
  476. </button>
  477. <group id="group3" style="left:0px; top:10px; width:1155px; height:31px; vertical-align:top; ">
  478. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:1155px; height:30px; "/>
  479. <line id="line3" class="line_4" style="x1:1080px; y1:3px; x2:1080px; y2:27px; "/>
  480. <caption id="caption2" class="search_name" style="left:6px; top:7px; width:156px; height:17px; ">진 료 과 :</caption>
  481. <select1 id="cmb_deptlist" ref="/root/main/cond/deptcd" class="combo_search" navindex="4" appearance="minimal" editmode="search" style="left:92px; top:5px; width:178px; height:19px; ">
  482. <choices>
  483. <itemset nodeset="/root/init/deptlist/dept">
  484. <label ref="depthngnm"/>
  485. <value ref="deptcd"/>
  486. </itemset>
  487. </choices>
  488. <script type="javascript" ev:event="xforms-value-changed">
  489. <![CDATA[
  490. //
  491. var sordclsdeptflag = model.getValue("/root/init/deptlist/dept[deptcd = '"+model.getValue("/root/main/cond/deptcd")+"']/ordclsdeptflag"); // 센터/대표/분과/서브 구분
  492. var ssupdeptcd = model.getValue("/root/init/deptlist/dept[deptcd = '"+model.getValue("/root/main/cond/deptcd")+"']/supdeptcd"); // 상위부서코드
  493. model.setValue("/root/main/cond/ordclsdeptflag",sordclsdeptflag);
  494. model.setValue("/root/main/cond/supdeptcd",ssupdeptcd);
  495. model.setValue("/root/main/cond/deptnm", cmb_deptlist.label);
  496. fSrchPrcpInfo();
  497. var deptcd = cmb_deptlist.value;
  498. var deptnm = cmb_deptlist.label;
  499. for (var i = 1; i <= getNodesetCount("/root/main/prcprefinfo/prcpreflist"); i++) {
  500. model.setValue("/root/main/prcprefinfo/prcpreflist["+ i +"]/deptcd", deptcd);
  501. model.setValue("/root/main/prcprefinfo/prcpreflist["+ i +"]/deptnm", deptnm);
  502. model.setValue("/root/main/prcprefinfo/prcpreflist["+ i +"]/prcpexecdeptcd", deptcd);
  503. }
  504. ]]>
  505. </script>
  506. </select1>
  507. <caption id="caption3" class="search_name" style="left:540px; top:7px; width:115px; height:17px; ">선처치 여부 :</caption>
  508. <button id="button5" class="btn1_letter2" navindex="6" style="left:1090px; top:5px; width:56px; height:22px; ">
  509. <caption>조회</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. fSrchPrcpInfo();
  513. ]]>
  514. </script>
  515. </button>
  516. <select1 id="radio4" ref="/root/main/cond/precureflag" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:650px; top:7px; width:125px; height:15px; border-style:none; ">
  517. <choices>
  518. <item>
  519. <label>전체</label>
  520. <value>1</value>
  521. </item>
  522. <item>
  523. <label>Y</label>
  524. <value>2</value>
  525. </item>
  526. <item>
  527. <label>N</label>
  528. <value>3</value>
  529. </item>
  530. </choices>
  531. <script type="javascript" ev:event="xforms-value-changed">
  532. <![CDATA[
  533. fSrchPrcpInfo();
  534. ]]>
  535. </script>
  536. </select1>
  537. <caption id="caption1" class="search_name" style="left:311px; top:7px; width:156px; height:17px; ">처방분류 :</caption>
  538. <select1 id="combo1" ref="/root/main/cond/prcpclscd" class="combo_search" navindex="4" appearance="minimal" style="left:399px; top:5px; width:92px; height:19px; ">
  539. <choices>
  540. <itemset nodeset="/root/init/prcpclscdlist/M0005">
  541. <label ref="cdnm"/>
  542. <value ref="cdid"/>
  543. </itemset>
  544. </choices>
  545. <script type="javascript" ev:event="xforms-value-changed">
  546. <![CDATA[
  547. fSrchPrcpInfo();
  548. ]]>
  549. </script>
  550. </select1>
  551. </group>
  552. <button id="button3" class="btn5_letter2" navindex="8" style="left:1113px; top:43px; width:42px; height:19px; ">
  553. <caption>삭제</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. fDelPrcpInfo();
  557. ]]>
  558. </script>
  559. </button>
  560. <button id="btn_srchexecdept" class="icon_search" style="left:884px; top:463px; width:16px; height:16px; ">
  561. <caption/>
  562. <script type="javascript" ev:event="DOMActivate">
  563. <![CDATA[
  564. model.setValue("/root/main/prcp/prcplist/prcpexecdeptcd","");
  565. var xpos = event.screenX-200;
  566. var ypos = event.screenY-130;
  567. modal("SPMMB02500", 1, xpos, ypos);
  568. if(model.getValue("/root/main/prcp/prcplist/prcpexecdeptcd") != "" ) {
  569. var prcpexecdeptcd = model.getValue("/root/main/prcp/prcplist/prcpexecdeptcd");
  570. for (var i = 1; i <= getNodesetCount("/root/main/prcprefinfo/prcpreflist"); i++) {
  571. model.setValue("/root/main/prcprefinfo/prcpreflist["+ i +"]/prcpexecdeptcd", prcpexecdeptcd);
  572. }
  573. }
  574. ]]>
  575. </script>
  576. </button>
  577. <button id="button4" class="icon_search" style="left:884px; top:72px; width:16px; height:16px; ">
  578. <caption/>
  579. <script type="javascript" ev:event="DOMActivate">
  580. <![CDATA[
  581. model.setValue("/root/main/prcp/prcplist/prcpexecdeptcd","");
  582. var xpos = event.screenX-200;
  583. var ypos = event.screenY-30;
  584. modal("SPMMB02500", 1, xpos, ypos);
  585. if(model.getValue("/root/main/prcp/prcplist/prcpexecdeptcd") != "" ) {
  586. var prcpexecdeptcd = model.getValue("/root/main/prcp/prcplist/prcpexecdeptcd");
  587. for (var i = 1; i <= getNodesetCount("/root/main/actprcpinfo/actprcplist"); i++) {
  588. model.setValue("/root/main/actprcpinfo/actprcplist["+ i +"]/prcpexecdeptcd", prcpexecdeptcd);
  589. grd_comprcplist.rowStatus(i) = 2;
  590. }
  591. }
  592. ]]>
  593. </script>
  594. </button>
  595. </group>
  596. </xhtml:body>
  597. </xhtml:html>