SMRSD02204_처방 전달 물품 선불출 등록.xrw 33 KB

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