XSMRSG07400_(수탁)청구분출고관리.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
  4. <xhtml:head>
  5. <xhtml:title>청구분출고관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodreq>
  12. <goodreqlist/>
  13. </goodreq>
  14. <gooddelive>
  15. <gooddelivelist/>
  16. </gooddelive>
  17. </list>
  18. <item/>
  19. </main>
  20. <send>
  21. <save>
  22. <goodreq>
  23. <goodreqlist/>
  24. </goodreq>
  25. <gooddelive>
  26. <gooddelivelist/>
  27. </gooddelive>
  28. </save>
  29. <goodreq>
  30. <instcd/>
  31. <reqfrdd/>
  32. <reqtodd/>
  33. <delivedd/>
  34. <reqdeptcd/>
  35. <reqdeptnm/>
  36. <goodcd/>
  37. <goodnm/>
  38. <deliveprcsflag/>
  39. <reqflag/>
  40. <workflag/>
  41. <reqmthdflag/>
  42. <deliveprcsflag_group/>
  43. <maincustlastsuplplce/>
  44. <maincustlastsuplplcenm/>
  45. <suppcustcd/>
  46. <suppcustcdnm/>
  47. </goodreq>
  48. <gooddelive>
  49. <instcd/>
  50. <reqflag/>
  51. <reqdd/>
  52. <reqno/>
  53. <reqseqno/>
  54. </gooddelive>
  55. </send>
  56. <init>
  57. <temppay>
  58. <label>예</label>
  59. <value>Y</value>
  60. <label>아니오</label>
  61. <value>N</value>
  62. </temppay>
  63. <elctstmntyn>
  64. <label>예</label>
  65. <value>Y</value>
  66. <label>아니오</label>
  67. <value>N</value>
  68. </elctstmntyn>
  69. <winqty/>
  70. <winamt/>
  71. </init>
  72. <hidden/>
  73. <temp/>
  74. <copynode/>
  75. </root>
  76. </instance>
  77. <bind id="delivedeptqty" ref="/root/main/list/gooddelive/gooddelivelist/delivedeptqty" calculate="../deliveqty"/>
  78. <bind id="savedeliveprcsflag" ref="/root/main/list/goodreq/goodreqlist/savedeliveprcsflag" calculate="../deliveprcsflag"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. //화면 Control을 초기화한다
  82. fInitialize();
  83. ]]>
  84. </script>
  85. <submission id="TRRSG07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  86. <submission id="TXRSG07401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/gooddelive" resultref="/root/hidden/temp"/>
  87. </model>
  88. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  89. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  90. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  91. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  94. <script type="javascript" src="../../../mis/purcstatsweb/js/SMRSG07400.js"/>
  95. <script type="javascript">
  96. <![CDATA[
  97. ]]>
  98. </script>
  99. </xhtml:head>
  100. <xhtml:body marginleft="8" style="margin-top:0; margin-right:8; margin-bottom:0; ">
  101. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  102. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">청구분출고처리</caption>
  103. </group>
  104. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  105. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:115px; "/>
  106. <select1 id="cmb_instcd" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:120px; top:18px; width:120px; height:19px; ">
  107. <choices>
  108. <itemset nodeset="/root/init/instcd">
  109. <label ref="cdnm"/>
  110. <value ref="cdid"/>
  111. </itemset>
  112. </choices>
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. rszfUserReqFlagList(cmb_reqflag,model.getValue(cmb_instcd.attribute("ref")),getUserInfo("userid"));
  116. ]]>
  117. </script>
  118. </select1>
  119. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1125px; top:45px; width:56px; height:22px; text-align:left; ">
  120. <caption>조회</caption>
  121. <script type="javascript" ev:event="DOMActivate">
  122. <![CDATA[
  123. if(fCheckRetrieveData(false) == false) return;
  124. misfMsterDetailRetrieve();
  125. //진행상태가 강제종료시 선택 컬럼 컨트롤 불능.
  126. fGridSelectDisabled();
  127. ]]>
  128. </script>
  129. </button>
  130. <input id="ipt_reqfrdd" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:571px; top:70px; width:120px; height:19px; "/>
  131. <input id="ipt_reqtodd" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:721px; top:70px; width:126px; height:19px; "/>
  132. <caption id="caption23" style="left:699px; top:70px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  133. <button id="btnselect" class="btn2_letter9" style="left:1075px; top:130px; width:119px; height:19px; ">
  134. <caption>전체/전체선택 취소</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. var reqqty, beforqty, delivedeptqty;
  138. for(var liRow = grd_goodreq.fixedRows; liRow < grd_goodreq.rows ; liRow++)
  139. {
  140. if(grd_goodreq.valueMatrix(liRow, grd_goodreq.colRef("deliveprcsflag")) == '1' ){
  141. if(grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("select")) == "Y")
  142. {
  143. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/select" , "N");
  144. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/delivedeptqty" , model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/predelivedeptqty"));
  145. grd_goodreq.rowStatus(liRow) = "0";
  146. }else{
  147. reqqty = parseInt(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/reqqty"));
  148. beforqty = parseInt(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/beforqty"));
  149. delivedeptqty = parseInt(model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/delivedeptqty"));
  150. if (beforqty + reqqty > delivedeptqty){
  151. messageBox(liRow+"번째 출고량이 청구량과 선불출량의 합보다 적으므로 출고완료로 설정 " ,"E001");
  152. grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("select")) = "N";
  153. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/delivedeptqty" , model.getValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/predelivedeptqty"));
  154. grd_goodreq.rowStatus(liRow) = "0";
  155. }else{
  156. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/select" , "Y");
  157. grd_goodreq.rowStatus(liRow) = "2";
  158. }
  159. }
  160. }
  161. }
  162. model.recalculate();
  163. model.refresh();
  164. ]]>
  165. </script>
  166. </button>
  167. <input id="ipt_delivedd" ref="/root/send/goodreq/delivedd" class="input_s_essential" inputtype="date" style="left:120px; top:44px; width:120px; height:19px; "/>
  168. <button id="btn_reqdeptcd" class="icon_search" style="left:657px; top:47px; width:16px; height:16px; ">
  169. <caption/>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. var recv_list = "reqdeptcd,reqdeptnm";
  173. misfOpenPopUpList("02", ipt_reqdeptcd,"",recv_list);
  174. model.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. <input id="ipt_reqdeptnm" ref="/root/send/goodreq/reqdeptnm" class="input_search" style="left:677px; top:44px; width:170px; height:19px; ">
  179. <script type="javascript" ev:event="xforms-value-changed">
  180. <![CDATA[
  181. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  182. model.refresh();
  183. ]]>
  184. </script>
  185. </input>
  186. <input id="ipt_reqdeptcd" ref="/root/send/goodreq/reqdeptcd" class="input_search" appearance="input" style="left:571px; top:44px; width:82px; height:19px; ">
  187. <script type="javascript" ev:event="xforms-value-changed">
  188. <![CDATA[
  189. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  190. model.refresh();
  191. ]]>
  192. </script>
  193. </input>
  194. <input id="ipt_goodcd" ref="/root/send/goodreq/goodcd" class="input_search" appearance="input" style="left:571px; top:18px; width:82px; height:19px; ">
  195. <script type="javascript" ev:event="xforms-value-changed">
  196. <![CDATA[
  197. if(ipt_goodcd.value != "")
  198. {
  199. 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");
  200. model.refresh();
  201. btn_search.dispatch("DOMActivate");
  202. }else{
  203. ipt_goodcd.value = "";
  204. ipt_goodnm.value = "";
  205. model.refresh();
  206. }
  207. ]]>
  208. </script>
  209. </input>
  210. <button id="btn_goodcd" class="icon_search" style="left:657px; top:20px; width:16px; height:16px; ">
  211. <caption/>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  215. model.refresh();
  216. ]]>
  217. </script>
  218. </button>
  219. <input id="ipt_goodnm" ref="/root/send/goodreq/goodnm" class="input_search" style="left:677px; top:18px; width:170px; height:19px; ">
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. if(ipt_goodnm.value != "")
  223. {
  224. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  225. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + ",,," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,
  226. "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  227. }else{
  228. ipt_goodnm.value = "";
  229. ipt_goodcd.value = "";
  230. }
  231. model.refresh();
  232. ]]>
  233. </script>
  234. </input>
  235. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" visibility="visible" caption="선택^청구일자^청구부서^청구구분^작업구분^순번^물품코드^물품코드^물품명^규격^모델^제조회사^청구^청구^재고^선불출^기출고^진행상태^사유^이전 출고수량^출고수량^기관코드^물품구분^출고일자^출고번호^출고일련번호^입출유형코드^출고부서코드^출고자ID^입고부서코드^청구구분^청구번호^입고일자^입고번호(0000)^입고일련번호(000~999)^출고단위^청구부서^작업구분 코드" colsep="^" colwidth="30, 73, 72, 62, 56, 44, 80, 29, 178, 66, 55, 60, 44, 57, 37, 44, 7, 78, 15, 16, 51, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:160px; width:1195px; height:560px; ">
  236. <col checkvalue="Y,N" ref="select" type="checkbox"/>
  237. <col ref="reqdd" format="yyyy-mm-dd"/>
  238. <col ref="reqdeptnm" type="output"/>
  239. <col ref="reqflagnm"/>
  240. <col ref="workflagnm"/>
  241. <col ref="reqseqno" style="text-align:center; "/>
  242. <col ref="goodcd"/>
  243. <col ref="allsizespecid" style="text-align:center; "/>
  244. <col ref="goodnm"/>
  245. <col ref="goodspec" type="output"/>
  246. <col ref="goodmodel" type="output"/>
  247. <col ref="prodcmpynm" type="output"/>
  248. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  249. <col ref="requnit"/>
  250. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  251. <col ref="beforqty" style="text-align:left; "/>
  252. <col ref="deliveqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  253. <col disabled="true" ref="deliveprcsflag" type="combo">
  254. <choices>
  255. <itemset>
  256. <label/>
  257. <value/>
  258. </itemset>
  259. </choices>
  260. </col>
  261. <col ref="unwinresn" type="combo" visibility="hidden">
  262. <choices>
  263. <item>
  264. <label/>
  265. <value/>
  266. </item>
  267. <item>
  268. <label>거래처사정</label>
  269. <value>거래처사정</value>
  270. </item>
  271. <item>
  272. <label>단종</label>
  273. <value>단종</value>
  274. </item>
  275. <item>
  276. <label>품목변경</label>
  277. <value>품목변경</value>
  278. </item>
  279. <item>
  280. <label>청구취소</label>
  281. <value>청구취소</value>
  282. </item>
  283. <item>
  284. <label>기타</label>
  285. <value>기타</value>
  286. </item>
  287. </choices>
  288. </col>
  289. <col ref="predelivedeptqty" visibility="hidden" style="text-align:left; "/>
  290. <col ref="delivedeptqty" type="input" style="text-align:left; "/>
  291. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  292. <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
  293. <col ref="delivedd" visibility="hidden" style="text-align:left; "/>
  294. <col ref="deliveno" visibility="hidden" style="text-align:left; "/>
  295. <col ref="deliveseqno" visibility="hidden" style="text-align:left; "/>
  296. <col ref="iokindcd" visibility="hidden" style="text-align:left; "/>
  297. <col ref="delivedeptcd" visibility="hidden" style="text-align:left; "/>
  298. <col ref="delivepsn" visibility="hidden" style="text-align:left; "/>
  299. <col ref="windeptcd" visibility="hidden" style="text-align:left; "/>
  300. <col ref="reqflag" visibility="hidden" style="text-align:left; "/>
  301. <col ref="reqno" visibility="hidden" style="text-align:left; "/>
  302. <col ref="winno" visibility="hidden" style="text-align:left; "/>
  303. <col ref="windd" visibility="hidden" style="text-align:left; "/>
  304. <col ref="winseqno" visibility="hidden" style="text-align:left; "/>
  305. <col ref="deliveunit" visibility="hidden" style="text-align:left; "/>
  306. <col ref="reqdeptcd" visibility="hidden" style="text-align:left; "/>
  307. <col ref="workflag" visibility="hidden" style="text-align:left; "/>
  308. <script type="javascript" ev:event="xforms-value-changed">
  309. <![CDATA[
  310. if(grd_goodreq.col == grd_goodreq.colRef("select"))
  311. {
  312. if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("workflag")) == "4"){
  313. grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("delivedeptqty")) *= -1;
  314. }
  315. }
  316. model.refresh();
  317. ]]>
  318. </script>
  319. <script type="javascript" ev:event="onentercell">
  320. <![CDATA[
  321. //if(grd_goodreq.colAttribute(grd_goodreq.col, "type").indexOf ("input") > -1 ||grd_goodreq.colAttribute(grd_goodreq.col, "type").indexOf ("checkbox") > -1) grd_goodreq.editCell();
  322. ]]>
  323. </script>
  324. <script type="javascript" ev:event="onaftersort">
  325. <![CDATA[
  326. grd_goodreq.gridToInstance();
  327. ]]>
  328. </script>
  329. </datagrid>
  330. <select1 id="cmb_workflag" ref="/root/send/goodreq/workflag" class="combo_s_essential" appearance="minimal" style="left:958px; top:45px; width:120px; height:19px; ">
  331. <choices>
  332. <item>
  333. <label>전체</label>
  334. <value/>
  335. </item>
  336. <item>
  337. <label>일반청구</label>
  338. <value>1</value>
  339. </item>
  340. <item>
  341. <label>상비품청구</label>
  342. <value>3</value>
  343. </item>
  344. <item>
  345. <label>상비품망실청구</label>
  346. <value>5</value>
  347. </item>
  348. <item>
  349. <label>상비품반납</label>
  350. <value>4</value>
  351. </item>
  352. <item>
  353. <label>일반청구반납</label>
  354. <value>2</value>
  355. </item>
  356. <item>
  357. <label>처방청구</label>
  358. <value>6</value>
  359. </item>
  360. </choices>
  361. </select1>
  362. <select1 id="cmb_reqflag" ref="/root/send/goodreq/reqflag" class="combo_s_essential" appearance="minimal" style="left:341px; top:18px; width:120px; height:19px; ">
  363. <choices>
  364. <itemset nodeset="/root/init/reqflag">
  365. <label ref="reqflagnm"/>
  366. <value ref="reqflag"/>
  367. </itemset>
  368. </choices>
  369. </select1>
  370. <select1 id="cmb_reqmthd" ref="/root/send/goodreq/reqmthdflag" class="combo_s_essential" appearance="minimal" style="left:341px; top:44px; width:120px; height:19px; ">
  371. <choices>
  372. <itemset nodeset="/root/init/reqmthd">
  373. <label ref="cdnm"/>
  374. <value ref="cdid"/>
  375. </itemset>
  376. </choices>
  377. </select1>
  378. <select1 id="cmb_deliveprcsflag_group" ref="/root/send/goodreq/deliveprcsflag_group" class="combo_search" appearance="minimal" style="left:958px; top:19px; width:120px; height:19px; ">
  379. <choices>
  380. <item>
  381. <label>전체</label>
  382. <value/>
  383. </item>
  384. <item>
  385. <label>미출고</label>
  386. <value>13</value>
  387. </item>
  388. <item>
  389. <label>출고</label>
  390. <value>67</value>
  391. </item>
  392. </choices>
  393. </select1>
  394. <line id="line14" class="line_4" style="x1:1110px; y1:19px; x2:1110px; y2:86px; "/>
  395. <caption id="caption14" class="search_name" style="left:15px; top:19px; width:96px; height:17px; ">기관코드 :</caption>
  396. <caption id="caption15" class="search_name" style="left:15px; top:45px; width:96px; height:17px; ">출고일자 :</caption>
  397. <caption id="caption16" class="search_name" style="left:476px; top:19; width:86px; height:17px; ">물품코드 :</caption>
  398. <caption id="caption18" class="search_name" style="left:863px; top:20px; width:86px; height:17px; ">진행상태 :</caption>
  399. <caption id="caption19" class="search_name" style="left:863px; top:46px; width:86px; height:17px; ">작업구분 :</caption>
  400. <caption id="caption20" class="search_name" style="left:476px; top:45; width:94px; height:17px; ">청구부서 :</caption>
  401. <caption id="caption21" class="search_name" style="left:246px; top:45; width:86px; height:17px; ">청구방법 :</caption>
  402. <caption id="caption22" class="search_name" style="left:246px; top:19; width:99px; height:17px; ">청구구분 :</caption>
  403. <caption id="caption24" class="search_name" style="left:476px; top:71px; width:86px; height:17px; ">청구일자 :</caption>
  404. <line id="line1" class="line_1" style="x1:0px; y1:151px; x2:1195px; y2:151px; "/>
  405. <caption id="caption4" class="tit_2" style="left:5px; top:136px; width:110px; height:13px; ">청구내역</caption>
  406. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodreq/maincustlastsuplplce" class="input_search" style="left:120px; top:70px; width:120px; height:19px; ">
  407. <script type="javascript" ev:event="xforms-value-changed">
  408. <![CDATA[
  409. if(ipt_maincustlastsuplplce.value != ""){
  410. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  411. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref"))
  412. ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  413. }else{
  414. ipt_maincustlastsuplplcenm.value = "";
  415. }
  416. model.refresh();
  417. ]]>
  418. </script>
  419. </input>
  420. <caption id="caption31" class="search_name" style="left:15px; top:70px; width:99px; height:17px; ">주 거래처 :</caption>
  421. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:247px; top:72px; width:16px; height:16px; ">
  422. <caption/>
  423. <script type="javascript" ev:event="DOMActivate">
  424. <![CDATA[
  425. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  426. model.refresh();
  427. ]]>
  428. </script>
  429. </button>
  430. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodreq/maincustlastsuplplcenm" class="input_search" style="left:270px; top:70px; width:190px; height:19px; ">
  431. <script type="javascript" ev:event="xforms-value-changed">
  432. <![CDATA[
  433. if(ipt_maincustlastsuplplcenm.value != ""){
  434. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  435. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref"))
  436. ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  437. }else{
  438. ipt_maincustlastsuplplce.value = "";
  439. }
  440. model.refresh();
  441. ]]>
  442. </script>
  443. </input>
  444. <button id="btn_suppcustcd" class="icon_search" style="left:247px; top:97px; width:16px; height:16px; ">
  445. <caption/>
  446. <script type="javascript" ev:event="DOMActivate">
  447. <![CDATA[
  448. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustcdnm","SPRSD00220","instcd","cmb_instcd");
  449. model.refresh();
  450. ]]>
  451. </script>
  452. </button>
  453. <caption id="caption3" class="search_name" style="left:15px; top:95px; width:99px; height:17px; ">보조거래처 :</caption>
  454. <input id="ipt_suppcustnm" ref="/root/send/goodreq/suppcustcdnm" class="input_search" style="left:270px; top:95px; width:190px; height:19px; ">
  455. <script type="javascript" ev:event="xforms-value-changed">
  456. <![CDATA[
  457. if(ipt_suppcustnm.value != ""){
  458. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  459. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref"))
  460. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  461. }else{
  462. ipt_suppcustcd.value = "";
  463. }
  464. model.refresh();
  465. ]]>
  466. </script>
  467. </input>
  468. <input id="ipt_suppcustcd" ref="/root/send/goodreq/suppcustcd" class="input_search" style="left:120px; top:95px; width:120px; height:19px; ">
  469. <script type="javascript" ev:event="xforms-value-changed">
  470. <![CDATA[
  471. if(ipt_suppcustcd.value != ""){
  472. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  473. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref"))
  474. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  475. }else{
  476. ipt_suppcustnm.value = "";
  477. }
  478. model.refresh();
  479. ]]>
  480. </script>
  481. </input>
  482. </group>
  483. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  484. <button id="btn_windocu" class="btn3_letter6" visibility="hidden" style="left:57px; top:3px; width:104px; height:22px; ">
  485. <caption>입고전표관리</caption>
  486. </button>
  487. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  488. <caption>출력</caption>
  489. </button>
  490. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
  491. <caption>저장</caption>
  492. <script type="javascript" ev:event="DOMActivate">
  493. <![CDATA[
  494. if(fCheckSaveData() == false)return;
  495. fValidationCheck();
  496. //fSettingSaveOutData();
  497. ]]>
  498. </script>
  499. </button>
  500. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3px; width:68px; height:22px; ">
  501. <caption>초기화</caption>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. fInitialize();
  505. ]]>
  506. </script>
  507. </button>
  508. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  509. </group>
  510. </xhtml:body>
  511. </xhtml:html>