SMRFC00600_수리부품코드등록.xrw 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <good>
  11. <goodlist/>
  12. </good>
  13. <goodhist>
  14. <goodconstlist/>
  15. <rscdtchglist/>
  16. </goodhist>
  17. <gooddet>
  18. <gooddetlist>
  19. <goodcd/>
  20. <goodnm/>
  21. <goodspec/>
  22. <goodmodel/>
  23. <prodcmpycd/>
  24. <prodcmpynm/>
  25. <lrgcd/>
  26. <lrgnm/>
  27. <mdlcd/>
  28. <mdlnm/>
  29. <smlcd/>
  30. <smlnm/>
  31. <instcd/>
  32. <goodflag/>
  33. <fromdd/>
  34. <prefromdd/>
  35. <goodengnm/>
  36. <goodhngnm/>
  37. <goodunitcost/>
  38. <maincustlastsuplplce/>
  39. <maincustlastsuplplcenm/>
  40. <suppcustcd/>
  41. <suppcustnm/>
  42. <mainmngtdeptcd/>
  43. <mainmngtdeptnm/>
  44. <winacnt/>
  45. <winacntnm/>
  46. <amtacnt/>
  47. <amtacntnm/>
  48. <deliveunit/>
  49. <prodplce/>
  50. <todd/>
  51. <oldtodd/>
  52. <nonusetretresn/>
  53. <useyn/>
  54. <oldcd/>
  55. <cmt/>
  56. <status/>
  57. <appfixasetcd/>
  58. <goodflaghngnm/>
  59. </gooddetlist>
  60. </gooddet>
  61. <goodcopy>
  62. <goodlist/>
  63. </goodcopy>
  64. </main>
  65. <send>
  66. <save>
  67. <goodlist/>
  68. </save>
  69. <goodlist>
  70. <goodflag/>
  71. <goodnm/>
  72. <lrgcd/>
  73. <instcd/>
  74. <goodcd/>
  75. <mdlcd/>
  76. <goodspec/>
  77. <prodcmpy/>
  78. <smlcd/>
  79. <goodmodel/>
  80. <mdlnm/>
  81. <lrgnm/>
  82. <smlnm/>
  83. <prodcmpynm/>
  84. <oldcd/>
  85. <insfromdd/>
  86. </goodlist>
  87. <goodhist>
  88. <instcd/>
  89. <goodcd/>
  90. <fromdd/>
  91. <useyn/>
  92. </goodhist>
  93. <goodcopy>
  94. <instcd/>
  95. <goodflag/>
  96. <lrgcd/>
  97. <mdlcd/>
  98. <smlcd/>
  99. </goodcopy>
  100. </send>
  101. <init>
  102. <instflag>
  103. <label>기관</label>
  104. <value>Y</value>
  105. <label>전체</label>
  106. <value/>
  107. </instflag>
  108. <goodflag/>
  109. <deliveunit/>
  110. <reqprid/>
  111. <mngtflag/>
  112. <purcflag/>
  113. <instcd>012</instcd>
  114. <proddrugsetflag/>
  115. <instnm>강남성모병원</instnm>
  116. <allsizeyn>
  117. <label>예</label>
  118. <value>Y</value>
  119. <label>아니오</label>
  120. <value>N</value>
  121. </allsizeyn>
  122. <tmpreqflag>
  123. <label>청구가능</label>
  124. <value>Y</value>
  125. <label>청구불가능</label>
  126. <value>N</value>
  127. </tmpreqflag>
  128. <radio2>
  129. <label>신청유</label>
  130. <value>Y</value>
  131. <label>신청무</label>
  132. <value>N</value>
  133. </radio2>
  134. <expnyn>
  135. <label>고가</label>
  136. <value>Y</value>
  137. <label>고가아님</label>
  138. <value>N</value>
  139. </expnyn>
  140. </init>
  141. <hidden>
  142. <temp>
  143. <chnginfo>
  144. <chngflag/>
  145. </chnginfo>
  146. </temp>
  147. </hidden>
  148. <temp>
  149. </temp>
  150. </root>
  151. </instance>
  152. <script type="javascript" ev:event="xforms-ready">
  153. <![CDATA[
  154. //화면 Control을 초기화한다
  155. fCheckAuth();
  156. fInitialize();
  157. ]]>
  158. </script>
  159. <submission id="TRRFC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcopy" resultref="/root/main/goodcopy"/>
  160. <submission id="TRRFC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/good"/>
  161. <submission id="TRRFC00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodhist" resultref="/root/main/goodhist"/>
  162. <submission id="TXRFC00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/goodlist" resultref="/root/hidden/temp"/>
  163. </model>
  164. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  165. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  166. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  167. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  170. <script type="javascript" src="../../../mis/purcbaseweb/js/SMRFC00600.js"/>
  171. </xhtml:head>
  172. <xhtml:body>
  173. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1200px; height:742px; ">
  174. <caption id="caption9" class="tit_2" style="left:5px; top:105px; width:95px; height:14px; ">수리부품목록</caption>
  175. <line id="line7" class="line_1" style="x1:0px; y1:120px; x2:535px; y2:120px; "/>
  176. <button id="btn_excel" class="btn5_letter3" navindex="19" style="left:480px; top:99px; width:53px; height:19px; ">
  177. <caption>Excel</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. var fileName = window.fileDialog("save", ",", false, "수리부품목록", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  181. if (fileName != "")
  182. {
  183. grd_goodlist.saveExcel(fileName, "수리부품목록List",true,true, "");
  184. }
  185. ]]>
  186. </script>
  187. </button>
  188. <caption id="caption1" class="tit_2" style="left:545px; top:105px; width:95px; height:14px; ">상세정보</caption>
  189. <button id="btn_insert" class="btn2_letter2" navindex="14" style="left:1152px; top:99px; width:42px; height:19px; ">
  190. <caption>추가</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. // 자산구분은 일단 고정자산으로
  194. // fDisabledControl(false);
  195. model.setValue(ipt_goodcd.attribute("ref"), "");
  196. model.setValue(ipt_nonusetretdd.attribute("ref"), "");
  197. model.setValue(ipt_nonusetretresn.attribute("ref"), "");
  198. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  199. model.resetInstanceNode("/root/main/goodhist/goodconstlist");
  200. model.resetInstanceNode("/root/main/goodhist/rscdtchglist");
  201. var vInstance = document.models(0).instances(0);
  202. var cnt = vInstance.selectNodes("/root/main/gooddet/gooddetlist").length;
  203. if (cnt == 0){
  204. var spath = "/root/main/gooddet/gooddetlist";
  205. model.makeNode(spath+"/instcd" ); // 01. 기관코드
  206. model.makeNode(spath+"/goodflag" ); // 02. 물품구분
  207. model.makeNode(spath+"/prefromdd" ); // 03. (이전)적용일자
  208. model.makeNode(spath+"/fromdd" ); // 04. 적용일자
  209. model.makeNode(spath+"/lrgcd" ); // 05. 대분류
  210. model.makeNode(spath+"/mdlcd" ); // 06. 중분류
  211. model.makeNode(spath+"/smlcd" ); // 07. 소분류
  212. model.makeNode(spath+"/goodcd" ); // 08. 물품코드
  213. model.makeNode(spath+"/goodnm" ); // 09. 물품명
  214. model.makeNode(spath+"/goodhngnm" ); // 10. 물품명(한글)
  215. model.makeNode(spath+"/goodengnm" ); // 11. 물품명(영문)
  216. model.makeNode(spath+"/goodspec" ); // 12. 규격
  217. model.makeNode(spath+"/goodmodel" ); // 13. 모델
  218. model.makeNode(spath+"/maincustlastsuplplce"); // 14. 주거래처
  219. model.makeNode(spath+"/suppcustcd" ); // 15. 보조거래처
  220. model.makeNode(spath+"/deliveunit" ); // 16. 수불단위
  221. model.makeNode(spath+"/prodplce" ); // 17. 제조국
  222. model.makeNode(spath+"/winacnt" ); // 18. 입고계정
  223. model.makeNode(spath+"/amtacnt" ); // 19. 비용계정
  224. model.makeNode(spath+"/goodunitcost" ); // 20. 제품단가
  225. model.makeNode(spath+"/mainmngtdeptcd" ); // 21. 관리부서
  226. model.makeNode(spath+"/prodcmpycd" ); // 22. 제조회사
  227. model.makeNode(spath+"/todd" ); // 23. 적용일자(TO)
  228. model.makeNode(spath+"/nonusetretresn" ); // 24. 불용사유
  229. model.makeNode(spath+"/cmt" ); // 25. 비고
  230. model.makeNode(spath+"/oldtodd" ); // 26. 이전 적용일(todd)
  231. model.makeNode(spath+"/appfixasetcd" ); // 27. 적용장비코드
  232. model.makeNode(spath+"/goodflaghngnm" ); // 28. 적용장비명
  233. }
  234. model.setValue(ipt_status.attribute("ref") , "i");
  235. model.setValue(ipt_instcd.attribute("ref") , model.getValue(cmb_instcd.attribute("ref")));
  236. model.setValue(ipt_goodflag.attribute("ref") , model.getValue(cmb_goodflag_search.attribute("ref")));
  237. model.setValue(ipt_maincustlastsuplplce.attribute("ref") , "9999");
  238. model.setValue(ipt_suppcustcd.attribute("ref") , "9999");
  239. fDisabledControl("i");
  240. model.refresh();
  241. ]]>
  242. </script>
  243. </button>
  244. <button id="btn_choidel" class="btn2_letter2" navindex="13" visibility="hidden" style="left:1105px; top:99px; width:42px; height:19px; ">
  245. <caption>삭제</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. model.setValue(ipt_status.attribute("ref") , "d");
  249. model.setValue(ipt_instcd.attribute("ref") , model.getValue(cmb_instcd.attribute("ref")));
  250. model.setValue(ipt_goodflag.attribute("ref") , model.getValue(cmb_goodflag_search.attribute("ref")));
  251. fDisabledControl("d");
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <line id="line2" class="line_1" style="x1:542px; y1:120px; x2:1197px; y2:120px; "/>
  257. <group id="grp_title" style="left:0px; top:9px; width:1195px; height:87px; vertical-align:top; ">
  258. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:87px; "/>
  259. <caption id="caption89" class="search_name" style="left:15; top:35; width:86px; height:17px; ">물품코드 :</caption>
  260. <caption id="caption91" class="search_name" style="left:645px; top:9px; width:83px; height:17px; ">대 분 류 :</caption>
  261. <caption id="caption92" class="search_name" style="left:333px; top:10px; width:83px; height:17px; ">물 품 명 :</caption>
  262. <caption id="caption93" class="search_name" style="left:333px; top:35px; width:85px; height:17px; ">규 격 :</caption>
  263. <caption id="caption94" class="search_name" style="left:645px; top:35px; width:83px; height:17px; ">중 분 류 :</caption>
  264. <caption id="caption95" class="search_name" style="left:645px; top:61px; width:83px; height:17px; ">제 조 원 :</caption>
  265. <caption id="caption97" class="search_name" visibility="hidden" style="left:1125px; top:65px; width:56px; height:17px; ">모델:</caption>
  266. <line id="line36" class="line_4" style="x1:1109px; y1:11px; x2:1109px; y2:77px; "/>
  267. <button id="btn_search" class="btn1_letter2" navindex="12" style="left:1124px; top:32px; width:56px; height:22px; text-align:left; ">
  268. <caption>조회</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  272. model.resetInstanceNode("/root/main/goodhist/goodconstlist");
  273. model.resetInstanceNode("/root/main/goodhist/rscdtchglist");
  274. model.refresh();
  275. submit("TRRFC00602")
  276. if (grd_goodlist.rows - grd_goodlist.fixedRows == 0){
  277. fDisabledControl("x");
  278. var vInstance = document.models(0).instances(0);
  279. var cnt = vInstance.selectNodes("/root/main/gooddet/gooddetlist").length;
  280. if (cnt == 0){
  281. var spath = "/root/main/gooddet/gooddetlist";
  282. model.makeNode(spath+"/deliveunit" );
  283. model.makeNode(spath+"/prodplce" );
  284. model.makeNode(spath+"/amtacnt" );
  285. model.makeNode(spath+"/amtacntnm" );
  286. model.makeNode(spath+"/fromdd" );
  287. model.makeNode(spath+"/goodcd" );
  288. model.makeNode(spath+"/goodengnm" );
  289. model.makeNode(spath+"/goodhngnm" );
  290. model.makeNode(spath+"/goodmodel" );
  291. model.makeNode(spath+"/goodnm" );
  292. model.makeNode(spath+"/goodspec" );
  293. model.makeNode(spath+"/goodunitcost" );
  294. model.makeNode(spath+"/lrgcd" );
  295. model.makeNode(spath+"/lrgnm" );
  296. model.makeNode(spath+"/maincustlastsuplplce" );
  297. model.makeNode(spath+"/maincustlastsuplplcenm" );
  298. model.makeNode(spath+"/mainmngtdeptcd" );
  299. model.makeNode(spath+"/mdlcd" );
  300. model.makeNode(spath+"/mdlnm" );
  301. model.makeNode(spath+"/mngtdeptnm" );
  302. model.makeNode(spath+"/nonusetretdd" );
  303. model.makeNode(spath+"/nonusetretresn" );
  304. model.makeNode(spath+"/oldcd" );
  305. model.makeNode(spath+"/prodcmpycd" );
  306. model.makeNode(spath+"/prodcmpynm" );
  307. model.makeNode(spath+"/smlcd" );
  308. model.makeNode(spath+"/smlnm" );
  309. model.makeNode(spath+"/suppcustcd" );
  310. model.makeNode(spath+"/suppcustnm" );
  311. model.makeNode(spath+"/winacnt" );
  312. model.makeNode(spath+"/winacntnm" );
  313. model.makeNode(spath+"/cmt" );
  314. model.makeNode(spath+"/appfixasetcd" );
  315. model.makeNode(spath+"/goodflaghngnm" );
  316. }
  317. }
  318. model.refresh();
  319. ]]>
  320. </script>
  321. </button>
  322. <select1 id="cmb_goodflag_search" ref="/root/send/goodlist/goodflag" class="combo_s_essential" visibility="hidden" appearance="minimal" editmode="search" style="left:1115px; top:5px; width:45px; height:19px; ">
  323. <choices>
  324. <itemset nodeset="/root/init/goodflag">
  325. <label ref="cdnm"/>
  326. <value ref="cdid"/>
  327. </itemset>
  328. </choices>
  329. <script type="javascript" ev:event="xforms-value-changed">
  330. <![CDATA[
  331. rszfComboUnitList (cmb_prcpunit,model.getValue(opt_instcd.attribute("ref")),model.getValue(cmb_goodflag_search.attribute("ref")));
  332. misfComboCopyItemSet(cmb_prcpunit, "", cmb_purcunit, ""); //포장단위
  333. //misfComboCopyItemSet(cmb_prcpunit, "", cmb_deliveunit, ""); //수불단위
  334. ]]>
  335. </script>
  336. </select1>
  337. <input id="ipt_goodnm_search" ref="/root/send/goodlist/goodnm" class="input_search" navindex="4" style="left:425px; top:9px; width:180px; height:19px; "/>
  338. <input id="ipt_goodcd_search" ref="/root/send/goodlist/goodcd" class="input_search" navindex="2" imemode="disabled" maxlength="12" _chartype="upper" style="left:110px; top:34px; width:170px; height:19px; "/>
  339. <input id="ipt_goodspec_search" ref="/root/send/goodlist/goodspec" class="input_search" navindex="5" style="left:425px; top:35px; width:180px; height:19px; "/>
  340. <input id="ipt_prodcmpy_search" ref="/root/send/goodlist/prodcmpy" class="input_search" navindex="10" style="left:735px; top:60px; width:70px; height:19px; ">
  341. <script type="javascript" ev:event="xforms-value-changed">
  342. <![CDATA[
  343. if(ipt_prodcmpy_search.value != "")
  344. {
  345. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd",
  346. "prodcmpycd," + ipt_prodcmpy_search.value,"","prodcmpy,prodcmpynm" ,
  347. ipt_prodcmpy_search,"SPRSD00160","","");
  348. }else{
  349. ipt_prodcmpy_search.value = "";
  350. ipt_prodcmpynm_search.value = "";
  351. }
  352. model.refresh();
  353. ]]>
  354. </script>
  355. </input>
  356. <button id="button6" class="icon_search" navindex="-1" style="left:807px; top:60px; width:16px; height:16px; ">
  357. <caption/>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. rszfOpenPopUpListByWndName(ipt_prodcmpy_search,"","prodcmpy,prodcmpynm","SPRSD00160","","");
  361. model.refresh();
  362. ]]>
  363. </script>
  364. </button>
  365. <input id="ipt_prodcmpynm_search" ref="/root/send/goodlist/prodcmpynm" class="input_search" navindex="11" appearance="input" style="left:827px; top:60px; width:153px; height:19px; ">
  366. <script type="javascript" ev:event="xforms-value-changed">
  367. <![CDATA[
  368. if(ipt_prodcmpynm_search.value != "")
  369. {
  370. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm"
  371. ,"prodcmpynm," + ipt_prodcmpynm_search.value ,"","prodcmpy,prodcmpynm"
  372. ,ipt_prodcmpynm_search,"SPRSD00160","","");
  373. }else{
  374. ipt_prodcmpynm_search.value = "";
  375. ipt_prodcmpycd_search.value = "";
  376. }
  377. model.refresh();
  378. ]]>
  379. </script>
  380. </input>
  381. <input id="ipt_goodmodel_search" ref="/root/send/goodlist/goodmodel" class="input_search" navindex="46" visibility="hidden" style="left:1181px; top:65px; width:10px; height:19px; "/>
  382. <caption id="caption98" class="search_name" style="left:15px; top:9; width:90px; height:17px; ">기 관 :</caption>
  383. <select1 id="cmb_instcd" ref="/root/send/goodlist/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:110px; top:9px; width:170px; height:19px; ">
  384. <choices>
  385. <itemset nodeset="/root/init/goodflag">
  386. <label ref="cdnm"/>
  387. <value ref="cdid"/>
  388. </itemset>
  389. </choices>
  390. </select1>
  391. <select1 id="cmb_lrgcd_search" ref="/root/send/goodlist/lrgcd" navindex="6" appearance="minimal" style="left:735px; top:10px; width:190px; height:19px; ">
  392. <choices>
  393. <itemset>
  394. <label/>
  395. <value/>
  396. </itemset>
  397. </choices>
  398. <script type="javascript" ev:event="xforms-value-changed">
  399. <![CDATA[
  400. rszfLMSComboList("BC", cmb_lrgcd_search.value, "", "cmb_mdlcd_search", "", "M", "Y", "Y");
  401. cmb_mdlcd_search.value="";
  402. cmb_mdlcd_search.refresh();
  403. cmb_mdlcd_search.dispatch("xforms-value-changed");
  404. //model.refresh();
  405. ]]>
  406. </script>
  407. </select1>
  408. <select1 id="cmb_mdlcd_search" ref="/root/send/goodlist/mdlcd" navindex="7" appearance="minimal" style="left:735px; top:35px; width:190px; height:19px; ">
  409. <choices>
  410. <itemset>
  411. <label/>
  412. <value/>
  413. </itemset>
  414. </choices>
  415. <script type="javascript" ev:event="xforms-value-changed">
  416. <![CDATA[
  417. //rszfLMSComboList(model.getValue(cmb_goodflag_search.attribute("ref")), cmb_lrgcd_search.value, cmb_mdlcd_search.value, "cmb_smlcd_search", "", "S", "Y", "Y");
  418. //cmb_smlcd_search.value="";
  419. //model.refresh();
  420. //cmb_smlcd_search.refresh();
  421. ]]>
  422. </script>
  423. </select1>
  424. </group>
  425. <input id="ipt_instcd" ref="/root/main/gooddet/gooddetlist/instcd" visibility="hidden" style="left:670px; top:100px; width:40px; height:19px; "/>
  426. <input id="ipt_status" ref="/root/main/gooddet/gooddetlist/status" visibility="hidden" style="left:625px; top:100px; width:40px; height:19px; "/>
  427. <datagrid id="grd_goodlist" nodeset="/root/main/good/goodlist" visibility="visible" caption="물품코드^물품명(기준)^물품명^물품명(한글)^규격^모델^적용장비^제조사^제조회사명^대분류^대분류명^중분류^중분류명^기관코드^물품구분^(이전) 적용일^적용일자^단가^주거래처^주거래처명^보조거래처^보조거래처명^관리부서^관리부서명^입고계정^입고계정명^비용계정^비용계정명^수불단위^제조국^구적용일자(to)^코드불용일^사용유무^불용처리사유^비고" colsep="^" colwidth="109, 150, 150, 150, 80, 123, 100, 13, 91, 22, 80, 21, 80, 17, 20, 28, 23, 17, 16, 20, 22, 24, 17, 21, 23, 26, 20, 20, 20, 19, 23, 23, 17, 17, 18, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="47" style="left:0px; top:125px; width:535px; height:600px; font-weight:normal; text-align:center; ">
  428. <col ref="goodcd" style="text-align:center; "/>
  429. <col ref="goodnm" visibility="hidden" style="text-align:left; padding-left:10; "/>
  430. <col ref="goodengnm" visibility="visible" style="text-align:left; padding-left:10; "/>
  431. <col ref="goodhngnm" visibility="hidden" style="text-align:left; padding-left:10; "/>
  432. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  433. <col ref="goodmodel" visibility="hidden" style="text-align:left; padding-left:10; "/>
  434. <col ref="goodflaghngnm" style="text-align:left; padding-left:10; "/>
  435. <col ref="prodcmpycd" visibility="hidden" style="text-align:left; "/>
  436. <col ref="prodcmpynm" visibility="hidden" style="text-align:left; padding-left:10; "/>
  437. <col ref="lrgcd" visibility="hidden" style="text-align:center; "/>
  438. <col ref="lrgnm" style="text-align:left; padding-left:10; "/>
  439. <col ref="mdlcd" visibility="hidden" style="text-align:left; "/>
  440. <col ref="mdlnm" style="text-align:left; padding-left:10; "/>
  441. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  442. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  443. <col ref="prefromdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  444. <col ref="fromdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  445. <col ref="goodunitcost" visibility="hidden" style="text-align:left; "/>
  446. <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
  447. <col ref="maincustlastsuplplcenm" visibility="hidden" style="text-align:left; "/>
  448. <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
  449. <col ref="suppcustnm" visibility="hidden" style="text-align:left; "/>
  450. <col ref="mainmngtdeptcd" visibility="hidden" style="text-align:left; "/>
  451. <col ref="mainmngtdeptnm" visibility="hidden" style="text-align:left; "/>
  452. <col ref="winacnt" visibility="hidden" style="text-align:left; "/>
  453. <col ref="winacntnm" visibility="hidden" style="text-align:left; "/>
  454. <col ref="amtacnt" visibility="hidden" style="text-align:left; "/>
  455. <col ref="amtacntnm" visibility="hidden" style="text-align:left; "/>
  456. <col ref="deliveunit" visibility="hidden" style="text-align:left; "/>
  457. <col ref="prodplce" visibility="hidden" style="text-align:left; "/>
  458. <col ref="oldtodd" visibility="hidden" style="text-align:left; "/>
  459. <col ref="todd" visibility="hidden" style="text-align:left; "/>
  460. <col ref="useyn" visibility="hidden" style="text-align:left; "/>
  461. <col ref="nonusetretresn" visibility="hidden" style="text-align:left; "/>
  462. <col ref="cmt" visibility="hidden" style="text-align:left; "/>
  463. <col ref="appfixasetcd" visibility="hidden" style="text-align:left; "/>
  464. <script type="javascript" ev:event="ondblclick">
  465. <![CDATA[
  466. var path = "/root/send/goodhist/";
  467. var instcd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("instcd"));
  468. var goodcd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("goodcd"));
  469. var fromdd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("fromdd"));
  470. var useyn = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("useyn"));
  471. var todd = grd_goodlist.valueMatrix(grd_goodlist.row, grd_goodlist.colRef("todd"));
  472. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
  473. if (todd != '99991231'){
  474. model.makeValue(ipt_status.attribute("ref"), "x");
  475. fDisabledControl("x");
  476. }else{
  477. model.makeValue(ipt_status.attribute("ref"), "u");
  478. fDisabledControl("u");
  479. }
  480. model.setValue(path+"instcd" , instcd);
  481. model.setValue(path+"goodcd" , goodcd);
  482. model.setValue(path+"fromdd" , fromdd);
  483. model.setValue(path+"useyn" , useyn );
  484. if(submit("TRRFC00603")){
  485. ipt_lrgcd.dispatch("xforms-value-changed");
  486. model.refresh();
  487. }
  488. ]]>
  489. </script>
  490. </datagrid>
  491. <input id="ipt_goodflag" ref="/root/main/gooddet/gooddetlist/goodflag" visibility="hidden" style="left:715px; top:100px; width:40px; height:19px; "/>
  492. <input id="ipt_prefromdd" ref="/root/main/gooddet/gooddetlist/prefromdd" visibility="hidden" style="left:760px; top:100px; width:115px; height:19px; "/>
  493. <input id="ipt_oldtodd" ref="/root/main/gooddet/gooddetlist/oldtodd" class="input_default" visibility="hidden" inputtype="date" style="left:880px; top:100px; width:105px; height:19px; ">
  494. <script type="javascript" ev:event="xforms-value-changed">
  495. <![CDATA[
  496. var CompTodd = model.getValue("/root/init/oldgoodlist/todd");
  497. var CompFromdd = model.getValue("/root/init/oldgoodlist/fromdd");
  498. var FromDD = model.getValue("/root/main/list/gooddet/goodconstlist["+1+"]/fromdd");
  499. if(CompTodd!="99991231"){
  500. if(FromDD!=CompFromdd){
  501. messageBox("이미 불용된 코드","I009");
  502. model.setValue("/root/main/gooddet/gooddetlist/todd",CompTodd);
  503. ipt_nonusetretdd.refresh();
  504. return;
  505. }
  506. }
  507. ]]>
  508. </script>
  509. </input>
  510. </group>
  511. <group id="grp_detail" style="left:541px; top:163px; width:659px; height:615px; ">
  512. <caption id="cap_oldcd" class="cell_1" visibility="hidden" style="left:329px; top:217px; width:108px; height:23px; vertical-align:middle; ">구코드</caption>
  513. <input id="ipt_oldcd" ref="/root/main/gooddet/gooddetlist/oldcd" class="input_default" disabled="true" visibility="hidden" maxlength="12" style="left:440px; top:218px; width:214px; height:19px; "/>
  514. <input id="ipt_amtacnt" ref="/root/main/gooddet/gooddetlist/amtacnt" class="input_default" disabled="false" visibility="hidden" editable="false" style="left:110px; top:99px; width:60px; height:19px; background-color:#ffff99; ">
  515. <script type="javascript" ev:event="xforms-value-changed">
  516. <![CDATA[
  517. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  518. "1,"+ ipt_useyn.value + ",2," + ipt_amtacnt.value,"","amtacnt,amtacntnm",
  519. ipt_amtacnt,"PPRAC00100","","");
  520. model.refresh();
  521. model.setFocus("ipt_fromdd");
  522. ]]>
  523. </script>
  524. </input>
  525. <input id="ipt_winacnt" ref="/root/main/gooddet/gooddetlist/winacnt" class="input_essential" disabled="false" visibility="hidden" editable="false" style="left:110px; top:75px; width:60px; height:19px; background-color:#ffff99; ">
  526. <script type="javascript" ev:event="xforms-value-changed">
  527. <![CDATA[
  528. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  529. "1,"+ ipt_useyn.value + ",2," + ipt_winacnt.value,"","winacnt,winacntnm",
  530. ipt_winacnt,"PPRAC00100","","");
  531. model.refresh();
  532. model.setFocus("ipt_amtacnt");
  533. ]]>
  534. </script>
  535. </input>
  536. <button id="btn_amtacnt" class="icon_search" disabled="false" visibility="hidden" style="left:175px; top:101px; width:16px; height:16px; ">
  537. <caption/>
  538. <script type="javascript" ev:event="DOMActivate">
  539. <![CDATA[
  540. rszfOpenPopUpListByWndName(ipt_winacnt,"","amtacnt,amtacntnm","PPRAC00100","","");
  541. model.refresh();
  542. ]]>
  543. </script>
  544. </button>
  545. <input id="ipt_amtacntnm" ref="/root/main/gooddet/gooddetlist/amtacntnm" class="input_fix" disabled="false" visibility="hidden" editable="false" appearance="input" style="left:194px; top:99px; width:132px; height:19px; background-color:#ffff99; ">
  546. <script type="javascript" ev:event="xforms-value-changed">
  547. <![CDATA[
  548. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  549. "1,"+ ipt_useyn.value + ",1," + ipt_amtacntnm.value,"","amtacnt,amtacntnm",
  550. ipt_amtacntnm,"PPRAC00100","","");
  551. model.refresh();
  552. ]]>
  553. </script>
  554. </input>
  555. <button id="btn_winacnt" class="icon_search" disabled="false" visibility="hidden" style="left:175px; top:77px; width:16px; height:16px; ">
  556. <caption/>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. rszfOpenPopUpListByWndName(ipt_winacnt,"","winacnt,winacntnm","PPRAC00100","","");
  560. model.refresh();
  561. ]]>
  562. </script>
  563. </button>
  564. <caption id="cap_amtacnt" class="cell_1" visibility="hidden" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">비용계정</caption>
  565. <input id="ipt_winacntnm" ref="/root/main/gooddet/gooddetlist/winacntnm" class="input_fix" disabled="false" visibility="hidden" editable="false" appearance="input" style="left:194px; top:75px; width:132px; height:19px; background-color:#ffff99; ">
  566. <script type="javascript" ev:event="xforms-value-changed">
  567. <![CDATA[
  568. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  569. "1,"+ ipt_useyn.value + ",1," + ipt_winacntnm.value,"","winacnt,winacntnm" ,
  570. ipt_winacntnm,"PPRAC00100","","");
  571. model.refresh();
  572. ]]>
  573. </script>
  574. </input>
  575. <caption id="cap_winacnt" class="cell_1" visibility="hidden" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">입고계정</caption>
  576. <caption id="caption66" class="cell_1" visibility="hidden" style="left:329px; top:121px; width:108px; height:23px; vertical-align:middle; ">소분류</caption>
  577. <textarea id="tar_cmt" ref="/root/main/gooddet/gooddetlist/cmt" disabled="false" navindex="38" style="left:110px; top:194px; width:543px; height:64px; "/>
  578. <line id="line8" class="line_2" style="x1:110px; y1:191px; x2:653px; y2:191px; "/>
  579. <line id="line33" class="line_2" style="x1:0px; y1:119px; x2:653px; y2:119px; "/>
  580. <line id="line11" class="line_2" visibility="hidden" style="x1:0px; y1:71px; x2:653px; y2:71px; "/>
  581. <line id="line32" class="line_2" style="x1:0px; y1:95px; x2:653px; y2:95px; "/>
  582. <line id="line31" class="line_2" style="x1:0px; y1:47px; x2:653px; y2:47px; "/>
  583. <line id="line30" class="line_2" style="x1:0px; y1:23px; x2:653px; y2:23px; "/>
  584. <input id="ipt_goodhngnm" ref="/root/main/gooddet/gooddetlist/goodhngnm" disabled="false" navindex="19" imemode="hangul" maxlength="450" style="left:439px; top:27px; width:216px; height:19px; "/>
  585. <caption id="cap_prodplce" class="cell_1" style="left:329px; top:49px; width:108px; height:23px; vertical-align:middle; ">제조국</caption>
  586. <button id="btn_prodcmpycd" class="icon_search" disabled="false" navindex="-1" visibility="hidden" style="left:588px; top:264px; width:16px; height:16px; ">
  587. <caption/>
  588. <script type="javascript" ev:event="DOMActivate">
  589. <![CDATA[
  590. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  591. model.refresh();
  592. ]]>
  593. </script>
  594. </button>
  595. <caption id="cap_goodcd" class="cell_1" style="left:0; top:1px; width:108px; height:23px; vertical-align:middle; ">물품코드</caption>
  596. <caption id="cap_goodhngnm" class="cell_1" style="left:329px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(한글)</caption>
  597. <caption id="cap_prodcmpycd" class="cell_1" visibility="hidden" style="left:505px; top:260px; width:56px; height:23px; vertical-align:middle; ">제조회사</caption>
  598. <caption id="cap_goodengnm" class="cell_1" style="left:0px; top:25px; width:108px; height:23px; vertical-align:middle; ">물품명(영문)</caption>
  599. <input id="ipt_goodspec" ref="/root/main/gooddet/gooddetlist/goodspec" class="input_default" disabled="false" navindex="17" style="left:439px; top:2px; width:216px; height:19px; "/>
  600. <caption id="cap_goodspec" class="cell_1" style="left:329px; top:0px; width:108px; height:23px; vertical-align:middle; ">규격</caption>
  601. <caption id="cap_lrgcd" class="cell_1" style="left:329px; top:73px; width:108px; height:23px; vertical-align:middle; ">대분류</caption>
  602. <caption id="cap_mdlcd" class="cell_1" style="left:329px; top:97px; width:108px; height:23px; vertical-align:middle; ">중분류</caption>
  603. <input id="ipt_prodcmpycd" ref="/root/main/gooddet/gooddetlist/prodcmpycd" class="input_default" disabled="false" navindex="48" visibility="hidden" editable="false" style="left:565px; top:262px; width:20px; height:19px; ">
  604. <script type="javascript" ev:event="xforms-value-changed">
  605. <![CDATA[
  606. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  607. "prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref"))+"," ,"","prodcmpycd,prodcmpynm" ,
  608. ipt_prodcmpycd,"SPRSD00160","","");
  609. model.refresh();
  610. ]]>
  611. </script>
  612. </input>
  613. <input id="ipt_goodengnm" ref="/root/main/gooddet/gooddetlist/goodengnm" disabled="false" navindex="18" imemode="alpha" maxlength="450" style="left:110px; top:26px; width:216px; height:19px; "/>
  614. <select1 id="cmb_prodplce" ref="/root/main/gooddet/gooddetlist/prodplce" class="combo" disabled="false" navindex="22" appearance="minimal" style="left:439px; top:51px; width:216px; height:19px; ">
  615. <choices>
  616. <itemset nodeset="/root/init/prodplce">
  617. <label ref="cdnm"/>
  618. <value ref="cdid"/>
  619. </itemset>
  620. </choices>
  621. <script type="javascript" ev:event="xforms-value-changed">
  622. <![CDATA[
  623. model.setFocus("ipt_prodcmpycd");
  624. ]]>
  625. </script>
  626. </select1>
  627. <input id="ipt_prodcmpynm" ref="/root/main/gooddet/gooddetlist/prodcmpynm" class="input_fix" disabled="false" navindex="49" visibility="hidden" editable="false" appearance="input" style="left:607px; top:262px; width:20px; height:19px; ">
  628. <script type="javascript" ev:event="xforms-value-changed">
  629. <![CDATA[
  630. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm",
  631. "prodcmpynm," + model.getValue(ipt_prodcmpynm.attribute("ref")),"","prodcmpycd,prodcmpynm" ,
  632. ipt_prodcmpynm,"SPRSD00160","","");
  633. model.refresh();
  634. ]]>
  635. </script>
  636. </input>
  637. <button id="btn_mngtdeptcd" class="icon_search" disabled="false" navindex="-1" visibility="visible" style="left:503px; top:170px; width:16px; height:16px; ">
  638. <caption/>
  639. <script type="javascript" ev:event="DOMActivate">
  640. <![CDATA[
  641. var recv_list = "mainmngtdeptcd,mainmngtdeptnm";
  642. misfOpenPopUpList("02", ipt_mainmngtdeptcd,"", recv_list) ;
  643. model.refresh();
  644. ]]>
  645. </script>
  646. </button>
  647. <caption id="cap_fromdd" class="cell_1" style="left:0px; top:73px; width:108px; height:23px; vertical-align:middle; ">적용일자</caption>
  648. <caption id="cap_mainmngtdeptcd" class="cell_1" visibility="visible" style="left:329px; top:169px; width:108px; height:23px; vertical-align:middle; ">관리부서</caption>
  649. <input id="ipt_mainmngtdeptcd" ref="/root/main/gooddet/gooddetlist/mainmngtdeptcd" class="input_essential" disabled="false" navindex="36" visibility="visible" editable="false" style="left:440px; top:170px; width:60px; height:19px; ">
  650. <script type="javascript" ev:event="xforms-value-changed">
  651. <![CDATA[
  652. misfValidationCheck("02", "", "mainmngtdeptcd,mainmngtdeptnm" );
  653. model.refresh();
  654. model.setFocus("ipt_reqflag");
  655. ]]>
  656. </script>
  657. </input>
  658. <input id="ipt_mngtdeptnm" ref="/root/main/gooddet/gooddetlist/mainmngtdeptnm" class="input_fix" disabled="false" navindex="37" visibility="visible" editable="false" appearance="input" style="left:522px; top:170px; width:132px; height:19px; ">
  659. <script type="javascript" ev:event="xforms-value-changed">
  660. <![CDATA[
  661. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  662. "deptnm," + ipt_mngtdeptnm.value, "", "mainmngtdeptcd,mainmngtdeptnm",
  663. ipt_mngtdeptnm, "SPRPZ00200", "","");
  664. model.refresh();
  665. ]]>
  666. </script>
  667. </input>
  668. <input id="ipt_fromdd" ref="/root/main/gooddet/gooddetlist/fromdd" class="combo_essential" disabled="false" navindex="23" inputtype="date" style="left:110px; top:75px; width:216px; height:19px; background-color:#ffff99; ">
  669. <script type="javascript" ev:event="xforms-value-changed">
  670. <![CDATA[
  671. var curdate = getCurrentDate();
  672. var cvtdate = model.getValue(ipt_fromdd.attribute("ref"));
  673. var precvtdate = model.getValue(ipt_prefromdd.attribute("ref"));
  674. if ( cvtdate < curdate ) {
  675. messageBox("변경일자를 현재일자보다 과거시점으로 변경", "E001");
  676. model.setValue(ipt_fromdd.attribute("ref") , model.getValue(ipt_prefromdd.attribute("ref")));
  677. model.refresh();
  678. return;
  679. }
  680. if ( cvtdate < precvtdate ) {
  681. messageBox("변경일자를 이전의 변경일자보다 과거시점으로 변경", "E001");
  682. model.setValue(ipt_fromdd.attribute("ref") , model.getValue(ipt_prefromdd.attribute("ref")));
  683. model.refresh();
  684. return;
  685. }
  686. ]]>
  687. </script>
  688. </input>
  689. <caption id="cap_cmt" class="cell_1" style="left:0px; top:194px; width:108px; height:64px; vertical-align:middle; ">비고</caption>
  690. <input id="ipt_maincustlastsuplplcenm" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplcenm" class="input_fix" disabled="false" navindex="30" editable="false" appearance="input" style="left:194px; top:123px; width:132px; height:19px; ">
  691. <script type="javascript" ev:event="xforms-value-changed">
  692. <![CDATA[
  693. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  694. model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,
  695. ipt_maincustlastsuplplcenm,"SPRSD00220","instcd","opt_instcd");
  696. model.refresh();
  697. ]]>
  698. </script>
  699. </input>
  700. <input id="ipt_suppcustnm" ref="/root/main/gooddet/gooddetlist/suppcustnm" class="input_fix" disabled="false" navindex="34" editable="false" appearance="input" style="left:524px; top:146px; width:130px; height:19px; ">
  701. <script type="javascript" ev:event="xforms-value-changed">
  702. <![CDATA[
  703. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  704. model.getValue(opt_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref")), "","suppcustcd,suppcustnm" ,
  705. ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
  706. model.refresh();
  707. ]]>
  708. </script>
  709. </input>
  710. <input id="ipt_maincustlastsuplplce" ref="/root/main/gooddet/gooddetlist/maincustlastsuplplce" class="input_default" disabled="false" navindex="29" editable="false" style="left:110px; top:123px; width:60px; height:19px; ">
  711. <script type="javascript" ev:event="xforms-value-changed">
  712. <![CDATA[
  713. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",entrregno," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","opt_instcd");
  714. model.refresh();
  715. model.setFocus("ipt_suppcustcd");
  716. ]]>
  717. </script>
  718. </input>
  719. <button id="btn_suppcustcd" class="icon_search" disabled="false" navindex="-1" style="left:503px; top:146px; width:16px; height:16px; ">
  720. <caption/>
  721. <script type="javascript" ev:event="DOMActivate">
  722. <![CDATA[
  723. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suppcustcd,suppcustnm","SPRSD00220","instcd",cmb_instcd.value);
  724. model.refresh();
  725. ]]>
  726. </script>
  727. </button>
  728. <caption id="cap_goodunitcost" class="cell_1" style="left:0px; top:97px; width:108px; height:23px; vertical-align:middle; ">제품단가</caption>
  729. <input id="ipt_goodunitcost" ref="/root/main/gooddet/gooddetlist/goodunitcost" class="input_default" disabled="true" navindex="26" maxlength="14.2" format="#,###.00" style="left:110px; top:99px; width:216px; height:19px; text-align:right; background-color:#ffff99; "/>
  730. <button id="btn_maincustlastsuplplce" class="icon_search" disabled="false" navindex="-1" style="left:175px; top:123px; width:16px; height:16px; ">
  731. <caption/>
  732. <script type="javascript" ev:event="DOMActivate">
  733. <![CDATA[
  734. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag_search,ipt_prodcmpycd,opt_prodcmpynm");
  735. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd",cmb_instcd.value);
  736. model.refresh();
  737. ]]>
  738. </script>
  739. </button>
  740. <caption id="cap_suppcustcd" class="cell_1" style="left:329px; top:145px; width:108px; height:23px; vertical-align:middle; ">보조거래처</caption>
  741. <caption id="cap_maincustlastsuplplce" class="cell_1" style="left:0px; top:121px; width:108px; height:23px; vertical-align:middle; ">주거래처</caption>
  742. <input id="ipt_suppcustcd" ref="/root/main/gooddet/gooddetlist/suppcustcd" class="input_default" disabled="false" navindex="33" editable="false" style="left:440px; top:146px; width:60px; height:19px; ">
  743. <script type="javascript" ev:event="xforms-value-changed">
  744. <![CDATA[
  745. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(opt_instcd.attribute("ref")) +",entrregno," + model.getValue(ipt_suppcustcd.attribute("ref")), "","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","opt_instcd");
  746. model.refresh();
  747. ]]>
  748. </script>
  749. </input>
  750. <caption id="cap_deliveunit" class="cell_1" style="left:329px; top:121px; width:108px; height:23px; vertical-align:middle; ">수불단위</caption>
  751. <line id="line1" class="line_2" style="x1:0px; y1:167px; x2:653px; y2:167px; "/>
  752. <line id="line4" class="line_2" style="x1:0px; y1:143px; x2:653px; y2:143px; "/>
  753. <input id="ipt_goodcd" ref="/root/main/gooddet/gooddetlist/goodcd" class="input_default" disabled="false" navindex="15" editable="false" maxlength="12" style="left:110px; top:3px; width:147px; height:19px; "/>
  754. <button id="btn_goodcdcopy" class="btn2_letter4" disabled="true" navindex="16" style="left:262px; top:3px; width:64px; height:19px; ">
  755. <caption>코드생성</caption>
  756. <script type="javascript" ev:event="DOMActivate">
  757. <![CDATA[
  758. fGoodCdCopy();
  759. ]]>
  760. </script>
  761. </button>
  762. <caption id="cap_nonusetretdd" class="cell_1" style="left:0px; top:145px; width:108px; height:48px; vertical-align:middle; ">코드불용일/사유</caption>
  763. <input id="ipt_nonusetretdd" ref="/root/main/gooddet/gooddetlist/todd" class="input_default" disabled="false" navindex="32" inputtype="date" style="left:110px; top:146px; width:216px; height:19px; ">
  764. <script type="javascript" ev:event="xforms-value-changed">
  765. <![CDATA[
  766. var oldtodd = model.getValue(ipt_oldtodd.attribute("ref"));
  767. var curdate = getCurrentDate();
  768. var cvtdate = model.getValue(ipt_nonusetretdd.attribute("ref"));
  769. if(oldtodd!="99991231"){
  770. messageBox("이미 불용된 코드","I009");
  771. model.setValue(ipt_nonusetretdd.attribute("ref"), oldtodd);
  772. ipt_nonusetretdd.refresh();
  773. return;
  774. }
  775. if ( cvtdate < curdate ) {
  776. messageBox("변경일자를 현재일자보다 과거시점으로 변경", "E001");
  777. model.setValue(ipt_nonusetretdd.attribute("ref"), oldtodd);
  778. ipt_nonusetretdd.refresh();
  779. return;
  780. }
  781. ]]>
  782. </script>
  783. </input>
  784. <input id="ipt_nonusetretresn" ref="/root/main/gooddet/gooddetlist/nonusetretresn" class="input_default" disabled="false" navindex="35" style="left:110px; top:170px; width:216px; height:19px; "/>
  785. <button id="btn_costhistinfo" class="btn_sw" group="tab" style="left:90px; top:265px; width:75px; height:22px; ">
  786. <caption>이력정보</caption>
  787. <toggle case="case2" ev:event="DOMActivate"/>
  788. </button>
  789. <button id="button8" class="btn_sw" group="tab" selected="true" style="left:0px; top:265px; width:90px; height:22px; ">
  790. <caption>변경세부이력</caption>
  791. <toggle case="case1" ev:event="DOMActivate"/>
  792. </button>
  793. <switch id="switch2" style="left:0px; top:287px; width:645px; height:313px; border-color:#c7a3cf; border-style:solid; ">
  794. <case id="case1" selected="true">
  795. <datagrid id="grd_rscdtchglist" nodeset="/root/main/goodhist/rscdtchglist" caption="기관코드^테이블^테이블명^변경일시^물품분류^물품코드^컬럼^변경항목^컬럼코멘드^변경전변경값^변경전^변경후변경값^변경후^컬럼구분^비고^수정자^수정자명" colsep="^" colwidth="0, 0, 0, 117, 0, 0, 0, 105, 0, 0, 100, 0, 100, 0, 100, 0, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="39" style="left:0px; top:27px; width:640px; height:273px; ">
  796. <col ref="instcd" visibility="hidden"/>
  797. <col ref="tabname" visibility="hidden"/>
  798. <col ref="comments" visibility="hidden"/>
  799. <col ref="changedt"/>
  800. <col ref="changefl" visibility="hidden"/>
  801. <col ref="changecd" visibility="hidden"/>
  802. <col ref="colname"/>
  803. <col ref="colcomt"/>
  804. <col ref="colcomt2"/>
  805. <col ref="oldvalue"/>
  806. <col ref="oldvalnm"/>
  807. <col ref="newvalue"/>
  808. <col ref="newvalnm"/>
  809. <col ref="colflag"/>
  810. <col ref="cmt" visibility="hidden"/>
  811. <col ref="lastupdtrid"/>
  812. <col ref="lastupdtridnm"/>
  813. </datagrid>
  814. <caption id="caption60" class="tit_2" style="left:5px; top:8px; width:119px; height:13px; ">변경세부이력</caption>
  815. <line id="line12" class="line_1" style="x1:0px; y1:22px; x2:640px; y2:22px; "/>
  816. </case>
  817. <case id="case2">
  818. <line id="line28" class="line_1" style="x1:0px; y1:22px; x2:640px; y2:22px; "/>
  819. <caption id="caption38" class="tit_2" style="left:5px; top:8px; width:182px; height:95px; ">이력정보</caption>
  820. <datagrid id="grd_costhistinfo" nodeset="/root/main/goodhist/goodconstlist" caption="적용일자^제품단가^주거래처^보조거래처^수불단위^비고^제조국^물품명(영문)^물품명(한글)^규격^모델^관리부서^수정자^물품코드^물품명^제조사^제조사명^대분류^대분류명^중분류^중분류명^소분류^소분류명^기관코드^물품구분^(이전)적용일자^주거래처^보조거래처^관리부서^입고계정^입고계정명^비용계정^비용계정명^적용일자(TO)^구적용일자(TO)^불용사유^사용유무^구코드" colsep="^" colwidth="85, 80, 111, 102, 76, 161, 80, 100, 98, 96, 91, 95, 80, 17, 17, 7, 7, 7, 8, 6, 6, 6, 8, 11, 9, 12, 12, 8, 9, 10, 11, 10, 12, 8, 11, 8, 7, 7" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:27px; width:640px; height:273px; font-weight:normal; text-align:center; ">
  821. <col ref="fromdd" format="yyyy/mm/dd" style="text-align:center; "/>
  822. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  823. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  824. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  825. <col disabled="true" ref="deliveunit" type="combo" style="text-align:center; ">
  826. <choices>
  827. <itemset>
  828. <label/>
  829. <value/>
  830. </itemset>
  831. </choices>
  832. </col>
  833. <col ref="cmt" style="text-align:left; padding-left:10; "/>
  834. <col disabled="true" ref="prodplce" type="combo" style="text-align:center; ">
  835. <choices>
  836. <itemset>
  837. <label/>
  838. <value/>
  839. </itemset>
  840. </choices>
  841. </col>
  842. <col ref="goodengnm" style="text-align:left; padding-left:10; "/>
  843. <col ref="goodhngnm" style="text-align:left; padding-left:10; "/>
  844. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  845. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  846. <col ref="mainmngtdeptnm" style="text-align:left; padding-left:10; "/>
  847. <col ref="lastupdtrnm" style="text-align:center; "/>
  848. <col ref="goodcd" visibility="hidden" style="text-align:left; "/>
  849. <col ref="goodnm" visibility="hidden" style="text-align:left; "/>
  850. <col ref="prodcmpycd" visibility="hidden" style="text-align:left; "/>
  851. <col ref="prodcmpynm" visibility="hidden" style="text-align:left; "/>
  852. <col ref="lrgcd" visibility="hidden" style="text-align:left; "/>
  853. <col ref="lrgnm" visibility="hidden" style="text-align:left; "/>
  854. <col ref="mdlcd" visibility="hidden" style="text-align:left; "/>
  855. <col ref="mdlnm" visibility="hidden" style="text-align:left; "/>
  856. <col ref="smlcd" visibility="hidden" style="text-align:left; "/>
  857. <col ref="smlnm" visibility="hidden" style="text-align:left; "/>
  858. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  859. <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
  860. <col ref="prefromdd" visibility="hidden" style="text-align:left; "/>
  861. <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
  862. <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
  863. <col ref="mainmngtdeptcd" visibility="hidden" style="text-align:left; "/>
  864. <col ref="winacnt" visibility="hidden" style="text-align:left; "/>
  865. <col ref="winacntnm" visibility="hidden" style="text-align:left; "/>
  866. <col ref="amtacnt" visibility="hidden" style="text-align:left; "/>
  867. <col ref="amtacntnm" visibility="hidden" style="text-align:left; "/>
  868. <col ref="todd" visibility="hidden" style="text-align:left; "/>
  869. <col ref="oldtodd" visibility="hidden" style="text-align:left; "/>
  870. <col ref="nonusetretresn" visibility="hidden" style="text-align:left; "/>
  871. <col ref="useyn" visibility="hidden" style="text-align:left; "/>
  872. <col ref="oldcd" visibility="hidden" style="text-align:left; "/>
  873. <script type="javascript" ev:event="onrowchanged">
  874. <![CDATA[
  875. ]]>
  876. </script>
  877. <script type="javascript" ev:event="ondblclick">
  878. <![CDATA[
  879. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/goodhist/goodconstlist[" + grd_costhistinfo.row + "]");
  880. model.makeValue(ipt_status.attribute("ref"), "h");
  881. fDisabledControl("h");
  882. model.refresh();
  883. ]]>
  884. </script>
  885. </datagrid>
  886. </case>
  887. </switch>
  888. <line id="line3" class="line_2" style="x1:0px; y1:260px; x2:653px; y2:260px; "/>
  889. <caption id="cap_goodnm" class="cell_1" visibility="hidden" style="left:540px; top:389px; width:46px; height:23px; vertical-align:middle; ">물품명</caption>
  890. <input id="ipt_goodnm" ref="/root/main/gooddet/gooddetlist/goodnm" class="input_essential" disabled="false" visibility="hidden" maxlength="18" style="left:585px; top:391px; width:36px; height:19px; "/>
  891. <input id="ipt_goodmodel" ref="/root/main/gooddet/gooddetlist/goodmodel" class="input_default" disabled="false" visibility="hidden" maxlength="150" style="left:585px; top:420px; width:35px; height:19px; ">
  892. <script type="javascript" ev:event="xforms-value-changed">
  893. <![CDATA[
  894. model.setFocus("ipt_goodspec");
  895. ]]>
  896. </script>
  897. </input>
  898. <caption id="cap_goodmodel" class="cell_1" visibility="hidden" style="left:539px; top:418px; width:46px; height:23px; vertical-align:middle; ">모델명</caption>
  899. <caption id="cap_appfixasetcd" class="cell_1" style="left:0px; top:49px; width:108px; height:23px; vertical-align:middle; ">적용장비</caption>
  900. <input id="ipt_appfixasetcd" ref="/root/main/gooddet/gooddetlist/appfixasetcd" class="input_default" navindex="20" style="left:110px; top:49px; width:60px; height:19px; ">
  901. <script type="javascript" ev:event="xforms-value-changed">
  902. <![CDATA[
  903. if(ipt_appfixasetcd.value != "")
  904. {
  905. model.makeValue("/root/main/gooddet/gooddetlist/fixasetcd","");
  906. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  907. "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_appfixasetcd.value, "", "goodflaghngnm,fixasetcd"
  908. ,ipt_appfixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  909. var appfixasetcd = model.getValue("/root/main/gooddet/gooddetlist/fixasetcd");
  910. model.removenode("/root/main/gooddet/gooddetlist/fixasetcd");
  911. if(appfixasetcd != ""){
  912. model.setValue("/root/main/gooddet/gooddetlist/appfixasetcd",appfixasetcd);
  913. }
  914. }else{
  915. ipt_goodflaghngnm.value = "";
  916. }
  917. ipt_appfixasetcd.refresh();
  918. ipt_goodflaghngnm.refresh();
  919. ]]>
  920. </script>
  921. </input>
  922. <button id="btn_appfixasetcd" class="icon_search" disabled="false" navindex="-1" style="left:175px; top:49px; width:16px; height:16px; ">
  923. <caption/>
  924. <script type="javascript" ev:event="DOMActivate">
  925. <![CDATA[
  926. model.makeValue("/root/main/gooddet/gooddetlist/fixasetcd","");
  927. rszfOpenPopUpListByWndName(ipt_appfixasetcd,"", "goodflaghngnm,fixasetcd","SPRSD00240", "instcd", cmb_instcd.value, "Y");
  928. var appfixasetcd = model.getValue("/root/main/gooddet/gooddetlist/fixasetcd");
  929. model.removenode("/root/main/gooddet/gooddetlist/fixasetcd");
  930. if(appfixasetcd != ""){
  931. model.setValue("/root/main/gooddet/gooddetlist/appfixasetcd",appfixasetcd);
  932. }
  933. ipt_appfixasetcd.refresh();
  934. ipt_goodflaghngnm.refresh();
  935. ]]>
  936. </script>
  937. </button>
  938. <input id="ipt_goodflaghngnm" ref="/root/main/gooddet/gooddetlist/goodflaghngnm" class="input_fix" navindex="21" editable="false" appearance="input" style="left:194px; top:49px; width:132px; height:19px; "/>
  939. <select1 id="ipt_lrgcd" ref="/root/main/gooddet/gooddetlist/lrgcd" navindex="6" appearance="minimal" style="left:440px; top:75px; width:215px; height:19px; ">
  940. <choices>
  941. <itemset>
  942. <label/>
  943. <value/>
  944. </itemset>
  945. </choices>
  946. <script type="javascript" ev:event="xforms-value-changed">
  947. <![CDATA[
  948. rszfLMSComboList("BC", ipt_lrgcd.value, "", "ipt_mdlcd", "", "M", "", "Y");
  949. //ipt_mdlcd.value="";
  950. ipt_mdlcd.refresh();
  951. ipt_mdlcd.dispatch("xforms-value-changed");
  952. ]]>
  953. </script>
  954. </select1>
  955. <select1 id="ipt_mdlcd" ref="/root/main/gooddet/gooddetlist/mdlcd" navindex="7" appearance="minimal" style="left:440px; top:99px; width:215px; height:19px; ">
  956. <choices>
  957. <itemset>
  958. <label/>
  959. <value/>
  960. </itemset>
  961. </choices>
  962. <script type="javascript" ev:event="xforms-value-changed">
  963. <![CDATA[
  964. //rszfLMSComboList("BC", ipt_lrgcd.value, ipt_mdlcd.value, "ipt_smlcd", "", "S", "", "Y");
  965. //ipt_smlcd.value="";
  966. //ipt_smlcd.refresh();
  967. ]]>
  968. </script>
  969. </select1>
  970. <select1 id="ipt_smlcd" ref="/root/main/gooddet/gooddetlist/smlcd" navindex="8" appearance="minimal" style="left:440px; top:122px; width:215px; height:19px; ">
  971. <choices>
  972. <itemset>
  973. <label/>
  974. <value/>
  975. </itemset>
  976. </choices>
  977. </select1>
  978. <select1 id="cmb_deliveunit" ref="/root/main/gooddet/gooddetlist/deliveunit" disabled="false" navindex="31" appearance="minimal" style="left:440px; top:123px; width:214px; height:19px; text-align:center; background-color:#ffff99; ">
  979. <choices>
  980. <itemset nodeset="/root/init/deliveunit">
  981. <label ref="cdnm"/>
  982. <value ref="cdid"/>
  983. </itemset>
  984. </choices>
  985. </select1>
  986. </group>
  987. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  988. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">수리부품코드등록</caption>
  989. </group>
  990. <group id="group4" visibility="visible" style="left:0px; top:12px; width:1195px; height:27px; ">
  991. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  992. <button id="btn_save" class="btn4_letter2" navindex="42" style="left:1070px; top:3px; width:56px; height:22px; ">
  993. <caption>저장</caption>
  994. <script type="javascript" ev:event="DOMActivate">
  995. <![CDATA[
  996. //물품명입력란 히든처리. 물품명(한글) 값 입력
  997. if(ipt_goodnm.value.getTrim()=="") ipt_goodnm.value = ipt_goodhngnm.value;
  998. if (fDataValiChk() == false) return;
  999. fSetDataSave();
  1000. var focus = "";
  1001. var rsltval = submit("TXRFC00601");
  1002. var chngflag = model.getValue("/root/hidden/temp/chnginfo/chngflag");
  1003. var status = model.getValue(ipt_status.attribute("ref"));
  1004. // model.setValue("/root/hidden/temp/chnginfo/chngflag", "");
  1005. if (chngflag == "N"){
  1006. messageBox("변경된 데이타가 ", "E014");
  1007. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
  1008. model.makeValue(ipt_status.attribute("ref"), "u");
  1009. model.refresh();
  1010. return;
  1011. }else if(chngflag == "D"){
  1012. messageBox("데이타 변경없이 이력저장을 할수 ", "I004");
  1013. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
  1014. model.makeValue(ipt_status.attribute("ref"), "u");
  1015. model.refresh();
  1016. return;
  1017. }else if(chngflag == "U"){
  1018. messageBox("적용일자 변경없이 이력저장을 할수 ", "I004");
  1019. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
  1020. model.makeValue(ipt_status.attribute("ref"), "u");
  1021. model.refresh();
  1022. return;
  1023. }else{
  1024. if (rsltval){
  1025. messageBox("데이타 저장이 성공적으로 ", "I002");
  1026. }else{
  1027. messageBox("데이타 저장에 ", "E009");
  1028. model.copyNode("/root/main/gooddet/gooddetlist", "/root/main/good/goodlist[" + grd_goodlist.row + "]");
  1029. model.makeValue(ipt_status.attribute("ref"), "u");
  1030. model.refresh();
  1031. return;
  1032. }
  1033. }
  1034. if(status != "u"){
  1035. model.resetInstanceNode("/root/main/gooddet/gooddetlist");
  1036. model.resetInstanceNode("/root/main/goodhist/goodconstlist");
  1037. model.resetInstanceNode("/root/main/goodhist/rscdtchglist");
  1038. btn_search.dispatch("DOMActivate");
  1039. }else{
  1040. focus = grd_goodlist.row;
  1041. btn_search.dispatch("DOMActivate");
  1042. model.setFocus("grd_goodlist");
  1043. grd_goodlist.row = focus;
  1044. grd_goodlist.dispatch("ondblclick");
  1045. }
  1046. model.refresh();
  1047. ]]>
  1048. </script>
  1049. </button>
  1050. <button id="btn_clear" class="btn4_letter3" navindex="43" style="left:1127px; top:3px; width:68px; height:22px; ">
  1051. <caption>초기화</caption>
  1052. <script type="javascript" ev:event="DOMActivate">
  1053. <![CDATA[
  1054. fInitialize();
  1055. ]]>
  1056. </script>
  1057. </button>
  1058. <button id="btn_scrnmove" class="btn3_letter4" navindex="41" visibility="hidden" style="left:56px; top:3px; width:80px; height:22px; ">
  1059. <caption>화면이동</caption>
  1060. </button>
  1061. <button id="btn_prt" class="btn6_letter2" navindex="40" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  1062. <caption>출력</caption>
  1063. </button>
  1064. </group>
  1065. </xhtml:body>
  1066. </xhtml:html>