SMRSO00200_진료재료처방집계(품목별).xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>진료재료처방집계</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <ioflag>
  11. <label>전체</label>
  12. <value/>
  13. <label>입원</label>
  14. <value>I</value>
  15. <label>외래</label>
  16. <value>O</value>
  17. </ioflag>
  18. </init>
  19. <send>
  20. <iudflag/>
  21. <mainmngtdeptcd/>
  22. <mainmngtdeptnm/>
  23. <prcpdeptcd/>
  24. <prcpdeptnm/>
  25. <fromrgstdd/>
  26. <torgstdd/>
  27. <acptdd/>
  28. <ioflag/>
  29. <pid/>
  30. <goodcd/>
  31. <reqprid/>
  32. <reqflag/>
  33. <goodnm/>
  34. </send>
  35. </root>
  36. </instance>
  37. <script type="javascript" ev:event="xforms-ready">
  38. <![CDATA[
  39. //화면 Control을 초기화한다
  40. fInitialize();
  41. ]]>
  42. </script>
  43. <submission id="TXRSO00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/temp"/>
  44. </model>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  51. <script type="javascript">
  52. <![CDATA[
  53. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  54. function fInitialize() {
  55. misfComboComCdListMulti("R0093","cmb_reqpridflag");
  56. /* 하단 변경 HBH*/
  57. //rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag);
  58. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"%","B");
  59. model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
  60. model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
  61. rbo_ioflag.selected = 0;
  62. var curdate = getCurrentDate();
  63. var cvtdate = curdate.toDate("YYYYMMDD");
  64. model.setValue(ipt_fromrgstdd.attribute("ref") , cvtdate.getAddDate(-1,"D").getDateFormat("YYYYMMDD"));
  65. model.setValue(ipt_torgstdd.attribute("ref") , cvtdate.getAddDate(0,"D").getDateFormat("YYYYMMDD"));
  66. model.setValue(ipt_acptdd.attribute("ref") ,curdate);
  67. model.refresh();
  68. }
  69. function fCheckValue()
  70. {
  71. if(!isRequiredControls("cmb_reqflag"))
  72. {
  73. ipt_goodcd.value = '';
  74. ipt_goodnm.value = '';
  75. return true;
  76. }
  77. if(!isRequiredControls("ipt_orddeptcd"))
  78. {
  79. ipt_goodcd.value = '';
  80. ipt_goodnm.value = '';
  81. return true;
  82. }
  83. if(!isRequiredControls("ipt_orddeptnm"))
  84. {
  85. ipt_goodcd.value = '';
  86. ipt_goodnm.value = '';
  87. return true;
  88. }
  89. return false;
  90. }
  91. function fCheckSaveData()
  92. {
  93. if(!isRequiredControls("ipt_deptcd"))return false;
  94. if(!isRequiredControls("ipt_fromrgstdd"))return false;
  95. if(!isRequiredControls("ipt_torgstdd"))return false;
  96. if(!isRequiredControls("ipt_acptdd"))return false;
  97. if(!isRequiredControls("cmb_reqflag"))return false;
  98. if(!isRequiredControls("cmb_reqpridflag"))return false;
  99. }
  100. function fClearControl()
  101. {
  102. if((ipt_orddeptcd.value =='') || (ipt_orddeptnm.value == ''))
  103. {
  104. ipt_goodcd.value = '';
  105. ipt_goodnm.value = '';
  106. }
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body pagewidth="450" pageheight="250" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  112. <group id="grp_tle" style="left:8px; top:0px; width:395px; height:13px; ">
  113. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">물품 처방집계</caption>
  114. </group>
  115. <group id="group1" style="left:8px; top:12px; width:395px; height:208px; ">
  116. <caption id="cap_deptcd" class="cell_1" style="left:0px; top:30px; width:108px; height:23px; vertical-align:middle; ">집계부서</caption>
  117. <caption id="cap_orddeptcd" class="cell_1" style="left:0px; top:126px; width:108px; height:23px; vertical-align:middle; ">처방부서</caption>
  118. <caption id="cap_fromrgstdd" class="cell_1" style="left:0px; top:54px; width:108px; height:23px; vertical-align:middle; ">처방기간</caption>
  119. <caption id="cap_ioflag" class="cell_1" style="left:0px; top:102px; width:108px; height:23px; vertical-align:middle; ">집계구분</caption>
  120. <caption id="cap_acptdd" class="cell_1" style="left:0px; top:78px; width:108px; height:23px; vertical-align:middle; ">집계일자</caption>
  121. <line id="line7" class="line_1" style="x1:0px; y1:25px; x2:380px; y2:25px; "/>
  122. <line id="line19" class="line_2" style="x1:0px; y1:52px; x2:380px; y2:52px; "/>
  123. <line id="line1" class="line_3" style="x1:0px; y1:198px; x2:380px; y2:198px; "/>
  124. <line id="line28" class="line_2" style="x1:0px; y1:100px; x2:380px; y2:100px; "/>
  125. <line id="line35" class="line_2" style="x1:0px; y1:124px; x2:380px; y2:124px; "/>
  126. <line id="line23" class="line_2" style="x1:0px; y1:75px; x2:380px; y2:75px; "/>
  127. <select1 id="cmb_reqpridflag" ref="/root/send/reqprid" class="combo_s_essential" appearance="minimal" style="left:250px; top:104px; width:129px; height:19px; ">
  128. <choices>
  129. <itemset nodeset="/root/init/reqpridflag">
  130. <label ref="cdnm"/>
  131. <value ref="cdid"/>
  132. </itemset>
  133. </choices>
  134. </select1>
  135. <caption id="caption61" class="tit_2" style="left:5px; top:10px; width:126px; height:14px; ">물품 처방집계</caption>
  136. <button id="button39" img="/com/commonweb/images/geomsaek4.gif" hoverImg="/com/commonweb/images/geomsaek4_o.gif" style="left:173px; top:82px; width:23px; height:20px; font-family:굴림체; font-size:9pt; font-weight:bold; ">
  137. <script id="script3" type="javascript" ev:event="xforms-activate">
  138. <![CDATA[
  139. var pParam = "2▦1▦▦"; //jobgbn▦srtgbn▦srhtxt▦cond1▦...
  140. ERP_FOpenBuSeoHelp("", pParam, "/root/MainData/condition/deptcd","/root/MainData/condition/deptnm", "");
  141. model.setfocus("checkbox1");
  142. ]]>
  143. </script>
  144. <caption/>
  145. </button>
  146. <button id="btn_orddeptnm" class="icon_search" style="left:196px; top:129px; width:16px; height:16px; ">
  147. <caption/>
  148. <script type="javascript" ev:event="DOMActivate">
  149. <![CDATA[
  150. var recv_list = "prcpdeptcd,prcpdeptnm";
  151. misfOpenPopUpList("02", ipt_orddeptcd,"", recv_list) ;
  152. model.refresh();
  153. ]]>
  154. </script>
  155. </button>
  156. <button id="btn_del" class="btn2_letter2" style="left:337px; top:4px; width:42px; height:19px; ">
  157. <caption>삭제</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. if(fCheckSaveData() == false)return;
  161. model.setValue("/root/send/iudflag","D");
  162. submit("TXRSO00701");
  163. if (model.getValue(gvErrorMsgPath + "/type") != "error")messageBox(model.getValue(gvErrorMsgPath + "/msg"),"I");
  164. ]]>
  165. </script>
  166. </button>
  167. <select1 id="rbo_ioflag" ref="/root/send/ioflag" class="input_s_essential" appearance="full" cols="3" rows="1" overflow="visible" style="left:111px; top:105px; width:135px; height:16px; background-color:transparent; border-style:none; ">
  168. <choices>
  169. <itemset nodeset="/root/init/ioflag">
  170. <label ref="label"/>
  171. <value ref="value"/>
  172. </itemset>
  173. </choices>
  174. </select1>
  175. <caption id="caption4" style="left:239px; top:56px; width:15px; height:20px; font-weight:bold; ">~</caption>
  176. <input id="ipt_orddeptnm" ref="/root/send/prcpdeptnm" class="input_default" appearance="input" style="left:216px; top:128px; width:163px; height:19px; ">
  177. <script type="javascript" ev:event="xforms-value-changed">
  178. <![CDATA[
  179. misfValidationCheck("02", "", "prcpdeptcd,prcpdeptnm" );
  180. model.refresh();
  181. fClearControl();
  182. ]]>
  183. </script>
  184. </input>
  185. <shape id="rectangle9" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:0px; top:0px; width:385px; height:205px; border-color:#788daf; "/>
  186. <input id="ipt_deptnm" ref="/root/send/mainmngtdeptnm" class="input_default" appearance="input" style="left:216px; top:32px; width:163px; height:19px; ">
  187. <script type="javascript" ev:event="xforms-value-changed">
  188. <![CDATA[
  189. misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
  190. model.refresh();
  191. ]]>
  192. </script>
  193. </input>
  194. <input id="ipt_torgstdd" ref="/root/send/torgstdd" class="input_s_essential" inputtype="date" style="left:255px; top:56px; width:124px; height:19px; text-align:center; "/>
  195. <input id="ipt_orddeptcd" ref="/root/send/prcpdeptcd" class="input_default" appearance="input" style="left:111px; top:128px; width:80px; height:19px; ">
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. misfValidationCheck("02", "", "prcpdeptcd,prcpdeptnm" );
  199. model.refresh();
  200. fClearControl();
  201. ]]>
  202. </script>
  203. </input>
  204. <button id="btn_gen" class="btn2_letter2" style="left:292px; top:4px; width:42px; height:19px; ">
  205. <caption>생성</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. model.setValue("/root/send/iudflag","I");
  209. if(fCheckSaveData() == false)return;
  210. submit("TXRSO00701");
  211. if (model.getValue(gvErrorMsgPath + "/type") != "error")messageBox(model.getValue(gvErrorMsgPath + "/msg"),"I");
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="btn_deptcd" class="icon_search" style="left:196px; top:34px; width:16px; height:16px; ">
  216. <caption/>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
  220. misfOpenPopUpList("02", ipt_deptcd,"", recv_list) ;
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </button>
  225. <input id="ipt_deptcd" ref="/root/send/mainmngtdeptcd" class="input_s_essential" appearance="input" style="left:111px; top:32px; width:80; height:19px; ">
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
  229. model.refresh();
  230. ]]>
  231. </script>
  232. </input>
  233. <input id="ipt_fromrgstdd" ref="/root/send/fromrgstdd" class="input_s_essential" inputtype="date" style="left:111px; top:56px; width:124px; height:19px; text-align:center; "/>
  234. <input id="ipt_acptdd" ref="/root/send/acptdd" class="input_s_essential" inputtype="date" style="left:111px; top:80px; width:142px; height:19px; text-align:center; "/>
  235. <select1 id="cmb_reqflag" ref="/root/send/reqflag" class="combo_s_essential" appearance="minimal" style="left:255px; top:80px; width:124px; height:19px; ">
  236. <choices>
  237. <itemset nodeset="/root/init/reqflag">
  238. <label ref="cdnm"/>
  239. <value ref="cdid"/>
  240. </itemset>
  241. </choices>
  242. </select1>
  243. <caption id="cap_reqflag" class="cell_1" visibility="hidden" style="left:110px; top:0px; width:25px; height:23px; vertical-align:middle; ">청구구분</caption>
  244. <caption id="cap_reqpridflag" class="cell_1" visibility="hidden" style="left:135px; top:0px; width:25px; height:23px; vertical-align:middle; ">청구주기</caption>
  245. <line id="line2" class="line_2" style="x1:0px; y1:148px; x2:380px; y2:148px; "/>
  246. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_default" imemode="disabled" appearance="input" style="left:111px; top:152px; width:244px; height:19px; ">
  247. <script type="javascript" ev:event="xforms-value-changed">
  248. <![CDATA[
  249. if( fCheckValue() ) return;
  250. if(ipt_goodcd.value.length == 0)
  251. {
  252. ipt_goodnm.value = "";
  253. }else{
  254. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  255. "goodcd," + getUserInfo("dutplceinstcd") + "," + rszfGetGoodFlagByReqFlag(getUserInfo("dutplceinstcd") , cmb_reqflag.value) + "," + model.getValue(ipt_goodcd.attribute("ref")),"","goodcd,goodnm",
  256. ipt_goodcd,"SPRSD00190","instcd,goodflag", getUserInfo("dutplceinstcd") + "," + rszfGetGoodFlagByReqFlag(getUserInfo("dutplceinstcd") , cmb_reqflag.value) ,"Y");
  257. }
  258. model.refresh();
  259. ]]>
  260. </script>
  261. </input>
  262. <button id="btn_fixasetcd" class="icon_search" style="left:360px; top:154px; width:16px; height:16px; ">
  263. <caption/>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. if( fCheckValue() ) return;
  267. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag", getUserInfo("dutplceinstcd") + "," + rszfGetGoodFlagByReqFlag(getUserInfo("dutplceinstcd") , cmb_reqflag.value));
  268. model.refresh();
  269. ]]>
  270. </script>
  271. </button>
  272. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_default" appearance="input" style="left:111px; top:175px; width:268px; height:19px; ">
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. if( fCheckValue() ) return;
  276. if(ipt_goodnm.value.length == 0)
  277. {
  278. ipt_goodcd.value = "";
  279. }else{
  280. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  281. "goodnm," + getUserInfo("dutplceinstcd") + "," + rszfGetGoodFlagByReqFlag(getUserInfo("dutplceinstcd") , cmb_reqflag.value) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
  282. ipt_goodcd,"SPRSD00210","instcd,goodflag", getUserInfo("dutplceinstcd") + "," + rszfGetGoodFlagByReqFlag(getUserInfo("dutplceinstcd") , cmb_reqflag.value));
  283. }
  284. model.refresh();
  285. ]]>
  286. </script>
  287. </input>
  288. <caption id="cap_fixasetcd" class="cell_1" style="left:1px; top:150px; width:107px; height:45px; vertical-align:middle; ">물품코드</caption>
  289. <caption id="cap_orddeptnm" class="cell_1" style="left:1px; top:126px; width:107px; height:23px; vertical-align:middle; ">처방부서</caption>
  290. </group>
  291. </xhtml:body>
  292. </xhtml:html>