SMRSK00700_총액품목입찰 단가변경.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>품의요구 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <purccnsttninfo>
  12. <purccnsttnmainlist>
  13. <supdirecdd/>
  14. <purccnsttndd/>
  15. <conflag/>
  16. <acntcd/>
  17. <suplimdd/>
  18. <cmt/>
  19. <cnsttndeptcd/>
  20. <teamflag/>
  21. <goodcntnm/>
  22. <mdvan_message/>
  23. <mdvan_send/>
  24. <needterm/>
  25. <notino/>
  26. <old_gm_seq/>
  27. <old_gm_ymd/>
  28. <purccnsttnno/>
  29. <reqdeptcd/>
  30. <reqresn/>
  31. <suplplcecd/>
  32. <totbfcnsttnamt/>
  33. <totcnsttnamt/>
  34. <writid/>
  35. <writnm/>
  36. <acntnm/>
  37. <cnsttndeptnm/>
  38. <reqdeptnm/>
  39. <suplplcenm/>
  40. <newyn/>
  41. </purccnsttnmainlist>
  42. <purccnsttnsublist/>
  43. </purccnsttninfo>
  44. <bfpurccnsttnmaininfo>
  45. <bfpurccnsttnmainlist/>
  46. </bfpurccnsttnmaininfo>
  47. <purccnsttnnoinfo>
  48. <maxpurccnsttnno>
  49. <purccnsttnno/>
  50. </maxpurccnsttnno>
  51. </purccnsttnnoinfo>
  52. </list>
  53. </main>
  54. <send>
  55. <search>
  56. <instcd/>
  57. <wareflag/>
  58. <purccnsttndd/>
  59. <purccnsttnno/>
  60. <notinoyn>Y</notinoyn>
  61. </search>
  62. <stocsearch>
  63. <instcd/>
  64. <wareflag/>
  65. <winacnt/>
  66. </stocsearch>
  67. <save>
  68. <purccnsttnlist/>
  69. </save>
  70. <nosearch>
  71. <instcd/>
  72. <purccnsttndd/>
  73. </nosearch>
  74. </send>
  75. <init>
  76. </init>
  77. <temp>
  78. </temp>
  79. </root>
  80. </instance>
  81. <submission id="TRRSK00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purccnsttninfo"/>
  82. <submission id="TRRSK00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purccnsttnnoinfo"/>
  83. <submission id="TXRSK00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  84. </model>
  85. <script type="javascript" ev:event="xforms-ready">
  86. <![CDATA[
  87. //화면 Control을 초기화한다
  88. fInitialize();
  89. ]]>
  90. </script>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  94. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  97. <script type="javascript">
  98. <![CDATA[
  99. function fInitialize()
  100. {
  101. // 금일 날자 설정
  102. var curdate = getCurrentDate();
  103. var cvtdate = curdate.toDate("YYYYMMDD");
  104. misfComboComCdList("R0095" ,cmb_conflag);
  105. misfComboComCdList("030M0001",cmb_wareflag_search);
  106. // misfComboCopyItemSet(cmb_wareflag ,"" , cmb_wareflag_search, ""); //창고구분
  107. misfComboComCdListMulti("Z0007","cmb_instcd");
  108. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  109. //model.setValue(ipt_windtfrom.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  110. model.setValue(cal_purccnsttndd_search.attribute("ref") , curdate);
  111. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  112. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd_search.attribute("ref")));
  113. if (submit("TRRSK00102")){
  114. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  115. model.setValue(ipt_purccnsttnno_search.attribute("ref"), purccnsttnno);
  116. }
  117. model.setValue("/root/send/nosearch/instcd" , "");
  118. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  119. btn_search.dispatch("DOMActivate");
  120. model.refresh();
  121. }
  122. function fSave(){
  123. var updtdata = "", rowno = "";
  124. updtdata = getGridUpdateData(grd_purccnsttn);
  125. if(updtdata == ""){
  126. messageBox("저장할 데이타가 ","E014");
  127. return false;
  128. }
  129. for(i=grd_purccnsttn.fixedRows;i<grd_purccnsttn.rows;i++){
  130. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("purccnsttndd" )) = model.getValue(cal_purccnsttndd.attribute("ref"));
  131. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("purccnsttnno" )) = model.getValue(ipt_purccnsttnno.attribute("ref"));
  132. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("conflag" )) = model.getValue(cmb_conflag.attribute("ref"));
  133. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("acntcd" )) = model.getValue(ipt_acntcd.attribute("ref"));
  134. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cmt" )) = model.getValue(ipt_cmt.attribute("ref"));
  135. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttndeptcd" )) = model.getValue(ipt_cnsttndeptcd.attribute("ref"));
  136. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("goodcntnm" )) = model.getValue(ipt_goodcntnm.attribute("ref"));
  137. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("totcnsttnamt" )) = model.getValue(ipt_totcnsttnamt.attribute("ref"));
  138. }
  139. model.setValue("/root/send/save/purccnsttnlist", updtdata);
  140. if (submit("TXRSK00701")){
  141. messageBox("저장이","I002");
  142. }else{
  143. messageBox("저장","E009");
  144. return;
  145. }
  146. btn_search.dispatch("DOMActivate");
  147. }
  148. function freqlistprint() {
  149. var Path = "/root/send/winregstprnt/winregstprntlist";
  150. model.removenode(Path);
  151. model.makeNode(Path);
  152. copyNodesetType(Path, grd_winregst.nodeset+ "[chk='Y']");
  153. exeReportPreview("RPRSK00100","XMLSTR");
  154. }
  155. ]]>
  156. </script>
  157. </xhtml:head>
  158. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  159. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  160. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">총액 품목입찰 단가변경</caption>
  161. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  162. </group>
  163. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  164. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:48px; vertical-align:top; ">
  165. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  166. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  167. <button id="btn_search" class="btn1_letter2" style="left:1065px; top:7px; width:56px; height:22px; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. var spath = "/root/main/list/purccnsttninfo"
  172. model.removeNodeset(spath);
  173. submit("TRRSK00101");
  174. model.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" appearance="minimal" style="left:99px; top:10px; width:136px; height:19px; ">
  179. <choices>
  180. <itemset nodeset="/root/main/init">
  181. <label ref="cnstnm"/>
  182. <value ref="cnstcd"/>
  183. </itemset>
  184. </choices>
  185. </select1>
  186. <caption id="cap_instcd" class="search_name" style="left:8px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  187. <input id="cal_purccnsttndd_search" ref="/root/send/search/purccnsttndd" navindex="1" inputtype="date" style="left:596px; top:10px; width:105px; height:19px; ">
  188. <script type="javascript" ev:event="xforms-value-changed">
  189. <![CDATA[
  190. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  191. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd_search.attribute("ref")));
  192. if (submit("TRRSK00102")){
  193. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  194. model.setValue(ipt_purccnsttnno_search.attribute("ref"), purccnsttnno);
  195. }
  196. model.setValue("/root/send/nosearch/instcd" , "");
  197. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  198. model.refresh();
  199. ]]>
  200. </script>
  201. </input>
  202. <caption id="caption20" class="search_name" style="left:505px; top:10px; width:96px; height:17px; vertical-align:middle; ">품의일자 :</caption>
  203. <line id="line30" class="line_4" style="x1:1055px; y1:3px; x2:1055px; y2:35px; "/>
  204. <caption id="caption2" class="search_name" style="left:250px; top:10px; width:106px; height:17px; ">창고 구분 :</caption>
  205. <select1 id="cmb_wareflag_search" ref="/root/send/search/wareflag" appearance="minimal" style="left:346px; top:10px; width:134px; height:19px; ">
  206. <choices>
  207. <itemset nodeset="/root/init/wareflag">
  208. <label ref="cdnm"/>
  209. <value ref="cdid"/>
  210. </itemset>
  211. </choices>
  212. </select1>
  213. <input id="ipt_purccnsttnno_search" ref="/root/send/search/purccnsttnno" class="input_default" navindex="2" maxlength="4" style="left:710px; top:10px; width:75px; height:19px; text-align:center; ">
  214. <script type="javascript" ev:event="onkeyup">
  215. <![CDATA[
  216. inputEnterKey("btn_search", "DOMActivate");
  217. ]]>
  218. </script>
  219. </input>
  220. <button id="btn_save" class="btn4_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
  221. <caption>저장</caption>
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. fSave();
  225. ]]>
  226. </script>
  227. </button>
  228. </group>
  229. <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1190px; y2:93px; "/>
  230. <caption id="caption1" class="tit_2" style="left:0px; top:74px; width:180px; height:14px; ">총액 품목입찰 단가 변경</caption>
  231. <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:71px; width:42px; height:19px; ">
  232. <caption>엑셀</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. misfSaveExcel(grd_purccnsttn);
  236. ]]>
  237. </script>
  238. </button>
  239. <caption id="cap_purccnsttndd" class="cell_1" style="left:0px; top:100px; width:90px; height:23px; vertical-align:middle; ">품의일/NO</caption>
  240. <line id="line2" class="line_1" style="x1:0px; y1:202px; x2:1190px; y2:202px; "/>
  241. <input id="ipt_purccnsttnno" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purccnsttnno" class="input_default" disabled="true" maxlength="4" style="left:244px; top:102px; width:51px; height:19px; text-align:center; "/>
  242. <input id="cal_purccnsttndd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purccnsttndd" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:102px; width:146px; height:19px; text-align:center; ">
  243. <script type="javascript" ev:event="xforms-value-changed">
  244. <![CDATA[
  245. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  246. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd.attribute("ref")));
  247. if (submit("TRRSK00102")){
  248. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  249. model.setValue(ipt_purccnsttnno.attribute("ref"), purccnsttnno);
  250. }
  251. model.setValue("/root/send/nosearch/instcd" , "");
  252. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  253. model.refresh();
  254. ]]>
  255. </script>
  256. </input>
  257. <input id="ipt_newyn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/newyn" class="input_default" disabled="true" visibility="hidden" maxlength="1" style="left:189px; top:72px; width:61px; height:19px; text-align:center; "/>
  258. <caption id="caption36" class="cell_1" style="left:304px; top:100px; width:90px; height:23px; vertical-align:middle; ">공고번호</caption>
  259. <caption id="caption8" class="cell_1" style="left:570px; top:100px; width:75px; height:23px; vertical-align:middle; ">계약방법</caption>
  260. <line id="line18" class="line_2" style="x1:0px; y1:124px; x2:1195px; y2:124px; "/>
  261. <caption id="cap_reqdeptcd" class="cell_1" style="left:840px; top:100px; width:90px; height:23px; vertical-align:middle; ">예산부서</caption>
  262. <input id="ipt_goodcntnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/goodcntnm" class="input_default" disabled="true" style="left:93px; top:152px; width:361px; height:19px; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. ]]>
  266. </script>
  267. </input>
  268. <input id="ipt_needterm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/needterm" class="input_default" disabled="true" style="left:509px; top:126px; width:56px; height:19px; text-align:right; ">
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. ]]>
  272. </script>
  273. </input>
  274. <input id="ipt_cmt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cmt" class="input_default" disabled="true" style="left:675px; top:178px; width:506px; height:19px; text-align:left; padding-left:10; "/>
  275. <input id="ipt_reqdeptcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqdeptcd" class="input_default" disabled="true" style="left:934px; top:152px; width:76px; height:19px; ">
  276. <script type="javascript" ev:event="xforms-value-changed">
  277. <![CDATA[
  278. ]]>
  279. </script>
  280. </input>
  281. <button id="btn_suplplcecd" class="icon_search" disabled="true" style="left:630px; top:155px; width:16px; height:16px; ">
  282. <caption/>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  286. model.refresh();
  287. ]]>
  288. </script>
  289. </button>
  290. <caption id="caption10" class="cell_1" style="left:570px; top:125px; width:75px; height:23px; vertical-align:middle; ">작성자</caption>
  291. <input id="ipt_writid" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/writid" class="input_search" disabled="true" style="left:650px; top:127px; width:70px; height:19px; ">
  292. <script type="javascript" ev:event="xforms-value-changed">
  293. <![CDATA[
  294. if(ipt_writnm.value.length == 0)
  295. ipt_writnm.value = "";
  296. else
  297. misfValidationCheck("01-1", "", "winpsn,winpsnnm");
  298. model.refresh();
  299. //btn_search.dispatch("DOMActivate");
  300. ]]>
  301. </script>
  302. </input>
  303. <button id="btn_writid" class="icon_search" disabled="true" style="left:726px; top:127px; width:16px; height:16px; ">
  304. <caption/>
  305. <script type="javascript" ev:event="DOMActivate">
  306. <![CDATA[
  307. misfOpenPopUpList("01", ipt_writid, "", "winpsn,winpsnnm");
  308. model.refresh();
  309. // btn_search.dispatch("DOMActivate");
  310. ]]>
  311. </script>
  312. </button>
  313. <caption id="caption22" class="cell_1" style="left:0px; top:176px; width:90px; height:23px; vertical-align:middle; ">총금액</caption>
  314. <input id="ipt_suplimdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplimdd" disabled="true" inputtype="date" style="left:498px; top:178px; width:107px; height:19px; ">
  315. <script type="javascript" ev:event="xforms-value-changed">
  316. <![CDATA[
  317. ]]>
  318. </script>
  319. </input>
  320. <caption id="caption11" class="cell_1" style="left:840px; top:125px; width:90px; height:23px; vertical-align:middle; ">계정과목</caption>
  321. <caption id="caption12" class="cell_1" style="left:0px; top:151px; width:90px; height:23px; vertical-align:middle; ">품건명</caption>
  322. <input id="ipt_notino" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/notino" class="input_default" disabled="true" style="left:398px; top:102px; width:167px; height:19px; ">
  323. <script type="javascript" ev:event="xforms-value-changed">
  324. <![CDATA[
  325. ]]>
  326. </script>
  327. </input>
  328. <caption id="caption13" class="cell_1" style="left:435px; top:125px; width:70px; height:23px; vertical-align:middle; ">소요일</caption>
  329. <caption id="caption25" class="cell_1" style="left:610px; top:176px; width:60px; height:23px; vertical-align:middle; ">비고</caption>
  330. <caption id="caption14" class="cell_1" style="left:840px; top:151px; width:90px; height:23px; vertical-align:middle; ">요구부서</caption>
  331. <caption id="caption15" class="cell_1" style="left:200px; top:176px; width:90px; height:23px; vertical-align:middle; ">납품지시일</caption>
  332. <input id="ipt_writnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/writnm" class="output_search" appearance="input" style="left:745px; top:127px; width:90px; height:19px; ">
  333. <script type="javascript" ev:event="xforms-value-changed">
  334. <![CDATA[
  335. if(ipt_winpsnnm.value.length == 0)
  336. ipt_writid.value = "";
  337. else
  338. misfValidationCheck("01-2", "", "winpsn,winpsnnm");
  339. model.refresh();
  340. // btn_search.dispatch("DOMActivate");
  341. ]]>
  342. </script>
  343. </input>
  344. <caption id="caption37" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">요구사항</caption>
  345. <input id="ipt_totcnsttnamt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/totcnsttnamt" class="input_default" disabled="true" format="#,###" style="left:93px; top:178px; width:102px; height:19px; text-align:right; "/>
  346. <caption id="caption16" class="cell_1" style="left:405px; top:176px; width:90px; height:23px; vertical-align:middle; ">납품기한</caption>
  347. <line id="line3" class="line_2" style="x1:0px; y1:149px; x2:650px; y2:149px; "/>
  348. <line id="line4" class="line_2" style="x1:0px; y1:149px; x2:1190px; y2:149px; "/>
  349. <caption id="caption17" class="cell_1" style="left:458px; top:151px; width:90px; height:23px; vertical-align:middle; ">거래처</caption>
  350. <line id="line5" class="line_2" style="x1:0px; y1:174px; x2:1190px; y2:174px; "/>
  351. <line id="line6" class="line_2" style="x1:0px; y1:200px; x2:1190px; y2:200px; "/>
  352. <output id="opt_suplplcenm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcenm" class="output_fix" style="left:649px; top:152px; width:186px; height:19px; "/>
  353. <input id="ipt_reqresn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqresn" class="input_default" disabled="true" style="left:93px; top:127px; width:337px; height:19px; ">
  354. <script type="javascript" ev:event="xforms-value-changed">
  355. <![CDATA[
  356. ]]>
  357. </script>
  358. </input>
  359. <select1 id="cmb_conflag" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/conflag" disabled="true" appearance="minimal" style="left:650px; top:102px; width:185px; height:19px; ">
  360. <choices>
  361. <itemset nodeset="/root/init/wareflag">
  362. <label ref="cdnm"/>
  363. <value ref="cdid"/>
  364. </itemset>
  365. </choices>
  366. </select1>
  367. <output id="opt_reqdeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqdeptnm" class="output_fix" style="left:1031px; top:152px; width:150px; height:19px; "/>
  368. <button id="btn_reqdeptcd" class="icon_search" disabled="true" style="left:1012px; top:153px; width:16px; height:16px; ">
  369. <caption/>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. var recv_list = "reqdeptcd,reqdeptnm";
  373. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, cmb_instcd.value, "instcd") ;
  374. model.refresh();
  375. ]]>
  376. </script>
  377. </button>
  378. <input id="cal_supdirecdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/supdirecdd" disabled="true" inputtype="date" style="left:293px; top:178px; width:107px; height:19px; ">
  379. <script type="javascript" ev:event="xforms-value-changed">
  380. <![CDATA[
  381. ]]>
  382. </script>
  383. </input>
  384. <input id="ipt_suplplcecd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcecd" class="input_default" disabled="true" style="left:552px; top:152px; width:76px; height:19px; ">
  385. <script type="javascript" ev:event="xforms-value-changed">
  386. <![CDATA[
  387. if(ipt_suplplcecd.value.length == 0)
  388. ipt_suplplcenm.value = "";
  389. else
  390. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  391. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  392. ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
  393. model.refresh();
  394. ]]>
  395. </script>
  396. </input>
  397. <output id="opt_acntnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/acntnm" class="output_fix" appearance="output" style="left:1031px; top:127px; width:150px; height:19px; "/>
  398. <input id="ipt_acntcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/acntcd" class="input_essential" disabled="true" style="left:934px; top:127px; width:76px; height:19px; ">
  399. <script type="javascript" ev:event="xforms-value-changed">
  400. <![CDATA[
  401. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_acntcd.attribute("ref")) ,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
  402. model.refresh();
  403. model.setFocus("ipt_amtacnt");
  404. ]]>
  405. </script>
  406. <script type="javascript" ev:event="onkeydown">
  407. <![CDATA[
  408. if(event.keyCode == 9)
  409. {
  410. if(event.shiftKey)model.setFocus("cmb_lrgcd");
  411. else model.setFocus("ipt_amtacnt");
  412. }
  413. //event.preventDefault();
  414. ]]>
  415. </script>
  416. </input>
  417. <button id="btn_acntcd" class="icon_search" disabled="true" style="left:1012px; top:127px; width:16px; height:16px; ">
  418. <caption/>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","","");
  422. model.refresh();
  423. ]]>
  424. </script>
  425. </button>
  426. <input id="ipt_cnsttndeptcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptcd" class="input_default" disabled="true" style="left:934px; top:102px; width:76px; height:19px; ">
  427. <script type="javascript" ev:event="xforms-value-changed">
  428. <![CDATA[
  429. misfValidationCheck("02", "", "cnsttndeptcd,cnsttndeptnm" );
  430. model.refresh();
  431. ]]>
  432. </script>
  433. </input>
  434. <button id="btn_cnsttndeptcd" class="icon_search" disabled="true" style="left:1012px; top:104px; width:16px; height:16px; ">
  435. <caption/>
  436. <script type="javascript" ev:event="DOMActivate">
  437. <![CDATA[
  438. var recv_list = "cnsttndeptcd,cnsttndeptnm";
  439. misfOpenPopUpList("02", ipt_cnsttndeptcd,"", recv_list) ;
  440. model.refresh();
  441. ]]>
  442. </script>
  443. </button>
  444. <output id="opt_cnsttndeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptnm" class="output_fix" style="left:1031px; top:102px; width:150px; height:19px; "/>
  445. <datagrid id="grd_purccnsttn" nodeset="/root/main/list/purccnsttninfo/purccnsttnsublist" caption="순번^계정과목코드^계정과목^물품코드^물품코드^물품명^규격^모델^단위^계약량^당초계약 단가^변경계약 단가^BOX 단위^신규여부^품의일^품의번호^계약일자^계약번호^계약순번^acntcd^cnsttndeptcd^totcnsttnamt^conflag^goodcntnm" colsep="^" colwidth="55, 23, 77, 16, 18, 109, 80, 17, 56, 56, 100, 100, 20, 25, 22, 17, 25, 18, 20, 30, 34, 49, 41, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:209px; width:1190px; height:506px; font-weight:normal; text-align:center; ">
  446. <col ref="purccnsttnseq" style="text-align:center; "/>
  447. <col ref="acntcd" visibility="hidden" style="text-align:center; "/>
  448. <col ref="acntnm" style="text-align:left; padding-left:10; "/>
  449. <col ref="goodcd" visibility="hidden" style="text-align:center; "/>
  450. <col ref="allsizespecid" visibility="hidden" style="text-align:center; "/>
  451. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  452. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  453. <col ref="goodmodel" visibility="hidden" style="text-align:left; padding-left:10; "/>
  454. <col ref="cnsttnunit" style="text-align:left; padding-left:10; "/>
  455. <col ref="conqty" type="output" format="#,###" style="text-align:right; "/>
  456. <col ref="congoodunitcost" type="output" format="#,###" style="text-align:right; "/>
  457. <col ref="chnggoodunitcost" type="input" format="#,###" style="text-align:right; "/>
  458. <col ref="fullpurcunit" visibility="hidden" style="text-align:left; padding-left:10; "/>
  459. <col ref="newyn" visibility="hidden" style="text-align:center; "/>
  460. <col ref="purccnsttndd" visibility="hidden" style="text-align:center; "/>
  461. <col ref="purccnsttnno" visibility="hidden" style="text-align:center; "/>
  462. <col ref="purccondd" visibility="hidden"/>
  463. <col ref="purcconno" visibility="hidden"/>
  464. <col ref="purcconseq" visibility="hidden"/>
  465. <col ref="acntcd" visibility="visible"/>
  466. <col ref="cnsttndeptcd" visibility="visible"/>
  467. <col ref="totcnsttnamt" visibility="visible"/>
  468. <col ref="conflag" visibility="visible"/>
  469. <col ref="goodcntnm" visibility="visible"/>
  470. <script type="javascript" ev:event="onbuttonclick">
  471. <![CDATA[
  472. rszfOpenPopUpListByWndName(grd_purccnsttn,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
  473. ]]>
  474. </script>
  475. <script type="javascript" ev:event="xforms-value-changed">
  476. <![CDATA[
  477. if(grd_purccnsttn.col == grd_purccnsttn.colRef("chnggoodunitcost")) {
  478. var totcnsttnamt =0;
  479. var conqty;
  480. for(var currow = grd_purccnsttn.fixedRows ; currow < grd_purccnsttn.rows ; currow++)
  481. {
  482. var rowStatus = grd_purccnsttn.rowStatus(currow);
  483. var chnggoodunitcost = parseFloat(grd_purccnsttn.valueMatrix(currow , grd_purccnsttn.colRef("chnggoodunitcost")));
  484. var conqty = parseFloat(grd_purccnsttn.valueMatrix(currow , grd_purccnsttn.colRef("conqty")));
  485. totcnsttnamt += (conqty*chnggoodunitcost);
  486. }
  487. model.setValue(ipt_totcnsttnamt.attribute("ref") ,totcnsttnamt);
  488. }
  489. ]]>
  490. </script>
  491. </datagrid>
  492. </group>
  493. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  494. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  495. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  496. <caption>초기화</caption>
  497. <script type="javascript" ev:event="DOMActivate">
  498. <![CDATA[
  499. fInitialize();
  500. ]]>
  501. </script>
  502. </button>
  503. <button id="btn_prnt" class="btn6_letter2" visibility="hidden" style="left:0px; top:5px; width:56px; height:22px; ">
  504. <caption>출력</caption>
  505. <script type="javascript" ev:event="DOMActivate">
  506. <![CDATA[
  507. /*var prntyn = model.getValue(chk_prntyn.attribute("ref"));
  508. if (prntyn != 'Y'){
  509. submit("TXRSK00100");
  510. }*/
  511. freqlistprint();
  512. //exeReportPreview("RPRSK00100","XMLSTR");
  513. ]]>
  514. </script>
  515. </button>
  516. </group>
  517. </xhtml:body>
  518. </xhtml:html>