SMRSD02100_일별 약품청구현황 조회.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. <goodreq>
  12. <goodreqlist/>
  13. </goodreq>
  14. </list>
  15. <getrsdhdemd>
  16. <goodreqlist>
  17. <goodcd/>
  18. <goodnm/>
  19. <goodspec/>
  20. <goodmodel/>
  21. <requnit/>
  22. <reqdeptnm/>
  23. <adjtqty/>
  24. <reqdd/>
  25. <instnm/>
  26. <reqpsnnm/>
  27. <suppcustnm/>
  28. <prodcmpynm/>
  29. </goodreqlist>
  30. </getrsdhdemd>
  31. <print>
  32. <list/>
  33. </print>
  34. </main>
  35. <send>
  36. <goodreq>
  37. <instcd/>
  38. <reqflag/>
  39. <workflag>1</workflag>
  40. <reqmthdflag/>
  41. <purcflag/>
  42. <reqdeptcd/>
  43. <reqdeptnm/>
  44. <goodcd/>
  45. <goodnm/>
  46. <reqfrdd/>
  47. <reqtodd/>
  48. <deliveprcsflag/>
  49. <instcdnm/>
  50. <goodflag/>
  51. <emplno/>
  52. <emplnm/>
  53. <suppcustcd/>
  54. <suppcustcdnm/>
  55. <stocdeptcd/>
  56. </goodreq>
  57. <goodprintreq/>
  58. </send>
  59. <init>
  60. <workflag>
  61. <label>전체</label>
  62. <value/>
  63. <label>청구</label>
  64. <value>1</value>
  65. <label>반품</label>
  66. <value>2</value>
  67. </workflag>
  68. <systemflag/>
  69. </init>
  70. <temp>
  71. <print>
  72. <list/>
  73. </print>
  74. <viewflag>1</viewflag>
  75. </temp>
  76. </root>
  77. </instance>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. fInitialize();
  81. ]]>
  82. </script>
  83. <submission id="TRRSD02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  84. <submission id="TRRSD02002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/print"/>
  85. <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodiolist" resultref="/root/init/main"/>
  86. </model>
  87. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  89. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  90. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  93. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  94. <script type="javascript">
  95. <![CDATA[
  96. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  97. function fInitialize() {
  98. misfComboComCdList("R0092",cmb_reqmthd ,"Y"); // 청구방번
  99. misfComboComCdList("R0116",cmb_deliveprcsflag,"Y"); // 진행상태
  100. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  101. rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"1","S" );
  102. rszfGoodFlagListByPgmGubn(cmb_goodflag,"","N");
  103. rszfComboStockArthDeptcdList(cmb_deptcd,getUserInfo("dutplceinstcd") ,"PH" );
  104. addComboItem("cmb_deptcd","전체","","above");
  105. model.setValue(cmb_reqmthd.attribute("ref"),"3");
  106. misfGridInit(grd_goodreq);
  107. misfMsterDetailSet(grd_goodreq,null, "TRRSD02001" ,"N");
  108. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  109. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
  110. var curdate = getCurrentDate();
  111. var cvtdate = curdate.toDate("YYYYMMDD");
  112. model.setValue(cmb_goodflag.attribute("ref") ,"PH");
  113. model.setValue(ipt_reqfrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  114. model.setValue(ipt_reqtodd.attribute("ref") ,curdate);
  115. model.setValue(radio1.attribute("ref"), "1");
  116. model.refresh();
  117. }
  118. function fCheckRetrieveData(pmsg)
  119. {
  120. if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
  121. {
  122. model.setFocus("opt_instcd");
  123. return false;
  124. }
  125. }
  126. function freqlistprint()
  127. {
  128. model.removeNodeset("/root/prtinfo/goodreq/goodreqlist");
  129. model.removeNodeset("/root/prtinfo/baseinfo");
  130. model.makeNode("/root/prtinfo/goodreq/goodreqlist");
  131. model.makeNode("/root/prtinfo/baseinfo");
  132. model.makeValue("/root/prtinfo/baseinfo/instcdnm",model.getValue("/root/send/goodreq/instcdnm"));
  133. model.makeValue("/root/prtinfo/baseinfo/reqfrdd",model.getValue("/root/send/goodreq/reqfrdd"));
  134. model.makeValue("/root/prtinfo/baseinfo/reqtodd",model.getValue("/root/send/goodreq/reqtodd"));
  135. model.makeValue("/root/prtinfo/baseinfo/workflagnm",cmb_workflag.label);
  136. copyNodesetType("/root/prtinfo/goodreq/goodreqlist","/root/main/list/goodreq/goodreqlist","replace");
  137. exeReportPreview("RPRSD02101","XMLSTR","/root/prtinfo");
  138. }
  139. ]]>
  140. </script>
  141. </xhtml:head>
  142. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  143. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  144. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일별 청구현황 조회</caption>
  145. </group>
  146. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  147. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:115px; vertical-align:top; ">
  148. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:115px; background-color:#fffbf2; border-color:#ffd799; "/>
  149. <caption id="caption2" class="search_name" style="left:15; top:9; width:89px; height:17px; ">기관코드 :</caption>
  150. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:35px; width:56px; height:22px; ">
  151. <caption>조회</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. if (model.getValue("/root/temp/viewflag") == "1") {
  155. var dPath = "/root/main/goodreqmst/";
  156. var pPath = "/root/send/goodreq/";
  157. if(fCheckRetrieveData(false) == false)return;
  158. misfGridInit(grd_goodreq)
  159. misfMsterDetailRetrieve();
  160. model.makeValue(dPath+"instcdnm" , model.getValue(pPath+"instcdnm" ));
  161. model.makeValue(dPath+"reqdeptnm" , model.getValue(pPath+"reqdeptnm"));
  162. model.makeValue(dPath+"reqfrdd" , model.getValue(pPath+"reqfrdd" ));
  163. model.makeValue(dPath+"reqtodd" , model.getValue(pPath+"reqtodd" ));
  164. datagrid1.visible = false;
  165. } else {
  166. datagrid1.nodeset = "/root/temp/print/list";
  167. for (var i = datagrid1.cols - 1; i > 1; i--) {
  168. datagrid1.deleteColumn(i, false);
  169. }
  170. model.removeNodeset("/root/main/print/header");
  171. model.removeNodeset("/root/main/print/list");
  172. submit("TRRSD02002");
  173. var count = getNodesetCount("/root/main/print/header");
  174. var caption = "약품코드^약품명";
  175. for (var i = 0; i < count; i++) {
  176. datagrid1.addColumn("ref:ward" + i + "; type:output; format:#,###", false);
  177. //datagrid1.colwidth(1+i) = 60;
  178. caption += "^" + model.getValue("root/main/print/header[" + (i+1) + "]/reqdeptnm");
  179. }
  180. datagrid1.caption = caption;
  181. datagrid1.nodeset = "/root/main/print/list";
  182. //datagrid1.rowHeight(0) = 40;
  183. //datagrid1.colstyle(1, "data", "text-align") = "left";
  184. //datagrid1.autoResize = true;
  185. datagrid1.refresh();
  186. datagrid1.visible = true;
  187. }
  188. ]]>
  189. </script>
  190. </button>
  191. <caption id="caption7" class="search_name" style="left:405px; top:35px; width:89px; height:17px; vertical-align:middle; ">청구부서 :</caption>
  192. <input id="ipt_reqdeptnm" ref="/root/send/goodreq/reqdeptnm" class="output_search" appearance="input" style="left:605px; top:34px; width:159px; height:19px; ">
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. if(ipt_reqdeptnm.value.length == 0)
  196. ipt_reqdeptcd.value = "";
  197. else
  198. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  199. "deptnm," + ipt_reqdeptnm.value, "", "reqdeptcd,reqdeptnm",
  200. ipt_reqdeptnm, "SPRPZ00200", "","");
  201. model.refresh();
  202. ]]>
  203. </script>
  204. </input>
  205. <input id="ipt_reqdeptcd" ref="/root/send/goodreq/reqdeptcd" class="input_fix" maxlength="10" appearance="input" style="left:505px; top:34px; width:77px; height:19px; ">
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(ipt_reqdeptcd.value.length == 0)
  209. ipt_reqdeptnm.value = "";
  210. else
  211. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  212. "deptcd," + ipt_reqdeptcd.value, "", "reqdeptcd,reqdeptnm",
  213. ipt_reqdeptcd, "SPRPZ00200", "","");
  214. model.refresh();
  215. ]]>
  216. </script>
  217. </input>
  218. <button id="btn_windeptcd" class="icon_search" style="left:586px; top:36px; width:16px; height:16px; ">
  219. <caption/>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. var recv_list = "reqdeptcd,reqdeptnm";
  223. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
  224. model.refresh();
  225. ]]>
  226. </script>
  227. </button>
  228. <caption id="caption12" class="search_name" style="left:15px; top:61px; width:89px; height:17px; vertical-align:middle; ">청구일자 :</caption>
  229. <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:100px; top:60px; width:120px; height:19px; "/>
  230. <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:240px; top:60px; width:120px; height:19px; "/>
  231. <caption id="caption9" style="left:224px; top:60px; width:15px; height:20px; font-weight:bold; ">~</caption>
  232. <line id="line14" class="line_4" style="x1:1108px; y1:9px; x2:1108px; y2:105px; "/>
  233. <output id="opt_instcd" ref="/root/send/goodreq/instcd" class="output_fix" visibility="hidden" style="left:100px; top:10px; width:260px; height:19px; "/>
  234. <output id="opt_instcdnm" ref="/root/send/goodreq/instcdnm" class="output_fix" style="left:100px; top:10px; width:260px; height:19px; text-align:center; "/>
  235. <select1 id="cmb_goodflag" ref="/root/send/goodreq/goodflag" class="combo_s_essential" disabled="true" appearance="minimal" style="left:505px; top:8px; width:259px; height:19px; text-align:center; ">
  236. <choices>
  237. <itemset nodeset="/root/init/goodflag">
  238. <label ref="cdnm"/>
  239. <value ref="cdid"/>
  240. </itemset>
  241. </choices>
  242. </select1>
  243. <caption id="caption1" class="search_name" style="left:405px; top:9px; width:93px; height:17px; ">물품구분 :</caption>
  244. <caption id="caption4" class="search_name" style="left:785px; top:9px; width:86px; height:17px; vertical-align:middle; ">청구구분 :</caption>
  245. <select1 id="cmb_reqflag" ref="/root/send/goodreq/reqflag" class="combo_default" appearance="minimal" style="left:871px; top:8px; width:224px; height:19px; ">
  246. <choices>
  247. <itemset nodeset="/root/init/reqflag">
  248. <label ref="cdnm"/>
  249. <value ref="cdid"/>
  250. </itemset>
  251. </choices>
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. ]]>
  255. </script>
  256. </select1>
  257. <select1 id="cmb_reqmthd" ref="/root/send/goodreq/reqmthdflag" class="combo_default" disabled="true" appearance="minimal" style="left:100px; top:34px; width:260px; height:19px; text-align:center; ">
  258. <choices>
  259. <itemset nodeset="/root/init/reqmthd">
  260. <label ref="cdnm"/>
  261. <value ref="cdid"/>
  262. </itemset>
  263. </choices>
  264. </select1>
  265. <caption id="caption3" class="search_name" style="left:15px; top:35px; width:86px; height:17px; vertical-align:middle; ">청구방법 :</caption>
  266. <button id="btn_helppsn" class="icon_search" style="left:960px; top:34px; width:16px; height:16px; ">
  267. <caption/>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
  271. ipt_emplno.refresh();
  272. ipt_emplnm.refresh();
  273. ]]>
  274. </script>
  275. </button>
  276. <input id="ipt_emplnm" ref="/root/send/goodreq/emplnm" class="output_search" style="left:978px; top:34px; width:117px; height:19px; "/>
  277. <caption id="caption5" class="search_name" style="left:785px; top:35px; width:93px; height:17px; ">청 구 자 :</caption>
  278. <input id="ipt_emplno" ref="/root/send/goodreq/emplno" class="input_search" style="left:873px; top:34px; width:85px; height:19px; ">
  279. <script type="javascript" ev:event="onkeypress">
  280. <![CDATA[
  281. inputEnterKey("btn_search", "DOMActivate");
  282. ]]>
  283. </script>
  284. </input>
  285. <select1 id="cmb_workflag" ref="/root/send/goodreq/workflag" class="combo_default" appearance="minimal" style="left:505px; top:60px; width:260px; height:19px; text-align:center; ">
  286. <choices>
  287. <item>
  288. <label>전체</label>
  289. <value/>
  290. </item>
  291. <item>
  292. <label>일반청구</label>
  293. <value>1</value>
  294. </item>
  295. <item>
  296. <label>비치약품청구</label>
  297. <value>3</value>
  298. </item>
  299. <item>
  300. <label>응급약물청구</label>
  301. <value>5</value>
  302. </item>
  303. <item>
  304. <label>비치약품반납</label>
  305. <value>4</value>
  306. </item>
  307. <item>
  308. <label>응급약물반납</label>
  309. <value>2</value>
  310. </item>
  311. <item>
  312. <label>처방청구</label>
  313. <value>6</value>
  314. </item>
  315. </choices>
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. btn_search.dispatch("DOMActivate");
  319. ]]>
  320. </script>
  321. </select1>
  322. <caption id="caption14" class="search_name" style="left:405px; top:61px; width:86px; height:17px; vertical-align:middle; ">작업구분 :</caption>
  323. <caption id="caption15" class="search_name" style="left:15px; top:85px; width:89px; height:17px; vertical-align:middle; ">진행상태 :</caption>
  324. <select1 id="cmb_deliveprcsflag" ref="/root/send/goodreq/deliveprcsflag" class="combo_default" appearance="minimal" style="left:100px; top:84px; width:260px; height:19px; ">
  325. <choices>
  326. <itemset nodeset="/root/init/deliveprcsflag">
  327. <label ref="cdnm"/>
  328. <value ref="cdid"/>
  329. </itemset>
  330. </choices>
  331. </select1>
  332. <caption id="caption16" class="search_name" style="left:405px; top:85px; width:99px; height:17px; ">불출부서 :</caption>
  333. <select1 id="cmb_deptcd" ref="/root/send/goodreq/stocdeptcd" class="combo_s_essential" appearance="minimal" style="left:505px; top:85px; width:260px; height:19px; text-align:center; ">
  334. <choices>
  335. <itemset>
  336. <label/>
  337. <value/>
  338. </itemset>
  339. </choices>
  340. </select1>
  341. <button id="btn_searchgoodcd" class="icon_search" style="left:960px; top:60px; width:16px; height:16px; ">
  342. <caption/>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. model.makeValue("/root/send/goodiolist/instcd" ,model.getValue("/root/send/goodreq/instcd"));
  346. model.makeValue("/root/send/goodiolist/goodflag","PH");
  347. model.makeValue("/root/send/goodiolist/goodcd" ,model.getValue("/root/send/goodreq/goodcd"));
  348. model.makeValue("/root/send/goodiolist/goodnm" ,model.getValue("/root/send/goodreq/goodnm"));
  349. if (submit("TRRSD00192") == true) {
  350. var nodecnts = getNodesetCount("/root/init/main/goodlist");
  351. if (nodecnts >= "2") {
  352. group2.visible = true;
  353. } else if (nodecnts == "1") {
  354. var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
  355. var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
  356. model.setValue("/root/send/goodreq/goodcd" , goodcd)
  357. model.setValue("/root/send/goodreq/goodnm" , goodnm)
  358. } else {
  359. messageBox("검색된 코드가 없습니다.", "I");
  360. }
  361. }
  362. model.refresh();
  363. ]]>
  364. </script>
  365. </button>
  366. <input id="ipt_goodnm" ref="/root/send/goodreq/goodnm" class="input_fix" appearance="input" style="left:978px; top:60px; width:117px; height:19px; ">
  367. <script type="javascript" ev:event="xforms-value-changed">
  368. <![CDATA[
  369. if(ipt_goodnm.value.length == 0)
  370. {
  371. ipt_goodcd.value = "";
  372. }
  373. else {
  374. model.setValue("/root/send/goodreq/goodcd", "")
  375. btn_searchgoodcd.dispatch("DOMActivate");
  376. }
  377. model.refresh();
  378. ]]>
  379. </script>
  380. <script type="javascript" ev:event="onkeydown">
  381. <![CDATA[
  382. if (event.keyCode == 13)
  383. {
  384. ipt_goodnm.value = ipt_goodnm.currentText;
  385. ipt_goodnm.refresh();
  386. ipt_goodnm.dispatch("xforms-value-changed");
  387. }
  388. ]]>
  389. </script>
  390. </input>
  391. <input id="ipt_goodcd" ref="/root/send/goodreq/goodcd" class="input_s_essential" navindex="3" _chartype="upper" style="left:873px; top:60px; width:85px; height:19px; ">
  392. <script type="javascript" ev:event="xforms-value-changed">
  393. <![CDATA[
  394. if(ipt_goodcd.value.length == 0)
  395. {
  396. ipt_goodnm.value = "";
  397. }
  398. else {
  399. model.setValue("/root/send/goodreq/goodnm", "")
  400. btn_searchgoodcd.dispatch("DOMActivate");
  401. }
  402. model.refresh();
  403. ]]>
  404. </script>
  405. <script type="javascript" ev:event="onkeydown">
  406. <![CDATA[
  407. if (event.keyCode == 13)
  408. {
  409. ipt_goodcd.value = ipt_goodcd.currentText;
  410. ipt_goodcd.refresh();
  411. ipt_goodcd.dispatch("xforms-value-changed");
  412. }
  413. ]]>
  414. </script>
  415. </input>
  416. <caption id="caption11" class="search_name" style="left:785px; top:61px; width:86px; height:17px; ">약품코드 :</caption>
  417. <select1 id="radio1" ref="/root/temp/viewflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:873px; top:86px; width:160px; height:20px; border-style:none; ">
  418. <choices>
  419. <item>
  420. <label>일반</label>
  421. <value>1</value>
  422. </item>
  423. <item>
  424. <label>집계</label>
  425. <value>2</value>
  426. </item>
  427. </choices>
  428. <script type="javascript" ev:event="xforms-value-changed">
  429. <![CDATA[
  430. btn_search.dispatch("DOMActivate");
  431. ]]>
  432. </script>
  433. </select1>
  434. <caption id="caption13" class="search_name" style="left:785px; top:85px; width:99px; height:17px; ">조회구분 :</caption>
  435. </group>
  436. <caption id="caption8" class="tit_2" style="left:5px; top:136px; width:141px; height:14px; ">약품 청구현황내역</caption>
  437. <line id="line1" class="line_1" style="x1:0px; y1:156px; x2:1195px; y2:156px; "/>
  438. <button id="btn_excel" class="btn5_letter3" style="left:1138px; top:135px; width:53px; height:19px; ">
  439. <caption>Excel</caption>
  440. <script type="javascript" ev:event="DOMActivate">
  441. <![CDATA[
  442. if (model.getValue("/root/temp/viewflag") == "1") {
  443. var fileName = window.fileDialog("save", ",", false, "청구현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  444. if (fileName != "")
  445. {
  446. grd_goodreq.saveExcel(fileName, "약품청구현황List");
  447. }
  448. } else {
  449. var fileName = window.fileDialog("save", ",", false, "청구현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  450. if (fileName != "")
  451. {
  452. datagrid1.saveExcel(fileName, "약품청구현황List");
  453. }
  454. }
  455. ]]>
  456. </script>
  457. </button>
  458. <button id="button13" class="btn6_letter5" style="left:1043px; top:133px; width:92px; height:22px; ">
  459. <caption>불출서출력</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. if (model.getValue("/root/temp/viewflag") == "1") {
  463. freqlistprint();
  464. } else {
  465. alert("조회구분이 '일반'일 때 출력할 수 있습니다.");
  466. }
  467. ]]>
  468. </script>
  469. </button>
  470. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" class="datagrid2" caption="청구일자^청구부서^청구번호^청구순번^약품코드^물품코드^약품명^규격^모델^청구수량^청구단위^제조회사^거래처^진행상태^청구자명^조정수량^조정사유^청구구분^작업구분^청구방법^출고수량^미출고사유^비고^불출구분^구매구분^부서승인내역^부서승인내역^구매접수^예산계정^예산계정^연구과제^연구과제^포장구성단위^보조거래처명" colsep="^" colwidth="68, 89, 60, 60, 80, 23, 240, 89, 8, 63, 55, 73, 100, 70, 63, 60, 91, 70, 70, 70, 58, 100, 100, 70, 70, 55, 80, 60, 44, 100, 43, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:161px; width:1195px; height:570px; ">
  471. <col ref="reqdd" format="yyyy-mm-dd"/>
  472. <col ref="reqdeptnm"/>
  473. <col ref="reqno" style="text-align:center; "/>
  474. <col ref="reqseqno" style="text-align:center; "/>
  475. <col ref="goodcd" style="text-align:left; "/>
  476. <col ref="allsizespecid" visibility="hidden" style="text-align:center; "/>
  477. <col ref="goodnm"/>
  478. <col ref="goodspec"/>
  479. <col ref="goodmodel" visibility="hidden"/>
  480. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  481. <col ref="requnit" style="text-align:center; "/>
  482. <col ref="prodcmpynm"/>
  483. <col ref="suppcustnm"/>
  484. <col ref="deliveprcsflag" style="text-align:center; "/>
  485. <col ref="reqpsnnm" style="text-align:center; "/>
  486. <col ref="adjtqty" format="#,###" style="text-align:right; "/>
  487. <col ref="adjtrsn" style="text-align:right; "/>
  488. <col ref="reqflag" style="text-align:center; "/>
  489. <col ref="workflag" style="text-align:center; "/>
  490. <col ref="reqmthdflag" style="text-align:center; "/>
  491. <col ref="deliveqty" format="#,###" style="text-align:right; "/>
  492. <col ref="unwinresn"/>
  493. <col ref="cmt"/>
  494. <col ref="deliveflag" visibility="hidden" style="text-align:center; "/>
  495. <col ref="purcflag" visibility="hidden" style="text-align:center; "/>
  496. <col ref="deptaprvynnm" style="text-align:center; "/>
  497. <col ref="deptaprvdd" style="text-align:center; "/>
  498. <col ref="acptflagnm" style="text-align:center; "/>
  499. <col ref="bugtcd" visibility="hidden" style="text-align:center; "/>
  500. <col ref="bugtnm" visibility="hidden" style="text-align:center; "/>
  501. <col ref="stdysubjno" visibility="hidden" style="text-align:center; "/>
  502. <col ref="stdysubjnm" visibility="hidden" style="text-align:center; "/>
  503. <col ref="deliveunit" visibility="hidden"/>
  504. <col ref="subsuplplcenm" visibility="hidden"/>
  505. <script type="javascript" ev:event="onaftersort">
  506. <![CDATA[
  507. grd_goodreq.gridToInstance();
  508. ]]>
  509. </script>
  510. </datagrid>
  511. <group id="group2" visibility="hidden" style="left:700px; top:95px; width:415px; height:165px; ">
  512. <datagrid id="grd_goodlist" nodeset="/root/init/main/goodlist" visibility="visible" caption="약품코드^약품명^기관코드^물품구분^작업년월^부서코드^대분류코드^재고조정처리여부" colsep="^" colwidth="102, 270, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:25px; width:410px; height:139px; ">
  513. <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
  514. <col ref="goodnm" type="output" style="text-align:left; "/>
  515. <col ref="instcd" visibility="hidden" _key="true"/>
  516. <col ref="goodflag" visibility="hidden" _key="true"/>
  517. <script type="javascript" ev:event="ondblclick">
  518. <![CDATA[
  519. if (isDataCell() == true) {
  520. var goodcd = model.getValue("/root/init/main/goodlist[" + grd_goodlist.row + "]/goodcd");
  521. var goodnm = model.getValue("/root/init/main/goodlist[" + grd_goodlist.row + "]/goodnm");
  522. model.setValue("/root/send/goodreq/goodcd" , goodcd);
  523. model.setValue("/root/send/goodreq/goodnm" , goodnm);
  524. group2.visible = false;
  525. }
  526. ipt_goodcd.refresh();
  527. ipt_goodnm.refresh();
  528. ]]>
  529. </script>
  530. </datagrid>
  531. <button id="button5" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
  532. <caption>숨기기</caption>
  533. <script type="javascript" ev:event="DOMActivate">
  534. <![CDATA[
  535. group2.visible = false
  536. ]]>
  537. </script>
  538. </button>
  539. </group>
  540. <datagrid id="datagrid1" visibility="hidden" caption="caption1^caption2" colsep="^" colwidth="100,150" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:161px; width:1195px; height:570px; ">
  541. <col ref="goodcd"/>
  542. <col ref="goodnm"/>
  543. </datagrid>
  544. </group>
  545. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  546. <caption id="caption10" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">약품청구현황조회</caption>
  547. </group>
  548. <group id="group3" style="left:0px; top:12; width:1195px; height:27px; ">
  549. <button id="button2" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  550. <caption>화면이동</caption>
  551. </button>
  552. <button id="button3" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  553. <caption>출력</caption>
  554. </button>
  555. <button id="button6" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  556. <caption>초기화</caption>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. fInitialize();
  560. ]]>
  561. </script>
  562. </button>
  563. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  564. </group>
  565. </xhtml:body>
  566. </xhtml:html>