SMRSO22600_재고조회(부서)(경북대).xrw 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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. <stocklist/>
  11. <goodlist/>
  12. </main>
  13. <detail>
  14. <winlist/>
  15. <delivelist/>
  16. <deptstocklist/>
  17. </detail>
  18. <send>
  19. <search>
  20. <instcd/>
  21. <dd/>
  22. <goodcd/>
  23. <goodcd1/>
  24. <goodnm/>
  25. <goodnm1/>
  26. <esang/>
  27. <pagesize>200</pagesize>
  28. <offset/>
  29. <dutunitcd/>
  30. <dutunitnm/>
  31. <gubun/>
  32. </search>
  33. <search2>
  34. <instcd/>
  35. <dd/>
  36. <goodcd/>
  37. <dutunitcd/>
  38. </search2>
  39. <save/>
  40. <etcsearch>
  41. <all/>
  42. </etcsearch>
  43. </send>
  44. <init>
  45. </init>
  46. <hidden/>
  47. <temp>
  48. </temp>
  49. <popgood>
  50. <instcd/>
  51. <wareflag/>
  52. <goodcd/>
  53. <goodnm/>
  54. <returntype/>
  55. <selectyn/>
  56. </popgood>
  57. <popgood1>
  58. <instcd/>
  59. <wareflag/>
  60. <goodcd/>
  61. <goodnm/>
  62. <returntype/>
  63. <selectyn/>
  64. </popgood1>
  65. <popdetail>
  66. <instcd/>
  67. <wareflag/>
  68. <goodcd/>
  69. <dd/>
  70. <dutunitcd/>
  71. </popdetail>
  72. <popdelive>
  73. <instcd/>
  74. <delivedd/>
  75. <delivedeptcd/>
  76. <delivedeptnm/>
  77. <opener/>
  78. </popdelive>
  79. <popdata>
  80. <instcd/>
  81. <dd/>
  82. <goodcd/>
  83. <goodnm/>
  84. </popdata>
  85. <magamresult/>
  86. </root>
  87. </instance>
  88. <script type="javascript" ev:event="xforms-ready">
  89. <![CDATA[
  90. //화면 Control을 초기화한다
  91. misfGridInit(grd_stock);
  92. misfMsterDetailSet(grd_stock, null, "TRRSO22601" ,"N");
  93. model.removeNodeset(grd_win.nodeset);
  94. model.removeNodeset(grd_delive.nodeset);
  95. model.removeNodeset(grd_deptstock.nodeset);
  96. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  97. misfComboComCdListMulti("030R0035","cmb_gubun");
  98. //addComboItem( "cmb_gubun", "전체", "", "above");
  99. model.setValue(cmb_gubun.attribute("ref"), "08");
  100. //팝업창인지 아닌지 instcd로 구분
  101. if(model.getValue("/root/popdata/instcd") != ""){
  102. model.setValue("/root/send/search/instcd", model.getValue("/root/popdata/instcd"));
  103. model.setValue("/root/send/search/dd" , model.getValue("/root/popdata/dd"));
  104. model.setValue("/root/send/search/goodcd" , model.getValue("/root/popdata/goodcd"));
  105. model.setValue("/root/send/search/goodcd1" , model.getValue("/root/popdata/goodcd"));
  106. model.setValue("/root/send/search/goodnm" , model.getValue("/root/popdata/goodnm"));
  107. model.setValue("/root/send/search/goodnm1" , model.getValue("/root/popdata/goodnm"));
  108. btn_search.dispatch("DOMActivate");
  109. }else{ //팝업창이 아닐시
  110. model.setValue("/root/send/search/dutunitcd",getUserInfo("dutunitcd"));
  111. model.setValue("/root/send/search/dutunitnm",getUserInfo("dutunitnm"));
  112. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); //기관 설정
  113. model.setValue("/root/send/search/dd" , getCurrentDate()); //기준일자 설정 //.substr(0,6));
  114. }
  115. model.refresh();
  116. ]]>
  117. </script>
  118. <submission id="TRRSO21302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search2" resultref="/root/detail"/>
  119. <submission id="TRRSO21304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main"/>
  120. <submission id="TRRSO22601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" add="top" resultref="/root/main"/>
  121. <submission id="TRRSO22602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/magamresult"/>
  122. </model>
  123. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  127. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  128. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  129. <script type="javascript">
  130. <![CDATA[
  131. //조회조건 변경시 Grid 초기화
  132. function fSearchCondChanged() {
  133. model.removeNodeset(grd_stock.nodeset);
  134. model.removeNodeset(grd_win.nodeset);
  135. model.removeNodeset(grd_delive.nodeset);
  136. model.removeNodeset(grd_deptstock.nodeset);
  137. model.refresh();
  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:243px; height:15px; ">재고조회(부서)</caption>
  145. </group>
  146. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  147. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1193px; y2:25px; "/>
  148. <button id="btn_save" class="btn4_letter5" navindex="12" style="left:1101px; top:3px; width:92px; height:22px; ">
  149. <caption>입출고현황</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. //popup 에 전달할 parameter를 setting한다.
  153. model.setValue("/root/popdelive/instcd", cmb_instcd.value);
  154. model.setValue("/root/popdelive/delivedd", ipt_dd.value);
  155. model.setValue("/root/popdelive/delivedeptcd", ipt_dutdeptcd.value);
  156. model.setValue("/root/popdelive/delivedeptnm", ipt_dutdeptnm.value);
  157. model.setValue("/root/popdelive/opener", "jaegosearch");
  158. //popup 프로그램 호출
  159. window.load("SMRSO22700.xrw", "modal","", "", "/root/popdelive","/root/popdata");
  160. ]]>
  161. </script>
  162. </button>
  163. <button id="button2" class="btn4_letter2" navindex="12" style="left:1045px; top:3px; width:56px; height:22px; ">
  164. <caption>출력</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. exeReportPreview("RPRSO22601", "XMLSTR" );
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="btn_help" class="btn4_letter3" navindex="12" style="left:977px; top:3px; width:68px; height:22px; ">
  172. <caption>도움말</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. window.load("SMRSO22601.xrw", "modeless","", "", "","");
  176. ]]>
  177. </script>
  178. </button>
  179. <button id="btn_specialmngt" class="btn4_letter6" navindex="12" style="left:873px; top:3px; width:104px; height:22px; ">
  180. <caption>특별관리품목</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. window.load("SMRSO23400.xrw", "modeless","", "", "","");
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="button3" class="btn4_letter5" navindex="12" style="left:781px; top:3px; width:92px; height:22px; ">
  188. <caption>무산정물품</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. window.load("SMRSO23500.xrw", "modeless","", "", "","");
  192. ]]>
  193. </script>
  194. </button>
  195. </group>
  196. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  197. <group id="grp_search" style="left:0px; top:9px; width:1195px; height:66px; vertical-align:top; ">
  198. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  199. <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1124px; top:23px; width:56px; height:22px; ">
  200. <caption>조회</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. //현재고일자에 입력된 값이 올바르지 않으면, 년월을 선택하라고 alert함
  204. if(ipt_dd.value.length < 8) {
  205. messageBox("현재고일자가 올바로 선택되지 않았습니다. \n\n먼저 현재고일자을 선택하십시요.", "E999", "");
  206. model.setFocus("ipt_dd");
  207. return;
  208. }
  209. /*
  210. //창고에 선택된 값이 없으면, 창고를 선택하라고 alert함
  211. if(cmb_wareflag.value == "") {
  212. messageBox("창고가 선택되지 않았습니다. \n\n먼저 창고를 선택하십시요.", "E999", "");
  213. model.setFocus("cmb_wareflag");
  214. return;
  215. }
  216. */
  217. // model.setValue("/root/send/search/offset","0");
  218. // misfMsterDetailRetrieve();
  219. misfGridInit(grd_stock);
  220. submit("TRRSO22601");
  221. submit("TRRSO22602");
  222. var magamyn = model.getValue("/root/magamresult/magamyn");
  223. if(magamyn == "N"){
  224. cap_magam.visible = true;
  225. }else{
  226. cap_magam.visible = false;
  227. }
  228. for(i = 2 ; i < grd_stock.rows ; i++){
  229. var deliveqty = grd_stock.valueMatrix(i, grd_stock.colRef("deliveqty"));
  230. var totqty = grd_stock.valueMatrix(i, grd_stock.colRef("totqty"));
  231. var specialgoodcd = grd_stock.valueMatrix(i, grd_stock.colRef("specialgoodcd"));
  232. var freegoodcd = grd_stock.valueMatrix(i, grd_stock.colRef("freegoodcd"));
  233. if(parseInt(totqty) != parseInt(deliveqty)){
  234. grd_stock.cellStyle("color",i,grd_stock.colRef("totqty")) = "#ff0000";
  235. }
  236. if(specialgoodcd != ""){
  237. grd_stock.cellStyle("color",i,grd_stock.colRef("dutunitnm"), i, grd_stock.colRef("allstock")) = "#ff0000";
  238. }
  239. if(freegoodcd != ""){
  240. //grd_stock.cellStyle("background-color",i,grd_stock.colRef("dutunitnm"), i, grd_stock.colRef("allstock")) = "#00D8FF";
  241. }
  242. }
  243. ]]>
  244. </script>
  245. </button>
  246. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:92px; top:10px; width:145px; height:19px; ">
  247. <choices>
  248. <itemset nodeset="/root/main/init">
  249. <label ref="cnstnm"/>
  250. <value ref="cnstcd"/>
  251. </itemset>
  252. </choices>
  253. </select1>
  254. <caption id="cap_instcd" class="search_name" style="left:13px; top:10px; width:77px; height:17px; ">기관코드</caption>
  255. <line id="line30" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:61px; "/>
  256. <caption id="caption9" class="search_name" style="left:246px; top:10px; width:89px; height:17px; ">현재고일자</caption>
  257. <caption id="caption13" class="search_name" style="left:13px; top:37px; width:80px; height:17px; vertical-align:middle; ">물품코드</caption>
  258. <input id="ipt_goodcd" ref="/root/send/search/goodcd" class="input_default" navindex="4" maxlength="12" style="left:92px; top:37px; width:88px; height:19px; ">
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. //조회조건 변경시 Grid 초기화
  262. //fSearchCondChanged();
  263. if(ipt_goodcd.value == ""){
  264. model.setValue("/root/send/search/goodnm", "");
  265. opt_goodnm.refresh();
  266. }
  267. ]]>
  268. </script>
  269. </input>
  270. <button id="btn_goodcd" class="icon_search" navindex="5" style="left:184px; top:37px; width:16px; height:16px; ">
  271. <caption/>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. //popup 에 전달할 parameter를 setting한다.
  275. model.setValue("/root/popgood/instcd", cmb_instcd.value);
  276. //model.setValue("/root/popgood/wareflag", cmb_wareflag.value);
  277. model.setValue("/root/popgood/returntype", "2"); //goodnm도 함께 return 받고자 할때, returntype을 "2" 로 설정.
  278. //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
  279. model.setValue("/root/popgood/selectyn", "");
  280. //popup 프로그램 호출
  281. window.load("SPRSO20300.xrw", "modal","", "", "/root/popgood","/root/popdata");
  282. //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 조회해서 그리드에 보여준다.
  283. if(model.getValue("/root/popgood/selectyn") == "Y") { //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
  284. //조회조건 변경시 Grid 초기화
  285. //fSearchCondChanged();
  286. model.setValue("/root/send/search/goodcd",model.getValue("/root/popgood/goodcd"));
  287. model.setValue("/root/send/search/goodnm",model.getValue("/root/popgood/goodnm"));
  288. ipt_goodcd.refresh();
  289. opt_goodnm.refresh();
  290. }
  291. ]]>
  292. </script>
  293. </button>
  294. <output id="opt_goodnm" ref="/root/send/search/goodnm" class="output_fix" appearance="output" style="left:203px; top:37px; width:237px; height:19px; "/>
  295. <input id="ipt_dd" ref="/root/send/search/dd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:341px; top:10px; width:99px; height:19px; text-align:center; ">
  296. <script type="javascript" ev:event="xforms-value-changed">
  297. <![CDATA[
  298. //조회조건 변경시 Grid 초기화
  299. fSearchCondChanged();
  300. ]]>
  301. </script>
  302. </input>
  303. <button id="button1" class="icon_search" navindex="5" style="left:602px; top:37px; width:16px; height:16px; ">
  304. <caption/>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. //popup 에 전달할 parameter를 setting한다.
  308. model.setValue("/root/popgood1/instcd", cmb_instcd.value);
  309. //model.setValue("/root/popgood1/wareflag", cmb_wareflag.value);
  310. model.setValue("/root/popgood1/returntype", "2"); //goodnm도 함께 return 받고자 할때, returntype을 "2" 로 설정.
  311. //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
  312. model.setValue("/root/popgood1/selectyn", "");
  313. //popup 프로그램 호출
  314. window.load("SPRSO20300.xrw", "modal","", "", "/root/popgood1","/root/popdata");
  315. //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 조회해서 그리드에 보여준다.
  316. if(model.getValue("/root/popgood/selectyn") == "Y") { //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
  317. //조회조건 변경시 Grid 초기화
  318. //fSearchCondChanged();
  319. model.setValue("/root/send/search/goodcd1",model.getValue("/root/popgood/goodcd"));
  320. model.setValue("/root/send/search/goodnm1",model.getValue("/root/popgood/goodnm"));
  321. ipt_goodcd1.refresh();
  322. opt_goodnm1.refresh();
  323. }
  324. ]]>
  325. </script>
  326. </button>
  327. <input id="ipt_goodcd1" ref="/root/send/search/goodcd1" class="input_default" navindex="4" maxlength="12" style="left:510px; top:37px; width:88px; height:19px; ">
  328. <script type="javascript" ev:event="xforms-value-changed">
  329. <![CDATA[
  330. //조회조건 변경시 Grid 초기화
  331. //fSearchCondChanged();
  332. if(ipt_goodcd1.value == ""){
  333. model.setValue("/root/send/search/goodnm1", "");
  334. opt_goodnm1.refresh();
  335. }
  336. ]]>
  337. </script>
  338. </input>
  339. <output id="opt_goodnm1" ref="/root/send/search/goodnm1" class="output_fix" appearance="output" style="left:621px; top:37px; width:237px; height:19px; "/>
  340. <caption id="caption8" style="left:465px; top:38px; width:25px; height:20px; font-size:12pt; font-weight:bold; ">∼</caption>
  341. <button id="btn_dutdept" class="icon_search" visibility="visible" style="left:605px; top:11px; width:16px; height:16px; ">
  342. <caption/>
  343. <script type="javascript" ev:event="DOMActivate">
  344. <![CDATA[
  345. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd") + "," + ipt_dd.value+"31", "instcd,basedd");
  346. // if(ipt_dutdeptnm.value != ""){
  347. // submit("TRRSO21304")
  348. // model.setValue("/root/send/search/goodcd",model.getValue("/root/main/goodlist/mingoodcd"));
  349. // model.setValue("/root/send/search/goodnm",model.getValue("/root/main/goodlist/mingoodnm"));
  350. // model.setValue("/root/send/search/goodcd1",model.getValue("/root/main/goodlist/maxgoodcd"));
  351. // model.setValue("/root/send/search/goodnm1",model.getValue("/root/main/goodlist/maxgoodnm"));
  352. // ipt_goodcd.refresh();
  353. // opt_goodnm.refresh();
  354. // ipt_goodcd1.refresh();
  355. // opt_goodnm1.refresh();
  356. // //btn_search.dispatch("DOMActivate");
  357. // }
  358. ipt_dutdeptcd.refresh();
  359. ipt_dutdeptnm.refresh();
  360. ]]>
  361. </script>
  362. </button>
  363. <input id="ipt_dutdeptnm" ref="/root/send/search/dutunitnm" class="input_search" disabled="true" navindex="3" visibility="visible" style="left:625px; top:10px; width:134px; height:19px; ">
  364. <script type="javascript" ev:event="xforms-value-changed">
  365. <![CDATA[
  366. misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/instcd"), "instcd" );
  367. model.refresh();
  368. ]]>
  369. </script>
  370. <script type="javascript" ev:event="onkeypress">
  371. <![CDATA[
  372. if(event.keyCode == 13)
  373. {
  374. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  375. misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd"), "instcd" );
  376. model.refresh();
  377. }
  378. ]]>
  379. </script>
  380. </input>
  381. <input id="ipt_dutdeptcd" ref="/root/send/search/dutunitcd" class="input_s_essential" navindex="2" visibility="visible" maxlength="10" style="left:516px; top:10px; width:85px; height:19px; ">
  382. <script type="javascript" ev:event="xforms-value-changed">
  383. <![CDATA[
  384. misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd"), "instcd" );
  385. // if(ipt_dutdeptnm.value != ""){
  386. // submit("TRRSO21304")
  387. // model.setValue("/root/send/search/goodcd",model.getValue("/root/main/goodlist/mingoodcd"));
  388. // model.setValue("/root/send/search/goodnm",model.getValue("/root/main/goodlist/mingoodnm"));
  389. // model.setValue("/root/send/search/goodcd1",model.getValue("/root/main/goodlist/maxgoodcd"));
  390. // model.setValue("/root/send/search/goodnm1",model.getValue("/root/main/goodlist/maxgoodnm"));
  391. // ipt_goodcd.refresh();
  392. // opt_goodnm.refresh();
  393. // ipt_goodcd1.refresh();
  394. // opt_goodnm1.refresh();
  395. btn_search.dispatch("DOMActivate");
  396. // }
  397. ipt_dutdeptcd.refresh();
  398. ipt_dutdeptnm.refresh();
  399. ]]>
  400. </script>
  401. <script type="javascript" ev:event="onkeypress">
  402. <![CDATA[
  403. if(event.keyCode == 13)
  404. {
  405. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  406. misfValidationCheck("02", "", "dutunitcd,dutunitnm", model.getValue("/root/send/search/instcd"), "instcd" );
  407. if(ipt_dutdeptnm.value != ""){
  408. submit("TRRSO21304")
  409. model.setValue("/root/send/search/goodcd",model.getValue("/root/main/goodlist/mingoodcd"));
  410. model.setValue("/root/send/search/goodnm",model.getValue("/root/main/goodlist/mingoodnm"));
  411. model.setValue("/root/send/search/goodcd1",model.getValue("/root/main/goodlist/maxgoodcd"));
  412. model.setValue("/root/send/search/goodnm1",model.getValue("/root/main/goodlist/maxgoodnm"));
  413. ipt_goodcd.refresh();
  414. opt_goodnm.refresh();
  415. ipt_goodcd1.refresh();
  416. opt_goodnm1.refresh();
  417. //btn_search.dispatch("DOMActivate");
  418. }
  419. ipt_dutdeptcd.refresh();
  420. ipt_dutdeptnm.refresh();
  421. }
  422. ]]>
  423. </script>
  424. </input>
  425. <caption id="caption10" class="search_name" style="left:457px; top:10px; width:65px; height:17px; ">부서</caption>
  426. <caption id="caption7" class="search_name" style="left:890px; top:37px; width:80px; height:17px; ">물품유형</caption>
  427. <select1 id="cmb_gubun" ref="/root/send/search/gubun" appearance="minimal" style="left:970px; top:37px; width:100px; height:19px; ">
  428. <choices>
  429. <itemset>
  430. <label/>
  431. <value/>
  432. </itemset>
  433. </choices>
  434. </select1>
  435. </group>
  436. <line id="line1" class="line_1" style="x1:0px; y1:98px; x2:1193px; y2:98px; "/>
  437. <caption id="caption1" class="tit_2" style="left:0px; top:78px; width:180px; height:13px; ">총재고 현황</caption>
  438. <caption id="caption3" class="tit_2" style="left:0px; top:491px; width:180px; height:13px; ">당월 입고 현황</caption>
  439. <line id="line2" class="line_1" style="x1:0px; y1:505px; x2:400px; y2:505px; "/>
  440. <caption id="caption4" class="tit_2" style="left:405px; top:491px; width:180px; height:13px; ">당월 출고 현황</caption>
  441. <line id="line3" class="line_1" style="x1:405px; y1:505px; x2:805px; y2:505px; "/>
  442. <caption id="caption5" class="tit_2" style="left:810px; top:491px; width:161px; height:13px; ">당월 처방 현황</caption>
  443. <line id="line4" class="line_1" style="x1:810px; y1:505px; x2:1192px; y2:505px; "/>
  444. <datagrid id="grd_stock" nodeset="/root/main/stocklist" caption="부서^물품유형^물 품^물 품^물 품^물 품^전월&#xA;재고^선납^선납^선납^전월재고^당월입고^당월입고^당월입고^당월&#xA;출고량^당월&#xA;실입고량^현재고&#xA;수량^당월&#xA;처방량^업체&#xA;보관량^caption1|부서^물품유형^코드^명칭^규격^단위^전월&#xA;재고^입고^출고^재고^금액^수량^단가^금액^당월&#xA;출고량^당월&#xA;실입고량^현재고&#xA;수량^당월&#xA;처방량^업체&#xA;보관량^caption1" colsep="^" colwidth="120, 75, 79, 140, 116, 60, 48, 48, 48, 48, 0, 48, 55, 65, 50, 0, 50, 45, 45, 100, 100, 100" explorerbar="sort" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:103px; width:1193px; height:382px; text-align:center; ">
  445. <col ref="dutunitnm"/>
  446. <col ref="winkind"/>
  447. <col ref="goodcd"/>
  448. <col ref="goodnm" style="text-align:left; "/>
  449. <col ref="goodspec" style="text-align:left; "/>
  450. <col ref="purcunit" style="text-align:center; "/>
  451. <col ref="jun_jaego_qty" format="(-)#,##0" style="text-align:right; "/>
  452. <col ref="preqty" visibility="visible" style="text-align:right; "/>
  453. <col ref="predeliveqty" visibility="visible" style="text-align:right; "/>
  454. <col ref="jaego" format="(-)#,##0" style="text-align:right; "/>
  455. <col ref="jun_jaego_amt" format="(-)#,##0" style="text-align:right; "/>
  456. <col ref="winqty" style="text-align:right; "/>
  457. <col ref="winunitcost" format="(-)#,##0" style="text-align:right; "/>
  458. <col ref="winamt" format="(-)#,##0" style="text-align:right; "/>
  459. <col ref="deliveqty" format="(-)#,##0" style="text-align:right; "/>
  460. <col ref="sun_ibgo" format="(-)#,##0" style="text-align:right; "/>
  461. <col ref="hun_jaego" format="(-)#,##0" style="text-align:right; "/>
  462. <col ref="totqty" format="(-)#,##0" style="text-align:right; "/>
  463. <col ref="allstock" format="(-)#,##0" style="text-align:right; "/>
  464. <col ref="dutunitcd" visibility="hidden"/>
  465. <col ref="specialgoodcd" visibility="hidden"/>
  466. <col ref="freegoodcd" visibility="hidden"/>
  467. <script type="javascript" ev:event="onrowchanged">
  468. <![CDATA[
  469. if( grd_stock.rows < 3 ) {
  470. model.removeNodeset(grd_win.nodeset);
  471. model.removeNodeset(grd_delive.nodeset);
  472. model.removeNodeset(grd_deptstock.nodeset);
  473. model.refresh();
  474. return;
  475. }
  476. model.setValue("/root/send/search2/instcd", cmb_instcd.value);
  477. model.setValue("/root/send/search2/dd", ipt_dd.value);
  478. //model.setValue("/root/send/search2/wareflag", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("wareflag")));
  479. model.setValue("/root/send/search2/goodcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodcd")));
  480. model.setValue("/root/send/search2/dutunitcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("dutunitcd")));
  481. submit("TRRSO21302");
  482. //model.refresh();
  483. grd_stock.dispatch("onmouseup");
  484. ]]>
  485. </script>
  486. <script type="javascript" ev:event="onaftersort">
  487. <![CDATA[
  488. grd_stock.gridToInstance();
  489. ]]>
  490. </script>
  491. </datagrid>
  492. <datagrid id="grd_win" nodeset="/root/detail/winlist" caption="입고일자^입고수량^입고금액^caption1" colsep="^" colwidth="132, 115, 132, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:510px; width:400px; height:223px; ">
  493. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  494. <col ref="winqty" format="(-)#,##0" style="text-align:right; "/>
  495. <col ref="winamt" format="(-)#,##0" style="text-align:right; "/>
  496. <col ref="dutunitcd" visibility="hidden"/>
  497. <script type="javascript" ev:event="ondblclick">
  498. <![CDATA[
  499. if(grd_win.row < 1) return;
  500. model.setValue("/root/popdetail/instcd", cmb_instcd.value)
  501. model.setValue("/root/popdetail/wareflag", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("wareflag")));
  502. model.setValue("/root/popdetail/goodcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodcd")));
  503. model.setValue("/root/popdetail/dd", grd_win.valueMatrix(grd_win.row, grd_win.colRef("windd")));
  504. model.setValue("/root/popdetail/dutunitcd", grd_win.valueMatrix(grd_win.row, grd_win.colRef("dutunitcd")));
  505. //popup 프로그램 호출 - 입고내역
  506. window.load("SPRSO20500.xrw", "modal","", "left:300; top:300;", "/root/popdetail","/root/popdata"); // 순서대로 ref, resultRef
  507. ]]>
  508. </script>
  509. </datagrid>
  510. <datagrid id="grd_delive" nodeset="/root/detail/delivelist" caption="출고일자^출고유형^출고창고^출고수량^caption1" colsep="^" colwidth="147, 131, 1, 101, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:405px; top:510px; width:400px; height:223px; ">
  511. <col ref="delivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  512. <col ref="deliveflagnm" style="text-align:center; "/>
  513. <col ref="wareflagnm" visibility="hidden"/>
  514. <col ref="deliveqty" format="(-)#,##0" style="text-align:right; "/>
  515. <col ref="dutunitcd" visibility="hidden"/>
  516. <script type="javascript" ev:event="ondblclick">
  517. <![CDATA[
  518. if(grd_delive.row < 1) return;
  519. model.setValue("/root/popdetail/instcd", cmb_instcd.value)
  520. model.setValue("/root/popdetail/wareflag", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("wareflag")));
  521. model.setValue("/root/popdetail/goodcd", grd_stock.valueMatrix(grd_stock.row, grd_stock.colRef("goodcd")));
  522. model.setValue("/root/popdetail/dd", grd_delive.valueMatrix(grd_delive.row, grd_delive.colRef("delivedd")));
  523. model.setValue("/root/popdetail/dutunitcd", grd_delive.valueMatrix(grd_delive.row, grd_delive.colRef("dutunitcd")));
  524. //popup 프로그램 호출 - 출고내역
  525. window.load("SPRSO20400.xrw", "modal","", "left:300; top:300;", "/root/popdetail","/root/popdata"); // 순서대로 ref, resultRef
  526. ]]>
  527. </script>
  528. </datagrid>
  529. <datagrid id="grd_deptstock" nodeset="/root/detail/deptstocklist" caption="일자^구분^처방부서^수량" colsep="^" colwidth="85, 65, 135, 75, 0, 0, 0, 0, 0, 0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:810px; top:510px; width:382px; height:223px; text-align:center; ">
  530. <col ref="rgstdd" format="yyyy-mm-dd"/>
  531. <col disabled="true" ref="ioflag" type="combo" format="(-)#,##0" style="text-align:center; ">
  532. <choices>
  533. <item>
  534. <label>입원</label>
  535. <value>I</value>
  536. </item>
  537. <item>
  538. <label>외래</label>
  539. <value>O</value>
  540. </item>
  541. <item>
  542. <label>건진</label>
  543. <value>S</value>
  544. </item>
  545. <item>
  546. <label>응급</label>
  547. <value>E</value>
  548. </item>
  549. <item>
  550. <label>DSC</label>
  551. <value>D</value>
  552. </item>
  553. </choices>
  554. </col>
  555. <col ref="prcpdeptcdnm"/>
  556. <col ref="totqty" format="(-)#,0" style="text-align:right; "/>
  557. <col ref="instcd" visibility="hidden"/>
  558. <col ref="wareflag" visibility="hidden"/>
  559. <col ref="goodcd" visibility="hidden"/>
  560. <col ref="dd" visibility="hidden"/>
  561. <col ref="prcpdeptcd" visibility="hidden"/>
  562. <col ref="allsearchchk" visibility="hidden"/>
  563. <script type="javascript" ev:event="ondblclick">
  564. <![CDATA[
  565. if(grd_deptstock.row < 1) return;
  566. //popup 프로그램 호출 - 처방현황
  567. if(model.getValue("/root/send/etcsearch/all") == "A"){
  568. model.setValue("/root/detail/deptstocklist[" + grd_deptstock.row + "]/allsearchchk","A");
  569. }else{
  570. model.setValue("/root/detail/deptstocklist[" + grd_deptstock.row + "]/allsearchchk","");
  571. }
  572. window.load("SPRSO20800.xrw", "modal","", "left:300; top:300;", "/root/detail/deptstocklist[" + grd_deptstock.row + "]","/root/send"); // 순서대로 ref, resultRef
  573. ]]>
  574. </script>
  575. <script type="javascript" ev:event="onaftersort">
  576. <![CDATA[
  577. grd_deptstock.gridToInstance();
  578. ]]>
  579. </script>
  580. </datagrid>
  581. <select id="chk_allsearch" ref="/root/send/etcsearch/all" overflow="visible" appearance="full" style="left:920px; top:491px; width:50px; height:20px; border-style:none; ">
  582. <choices>
  583. <item>
  584. <label>전체</label>
  585. <value>A</value>
  586. </item>
  587. </choices>
  588. </select>
  589. <button id="btn_saveexcel" class="btn2_letter4" style="left:1129px; top:78px; width:64px; height:19px; ">
  590. <caption>엑셀저장</caption>
  591. <script type="javascript" ev:event="DOMActivate">
  592. <![CDATA[
  593. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  594. if (fileName != "")
  595. {
  596. grd_stock.saveExcel(fileName, "sheetname:savetype", true, true, "", "");
  597. }
  598. ]]>
  599. </script>
  600. </button>
  601. <caption id="cap_magam" visibility="hidden" style="left:115px; top:77px; width:605px; height:20px; font-weight:bold; color:#ff0000; ">※ 아직 전월마감이 안 되어있습니다. 정확한 재고현황을 위해 전월마감 후 조회하십시오.</caption>
  602. </group>
  603. </xhtml:body>
  604. </xhtml:html>