SMRSI06000_비품입고관리(경북대).xrw 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  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. <goodwin>
  12. <goodwinlist/>
  13. <goodmaxwinno/>
  14. </goodwin>
  15. <goodnonwin>
  16. <goodnonwinlist/>
  17. <goodmaxwinno/>
  18. </goodnonwin>
  19. <fixplceord>
  20. <fixplceordlist/>
  21. </fixplceord>
  22. <fixplcewin>
  23. <fixplcewinlist/>
  24. </fixplcewin>
  25. <fixplcewinno>
  26. <fixplcewinnolist/>
  27. </fixplcewinno>
  28. </list>
  29. <item/>
  30. </main>
  31. <send>
  32. <save>
  33. </save>
  34. <goodwin>
  35. <instcd/>
  36. <goodflag/>
  37. <windd/>
  38. <winno/>
  39. <windeptcd/>
  40. <windeptnm/>
  41. <winpsn/>
  42. <winpsnnm/>
  43. <installplcecd/>
  44. <installplcenm/>
  45. <paycond/>
  46. <suplplcecd/>
  47. <suplplcenm/>
  48. <temppay/>
  49. <calcdocukind/>
  50. <calcdocudd/>
  51. <plceordfrdd/>
  52. <plceordtodd/>
  53. <retrmaxwinnoyn/>
  54. <suppcustcd/>
  55. <suppcustnm/>
  56. <pgm_gubun/>
  57. <prcsstat/>
  58. <fromdd/>
  59. <todd/>
  60. </goodwin>
  61. <gooddmndreq>
  62. <instcd/>
  63. <goodflag/>
  64. <purcdmnddd/>
  65. <purcdmndno/>
  66. <purcdmndseq/>
  67. </gooddmndreq>
  68. <fixplceord>
  69. <fixplceordlist/>
  70. </fixplceord>
  71. <fixplcewin>
  72. <fixplcewinlist/>
  73. </fixplcewin>
  74. </send>
  75. <init>
  76. <winqty/>
  77. <winamt/>
  78. </init>
  79. <hidden/>
  80. <temp/>
  81. <copynode/>
  82. </root>
  83. </instance>
  84. <bind id="bind1" ref="/root/main/list/fixplceord/fixplceordlist/plcewinamt" calculate="../plcewinqty *../wncurncyamt"/>
  85. <bind id="bind2" ref="/root/main/list/fixplceord/fixplcewinlist/plcewinamt" calculate="../plcewinqty *../wncurncyamt"/>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. ////화면 Control을 초기화한다
  89. fCheckAuth();
  90. fInitialize();
  91. ]]>
  92. </script>
  93. <submission id="TXRSO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/hidden/temp">"</submission>
  94. <submission id="TRRSR05201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/fixplceord"/>
  95. <submission id="TXRSI02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixplceord" resultref="/root/hidden/temp">"</submission>
  96. <submission id="TRRSI02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/fixplcewin"/>
  97. <submission id="TXRSI02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixplcewin" resultref="/root/hidden/temp">"</submission>
  98. <submission id="TRRSI02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/fixplcewinno"/>
  99. <bind id="bind3" ref="/root/main/list/fixplcewin/fixplcewinlist/winamtcheck" calculate="if(../plcewinamt = ../plceordamt, 1, 0)"/>
  100. </model>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  104. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  107. <script type="javascript">
  108. <![CDATA[
  109. function fInitialize() {
  110. model.resetInstanceNode("/root/send");
  111. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  112. misfComboComCdListMulti("R0109","cmb_calcdocukind");
  113. // 조회가 아닌데 전체는 의미가 없다...HBH . 2007.08.13
  114. //rszfComboAppendBlankChild("cmb_calcdocukind");
  115. misfGridInit(grd_fixplcewin);
  116. misfGridInit(grd_fixplceord);
  117. // misfMsterDetailSet(grd_fixplceord,null, "TRRSI00101" ,"Y");
  118. var curdate = getCurrentDate();
  119. var cvtdate = curdate.toDate("YYYYMMDD");
  120. // model.setValue(ipt_windd.attribute("ref") ,curdate);
  121. model.setValue(ipt_fromdd.attribute("ref") , curdate.substr(0,6)+"01" );
  122. model.setValue(ipt_todd.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
  123. model.setValue(ipt_plceordfrdd.attribute("ref") , curdate.substr(0,6)+"01" );
  124. model.setValue(ipt_plceordtodd.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
  125. rdo_paycond.select(0);
  126. model.setValue(ipt_windd.attribute("ref"), getCurrentDate()); //입고일자
  127. model.setValue(ipt_calcdocudd.attribute("ref"), getCurrentDate()); //계산서일자
  128. //hidden
  129. model.setValue(ipt_goodflag.attribute("ref"),'GE'); // 물품구분
  130. model.setValue(ipt_pgm_gubun.attribute("ref"),'W'); // 조회구분 ( P:요구, W :입고)
  131. model.setValue(ipt_prcsstat.attribute("ref"),'3'); // 진행상태 ( 요구조회 프로그램과 같이 사용하기 위해)
  132. model.setValue(ipt_sumwinqty.attribute("ref"),0);
  133. model.setValue(opt_sumwinamt.attribute("ref"),0);
  134. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  135. model.setValue(ipt_windeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  136. model.setValue(opt_windeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  137. model.setValue(ipt_winpsn.attribute("ref") , getUserInfo("userid"));
  138. model.setValue(opt_winpsnnm.attribute("ref") , getUserInfo("usernm"));
  139. grd_fixplcewin.explorerbar = "sortshow";
  140. grd_fixplceord.explorerbar = "sortshow";
  141. // grd_fixplceord.frozenCols = grd_fixplceord.colRef("winunit");
  142. model.refresh();
  143. }
  144. function fCheckAuth() {
  145. btn_search.disabled = !checkAuth("R") ;
  146. btn_save.disabled = !checkAuth("X") ;
  147. }
  148. function fCheckRetrieveData(pmsg)
  149. {
  150. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  151. {
  152. if(pmsg == true)
  153. {
  154. messageBox("기관코드를 " ,"C002");
  155. model.setFocus("cmb_instcd");
  156. }
  157. return false;
  158. }
  159. if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
  160. {
  161. if(pmsg == true)
  162. {
  163. messageBox("입고담당자를 " ,"C001");
  164. model.setFocus("ipt_winpsn");
  165. }
  166. return false;
  167. }
  168. if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
  169. {
  170. if(pmsg == true)
  171. {
  172. messageBox("입고부서를 " ,"C001");
  173. model.setFocus("ipt_windeptcd");
  174. }
  175. return false;
  176. }
  177. if(sch_select.selectedIndex == 0)
  178. {
  179. /* 미입고내역 조회는 거래처가 없어도 될듯 2007.10.14 HBH
  180. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  181. {
  182. if(pmsg == true)
  183. {
  184. messageBox("거래처를 " ,"C001");
  185. model.setFocus("ipt_suplplcecd");
  186. }
  187. return false;
  188. }
  189. */
  190. if(model.getValue(ipt_plceordfrdd.attribute("ref")).length== 0 )
  191. {
  192. if(pmsg == true)
  193. {
  194. messageBox("요구시작일자 " ,"C001");
  195. model.setFocus("ipt_plceordfrdd");
  196. }
  197. return false;
  198. }
  199. if(model.getValue(ipt_plceordtodd.attribute("ref")).length== 0 )
  200. {
  201. if(pmsg == true)
  202. {
  203. messageBox("요구종료일자 " ,"C001");
  204. model.setFocus("ipt_plceordtodd");
  205. }
  206. return false;
  207. }
  208. return true;
  209. }
  210. else
  211. {
  212. // if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
  213. // {
  214. // if(pmsg == true)
  215. // {
  216. // messageBox("입고일자를 " ,"C001");
  217. // model.setFocus("ipt_windd");
  218. // }
  219. // return false;
  220. // }
  221. }
  222. return true;
  223. }
  224. function fDefaultSetting(prow)
  225. {
  226. var grd_setting;
  227. if(sch_select.selectedIndex == 0)grd_setting = grd_fixplceord;
  228. else grd_setting = grd_fixplcewin;
  229. model.setValue(grd_setting.nodeset+"["+prow+"]/instcd",model.getValue(cmb_instcd.attribute("ref")));
  230. model.setValue(grd_setting.nodeset+"["+prow+"]/goodflag",model.getValue(ipt_goodflag.attribute("ref")));
  231. model.setValue(grd_setting.nodeset+"["+prow+"]/windd",model.getValue(ipt_windd.attribute("ref")));
  232. model.setValue(grd_setting.nodeset+"["+prow+"]/winpsn",model.getValue(ipt_winpsn.attribute("ref")));
  233. model.setValue(grd_setting.nodeset+"["+prow+"]/windeptcd",model.getValue(ipt_windeptcd.attribute("ref")));
  234. model.setValue(grd_setting.nodeset+"["+prow+"]/installplcecd",model.getValue("/root/send/goodwin/installplcecd"));
  235. model.setValue(grd_setting.nodeset+"["+prow+"]/paycond",rdo_paycond.value);
  236. model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocukind",model.getValue(cmb_calcdocukind.attribute("ref")));;
  237. model.setValue(grd_setting.nodeset+"["+prow+"]/calcdocudd",model.getValue(ipt_calcdocudd.attribute("ref")));
  238. model.setValue(grd_setting.nodeset+"["+prow+"]/suplplcecd",model.getValue(ipt_suplplcecd.attribute("ref")));
  239. model.setValue(grd_setting.nodeset+"["+prow+"]/winseqno",fGetMaxWinSeqNo());
  240. model.setValue(grd_setting.nodeset+"["+prow+"]/delivedeptqty",0);
  241. model.setValue(grd_setting.nodeset+"["+prow+"]/deliveno",0);
  242. model.setValue(grd_setting.nodeset+"["+prow+"]/stocqty",0);
  243. model.setValue(grd_setting.nodeset+"["+prow+"]/iokind",model.getValue(ipt_iokind.attribute("ref")));
  244. }
  245. function fGetMaxWinSeqNo()
  246. {
  247. var maxwinseqno = "";
  248. for(var currow = grd_fixplceord.fixedRows ; currow < grd_fixplceord.rows; currow++)
  249. {
  250. if(maxwinseqno < grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("winseqno")))
  251. maxwinseqno = grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("winseqno"));
  252. }
  253. if(maxwinseqno.length == 0)maxwinseqno = "001";
  254. else maxwinseqno = parseInt(maxwinseqno) + 1;
  255. maxwinseqno = "" + maxwinseqno;
  256. return maxwinseqno.getLeftPad(3,"0");
  257. }
  258. function fSettingSaveInData()
  259. {
  260. for(var liRow = grd_fixplceord.fixedRows; liRow < grd_fixplceord.rows ; liRow++)
  261. {
  262. //fDefaultSetting(liRow);
  263. //model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/windeptcd" , model.getValue(ipt_windeptcd.attribute("ref")));
  264. //model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/delivedeptcd" , model.getValue(ipt_windeptcd.attribute("ref")));
  265. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/paycond" , model.getValue(rdo_paycond.attribute("ref")));
  266. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/windd" , model.getValue(ipt_windd.attribute("ref")));
  267. // model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/calcdocukind" , model.getValue(rdo_paycond.attribute("ref")));
  268. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/calcdocukind" , model.getValue(cmb_calcdocukind.attribute("ref")));
  269. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/calcdocudd" , model.getValue(ipt_calcdocudd.attribute("ref")));
  270. }
  271. }
  272. function fCheckSaveData()
  273. {
  274. if(sch_select.selectedIndex == 0)
  275. {
  276. var updtdata = getGridUpdateData(grd_fixplceord);
  277. if (updtdata == "" )
  278. {
  279. messageBox("입고처리할 내역이" ,"I004");
  280. return false;
  281. }
  282. }
  283. else
  284. {
  285. var updtdata = getGridUpdateData(grd_fixplcewin);
  286. if (updtdata == "" )
  287. {
  288. messageBox("입고처리 변경 내역이" ,"I004");
  289. return false;
  290. }
  291. }
  292. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  293. {
  294. messageBox("기관코드를 " ,"C002");
  295. model.setFocus("cmb_instcd");
  296. return false;
  297. }
  298. if(sch_select.selectedIndex == 0)
  299. {
  300. if(model.getValue(ipt_windd.attribute("ref")).length== 0 )
  301. {
  302. messageBox("입고일자를 " ,"C001");
  303. model.setFocus("ipt_windd");
  304. return false;
  305. }
  306. if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
  307. {
  308. messageBox("입고부서를 " ,"C001");
  309. model.setFocus("ipt_windeptcd");
  310. return false;
  311. }
  312. if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
  313. {
  314. messageBox("입고담당자를 " ,"C001");
  315. model.setFocus("ipt_winpsn");
  316. return false;
  317. }
  318. if(model.getValue(rdo_paycond.attribute("ref")).length== 0 )
  319. {
  320. messageBox("지불 필을 " ,"C001");
  321. model.setFocus("rdo_paycond");
  322. return false;
  323. }
  324. if(model.getValue(cmb_calcdocukind.attribute("ref")).length== 0 )
  325. {
  326. messageBox("세금계산서유형을 " ,"C001");
  327. model.setFocus("cmb_calcdocukind");
  328. return false;
  329. }
  330. if(model.getValue(ipt_calcdocudd.attribute("ref")).length== 0 )
  331. {
  332. messageBox("세금계산서일자를 " ,"C001");
  333. model.setFocus("ipt_calcdocudd");
  334. return false;
  335. }
  336. for(var currow = grd_fixplceord.fixedRows ; currow < grd_fixplceord.rows ; currow++)
  337. {
  338. if((grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("select")) == "Y") &&
  339. (grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("plcewinqty")).length == 0 ||grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("plcewinqty")) == 0))
  340. {
  341. messageBox(currow + " 번째 입고량을 " ,"C001");
  342. //grd_fixplceord.endEditCell();
  343. grd_fixplceord.row = currow;
  344. grd_fixplceord.col= grd_fixplceord.colRef("plcewinqty");
  345. grd_fixplceord.editCell();
  346. return false;
  347. }
  348. }
  349. }
  350. /*
  351. else
  352. {
  353. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  354. {
  355. messageBox("거래처를 " ,"C001");
  356. model.setFocus("ipt_suplplcecd");
  357. return false;
  358. }
  359. }
  360. */
  361. return true;
  362. }
  363. function fAfterRetrieve()
  364. {
  365. if(sch_select.selectedIndex == 0)
  366. {
  367. }
  368. else
  369. {
  370. var winqty = 0;
  371. var winamt = 0;
  372. for(var currow = grd_fixplcewin.fixedRows ; currow < grd_fixplcewin.rows ; currow++)
  373. {
  374. //winqty = winqty + parseFloat( grd_fixplceord.valueMatrix(currow , grd_fixplceord.colRef("winqty")));
  375. winqty = winqty + 1;
  376. winamt = winamt + 0 + parseFloat(grd_fixplcewin.valueMatrix(currow , grd_fixplcewin.colRef("plcewinamt")));
  377. //20080928
  378. //지불필 및 집기비품을 readOnly로 변경
  379. grd_fixplcewin.isReadOnly(currow , grd_fixplcewin.colRef("paycond") ) = true;
  380. grd_fixplcewin.isReadOnly(currow , grd_fixplcewin.colRef("fixtrflag") ) = true;
  381. }
  382. model.setValue(ipt_sumwinqty.attribute("ref"),grd_fixplcewin.rows - grd_fixplcewin.fixedRows);
  383. model.setValue(opt_sumwinamt.attribute("ref"),winamt);
  384. }
  385. model.refresh();
  386. }
  387. ]]>
  388. </script>
  389. </xhtml:head>
  390. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  391. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  392. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">비품입고관리</caption>
  393. </group>
  394. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:737px; ">
  395. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:65px; "/>
  396. <input id="ipt_winno" ref="/root/send/goodwin/winno" class="input_default" disabled="true" visibility="hidden" editable="false" style="left:1010px; top:44px; width:47px; height:19px; ">
  397. <script type="javascript" ev:event="onkeyup">
  398. <![CDATA[
  399. // inputEnterKey("btn_search", "DOMActivate");
  400. if(event.keyCode == 13)
  401. {
  402. model.setValue(ipt_winno.attribute("ref"),ipt_winno.currentText);
  403. model.refresh();
  404. if(fCheckRetrieveData(false) == false)return;
  405. if(sch_select.selectedIndex == 0)
  406. {
  407. misfGridInit(grd_fixplceord);
  408. submit("TRRSI00102");
  409. }
  410. else
  411. {
  412. misfMsterDetailRetrieve();
  413. }
  414. fAfterRetrieve();
  415. }
  416. ]]>
  417. </script>
  418. </input>
  419. <input id="ipt_windeptcd" ref="/root/send/goodwin/windeptcd" class="input_s_essential" disabled="false" maxlength="10" appearance="input" style="left:502px; top:18px; width:87px; height:19px; ">
  420. <script type="javascript" ev:event="xforms-value-changed">
  421. <![CDATA[
  422. misfValidationCheck("02", "", "windeptcd,windeptnm" );
  423. model.refresh();
  424. if(sch_select.selectedIndex == 1)btn_search.dispatch("DOMActivate");
  425. ]]>
  426. </script>
  427. </input>
  428. <output id="opt_windeptnm" ref="/root/send/goodwin/windeptnm" class="output_fix" appearance="output" style="left:594px; top:18px; width:130px; height:19px; "/>
  429. <button id="bnt_suplplcecd" class="icon_search" style="left:195px; top:46px; width:16px; height:16px; ">
  430. <caption/>
  431. <script type="javascript" ev:event="DOMActivate">
  432. <![CDATA[
  433. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  434. model.refresh();
  435. btn_search.dispatch("DOMActivate");
  436. ]]>
  437. </script>
  438. </button>
  439. <input id="ipt_suplplcecd" ref="/root/send/goodwin/suplplcecd" class="input_essential" maxlength="10" style="left:100px; top:44px; width:90px; height:19px; ">
  440. <script type="javascript" ev:event="xforms-value-changed">
  441. <![CDATA[
  442. if(ipt_suplplcecd.value.length == 0)
  443. ipt_suplplcenm.value = "";
  444. else
  445. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  446. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  447. ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
  448. model.refresh();
  449. btn_search.dispatch("DOMActivate");
  450. ]]>
  451. </script>
  452. </input>
  453. <input id="ipt_suplplcenm" ref="/root/send/goodwin/suplplcenm" class="input_fix" appearance="input" style="left:215px; top:44px; width:170px; height:19px; ">
  454. <script type="javascript" ev:event="xforms-value-changed">
  455. <![CDATA[
  456. if(ipt_suplplcenm.value.length == 0)
  457. ipt_suplplcecd.value = "";
  458. else
  459. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  460. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
  461. ipt_suplplcenm,"SPRSD00220","instcd","cmb_instcd");
  462. model.refresh();
  463. ]]>
  464. </script>
  465. </input>
  466. <select1 id="cmb_instcd" ref="/root/send/goodwin/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:18px; width:139px; height:19px; ">
  467. <choices>
  468. <itemset nodeset="/root/init/instcd">
  469. <label ref="cdnm"/>
  470. <value ref="cdid"/>
  471. </itemset>
  472. </choices>
  473. <script type="javascript" ev:event="xforms-value-changed">
  474. <![CDATA[
  475. btn_search.dispatch("DOMActivate");
  476. ]]>
  477. </script>
  478. </select1>
  479. <output id="opt_winpsnnm" ref="/root/send/goodwin/winpsnnm" class="output_fix" appearance="output" style="left:502px; top:44px; width:102px; height:19px; "/>
  480. <input id="ipt_winpsn" ref="/root/send/goodwin/winpsn" class="input_fix" visibility="hidden" maxlength="10" appearance="input" style="left:1073px; top:45px; width:31px; height:19px; "/>
  481. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1124px; top:39px; width:56px; height:22px; text-align:left; ">
  482. <caption>조회</caption>
  483. <script type="javascript" ev:event="DOMActivate">
  484. <![CDATA[
  485. if(fCheckRetrieveData(true) == false)return;
  486. model.setValue("/root/send/goodwin/retrmaxwinnoyn","Y");
  487. //model.setValue("/root/send/goodwin/winno","");
  488. if(sch_select.selectedIndex == 0)
  489. {
  490. misfGridInit(grd_fixplceord);
  491. //submit("TRRSI00102");
  492. submit("TRRSR05201");
  493. }
  494. else
  495. {
  496. // 조회전 최대값 가져온다.
  497. model.removenode("/root/main/list/fixplcewinno/fixplcewinnolist");
  498. model.makeNode("/root/main/list/fixplcewinno/fixplcewinnolist");
  499. //submit("TRRSI02502");
  500. //model.setValue(ipt_winno.attribute("ref"),model.getValue("/root/main/list/fixplcewinno/fixplcewinnolist/winno"));
  501. misfGridInit(grd_fixplcewin);
  502. submit("TRRSI02501");
  503. }
  504. fAfterRetrieve();
  505. ]]>
  506. </script>
  507. </button>
  508. <switch id="sch_select" style="left:0px; top:107px; width:1195px; height:598px; ">
  509. <case id="cse_nonwin" selected="true" style="left:0px; top:0px; width:1193px; height:637; ">
  510. <button id="btnselect" class="btn2_letter9" style="left:1074px; top:3px; width:119px; height:19px; ">
  511. <caption>전체/전체선택 취소</caption>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. for(var liRow = grd_fixplceord.fixedRows; liRow < grd_fixplceord.rows ; liRow++)
  515. {
  516. if(grd_fixplceord.valueMatrix(liRow,grd_fixplceord.colRef("select")) == "Y")
  517. {
  518. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/select" , "N");
  519. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , 0);
  520. grd_fixplceord.rowStatus(liRow) = "0";
  521. }
  522. else
  523. {
  524. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/select" , "Y");
  525. model.setValue(grd_fixplceord.nodeset + "[" + (liRow - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , ( grd_fixplceord.valueMatrix(liRow,grd_fixplceord.colRef("plceordqty"))
  526. - grd_fixplceord.valueMatrix(liRow,grd_fixplceord.colRef("pre_plcewinqty")) ));
  527. grd_fixplceord.rowStatus(liRow) = "2";
  528. }
  529. }
  530. model.recalculate();
  531. model.refresh();
  532. ]]>
  533. </script>
  534. </button>
  535. <line id="line2" class="line_1" style="x1:0px; y1:24px; x2:1193; y2:24px; "/>
  536. <datagrid id="grd_fixplceord" nodeset="/root/main/list/fixplceord/fixplceordlist" caption="선택^요구일자번호^요구일자번호^대분류^중분류^소분류^품명^모델^규격^청구부서^거래처명^요구량^요구금액^기입고량^입고수량^입고단가^입고금액^설치장소^집기비품^caption1" colsep="^" colwidth="31, 75, 35, 60, 60, 60, 120, 80, 70, 75, 55, 55, 60, 55, 55, 80, 80, 54, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:29px; width:1193px; height:561px; ">
  537. <col checkvalue="Y,N" ref="select" type="checkbox"/>
  538. <col ref="plceorddd" format="yyyy-mm-dd"/>
  539. <col ref="plceordseqno" style="text-align:center; "/>
  540. <col ref="lrgnm"/>
  541. <col ref="mdlnm"/>
  542. <col ref="smlnm"/>
  543. <col ref="goodnm"/>
  544. <col ref="goodmodel"/>
  545. <col ref="goodspec"/>
  546. <col ref="reqdeptnm"/>
  547. <col ref="suplplcenm"/>
  548. <col ref="plceordqty" format="#,###" style="text-align:right; "/>
  549. <col ref="plceordamt" format="#,###" style="text-align:right; "/>
  550. <col ref="pre_plcewinqty" format="#,###" style="left:856px; top:23px; width:55px; height:23px; text-align:right; "/>
  551. <col ref="plcewinqty" type="input" style="text-align:right; "/>
  552. <col ref="wncurncyamt" type="input" format="#,###" style="text-align:right; "/>
  553. <col ref="plcewinamt" format="#,###" style="text-align:right; "/>
  554. <col ref="installplcenm" visibility="hidden"/>
  555. <col checkvalue="1,2" ref="fixtrflag" type="checkbox"/>
  556. <col ref="instcd" visibility="hidden"/>
  557. <col ref="goodflag" visibility="hidden"/>
  558. <col ref="plceordseqno" visibility="hidden"/>
  559. <col ref="lrgcd" visibility="hidden"/>
  560. <col ref="mdlcd" visibility="hidden"/>
  561. <col ref="smlcd" visibility="hidden"/>
  562. <col ref="goodmodel" visibility="hidden"/>
  563. <col ref="prodcmpy" visibility="hidden"/>
  564. <col ref="prodplce" visibility="hidden"/>
  565. <col ref="suplplcecd" visibility="hidden"/>
  566. <col ref="suppcustcd" visibility="hidden"/>
  567. <col ref="iopsnflag" visibility="hidden"/>
  568. <col ref="forgncurncyamt" visibility="hidden"/>
  569. <col ref="curncyunit" visibility="hidden"/>
  570. <col ref="chgrate" visibility="hidden"/>
  571. <col ref="forgnordamt" visibility="hidden"/>
  572. <col ref="lcno" visibility="hidden"/>
  573. <col ref="lcestbdd" visibility="hidden"/>
  574. <col ref="lcestbbank" visibility="hidden"/>
  575. <col ref="trancond" visibility="hidden"/>
  576. <col ref="paycond" visibility="hidden"/>
  577. <col ref="delivedd" visibility="hidden"/>
  578. <col ref="grntterm" visibility="hidden"/>
  579. <col ref="testmthd" visibility="hidden"/>
  580. <col ref="cnsttndd" visibility="hidden"/>
  581. <col ref="prcsstat" visibility="hidden"/>
  582. <col ref="cmt" visibility="hidden"/>
  583. <col ref="slipdd" visibility="hidden"/>
  584. <col ref="slipno" visibility="hidden"/>
  585. <col ref="reqflag" visibility="hidden"/>
  586. <col ref="reqdd" visibility="hidden"/>
  587. <col ref="reqno" visibility="hidden"/>
  588. <col ref="reqseqno" visibility="hidden"/>
  589. <col ref="reqqty" visibility="hidden"/>
  590. <col ref="adjtqty" visibility="hidden"/>
  591. <col ref="calcdocukind" visibility="hidden"/>
  592. <col ref="calcdocudd" visibility="hidden"/>
  593. <col ref="installplcecd" visibility="hidden"/>
  594. <col ref="reqdeptcd" visibility="hidden"/>
  595. <col ref="cntrdeptcd" visibility="hidden"/>
  596. <col ref="cntrdeptnm" visibility="hidden"/>
  597. <col ref="mngtdeptcd" visibility="hidden"/>
  598. <col ref="mngtdeptnm" visibility="hidden"/>
  599. <col ref="prodplcenm" visibility="hidden"/>
  600. <col ref="windd" visibility="hidden"/>
  601. <script type="javascript" ev:event="onbuttonclick">
  602. <![CDATA[
  603. if (grd_fixplceord.col == grd_fixplceord.colRef("installplcenm") )
  604. {
  605. var recv_list = "installplcecd,installplcenm";
  606. misfOpenPopUpList("19", grd_fixplceord,"", recv_list) ;
  607. model.refresh();
  608. }
  609. ]]>
  610. </script>
  611. <script type="javascript" ev:event="xforms-value-changed">
  612. <![CDATA[
  613. if (grd_fixplceord.col == grd_fixplceord.colRef("select") )
  614. {
  615. if(grd_fixplceord.valueMatrix(grd_fixplceord.row,grd_fixplceord.colRef("select")) == "Y")
  616. {
  617. model.setValue(grd_fixplceord.nodeset + "[" + (grd_fixplceord.row - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , ( grd_fixplceord.valueMatrix(grd_fixplceord.row,grd_fixplceord.colRef("plceordqty"))
  618. - grd_fixplceord.valueMatrix(grd_fixplceord.row,grd_fixplceord.colRef("pre_plcewinqty")) ));
  619. grd_fixplceord.rowStatus(grd_fixplceord.row) = "2";
  620. }
  621. else
  622. {
  623. model.setValue(grd_fixplceord.nodeset + "[" + (grd_fixplceord.row - grd_fixplceord.fixedRows + 1) + "]/plcewinqty" , 0);
  624. grd_fixplceord.rowStatus(grd_fixplceord.row) = "0";
  625. }
  626. }
  627. ]]>
  628. </script>
  629. <script type="javascript" ev:event="onaftersort">
  630. <![CDATA[
  631. grd_fixplceord.gridToInstance();
  632. ]]>
  633. </script>
  634. </datagrid>
  635. <button id="button5" class="btn5_letter5" navindex="12" style="left:996px; top:3px; width:75px; height:19px; ">
  636. <caption>Excel 저장</caption>
  637. <script type="javascript" ev:event="DOMActivate">
  638. <![CDATA[
  639. if( grd_fixplceord.rows - grd_fixplceord.fixedRows > 0 ) {
  640. var fileName = "요구내역";
  641. var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  642. grd_fixplceord.saveExcel(fileName, "Sheet");
  643. } else {
  644. messageBox("저장 데이터가","I004");
  645. }
  646. ]]>
  647. </script>
  648. </button>
  649. <input id="ipt_windd" ref="/root/send/goodwin/windd" class="input_s_essential" visibility="visible" inputtype="date" style="left:410px; top:3px; width:120px; height:19px; "/>
  650. <caption id="caption8" style="left:342px; top:6px; width:65px; height:18px; font-weight:bold; vertical-align:middle; ">입고일자 :</caption>
  651. <input id="ipt_calcdocudd" ref="/root/send/goodwin/calcdocudd" class="input_search" inputtype="date" style="left:628px; top:3px; width:120px; height:19px; ">
  652. <script type="javascript" ev:event="xforms-value-changed">
  653. <![CDATA[
  654. model.setValue("/root/send/goodwin/windd", model.getValue("/root/send/goodwin/calcdocudd")); // 20081209. 계산서 일자 변경시 입고일자 같이 변경 _ 현업요구사항
  655. ipt_windd.refresh();
  656. var selectdate = model.getValue(ipt_calcdocudd.attribute("ref")).substr(0,6); //선택한 달
  657. var curdate = getCurrentDate();
  658. var cvtdate = curdate.toDate("YYYYMMDD").getDateFormat("YYYYMM"); //이번달
  659. //if ( selectdate != cvtdate ) {
  660. // messageBox("계산서일자는 이번달만 선택하실수","I010");
  661. // model.setValue(ipt_calcdocudd.attribute("ref") ,curdate); //계산서일자를 다시오늘로 셋팅하자
  662. // model.refresh();
  663. //}
  664. ]]>
  665. </script>
  666. </input>
  667. <caption id="caption7" style="left:550px; top:5px; width:77px; height:18px; font-weight:bold; vertical-align:middle; ">계산서일자 :</caption>
  668. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:118px; height:14px; ">구매요구 내역</caption>
  669. <select1 id="cmb_calcdocukind" ref="/root/send/goodwin/calcdocukind" class="combo_search" appearance="minimal" style="left:849px; top:3px; width:113px; height:19px; ">
  670. <choices>
  671. <itemset nodeset="/root/init/calcdocukind">
  672. <label ref="cdnm"/>
  673. <value ref="cdid"/>
  674. </itemset>
  675. </choices>
  676. </select1>
  677. <caption id="caption9" style="left:770px; top:5px; width:77px; height:18px; font-weight:bold; vertical-align:middle; ">계산서유형 :</caption>
  678. </case>
  679. <case id="cse_win" style="left:0px; top:0px; width:1193px; height:637px; ">
  680. <caption id="caption3" class="tit_2" style="left:5px; top:10px; width:118px; height:13px; ">입고내역</caption>
  681. <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:1192px; y2:24px; "/>
  682. <button id="btn_choidel" class="btn2_letter3" style="left:1140px; top:3px; width:53px; height:19px; ">
  683. <caption>행삭제</caption>
  684. <script type="javascript" ev:event="DOMActivate">
  685. <![CDATA[
  686. if(grd_fixplcewin.valueMatrix( grd_fixplcewin.row, grd_fixplcewin.colRef("calccnfmyn")) == "Y"){
  687. messageBox("선택하신 입고건은 정산이 확정되어 입고삭제를 " ,"E001"); //E001 ->할 수 없습니다.
  688. return;
  689. }
  690. if(grd_fixplcewin.valueMatrix( grd_fixplcewin.row, grd_fixplcewin.colRef("chkyn")) == "Y" ){
  691. messageBox("선택하신 입고건은 검수가 완료되어 입고삭제를 " ,"E001");
  692. return;
  693. }
  694. misfGridIUD(grd_fixplcewin, "D");
  695. ]]>
  696. </script>
  697. </button>
  698. <button id="btn_excel" class="btn5_letter5" navindex="12" style="left:1064px; top:3px; width:75px; height:19px; ">
  699. <caption>Excel 저장</caption>
  700. <script type="javascript" ev:event="DOMActivate">
  701. <![CDATA[
  702. if( grd_fixplcewin.rows - grd_fixplcewin.fixedRows > 0 ) {
  703. var fileName = "입고내역_" + getCurrentDate();
  704. var fileName = window.fileDialog("save", ",", false, fileName, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  705. grd_fixplcewin.saveExcel(fileName, "Sheet");
  706. } else {
  707. messageBox("저장 데이터가","I004");
  708. }
  709. ]]>
  710. </script>
  711. </button>
  712. <output id="ipt_sumwinqty" ref="/root/init/winqty" class="output_default" style="left:780px; top:3px; width:70px; height:19px; font-weight:bold; "/>
  713. <output id="opt_sumwinamt" ref="/root/init/winamt" class="output_default" format="#,###" style="left:933px; top:3px; width:125px; height:19px; font-weight:bold; "/>
  714. <datagrid id="grd_fixplcewin" nodeset="/root/main/list/fixplcewin/fixplcewinlist" caption="입고번호^입고번호^입고번호^대분류^중분류^소분류^품명^모델^규격^청구부서^사용부서^요구량^요구금액^입고수량^입고단가^금액^거래처^설치부서^지불필^집기비품^입고금액변경^^caption1^caption2^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^32^33^34^35^36^검수유무^정산확정여부^39" colsep="^" colwidth="75, 35, 35, 72, 70, 75, 160, 90, 80, 70, 70, 60, 80, 65, 80, 80, 80, 70, 55, 55, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:29px; width:1193px; height:561px; ">
  715. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  716. <col ref="winno" style="text-align:center; "/>
  717. <col ref="winseqno" style="text-align:center; "/>
  718. <col ref="lrgnm" visibility="hidden"/>
  719. <col ref="mdlnm" visibility="hidden"/>
  720. <col ref="smlnm" visibility="hidden"/>
  721. <col ref="goodnm"/>
  722. <col ref="goodmodel"/>
  723. <col ref="goodspec"/>
  724. <col ref="reqdeptnm"/>
  725. <col ref="mngtdeptnm"/>
  726. <col ref="plceordqty" style="text-align:right; "/>
  727. <col ref="plceordamt" format="#,###" style="text-align:right; "/>
  728. <col ref="plcewinqty" style="text-align:right; "/>
  729. <col ref="wncurncyamt" format="#,###" style="text-align:right; "/>
  730. <col ref="plcewinamt" format="#,###" style="text-align:right; "/>
  731. <col ref="suplplcenm"/>
  732. <col ref="installplcenm"/>
  733. <col checkvalue="2,1" ref="paycond" type="checkbox"/>
  734. <col checkvalue="1,2" ref="fixtrflag" type="checkbox"/>
  735. <col checkvalue="0,1" disabled="true" ref="winamtcheck" type="checkbox"/>
  736. <col ref="instcd" visibility="hidden"/>
  737. <col ref="goodflag" visibility="hidden"/>
  738. <col ref="calcdocukind" visibility="hidden"/>
  739. <col ref="calcdocudd" visibility="hidden"/>
  740. <col ref="lrgcd" visibility="hidden"/>
  741. <col ref="mdlcd" visibility="hidden"/>
  742. <col ref="smlcd" visibility="hidden"/>
  743. <col ref="goodflagengnm" visibility="hidden"/>
  744. <col ref="prodcmpy" visibility="hidden"/>
  745. <col ref="prodplce" visibility="hidden"/>
  746. <col ref="prodplcenm" visibility="hidden"/>
  747. <col ref="suplplcecd" visibility="hidden"/>
  748. <col ref="prodcmpynm" visibility="hidden"/>
  749. <col ref="suppcustcd" visibility="hidden"/>
  750. <col ref="suppcustnm" visibility="hidden"/>
  751. <col ref="iopsnflag" visibility="hidden"/>
  752. <col ref="curncyunit" visibility="hidden"/>
  753. <col ref="forgncurncyamt" visibility="hidden"/>
  754. <col ref="chgrate" visibility="hidden"/>
  755. <col ref="forgnwinamt" visibility="hidden"/>
  756. <col ref="bugtflag" visibility="hidden"/>
  757. <col ref="stdysubjno" visibility="hidden"/>
  758. <col ref="bugtyy" visibility="hidden"/>
  759. <col ref="acntcd" visibility="hidden"/>
  760. <col ref="cntrdeptcd" visibility="hidden"/>
  761. <col ref="mngtdeptcd" visibility="hidden"/>
  762. <col ref="incmpemtno" visibility="hidden"/>
  763. <col ref="mtlmngtno" visibility="hidden"/>
  764. <col ref="eqmtearnvaluyn" visibility="hidden"/>
  765. <col ref="prcsstat" visibility="hidden"/>
  766. <col ref="plceorddd" visibility="hidden"/>
  767. <col ref="plceordseqno" visibility="hidden"/>
  768. <col ref="slipdd" visibility="hidden"/>
  769. <col ref="slipno" visibility="hidden"/>
  770. <col ref="cmt" visibility="hidden"/>
  771. <col ref="pre_plcewinqty" visibility="hidden"/>
  772. <col ref="reqdd" visibility="hidden"/>
  773. <col ref="reqno" visibility="hidden"/>
  774. <col ref="reqseqno" visibility="hidden"/>
  775. <col ref="chkyn"/>
  776. <col ref="calccnfmyn"/>
  777. <col ref="reqflag" visibility="hidden"/>
  778. <script type="javascript" ev:event="onaftersort">
  779. <![CDATA[
  780. grd_fixplcewin.gridToInstance();
  781. ]]>
  782. </script>
  783. </datagrid>
  784. <caption id="caption1" style="left:721px; top:1px; width:60px; height:23px; vertical-align:middle; ">입고건수 :</caption>
  785. <caption id="caption5" style="left:875px; top:1px; width:60px; height:23px; vertical-align:middle; ">입고합계 :</caption>
  786. </case>
  787. </switch>
  788. <button id="button2" class="btn_sw" group="tab" style="left:125px; top:86px; width:144px; height:22px; ">
  789. <caption>입고관리</caption>
  790. <script type="javascript" ev:event="DOMActivate">
  791. <![CDATA[
  792. cap_purcdd.visible = false;
  793. ipt_plceordfrdd.visible = false;
  794. ipt_plceordtodd.visible = false;
  795. cap_windd.visible = true;
  796. ipt_fromdd.visible = true;
  797. ipt_todd.visible = true;
  798. model.toggle("cse_win");
  799. ]]>
  800. </script>
  801. <toggle case="cse_win" ev:event="DOMActivate"/>
  802. </button>
  803. <button id="button6" class="btn_sw" group="tab" selected="true" style="left:0px; top:86px; width:125px; height:22px; ">
  804. <caption>미입고조회/입고</caption>
  805. <script type="javascript" ev:event="DOMActivate">
  806. <![CDATA[
  807. cap_purcdd.visible = true;
  808. ipt_plceordfrdd.visible = true;
  809. ipt_plceordtodd.visible = true;
  810. cap_windd.visible = false;
  811. ipt_fromdd.visible = false;
  812. ipt_todd.visible = false;
  813. model.toggle("cse_nonwin");
  814. ]]>
  815. </script>
  816. </button>
  817. <input id="ipt_goodflag" ref="/root/send/goodwin/goodflag" visibility="hidden" style="left:1064px; top:45px; width:40px; height:19px; "/>
  818. <button id="button4" class="icon_search" visibility="hidden" style="left:822px; top:83px; width:16px; height:16px; ">
  819. <caption/>
  820. <script type="javascript" ev:event="DOMActivate">
  821. <![CDATA[
  822. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  823. model.refresh();
  824. //btn_search.dispatch("DOMActivate");
  825. ]]>
  826. </script>
  827. </button>
  828. <input id="ipt_suppcustnm" ref="/root/send/goodwin/suppcustnm" class="input_fix" visibility="hidden" appearance="input" style="left:842px; top:80px; width:160px; height:19px; ">
  829. <script type="javascript" ev:event="xforms-value-changed">
  830. <![CDATA[
  831. if(ipt_suppcustnm.value.length == 0)
  832. ipt_suppcustcd.value = "";
  833. else
  834. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  835. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustnm.attribute("ref")),"","suppcustcd,suppcustnm" ,
  836. ipt_suppcustnm,"SPRSD00220","instcd","cmb_instcd");
  837. model.refresh();
  838. ]]>
  839. </script>
  840. </input>
  841. <input id="ipt_suppcustcd" ref="/root/send/goodwin/suppcustcd" class="input_default" visibility="hidden" appearance="output" style="left:730px; top:80px; width:90px; height:19px; ">
  842. <script type="javascript" ev:event="xforms-value-changed">
  843. <![CDATA[
  844. //rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","suplplcecd,suplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  845. if(ipt_suppcustcd.value.length == 0)
  846. ipt_suppcustnm.value = "";
  847. else
  848. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  849. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,
  850. ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  851. model.refresh();
  852. //btn_search.dispatch("DOMActivate");
  853. ]]>
  854. </script>
  855. </input>
  856. <input id="ipt_pgm_gubun" ref="/root/send/goodwin/pgm_gubun" visibility="hidden" style="left:1060px; top:65px; width:40px; height:19px; "/>
  857. <input id="ipt_prcsstat" ref="/root/send/goodwin/prcsstat" class="input_fix" visibility="hidden" maxlength="10" appearance="input" style="left:1073px; top:45px; width:31px; height:19px; "/>
  858. <line id="line18" class="line_4" style="x1:1109px; y1:18px; x2:1109px; y2:88px; border-color:#ffe4bb; border-left-style:solid; "/>
  859. <caption id="caption11" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">기관코드 :</caption>
  860. <caption id="cap_windd" class="search_name" visibility="hidden" style="left:747px; top:20px; width:86px; height:17px; ">입고일자 :</caption>
  861. <caption id="caption13" class="search_name" style="left:15px; top:46px; width:83px; height:17px; ">거 래 처 :</caption>
  862. <caption id="caption19" class="search_name" visibility="hidden" style="left:632px; top:81px; width:99px; height:17px; ">보조거래처 :</caption>
  863. <caption id="caption20" class="search_name" style="left:400px; top:19px; width:101px; height:17px; ">관리부서 :</caption>
  864. <caption id="caption21" class="search_name" style="left:400px; top:46px; width:99px; height:17px; ">입고담당자 :</caption>
  865. <caption id="cap_paycond" class="search_name" style="left:747px; top:50px; width:88px; height:17px; ">지 불 필 :</caption>
  866. <select1 id="rdo_paycond" ref="/root/send/goodwin/paycond" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:835px; top:51px; width:185px; height:13px; border-style:none; ">
  867. <choices>
  868. <item>
  869. <label>정상</label>
  870. <value>1</value>
  871. </item>
  872. <item>
  873. <label>지불 필</label>
  874. <value>2</value>
  875. </item>
  876. </choices>
  877. </select1>
  878. <input id="ipt_todd" ref="/root/send/goodwin/todd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:952px; top:18px; width:100px; height:19px; text-align:center; ">
  879. <script type="javascript" ev:event="xforms-value-changed">
  880. <![CDATA[
  881. btn_search.dispatch("DOMActivate");
  882. ]]>
  883. </script>
  884. </input>
  885. <input id="ipt_fromdd" ref="/root/send/goodwin/fromdd" class="input_s_essential" visibility="hidden" inputtype="date" style="left:835px; top:18px; width:100px; height:19px; text-align:center; ">
  886. <script type="javascript" ev:event="xforms-value-changed">
  887. <![CDATA[
  888. btn_search.dispatch("DOMActivate");
  889. ]]>
  890. </script>
  891. </input>
  892. <caption id="caption4" style="left:937px; top:18px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  893. <caption id="caption23" style="left:937px; top:18px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  894. <caption id="cap_purcdd" class="search_name" style="left:747px; top:20px; width:91px; height:17px; font-weight:bold; vertical-align:middle; ">요구일자 :</caption>
  895. <input id="ipt_plceordfrdd" ref="/root/send/goodwin/plceordfrdd" class="input_s_essential" inputtype="date" style="left:835px; top:18px; width:100px; height:19px; text-align:center; ">
  896. <script type="javascript" ev:event="xforms-value-changed">
  897. <![CDATA[
  898. btn_search.dispatch("DOMActivate");
  899. ]]>
  900. </script>
  901. </input>
  902. <input id="ipt_plceordtodd" ref="/root/send/goodwin/plceordtodd" class="input_s_essential" inputtype="date" style="left:952px; top:18px; width:100px; height:19px; text-align:center; ">
  903. <script type="javascript" ev:event="xforms-value-changed">
  904. <![CDATA[
  905. ]]>
  906. </script>
  907. </input>
  908. </group>
  909. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  910. <button id="button1" class="btn3_letter6" visibility="hidden" style="left:57px; top:3px; width:104px; height:22px; ">
  911. <caption>입고전표관리</caption>
  912. </button>
  913. <button id="button3" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  914. <caption>출력</caption>
  915. </button>
  916. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  917. <caption>초기화</caption>
  918. <script type="javascript" ev:event="DOMActivate">
  919. <![CDATA[
  920. fInitialize();
  921. ]]>
  922. </script>
  923. </button>
  924. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  925. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  926. <caption>저장</caption>
  927. <script type="javascript" ev:event="DOMActivate">
  928. <![CDATA[
  929. if(fCheckSaveData() == false)return;
  930. if(sch_select.selectedIndex == 0)
  931. {
  932. fSettingSaveInData();
  933. model.setValue("/root/send/fixplceord/fixplceordlist", grd_fixplceord.getUpdateData());
  934. submit("TXRSI02501");
  935. }
  936. else
  937. {
  938. model.removenode("/root/send/fixplcewin/fixplcewinlist");
  939. model.makeNode("/root/send/fixplcewin/fixplcewinlist");
  940. model.setValue("/root/send/fixplcewin/fixplcewinlist" ,grd_fixplcewin.getUpdateData());
  941. submit("TXRSI02502");
  942. }
  943. if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
  944. ]]>
  945. </script>
  946. </button>
  947. </group>
  948. </xhtml:body>
  949. </xhtml:html>