SMRSD02203_처방 전달 물품 선불출 등록.xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>처방전달 물품 선불출 등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <searchgood>
  12. <searchgoodlist/>
  13. </searchgood>
  14. </list>
  15. <PrcpGoodTrees>
  16. <TreeList/>
  17. </PrcpGoodTrees>
  18. </main>
  19. <send>
  20. <SearchTree>
  21. <instcd/>
  22. <instcdnm/>
  23. <prcpdd/>
  24. <prcpdd2/>
  25. <sumflag/>
  26. <ioflag/>
  27. <prcpdeptcd/>
  28. <prcpdeptnm/>
  29. <querycls>0</querycls>
  30. <pid/>
  31. <patnm/>
  32. <reqflag/>
  33. <goodcd/>
  34. <purcflag/>
  35. <homematrflag/>
  36. <prntyn/>
  37. <deliveyn/>
  38. <erprcpflag>A</erprcpflag>
  39. <prcpinptflag/>
  40. <prcpcd/>
  41. <prcpnm/>
  42. </SearchTree>
  43. <searchgood>
  44. <instcd/>
  45. <prcpdd/>
  46. <prcpdd2/>
  47. <sumflag/>
  48. <reqflag/>
  49. <reqdeptcd/>
  50. <reqprid/>
  51. <prcpdeptcd/>
  52. <goodcd/>
  53. <ioflag/>
  54. <deptgr/>
  55. <pid/>
  56. <patnm/>
  57. <purcflag/>
  58. <homematrflag/>
  59. <prodcmpynm/>
  60. <suplplcecdnm/>
  61. <suppcustnm/>
  62. <prntyn/>
  63. <deliveyn/>
  64. <erprcpflag/>
  65. <prcpinptflag/>
  66. </searchgood>
  67. </send>
  68. <init>
  69. <prntyn>
  70. <label>전체</label>
  71. <value/>
  72. <label>출력</label>
  73. <value>Y</value>
  74. <label>미출력</label>
  75. <value>N</value>
  76. </prntyn>
  77. <deliveprcsflag>
  78. <label>전체</label>
  79. <value/>
  80. <label>미불출</label>
  81. <value>N</value>
  82. <label>불출</label>
  83. <value>Y</value>
  84. </deliveprcsflag>
  85. <sumflag>
  86. <label>전체</label>
  87. <value/>
  88. <label>집계</label>
  89. <value>Y</value>
  90. <label>미집계</label>
  91. <value>N</value>
  92. </sumflag>
  93. <ioflag>
  94. <label>전체</label>
  95. <value/>
  96. <label>입원</label>
  97. <value>I</value>
  98. <label>외래</label>
  99. <value>O</value>
  100. <label>건진</label>
  101. <value>S</value>
  102. <label>응급</label>
  103. <value>E</value>
  104. </ioflag>
  105. <goodreqcnt/>
  106. <searchgoodcnt/>
  107. </init>
  108. <temp>
  109. <prntkey/>
  110. </temp>
  111. </root>
  112. </instance>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. misfComboComCdList("R0111", cmb_purcflag, "Y"); //구매구분
  116. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"%","B");
  117. fInit(); // 화면 Control을 초기화한다
  118. cmb_reqflag.select(0); //청구구분
  119. var instcd = getUserInfo("dutplceinstcd");
  120. if (instcd == "031"){
  121. btn_sudong.visible = true;
  122. }else{
  123. btn_sudong.visible = false;
  124. }
  125. vProgramCls = "SMRSD02203";
  126. ]]>
  127. </script>
  128. <submission id="TRRSD02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchgood" resultref="/root/main/list/searchgood"/>
  129. <submission id="TRRSD02205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/SearchTree" resultref="/root/main/PrcpGoodTrees"/>
  130. <submission id="TRRSD02214" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/SearchTree" resultref="/root/main/PrcpGoodTrees"/>
  131. <!--물품규격내역를 저장하는 submmit-->
  132. <submission id="TXRSD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/rsihopmabefore" add="bottom" resultref="/root/temp"/>
  133. <submission id="TXRSD02203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/prntinfo" resultref="/root/temp"/>
  134. </model>
  135. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  137. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  138. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  139. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  140. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  141. <script type="javascript" src="../../../mis/reqweb/js/SMRSD02200.js"/>
  142. </xhtml:head>
  143. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  144. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  145. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">처방전달 물품 선불출 등록</caption>
  146. </group>
  147. <group id="group5" scroll="auto" style="left:0px; top:23px; width:1195px; height:759px; ">
  148. <group id="grp_detail" style="left:5px; top:280px; width:340px; height:475px; vertical-align:top; ">
  149. <button id="btn_searchTree" class="btn2_letter7" navindex="21" visibility="visible" style="left:0px; top:26px; width:97px; height:19px; text-align:center; ">
  150. <caption>트 리 재 구 성</caption>
  151. <script type="javascript" ev:event="DOMActivate">
  152. <![CDATA[
  153. fDataSearchTree();
  154. ]]>
  155. </script>
  156. </button>
  157. <select1 id="rdo_viewcls" ref="/root/send/SearchTree/querycls" navindex="20" appearance="full" cols="4" overflow="visible" style="left:100px; top:30px; width:235px; height:15px; border-style:none; ">
  158. <choices>
  159. <item>
  160. <label>전체</label>
  161. <value>0</value>
  162. </item>
  163. <item>
  164. <label>시행부서</label>
  165. <value>2</value>
  166. </item>
  167. <item>
  168. <label>처방부서</label>
  169. <value>1</value>
  170. </item>
  171. <item>
  172. <label>선불출</label>
  173. <value>3</value>
  174. </item>
  175. </choices>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. fDataSearchTree();
  179. ]]>
  180. </script>
  181. </select1>
  182. <treeview id="trv_setcode" ref="/root/main/PrcpGoodTrees/TreeList" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:0px; top:50px; width:338px; height:425px; ">
  183. <itemset nodeset="/root/main/PrcpGoodTrees/TreeList">
  184. <label ref="dispnm"/>
  185. <value ref="pcode"/>
  186. <depth ref="depth"/>
  187. </itemset>
  188. <script type="javascript" ev:event="xforms-value-changed">
  189. <![CDATA[
  190. // model.setValue("/root/send/searchgood/homematrflag", "Y"); // 귀가유치물품flag
  191. fDataSearchDetail(trv_setcode.focusIndex, "D");
  192. ]]>
  193. </script>
  194. </treeview>
  195. </group>
  196. <group id="grp_key" style="left:5px; top:8px; width:340px; height:297px; vertical-align:top; ">
  197. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:340px; height:295px; background-color:#fffbf2; border-color:#ffd799; "/>
  198. <caption id="caption10" class="search_name" style="left:5px; top:5px; width:89px; height:17px; ">기관코드 :</caption>
  199. <output id="opt_instcd" ref="/root/send/SearchTree/instcd" class="output_fix" visibility="hidden" style="left:210px; top:5px; width:15px; height:19px; "/>
  200. <input id="ipt_prcpdd2" ref="/root/send/SearchTree/prcpdd2" class="input_s_essential" navindex="4" inputtype="date" style="left:213px; top:53px; width:95px; height:19px; "/>
  201. <input id="ipt_prcpdd" ref="/root/send/SearchTree/prcpdd" class="input_s_essential" navindex="3" inputtype="date" style="left:95px; top:53px; width:95px; height:19px; "/>
  202. <caption id="caption12" style="left:196px; top:53px; width:15px; height:20px; font-weight:bold; ">~</caption>
  203. <caption id="caption3" class="search_name" style="left:5px; top:53px; width:89px; height:17px; ">시행일자 :</caption>
  204. <caption id="caption7" class="search_name" style="left:5px; top:77px; width:89px; height:17px; ">집계여부 :</caption>
  205. <select1 id="rdo_sumflag" ref="/root/send/SearchTree/sumflag" navindex="5" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:95px; top:77px; width:173px; height:17px; background-color:transparent; border-style:none; ">
  206. <choices>
  207. <itemset nodeset="/root/init/sumflag">
  208. <label ref="label"/>
  209. <value ref="value"/>
  210. </itemset>
  211. </choices>
  212. </select1>
  213. <select1 id="radio1" ref="/root/send/SearchTree/ioflag" navindex="6" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:95px; top:101px; width:240px; height:20px; border-style:none; ">
  214. <choices>
  215. <itemset nodeset="/root/init/ioflag">
  216. <label ref="label"/>
  217. <value ref="value"/>
  218. </itemset>
  219. </choices>
  220. </select1>
  221. <caption id="caption8" class="search_name" style="left:5px; top:101px; width:89px; height:17px; ">환자구분 :</caption>
  222. <button id="btn_search" class="btn1_letter2" navindex="22" visibility="hidden" style="left:250px; top:5px; width:56px; height:22px; text-align:left; ">
  223. <caption>조회</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. // if(fCheckRetrieveData() == false)return;
  227. misfGridInit(grd_searchgood);
  228. misfGridInit(grd_orderlist);
  229. misfMsterDetailRetrieve();
  230. fAfterRetrieve();
  231. misfSetReadOnlyCol(grd_searchgood, "sumflag", true);
  232. ]]>
  233. </script>
  234. </button>
  235. <button id="button1" class="icon_search" navindex="10" style="left:173px; top:148px; width:16px; height:16px; ">
  236. <caption/>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. var recv_list = "prcpdeptcd,prcpdeptnm";
  240. misfOpenPopUpList("02", ipt_prcpdeptcd,"", recv_list) ;
  241. model.refresh();
  242. fDataSearchTree();
  243. // btn_search.dispatch("DOMActivate");
  244. ]]>
  245. </script>
  246. </button>
  247. <caption id="caption2" class="search_name" style="left:5px; top:149px; width:93px; height:17px; ">시행부서 :</caption>
  248. <input id="ipt_prcpdeptnm" ref="/root/send/SearchTree/prcpdeptnm" class="output_fix" navindex="11" editable="false" appearance="input" style="left:195px; top:148px; width:140px; height:19px; "/>
  249. <input id="ipt_prcpdeptcd" ref="/root/send/SearchTree/prcpdeptcd" class="input_fix" navindex="9" style="left:95px; top:148px; width:75px; height:19px; ">
  250. <script type="javascript" ev:event="xforms-value-changed">
  251. <![CDATA[
  252. if(ipt_prcpdeptcd.value.length == 0){
  253. ipt_prcpdeptnm.value = "";
  254. }else
  255. {
  256. misfValidationCheck("02", "", "prcpdeptcd,prcpdeptnm" );
  257. }
  258. ipt_prcpdeptnm.refresh();
  259. ipt_prcpdeptcd.refresh();
  260. ]]>
  261. </script>
  262. </input>
  263. <output id="opt_instcdnm" ref="/root/send/SearchTree/instcdnm" class="output_fix" style="left:95px; top:5px; width:110px; height:19px; text-align:center; "/>
  264. <caption id="caption1" class="search_name" style="left:5px; top:173px; width:93px; height:17px; ">등록번호 :</caption>
  265. <caption id="caption4" class="search_name" style="left:170px; top:173px; width:93px; height:17px; ">환자명 :</caption>
  266. <input id="ipt_pid" ref="/root/send/SearchTree/pid" class="input_fix" navindex="12" style="left:95px; top:173px; width:75px; height:19px; ">
  267. <script type="javascript" ev:event="onkeyup">
  268. <![CDATA[
  269. inputEnterKey("btn_searchTree", "DOMActivate");
  270. ]]>
  271. </script>
  272. </input>
  273. <input id="ipt_patnm" ref="/root/send/SearchTree/patnm" class="input_fix" navindex="13" style="left:245px; top:173px; width:90px; height:19px; ">
  274. <script type="javascript" ev:event="onkeyup">
  275. <![CDATA[
  276. inputEnterKey("btn_searchTree", "DOMActivate");
  277. ]]>
  278. </script>
  279. </input>
  280. <caption id="caption20" class="search_name" style="left:5px; top:29px; width:86px; height:17px; vertical-align:middle; ">청구구분 :</caption>
  281. <select1 id="cmb_reqflag" ref="/root/send/SearchTree/reqflag" class="combo_default" navindex="2" appearance="minimal" style="left:95px; top:29px; width:110px; height:19px; ">
  282. <choices>
  283. <itemset nodeset="/root/init/reqflag/reqflaglist">
  284. <label ref="reqflagnm"/>
  285. <value ref="reqflag"/>
  286. </itemset>
  287. </choices>
  288. </select1>
  289. <caption id="caption11" class="search_name" style="left:170px; top:197px; width:93px; height:17px; ">구매구분 :</caption>
  290. <select1 id="cmb_purcflag" ref="/root/send/SearchTree/purcflag" class="combo_default" navindex="15" appearance="minimal" style="left:255px; top:197px; width:80px; height:19px; ">
  291. <choices>
  292. <itemset nodeset="/root/init/purcflag">
  293. <label ref="cdnm"/>
  294. <value ref="cdid"/>
  295. </itemset>
  296. </choices>
  297. </select1>
  298. <caption id="caption13" class="search_name" style="left:5px; top:197px; width:93px; height:17px; ">물품코드 :</caption>
  299. <input id="ipt_goodcd" ref="/root/send/SearchTree/goodcd" class="input_fix" navindex="14" imemode="disabled" _chartype="upper" style="left:95px; top:197px; width:75px; height:19px; ">
  300. <script type="javascript" ev:event="onkeyup">
  301. <![CDATA[
  302. inputEnterKey("btn_searchTree", "DOMActivate");
  303. ]]>
  304. </script>
  305. </input>
  306. <select1 id="rdo_prntyn" ref="/root/send/SearchTree/prntyn" navindex="18" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:95px; top:245px; width:173px; height:17px; background-color:transparent; border-style:none; ">
  307. <choices>
  308. <itemset nodeset="/root/init/prntyn">
  309. <label ref="label"/>
  310. <value ref="value"/>
  311. </itemset>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. // fDataSearchTree();
  316. ]]>
  317. </script>
  318. </select1>
  319. <caption id="caption14" class="search_name" style="left:5px; top:245px; width:89px; height:17px; ">출력여부 :</caption>
  320. <caption id="caption15" class="search_name" style="left:5px; top:269px; width:89px; height:17px; ">불출여부 :</caption>
  321. <select1 id="radio2" ref="/root/send/SearchTree/deliveyn" navindex="19" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:95px; top:269px; width:240px; height:17px; background-color:transparent; border-style:none; ">
  322. <choices>
  323. <itemset nodeset="/root/init/deliveprcsflag">
  324. <label ref="label"/>
  325. <value ref="value"/>
  326. </itemset>
  327. </choices>
  328. </select1>
  329. <select id="checkbox2" ref="/root/send/SearchTree/prcpinptflag" navindex="8" overflow="visible" appearance="full" style="left:260px; top:126px; width:70px; height:20px; border-style:none; ">
  330. <choices>
  331. <item>
  332. <label>CCD 제외</label>
  333. <value>ignore</value>
  334. </item>
  335. </choices>
  336. </select>
  337. <caption id="caption16" class="search_name" style="left:5px; top:125px; width:89px; height:17px; ">처방구분 :</caption>
  338. <select1 id="rdo_erprcpflag" ref="/root/send/SearchTree/erprcpflag" navindex="7" appearance="full" cellspacing="2" cols="3" overflow="visible" style="left:95px; top:125px; width:150px; height:20px; border-style:none; ">
  339. <choices>
  340. <itemset>
  341. <label/>
  342. <value/>
  343. </itemset>
  344. </choices>
  345. </select1>
  346. <input id="ipt_prcpnm" ref="/root/send/SearchTree/prcpnm" class="input_fix" navindex="17" autonext="false" maxlength="12" style="left:245px; top:221px; width:90px; height:19px; ">
  347. <script type="javascript" ev:event="onkeyup">
  348. <![CDATA[
  349. inputEnterKey("btn_searchTree", "DOMActivate");
  350. ]]>
  351. </script>
  352. </input>
  353. <input id="ipt_prcpcd" ref="/root/send/SearchTree/prcpcd" class="input_fix" navindex="16" autonext="false" imemode="disabled" maxlength="12" _chartype="upper" style="left:95px; top:221px; width:75px; height:19px; ">
  354. <script type="javascript" ev:event="onkeyup">
  355. <![CDATA[
  356. inputEnterKey("btn_searchTree", "DOMActivate");
  357. ]]>
  358. </script>
  359. </input>
  360. <caption id="caption45" class="search_name" style="left:170px; top:221px; width:89px; height:17px; ">처방명 :</caption>
  361. <caption id="caption46" class="search_name" style="left:5px; top:221px; width:96px; height:17px; ">처방코드 :</caption>
  362. </group>
  363. <group id="grp_main" style="left:350px; top:8px; width:835px; height:747px; ">
  364. <datagrid id="grd_excelgood" nodeset="/root/main/list/searchgood/searchgoodlist" visibility="hidden" caption="시행일자^처방일자^물품코드^물품코드^물품명^규격^모델^총수량^선불출^단위^등록번호^환자명^입외^병동^병실^처방부서^시행부서^수량^횟수^일수^집계^집계일자^구매구분^제조원^거래처" colsep="^" colwidth="66, 69, 70, 27, 183, 80, 80, 50, 50, 70, 55, 56, 36, 55, 40, 72, 76, 0, 0, 0, 40, 68, 82, 82, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:100px; width:835px; height:315px; ">
  365. <col ref="rgstdd" format="yyyy-mm-dd"/>
  366. <col ref="prcpdd" format="yyyy-mm-dd"/>
  367. <col ref="goodcd"/>
  368. <col ref="allsizespecid"/>
  369. <col ref="goodnm"/>
  370. <col ref="goodspec"/>
  371. <col ref="goodmodel"/>
  372. <col ref="totqty" format="#,###.#" style="text-align:right; "/>
  373. <col ref="beforqty" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  374. <col ref="setunit" style="text-align:center; "/>
  375. <col ref="pid2"/>
  376. <col ref="patnm2"/>
  377. <col disabled="true" ref="ioflag">
  378. <choices>
  379. <item>
  380. <label/>
  381. <value/>
  382. </item>
  383. </choices>
  384. </col>
  385. <col ref="wardnm"/>
  386. <col ref="room"/>
  387. <col ref="orddeptcdnm"/>
  388. <col ref="prcpdeptcdnm"/>
  389. <col ref="goodqty" format="#,###.#" style="text-align:right; "/>
  390. <col ref="times" format="#,###" style="text-align:right; "/>
  391. <col ref="dayno" format="#,###" style="text-align:right; "/>
  392. <col ref="sumflagnm" style="text-align:center; "/>
  393. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:right; "/>
  394. <col ref="purcflagnm"/>
  395. <col ref="prodcmpynm"/>
  396. <col ref="suplplcecdnm"/>
  397. <col ref="fstrgstrid" visibility="hidden"/>
  398. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  399. <col ref="ward" visibility="hidden"/>
  400. <col ref="orddeptcd" visibility="hidden"/>
  401. <col ref="prcpdeptcd" visibility="hidden"/>
  402. <col ref="sumflag" visibility="hidden"/>
  403. <col ref="purcflag" visibility="hidden"/>
  404. <col ref="prodcmpycd" visibility="hidden"/>
  405. <col ref="suplplcecd" visibility="hidden"/>
  406. <script type="javascript" ev:event="onaftersort">
  407. <![CDATA[
  408. grd_searchgood.gridToInstance();
  409. ]]>
  410. </script>
  411. </datagrid>
  412. <datagrid id="grd_searchgood" nodeset="/root/main/list/searchgood/searchgoodlist" caption="처방일자^등록번호^환자명^물품코드^물품코드^물품명^규격^총수량^선불출^집계^출력^시행일자^처방코드^처방명^모델^구매구분^단위^귀가수량^입외^병동^병실^처방부서^시행부서^수량^횟수^일수^집계일자^집계일자^수동^처방NO^등록자^등록일시^caption1^^^^^^^^^^" colsep="^" colwidth="66, 55, 55, 70, 25, 165, 71, 45, 45, 30, 30, 66, 80, 140, 70, 58, 46, 57, 30, 43, 60, 76, 76, 0, 0, 30, 70, 25 ,50 ,70, 60, 100, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30" dataheight="25" ellipsis="true" explorerbar="sortshow" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:35px; width:835px; height:710px; ">
  413. <col ref="prcpdd" format="yyyy-mm-dd"/>
  414. <col ref="pid"/>
  415. <col ref="patnm"/>
  416. <col ref="goodcd"/>
  417. <col ref="allsizespecid" visibility="hidden"/>
  418. <col ref="goodnm"/>
  419. <col ref="goodspec"/>
  420. <col ref="totqty" format="#,###.#" style="text-align:right; "/>
  421. <col ref="beforqty" type="input" format="(-)#,###.#" style="text-align:right; "/>
  422. <col ref="sumflagnm" style="text-align:center; "/>
  423. <col ref="prntynnm" style="text-align:center; "/>
  424. <col ref="rgstdd" format="yyyy-mm-dd"/>
  425. <col ref="prcpcd"/>
  426. <col ref="prcpnm"/>
  427. <col ref="goodmodel"/>
  428. <col ref="purcflagnm" style="text-align:center; "/>
  429. <col ref="setunit" style="text-align:center; "/>
  430. <col ref="homematrqty" visibility="hidden" format="#,###.#" style="text-align:right; "/>
  431. <col disabled="true" ref="ioflag">
  432. <choices>
  433. <item>
  434. <label/>
  435. <value/>
  436. </item>
  437. </choices>
  438. </col>
  439. <col ref="wardnm"/>
  440. <col ref="room"/>
  441. <col ref="orddeptcdnm"/>
  442. <col ref="prcpdeptcdnm"/>
  443. <col ref="goodqty" format="#,###.#" style="text-align:right; "/>
  444. <col ref="times" format="#,###" style="text-align:right; "/>
  445. <col ref="dayno" format="#,###" style="text-align:right; "/>
  446. <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  447. <col ref="sumcnt" style="text-align:center; "/>
  448. <col ref="demdkey" style="text-align:center; "/>
  449. <col ref="execprcpuniqno" style="text-align:center; "/>
  450. <col ref="fstrgstrid" visibility="hidden"/>
  451. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  452. <col ref="ward" visibility="hidden"/>
  453. <col ref="orddeptcd" visibility="hidden"/>
  454. <col ref="prcpdeptcd" visibility="hidden"/>
  455. <col ref="sumflag" visibility="hidden"/>
  456. <col ref="genrdd" visibility="hidden"/>
  457. <col ref="genrno" visibility="hidden"/>
  458. <col ref="genrseq" visibility="hidden"/>
  459. <col ref="beforqtyold" visibility="hidden"/>
  460. <col ref="homematrflag" visibility="hidden"/>
  461. <col ref="centcd" visibility="hidden"/>
  462. <col ref="subdeptcd" visibility="hidden"/>
  463. <col ref="centcdnm" visibility="hidden"/>
  464. <col ref="subdeptcdnm" visibility="hidden"/>
  465. <col ref="prntyn" visibility="hidden"/>
  466. <col ref="instcd" visibility="hidden"/>
  467. <script type="javascript" ev:event="onaftersort">
  468. <![CDATA[
  469. grd_searchgood.gridToInstance();
  470. ]]>
  471. </script>
  472. <script type="javascript" ev:event="xforms-value-changed">
  473. <![CDATA[
  474. fBeforQtyOnChange(grd_searchgood.row, 1);
  475. ]]>
  476. </script>
  477. <script type="javascript" ev:event="onendedit">
  478. <![CDATA[
  479. var selRow = grd_searchgood.row;
  480. if(selRow < grd_searchgood.rows - grd_searchgood.fixedRows){
  481. grd_searchgood.row = selRow + 1;
  482. grd_searchgood.select(selRow + 1, grd_searchgood.colRef("beforqty")) = true;
  483. }
  484. ]]>
  485. </script>
  486. </datagrid>
  487. <button id="btn_excel2" class="btn5_letter3" style="left:678px; top:5px; width:53px; height:19px; ">
  488. <caption>Excel</caption>
  489. <script type="javascript" ev:event="DOMActivate">
  490. <![CDATA[
  491. var vdate = new Date();
  492. var HH = vdate.getHours();
  493. var MI = vdate.getMinutes();
  494. var SS = vdate.getSeconds();
  495. var vTime = HH +"" + MI +"" + SS;
  496. var vFileNM = "처방전달물품내역_"+getCurrentDate()+ vTime;
  497. var fileName = window.fileDialog("save", ",", false, vFileNM, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  498. if (fileName != "")
  499. {
  500. grd_excelgood.saveExcel(fileName, vFileNM, true, true, "");
  501. }
  502. ]]>
  503. </script>
  504. </button>
  505. <line id="lin_main" class="line_1" style="x1:0px; y1:30px; x2:835px; y2:30px; "/>
  506. <button id="button57" class="icon_pre_month" style="left:0px; top:11px; width:16px; height:16px; ">
  507. <caption/>
  508. <script type="javascript" ev:event="DOMActivate">
  509. <![CDATA[
  510. fDataPartToggle("1");
  511. ]]>
  512. </script>
  513. </button>
  514. <button id="button58" class="icon_next_month" style="left:20px; top:11px; width:16px; height:16px; ">
  515. <caption/>
  516. <script type="javascript" ev:event="DOMActivate">
  517. <![CDATA[
  518. fDataPartToggle("0");
  519. ]]>
  520. </script>
  521. </button>
  522. <caption id="cpt_disp" class="tit_2" style="left:45px; top:13px; width:575px; height:13px; ">처방전달물품내역</caption>
  523. <caption id="caption5" visibility="hidden" style="left:555px; top:10px; width:50px; height:15px; ">All Size</caption>
  524. <caption id="caption9" class="color_6" visibility="hidden" style="left:537px; top:9px; width:15px; height:15px; background-color:#FFFF00; "/>
  525. <button id="btn_save" class="btn4_letter2" disabled="false" style="left:615px; top:5px; width:56px; height:22px; ">
  526. <caption>저장</caption>
  527. <script type="javascript" ev:event="DOMActivate">
  528. <![CDATA[
  529. fBeforQtyDataSave(); // Data를 저장한다.
  530. ]]>
  531. </script>
  532. </button>
  533. <button id="btn_wardprint" class="btn2_letter6" style="left:735px; top:5px; width:86px; height:19px; ">
  534. <caption>선불출 출력</caption>
  535. <script type="javascript" ev:event="DOMActivate">
  536. <![CDATA[
  537. model.removeNodeset("/root/prtinfo/gooddetlist");
  538. model.makeNode("/root/prtinfo/gooddetlist");
  539. var node1 = "/root/main/list/searchgood/searchgoodlist[beforqty != '0' and sumflag = 'N' and prntyn != 'Y']";
  540. var node2 = "/root/main/list/searchgood/searchgoodlist[beforqty != '0' and sumflag = 'N']";
  541. var node0 = "/root/main/list/searchgood/searchgoodlist[beforqty != beforqtyold]";
  542. if (instance1.selectNodes(node0).length != 0){
  543. if (messageBox("수정 된 내역이 있습니다.","Q002") == 6){
  544. if(!fBeforQtyDataSave()) { // Data를 저장한다.
  545. return;
  546. }
  547. } else {
  548. return;
  549. }
  550. }
  551. if (instance1.selectNodes(node1).length != 0){
  552. copyNodesetType("/root/prtinfo/gooddetlist",node1,"replace"); // 미출력 노드
  553. } else {
  554. if(instance1.selectNodes("/root/main/list/searchgood/prntlist").length > 1){
  555. rdo_prntlist.refresh();
  556. model.removenode("/root/temp/prntkey");
  557. model.makeNode("/root/temp/prntkey");
  558. rdo_prntlist.select(0);
  559. group5.disabled = true;
  560. group2.visible = true;
  561. return;
  562. }
  563. copyNodesetType("/root/prtinfo/gooddetlist",node2,"replace"); // 전체 선불출 노드
  564. }
  565. if( getUserInfo("dutplceinstcd") == "031" || getUserInfo("dutplceinstcd") == "033" ){
  566. makeReportPreview(0,0,10,10);
  567. exeReportPreview("RPRSD02203", "XMLSTR","","",true,true);
  568. } else {
  569. exeReportPreview("RPRSD02203", "XMLSTR");
  570. }
  571. fPrntDataSave();
  572. //fDataSearchDetail(trv_setcode.focusIndex, "D");
  573. ]]>
  574. </script>
  575. <hint>
  576. <![CDATA[선불출 내용 변경시 저장 하신 후 선불출서를 출력해 주세요]]>
  577. </hint>
  578. </button>
  579. <button id="btn_sudong" class="btn1_letter4" disabled="false" visibility="hidden" style="left:440px; top:5px; width:80px; height:22px; ">
  580. <caption>수동집계</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. var prcpdd = model.getValue("/root/send/SearchTree/prcpdd");
  584. var prcpdd2 = model.getValue("/root/send/SearchTree/prcpdd2");
  585. var pid = model.getValue("/root/send/SearchTree/pid");
  586. if(prcpdd == "" || prcpdd2 == "" ){
  587. messageBox("시행일자는","I003");
  588. return;
  589. }else if(pid == ""){
  590. messageBox("등록번호는","I003");
  591. return;
  592. }else{
  593. submit("TRRSD02214");
  594. fDataSearchTree();
  595. }
  596. ]]>
  597. </script>
  598. </button>
  599. </group>
  600. </group>
  601. <group id="group2" visibility="hidden" style="left:635px; top:215px; width:250px; height:145px; ">
  602. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:250px; height:145px; border-color:#ff9900; border-width:2px; "/>
  603. <select1 id="rdo_prntlist" ref="/root/temp/prntkey" scroll="vertical" appearance="full" cols="1" vcellspacing="5" overflow="visible" style="left:5px; top:5px; width:175px; height:135px; border-style:none; ">
  604. <choices>
  605. <itemset nodeset="/root/main/list/searchgood/prntlist">
  606. <label ref="prntkey"/>
  607. <value ref="prntkey"/>
  608. </itemset>
  609. </choices>
  610. </select1>
  611. <button id="button2" class="btn4_letter2" style="left:185px; top:45px; width:56px; height:22px; ">
  612. <caption>출력</caption>
  613. <script type="javascript" ev:event="DOMActivate">
  614. <![CDATA[
  615. model.removeNodeset("/root/prtinfo/gooddetlist");
  616. model.makeNode("/root/prtinfo/gooddetlist");
  617. rdo_prntlist.refresh();
  618. group5.disabled = true;
  619. group2.visible = true;
  620. copyNodesetType("/root/prtinfo/gooddetlist","/root/main/list/searchgood/searchgoodlist[beforqty != '0' and sumflag = 'N' and prntkey = '" + model.getValue("/root/temp/prntkey") + "']","replace"); // 전체 선불출 노드
  621. if( getUserInfo("dutplceinstcd") == "031" || getUserInfo("dutplceinstcd") == "033" ){
  622. makeReportPreview(0,0,10,10);
  623. exeReportPreview("RPRSD02203", "XMLSTR","","",true,true);
  624. } else {
  625. exeReportPreview("RPRSD02203", "XMLSTR");
  626. }
  627. ]]>
  628. </script>
  629. </button>
  630. <button id="button3" class="btn4_letter2" style="left:185px; top:75px; width:56px; height:22px; ">
  631. <caption>닫기</caption>
  632. <script type="javascript" ev:event="DOMActivate">
  633. <![CDATA[
  634. group5.disabled = false;
  635. group2.visible = false;
  636. ]]>
  637. </script>
  638. </button>
  639. </group>
  640. </xhtml:body>
  641. </xhtml:html>