SMRSI00800_평화드림 가입고관리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  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. <goodgawin>
  12. <goodgawinlist/>
  13. </goodgawin>
  14. </list>
  15. </main>
  16. <init>
  17. <winqty/>
  18. <winamt/>
  19. <ifstatus>
  20. <label>전체</label>
  21. <value/>
  22. <label>미입고</label>
  23. <value>C</value>
  24. <label>입고</label>
  25. <value>S</value>
  26. </ifstatus>
  27. <nonusegoodview>
  28. <label>포함</label>
  29. <value>Y</value>
  30. <label>제외</label>
  31. <value>N</value>
  32. </nonusegoodview>
  33. </init>
  34. <send>
  35. <goodgawin>
  36. <instcd/>
  37. <goodflag/>
  38. <winpsn/>
  39. <winpsnnm/>
  40. <windeptcd/>
  41. <windeptnm/>
  42. <suppcustcd/>
  43. <suppcustnm/>
  44. <gawindd/>
  45. <gatowindd/>
  46. <iokind/>
  47. <instnm/>
  48. <ifstatus/>
  49. <goodcd/>
  50. <goodnm/>
  51. </goodgawin>
  52. <save>
  53. <goodgawinlist/>
  54. <interfacecustcdlist>
  55. <purc_main_suplplcecd/>
  56. <drg_main_suplplcecd/>
  57. </interfacecustcdlist>
  58. </save>
  59. </send>
  60. <hidden>
  61. <nonusegoodview/>
  62. </hidden>
  63. </root>
  64. </instance>
  65. <bind id="winqty" ref="/root/main/list/goodgawin/goodwinlist/winqty" calculate="../winpackqty *../winpackcntperunit"/>
  66. <bind id="winamt" ref="/root/main/list/goodgawin/goodwinlist/winamt" calculate="(../winpackqty *../winpackcntperunit) * ../winunitcost"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. //화면 Control을 초기화한다
  70. fInitialize();
  71. ]]>
  72. </script>
  73. <submission id="TRRSI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodgawin" resultref="/root/main/list/goodgawin"/>
  74. <submission id="TXRSI00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp">"</submission>
  75. </model>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  79. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  80. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  81. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  82. <script type="javascript">
  83. <![CDATA[
  84. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  85. function fInitialize() {
  86. misfGridInit(grd_goodgawin);
  87. misfMsterDetailSet(grd_goodgawin,null, "TRRSI00801" ,"Y");
  88. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  89. model.setValue(opt_instnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  90. model.setValue(ipt_gawindd.attribute("ref") , getCurrentDate());
  91. model.setValue(ipt_gatowindd.attribute("ref") , getCurrentDate());
  92. model.setValue(ipt_windeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  93. model.setValue(opt_windeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  94. model.setValue(ipt_winpsn.attribute("ref") , getUserInfo("userid"));
  95. model.setValue(opt_winpsnnm.attribute("ref") , getUserInfo("usernm"));
  96. // hiddem col
  97. model.setValue(opt_goodflag.attribute("ref") , "Y");
  98. model.setValue(opt_iokind.attribute("ref") , "1B");
  99. rdo_nonusegoodview.select(0);
  100. model.refresh();
  101. }
  102. function fCheckGrid()
  103. {
  104. for(var r = grd_goodgawin.fixedRows; r < grd_goodgawin.rows; r++)
  105. {
  106. if(grd_goodgawin.valueMatrix( r, grd_goodgawin.colRef("ifstatus")) != 'S' ) {
  107. grd_goodgawin.valueMatrix(r, grd_goodgawin.colRef("ifstatus")) = 'S';
  108. grd_goodgawin.valueMatrix(r, grd_goodgawin.colRef("windd")) = grd_goodgawin.valueMatrix(r, grd_goodgawin.colRef("gawindd")) ;
  109. grd_goodgawin.valueMatrix(r, grd_goodgawin.colRef("iokind")) = model.getValue(opt_iokind.attribute("ref"));
  110. grd_goodgawin.valueMatrix(r, grd_goodgawin.colRef("windeptcd")) = model.getValue(ipt_windeptcd.attribute("ref"));
  111. grd_goodgawin.valueMatrix(r, grd_goodgawin.colRef("suplplcecd")) = rszfGetMainCust(purc_main_suplplcecd);
  112. grd_goodgawin.valueMatrix(r, grd_goodgawin.colRef("winpsn")) = model.getValue(ipt_winpsn.attribute("ref"));
  113. grd_goodgawin.rowStatus(r) = "2";
  114. }
  115. }
  116. model.refresh();
  117. }
  118. function fCheckSaveData()
  119. {
  120. if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
  121. {
  122. messageBox("기관코드를 " ,"C002");
  123. model.setFocus("opt_instcd");
  124. return false;
  125. }
  126. if(model.getValue(opt_goodflag.attribute("ref")).length== 0 )
  127. {
  128. messageBox("물품구분을 " ,"C002");
  129. model.setFocus("opt_goodflag");
  130. return false;
  131. }
  132. if(model.getValue(ipt_gawindd.attribute("ref")).length== 0 )
  133. {
  134. messageBox("가입고일자를 " ,"C001");
  135. model.setFocus("ipt_gawindd");
  136. return false;
  137. }
  138. if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
  139. {
  140. messageBox("입고담당자를 " ,"C001");
  141. model.setFocus("ipt_winpsn");
  142. return false;
  143. }
  144. if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
  145. {
  146. messageBox("입고부서를 " ,"C001");
  147. model.setFocus("ipt_windeptcd");
  148. return false;
  149. }
  150. /*
  151. var winqty = 0;
  152. var delivedeptqty = 0;
  153. var stocqty = 0;
  154. for(var currow = grd_goodgawin.fixedRows ; currow < grd_goodgawin.rows ; currow++)
  155. {
  156. if(grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("goodcd")).length == 0)
  157. {
  158. messageBox(currow + " 번째 물품코드를 " ,"C001");
  159. grd_goodgawin.row = currow;
  160. grd_goodgawin.col= grd_goodgawin.colRef("goodcd");
  161. grd_goodgawin.editCell();
  162. return false;
  163. }
  164. else
  165. {
  166. for(srcrow = currow + 1 ; srcrow < grd_goodgawin.rows ; srcrow++)
  167. {
  168. if(grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("goodcd")) == grd_goodgawin.valueMatrix(srcrow , grd_goodgawin.colRef("goodcd")))
  169. {
  170. messageBox("동일 물품코드가 [" + (currow - grd_goodgawin.fixedRows + 1)+ "," + (srcrow - grd_goodgawin.fixedRows + 1)+ "->" + grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("goodcd")) + "] 존재하여 저장 " ,"E001");
  171. return false;
  172. }
  173. }
  174. }
  175. if(grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("winqty")).length == 0)
  176. {
  177. messageBox((currow)+ " 번째 요구량을 " ,"C001");
  178. grd_goodgawin.row = currow;
  179. grd_goodgawin.col= grd_goodgawin.colRef("winqty");
  180. grd_goodgawin.editCell();
  181. return false;
  182. }
  183. if(grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("winunitcost")) == 0)
  184. {
  185. messageBox((currow)+ " 번째 단가를 " ,"C001");
  186. grd_goodgawin.row = currow;
  187. grd_goodgawin.col= grd_goodgawin.colRef("winunitcost");
  188. grd_goodgawin.editCell();
  189. return false;
  190. }
  191. if(grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("winamt")) == 0)
  192. {
  193. messageBox((currow -1)+ " 번째 금액을 " ,"C001");
  194. grd_goodgawin.row = currow;
  195. grd_goodgawin.col= grd_goodgawin.colRef("winamt");
  196. grd_goodgawin.editCell();
  197. return false;
  198. }
  199. winqty = grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("winqty"));
  200. delivedeptqty = grd_goodgawin.valueMatrix(currow , grd_goodgawin.colRef("delivedeptqty"));
  201. stocqty = winqty - delivedeptqty;
  202. model.setValue(grd_goodgawin.nodeset + "[" + (currow - grd_goodgawin.fixedRows + 1) + "]/stocqty" , stocqty);
  203. if(stocqty > 0)model.setValue(grd_goodgawin.nodeset + "[" + (currow - grd_goodgawin.fixedRows + 1) + "]/stocynindx" , "Y");
  204. else model.setValue(grd_goodgawin.nodeset + "[" + (currow - grd_goodgawin.fixedRows + 1) + "]/stocynindx" , "N");
  205. }
  206. */
  207. return true;
  208. }
  209. function fCheckRetrieveData(pmsg)
  210. {
  211. if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
  212. {
  213. if(pmsg == true)
  214. {
  215. messageBox("기관코드를 " ,"C002");
  216. model.setFocus("opt_instcd");
  217. }
  218. return false;
  219. }
  220. if(model.getValue(opt_goodflag.attribute("ref")).length== 0 )
  221. {
  222. if(pmsg == true)
  223. {
  224. messageBox("물품구분을 " ,"C002");
  225. model.setFocus("opt_goodflag");
  226. }
  227. return false;
  228. }
  229. if(model.getValue(ipt_gawindd.attribute("ref")).length== 0 )
  230. {
  231. if(pmsg == true)
  232. {
  233. messageBox("가입고일자를 " ,"C001");
  234. model.setFocus("ipt_gawindd");
  235. }
  236. return false;
  237. }
  238. if(model.getValue(ipt_winpsn.attribute("ref")).length== 0 )
  239. {
  240. if(pmsg == true)
  241. {
  242. messageBox("입고담당자를 " ,"C001");
  243. model.setFocus("ipt_winpsn");
  244. }
  245. return false;
  246. }
  247. if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
  248. {
  249. if(pmsg == true)
  250. {
  251. messageBox("입고부서를 " ,"C001");
  252. model.setFocus("ipt_windeptcd");
  253. }
  254. return false;
  255. }
  256. if(model.getValue(opt_iokind.attribute("ref")).length== 0 )
  257. {
  258. if(pmsg == true)
  259. {
  260. messageBox("입고유형을 " ,"C001");
  261. model.setFocus("opt_iokind");
  262. }
  263. return false;
  264. }
  265. /*
  266. if(pmsg == true)
  267. {
  268. if(model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length== 0 )
  269. {
  270. messageBox("공급처를 " ,"C001");
  271. model.setFocus("ipt_maincustlastsuplplce");
  272. return false;
  273. }
  274. }
  275. */
  276. return true;
  277. }
  278. ]]>
  279. </script>
  280. </xhtml:head>
  281. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  282. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  283. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">평화드림 가입고관리</caption>
  284. </group>
  285. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  286. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  287. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1195px; y2:96px; "/>
  288. <datagrid id="grd_goodgawin" nodeset="/root/main/list/goodgawin/goodgawinlist" caption="가입고일자^물품코드^물품코드^품명^규격^모델^보조거래처^포장수량^포장수량^포장수량^입고량^입고량^단가^입고금액^입고" colsep="^" colwidth="76, 73, 25, 245, 120, 100, 112, 40, 40, 40, 54, 40, 79, 82, 37, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:101px; width:1195px; height:633px; ">
  289. <col ref="gawindd" format="yyyy-mm-dd" style="text-align:center; "/>
  290. <col ref="goodcd" _chartype="upper" style="text-align:center; "/>
  291. <col ref="allsizespecid" style="text-align:center; "/>
  292. <col ref="goodnm"/>
  293. <col ref="goodspec"/>
  294. <col ref="goodmodel"/>
  295. <col ref="suppcustnm"/>
  296. <col ref="winpackqty" format="#,###" maxlength="9" style="text-align:right; "/>
  297. <col ref="winpackunit" style="text-align:center; "/>
  298. <col ref="winpackcntperunit" format="#,###" maxlength="9" style="text-align:right; "/>
  299. <col ref="winqty" format="#,###" maxlength="9" style="text-align:right; "/>
  300. <col ref="winunit" style="text-align:center; "/>
  301. <col ref="winunitcost" format="#,###" maxlength="14" style="text-align:right; "/>
  302. <col ref="winamt" format="#,###" maxlength="14" style="text-align:right; "/>
  303. <col checkvalue="S,C" ref="ifstatus" type="checkbox"/>
  304. <col ref="instcd" visibility="hidden"/>
  305. <col ref="goodflag" visibility="hidden"/>
  306. <col ref="winno" visibility="hidden"/>
  307. <col ref="winseqno" visibility="hidden"/>
  308. <col ref="suplplcecd" visibility="hidden"/>
  309. <col ref="suppcustcd" visibility="hidden"/>
  310. <col ref="ifid" visibility="hidden"/>
  311. <col ref="ifcmd" visibility="hidden"/>
  312. <col ref="ifsnddt" visibility="hidden"/>
  313. <col ref="ifsvrdt" visibility="hidden"/>
  314. <col ref="windd" visibility="hidden"/>
  315. <col ref="gawinseqno" visibility="hidden"/>
  316. <col ref="preifstatus" visibility="hidden"/>
  317. <col ref="iokind" visibility="hidden"/>
  318. <col ref="windeptcd" visibility="hidden"/>
  319. <script type="javascript" ev:event="xforms-value-changed">
  320. <![CDATA[
  321. if(grd_goodgawin.col == grd_goodgawin.colRef("ifstatus") )
  322. {
  323. if( grd_goodgawin.valueMatrix(grd_goodgawin.row, grd_goodgawin.colRef("ifstatus")) == 'S' )
  324. {
  325. model.setValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/windd" ,model.getValue( grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/gawindd" ));
  326. model.setValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/iokind" ,model.getValue(opt_iokind.attribute("ref")));
  327. model.setValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/windeptcd" ,model.getValue(ipt_windeptcd.attribute("ref")));
  328. model.setValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/suplplcecd",rszfGetMainCust(purc_main_suplplcecd) );
  329. model.setValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/winpsn" ,model.getValue(ipt_winpsn.attribute("ref")) );
  330. }
  331. if (model.getValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/windd" )=="") model.setValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/windd" ,model.getValue(ipt_gawindd.attribute("ref" )));
  332. if (model.getValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/windeptcd")=="") model.setValue(grd_goodgawin.nodeset + "[" + (grd_goodgawin.row - grd_goodgawin.fixedRows + 1) + "]/windeptcd" ,model.getValue(ipt_windeptcd.attribute("ref")));
  333. }
  334. ]]>
  335. </script>
  336. <script type="javascript" ev:event="onkeydown">
  337. <![CDATA[
  338. if(event.keyCode == 9)
  339. {
  340. if(event.shiftKey)
  341. {
  342. if(grd_goodgawin.colAttribute(grd_goodgawin.col + 1, "type").indexOf ("input") > -1)
  343. {
  344. for(curcol = grd_goodgawin.col -1 ; curcol > -1 ; curcol--)
  345. {
  346. if(grd_goodgawin.colAttribute(curcol, "type").indexOf ("input") > -1)
  347. {
  348. grd_goodgawin.col = curcol;
  349. grd_goodgawin.editCell();
  350. return;
  351. }
  352. }
  353. }
  354. }
  355. else
  356. {
  357. if(grd_goodgawin.colAttribute(grd_goodgawin.col, "type").indexOf ("input") == -1)
  358. {
  359. if(grd_goodgawin.col - 1 == grd_goodgawin.colRef("goodcd") && grd_goodgawin.valueMatrix(grd_goodgawin.row, grd_goodgawin.col - 1).length == 0)
  360. {
  361. grd_goodgawin.col = grd_goodgawin.colRef("goodcd");
  362. grd_goodgawin.editCell();
  363. return;
  364. }
  365. for(curcol = grd_goodgawin.col ; curcol <grd_goodgawin.cols ; curcol++)
  366. {
  367. if(grd_goodgawin.colAttribute(curcol, "type").indexOf ("input") > -1)
  368. {
  369. grd_goodgawin.col = curcol;
  370. grd_goodgawin.editCell();
  371. return;
  372. }
  373. }
  374. }
  375. }
  376. }
  377. ]]>
  378. </script>
  379. <script type="javascript" ev:event="onaftersort">
  380. <![CDATA[
  381. grd_goodgawin.gridToInstance();
  382. ]]>
  383. </script>
  384. </datagrid>
  385. <caption id="caption3" class="tit_2" style="left:5px; top:80px; width:139px; height:14px; ">평화드림 가입고내역</caption>
  386. <output id="opt_winpsnnm" ref="/root/send/goodgawin/winpsnnm" class="output_fix" appearance="output" style="left:1015px; top:44px; width:70px; height:19px; "/>
  387. <input id="ipt_winpsn" ref="/root/send/goodgawin/winpsn" class="input_essential" visibility="hidden" maxlength="10" appearance="input" style="left:995px; top:20px; width:19px; height:19px; "/>
  388. <input id="ipt_windeptcd" ref="/root/send/goodgawin/windeptcd" class="input_s_essential" visibility="hidden" maxlength="10" appearance="input" style="left:1015px; top:20px; width:15px; height:19px; ">
  389. <script type="javascript" ev:event="xforms-value-changed">
  390. <![CDATA[
  391. if(ipt_windeptcd.value.length == 0)
  392. ipt_windeptnm.value = "";
  393. else
  394. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  395. "deptcd," + ipt_windeptcd.value, "", "windeptcd,windeptnm",
  396. ipt_windeptcd, "SPRPZ00200", "","");
  397. model.refresh();
  398. btn_search.dispatch("DOMActivate");
  399. ]]>
  400. </script>
  401. </input>
  402. <input id="ipt_suppcustnm" ref="/root/send/goodgawin/suppcustnm" class="input_fix" appearance="input" style="left:226px; top:44px; width:146px; height:19px; ">
  403. <script type="javascript" ev:event="xforms-value-changed">
  404. <![CDATA[
  405. if(ipt_suppcustnm.value.length == 0)
  406. ipt_suppcustcd.value = "";
  407. else
  408. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  409. model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustnm.attribute("ref")),"","suppcustcd,suppcustnm" ,
  410. ipt_suppcustnm,"SPRSD00220","instcd","opt_instcd");
  411. model.refresh();
  412. ]]>
  413. </script>
  414. </input>
  415. <input id="ipt_suppcustcd" ref="/root/send/goodgawin/suppcustcd" class="input_default" style="left:112px; top:44px; width:90px; height:19px; ">
  416. <script type="javascript" ev:event="xforms-value-changed">
  417. <![CDATA[
  418. if(ipt_suppcustcd.value.length == 0)
  419. ipt_suppcustnm.value = "";
  420. else
  421. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  422. model.getValue(opt_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,
  423. ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
  424. model.refresh();
  425. btn_search.dispatch("DOMActivate");
  426. ]]>
  427. </script>
  428. </input>
  429. <button id="btn_suppcustcd" class="icon_search" style="left:206px; top:47px; width:16px; height:16px; ">
  430. <caption/>
  431. <script type="javascript" ev:event="DOMActivate">
  432. <![CDATA[
  433. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","opt_instcd");
  434. model.refresh();
  435. ]]>
  436. </script>
  437. </button>
  438. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
  439. <caption>조회</caption>
  440. <script type="javascript" ev:event="DOMActivate">
  441. <![CDATA[
  442. if(fCheckRetrieveData(false) == false)return;
  443. misfMsterDetailRetrieve();
  444. ]]>
  445. </script>
  446. </button>
  447. <line id="line5" class="line_4" style="x1:1100px; y1:18px; x2:1100px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  448. <caption id="caption8" class="search_name" style="left:12px; top:19px; width:101px; height:17px; ">기 관 코 드 :</caption>
  449. <caption id="caption14" class="search_name" style="left:12px; top:45px; width:108px; height:17px; ">보조거래처 :</caption>
  450. <caption id="caption18" class="search_name" style="left:790px; top:45px; width:99px; height:17px; ">입고담당자 :</caption>
  451. <output id="opt_goodflag" ref="/root/send/goodgawin/goodflag" visibility="hidden" style="left:1070px; top:20px; width:20px; height:19px; "/>
  452. <output id="opt_instnm" ref="/root/send/goodgawin/instnm" class="output_fix" style="left:112px; top:20px; width:118px; height:19px; "/>
  453. <output id="opt_instcd" ref="/root/send/goodgawin/instcd" visibility="hidden" style="left:1035px; top:20px; width:15px; height:19px; "/>
  454. <output id="opt_iokind" ref="/root/send/goodgawin/iokind" visibility="hidden" style="left:1050px; top:20px; width:20px; height:19px; "/>
  455. <output id="opt_windeptnm" ref="/root/send/goodgawin/windeptnm" class="output_fix" style="left:890px; top:44px; width:120px; height:19px; "/>
  456. <select1 id="cmb_ifstatus" ref="/root/send/goodgawin/ifstatus" appearance="minimal" style="left:890px; top:20px; width:107px; height:19px; text-align:center; ">
  457. <choices>
  458. <itemset nodeset="/root/init/ifstatus">
  459. <label ref="label"/>
  460. <value ref="value"/>
  461. </itemset>
  462. </choices>
  463. </select1>
  464. <button id="btn_excel" class="btn2_letter3" style="left:1074px; top:76px; width:53px; height:19px; ">
  465. <caption>Excel</caption>
  466. <script type="javascript" ev:event="DOMActivate">
  467. <![CDATA[
  468. misfSaveExcel(grd_goodgawin);
  469. ]]>
  470. </script>
  471. </button>
  472. <button id="btn_choices" class="btn2_letter4" style="left:1128px; top:76px; width:64px; height:19px; ">
  473. <caption>Choice</caption>
  474. <script type="javascript" ev:event="DOMActivate">
  475. <![CDATA[
  476. fCheckGrid();
  477. ]]>
  478. </script>
  479. </button>
  480. <caption id="caption4" class="search_name" style="left:790px; top:19px; width:102px; height:17px; ">입 고 처 리 :</caption>
  481. <input id="ipt_goodnm" ref="/root/send/goodgawin/goodnm" class="input_search" style="left:610px; top:45px; width:135px; height:19px; ">
  482. <script type="javascript" ev:event="xforms-value-changed">
  483. <![CDATA[
  484. if(ipt_goodnm.value != "")
  485. {
  486. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm,nonusegoodview",
  487. "goodnm," + opt_instcd.value + "," + opt_goodflag.value + "," + ipt_goodnm.value + "," + rdo_nonusegoodview.value ,"","goodcd,goodnm",
  488. ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,opt_goodflag");
  489. }else
  490. {
  491. ipt_goodcd.value = "";
  492. ipt_goodnm.value = "";
  493. }
  494. model.refresh();
  495. ]]>
  496. </script>
  497. </input>
  498. <input id="ipt_goodcd" ref="/root/send/goodgawin/goodcd" class="input_search" imemode="disabled" _chartype="upper" style="left:509px; top:45px; width:81px; height:19px; text-align:center; ">
  499. <script type="javascript" ev:event="xforms-value-changed">
  500. <![CDATA[
  501. if(ipt_goodcd.value != "")
  502. {
  503. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,nonusegoodview",
  504. "goodcd," + opt_instcd.value + "," + opt_goodflag.value + "," + ipt_goodcd.value + "," + rdo_nonusegoodview.value,"","goodcd,goodnm",
  505. ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,opt_goodflag");
  506. }else{
  507. ipt_goodcd.value = "";
  508. ipt_goodnm.value = "";
  509. }
  510. model.refresh();
  511. ]]>
  512. </script>
  513. </input>
  514. <button id="btn_goodSearchs" class="icon_search" style="left:592px; top:45px; width:16px; height:16px; ">
  515. <caption/>
  516. <script type="javascript" ev:event="DOMActivate">
  517. <![CDATA[
  518. // 자산코드 팝업창 오픈
  519. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag,nonusegoodview","opt_instcd,opt_goodflag,rdo_nonusegoodview");
  520. // rszfOpenPopUpListByWndName(grd_gooddmnd,"","goodcd,goodnm","SPRSD00190","instcd,goodflag,nonusegoodview","cmb_instcd,cmb_goodflag,rdo_nonusegoodview");
  521. model.refresh();
  522. ]]>
  523. </script>
  524. </button>
  525. <caption id="caption2" class="search_name" style="left:402px; top:45px; width:101px; height:17px; ">물 품 코 드 :</caption>
  526. <input id="ipt_gatowindd" ref="/root/send/goodgawin/gatowindd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:638px; top:19px; width:107px; height:19px; text-align:center; ">
  527. <script type="javascript" ev:event="xforms-value-changed">
  528. <![CDATA[
  529. btn_search.dispatch("DOMActivate");
  530. ]]>
  531. </script>
  532. </input>
  533. <caption id="cap_gawindd" class="search_name" style="left:402px; top:19px; width:104px; height:17px; ">가입고일자 :</caption>
  534. <caption id="caption1" style="left:620px; top:22px; width:15px; height:16px; ">~</caption>
  535. <input id="ipt_gawindd" ref="/root/send/goodgawin/gawindd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:508px; top:19px; width:107px; height:19px; text-align:center; ">
  536. <script type="javascript" ev:event="xforms-value-changed">
  537. <![CDATA[
  538. btn_search.dispatch("DOMActivate");
  539. ]]>
  540. </script>
  541. </input>
  542. <select1 id="rdo_nonusegoodview" ref="/root/hidden/nonusegoodview" visibility="hidden" appearance="full" cols="2" style="left:755px; top:45px; width:15px; height:17px; border-style:none; ">
  543. <choices>
  544. <itemset nodeset="/root/init/nonusegoodview">
  545. <label ref="label"/>
  546. <value ref="value"/>
  547. </itemset>
  548. </choices>
  549. </select1>
  550. </group>
  551. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  552. <button id="button1" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  553. <caption>화면이동</caption>
  554. </button>
  555. <button id="button3" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  556. <caption>출력</caption>
  557. </button>
  558. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  559. <caption>초기화</caption>
  560. </button>
  561. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  562. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  563. <caption>저장</caption>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. if(fCheckSaveData() == false)return;
  567. /* 가입고는 인터페이스 전달하지 않는다 */
  568. //model.setValue("/root/send/save/interfacecustcdlist/purc_main_suplplcecd",rszfGetMainCust(purc_main_suplplcecd));
  569. //model.setValue("/root/send/save/interfacecustcdlist/drg_main_suplplcecd",rszfGetMainCust(drg_main_suplplcecd));
  570. model.setValue("/root/send/save/interfacecustcdlist/purc_main_suplplcecd",'xx');
  571. model.setValue("/root/send/save/interfacecustcdlist/drg_main_suplplcecd",'xx');
  572. misfSave("TXRSI00801");
  573. if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
  574. ]]>
  575. </script>
  576. </button>
  577. </group>
  578. </xhtml:body>
  579. </xhtml:html>