SMRSC03750_자재Spec일괄변경.xrw 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  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>기관별 자재Spec.일괄변경</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodhistory>
  12. <goodhistorylist/>
  13. </goodhistory>
  14. <good>
  15. <goodlist/>
  16. </good>
  17. <excelcost>
  18. <excelcostlist/>
  19. </excelcost>
  20. <rscdgchg>
  21. <rscdgchglist/>
  22. </rscdgchg>
  23. </list>
  24. <gooddet>
  25. <gooddetlist/>
  26. </gooddet>
  27. </main>
  28. <target>
  29. <defaultvalue/>
  30. </target>
  31. <init>
  32. <allsizeyn>
  33. <label>예</label>
  34. <value>Y</value>
  35. <label>아니오</label>
  36. <value>N</value>
  37. </allsizeyn>
  38. <useyn>
  39. <label>사용</label>
  40. <value>Y</value>
  41. <label>불용</label>
  42. <value>N</value>
  43. <label>전체</label>
  44. <value>A</value>
  45. </useyn>
  46. <popmenu>
  47. <grd_costlist>
  48. <item>
  49. <name>포장단위일괄변경</name>
  50. <func>fSetPurcUnit</func>
  51. </item>
  52. <item>
  53. <name>환산수량일괄변경</name>
  54. <func>fSetExchQty</func>
  55. </item>
  56. <item>
  57. <name>수불단위일괄변경</name>
  58. <func>fSetDeliveUnit</func>
  59. </item>
  60. <item>
  61. <name>-</name>
  62. <func/>
  63. </item>
  64. <item>
  65. <name>단가일괄변경</name>
  66. <func>fSetGoodUnitCost</func>
  67. </item>
  68. <item>
  69. <name>-</name>
  70. <func/>
  71. </item>
  72. <item>
  73. <name>주거래처일괄변경</name>
  74. <func>fSetMainCustLastSuplplce</func>
  75. </item>
  76. <item>
  77. <name>보조거래처일괄변경</name>
  78. <func>fSetSuppCustCd</func>
  79. </item>
  80. </grd_costlist>
  81. </popmenu>
  82. <popinputcd/>
  83. <popinputnm/>
  84. <poptitle/>
  85. <popcond/>
  86. <popformat/>
  87. <prcpunit/>
  88. <CopyData>
  89. <CopyGoodLists>
  90. <goodexcel>
  91. <fromdd/>
  92. <goodcd/>
  93. <goodnm/>
  94. <purcflag/>
  95. <purcflagnm/>
  96. <reqprid/>
  97. <reqpridnm/>
  98. <reqmthd/>
  99. <reqmthdnm/>
  100. <goodunitcost/>
  101. <maincustlastsuplplce/>
  102. <suplplcenm/>
  103. <suppcustcd/>
  104. <suppcustnm/>
  105. <prodcmpycd/>
  106. <prodcmpynm/>
  107. <cmt/>
  108. </goodexcel>
  109. </CopyGoodLists>
  110. </CopyData>
  111. </init>
  112. <send>
  113. <goodlist>
  114. <instcd/>
  115. <lrgcd/>
  116. <lrgnm/>
  117. <mdlcd/>
  118. <mdlnm/>
  119. <smlcd/>
  120. <smlnm/>
  121. <edicd/>
  122. <goodcd/>
  123. <goodflag/>
  124. <goodnm/>
  125. <prodcmpycd/>
  126. <prodcmpynm/>
  127. <maincustlastsuplplce/>
  128. <maincustlastsuplplcenm/>
  129. <suppcustcd/>
  130. <suppcustnm/>
  131. <purcflag/>
  132. <stocmngtflag/>
  133. <reqmthd/>
  134. <allsizeyn/>
  135. <conflag/>
  136. <useyn/>
  137. <fr_fromdd/>
  138. <to_fromdd/>
  139. <reqflag/>
  140. <sch_goodcd/>
  141. <offset/>
  142. <pagesize>20</pagesize>
  143. <oldcd/>
  144. </goodlist>
  145. <goodhistory>
  146. <goodcd/>
  147. </goodhistory>
  148. <save>
  149. <goodlist/>
  150. <setautoins>
  151. <insfromdd/>
  152. <instcd/>
  153. </setautoins>
  154. </save>
  155. <goodcostlist>
  156. <instcd/>
  157. <goodcd/>
  158. </goodcostlist>
  159. </send>
  160. <temp/>
  161. </root>
  162. </instance>
  163. <script type="javascript" ev:event="xforms-ready">
  164. <![CDATA[
  165. //화면 Control을 초기화한다
  166. fInitForm();
  167. ]]>
  168. </script>
  169. <submission id="TRRSC03751" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" add="bottom" resultref="/root/main/list/good"/>
  170. <submission id="TRRSC03752" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodhistory" resultref="/root/main/list/goodhistory"/>
  171. <submission id="TXRSC03751" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  172. </model>
  173. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  174. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  175. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  176. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  177. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  178. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  179. <script type="javascript" src="../../../mis/purcbaseweb/js/SMRSC03750.js"/>
  180. </xhtml:head>
  181. <xhtml:body guideline="2,773;" style="font-family:굴림체; font-size:8pt; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  182. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  183. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">기관별 자재Spec.일괄변경</caption>
  184. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  185. </group>
  186. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  187. <switch id="swt_select" class="sw_box" style="left:0px; top:180px; width:1195px; height:560px; border-style:solid; ">
  188. <case id="cse_costlist" style="left:0px; top:0px; width:1193px; height:578px; ">
  189. <datagrid id="grd_costlist" nodeset="/root/main/list/good/goodlist" caption="적용일자^물품코드^품명^규격^모델^제조회사^포장단위^환산수량^수불단위^단가^주거래처^주거래처^보조거래처^보조거래처^수정자^수정일시^물품구분" colsep="^" colwidth="69, 64, 163, 74, 55, 94, 81, 61, 79, 52, 94, 20, 94, 20, 60, 69, 11" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:25px; width:1193px; height:390px; ">
  190. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  191. <col ref="goodcd" style="text-align:center; "/>
  192. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  193. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  194. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  195. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  196. <col ref="purcunit" type="combo" style="text-align:left; padding-left:10; ">
  197. <choices>
  198. <itemset>
  199. <label/>
  200. <value/>
  201. </itemset>
  202. </choices>
  203. </col>
  204. <col ref="exchqty" type="input" format="#,###" style="text-align:right; "/>
  205. <col ref="deliveunit" type="combo" style="text-align:left; padding-left:10; ">
  206. <choices>
  207. <itemset>
  208. <label/>
  209. <value/>
  210. </itemset>
  211. </choices>
  212. </col>
  213. <col ref="goodunitcost" type="input" format="#,###" style="text-align:right; "/>
  214. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  215. <col ref="maincustlastsuplplce" type="inputbutton" style="color:#ffffff; "/>
  216. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  217. <col ref="suppcustcd" type="inputbutton" style="color:#ffffff; "/>
  218. <col ref="lastupdtrnm" style="text-align:center; "/>
  219. <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
  220. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  221. <script type="javascript" ev:event="onmousedown">
  222. <![CDATA[
  223. if(event.button == 3){
  224. if(swt_select.selectedIndex == 0 && (grd_costlist.isCell(event.target) && grd_costlist.mouseRow >= grd_costlist.fixedrows)){
  225. window.setPopupMenu(true, "/root/init/popmenu/grd_costlist/item", "name", "func", false);
  226. }else{
  227. window.setPopupMenu(false);
  228. }
  229. }
  230. ]]>
  231. </script>
  232. <script type="javascript" ev:event="onrowchanged">
  233. <![CDATA[
  234. misfMsterDetailRetrieve();
  235. // model.setValue("/root/send/goodcostlist/instcd", grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("instcd")));
  236. // model.setValue("/root/send/goodcostlist/goodcd", grd_costlist.valueMatrix(grd_costlist.row, grd_costlist.colRef("goodcd")));
  237. // submit("TRRSC03702");
  238. ]]>
  239. </script>
  240. <script type="javascript" ev:event="DOMFocusOut">
  241. <![CDATA[
  242. window.setPopupMenu(false);
  243. ]]>
  244. </script>
  245. <script type="javascript" ev:event="onbuttonclick">
  246. <![CDATA[
  247. if(grd_costlist.colRef("prodcmpycd") == grd_costlist.col)
  248. {
  249. rszfOpenPopUpListByWndName(grd_costlist,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  250. model.refresh();
  251. }
  252. else if(grd_costlist.colRef("maincustlastsuplplce") == grd_costlist.col)
  253. {
  254. rszfOpenPopUpListByWndName(grd_costlist,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  255. model.refresh();
  256. }
  257. else if(grd_costlist.colRef("suppcustcd") == grd_costlist.col)
  258. {
  259. rszfOpenPopUpListByWndName(grd_costlist,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  260. model.refresh();
  261. }
  262. ]]>
  263. </script>
  264. <script type="javascript" ev:event="onscroll">
  265. <![CDATA[
  266. fSubmitOnScroll();
  267. ]]>
  268. </script>
  269. <script type="javascript" ev:event="onaftersort">
  270. <![CDATA[
  271. grd_costlist.gridToInstance();
  272. ]]>
  273. </script>
  274. </datagrid>
  275. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:2px; width:56px; height:22px; ">
  276. <caption>저장</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. var rowno = "";
  280. for (var i = grd_costlist.fixedRows ; i < grd_costlist.rows ; i++){
  281. var fromdd = grd_costlist.valueMatrix(i , grd_costlist.colRef("fromdd"));
  282. var prefromdd = model.getValue(ipt_insfromdd.attribute("ref"));
  283. if ((fromdd > prefromdd) && (grd_costlist.rowStatus(i) != 0)){
  284. grd_costlist.rowStatus(i) = 0;
  285. rowno += ", " + i;
  286. }
  287. }
  288. rowno = rowno.substr(2, rowno.length);
  289. if (rowno != ""){
  290. messageBox(rowno+"번째 적용일자를 과거 시점으로 변경", "E001");
  291. return;
  292. }
  293. model.refresh();
  294. fSaveDataSetting("TXRSC03751");
  295. ]]>
  296. </script>
  297. </button>
  298. <button id="bbt_excelload" class="btn2_letter8" style="left:1017px; top:4px; width:108px; height:19px; ">
  299. <caption>엑셀자료가져오기</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. fLoadExcel_2("0",grp_copygood, grd_copygood);
  303. ]]>
  304. </script>
  305. </button>
  306. <button id="btn_zoomin" class="btn2_letter7" style="left:916px; top:4px; width:97px; height:19px; ">
  307. <caption>크게/작게 보기</caption>
  308. <script type="javascript" ev:event="DOMActivate">
  309. <![CDATA[
  310. fZoomInOut();
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_excel" class="btn5_letter5" navindex="12" style="left:838px; top:4px; width:75px; height:19px; ">
  315. <caption>Excel 저장</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. var fileName = window.fileDialog("save", ",", false, "자재SPEC일괄변경List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  319. if (fileName != "")
  320. {
  321. //grd_excel.saveExcel(fileName, "물품코드");
  322. grd_costlist.saveExcel(fileName, "물품코드");
  323. }
  324. ]]>
  325. </script>
  326. </button>
  327. <datagrid id="grd_goodhistory" nodeset="/root/main/list/goodhistory/goodhistorylist" caption="적용일자*^사용유무^규격^모델^제조회사^제조국^주거래처^보조거래처^EDI 코드^입고단위^불출단위^제품단가^입고계정^비용계정^견적가^외화단가^화폐단위^제품단가^대분류^중분류^소분류^수정자^수정일시" colsep="^" colwidth="80, 0, 65, 60, 66, 66, 80, 80, 75, 71, 73, 64, 100, 70, 71, 70, 69, 71, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:450px; width:1195px; height:108px; ">
  328. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  329. <col ref="useyn"/>
  330. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  331. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  332. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  333. <col ref="prodplcenm" style="text-align:left; padding-left:10; "/>
  334. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  335. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  336. <col ref="edicd" style="text-align:center; "/>
  337. <col ref="purcunitnm" style="text-align:left; padding-left:10; "/>
  338. <col ref="deliveunitnm" style="text-align:left; padding-left:10; "/>
  339. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  340. <col ref="winacntnm" style="text-align:left; padding-left:10; "/>
  341. <col ref="amtacntnm" style="text-align:left; padding-left:10; "/>
  342. <col ref="estmamt" format="#,###" style="text-align:right; "/>
  343. <col ref="forgncurncyunitcost" format="#,###" style="text-align:right; "/>
  344. <col ref="curncyunitnm" style="text-align:left; padding-left:10; "/>
  345. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  346. <col ref="lrgnm" style="text-align:left; padding-left:10; "/>
  347. <col ref="mdlnm" style="text-align:left; padding-left:10; "/>
  348. <col ref="smlnm" style="text-align:left; padding-left:10; "/>
  349. <col ref="lastupdtrnm" style="text-align:center; "/>
  350. <col ref="lastupdtdt" format="yyyy-mm-dd" style="text-align:center; "/>
  351. <script type="javascript" ev:event="onaftersort">
  352. <![CDATA[
  353. grd_goodhistory.gridToInstance();
  354. ]]>
  355. </script>
  356. </datagrid>
  357. <button id="btn_ZoomIn" class="btn2_letter4" visibility="hidden" style="left:761px; top:4px; width:64px; height:19px; ">
  358. <caption>ZoomIn</caption>
  359. <script type="javascript" ev:event="DOMActivate">
  360. <![CDATA[
  361. fWindowPosition("I");
  362. ]]>
  363. </script>
  364. </button>
  365. <button id="btn_ZoomOut" class="btn2_letter5" visibility="hidden" style="left:826px; top:4px; width:75px; height:19px; ">
  366. <caption>ZoomOut</caption>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. fWindowPosition("O");
  370. ]]>
  371. </script>
  372. </button>
  373. <caption id="caption8" class="tit_2" style="left:3px; top:431px; width:95px; height:13px; ">이력정보</caption>
  374. <line id="line8" class="line_1" style="x1:0px; y1:445px; x2:1195px; y2:445px; "/>
  375. <group id="grp_copygood" visibility="hidden" style="left:0px; top:0; width:1193px; height:556px; border-style:solid; ">
  376. <button id="btn_docusave" class="btn4_letter2" style="left:1129px; top:1px; width:56px; height:22px; ">
  377. <caption>저장</caption>
  378. <script type="javascript" ev:event="DOMActivate">
  379. <![CDATA[
  380. // 선택물품을 적용하는 처리하는 함수
  381. fSaveGoodExcel(grd_copygood);
  382. ]]>
  383. </script>
  384. </button>
  385. <datagrid id="grd_copygood" nodeset="/root/init/CopyData/CopyGoodLists/goodexcel" caption="물품코드^품명^구매구분^청구주기^청구방법^단가^주거래처^주거래처명^보조거래처^보조거래처명^비고" colsep="^" colwidth="90, 149, 62, 63, 61, 83, 98, 132, 100, 130, 161" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:-1px; top:29px; width:1190px; height:525px; ">
  386. <col ref="goodcd" style="text-align:center; ">
  387. <![CDATA[/>]]>
  388. </col>
  389. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  390. <col ref="purcflag" type="combo" style="text-align:center; ">
  391. <choices>
  392. <itemset>
  393. <label/>
  394. <value/>
  395. </itemset>
  396. </choices>
  397. </col>
  398. <col ref="reqprid" type="combo" style="text-align:center; ">
  399. <choices>
  400. <itemset>
  401. <label/>
  402. <value/>
  403. </itemset>
  404. </choices>
  405. </col>
  406. <col ref="reqmthd" type="combo" style="text-align:center; ">
  407. <choices>
  408. <itemset>
  409. <![CDATA[.]]>
  410. <label/>
  411. <value/>
  412. </itemset>
  413. </choices>
  414. </col>
  415. <col ref="goodunitcost" type="input" format="#,###" style="text-align:right; "/>
  416. <col ref="maincustlastsuplplce" type="inputbutton" style="text-align:center; "/>
  417. <col ref="suplplcenm" style="text-align:left; padding-left:10; ">
  418. <![CDATA[/>]]>
  419. </col>
  420. <col ref="suppcustcd" type="inputbutton" style="text-align:center; "/>
  421. <col ref="suppcustnm" style="text-align:left; padding-left:10; ">
  422. <![CDATA[/>]]>
  423. </col>
  424. <col ref="cmt" type="input" style="text-align:left; padding-left:10; "/>
  425. <script type="javascript" ev:event="onbuttonclick">
  426. <![CDATA[
  427. if(grd_copygood.colRef("prodcmpycd") == grd_copygood.col)
  428. {
  429. rszfOpenPopUpListByWndName(grd_copygood,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  430. model.refresh();
  431. }
  432. else if(grd_copygood.colRef("maincustlastsuplplce") == grd_copygood.col)
  433. {
  434. rszfOpenPopUpListByWndName(grd_copygood,"","maincustlastsuplplce,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  435. model.refresh();
  436. }
  437. else if(grd_copygood.colRef("suppcustcd") == grd_copygood.col)
  438. {
  439. rszfOpenPopUpListByWndName(grd_copygood,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  440. model.refresh();
  441. }
  442. ]]>
  443. </script>
  444. </datagrid>
  445. <caption id="caption5" class="tit_2" style="left:4px; top:7px; width:240px; height:14px; ">자재Spec일괄변경 Excel Data Lists</caption>
  446. <line id="line5" class="line_1" style="x1:-1px; y1:24px; x2:1189px; y2:24px; "/>
  447. <caption id="caption9" visibility="hidden" style="left:360px; top:5px; width:365px; height:20px; font-weight:bold; color:#ff0000; ">
  448. <![CDATA[**]]>
  449. </caption>
  450. <button id="btn_cancel" class="btn4_letter2" style="left:1070px; top:1px; width:55px; height:22px; ">
  451. <caption>취소</caption>
  452. <script type="javascript" ev:event="DOMActivate">
  453. <![CDATA[
  454. grp_copygood.visible = false;
  455. misfGridInit(grd_copygood);
  456. ]]>
  457. </script>
  458. </button>
  459. <button id="button2" class="btn2_letter3" style="left:1012px; top:2px; width:53px; height:19px; ">
  460. <caption>행삭제</caption>
  461. <script type="javascript" ev:event="DOMActivate">
  462. <![CDATA[
  463. grd_copygood.deleteRow(grd_copygood.row);
  464. ]]>
  465. </script>
  466. </button>
  467. </group>
  468. <line id="line3" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
  469. </case>
  470. <case id="cse_goodlist" selected="false" style="left:0px; top:0px; width:1193px; height:578px; ">
  471. <datagrid id="grd_rscdgchglist" nodeset="/root/main/list/rscdgchg/rscdgchglist" caption="물품코드^적용일자^OLD 단가^NEW 단가^OLD 보조거래처^NEW 보조거래처^고시" colsep="^" colwidth="105, 120, 137, 143, 178, 180, 300" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:527px; ">
  472. <col ref="goodcd" _key="true" style="text-align:center; "/>
  473. <col ref="fromdd" type="inputdate" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
  474. <col ref="oldgoodunitcost" type="input" format="#,###" style="text-align:right; "/>
  475. <col ref="goodunitcost" type="input" format="#,###" style="text-align:right; "/>
  476. <col ref="oldsuppcustcd" style="text-align:center; "/>
  477. <col ref="suppcustcd" style="text-align:center; "/>
  478. <col ref="cmt" type="input" style="text-align:left; padding-left:10; "/>
  479. </datagrid>
  480. <line id="line4" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
  481. <button id="button1" class="btn2_letter6" style="left:900px; top:3px; width:86px; height:19px; ">
  482. <caption>데이터지우기</caption>
  483. <script type="javascript" ev:event="DOMActivate">
  484. <![CDATA[
  485. misfGridInit(grd_rscdgchglist);
  486. grd_rscdgchglist.refresh();
  487. cap_cnt.value = "0";
  488. ]]>
  489. </script>
  490. </button>
  491. <caption id="caption2" style="left:615px; top:5px; width:75px; height:17px; font-weight:bold; ">총 건수 :</caption>
  492. <caption id="cap_cnt" format="#,###" style="left:680px; top:5px; width:60px; height:17px; font-weight:bold; text-align:right; ">0</caption>
  493. <caption id="cap_totcnt" style="left:745px; top:5px; width:75px; height:17px; font-weight:bold; ">건</caption>
  494. <button id="button8" class="btn2_letter3" style="left:844px; top:3px; width:53px; height:19px; ">
  495. <caption>행삭제</caption>
  496. <script type="javascript" ev:event="DOMActivate">
  497. <![CDATA[
  498. grd_rscdgchglist.deleteRow(grd_rscdgchglist.row);
  499. cap_cnt.value = grd_rscdgchglist.rows- grd_rscdgchglist.fixedRows;
  500. // misfGridIUD(grd_allsizecopy, "D");
  501. ]]>
  502. </script>
  503. </button>
  504. <button id="btn_docusave2" class="btn4_letter2" style="left:1103px; top:1px; width:56px; height:22px; ">
  505. <caption>저장</caption>
  506. <script type="javascript" ev:event="DOMActivate">
  507. <![CDATA[
  508. // 고시단가
  509. fSaveGoodExcel(grd_rscdgchglist);
  510. ]]>
  511. </script>
  512. </button>
  513. <button id="btn_loadexcel" class="btn2_letter8" style="left:990px; top:3px; width:108px; height:19px; ">
  514. <caption>엑셀자료가져오기</caption>
  515. <script type="javascript" ev:event="DOMActivate">
  516. <![CDATA[
  517. fLoadExcel();
  518. ]]>
  519. </script>
  520. </button>
  521. </case>
  522. </switch>
  523. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:138px; vertical-align:top; ">
  524. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:138px; background-color:#fffbf2; border-color:#ffd799; "/>
  525. <caption id="cap_instcd" class="search_name" style="left:15; top:8px; width:86px; height:17px; ">기관코드 :</caption>
  526. <select1 id="cmb_instcd" ref="/root/send/goodlist/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:100px; top:8px; width:165px; height:19px; ">
  527. <choices>
  528. <itemset nodeset="/root/init/instcd">
  529. <label ref="cdnm"/>
  530. <value ref="cdid"/>
  531. </itemset>
  532. </choices>
  533. <script type="javascript" ev:event="xforms-value-changed">
  534. <![CDATA[
  535. misfGridInit(grd_costlist);
  536. misfGridInit(grd_rscdgchglist);
  537. fUnitSet();
  538. ]]>
  539. </script>
  540. </select1>
  541. <caption id="cap_maincustlastsuplplce" class="search_name" style="left:530px; top:61px; width:103px; height:17px; ">주 거 래 처 :</caption>
  542. <caption id="cap_goodflag" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">물품구분 :</caption>
  543. <input id="input1" ref="/root/send/goodlist/to_fromdd" class="input_default" inputtype="date" style="left:774px; top:35px; width:111px; height:19px; text-align:center; "/>
  544. <caption id="cap_lrgcd" class="search_name" style="left:15px; top:61px; width:83px; height:17px; ">대 분 류 :</caption>
  545. <caption id="caption27" class="search_name" style="left:530px; top:8px; width:103px; height:17px; ">물 품 명 :</caption>
  546. <caption id="caption28" class="search_name" style="left:15px; top:87px; width:83px; height:17px; ">중 분 류 :</caption>
  547. <caption id="caption29" class="search_name" style="left:530px; top:113px; width:103px; height:17px; ">제 조 회 사 :</caption>
  548. <caption id="caption30" class="search_name" style="left:15px; top:113px; width:83px; height:17px; ">소 분 류 :</caption>
  549. <caption id="cap_suppcustcd" class="search_name" style="left:530px; top:87px; width:103px; height:17px; ">보조거래처 :</caption>
  550. <input id="ipt_goodnm" ref="/root/send/goodlist/goodnm" class="input_default" style="left:635px; top:8px; width:250px; height:19px; "/>
  551. <input id="ipt_prodcmpycd" ref="/root/send/goodlist/prodcmpycd" class="input_search" style="left:635px; top:113px; width:111px; height:19px; ">
  552. <script type="javascript" ev:event="xforms-value-changed">
  553. <![CDATA[
  554. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(ipt_prodcmpynm.attribute("ref"),"");
  555. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) + "," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  556. model.refresh();
  557. ]]>
  558. </script>
  559. </input>
  560. <input id="ipt_prodcmpynm" ref="/root/send/goodlist/prodcmpynm" class="input_search" style="left:774px; top:113px; width:245px; height:19px; ">
  561. <script type="javascript" ev:event="xforms-value-changed">
  562. <![CDATA[
  563. if ( model.getValue(ipt_prodcmpynm.attribute("ref")).length == 0 ) model.setValue(ipt_prodcmpycd.attribute("ref"),"");
  564. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  565. "prodcmpynm,," + model.getValue(ipt_prodcmpynm.attribute("ref")),
  566. "","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  567. model.refresh();
  568. ]]>
  569. </script>
  570. </input>
  571. <button id="btn_prodcmpycd" class="icon_search" style="left:753px; top:110px; width:16px; height:16px; ">
  572. <caption/>
  573. <script type="javascript" ev:event="DOMActivate">
  574. <![CDATA[
  575. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  576. model.refresh();
  577. ]]>
  578. </script>
  579. </button>
  580. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodlist/maincustlastsuplplcenm" class="input_search" style="left:774px; top:61px; width:245px; height:19px; ">
  581. <script type="javascript" ev:event="xforms-value-changed">
  582. <![CDATA[
  583. if ( model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")).length == 0 ) model.setValue(ipt_maincustlastsuplplce.attribute("ref"),"");
  584. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  585. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),
  586. "","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  587. model.refresh();
  588. ]]>
  589. </script>
  590. </input>
  591. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:753px; top:61px; width:16px; height:16px; ">
  592. <caption/>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  596. model.refresh();
  597. ]]>
  598. </script>
  599. </button>
  600. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodlist/maincustlastsuplplce" class="input_search" style="left:635px; top:61px; width:111px; height:19px; ">
  601. <script type="javascript" ev:event="xforms-value-changed">
  602. <![CDATA[
  603. if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(ipt_maincustlastsuplplcenm.attribute("ref"),"");
  604. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  605. model.refresh();
  606. ]]>
  607. </script>
  608. </input>
  609. <input id="ipt_suppcustnm" ref="/root/send/goodlist/suppcustnm" class="input_search" style="left:774px; top:87px; width:245px; height:19px; ">
  610. <script type="javascript" ev:event="xforms-value-changed">
  611. <![CDATA[
  612. if ( model.getValue(ipt_suppcustnm.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustcd.attribute("ref"),"");
  613. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  614. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref")),
  615. "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  616. model.refresh();
  617. ]]>
  618. </script>
  619. </input>
  620. <input id="ipt_suppcustcd" ref="/root/send/goodlist/suppcustcd" class="input_search" style="left:635px; top:87px; width:111px; height:19px; ">
  621. <script type="javascript" ev:event="xforms-value-changed">
  622. <![CDATA[
  623. if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ) model.setValue(ipt_suppcustnm.attribute("ref"),"");
  624. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  625. model.refresh();
  626. ]]>
  627. </script>
  628. </input>
  629. <button id="btn_suppcustcd" class="icon_search" style="left:753px; top:87px; width:16px; height:16px; ">
  630. <caption/>
  631. <script type="javascript" ev:event="DOMActivate">
  632. <![CDATA[
  633. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  634. model.refresh();
  635. ]]>
  636. </script>
  637. </button>
  638. <input id="ipt_edicd" ref="/root/send/goodlist/edicd" class="input_default" style="left:375px; top:61px; width:130px; height:19px; "/>
  639. <input id="ipt_goodcd" ref="/root/send/goodlist/sch_goodcd" class="input_default" style="left:375px; top:8px; width:130px; height:19px; "/>
  640. <caption id="cap_goodcd" class="search_name" style="left:290px; top:8px; width:89px; height:17px; ">물품코드 :</caption>
  641. <caption id="caption34" class="search_name" style="left:290px; top:61px; width:89px; height:17px; ">EDI코드 :</caption>
  642. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:54px; width:56px; height:22px; ">
  643. <caption>조회</caption>
  644. <script type="javascript" ev:event="DOMActivate">
  645. <![CDATA[
  646. // size 원위치
  647. var lrgcd = model.getValue(cmb_lrgcd_search.attribute("ref"));
  648. if (lrgcd == ""){
  649. messageBox("필수 입력 조건인 대분류가 입력 되지", "E007");
  650. return;
  651. }
  652. fZoomInOut("search")
  653. if(fCheckRetrieveData() == false)return;
  654. misfMsterDetailRetrieve();
  655. ]]>
  656. </script>
  657. </button>
  658. <select1 id="cmb_goodflag" ref="/root/send/goodlist/goodflag" class="combo_search" appearance="minimal" style="left:100px; top:34px; width:165px; height:19px; ">
  659. <choices>
  660. <itemset nodeset="/root/init/goodflag">
  661. <label ref="cdnm"/>
  662. <value ref="cdid"/>
  663. </itemset>
  664. </choices>
  665. <script type="javascript" ev:event="xforms-value-changed">
  666. <![CDATA[
  667. misfGridInit(grd_costlist);
  668. fSetGoodFlagAuth();
  669. // btn_search.dispatch("DOMActivate");
  670. fUnitSet();
  671. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd_search", "", "L", "Y", "Y");
  672. ]]>
  673. </script>
  674. </select1>
  675. <input id="input23" ref="/root/send/goodlist/fr_fromdd" class="input_default" inputtype="date" style="left:635px; top:35px; width:111px; height:19px; text-align:center; "/>
  676. <caption id="caption38" class="search_name" style="left:530px; top:35px; width:103px; height:17px; ">적 용 기 간 :</caption>
  677. <caption id="caption1" style="left:754px; top:35px; width:15px; height:20px; font-weight:bold; ">~</caption>
  678. <caption id="caption82" class="search_name" style="left:290px; top:35px; width:89px; height:17px; ">구 코 드 :</caption>
  679. <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" maxlength="12" style="left:375px; top:35px; width:130px; height:19px; "/>
  680. <line id="line_title" class="line_4" style="x1:1109px; y1:15px; x2:1109px; y2:125px; border-color:#ffe4bb; border-left-style:solid; "/>
  681. <select1 id="cmb_lrgcd_search" ref="/root/send/goodlist/lrgcd" appearance="minimal" style="left:100px; top:60px; width:165px; height:19px; ">
  682. <choices>
  683. <itemset>
  684. <label/>
  685. <value/>
  686. </itemset>
  687. </choices>
  688. <script type="javascript" ev:event="xforms-value-changed">
  689. <![CDATA[
  690. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M", "Y", "Y");
  691. cmb_mdlcd_search.value='';
  692. cmb_mdlcd_search.dispatch("xforms-value-changed");
  693. model.refresh();
  694. ]]>
  695. </script>
  696. </select1>
  697. <select1 id="cmb_mdlcd_search" ref="/root/send/goodlist/mdlcd" appearance="minimal" style="left:100px; top:86px; width:165px; height:19px; ">
  698. <choices>
  699. <itemset>
  700. <label/>
  701. <value/>
  702. </itemset>
  703. </choices>
  704. <script type="javascript" ev:event="xforms-value-changed">
  705. <![CDATA[
  706. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S", "Y", "Y");
  707. cmb_smlcd_search.value='';
  708. model.refresh();
  709. ]]>
  710. </script>
  711. </select1>
  712. <select1 id="cmb_smlcd_search" ref="/root/send/goodlist/smlcd" appearance="minimal" style="left:100px; top:112px; width:165px; height:19px; ">
  713. <choices>
  714. <itemset>
  715. <label/>
  716. <value/>
  717. </itemset>
  718. </choices>
  719. </select1>
  720. <select1 id="rbo_useyn" ref="/root/send/goodlist/useyn" class="radio_search" visibility="hidden" overflow="visible" appearance="full" cols="3" rows="1" style="left:376px; top:113px; width:128px; height:19px; border-style:none; ">
  721. <choices>
  722. <itemset nodeset="/root/init/useyn">
  723. <label ref="label"/>
  724. <value ref="value"/>
  725. </itemset>
  726. </choices>
  727. </select1>
  728. <input id="ipt_insfromdd" ref="/root/send/save/setautoins/insfromdd" class="input_default" disabled="false" inputtype="date" style="left:375px; top:87px; width:130px; height:19px; text-align:center; ">
  729. <script type="javascript" ev:event="xforms-value-changed">
  730. <![CDATA[
  731. var curdate = getCurrentDate();
  732. var cvtdate = model.getValue(ipt_insfromdd.attribute("ref"));
  733. if ( cvtdate < curdate ) {
  734. messageBox("변경일자를 과거시점으로 변경", "E001");
  735. // messageBox("저장 하시겠습니까?", "Q999");
  736. model.setValue(ipt_insfromdd.attribute("ref") , curdate);
  737. model.refresh();
  738. }
  739. ]]>
  740. </script>
  741. </input>
  742. <caption id="caption37" class="search_name" visibility="hidden" style="left:290px; top:113px; width:89px; height:17px; ">사용여부 :</caption>
  743. <caption id="caption7" class="search_name" style="left:290px; top:87px; width:89px; height:17px; ">변경일자 :</caption>
  744. </group>
  745. <button id="btn_cost" class="btn_sw" group="tab" selected="true" style="left:0px; top:159px; width:149px; height:22px; ">
  746. <caption>단가, 거래처 일괄변경</caption>
  747. <toggle case="cse_costlist" ev:event="DOMActivate"/>
  748. <script type="javascript" ev:event="onclick">
  749. <![CDATA[
  750. fViewToggle(0);
  751. ]]>
  752. </script>
  753. </button>
  754. <button id="button3" class="btn_sw" group="tab" selected="false" style="left:149px; top:159px; width:160px; height:22px; ">
  755. <caption>Excel 고시단가 Update</caption>
  756. <toggle case="cse_goodlist" ev:event="DOMActivate"/>
  757. <script type="javascript" ev:event="onclick">
  758. <![CDATA[
  759. fViewToggle(1);
  760. ]]>
  761. </script>
  762. </button>
  763. <caption id="caption10" visibility="hidden" style="left:360px; top:150px; width:365px; height:20px; font-weight:bold; color:#ff0000; ">
  764. <![CDATA[**]]>
  765. <script type="javascript" ev:event="onclick">
  766. <![CDATA[
  767. //window.load("\\..\\자재SPEC일괄변경_SAMPLE_2.xls","html");
  768. ]]>
  769. </script>
  770. </caption>
  771. </group>
  772. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  773. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:57px; top:3px; width:80px; height:22px; ">
  774. <caption>화면이동</caption>
  775. </button>
  776. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  777. <caption>출력</caption>
  778. </button>
  779. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  780. <caption>초기화</caption>
  781. <script type="javascript" ev:event="DOMActivate">
  782. <![CDATA[
  783. fInitialize();
  784. ]]>
  785. </script>
  786. </button>
  787. <output id="opt_popinputcd" ref="/root/init/popinputcd" visibility="hidden" style="left:840px; top:3px; width:100px; height:19px; "/>
  788. <output id="opt_poptitle" ref="/root/init/poptitle" visibility="hidden" style="left:737px; top:3px; width:100px; height:19px; "/>
  789. <output id="opt_popcond" ref="/root/init/popcond" visibility="hidden" style="left:634px; top:3px; width:100px; height:19px; "/>
  790. <output id="opt_popformat" ref="/root/init/popformat" visibility="hidden" style="left:531px; top:3px; width:100px; height:19px; "/>
  791. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  792. <select1 id="cmb_prcpunit" ref="/root/init/prcpunit" class="combo_search" visibility="hidden" appearance="minimal" style="left:380px; top:4px; width:65px; height:19px; ">
  793. <choices>
  794. <itemset nodeset="/root/init/goodflag">
  795. <label ref="cdnm"/>
  796. <value ref="cdid"/>
  797. </itemset>
  798. </choices>
  799. <script type="javascript" ev:event="xforms-value-changed">
  800. <![CDATA[
  801. fSetGoodFlagAuth();
  802. ]]>
  803. </script>
  804. </select1>
  805. </group>
  806. </xhtml:body>
  807. </xhtml:html>