SMRSI02800_비품입고관리(성의교정).xrw 48 KB

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