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