SMMNB02300_간호처방명.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMMNB02300_간호처방명.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. <picmmech>
  17. <picmmech_hidden/>
  18. <picmmech_calcgrupcd/>
  19. <picmmech_agepay/>
  20. <picmmech_calcscorcd/>
  21. <picmmech_insuedicd/>
  22. <picmmech_oldordcd/>
  23. <picmmech_engnm/>
  24. <picmmech_hngnm/>
  25. <picmmech_pynpy1/>
  26. <picmmech_rbpnt/>
  27. <picmmech_unitcost/>
  28. <picmmech_specrate/>
  29. <picmmech_gnrlunitcost/>
  30. <picmmech_forgnunitcost/>
  31. <picmmech_mouunitcost/>
  32. <picmmech_ordnm/>
  33. <picmmech_qty/>
  34. <picmmech_estmmncd/>
  35. <picmmech_fromdd/>
  36. <picmmech_todd/>
  37. <picmmech_lastupdtdt/>
  38. <picmmech_lastupdtrid/>
  39. <picmmech_temp_insupynpy1/>
  40. <picmmech_temp_insuunitcost/>
  41. <picmmech_temp_specrate/>
  42. <picmmech_temp_instcd/>
  43. <picmmech_temp_grupsnglflag/>
  44. <picmmech_nurordnm/>
  45. </picmmech>
  46. </main>
  47. <send>
  48. <con1_dd/>
  49. <con2_gsflag/>
  50. <con3_search1/>
  51. <con4_search2/>
  52. <con5_insu/>
  53. <con6_calcscorcd/>
  54. <con7_todd/>
  55. <con8_instcd/>
  56. <con9_lastupdtdt/>
  57. <mechinfo/>
  58. </send>
  59. <init>
  60. <P0143list>
  61. <P0143>
  62. <cdnm/>
  63. <cdid/>
  64. </P0143>
  65. </P0143list>
  66. <P0104list>
  67. <P0104>
  68. <cdnm/>
  69. <cdid/>
  70. </P0104>
  71. </P0104list>
  72. </init>
  73. <temp>
  74. <mechinfo/>
  75. </temp>
  76. <hidden>
  77. </hidden>
  78. </root>
  79. </instance>
  80. <submission id="TRMNB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
  81. <submission id="TXMNB02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/mechinfo" resultref="/root/temp/mechinfo"/>
  82. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  83. </model>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  89. </xhtml:head>
  90. <script type="javascript" ev:event="xforms-ready">
  91. <![CDATA[
  92. zbcfGetCodeList(
  93. new Array(
  94. "P0143",
  95. "P0104"
  96. ),
  97. new Array(
  98. "/root/init/P0143list",
  99. "/root/init/P0104list"
  100. )
  101. );
  102. fclear(); //초기화
  103. fOpenCheck(); //수가조회팝업을 연 프로그램이 무엇인지 파악하고 그에 따른 셋팅을 합니다.
  104. fOpenCheck2();
  105. fGetUserInfo();
  106. model.setValue("/root/send/con1_dd", getCurrentDate()); //시작일자
  107. model.refresh();
  108. ]]>
  109. </script>
  110. <script type="javascript">
  111. <![CDATA[
  112. function fclear() {
  113. //model.setValue("/root/send/con1_dd", getCurrentDate());
  114. model.setValue("/root/send/con2_gsflag", "");
  115. model.setValue("/root/send/con3_search1", "calcscorcd");
  116. model.setValue("/root/send/con4_search2", "");
  117. model.setValue("/root/send/con5_insu", "insu");
  118. model.resetInstanceNode("/root/main/picmmech");
  119. model.setValue("/root/send/con9_lastupdtdt", getCurrentDate());
  120. input26.visible = true;
  121. input1.visible = false; //최종수정일검색자
  122. model.removeNodeset("/root/main/picmmech");
  123. grd_mech.refresh();
  124. fcombo3();
  125. model.refresh();
  126. }
  127. function fcombo3() {
  128. if(model.getValue("/root/send/con5_insu") == "insu" ) {
  129. grd_mech.valuematrix(0, 10) = "보험";
  130. grd_mech.valuematrix(0, 11) = "보험";
  131. grd_mech.valuematrix(0, 12) = "보험";
  132. grd_mech.valuematrix(0, 13) = "보험";
  133. }
  134. if(model.getValue("/root/send/con5_insu") == "proc" ) {
  135. grd_mech.valuematrix(0, 10) = "의료급여";
  136. grd_mech.valuematrix(0, 11) = "의료급여";
  137. grd_mech.valuematrix(0, 12) = "의료급여";
  138. grd_mech.valuematrix(0, 13) = "의료급여";
  139. }
  140. if(model.getValue("/root/send/con5_insu") == "indus" ) {
  141. grd_mech.valuematrix(0, 10) = "산재";
  142. grd_mech.valuematrix(0, 11) = "산재";
  143. grd_mech.valuematrix(0, 12) = "산재";
  144. grd_mech.valuematrix(0, 13) = "산재";
  145. }
  146. if(model.getValue("/root/send/con5_insu") == "autm" ) {
  147. grd_mech.valuematrix(0, 10) = "자보";
  148. grd_mech.valuematrix(0, 11) = "자보";
  149. grd_mech.valuematrix(0, 12) = "자보";
  150. grd_mech.valuematrix(0, 13) = "자보";
  151. }
  152. }
  153. //수가조회팝업을 연 프로그램이 무엇인지 파악하고 그에 따른 셋팅을 합니다.
  154. function fOpenCheck() {
  155. if(model.getvalue("/root/temp") =="" ) { //부모가 호출할때 temp에 수가코드를 넣고 호출합니다.
  156. fMotherViewCheck(); //부모가 있을경우 체크
  157. model.refresh();
  158. }else{
  159. model.setvalue("/root/send/con4_search2", model.getvalue("/root/temp"));
  160. fJoHoi();
  161. }
  162. }
  163. //수가조회팝업을 연 프로그램이 무엇인지 파악하고 그에 따른 셋팅을 합니다. 주미씨용~
  164. function fOpenCheck2() {
  165. // if(model.getvalue("/root/temp/con4_search2") =="") {
  166. if(model.getvalue("/root/temp/judgsrch/con4_search2") =="") {
  167. }else{
  168. // model.copyNode("/root/send", model.getvalue("/root/temp/judgsrch"));
  169. model.copyNode("/root/send", "/root/temp/judgsrch");
  170. fJoHoi();
  171. }
  172. }
  173. //부모창이 무엇인지 체크
  174. function fMotherViewCheck() {
  175. //싱글포함그룹수가관리일 경우 그룹만 조회 가능토록!
  176. if(model.getAttribute("iParam_mother_view") == "SMPIC00400_싱글포함그룹수가관리") {
  177. model.setvalue("/root/send/con2_gsflag", model.getAttribute("iParam_picmmech_temp_grupsnglflag"));
  178. combo1.disabled= true;
  179. }
  180. //그룹수가관리일 경우 싱글만 조회 가능토록!
  181. if(model.getAttribute("iParam_mother_view") == "SMPIC00300_그룹수가관리") {
  182. model.setvalue("/root/send/con2_gsflag", model.getAttribute("iParam_picmmech_temp_grupsnglflag"));
  183. combo1.disabled= true;
  184. }
  185. }
  186. //조회
  187. function fJoHoi() {
  188. submit("TRMNB02301");
  189. setTree(grd_mech, 0, 0, true);
  190. model.refresh();
  191. }
  192. /*
  193. model.getValue(); 를 함수로 만들었습니다.
  194. param1 : node는 grid의 xPath입니다.
  195. param2 : row는 grid에서 선택한 row값입니다.
  196. param3 : element는 getvalue할 해당 element 명입니다.
  197. 해당 getvalue값을 return 해줍니다.
  198. return 하지 않으면 해당값을 가져올 수 없습니다.
  199. */
  200. function fGetValue(node, row, element) {
  201. var rtnValue = model.getValue(node + "[" + row + "]/" + element);
  202. return rtnValue;
  203. }
  204. //로그인한 사용자 정보조회
  205. function fGetUserInfo(){
  206. var sUserInfosS = getUserInfos();
  207. sUserInfosS = sUserInfosS + "|";
  208. //alert("sUserInfosS : " + sUserInfosS);
  209. var UserInfosS_Array = sUserInfosS.split("|");
  210. var userid = UserInfosS_Array[0]; //사용자번호
  211. var usernm = UserInfosS_Array[1]; //사용자이름
  212. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  213. var posinstnm = UserInfosS_Array[3]; //소속기관명
  214. model.makeNode("/root/hidden/session/" + "userid");
  215. model.makeNode("/root/hidden/session/" + "usernm");
  216. model.makeNode("/root/hidden/session/" + "posinstcd");
  217. model.makeNode("/root/hidden/session/" + "posinstnm");
  218. model.setValue("/root/hidden/session/userid",userid);
  219. model.setValue("/root/hidden/session/usernm",usernm);
  220. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  221. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  222. model.refresh();
  223. }
  224. function checkGridUpdate(grid)
  225. {
  226. var uData = grid.getUpdateDataXml("update");
  227. //alert(grid.getUpdateData());
  228. if (uData=="") return false;
  229. else return true;
  230. }
  231. ]]>
  232. </script>
  233. <xhtml:body overflow="hidden" pagewidth="1033" pageheight="525" style="margin:8; ">
  234. <group id="group1" style="left:0px; top:0px; width:1016px; height:13px; ">
  235. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:80px; height:14px; ">간호처방명</caption>
  236. </group>
  237. <group id="group2" style="left:0px; top:18px; width:1016px; height:35px; vertical-align:top; ">
  238. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1015px; height:35px; "/>
  239. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기준일자 :</caption>
  240. <button id="btn_search" class="btn1_letter2" style="left:945px; top:7px; width:56px; height:22px; ">
  241. <caption>조회</caption>
  242. <script type="javascript" ev:event="DOMActivate">
  243. <![CDATA[
  244. if( model.getvalue("/root/send/con4_search2") == "" &&
  245. model.getvalue("/root/send/con9_lastupdtdt") == "" ) {
  246. model.alert("조회할 값을 넣어주십시요.");
  247. return;
  248. }
  249. fJoHoi();
  250. ]]>
  251. </script>
  252. </button>
  253. <line id="line13" class="line_4" style="x1:875px; y1:7px; x2:875px; y2:29px; "/>
  254. <select1 id="combo1" ref="/root/send/con2_gsflag" class="combo_search" appearance="minimal" style="left:206px; top:8px; width:80px; height:19px; ">
  255. <choices>
  256. <item>
  257. <label>전체</label>
  258. <value/>
  259. </item>
  260. <item>
  261. <label>싱글</label>
  262. <value>S</value>
  263. </item>
  264. <item>
  265. <label>그룹</label>
  266. <value>G</value>
  267. </item>
  268. </choices>
  269. </select1>
  270. <input id="input3" ref="/root/send/con1_dd" class="input_search" inputtype="date" style="left:103px; top:8px; width:100px; height:19px; "/>
  271. <input id="input26" ref="/root/send/con4_search2" class="input_search" style="left:383px; top:8px; width:360px; height:19px; ">
  272. <script type="javascript" ev:event="onkeyup">
  273. <![CDATA[
  274. inputEnterKey("btn_search", "DOMActivate");
  275. ]]>
  276. </script>
  277. </input>
  278. <select1 id="combo2" ref="/root/send/con3_search1" class="combo_search" appearance="minimal" style="left:289px; top:8px; width:91px; height:19px; ">
  279. <choices>
  280. <item>
  281. <label>수가코드</label>
  282. <value>calcscorcd</value>
  283. </item>
  284. <item>
  285. <label>처방명</label>
  286. <value>ordnm</value>
  287. </item>
  288. <item>
  289. <label>한글명</label>
  290. <value>hngnm</value>
  291. </item>
  292. <item>
  293. <label>영문명</label>
  294. <value>engnm</value>
  295. </item>
  296. <item>
  297. <label>보험분류</label>
  298. <value>insu</value>
  299. </item>
  300. <item>
  301. <label>EDI코드</label>
  302. <value>edicd</value>
  303. </item>
  304. <item>
  305. <label>구처방코드</label>
  306. <value>oldordcd</value>
  307. </item>
  308. <item>
  309. <label>수정일검색</label>
  310. <value>lastupdtdt</value>
  311. </item>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-select">
  314. <![CDATA[
  315. if(model.getvalue("/root/send/con3_search1") == "calcscorcd"){
  316. input26.attribute("imemode") ="alpha";
  317. }
  318. if(model.getvalue("/root/send/con3_search1") == "ordnm"){
  319. input26.attribute("imemode") ="hangul";
  320. }
  321. if(model.getvalue("/root/send/con3_search1") == "hngnm"){
  322. input26.attribute("imemode") ="hangul";
  323. }
  324. if(model.getvalue("/root/send/con3_search1") == "engnm"){
  325. input26.attribute("imemode") ="alpha";
  326. }
  327. if(model.getvalue("/root/send/con3_search1") == "insu"){
  328. input26.attribute("imemode") ="alpha";
  329. }
  330. if(model.getvalue("/root/send/con3_search1") == "edicd"){
  331. input26.attribute("imemode") ="alpha";
  332. }
  333. if(model.getvalue("/root/send/con3_search1") == "oldordcd"){
  334. input26.attribute("imemode") ="alpha";
  335. }
  336. if(model.getvalue("/root/send/con3_search1") == "lastupdtdt"){
  337. input26.visible = false;
  338. input1.visible = true;
  339. input1.attribute("left") = "383px";
  340. }else{
  341. input26.visible = true;
  342. input1.visible = false;
  343. }
  344. ]]>
  345. </script>
  346. </select1>
  347. <select1 id="combo3" ref="/root/send/con5_insu" class="combo_search" appearance="minimal" style="left:747px; top:8px; width:80px; height:19px; ">
  348. <choices>
  349. <item>
  350. <label>보험</label>
  351. <value>insu</value>
  352. </item>
  353. <item>
  354. <label>의료급여</label>
  355. <value>proc</value>
  356. </item>
  357. <item>
  358. <label>산재</label>
  359. <value>indus</value>
  360. </item>
  361. <item>
  362. <label>자보</label>
  363. <value>autm</value>
  364. </item>
  365. </choices>
  366. <script type="javascript" ev:event="xforms-select">
  367. <![CDATA[
  368. fcombo3();
  369. ]]>
  370. </script>
  371. </select1>
  372. <input id="input1" ref="/root/send/con9_lastupdtdt" class="input_search" visibility="hidden" inputtype="date" style="left:759px; top:8px; width:100px; height:19px; "/>
  373. </group>
  374. <caption id="caption1" class="tit_2" style="left:5px; top:60px; width:69px; height:13px; ">수가목록</caption>
  375. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1015px; y2:75px; "/>
  376. <datagrid id="grd_mech" nodeset="/root/main/picmmech" class="datagrid2" caption="±^그룹코드^수가코드^간호처방명^영문명^한글명^적용일자^종료일자^처방명^최종수정일^최종수정자^기관기호" colsep="^" colwidth="22, 0, 76, 318, 179, 205, 70, 70, 178, 80, 70, 0" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:0px; top:80px; width:1015px; height:420px; margin-right:18; margin-bottom:32; ">
  377. <col ref="picmmech_hidden"/>
  378. <col ref="picmmech_calcgrupcd"/>
  379. <col ref="picmmech_calcscorcd" style="text-align:left; "/>
  380. <col ref="picmmech_nurordnm" type="input" style="text-align:left; "/>
  381. <col ref="picmmech_engnm"/>
  382. <col ref="picmmech_hngnm"/>
  383. <col ref="picmmech_fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  384. <col ref="picmmech_todd" format="yyyy-mm-dd" style="text-align:center; "/>
  385. <col ref="picmmech_ordnm"/>
  386. <col ref="picmmech_lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
  387. <col ref="picmmech_lastupdtrid" style="text-align:center; "/>
  388. <col ref="picmmech_temp_instcd"/>
  389. </datagrid>
  390. <script type="javascript" ev:event="onwindowresize">
  391. <![CDATA[
  392. grd_mech.attribute("width") = parseInt(body.attribute("width")) ;
  393. grd_mech.attribute("height") = parseInt(body.attribute("height")) - 90;
  394. btn_cancel.attribute("left") = parseInt(body.attribute("width")) -73;
  395. btn_cancel.attribute("top") = parseInt(body.attribute("height")) - 37;
  396. button1.attribute("left") = parseInt(body.attribute("width")) -143;
  397. button1.attribute("top") = parseInt(body.attribute("height")) - 37;
  398. btn_save.attribute("left") = parseInt(body.attribute("width")) -201;
  399. btn_save.attribute("top") = parseInt(body.attribute("height")) - 37;
  400. model.refresh();
  401. ]]>
  402. </script>
  403. <button id="btn_cancel" class="btn4_letter2" style="left:889px; top:502px; width:56px; height:22px; ">
  404. <caption>닫기</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. //부모창이 수가관리일 경우에만 해당!
  408. if(checkOpener()) {
  409. window.close();
  410. }
  411. ]]>
  412. </script>
  413. </button>
  414. <button id="button1" class="btn4_letter3" style="left:948px; top:502px; width:68px; height:22px; ">
  415. <caption>초기화</caption>
  416. <script type="javascript" ev:event="DOMActivate">
  417. <![CDATA[
  418. fclear();
  419. ]]>
  420. </script>
  421. </button>
  422. <button id="btn_save" class="btn4_letter2" style="left:829px; top:502px; width:56px; height:22px; ">
  423. <caption>저장</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. if(!checkGridUpdate(grd_mech)) {
  427. messageBox("변경 대상이 ", "I004")
  428. return;
  429. }
  430. var updatedata = grd_mech.getUpdateData("update");
  431. //alert(updatedata);
  432. var sRtnMsg = messageBox("간호처방명 수정을 ", "Q003");
  433. if(sRtnMsg != 6) return;
  434. model.makeValue("/root/send/mechinfo",updatedata);
  435. if(submit("TXMNB02301")){
  436. model.removenode("/root/send/mechinfo");
  437. //fJoHoi();
  438. grd_mech.clearStatus();
  439. }
  440. ]]>
  441. </script>
  442. </button>
  443. </xhtml:body>
  444. </xhtml:html>