SMRSG07400_(수탁)청구분출고관리.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>수탁 청구분 출고관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodreq>
  12. <goodreqlist/>
  13. <gooddlvrlist/>
  14. </goodreq>
  15. <gooddelive>
  16. <gooddelivelist/>
  17. </gooddelive>
  18. </list>
  19. <item/>
  20. </main>
  21. <send>
  22. <save>
  23. <goodreq>
  24. <goodreqlist/>
  25. </goodreq>
  26. <gooddelive>
  27. <gooddelivelist/>
  28. <gooddlvrlist/>
  29. </gooddelive>
  30. </save>
  31. <goodreq>
  32. <instcd/>
  33. <reqfrdd/>
  34. <reqtodd/>
  35. <delivedd/>
  36. <reqdeptcd/>
  37. <reqdeptnm/>
  38. <goodcd/>
  39. <goodnm/>
  40. <deliveprcsflag/>
  41. <reqflag/>
  42. <workflag/>
  43. <reqmthdflag/>
  44. <deliveprcsflag_group>13</deliveprcsflag_group>
  45. <maincustlastsuplplce/>
  46. <maincustlastsuplplcenm/>
  47. <suppcustcd/>
  48. <suppcustcdnm/>
  49. <goodflag/>
  50. <delivefrdd/>
  51. <delivetodd/>
  52. <emplno/>
  53. <emplnm/>
  54. <lrgcd/>
  55. <mdlcd/>
  56. <stocyn/>
  57. </goodreq>
  58. <gooddelive>
  59. <instcd/>
  60. <reqflag/>
  61. <reqdd/>
  62. <reqno/>
  63. <reqseqno/>
  64. </gooddelive>
  65. <outclose>
  66. <closeoutlist/>
  67. </outclose>
  68. <goodreqprnt>
  69. <goodreqprntlist/>
  70. <goodreqprntcomn>
  71. <purcdmndfrdd/>
  72. <purcdmndtodd/>
  73. </goodreqprntcomn>
  74. </goodreqprnt>
  75. </send>
  76. <init>
  77. <delivedd/>
  78. <temppay>
  79. <label>예</label>
  80. <value>Y</value>
  81. <label>아니오</label>
  82. <value>N</value>
  83. </temppay>
  84. <elctstmntyn>
  85. <label>예</label>
  86. <value>Y</value>
  87. <label>아니오</label>
  88. <value>N</value>
  89. </elctstmntyn>
  90. <winqty/>
  91. <winamt/>
  92. <systemflag/>
  93. <mlist>
  94. <R0092>
  95. <cdid/>
  96. <cdnm/>
  97. </R0092>
  98. <R0111>
  99. <cdid/>
  100. <cdnm/>
  101. </R0111>
  102. </mlist>
  103. </init>
  104. <hidden/>
  105. <temp/>
  106. <copynode/>
  107. </root>
  108. </instance>
  109. <script type="javascript" ev:event="xforms-ready">
  110. <![CDATA[
  111. //화면 Control을 초기화한다
  112. fInit();
  113. ]]>
  114. </script>
  115. <submission id="TRRSG07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  116. <submission id="TXRSG07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/gooddelive" resultref="/root/hidden/temp"/>
  117. <submission id="TXRSG07402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/gooddelive" resultref="/root/hidden/temp"/>
  118. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  119. </model>
  120. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  122. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  123. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  125. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  126. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  127. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  128. <script type="javascript" src="../../../mis/purcstatsweb/js/SMRSG07400.js"/>
  129. </xhtml:head>
  130. <xhtml:body guideline="1,458;1,646;1,860;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="grp_biz" scroll="auto" style="left:0px; top:35px; width:1195px; height:744px; ">
  132. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1190px; height:110px; "/>
  133. <select1 id="cmb_reqmthd" ref="/root/send/goodreq/reqmthdflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:43px; width:120px; height:19px; ">
  134. <choices>
  135. <itemset nodeset="/root/init/mlist/R0092">
  136. <label ref="cdnm"/>
  137. <value ref="cdid"/>
  138. </itemset>
  139. </choices>
  140. </select1>
  141. <caption id="caption21" class="search_name" style="left:5px; top:43px; width:91px; height:17px; ">청구방법 :</caption>
  142. <select1 id="cmb_instcd" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:95px; top:19px; width:120px; height:19px; ">
  143. <choices>
  144. <itemset nodeset="/root/init/instcd">
  145. <label ref="cdnm"/>
  146. <value ref="cdid"/>
  147. </itemset>
  148. </choices>
  149. <script type="javascript" ev:event="xforms-value-changed">
  150. <![CDATA[
  151. rszfUserReqFlagList(cmb_reqflag,model.getValue(cmb_instcd.attribute("ref")),getUserInfo("userid"));
  152. ]]>
  153. </script>
  154. </select1>
  155. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:55px; width:56px; height:22px; text-align:left; ">
  156. <caption>조회</caption>
  157. <script type="javascript" ev:event="DOMActivate">
  158. <![CDATA[
  159. openLoadingBar("데이타 ");
  160. grd_goodreq.rebuildStyle();
  161. model.removeNodeset("/root/main/list/goodreq/goodreqlist");
  162. submit("TRRSG07401");
  163. //진행상태가 강제종료시 선택 컬럼 컨트롤 불능.
  164. fGridSelectDisabled();
  165. //조회시 기본적으로 선입 선출법으로 setting
  166. fRemainDataCalc();
  167. closeLoadingBar();
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="btn_reqdeptcd" class="icon_search" style="left:671px; top:20px; width:16px; height:16px; ">
  172. <caption/>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. var recv_list = "reqdeptcd,reqdeptnm";
  176. misfOpenPopUpList("02", ipt_reqdeptcd,"",recv_list);
  177. model.refresh();
  178. ]]>
  179. </script>
  180. </button>
  181. <input id="ipt_reqdeptnm" ref="/root/send/goodreq/reqdeptnm" class="output_search" style="left:690px; top:20px; width:170px; height:19px; ">
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </input>
  189. <input id="ipt_reqdeptcd" ref="/root/send/goodreq/reqdeptcd" class="input_search" appearance="input" style="left:588px; top:20px; width:77px; height:19px; ">
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  193. model.refresh();
  194. ]]>
  195. </script>
  196. </input>
  197. <input id="ipt_goodcd" ref="/root/send/goodreq/goodcd" class="input_search" appearance="input" style="left:320px; top:92px; width:145px; height:19px; ">
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. if(ipt_goodcd.value != "")
  201. {
  202. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + ",," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  203. model.refresh();
  204. }else{
  205. ipt_goodcd.value = "";
  206. ipt_goodnm.value = "";
  207. model.refresh();
  208. }
  209. ]]>
  210. </script>
  211. </input>
  212. <button id="btn_goodcd" class="icon_search" style="left:471px; top:92px; width:16px; height:16px; ">
  213. <caption/>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  217. model.refresh();
  218. ]]>
  219. </script>
  220. </button>
  221. <input id="ipt_goodnm" ref="/root/send/goodreq/goodnm" class="output_search" style="left:490px; top:92px; width:370px; height:19px; ">
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. if(ipt_goodnm.value != "")
  225. {
  226. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  227. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + ",,," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,
  228. "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  229. }else{
  230. ipt_goodnm.value = "";
  231. ipt_goodcd.value = "";
  232. }
  233. model.refresh();
  234. ]]>
  235. </script>
  236. </input>
  237. <select1 id="cmb_reqflag" ref="/root/send/goodreq/reqflag" class="combo_s_essential" appearance="minimal" style="left:320px; top:19px; width:145px; height:19px; ">
  238. <choices>
  239. <itemset nodeset="/root/init/reqflag">
  240. <label ref="reqflagnm"/>
  241. <value ref="reqflag"/>
  242. </itemset>
  243. </choices>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. if(model.getValue(cmb_reqflag.attribute("ref")) == "") {
  247. model.setValue(cmb_goodflag.attribute("ref"), "");
  248. cmb_goodflag.refresh();
  249. } else {
  250. fReqFagChange(cmb_reqflag.value);
  251. }
  252. //
  253. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  254. addComboItem( "cmb_lrgcd", "전체", "", "above");
  255. cmb_lrgcd.selectedindex= 0;
  256. cmb_lrgcd.refresh();
  257. cmb_lrgcd.dispatch("xforms-value-changed");
  258. cmb_mdlcd.value='';
  259. cmb_mdlcd.refresh();
  260. ]]>
  261. </script>
  262. </select1>
  263. <line id="line14" class="line_4" style="x1:1110px; y1:29px; x2:1110px; y2:96px; "/>
  264. <caption id="caption14" class="search_name" style="left:5px; top:19px; width:91px; height:17px; ">기관코드 :</caption>
  265. <caption id="caption16" class="search_name" style="left:230px; top:92px; width:91px; height:17px; ">물품코드 :</caption>
  266. <caption id="caption20" class="search_name" style="left:485px; top:20px; width:101px; height:17px; ">청 구 부 서 :</caption>
  267. <caption id="caption22" class="search_name" style="left:230px; top:19px; width:91px; height:17px; ">청구구분 :</caption>
  268. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodreq/maincustlastsuplplce" class="input_search" style="left:588px; top:44px; width:77px; height:19px; ">
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. if(ipt_maincustlastsuplplce.value != ""){
  272. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  273. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref"))
  274. ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  275. }else{
  276. ipt_maincustlastsuplplcenm.value = "";
  277. }
  278. model.refresh();
  279. ]]>
  280. </script>
  281. </input>
  282. <caption id="caption31" class="search_name" style="left:485px; top:44px; width:101px; height:17px; ">주 거 래 처 :</caption>
  283. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:671px; top:44px; width:16px; height:16px; ">
  284. <caption/>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  288. model.refresh();
  289. ]]>
  290. </script>
  291. </button>
  292. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodreq/maincustlastsuplplcenm" class="output_search" style="left:690px; top:44px; width:170px; height:19px; ">
  293. <script type="javascript" ev:event="xforms-value-changed">
  294. <![CDATA[
  295. if(ipt_maincustlastsuplplcenm.value != ""){
  296. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  297. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref"))
  298. ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  299. }else{
  300. ipt_maincustlastsuplplce.value = "";
  301. }
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </input>
  306. <button id="btn_suppcustcd" class="icon_search" style="left:671px; top:68px; width:16px; height:16px; ">
  307. <caption/>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustcdnm","SPRSD00220","instcd","cmb_instcd");
  311. model.refresh();
  312. ]]>
  313. </script>
  314. </button>
  315. <caption id="caption3" class="search_name" style="left:485px; top:68px; width:103px; height:17px; ">보조거래처 :</caption>
  316. <input id="ipt_suppcustnm" ref="/root/send/goodreq/suppcustcdnm" class="output_search" style="left:690px; top:68px; width:170px; height:19px; ">
  317. <script type="javascript" ev:event="xforms-value-changed">
  318. <![CDATA[
  319. if(ipt_suppcustnm.value != ""){
  320. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  321. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref"))
  322. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  323. }else{
  324. ipt_suppcustcd.value = "";
  325. }
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </input>
  330. <input id="ipt_suppcustcd" ref="/root/send/goodreq/suppcustcd" class="input_search" style="left:588px; top:68px; width:77px; height:19px; ">
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. if(ipt_suppcustcd.value != ""){
  334. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  335. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref"))
  336. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  337. }else{
  338. ipt_suppcustnm.value = "";
  339. }
  340. model.refresh();
  341. ]]>
  342. </script>
  343. </input>
  344. <caption id="caption1" class="search_name" visibility="hidden" style="left:883px; top:89px; width:90px; height:17px; ">물품구분 :</caption>
  345. <select1 id="cmb_goodflag" ref="/root/send/goodreq/goodflag" class="combo_s_essential" disabled="true" visibility="hidden" appearance="minimal" style="left:973px; top:89px; width:120px; height:19px; ">
  346. <choices>
  347. <itemset nodeset="/root/init/goodflag">
  348. <label ref="cdnm"/>
  349. <value ref="cdid"/>
  350. </itemset>
  351. </choices>
  352. </select1>
  353. <button id="btn_orderyn" class="btn2_letter4" visibility="visible" style="left:930px; top:123px; width:64px; height:19px; ">
  354. <caption>전체취소</caption>
  355. <script type="javascript" ev:event="DOMActivate">
  356. <![CDATA[
  357. fSelectSetting(grd_goodreq,'0', 'N');
  358. ]]>
  359. </script>
  360. </button>
  361. <button id="button1" class="btn2_letter4" visibility="visible" style="left:860px; top:123px; width:64px; height:19px; ">
  362. <caption>전체선택</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. fSelectSetting(grd_goodreq,'1', 'Y');
  366. ]]>
  367. </script>
  368. </button>
  369. <select1 id="cmb_lrgcd" ref="/root/send/goodreq/lrgcd" appearance="minimal" style="left:320px; top:43px; width:145px; height:19px; ">
  370. <choices>
  371. <itemset>
  372. <label/>
  373. <value/>
  374. </itemset>
  375. </choices>
  376. <script type="javascript" ev:event="xforms-value-changed">
  377. <![CDATA[
  378. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  379. cmb_mdlcd.dispatch("xforms-value-changed");
  380. addComboItem( "cmb_mdlcd", "전체", "", "above");
  381. cmb_mdlcd.refresh();
  382. ]]>
  383. </script>
  384. </select1>
  385. <select1 id="cmb_mdlcd" ref="/root/send/goodreq/mdlcd" appearance="minimal" style="left:320px; top:67px; width:145px; height:19px; ">
  386. <choices>
  387. <itemset>
  388. <label/>
  389. <value/>
  390. </itemset>
  391. </choices>
  392. </select1>
  393. <caption id="caption11" class="search_name" style="left:230px; top:43px; width:91px; height:17px; ">대 분 류 :</caption>
  394. <caption id="caption12" class="search_name" style="left:230px; top:67px; width:91px; height:17px; ">중 분 류 :</caption>
  395. <select1 id="cmb_deliveprcsflag_group" ref="/root/send/goodreq/deliveprcsflag_group" class="combo_search" appearance="minimal" style="left:95px; top:67px; width:120px; height:19px; ">
  396. <choices>
  397. <item>
  398. <label>전체</label>
  399. <value/>
  400. </item>
  401. <item>
  402. <label>미출고</label>
  403. <value>13</value>
  404. </item>
  405. <item>
  406. <label>출고</label>
  407. <value>67</value>
  408. </item>
  409. </choices>
  410. </select1>
  411. <select1 id="cmb_workflag" ref="/root/send/goodreq/workflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:92px; width:120px; height:19px; ">
  412. <choices>
  413. <item>
  414. <label>전체</label>
  415. <value/>
  416. </item>
  417. <item>
  418. <label>일반청구</label>
  419. <value>1</value>
  420. </item>
  421. <item>
  422. <label>상비품청구</label>
  423. <value>3</value>
  424. </item>
  425. <item>
  426. <label>상비품망실청구</label>
  427. <value>5</value>
  428. </item>
  429. <item>
  430. <label>상비품반납</label>
  431. <value>4</value>
  432. </item>
  433. <item>
  434. <label>일반청구반납</label>
  435. <value>2</value>
  436. </item>
  437. <item>
  438. <label>처방청구</label>
  439. <value>6</value>
  440. </item>
  441. </choices>
  442. </select1>
  443. <caption id="caption18" class="search_name" style="left:5px; top:67px; width:86px; height:17px; ">진행상태 :</caption>
  444. <caption id="caption2" class="search_name" style="left:5px; top:92px; width:86px; height:17px; ">작업구분 :</caption>
  445. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" visibility="visible" caption="선택^청구일자^청구부서^청구번호^청구구분^작업구분^물품코드^물품코드^물품명^규격^모델^제조회사^재고량^잔량^청구^청구^선불출량^불출량^출고량^재고 출고량^delivedeptqty^진행상태^EDI 코드^기관코드^물품구분^청구구분^작업구분^청구부서^청구번호^청구순번^입고부서^출고자^출고일자^출고번호^출고순번^출고단위^출고부서^입출유형^잔여량계산 구분^잔여 잔고량^기관명^보조거래처명^청구자명^포장단위^비고^정산 여부^재고등록 여부" colsep="^" colwidth="30, 0, 72, 117, 85, 56, 67, 28, 178, 66, 55, 60, 49, 48, 44, 32, 61, 55, 49, 4, 0, 70, 73, 66, 68, 62, 60, 79, 71, 69, 84, 78, 77, 71, 100, 100, 100, 69, 100, 86, 100, 100, 100, 100, 100, 66, 90" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:149px; width:1185px; height:577px; ">
  446. <col checkvalue="Y,N" ref="select" type="checkbox"/>
  447. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
  448. <col ref="reqdeptnm" type="output"/>
  449. <col ref="requnino" style="text-align:center; "/>
  450. <col ref="reqflagnm"/>
  451. <col ref="workflagnm"/>
  452. <col ref="goodcd"/>
  453. <col ref="allsizespecid"/>
  454. <col ref="goodnm"/>
  455. <col ref="goodspec" type="output"/>
  456. <col ref="goodmodel" type="output"/>
  457. <col ref="prodcmpynm" type="output"/>
  458. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  459. <col ref="remstocqty" format="#,###" style="text-align:right; "/>
  460. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  461. <col ref="requnit" style="text-align:center; "/>
  462. <col ref="beforqty" format="#,###" style="text-align:right; "/>
  463. <col ref="inptqty" type="input" format="#,###" style="text-align:right; "/>
  464. <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
  465. <col ref="stocdeliveqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  466. <col ref="delivecsrdept" visibility="hidden"/>
  467. <col disabled="true" ref="deliveprcsflag" type="combo">
  468. <choices>
  469. <itemset>
  470. <label/>
  471. <value/>
  472. </itemset>
  473. </choices>
  474. </col>
  475. <col ref="edicd" visibility="hidden"/>
  476. <col ref="instcd" visibility="hidden"/>
  477. <col ref="goodflag" visibility="hidden"/>
  478. <col ref="reqflag" visibility="hidden"/>
  479. <col ref="workflag" visibility="hidden"/>
  480. <col ref="reqdeptcd" visibility="hidden"/>
  481. <col ref="reqno" visibility="hidden"/>
  482. <col ref="reqseqno" visibility="hidden"/>
  483. <col ref="windeptcd" visibility="hidden"/>
  484. <col ref="delivepsn" visibility="hidden" style="left:1805px; top:23px; width:78px; height:23px; "/>
  485. <col ref="delivedd" visibility="hidden"/>
  486. <col ref="deliveno" visibility="hidden"/>
  487. <col ref="deliveseqno" visibility="hidden"/>
  488. <col ref="deliveunit" visibility="hidden"/>
  489. <col ref="delivedeptcd" visibility="hidden"/>
  490. <col ref="iokindcd" visibility="hidden"/>
  491. <col ref="remcheck" visibility="hidden"/>
  492. <col ref="remstocqty" visibility="hidden"/>
  493. <col ref="instnm" visibility="hidden" style="text-align:left; padding-left:10; "/>
  494. <col ref="subsuplplcenm" visibility="hidden" style="text-align:left; padding-left:10; "/>
  495. <col ref="reqpsnnm" visibility="hidden" style="text-align:center; "/>
  496. <col ref="deliveunit2" visibility="hidden" style="text-align:left; "/>
  497. <col ref="cmt" visibility="hidden" style="text-align:left; "/>
  498. <col checkvalue="Y,N" disabled="true" ref="genwin" type="checkbox" visibility="visible" style="text-align:center; "/>
  499. <col checkvalue="Y,N" disabled="true" ref="stocrgstyn" type="checkbox" visibility="visible" style="text-align:center; "/>
  500. <script type="javascript" ev:event="onaftersort">
  501. <![CDATA[
  502. grd_goodreq.gridToInstance();
  503. fRemainDataCalc();
  504. ]]>
  505. </script>
  506. <script type="javascript" ev:event="xforms-value-changed">
  507. <![CDATA[
  508. if(grd_goodreq.col == grd_goodreq.colRef("inptqty")){
  509. var beforqty = parseInt(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/beforqty"));
  510. var inptqty = parseInt(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/inptqty"));
  511. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/delivedeptqty", (beforqty + inptqty));
  512. model.refresh();
  513. }
  514. fGridSelectGoodReq();
  515. model.recalculate();
  516. model.refresh();
  517. ]]>
  518. </script>
  519. </datagrid>
  520. <button id="btn_delivecncl" class="btn2_letter4" visibility="visible" style="left:1000px; top:123px; width:64px; height:19px; ">
  521. <caption>출고취소</caption>
  522. <script type="javascript" ev:event="DOMActivate">
  523. <![CDATA[
  524. var deliveprcsflag, delivedd, genwin, stocrgstyn, rowIdx;
  525. var reqrows = "", stocrows = "", genwinrows = "", closerows = "";
  526. if (grd_goodreq.selectedRows > 0) {
  527. var selectedRows = Array(grd_goodreq.selectedRows);
  528. for(i=0;i< grd_goodreq.selectedRows;i++) {
  529. selectedRows[i] = grd_goodreq.selectedRow(i);
  530. }
  531. }
  532. for ( var i= 0; i <= selectedRows.length; i++){
  533. rowIdx = selectedRows[i];
  534. deliveprcsflag = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("deliveprcsflag"));
  535. delivedd = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("delivedd"));
  536. genwin = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("genwin"));
  537. stocrgstyn = grd_goodreq.valueMatrix(rowIdx, grd_goodreq.colRef("stocrgstyn"));
  538. if (deliveprcsflag == "1"){
  539. reqrows = reqrows + rowIdx + ", ";
  540. }
  541. else if (stocrgstyn == "N"){
  542. stocrows = stocrows + rowIdx + ", ";
  543. }
  544. else if (genwin == "Y"){
  545. genwinrows = genwinrows + rowIdx + ", ";
  546. }
  547. else if(gPurcCloseYymm >= delivedd.substr(0,6)) {
  548. closerows = closerows + rowIdx + ", ";
  549. }
  550. else{
  551. grd_goodreq.rowStatus(rowIdx) = "4";
  552. }
  553. }
  554. if (reqrows != ""){
  555. messageBox("(" + reqrows.substr(0, reqrows.length-2) + "번째) 진행 상태가 청구인 건은 취소 할수", "I004");
  556. }
  557. if (stocrows != ""){
  558. messageBox("(" + stocrows.substr(0, stocrows.length-2) + "번째) 재고 등록이 되어 있지", "I011");
  559. }
  560. if (genwinrows != ""){
  561. messageBox("(" + genwinrows.substr(0, genwinrows.length-2) + "번째) 수탁 정산 처리가 완료된 건은 취소 할수", "I004");
  562. }
  563. if (closerows != ""){
  564. messageBox("(" + closerows.substr(0, closerows.length-2) + "번째) 마감이 완료되어 출고처리가 불가능합니다.", "I");
  565. }
  566. ]]>
  567. </script>
  568. </button>
  569. <button id="btn_delivecnclremv" class="btn2_letter7" visibility="visible" style="left:1070px; top:123px; width:97px; height:19px; ">
  570. <caption>출고취소 해제</caption>
  571. <script type="javascript" ev:event="DOMActivate">
  572. <![CDATA[
  573. var rowIdx;
  574. if (grd_goodreq.selectedRows > 0) {
  575. var selectedRows = Array(grd_goodreq.selectedRows);
  576. for(i=0;i< grd_goodreq.selectedRows;i++) {
  577. selectedRows[i] = grd_goodreq.selectedRow(i);
  578. }
  579. }
  580. for ( var i= 0; i <= selectedRows.length; i++){
  581. rowIdx = selectedRows[i];
  582. grd_goodreq.rowStatus(rowIdx) = "0";
  583. }
  584. ]]>
  585. </script>
  586. </button>
  587. </group>
  588. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  589. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">수탁 청구분 출고처리</caption>
  590. </group>
  591. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  592. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
  593. <caption>저장</caption>
  594. <script type="javascript" ev:event="DOMActivate">
  595. <![CDATA[
  596. if(fCheckSaveData() == false) return;
  597. fSettingSaveOutData(); // 출고저장
  598. ]]>
  599. </script>
  600. </button>
  601. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  602. <caption>초기화</caption>
  603. <script type="javascript" ev:event="DOMActivate">
  604. <![CDATA[
  605. fInitialize();
  606. ]]>
  607. </script>
  608. </button>
  609. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  610. <button id="button13" class="btn6_letter5" style="left:5px; top:5px; width:92px; height:22px; ">
  611. <caption>불출서출력</caption>
  612. <script type="javascript" ev:event="DOMActivate">
  613. <![CDATA[
  614. freqlistprint();
  615. ]]>
  616. </script>
  617. </button>
  618. </group>
  619. <button id="button2" class="btn2_letter5" visibility="visible" style="left:787px; top:158px; width:75px; height:19px; ">
  620. <caption>잔량재계산</caption>
  621. <script type="javascript" ev:event="DOMActivate">
  622. <![CDATA[
  623. fRemainDataCalc();
  624. ]]>
  625. </script>
  626. </button>
  627. <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:305px; top:158px; width:100px; height:19px; ">
  628. <script type="javascript" ev:event="xforms-value-changed">
  629. <![CDATA[
  630. ]]>
  631. </script>
  632. </input>
  633. <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:185px; top:158px; width:100px; height:19px; ">
  634. <script type="javascript" ev:event="xforms-value-changed">
  635. <![CDATA[
  636. ]]>
  637. </script>
  638. </input>
  639. <select1 id="cmb_stocyn" ref="/root/send/goodreq/stocyn" appearance="minimal" style="left:625px; top:158px; width:100px; height:19px; ">
  640. <choices>
  641. <item>
  642. <label>전체</label>
  643. <value/>
  644. </item>
  645. <item>
  646. <label>재고있음</label>
  647. <value>Y</value>
  648. </item>
  649. <item>
  650. <label>재고없음</label>
  651. <value>N</value>
  652. </item>
  653. </choices>
  654. </select1>
  655. <caption id="caption23" style="left:288px; top:158px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  656. <caption id="caption24" class="search_name" style="left:95px; top:159px; width:86px; height:17px; ">청구일자 :</caption>
  657. <caption id="caption4" class="tit_2" style="left:5px; top:163px; width:110px; height:13px; ">청구내역</caption>
  658. <line id="line1" class="line_1" style="x1:0px; y1:178px; x2:1186px; y2:178px; "/>
  659. <input id="ipt_delivedd" ref="/root/init/delivedd" class="input_s_essential" inputtype="date" style="left:515px; top:158px; width:100px; height:19px; ">
  660. <script type="javascript" ev:event="xforms-value-changed">
  661. <![CDATA[
  662. var delivedd = model.getValue(ipt_delivedd.attribute("ref"));
  663. if(gPurcCloseYymm >= delivedd.substr(0,6)) {
  664. messageBox("마감이 완료되어 출고처리가 불가능합니다.", "I");
  665. btn_save.disabled = true;
  666. return;
  667. }
  668. btn_save.disabled = false;
  669. model.refresh();
  670. ]]>
  671. </script>
  672. </input>
  673. <caption id="cap_delivedd" class="search_name" style="left:420px; top:159px; width:91px; height:17px; ">출고일자 :</caption>
  674. </xhtml:body>
  675. </xhtml:html>