SMRFR02700_장비수익성분석.xrw 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>장비수익성분석</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grid>
  11. <rfcmfacdlist/>
  12. <rsihopeqlist/>
  13. <rfcmeqgdlist/>
  14. <prcpexecusecntlist/>
  15. </grid>
  16. </main>
  17. <send>
  18. <instcd/>
  19. <fromdd/>
  20. <todd/>
  21. <fixasetcd/>
  22. <goodflaghngnm/>
  23. <goodflag>EQ</goodflag>
  24. <grid>
  25. <rfcmfacdlist_row/>
  26. </grid>
  27. <prcpdeptcd/>
  28. <prcpdeptnm/>
  29. </send>
  30. <init/>
  31. <temp/>
  32. </root>
  33. </instance>
  34. <submission id="TRRFR02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfcmfacdlist"/>
  35. <submission id="TRRFR02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfcmfacdlist_row" resultref="/root/main/grid/rsihopeqlist"/>
  36. <submission id="TRRFR02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfcmfacdlist_row" resultref="/root/main/grid/rfcmeqgdlist"/>
  37. <bind id="금액계산" ref="/root/main/grid/rfcmeqgdlist/amt" calculate="../goodunitcost * ../qty" type="xsd:int"/>
  38. <submission id="TXRFR02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfcmeqgdlist" resultref="/root/temp"/>
  39. <submission id="TRRFR02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfcmfacdlist_row" resultref="/root/main/grid/prcpexecusecntlist"/>
  40. </model>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. fInitialize();
  44. ]]>
  45. </script>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript">
  53. <![CDATA[
  54. function fInitialize()
  55. {
  56. //초기화
  57. misfGridInit(grd_rfcmfacdlist);
  58. misfGridInit(grd_rsihopeqlist);
  59. misfGridInit(grd_rfcmeqgdlist);
  60. misfGridInit(grd_prcpexecusecntlist);
  61. // 기관코드
  62. misfComboComCdList("Z0007", cmb_instcd);
  63. // 현재 날짜 기본 입력(6개월 간격 설정)
  64. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  65. model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
  66. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  67. // 청구승인이 된것만 조회하기 위한 구분자 값.
  68. misfMsterDetailSet(grd_rfcmfacdlist, null, "TRRFR02701", "N");
  69. misfMsterDetailSet(grd_rsihopeqlist, null, "TRRFR02702", "N");
  70. misfMsterDetailSet(grd_prcpexecusecntlist, null, "TRRFR02704", "N");
  71. misfMsterDetailSet(grd_rfcmeqgdlist, null, "TRRFR02703", "Y");
  72. // 기본 사용자 설정값
  73. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  74. model.setValue("/root/send/goodflag", "EQ");
  75. model.refresh();
  76. }
  77. function fSettingGoodList(pnode, nodename){
  78. var codynode = instance1.selectNodes(pnode + "/*");
  79. var addRow = grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows;
  80. if(model.getValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
  81. for (var j = 1; j <= codynode.length ; j++) {
  82. if((grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows == 0) ||
  83. (addRow > grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows))
  84. {
  85. misfGridIUD(grd_rfcmeqgdlist,"A");
  86. addRow = grd_rfcmeqgdlist.rows - grd_rfcmeqgdlist.fixedRows;
  87. fDefaultSetting(addRow );
  88. }
  89. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  90. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  91. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
  92. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/qty" , 1);
  93. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/goodunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  94. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + addRow + "]/amt" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  95. addRow = addRow + 1;
  96. }
  97. model.refresh();
  98. }
  99. function fDefaultSetting(prow)
  100. {
  101. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow+ "]/instcd" , cmb_instcd.value);
  102. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow+ "]/fixasetcd" , grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd")) );
  103. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow + "]/fromdd" , getCurrentDate());
  104. model.setValue(grd_rfcmeqgdlist.nodeset +"[" + prow + "]/todd" , '99991231');
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  110. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">장비수익성분석</caption>
  112. </group>
  113. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  114. <group id="group2" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  115. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  116. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:106px; top:8px; width:209px; height:19px; text-align:center; ">
  117. <choices>
  118. <itemset>
  119. <label/>
  120. <value/>
  121. </itemset>
  122. </choices>
  123. </select1>
  124. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:97px; height:17px; ">기관코드 :</caption>
  125. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
  126. <caption>조회</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. if(!isRequiredControls("cmb_instcd"))return;
  130. if(!isRequiredControls("ipt_fromdd"))return;
  131. if(!isRequiredControls("ipt_todd"))return;
  132. misfGridInit(grd_rsihopeqlist);
  133. //0722
  134. misfGridInit(grd_prcpexecusecntlist);
  135. misfGridInit(grd_rfcmeqgdlist);
  136. submit("TRRFR02701");
  137. model.refresh();
  138. if(grd_rfcmfacdlist.rows != grd_rfcmfacdlist.fixedRows)
  139. {
  140. grd_rfcmfacdlist.row = grd_rfcmfacdlist.fixedRows;
  141. grd_rfcmfacdlist.select(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd")) = true;
  142. grd_rfcmfacdlist.dispatch("onrowchanged");
  143. }
  144. ]]>
  145. </script>
  146. </button>
  147. <line id="line1" class="line_4" style="x1:1110px; y1:7; x2:1110px; y2:60; "/>
  148. <caption id="cap_fromdd" class="search_name" style="left:573px; top:9px; width:90px; height:17px; ">처방기간 :</caption>
  149. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:663px; top:8px; width:140px; height:19px; text-align:center; "/>
  150. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:823px; top:8px; width:140px; height:19px; text-align:center; "/>
  151. <caption id="cap_fixasetcd" class="search_name" style="left:15px; top:35px; width:97px; height:17px; ">장비명 :</caption>
  152. <button id="btn_fixasetcd" class="icon_search" style="left:244px; top:36px; width:16px; height:16px; ">
  153. <caption/>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. if(!isRequiredControls("cmb_instcd"))return;
  157. rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm", "SPRSD00240", "instcd", cmb_instcd.value, "Y");
  158. //rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm", "SMRSC03500", "instcd", cmb_instcd.value, "Y");
  159. model.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. <input id="ipt_goodflaghngnm" ref="/root/send/goodflaghngnm" class="input_default" style="left:265px; top:36px; width:235px; height:19px; text-align:center; ">
  164. <script type="javascript" ev:event="xforms-value-changed">
  165. <![CDATA[
  166. if(!isRequiredControls("cmb_instcd"))return;
  167. if(ipt_goodflaghngnm.value != "")
  168. {
  169. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  170. "requirementcd,instcd,requirementnm", "goodflaghngnm," + cmb_instcd.value + "," + ipt_goodflaghngnm.value, "",
  171. "fixasetcd,goodflaghngnm", ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  172. }else{
  173. ipt_fixasetcd.value = "";
  174. }
  175. model.refresh();
  176. ]]>
  177. </script>
  178. </input>
  179. <input id="ipt_fixasetcd" ref="/root/send/fixasetcd" class="input_default" style="left:106px; top:35px; width:134px; height:19px; text-align:center; ">
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. if(!isRequiredControls("cmb_instcd"))return;
  183. if(ipt_fixasetcd.value.length == 0)
  184. ipt_goodflaghngnm.value = "";
  185. else
  186. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  187. "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
  188. "fixasetcd,goodflaghngnm",ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  189. /*if(ipt_fixasetcd.value != "")
  190. {
  191. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  192. "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
  193. "fixasetcd,goodflaghngnm",ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  194. }else{
  195. ipt_goodflaghngnm.value = "";
  196. }
  197. */
  198. model.refresh();
  199. btn_search.dispatch("DOMActivate");
  200. ]]>
  201. </script>
  202. </input>
  203. <caption id="caption8" style="left:806px; top:9px; width:15px; height:20px; ">~</caption>
  204. <caption id="cap_deptcd" class="search_name" style="left:573px; top:40px; width:89px; height:17px; ">처방부서 :</caption>
  205. <input id="ipt_deptnm" ref="/root/send/prcpdeptnm" class="input_search" navindex="6" style="left:792px; top:39px; width:147px; height:19px; text-align:center; ">
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(ipt_deptnm.value == ""){
  209. ipt_deptcd.value = "";
  210. }else {
  211. misfValidationCheck("02", "", "deptcd,deptnm");
  212. }
  213. model.refresh();
  214. ]]>
  215. </script>
  216. </input>
  217. <button id="btn_deptcd" class="icon_search" style="left:773px; top:41px; width:16px; height:16px; ">
  218. <caption/>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. misfOpenPopUpList("02", ipt_deptcd,"","deptcd,deptnm");
  222. model.refresh();
  223. ]]>
  224. </script>
  225. </button>
  226. <input id="ipt_deptcd" ref="/root/send/prcpdeptcd" class="input_search" navindex="6" style="left:663px; top:39px; width:106px; height:19px; text-align:center; ">
  227. <script type="javascript" ev:event="xforms-value-changed">
  228. <![CDATA[
  229. if(ipt_deptcd.value == ""){
  230. ipt_deptnm.value = "";
  231. }else {
  232. misfValidationCheck("02", "", "deptcd,deptnm");
  233. }
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </input>
  238. </group>
  239. <line id="line3" class="line_1" style="x1:0px; y1:108px; x2:1195px; y2:108px; "/>
  240. <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/grid/rfcmfacdlist" caption="장비코드^장비명^모델명^금액^구입일^상위부서^사용부서^등록^기관코드^ fromdd^todd" colsep="^" colwidth="175, 299, 200, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="25" rowsep="|" style="left:0px; top:113px; width:1194px; height:218px; ">
  241. <col ref="fixasetcd" style="text-align:left; "/>
  242. <col ref="goodflaghngnm" style="text-align:left; "/>
  243. <col ref="goodmodel" style="text-align:left; "/>
  244. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  245. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  246. <col ref="cntrdeptnm" style="text-align:left; "/>
  247. <col ref="mngtdeptnm" style="text-align:left; "/>
  248. <col/>
  249. <col ref="instcd" visibility="hidden"/>
  250. <script type="javascript" ev:event="onrowchanged">
  251. <![CDATA[
  252. //0722
  253. // misfGridInit(grd_rsihopeqlist);
  254. // misfGridInit(grd_prcpexecusecntlist);
  255. // misfGridInit(grd_rfcmeqgdlist);
  256. //
  257. grd_rfcmfacdlist.dispatch("onmouseup");
  258. if(grd_rfcmfacdlist.row < grd_rfcmfacdlist.fixedRows) return;
  259. if(!isRequiredControls("ipt_fromdd"))return;
  260. if(!isRequiredControls("ipt_todd"))return;
  261. model.copyNode("/root/send/grid/rfcmfacdlist_row" , grd_rfcmfacdlist.attribute("nodeset") + "[" + grd_rfcmfacdlist.row + "]");
  262. model.setValue("/root/send/grid/rfcmfacdlist_row/instcd", cmb_instcd.value);
  263. model.makeNode("/root/send/grid/rfcmfacdlist_row/fromdd");
  264. model.makeNode("/root/send/grid/rfcmfacdlist_row/todd");
  265. model.setValue("/root/send/grid/rfcmfacdlist_row/fromdd" , ipt_fromdd.value);
  266. model.setValue("/root/send/grid/rfcmfacdlist_row/todd" , ipt_todd.value);
  267. submit("TRRFR02702", false);
  268. //수행코드에 따른 재료 사용건수 및 금액
  269. submit("TRRFR02704", false);
  270. //장비별 처방내역 List
  271. submit("TRRFR02703");
  272. grd_rfcmeqgdlist.colDisabled(grd_rfcmeqgdlist.colRef("goodcd")) = true;
  273. ]]>
  274. </script>
  275. </datagrid>
  276. <button id="button14" class="btn2_letter7" disabled="true" visibility="hidden" style="left:1055px; top:87px; width:97px; height:19px; ">
  277. <caption>처방코드입력</caption>
  278. <script type="javascript" ev:event="onclick">
  279. <![CDATA[
  280. //window.load("ALLSIZE.xrw","modeless", "ALLSIZE.xrw", "width:790px;height:744px;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  281. window.load("SPRFR02701_처방코드입력.xrw","modeless", "SPRFR02701_처방코드입력.xrw", "width:1010px; height:610;min:hidden;max:hidden;align:center", "" ,"");
  282. ]]>
  283. </script>
  284. </button>
  285. <line id="line8" class="line_1" style="x1:0px; y1:593px; x2:1194px; y2:592px; "/>
  286. <datagrid id="grd_rfcmeqgdlist" nodeset="/root/main/grid/rfcmeqgdlist" caption="적용시작일자^적용종료일자^처방코드^물품코드^물품명^규격^단가^수량^금액^기관코드^고정자산코드" colsep="^" colwidth="90, 90, 100, 106, 295, 166, 120, 72, 122, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:596px; width:1195px; height:143px; ">
  287. <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
  288. <col ref="todd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  289. <col ref="prcpcd" type="input" _key="true"/>
  290. <col ref="goodcd" type="inputbutton" _chartype="upper" _key="true"/>
  291. <col ref="goodnm" type="input" _key="true"/>
  292. <col ref="goodspec"/>
  293. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  294. <col ref="qty" type="input" style="text-align:right; "/>
  295. <col ref="amt" format="#,###" style="text-align:right; "/>
  296. <col ref="instcd" visibility="hidden" _key="true"/>
  297. <col ref="fixasetcd" visibility="hidden" _key="true"/>
  298. <script type="javascript" ev:event="xforms-value-changed">
  299. <![CDATA[
  300. if(grd_rfcmeqgdlist.col == grd_rfcmeqgdlist.colRef("goodcd") && grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodcd")).length> 0 ) {//물품코드조회
  301. model.removenode("/root/copynode");
  302. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  303. model.makeNode("/root/copynode");
  304. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd"
  305. ,"goodcd," + cmb_instcd.value + ",Y," + grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodcd"))
  306. ,"","goodcd,goodnm,goodspec,goodunitcost"
  307. ,grd_rfcmeqgdlist,"SPRSD00190","instcd,goodflag","cmb_instcd," + "Y" ,"Y");
  308. model.refresh();
  309. var cur_row = grd_rfcmeqgdlist.row;
  310. var status = grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("m"));
  311. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  312. if(CSV.length == 0 && grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("goodnm")).length == 0)
  313. {
  314. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodcd" , "");
  315. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodnm" , "");
  316. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodspec" , "");
  317. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodunitcost" , "");
  318. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/qty" , "");
  319. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/amt" , "");
  320. }
  321. else if (CSV.length > 0)
  322. {
  323. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodcd","");
  324. setCSVToNode("/root/copynode", CSV, "rfcmeqgdlist");
  325. fSettingGoodList("/root/copynode", "rfcmeqgdlist");
  326. }
  327. }else if(grd_rfcmeqgdlist.col == grd_rfcmeqgdlist.colRef("goodnm") && grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodnm")).length> 0) {//물품명 조회
  328. model.removenode("/root/copynode");
  329. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  330. model.makeNode("/root/copynode");
  331. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm"
  332. ,"goodnm," + cmb_instcd.value + ",Y," + grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("goodnm"))
  333. ,"","goodcd,goodnm,goodspec,goodunitcost"
  334. ,grd_rfcmeqgdlist,"SPRSD00190","instcd,goodflag","cmb_instcd," + "Y" ,"Y");
  335. model.refresh();
  336. var cur_row = grd_rfcmeqgdlist.row;
  337. var status = grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("m"));
  338. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  339. if(CSV.length == 0 && grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("goodcd")).length == 0)
  340. {
  341. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodcd" , "");
  342. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodnm" , "");
  343. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodspec" , "");
  344. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodunitcost" , "");
  345. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/qty" , "");
  346. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/amt" , "");
  347. }
  348. else if (CSV.length > 0)
  349. {
  350. model.setValue(grd_rfcmeqgdlist.nodeset + "[" + cur_row + "]/goodnm","");
  351. setCSVToNode("/root/copynode", CSV, "rfcmeqgdlist");
  352. fSettingGoodList("/root/copynode", "rfcmeqgdlist");
  353. }
  354. }
  355. ]]>
  356. </script>
  357. <script type="javascript" ev:event="onbuttonclick">
  358. <![CDATA[
  359. if (grd_rfcmeqgdlist.col == grd_rfcmeqgdlist.colRef("goodcd")) {//구성물품코드를 눌렀을 경우
  360. model.removenode("/root/copynode");
  361. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  362. model.makeNode("/root/copynode");
  363. rszfOpenPopUpListByWndName(grd_rfcmeqgdlist,"","goodcd,goodnm","SPRSD00190","instcd,goodflag", "cmb_instcd,Y");
  364. var cur_row = grd_rfcmeqgdlist.row;
  365. var status = grd_rfcmeqgdlist.valueMatrix(cur_row, grd_rfcmeqgdlist.colRef("m"));
  366. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  367. setCSVToNode("/root/copynode", CSV, "rfcmeqgdlist");
  368. fSettingGoodList("/root/copynode", "rfcmeqgdlist");
  369. }
  370. ]]>
  371. </script>
  372. </datagrid>
  373. <line id="line13" class="line_1" style="x1:0px; y1:355px; x2:600px; y2:355px; "/>
  374. <datagrid id="grd_rsihopeqlist" nodeset="/root/main/grid/rsihopeqlist" caption="처방부서^처방코드^처방코드명^건수^금액^기관코드^장비코드" colsep="^" colwidth="124, 84, 205, 73, 86, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:360px; width:600px; height:201px; ">
  375. <col ref="prcpdeptnm" style="text-align:left; "/>
  376. <col ref="prcpcd" style="text-align:left; "/>
  377. <col ref="prcpnm" style="text-align:left; "/>
  378. <col ref="prcpcnt" format="#,###" style="text-align:right; "/>
  379. <col ref="prcpamt" format="#,###" style="text-align:right; "/>
  380. <col ref="instcd" visibility="hidden"/>
  381. <col ref="fixasetcd" visibility="hidden"/>
  382. </datagrid>
  383. <caption id="caption13" class="tit_2" style="left:5px; top:340px; width:295px; height:13px; ">처방부서별 수행건수 및 금액</caption>
  384. <datagrid id="grd_prcpexecusecntlist" nodeset="/root/main/grid/prcpexecusecntlist" caption="검사실행부서^물품코드^건수^구입금액^금액^수량^금액^기관^장비코드^검사실코드" colsep="^" colwidth="114, 151, 100, 104, 96" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:605px; top:360px; width:590px; height:201px; ">
  385. <col ref="prcpexecdeptnm"/>
  386. <col ref="goodcd"/>
  387. <col ref="prcpcnt" format="#,###" style="text-align:right; "/>
  388. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  389. <col ref="prcpamt" format="#,###" style="text-align:right; "/>
  390. <col ref="instcd" visibility="hidden"/>
  391. <col ref="fixasetcd" visibility="hidden"/>
  392. <col ref="prcpexecdeptcd" visibility="hidden"/>
  393. </datagrid>
  394. <line id="line14" class="line_1" style="x1:605px; y1:355px; x2:1195; y2:355px; "/>
  395. <caption id="caption14" class="tit_2" style="left:610px; top:340px; width:305px; height:13px; ">수행코드에 따른 재료 사용건수 및 금액</caption>
  396. <caption id="caption4" class="tit_2" style="left:0px; top:92px; width:295px; height:14px; ">장비내역</caption>
  397. <button id="button1" class="btn2_letter2" style="left:1152px; top:87px; width:42px; height:19px; ">
  398. <caption>엑셀</caption>
  399. <script type="javascript" ev:event="DOMActivate">
  400. <![CDATA[
  401. // misfSaveExcel(grd_rfcmfacdlist , "장비내역");
  402. var fileName = window.fileDialog("save", ",", false, "장비내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  403. if(fileName !="")
  404. {
  405. grd_rfcmfacdlist.saveExcel(fileName, "장비내역", false, false, "", "", false);
  406. }
  407. ]]>
  408. </script>
  409. </button>
  410. <button id="button4" class="btn2_letter6" disabled="true" visibility="hidden" style="left:969px; top:87px; width:86px; height:19px; ">
  411. <caption>수익성 분석</caption>
  412. <script type="javascript" ev:event="onclick">
  413. <![CDATA[
  414. window.load("SPRFR02702_수익성분석출력물.xrw","modeless", "SPRFR02702_수익성분석출력물.xrw", "width:1010px; height:610;min:hidden;max:hidden;align:center", "" ,"");
  415. ]]>
  416. </script>
  417. </button>
  418. <button id="btn_insert" class="btn2_letter3" style="left:1083px; top:571px; width:53px; height:19px; ">
  419. <caption>행추가</caption>
  420. <script type="javascript" ev:event="DOMActivate">
  421. <![CDATA[
  422. if( grd_rfcmfacdlist.fixedRows == grd_rfcmfacdlist.rows || grd_rfcmfacdlist.row < 1)
  423. {
  424. messageBox("장비내역의 장비를 클릭 하신 후에 처방내역 추가 작업을 해주세요.", "");
  425. return;
  426. }
  427. misfGridIUD(grd_rfcmeqgdlist, "A");
  428. grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("instcd")) = cmb_instcd.value;
  429. grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("fixasetcd")) = grd_rfcmfacdlist.valueMatrix(grd_rfcmfacdlist.row, grd_rfcmfacdlist.colRef("fixasetcd"));
  430. grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("fromdd")) = getCurrentDate();
  431. grd_rfcmeqgdlist.valueMatrix(grd_rfcmeqgdlist.row, grd_rfcmeqgdlist.colRef("todd")) = '99991231';
  432. grd_rfcmeqgdlist.refresh();
  433. ]]>
  434. </script>
  435. </button>
  436. <button id="btn_delete" class="btn2_letter3" style="left:1138px; top:571px; width:53px; height:19px; ">
  437. <caption>행삭제</caption>
  438. <script type="javascript" ev:event="DOMActivate">
  439. <![CDATA[
  440. misfGridIUD(grd_rfcmeqgdlist, "D");
  441. ]]>
  442. </script>
  443. </button>
  444. <caption id="caption1" class="tit_2" style="left:0px; top:576px; width:396px; height:14px; ">수행코드에 따른 재료 사은 내역</caption>
  445. <button id="button2" class="btn2_letter2" style="left:555px; top:335px; width:42px; height:19px; ">
  446. <caption>엑셀</caption>
  447. <script type="javascript" ev:event="DOMActivate">
  448. <![CDATA[
  449. // misfSaveExcel(grd_rfcmfacdlist , "장비내역");
  450. var fileName = window.fileDialog("save", ",", false, "장비수익_처방부서별 수행건수", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  451. if(fileName !="")
  452. {
  453. grd_rsihopeqlist.saveExcel(fileName, "장비수익_처방부서별", false, true, "", "", false);
  454. }
  455. ]]>
  456. </script>
  457. </button>
  458. </group>
  459. <group id="group5" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  460. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3; width:56px; height:22px; ">
  461. <caption>저장</caption>
  462. <script type="javascript" ev:event="DOMActivate">
  463. <![CDATA[
  464. if(!checkKeyColumn("grd_rfcmeqgdlist")) return;
  465. //장비 처방내역List 저장.
  466. misfSave("TXRFR02703");
  467. btn_search.dispatch("DOMActivate");
  468. ]]>
  469. </script>
  470. </button>
  471. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  472. <caption>초기화</caption>
  473. <script type="javascript" ev:event="DOMActivate">
  474. <![CDATA[
  475. fInitialize();
  476. ]]>
  477. </script>
  478. </button>
  479. <line id="line16" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  480. </group>
  481. </xhtml:body>
  482. </xhtml:html>