SMRST07000_약국재고통계.xrw 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  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: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. <drugstatsinfo>
  11. <deptstocinfo>
  12. <deptstoclist>
  13. <stkdate/>
  14. <iokindnm/>
  15. <inputqty/>
  16. <inputamt/>
  17. <outputqty/>
  18. <outputamt/>
  19. <stocqty/>
  20. <stocamt/>
  21. </deptstoclist>
  22. </deptstocinfo>
  23. <clsstocinfo>
  24. <clsstoclist/>
  25. </clsstocinfo>
  26. <durgddstocinfo>
  27. <drugddstoclist>
  28. <goodcd/>
  29. <goodnm/>
  30. <gooduitcost/>
  31. <maincustlastsuplplnm/>
  32. <bfstocqty/>
  33. <inputqty/>
  34. <outputqty/>
  35. <stocqty/>
  36. <purcqty/>
  37. </drugddstoclist>
  38. </durgddstocinfo>
  39. <deptinfo>
  40. <stkdeptlist/>
  41. </deptinfo>
  42. </drugstatsinfo>
  43. </main>
  44. <cond>
  45. <deptsrchinfo>
  46. <instcd/>
  47. <stkdeptcd/>
  48. <stofrdd/>
  49. <stotodd/>
  50. <goodcd/>
  51. <goodnm/>
  52. <suppcustcd/>
  53. <suppcustnm/>
  54. </deptsrchinfo>
  55. <drugclsrchinfo>
  56. <instcd/>
  57. <stkdeptcd/>
  58. <stofrdd/>
  59. <lrgcd/>
  60. <goodcd/>
  61. <goodnm/>
  62. <mngtcls/>
  63. </drugclsrchinfo>
  64. <drugddsrchinfo>
  65. <instcd/>
  66. <stkdeptcd/>
  67. <stofrdd/>
  68. <stotodd/>
  69. <lrgcd/>
  70. <goodcd/>
  71. <goodnm/>
  72. <mngtcls/>
  73. </drugddsrchinfo>
  74. </cond>
  75. <send>
  76. <reqdata/>
  77. </send>
  78. <init>
  79. <cmb_deptcd2>
  80. <deptcdlist/>
  81. </cmb_deptcd2>
  82. <cmb_deptcd3>
  83. <deptcdlist/>
  84. </cmb_deptcd3>
  85. </init>
  86. <hidden>
  87. <common>
  88. <instcdinfo/>
  89. </common>
  90. <lrgcdinfo/>
  91. </hidden>
  92. <temp>
  93. </temp>
  94. </root>
  95. </instance>
  96. <script type="javascript" ev:event="xforms-ready">
  97. <![CDATA[
  98. //기관코드 조회
  99. zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
  100. model.setValue("/root/cond/deptsrchinfo/instcd" , getUserInfo("dutplceinstcd"));
  101. model.setValue("/root/cond/drugclsrchinfo/instcd" , getUserInfo("dutplceinstcd"));
  102. model.setValue("/root/cond/drugddsrchinfo/instcd" , getUserInfo("dutplceinstcd"));
  103. misfComboComCdList("030M0003",cmb_mngtcls,"Y");
  104. misfComboComCdList("030M0003",cmb_mngtcls2,"Y");
  105. //약국 대분류 조회
  106. misfComboComCdListMulti("R0315","cmb_lrgcd");
  107. copyNodesetType("/root/hidden/lrgcdinfo","/root/init/comcd/R03150/R03150","replace",model,model)
  108. addComboItem("cmb_lrgcd","전체","-","above");
  109. addComboItem("cmb_lrgcd2","전체","-","above");
  110. cmb_lrgcd.value="-";
  111. cmb_lrgcd2.value="-";
  112. //약국 재고 부서 조회
  113. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  114. rszfComboStockArthDeptcdList(cmb_deptcd,getUserInfo("dutplceinstcd") ,"PH" );
  115. copyNodesetType("/root/init/cmb_deptcd2/deptcdlist","/root/init/cmb_deptcd/deptcdlist","replace",model,model)
  116. addComboItem("cmb_deptcd2","전체","-","above");
  117. cmb_deptcd2.value="-";
  118. copyNodesetType("/root/init/cmb_deptcd3/deptcdlist","/root/init/cmb_deptcd/deptcdlist","replace",model,model)
  119. model.setValue("/root/cond/deptsrchinfo/stofrdd" ,getCurrentDate());
  120. model.setValue("/root/cond/deptsrchinfo/stotodd" ,getCurrentDate());
  121. model.setValue("/root/cond/drugclsrchinfo/stofrdd" ,getCurrentDate());
  122. model.setValue("/root/cond/drugddsrchinfo/stofrdd" ,getCurrentDate());
  123. model.setValue("/root/cond/drugddsrchinfo/stotodd" ,getCurrentDate());
  124. model.removeNodeset("/root/main/drugstatsinfo/deptstocinfo/deptstoclist");
  125. model.removeNodeset("/root/main/drugstatsinfo/clsstocinfo/clsstoclist");
  126. model.removeNodeset("/root/main/drugstatsinfo/durgddstocinfo/drugddstoclist");
  127. model.removeNodeset("/root/tmp/chkinfo/chkflag");
  128. model.refresh();
  129. ]]>
  130. </script>
  131. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  132. <submission id="TRRSD00192" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodiolist" resultref="/root/init/main"/>
  133. <submission id="TRRST07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/drugstatsinfo"/>
  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="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  138. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  139. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  140. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  141. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  142. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  143. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  144. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  145. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  146. <script type="javascript">
  147. <![CDATA[
  148. // 각 탭별 약국 재고 조회
  149. function fDrugStatsSrch(Flag){
  150. if(Flag =="0"){
  151. if(model.getValue("/root/cond/deptsrchinfo/stkdeptcd")==""){
  152. messageBox("약국부서는 필수조회조건","I009");
  153. model.setFocus("cmb_deptcd");
  154. return;
  155. }
  156. if(model.getValue("/root/cond/deptsrchinfo/goodcd")==""){
  157. messageBox("물품코드는 필수조회조건","I009");
  158. model.setFocus("ipt_goodcd");
  159. return;
  160. }
  161. model.makeValue("/root/send/reqdata/flag" ,Flag);
  162. model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/deptsrchinfo/instcd"));
  163. model.makeValue("/root/send/reqdata/stkdeptcd" ,model.getValue("/root/cond/deptsrchinfo/stkdeptcd"));
  164. model.makeValue("/root/send/reqdata/stofrdd" ,model.getValue("/root/cond/deptsrchinfo/stofrdd"));
  165. model.makeValue("/root/send/reqdata/stotodd" ,model.getValue("/root/cond/deptsrchinfo/stotodd"));
  166. model.makeValue("/root/send/reqdata/goodcd" ,model.getValue("/root/cond/deptsrchinfo/goodcd"));
  167. model.makeValue("/root/send/reqdata/suppcustcd" ,model.getValue("/root/cond/deptsrchinfo/suppcustcd"));
  168. }else if(Flag =="1"){
  169. model.makeValue("/root/send/reqdata/flag" ,Flag);
  170. model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/drugclsrchinfo/instcd"));
  171. model.makeValue("/root/send/reqdata/stkdeptcd" ,model.getValue("/root/cond/drugclsrchinfo/stkdeptcd"));
  172. model.makeValue("/root/send/reqdata/stofrdd" ,model.getValue("/root/cond/drugclsrchinfo/stofrdd"));
  173. model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/drugclsrchinfo/lrgcd"));
  174. model.makeValue("/root/send/reqdata/goodcd" ,model.getValue("/root/cond/drugclsrchinfo/goodcd"));
  175. model.makeValue("/root/send/reqdata/mngtcls" ,model.getValue("/root/cond/drugclsrchinfo/mngtcls"));
  176. }else if(Flag =="2"){
  177. if(model.getValue("/root/cond/drugddsrchinfo/stkdeptcd")==""){
  178. messageBox("약국부서는 필수조회조건","I009");
  179. model.setFocus("cmb_deptcd3");
  180. return;
  181. }
  182. model.makeValue("/root/send/reqdata/flag" ,Flag);
  183. model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/drugddsrchinfo/instcd"));
  184. model.makeValue("/root/send/reqdata/stkdeptcd" ,model.getValue("/root/cond/drugddsrchinfo/stkdeptcd"));
  185. model.makeValue("/root/send/reqdata/stofrdd" ,model.getValue("/root/cond/drugddsrchinfo/stofrdd"));
  186. model.makeValue("/root/send/reqdata/stotodd" ,model.getValue("/root/cond/drugddsrchinfo/stotodd"));
  187. model.makeValue("/root/send/reqdata/lrgcd" ,model.getValue("/root/cond/drugddsrchinfo/lrgcd"));
  188. model.makeValue("/root/send/reqdata/goodcd" ,model.getValue("/root/cond/drugddsrchinfo/goodcd"));
  189. model.makeValue("/root/send/reqdata/mngtcls" ,model.getValue("/root/cond/drugddsrchinfo/mngtcls"));
  190. model.makeValue("/root/send/reqdata/suppcustcd" ,model.getValue("/root/cond/deptsrchinfo/suppcustcd"));
  191. }
  192. if(submit("TRRST07001")){
  193. if(Flag =="0"){
  194. if(grd_deptstoclist.rows > 1){
  195. /*
  196. model.removeNodeset("/root/temp/stkdate");
  197. model.makeValue("/root/temp/stkdate",model.getValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist["+grd_deptstoclist.bottomrow+"]/stkdate"));
  198. grd_deptstoclist.addRow(false);
  199. grd_deptstoclist.valueMatrix(grd_deptstoclist.row,grd_deptstoclist.colRef("stkdate")) = model.getValue("/root/temp/stkdate");
  200. grd_deptstoclist.valueMatrix(grd_deptstoclist.row,grd_deptstoclist.colRef("iokindnm")) ="출고 =>[재고보정]";
  201. model.setValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist["+grd_deptstoclist.row+"]/stocqty",model.getValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist/orgstocqty"));
  202. model.setValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist["+grd_deptstoclist.row+"]/stocamt",model.getValue("/root/main/drugstatsinfo/deptstocinfo/deptstoclist/orgstocamt"));
  203. grd_deptstoclist.refresh();*/
  204. }
  205. }else if(Flag =="1"){
  206. var deptcnt = parseInt(model.getValue("/root/main/drugstatsinfo/deptinfo/stkdeptlist/grd_size"));
  207. var new_caption = model.getValue("/root/main/drugstatsinfo/deptinfo/stkdeptlist/grd_deptcd");
  208. var chkflag = model.getValue("/root/tmp/chkinfo/chkflag");
  209. if(chkflag!="Y"){
  210. for(var i =1; i <= deptcnt;i++ ){
  211. grd_clsstoclist.addColumn("ref:"+"depthngnm"+i,false);
  212. grd_clsstoclist.caption = grd_clsstoclist.caption+"^depthngnm"+i;
  213. // 한번 조회해서 셋팅된 부서를 다시 셋팅안하기 위한 flag
  214. model.makeValue("/root/tmp/chkinfo/chkflag","Y");
  215. }
  216. grd_clsstoclist.rebuild();
  217. grd_clsstoclist.caption = "약품코드^약품명^포장단위^포장수량^"+new_caption
  218. for(var i =1; i <= deptcnt;i++ ){
  219. grd_clsstoclist.colAttribute(grd_clsstoclist.colRef("depthngnm"+i),"format")="#,###.##";
  220. grd_clsstoclist.colAttribute(grd_clsstoclist.colRef("depthngnm"+i),"style")="text-align:right;";
  221. }
  222. }
  223. model.makeNode("/root/main/drugstatsinfo/clsstocinfo/clsstoclist");
  224. copyNodesetType("/root/main/drugstatsinfo/clsstocinfo/clsstoclist","/root/main/drugstatsinfo/init/benode_clsstocinfo/clsstoclist","replace",model,model);
  225. model.refresh();
  226. model.removeNodeset("/root/main/drugstatsinfo/init/benode_clsstocinfo/clsstoclist");
  227. }
  228. model.removeNodeset("/root/send/reqdata");
  229. }
  230. }
  231. ]]>
  232. </script>
  233. </xhtml:head>
  234. <xhtml:body pagewidth="1270" pageheight="780" guideline="1,1242;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  235. <group id="group1" style="left:0px; top:0px; width:1125px; height:13px; ">
  236. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">약국재고통계</caption>
  237. </group>
  238. <button id="btn_srch1" class="btn_sw8" group="tab" selected="true" style="left:6px; top:15px; width:100px; height:22px; ">
  239. <caption>약국별 재고조회</caption>
  240. <script type="javascript" ev:event="onclick">
  241. <![CDATA[
  242. model.toggle("case1");
  243. if(model.getValue("/root/cond/deptsrchinfo/stkdeptcd")!=""){
  244. fDrugStatsSrch(switch1.selectedIndex);
  245. }
  246. ]]>
  247. </script>
  248. </button>
  249. <switch id="switch1" style="left:5px; top:40px; width:1239px; height:688px; ">
  250. <case id="case1" selected="true">
  251. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:1230px; height:67px; background-color:#fffbf2; border-color:#ffd799; "/>
  252. <button id="btn_search" class="btn1_letter2" style="left:1090px; top:25px; width:56px; height:22px; ">
  253. <caption>조회</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. fDrugStatsSrch(switch1.selectedIndex);
  257. ]]>
  258. </script>
  259. </button>
  260. <line id="line4" class="line_4" style="x1:1080px; y1:20px; x2:1080px; y2:52px; "/>
  261. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:165px; height:13px; ">약국별 재고조회</caption>
  262. <line id="line1" class="line_1" style="x1:5px; y1:95px; x2:1235px; y2:95px; "/>
  263. <select1 id="cmb_instcd" ref="/root/cond/deptsrchinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:19px; width:175px; height:19px; text-align:center; ">
  264. <choices>
  265. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  266. <label ref="cdnm"/>
  267. <value ref="cdid"/>
  268. </itemset>
  269. </choices>
  270. </select1>
  271. <input id="ipt_reqfrdd" ref="/root/cond/deptsrchinfo/stofrdd" class="input_s_essential" navindex="1" inputtype="date" style="left:720px; top:20px; width:100px; height:19px; text-align:center; "/>
  272. <caption id="caption2" class="search_name" style="left:20px; top:45px; width:86px; height:17px; ">약품코드 :</caption>
  273. <caption id="caption24" class="search_name" style="left:630px; top:20px; width:86px; height:17px; ">검색기간 :</caption>
  274. <caption id="caption14" class="search_name" style="left:20px; top:19px; width:86px; height:17px; ">병원구분 :</caption>
  275. <button id="button1" class="btn1_letter2" style="left:1148px; top:25px; width:56px; height:22px; ">
  276. <caption>엑셀</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  280. if (fileName != "")
  281. {
  282. grd_deptstoclist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  283. }
  284. ]]>
  285. </script>
  286. </button>
  287. <select1 id="cmb_deptcd" ref="/root/cond/deptsrchinfo/stkdeptcd" class="combo_s_essential" appearance="minimal" style="left:421px; top:20px; width:125px; height:19px; ">
  288. <choices>
  289. <itemset>
  290. <label/>
  291. <value/>
  292. </itemset>
  293. </choices>
  294. </select1>
  295. <caption id="caption10" class="search_name" style="left:335px; top:20px; width:90px; height:17px; ">약 국 :</caption>
  296. <caption id="caption11" class="search_no_b" style="left:830px; top:22px; width:12px; height:17px; ">~</caption>
  297. <input id="input3" ref="/root/cond/deptsrchinfo/stotodd" class="input_s_essential" navindex="2" inputtype="date" style="left:855px; top:20px; width:100px; height:19px; text-align:center; "/>
  298. <datagrid id="grd_deptstoclist" nodeset="/root/main/drugstatsinfo/deptstocinfo/deptstoclist" class="datagrid2" autoresize="true" caption="날 짜^적 요^입고량^입고액^출고량^출고액^재고량^재고액^실사재고량^실사재고액^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균&#xA;의뢰^비고^total&#xA;수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag" colsep="^" colwidth="99, 295, 87, 103, 89, 101, 81, 113, 100, 100" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:5px; top:100px; width:1230px; height:580px; ">
  299. <col ref="stkdate" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  300. <col ref="iokindnm" type="output" style="text-align:left; "/>
  301. <col ref="inputqty" type="output" format="#,###.##" style="text-align:right; "/>
  302. <col ref="inputamt" type="output" format="#,###.##" style="text-align:right; "/>
  303. <col ref="outputqty" type="output" format="#,###.##" style="text-align:right; "/>
  304. <col ref="outputamt" type="output" format="#,###.##" style="text-align:right; "/>
  305. <col ref="stocqty" type="output" format="#,###.##" style="text-align:right; "/>
  306. <col ref="stocamt" type="output" format="#,###.##" style="text-align:right; "/>
  307. <col ref="orgstocqty" type="output" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  308. <col ref="orgstocamt" type="output" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  309. <script type="javascript" ev:event="onaftersort">
  310. <![CDATA[
  311. grd_deptstoclist.gridToInstance();
  312. ]]>
  313. </script>
  314. </datagrid>
  315. <input id="ipt_goodnm" ref="/root/cond/deptsrchinfo/goodnm" class="input_fix" appearance="input" style="left:244px; top:44px; width:215px; height:19px; ">
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. if(ipt_goodnm.value.length == 0)
  319. {
  320. ipt_goodcd.value = "";
  321. }
  322. else {
  323. model.setValue("/root/cond/deptsrchinfo/goodcd", "")
  324. btn_searchgoodcd.dispatch("DOMActivate");
  325. }
  326. model.refresh();
  327. ]]>
  328. </script>
  329. <script type="javascript" ev:event="onkeydown">
  330. <![CDATA[
  331. if (event.keyCode == 13)
  332. {
  333. ipt_goodnm.value = ipt_goodnm.currentText;
  334. ipt_goodnm.refresh();
  335. ipt_goodnm.dispatch("xforms-value-changed");
  336. }
  337. ]]>
  338. </script>
  339. </input>
  340. <button id="btn_searchgoodcd" class="icon_search" style="left:225px; top:45px; width:16px; height:16px; ">
  341. <caption/>
  342. <script type="javascript" ev:event="DOMActivate">
  343. <![CDATA[
  344. model.makeValue("/root/send/goodiolist/instcd" ,model.getValue("/root/cond/deptsrchinfo/instcd"));
  345. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  346. model.makeValue("/root/send/goodiolist/goodflag","PH");
  347. model.makeValue("/root/send/goodiolist/goodcd" ,model.getValue("/root/cond/deptsrchinfo/goodcd"));
  348. model.makeValue("/root/send/goodiolist/goodnm" ,model.getValue("/root/cond/deptsrchinfo/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/cond/deptsrchinfo/goodcd" , goodcd)
  357. model.setValue("/root/cond/deptsrchinfo/goodnm" , goodnm)
  358. } else {
  359. messageBox("검색된 코드가 없습니다.", "I");
  360. }
  361. }
  362. model.refresh();
  363. ]]>
  364. </script>
  365. </button>
  366. <input id="ipt_goodcd" ref="/root/cond/deptsrchinfo/goodcd" class="input_s_essential" navindex="3" _chartype="upper" style="left:110px; top:44px; width:111px; height:19px; ">
  367. <script type="javascript" ev:event="xforms-value-changed">
  368. <![CDATA[
  369. if(ipt_goodcd.value.length == 0)
  370. {
  371. ipt_goodnm.value = "";
  372. }
  373. else {
  374. model.setValue("/root/cond/deptsrchinfo/goodnm", "")
  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_goodcd.value = ipt_goodcd.currentText;
  385. ipt_goodcd.refresh();
  386. ipt_goodcd.dispatch("xforms-value-changed");
  387. }
  388. ]]>
  389. </script>
  390. </input>
  391. <output id="opt_suppcustnm" ref="/root/cond/deptsrchinfo/suppcustnm" class="output_fix" appearance="output" style="left:842px; top:45px; width:174px; height:19px; "/>
  392. <button id="btn_suppcustcd" class="icon_search" style="left:823px; top:47px; width:16px; height:16px; ">
  393. <caption/>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. //opt_instcd2.value="001"; //판매회사 리스트는 001로 모두 공유하는 것으로 변경. 2009.09.29
  397. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  398. model.refresh();
  399. ]]>
  400. </script>
  401. </button>
  402. <input id="ipt_suppcustcd" ref="/root/cond/deptsrchinfo/suppcustcd" class="input_default" style="left:720px; top:45px; width:100px; height:19px; ">
  403. <script type="javascript" ev:event="xforms-value-changed">
  404. <![CDATA[
  405. if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ){
  406. model.setValue(opt_suppcustnm.attribute("ref"),"");
  407. }else{
  408. var instcd = getUserInfo("dutplceinstcd");
  409. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","instcd");
  410. }
  411. model.refresh();
  412. ]]>
  413. </script>
  414. <script type="javascript" ev:event="onkeydown">
  415. <![CDATA[
  416. if(event.keyCode == 9)
  417. {
  418. if(event.shiftKey)model.setFocus("ipt_maincustlastsuplplce");
  419. else model.setFocus("cmb_conflag");
  420. }
  421. //event.preventDefault();
  422. ]]>
  423. </script>
  424. </input>
  425. <caption id="caption12" class="search_name" style="left:630px; top:45px; width:86px; height:17px; ">제약회사 :</caption>
  426. <group id="group2" visibility="hidden" style="left:105px; top:75px; width:415px; height:165px; ">
  427. <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; ">
  428. <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
  429. <col ref="goodnm" type="output" style="text-align:left; "/>
  430. <col ref="instcd" visibility="hidden" _key="true"/>
  431. <col ref="goodflag" visibility="hidden" _key="true"/>
  432. <script type="javascript" ev:event="ondblclick">
  433. <![CDATA[
  434. if (isDataCell() == true) {
  435. var goodcd = model.getValue("/root/init/main/goodlist[" + grd_goodlist.row + "]/goodcd");
  436. var goodnm = model.getValue("/root/init/main/goodlist[" + grd_goodlist.row + "]/goodnm");
  437. model.setValue("/root/cond/deptsrchinfo/goodcd" , goodcd)
  438. model.setValue("/root/cond/deptsrchinfo/goodnm" , goodnm)
  439. group2.visible = false;
  440. }
  441. ipt_goodcd.refresh();
  442. ipt_goodnm.refresh();
  443. ]]>
  444. </script>
  445. </datagrid>
  446. <button id="button5" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
  447. <caption>숨기기</caption>
  448. <script type="javascript" ev:event="DOMActivate">
  449. <![CDATA[
  450. group2.visible = false
  451. ]]>
  452. </script>
  453. </button>
  454. </group>
  455. </case>
  456. <case id="case2">
  457. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1230px; height:67px; background-color:#fffbf2; border-color:#ffd799; "/>
  458. <caption id="caption3" class="tit_2" style="left:5px; top:78px; width:150px; height:13px; ">약품분류별 재고조회</caption>
  459. <datagrid id="grd_clsstoclist" nodeset="/root/main/drugstatsinfo/clsstocinfo/clsstoclist" class="datagrid2" caption="약품코드^약품명^포장단위^포장수량" colsep="^" colwidth="93, 321, 57, 59" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:0px; top:100px; width:1230px; height:580px; ">
  460. <col ref="goodcd" type="output" style="text-align:center; "/>
  461. <col ref="goodnm" type="output" style="text-align:left; "/>
  462. <col ref="purcunit" type="output" style="text-align:center; "/>
  463. <col ref="purcqty" format="#,###.##" style="text-align:right; "/>
  464. <!--<col ref="depthngnm1" format="#,###.##" style="text-align:right; "/>
  465. <col ref="depthngnm2" format="#,###.##" style="text-align:right; "/>^부서1^부서2^부서3^부서4^부서5^부서6^부서7^부서8^부서9^부서10
  466. <col ref="depthngnm3" format="#,###.##" style="text-align:right; "/>
  467. <col ref="depthngnm4" format="#,###.##" style="text-align:right; "/>
  468. <col ref="depthngnm5" format="#,###.##" style="text-align:right; "/>
  469. <col ref="depthngnm6" format="#,###.##" style="text-align:right; "/>
  470. <col ref="depthngnm7" format="#,###.##" style="text-align:right; "/>
  471. <col ref="depthngnm8" format="#,###.##" style="text-align:right; "/>
  472. <col ref="depthngnm9" visibility="hidden" format="#,###.##" style="text-align:right; "/>
  473. <col ref="depthngnm10" visibility="hidden" format="#,###.##" style="text-align:right; "/>-->
  474. </datagrid>
  475. <button id="button3" class="btn1_letter2" style="left:1093px; top:25px; width:56px; height:22px; ">
  476. <caption>엑셀</caption>
  477. <script type="javascript" ev:event="DOMActivate">
  478. <![CDATA[
  479. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  480. if (fileName != "")
  481. {
  482. grd_clsstoclist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  483. }
  484. ]]>
  485. </script>
  486. </button>
  487. <button id="button6" class="btn1_letter2" style="left:1035px; top:25px; width:56px; height:22px; ">
  488. <caption>조회</caption>
  489. <script type="javascript" ev:event="DOMActivate">
  490. <![CDATA[
  491. fDrugStatsSrch(switch1.selectedIndex);
  492. ]]>
  493. </script>
  494. </button>
  495. <input id="input1" ref="/root/cond/drugclsrchinfo/stofrdd" class="input_s_essential" inputtype="date" style="left:740px; top:15px; width:100px; height:19px; text-align:center; "/>
  496. <select1 id="cmb_disinstcd2" ref="/root/cond/drugclsrchinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:115px; top:19px; width:175px; height:19px; text-align:center; ">
  497. <choices>
  498. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  499. <label ref="cdnm"/>
  500. <value ref="cdid"/>
  501. </itemset>
  502. </choices>
  503. </select1>
  504. <caption id="caption4" class="search_name" style="left:345px; top:15px; width:94px; height:17px; ">약 국 :</caption>
  505. <caption id="caption7" class="search_name" style="left:650px; top:15px; width:93px; height:17px; ">기준일자 :</caption>
  506. <caption id="caption8" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">병원구분 :</caption>
  507. <line id="line2" class="line_4" style="x1:1025px; y1:20px; x2:1025px; y2:52px; "/>
  508. <select1 id="cmb_deptcd2" ref="/root/cond/drugclsrchinfo/stkdeptcd" class="combo_s_essential" appearance="minimal" style="left:435px; top:15px; width:125px; height:19px; ">
  509. <choices>
  510. <itemset nodeset="/root/init/cmb_deptcd2/deptcdlist">
  511. <label ref="deptnm"/>
  512. <value ref="deptcd"/>
  513. </itemset>
  514. </choices>
  515. </select1>
  516. <caption id="caption9" class="search_name" visibility="hidden" style="left:795px; top:70px; width:86px; height:17px; ">약품분류 :</caption>
  517. <select1 id="cmb_lrgcd" ref="/root/cond/drugclsrchinfo/lrgcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:895px; top:70px; width:125px; height:19px; ">
  518. <choices>
  519. <itemset nodeset="/root/hidden/csrdeptlist">
  520. <label ref="deptnm"/>
  521. <value ref="deptcd"/>
  522. </itemset>
  523. </choices>
  524. </select1>
  525. <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1230px; y2:95px; "/>
  526. <group id="group3" visibility="hidden" style="left:360px; top:80px; width:415px; height:165px; ">
  527. <datagrid id="grd_goodlist2" 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; ">
  528. <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
  529. <col ref="goodnm" type="output" style="text-align:left; "/>
  530. <col ref="instcd" visibility="hidden" _key="true"/>
  531. <col ref="goodflag" visibility="hidden" _key="true"/>
  532. <script type="javascript" ev:event="ondblclick">
  533. <![CDATA[
  534. if (isDataCell() == true) {
  535. var goodcd = model.getValue("/root/init/main/goodlist[" + grd_goodlist2.row + "]/goodcd");
  536. var goodnm = model.getValue("/root/init/main/goodlist[" + grd_goodlist2.row + "]/goodnm");
  537. model.setValue("/root/cond/drugclsrchinfo/goodcd" , goodcd)
  538. model.setValue("/root/cond/drugclsrchinfo/goodnm" , goodnm)
  539. group3.visible = false;
  540. }
  541. ipt_goodcd2.refresh();
  542. ipt_goodnm2.refresh();
  543. ]]>
  544. </script>
  545. </datagrid>
  546. <button id="button2" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
  547. <caption>숨기기</caption>
  548. <script type="javascript" ev:event="DOMActivate">
  549. <![CDATA[
  550. group3.visible = false
  551. ]]>
  552. </script>
  553. </button>
  554. </group>
  555. <button id="btn_searchgoodcd2" class="icon_search" style="left:551px; top:46px; width:16px; height:16px; ">
  556. <caption/>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. model.makeValue("/root/send/goodiolist/instcd" ,model.getValue("/root/cond/drugclsrchinfo/instcd"));
  560. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  561. model.makeValue("/root/send/goodiolist/goodflag","PH");
  562. model.makeValue("/root/send/goodiolist/goodcd" ,model.getValue("/root/cond/drugclsrchinfo/goodcd"));
  563. model.makeValue("/root/send/goodiolist/goodnm" ,model.getValue("/root/cond/drugclsrchinfo/goodnm"));
  564. if (submit("TRRSD00192") == true) {
  565. var nodecnts = getNodesetCount("/root/init/main/goodlist");
  566. if (nodecnts >= "2") {
  567. group3.visible = true;
  568. } else if (nodecnts == "1") {
  569. var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
  570. var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
  571. model.setValue("/root/cond/drugclsrchinfo/goodcd" , goodcd)
  572. model.setValue("/root/cond/drugclsrchinfo/goodnm" , goodnm)
  573. } else {
  574. messageBox("검색된 코드가 없습니다.", "I");
  575. }
  576. }
  577. model.refresh();
  578. ]]>
  579. </script>
  580. </button>
  581. <input id="ipt_goodnm2" ref="/root/cond/drugclsrchinfo/goodnm" class="input_fix" appearance="input" style="left:574px; top:45px; width:215px; height:19px; ">
  582. <script type="javascript" ev:event="xforms-value-changed">
  583. <![CDATA[
  584. if(ipt_goodnm2.value.length == 0)
  585. {
  586. ipt_goodcd2.value = "";
  587. }
  588. else {
  589. model.setValue("/root/cond/drugclsrchinfo/goodcd", "")
  590. btn_searchgoodcd2.dispatch("DOMActivate");
  591. }
  592. model.refresh();
  593. ]]>
  594. </script>
  595. <script type="javascript" ev:event="onkeydown">
  596. <![CDATA[
  597. if (event.keyCode == 13)
  598. {
  599. ipt_goodnm2.value = ipt_goodnm.currentText;
  600. ipt_goodnm2.refresh();
  601. ipt_goodnm2.dispatch("xforms-value-changed");
  602. }
  603. ]]>
  604. </script>
  605. </input>
  606. <input id="ipt_goodcd2" ref="/root/cond/drugclsrchinfo/goodcd" class="input_fix" _chartype="upper" style="left:435px; top:45px; width:111px; height:19px; ">
  607. <script type="javascript" ev:event="xforms-value-changed">
  608. <![CDATA[
  609. if(ipt_goodcd2.value.length == 0)
  610. {
  611. ipt_goodnm2.value = "";
  612. }
  613. else {
  614. model.setValue("/root/cond/drugclsrchinfo/goodnm", "")
  615. btn_searchgoodcd2.dispatch("DOMActivate");
  616. }
  617. model.refresh();
  618. ]]>
  619. </script>
  620. <script type="javascript" ev:event="onkeydown">
  621. <![CDATA[
  622. if (event.keyCode == 13)
  623. {
  624. ipt_goodcd2.value = ipt_goodcd2.currentText;
  625. ipt_goodcd2.refresh();
  626. ipt_goodcd2.dispatch("xforms-value-changed");
  627. }
  628. ]]>
  629. </script>
  630. </input>
  631. <caption id="caption5" class="search_name" style="left:345px; top:46px; width:86px; height:17px; ">약품코드 :</caption>
  632. <select1 id="cmb_mngtcls" ref="/root/cond/drugclsrchinfo/mngtcls" class="combo_s_essential" appearance="minimal" style="left:115px; top:45px; width:175px; height:19px; ">
  633. <choices>
  634. <itemset>
  635. <label/>
  636. <value/>
  637. </itemset>
  638. </choices>
  639. </select1>
  640. <caption id="caption21" class="search_name" style="left:15px; top:46px; width:88px; height:17px; ">관리분류 :</caption>
  641. </case>
  642. <case id="case3">
  643. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1230px; height:67px; background-color:#fffbf2; border-color:#ffd799; "/>
  644. <datagrid id="grd_durgddstoclist" nodeset="/root/main/drugstatsinfo/durgddstocinfo/drugddstoclist" class="datagrid2" caption="약품코드^약품명^마스터단가^거래처^전일재고^전산입고량^전산출고량^전산재고량^포장수량^청구^재멸균^대여^멸균&#xA;의뢰^미불출수량^미불출사유^청구일시^청구자^확인자" colsep="^" colwidth="121, 259, 77, 163, 97, 104, 108, 109, 100" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:0px; top:100px; width:1230px; height:580px; ">
  645. <col ref="goodcd" type="output" style="text-align:center; "/>
  646. <col ref="goodnm" type="output" style="text-align:left; "/>
  647. <col ref="goodunitcost" type="output" format="#,###.##" style="text-align:right; "/>
  648. <col ref="maincustlastsuplplnm" style="text-align:left; "/>
  649. <col ref="bfstocqty" format="#,###.##" style="text-align:right; "/>
  650. <col ref="inputqty" format="#,###.##" style="text-align:right; "/>
  651. <col ref="outputqty" format="#,###.##" style="text-align:right; "/>
  652. <col ref="stocqty" format="#,###.##" style="text-align:right; "/>
  653. <col ref="purcqty" format="#,###.##" style="text-align:right; "/>
  654. </datagrid>
  655. <caption id="caption13" class="tit_2" style="left:5px; top:78px; width:150px; height:14px; ">약품일자별 재고조회</caption>
  656. <line id="line5" class="line_1" style="x1:2px; y1:95px; x2:1232px; y2:95px; "/>
  657. <select1 id="cmb_deptcd3" ref="/root/cond/drugddsrchinfo/stkdeptcd" class="combo_s_essential" appearance="minimal" style="left:402px; top:19px; width:125px; height:19px; ">
  658. <choices>
  659. <itemset nodeset="/root/init/cmb_deptcd3/deptcdlist">
  660. <label ref="deptnm"/>
  661. <value ref="deptcd"/>
  662. </itemset>
  663. </choices>
  664. </select1>
  665. <button id="btn_searchgoodcd3" class="icon_search" style="left:518px; top:46px; width:16px; height:16px; ">
  666. <caption/>
  667. <script type="javascript" ev:event="DOMActivate">
  668. <![CDATA[
  669. model.makeValue("/root/send/goodiolist/instcd" ,model.getValue("/root/cond/drugddsrchinfo/instcd"));
  670. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  671. model.makeValue("/root/send/goodiolist/goodflag","PH");
  672. model.makeValue("/root/send/goodiolist/goodcd" ,model.getValue("/root/cond/drugddsrchinfo/goodcd"));
  673. model.makeValue("/root/send/goodiolist/goodnm" ,model.getValue("/root/cond/drugddsrchinfo/goodnm"));
  674. if (submit("TRRSD00192") == true) {
  675. var nodecnts = getNodesetCount("/root/init/main/goodlist");
  676. if (nodecnts >= "2") {
  677. group4.visible = true;
  678. } else if (nodecnts == "1") {
  679. var goodcd = model.getValue("/root/init/main/goodlist/goodcd");
  680. var goodnm = model.getValue("/root/init/main/goodlist/goodnm");
  681. model.setValue("/root/cond/drugddsrchinfo/goodcd" , goodcd)
  682. model.setValue("/root/cond/drugddsrchinfo/goodnm" , goodnm)
  683. } else {
  684. messageBox("검색된 코드가 없습니다.", "I");
  685. }
  686. }
  687. model.refresh();
  688. ]]>
  689. </script>
  690. </button>
  691. <caption id="caption19" class="search_name" visibility="hidden" style="left:810px; top:75px; width:86px; height:17px; ">약품분류 :</caption>
  692. <select1 id="cmb_lrgcd2" ref="/root/cond/drugddsrchinfo/lrgcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:910px; top:74px; width:125px; height:19px; ">
  693. <choices>
  694. <itemset nodeset="/root/hidden/lrgcdinfo">
  695. <label ref="cdnm"/>
  696. <value ref="cdid"/>
  697. </itemset>
  698. </choices>
  699. </select1>
  700. <caption id="caption15" class="search_name" style="left:312px; top:19px; width:94px; height:17px; ">약 국 :</caption>
  701. <select1 id="combo3" ref="/root/cond/drugddsrchinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:115px; top:19px; width:175px; height:19px; text-align:center; ">
  702. <choices>
  703. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  704. <label ref="cdnm"/>
  705. <value ref="cdid"/>
  706. </itemset>
  707. </choices>
  708. </select1>
  709. <caption id="caption16" class="search_name" style="left:312px; top:46px; width:86px; height:17px; ">약품코드 :</caption>
  710. <input id="ipt_goodnm3" ref="/root/cond/drugddsrchinfo/goodnm" class="input_fix" appearance="input" style="left:541px; top:45px; width:215px; height:19px; ">
  711. <script type="javascript" ev:event="xforms-value-changed">
  712. <![CDATA[
  713. if(ipt_goodnm3.value.length == 0)
  714. {
  715. ipt_goodcd3.value = "";
  716. }
  717. else {
  718. model.setValue("/root/cond/drugddsrchinfo/goodcd", "")
  719. btn_searchgoodcd3.dispatch("DOMActivate");
  720. }
  721. model.refresh();
  722. ]]>
  723. </script>
  724. <script type="javascript" ev:event="onkeydown">
  725. <![CDATA[
  726. if (event.keyCode == 13)
  727. {
  728. ipt_goodnm3.value = ipt_goodnm3.currentText;
  729. ipt_goodnm3.refresh();
  730. ipt_goodnm3.dispatch("xforms-value-changed");
  731. }
  732. ]]>
  733. </script>
  734. </input>
  735. <caption id="caption17" class="search_name" style="left:778px; top:45px; width:86px; height:17px; ">제약회사 :</caption>
  736. <input id="ipt_suppcustcd2" ref="/root/cond/deptsrchinfo/suppcustcd" class="input_default" style="left:868px; top:45px; width:66px; height:19px; ">
  737. <script type="javascript" ev:event="xforms-value-changed">
  738. <![CDATA[
  739. if ( model.getValue(ipt_suppcustcd2.attribute("ref")).length == 0 ){
  740. model.setValue(opt_suppcustnm2.attribute("ref"),"");
  741. opt_suppcustnm2.refresh();
  742. }else{
  743. //var instcd = getUserInfo("dutplceinstcd");
  744. //rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(combo3.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustcd2.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd2,"SPRSD00220","instcd","instcd");
  745. }
  746. //model.refresh();
  747. ]]>
  748. </script>
  749. </input>
  750. <button id="button4" class="icon_search" style="left:938px; top:47px; width:16px; height:16px; ">
  751. <caption/>
  752. <script type="javascript" ev:event="DOMActivate">
  753. <![CDATA[
  754. //opt_instcd2.value="001"; //판매회사 리스트는 001로 모두 공유하는 것으로 변경. 2009.09.29
  755. rszfOpenPopUpListByWndName(ipt_suppcustcd2,"","suppcustcd,suppcustnm","SPRSD00220","instcd","combo3");
  756. model.refresh();
  757. ]]>
  758. </script>
  759. </button>
  760. <output id="opt_suppcustnm2" ref="/root/cond/deptsrchinfo/suppcustnm" class="output_fix" appearance="output" style="left:957px; top:45px; width:138px; height:19px; "/>
  761. <caption id="caption18" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">병원구분 :</caption>
  762. <input id="ipt_goodcd3" ref="/root/cond/drugddsrchinfo/goodcd" class="input_fix" _chartype="upper" style="left:402px; top:45px; width:111px; height:19px; ">
  763. <script type="javascript" ev:event="xforms-value-changed">
  764. <![CDATA[
  765. if(ipt_goodcd3.value.length == 0)
  766. {
  767. ipt_goodnm3.value = "";
  768. }
  769. else {
  770. model.setValue("/root/cond/drugddsrchinfo/goodnm", "")
  771. btn_searchgoodcd3.dispatch("DOMActivate");
  772. }
  773. model.refresh();
  774. ]]>
  775. </script>
  776. <script type="javascript" ev:event="onkeydown">
  777. <![CDATA[
  778. if (event.keyCode == 13)
  779. {
  780. ipt_goodcd3.value = ipt_goodcd3.currentText;
  781. ipt_goodcd3.refresh();
  782. ipt_goodcd3.dispatch("xforms-value-changed");
  783. }
  784. ]]>
  785. </script>
  786. </input>
  787. <input id="input7" ref="/root/cond/drugddsrchinfo/stofrdd" class="input_s_essential" inputtype="date" style="left:720px; top:20px; width:100px; height:19px; text-align:center; "/>
  788. <caption id="caption20" class="search_no_b" style="left:830px; top:22px; width:12px; height:17px; ">~</caption>
  789. <caption id="caption22" class="search_name" style="left:630px; top:20px; width:86px; height:17px; ">검색기간 :</caption>
  790. <input id="input8" ref="/root/cond/drugddsrchinfo/stotodd" class="input_s_essential" inputtype="date" style="left:855px; top:20px; width:100px; height:19px; text-align:center; "/>
  791. <group id="group4" visibility="hidden" style="left:430px; top:70px; width:415px; height:165px; ">
  792. <datagrid id="grd_goodlist3" 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; ">
  793. <col imemode="alpha" ref="goodcd" type="output" _chartype="upper" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
  794. <col ref="goodnm" type="output" style="text-align:left; "/>
  795. <col ref="instcd" visibility="hidden" _key="true"/>
  796. <col ref="goodflag" visibility="hidden" _key="true"/>
  797. <script type="javascript" ev:event="ondblclick">
  798. <![CDATA[
  799. if (isDataCell() == true) {
  800. var goodcd = model.getValue("/root/init/main/goodlist[" + grd_goodlist3.row + "]/goodcd");
  801. var goodnm = model.getValue("/root/init/main/goodlist[" + grd_goodlist3.row + "]/goodnm");
  802. model.setValue("/root/cond/drugddsrchinfo/goodcd" , goodcd)
  803. model.setValue("/root/cond/drugddsrchinfo/goodnm" , goodnm)
  804. group4.visible = false;
  805. }
  806. ipt_goodcd3.refresh();
  807. ipt_goodnm3.refresh();
  808. ]]>
  809. </script>
  810. </datagrid>
  811. <button id="button7" class="btn2_letter3" style="left:340px; top:4px; width:53px; height:19px; ">
  812. <caption>숨기기</caption>
  813. <script type="javascript" ev:event="DOMActivate">
  814. <![CDATA[
  815. group4.visible = false
  816. ]]>
  817. </script>
  818. </button>
  819. </group>
  820. <button id="button8" class="btn1_letter2" style="left:1168px; top:25px; width:56px; height:22px; ">
  821. <caption>엑셀</caption>
  822. <script type="javascript" ev:event="DOMActivate">
  823. <![CDATA[
  824. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  825. if (fileName != "")
  826. {
  827. grd_durgddstoclist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  828. }
  829. ]]>
  830. </script>
  831. </button>
  832. <line id="line6" class="line_4" style="x1:1100px; y1:20px; x2:1100px; y2:52px; "/>
  833. <button id="button9" class="btn1_letter2" style="left:1110px; top:25px; width:56px; height:22px; ">
  834. <caption>조회</caption>
  835. <script type="javascript" ev:event="DOMActivate">
  836. <![CDATA[
  837. fDrugStatsSrch(switch1.selectedIndex);
  838. ]]>
  839. </script>
  840. </button>
  841. <select1 id="cmb_mngtcls2" ref="/root/cond/drugddsrchinfo/mngtcls" class="combo_s_essential" appearance="minimal" style="left:115px; top:45px; width:175px; height:19px; ">
  842. <choices>
  843. <itemset>
  844. <label/>
  845. <value/>
  846. </itemset>
  847. </choices>
  848. </select1>
  849. <caption id="caption23" class="search_name" style="left:15px; top:46px; width:88px; height:17px; ">관리분류 :</caption>
  850. </case>
  851. </switch>
  852. <button id="btn_srch2" class="btn_sw10" group="tab" style="left:119px; top:15px; width:123px; height:22px; ">
  853. <caption>약품분류별 재고조회</caption>
  854. <script type="javascript" ev:event="onclick">
  855. <![CDATA[
  856. model.toggle("case2");
  857. if(model.getValue("/root/tmp/chkinfo/chkflag")!=""){
  858. fDrugStatsSrch(switch1.selectedIndex);
  859. }
  860. ]]>
  861. </script>
  862. </button>
  863. <button id="btn_srch3" class="btn_sw10" group="tab" style="left:256px; top:15px; width:112px; height:22px; ">
  864. <caption>약품일자별 재고조회</caption>
  865. <script type="javascript" ev:event="onclick">
  866. <![CDATA[
  867. model.toggle("case3");
  868. if(model.getValue("/root/cond/drugddsrchinfo/stkdeptcd")!=""){
  869. fDrugStatsSrch(switch1.selectedIndex);
  870. }
  871. ]]>
  872. </script>
  873. </button>
  874. </xhtml:body>
  875. </xhtml:html>