SMRSK01200_수리장비공사용역품의요구관리.xrw 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  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. <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. <goodcd>N</goodcd>
  42. </purccnsttnmainlist>
  43. <purccnsttnsublist/>
  44. </purccnsttninfo>
  45. <bfpurccnsttnmaininfo>
  46. <bfpurccnsttnmainlist/>
  47. </bfpurccnsttnmaininfo>
  48. <purccnsttnnoinfo>
  49. <maxpurccnsttnno>
  50. <purccnsttnno/>
  51. </maxpurccnsttnno>
  52. </purccnsttnnoinfo>
  53. <cnsttnkindinfo>
  54. <goodcd>N</goodcd>
  55. </cnsttnkindinfo>
  56. </list>
  57. </main>
  58. <send>
  59. <search>
  60. <instcd/>
  61. <wareflag/>
  62. <purccnsttndd/>
  63. <purccnsttnno/>
  64. <teamflag/>
  65. </search>
  66. <save>
  67. <purccnsttnlist/>
  68. </save>
  69. <nosearch>
  70. <instcd/>
  71. <purccnsttndd/>
  72. </nosearch>
  73. </send>
  74. <init>
  75. </init>
  76. <temp>
  77. </temp>
  78. </root>
  79. </instance>
  80. <submission id="TRRSK00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purccnsttninfo"/>
  81. <submission id="TRRSK00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purccnsttnnoinfo"/>
  82. <submission id="TXRSK01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  83. </model>
  84. <script type="javascript" ev:event="xforms-ready">
  85. <![CDATA[
  86. //수리장비공사용역품의 추가 초기화 로직 구현----------------------------------------
  87. //1. 수리장비공사용역품의는 품건명이 활성화 시켜야 함.
  88. ipt_goodcntnm.disabled = false;
  89. //2. 행추가 버튼 추가(disable)
  90. btn_choiadd.disabled = true;
  91. //품의함수를 이용한다. 화면 Control을 초기화한다
  92. fInitialize("01");
  93. rdo_goodcd.dispatch("xforms-value-changed");
  94. //fViewOptionToggle("goodcd");
  95. ]]>
  96. </script>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  100. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  103. <script type="javascript" src="../../../mis/purccnsttnweb/js/RSK0001.js"/>
  104. <script type="javascript" src="../../../mis/purccnsttnweb/js/SMRSK01400.js"/>
  105. <script type="javascript">
  106. <![CDATA[
  107. function fSaveValiChk(){
  108. var smsg = "";
  109. if(cal_purccnsttndd.value.getTrim() == "") smsg += "품의일자, ";
  110. if(ipt_purccnsttnno.value.getTrim() == "") smsg += "품의번호, ";
  111. if(cmb_teamflag.value.getTrim() == "") smsg += "팀구분, ";
  112. if(cmb_conflag.value.getTrim() == "") smsg += "계약방법, ";
  113. if(ipt_cnsttndeptcd.value.getTrim() == "") smsg += "예산부서, ";
  114. if(ipt_acntcd.value.getTrim() == "") smsg += "계정과목, ";
  115. // if(ipt_reqdeptcd.value.getTrim() == "") smsg += "요구부서, ";
  116. if(ipt_suplplcecd.value.getTrim() == "") smsg += "거래처, ";
  117. for(var currow = grd_purccnsttn.fixedRows ; currow < grd_purccnsttn.rows ; currow++) {
  118. if (grd_purccnsttn.valueMatrix(currow , grd_purccnsttn.colRef("cnsttndivflag")) =="" ) {
  119. messageBox(currow + " 번째 구분를 " ,"C001");
  120. grd_purccnsttn.row = currow;
  121. grd_purccnsttn.col = grd_purccnsttn.colRef("cnsttndivflag");
  122. grd_purccnsttn.editCell();
  123. return false;
  124. }
  125. if (grd_purccnsttn.valueMatrix(currow , grd_purccnsttn.colRef("cnsttnqty")) =="" ) {
  126. messageBox(currow + " 번째 품의량을 " ,"C001");
  127. grd_purccnsttn.row = currow;
  128. grd_purccnsttn.col = grd_purccnsttn.colRef("cnsttnqty");
  129. grd_purccnsttn.editCell();
  130. return false;
  131. }
  132. if (grd_purccnsttn.valueMatrix(currow , grd_purccnsttn.colRef("cnsttnunit")) =="" ) {
  133. messageBox(currow + " 번째 단위를 " ,"C001");
  134. grd_purccnsttn.row = currow;
  135. grd_purccnsttn.col = grd_purccnsttn.colRef("cnsttnunit");
  136. grd_purccnsttn.editCell();
  137. return false;
  138. }
  139. if (grd_purccnsttn.valueMatrix(currow , grd_purccnsttn.colRef("cnsttngoodunitcost")) =="" ) {
  140. messageBox(currow + " 번째 단가를 " ,"C001");
  141. grd_purccnsttn.row = currow;
  142. grd_purccnsttn.col = grd_purccnsttn.colRef("cnsttngoodunitcost");
  143. grd_purccnsttn.editCell();
  144. return false;
  145. }
  146. if (grd_purccnsttn.valueMatrix(currow , grd_purccnsttn.colRef("reqdeptcd")) =="" ) {
  147. messageBox(currow + " 번째 요구부서를 " ,"C001");
  148. grd_purccnsttn.row = currow;
  149. grd_purccnsttn.col = grd_purccnsttn.colRef("reqdeptcd");
  150. grd_purccnsttn.editCell();
  151. return false;
  152. }
  153. }
  154. if (smsg == ""){
  155. return true;
  156. }else{
  157. messageBox(smsg.substr(0, smsg.length-2) + "은(는)","I003");
  158. return false;
  159. }
  160. }
  161. function fSave(){
  162. var updtdata = "", rowno = "";
  163. if (fSaveValiChk() == false) return;
  164. for(i=1;i<grd_purccnsttn.rows;i++){
  165. /*if (fCmprChngVal() == true && grd_purccnsttn.rowStatus(i) == "0"){
  166. grd_purccnsttn.rowStatus(i) = "2";
  167. }*/
  168. if (fCmprChngVal() == true){
  169. if (grd_purccnsttn.rowStatus(i) == "0"){
  170. grd_purccnsttn.rowStatus(i) = "2";
  171. }
  172. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("newyn" )) = model.getValue(ipt_newyn.attribute("ref"));
  173. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("purccnsttndd" )) = model.getValue(cal_purccnsttndd.attribute("ref"));
  174. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("supdirecdd" )) = model.getValue(cal_supdirecdd.attribute("ref"));
  175. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("conflag" )) = model.getValue(cmb_conflag.attribute("ref"));
  176. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("teamflag" )) = model.getValue(cmb_teamflag.attribute("ref"));
  177. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("mdvan_send" )) = model.getValue(cmb_mdvan_send.attribute("ref"));
  178. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("acntcd" )) = model.getValue(ipt_acntcd.attribute("ref"));
  179. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cmt" )) = model.getValue(ipt_cmt.attribute("ref"));
  180. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttndeptcd" )) = model.getValue(ipt_cnsttndeptcd.attribute("ref"));
  181. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("goodcntnm" )) = model.getValue(ipt_goodcntnm.attribute("ref"));
  182. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("mdvan_message" )) = model.getValue(ipt_mdvan_message.attribute("ref"));
  183. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("needterm" )) = model.getValue(ipt_needterm.attribute("ref"));
  184. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("notino" )) = model.getValue(ipt_notino.attribute("ref"));
  185. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("old_gm_seq" )) = model.getValue(ipt_old_gm_seq.attribute("ref"));
  186. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("old_gm_ymd" )) = model.getValue(ipt_old_gm_ymd.attribute("ref"));
  187. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("purccnsttnno" )) = model.getValue(ipt_purccnsttnno.attribute("ref"));
  188. // grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("reqdeptcd" )) = model.getValue(ipt_reqdeptcd.attribute("ref"));
  189. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("reqresn" )) = model.getValue(ipt_reqresn.attribute("ref"));
  190. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("suplimdd" )) = model.getValue(ipt_suplimdd.attribute("ref"));
  191. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("suplplcecd" )) = model.getValue(ipt_suplplcecd.attribute("ref"));
  192. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("totbfcnsttnamt")) = model.getValue(ipt_totbfcnsttnamt.attribute("ref"));
  193. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("totcnsttnamt" )) = model.getValue(ipt_totcnsttnamt.attribute("ref"));
  194. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("writid" )) = model.getValue(ipt_writid.attribute("ref"));
  195. }
  196. }
  197. updtdata = getGridUpdateData(grd_purccnsttn);
  198. if(updtdata == ""){
  199. messageBox("저장할 데이타가 ","E014");
  200. return false;
  201. }
  202. /* if (rowno != ""){
  203. messageBox(rowno.substr(1, rowno.length-1)+"번째건의 수량이 입력되지 ", "I011");
  204. return false;
  205. } */
  206. model.setValue("/root/send/save/purccnsttnlist", updtdata);
  207. if (submit("TXRSK01201")){
  208. messageBox("저장이","I002");
  209. }else{
  210. messageBox("저장","E009");
  211. return;
  212. }
  213. btn_search.dispatch("DOMActivate");
  214. }
  215. ]]>
  216. </script>
  217. </xhtml:head>
  218. <xhtml:body guideline="1,1332;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  219. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  220. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">수리/장비/공사/용역 품의요구 관리</caption>
  221. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  222. </group>
  223. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  224. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:48px; vertical-align:top; ">
  225. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  226. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  227. <button id="btn_search" class="btn1_letter2" style="left:1065px; top:7px; width:56px; height:22px; ">
  228. <caption>조회</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. var bfgoodcd = model.getValue("/root/main/list/purccnsttninfo/purccnsttnmainlist/goodcd");
  232. fSearch();
  233. model.makeValue("/root/main/list/purccnsttninfo/purccnsttnmainlist/goodcd" , bfgoodcd);
  234. //행추가버튼 활성화
  235. btn_choiadd.disabled = false;
  236. //rdo_goodcd.dispatch("xforms-value-changed");
  237. for (var i = grd_purccnsttn.fixedRows; i <= grd_purccnsttn.rows ; i++) {
  238. if (rdo_goodcd.value == "Y"){
  239. grd_purccnsttn.isReadOnly(i , grd_purccnsttn.colRef("cnsttndivflag")) = false;
  240. }else{
  241. grd_purccnsttn.isReadOnly(i , grd_purccnsttn.colRef("cnsttndivflag")) = true;
  242. }
  243. }
  244. if ((grd_purccnsttn.rows - grd_purccnsttn.fixedRows) > 0){
  245. var cnsttndivflag = grd_purccnsttn.valueMatrix(grd_purccnsttn.rows - grd_purccnsttn.fixedRows , grd_purccnsttn.colRef("cnsttndivflag"));
  246. if (cnsttndivflag == "1"){
  247. rdo_goodcd.value = "Y";
  248. }else{
  249. rdo_goodcd.value = "N";
  250. }
  251. rdo_goodcd.disabled = true;
  252. }else{
  253. rdo_goodcd.disabled = false;
  254. }
  255. rdo_goodcd.dispatch("xforms-value-changed");
  256. ]]>
  257. </script>
  258. </button>
  259. <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; ">
  260. <choices>
  261. <itemset nodeset="/root/main/init">
  262. <label ref="cnstnm"/>
  263. <value ref="cnstcd"/>
  264. </itemset>
  265. </choices>
  266. </select1>
  267. <caption id="cap_instcd" class="search_name" style="left:8px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  268. <input id="cal_purccnsttndd_search" ref="/root/send/search/purccnsttndd" navindex="1" inputtype="date" style="left:596px; top:10px; width:105px; height:19px; ">
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  272. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd_search.attribute("ref")));
  273. if (submit("TRRSK00102")){
  274. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  275. model.setValue(ipt_purccnsttnno_search.attribute("ref"), purccnsttnno);
  276. }
  277. model.setValue("/root/send/nosearch/instcd" , "");
  278. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  279. model.refresh();
  280. ]]>
  281. </script>
  282. </input>
  283. <caption id="caption20" class="search_name" style="left:505px; top:10px; width:96px; height:17px; vertical-align:middle; ">품의일자 :</caption>
  284. <line id="line30" class="line_4" style="x1:1055px; y1:3px; x2:1055px; y2:35px; "/>
  285. <caption id="caption2" class="search_name" style="left:250px; top:10px; width:106px; height:17px; ">창고 구분 :</caption>
  286. <select1 id="cmb_wareflag_search" ref="/root/send/search/wareflag" appearance="minimal" style="left:346px; top:10px; width:134px; height:19px; ">
  287. <choices>
  288. <itemset nodeset="/root/init/wareflag">
  289. <label ref="cdnm"/>
  290. <value ref="cdid"/>
  291. </itemset>
  292. </choices>
  293. </select1>
  294. <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; ">
  295. <script type="javascript" ev:event="onkeyup">
  296. <![CDATA[
  297. inputEnterKey("btn_search", "DOMActivate");
  298. ]]>
  299. </script>
  300. </input>
  301. <button id="btn_save" class="btn4_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
  302. <caption>저장</caption>
  303. <script type="javascript" ev:event="DOMActivate">
  304. <![CDATA[
  305. fSave();
  306. ]]>
  307. </script>
  308. </button>
  309. <input id="ipt_teamflag" ref="/root/send/search/teamflag" class="input_default" disabled="true" visibility="hidden" style="left:795px; top:10px; width:60px; height:19px; text-align:center; "/>
  310. </group>
  311. <line id="line1" class="line_1" visibility="visible" style="x1:0px; y1:93px; x2:1190px; y2:93px; "/>
  312. <caption id="caption1" class="tit_2" style="left:0px; top:74px; width:180px; height:13px; ">품의요구 관리</caption>
  313. <button id="btn_choidel" class="btn2_letter3" style="left:1082px; top:70px; width:53px; height:19px; ">
  314. <caption>행삭제</caption>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. fRowDel();
  318. //fDelSetting(grd_purccnsttn);
  319. ]]>
  320. </script>
  321. </button>
  322. <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:70px; width:42px; height:19px; ">
  323. <caption>엑셀</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. misfSaveExcel(grd_purccnsttn);
  327. ]]>
  328. </script>
  329. </button>
  330. <caption id="cap_purccnsttndd" class="cell_1" style="left:0px; top:100px; width:90px; height:23px; vertical-align:middle; ">품의일/NO</caption>
  331. <line id="line2" class="line_1" style="x1:0px; y1:260px; x2:1190px; y2:260px; "/>
  332. <button id="btn_purcdmnd" class="btn2_letter4" style="left:915px; top:71px; width:64px; height:19px; ">
  333. <caption>수리요구</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. if (fDataValiChk() == false) return;
  337. model.removenode("/root/copynode");
  338. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  339. model.makeNode("/root/copynode");
  340. //setParameter("para_acntcd" , model.getValue(ipt_acntcd.attribute("ref")));
  341. // 자산구분 - 의료소모품(1) - 기존 Y
  342. // 약품 (3)
  343. // 식재료 (4)
  344. //setParameter("para_purcpgmgubn" , "2");
  345. modal("SPRSK01400");
  346. var cur_row = grd_purccnsttn.row;
  347. var status = grd_purccnsttn.valueMatrix(cur_row, grd_purccnsttn.colRef("m"));
  348. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  349. setCSVToNode("/root/copynode", CSV, "purccnsttnsublist");
  350. fDataSet("/root/copynode", "purccnsttnsublist");
  351. for(var i=grd_purccnsttn.fixedRows; i < grd_purccnsttn.rows;i++){
  352. var reqpackcnt = parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("reqpackcnt")));
  353. var reqpackcntperunit = parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("reqpackcntperunit")));
  354. var cnsttngoodunitcost = parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttngoodunitcost")));
  355. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttnamt")) = cnsttngoodunitcost * (reqpackcnt * reqpackcntperunit);
  356. }
  357. if (grd_purccnsttn.rows - grd_purccnsttn.fixedRows == 0){
  358. ipt_acntcd.disabled = false;
  359. btn_acntcd.disabled = false;
  360. }else{
  361. fGetGoodcntnm();
  362. ipt_acntcd.disabled = true;
  363. btn_acntcd.disabled = true;
  364. }
  365. for (var i = grd_purccnsttn.fixedRows; i <= grd_purccnsttn.rows ; i++) {
  366. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttnamt")) = parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttngoodunitcost"))) * parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttnqty")));
  367. }
  368. fDispSumAmt();
  369. model.refresh();
  370. ]]>
  371. </script>
  372. </button>
  373. <input id="ipt_purccnsttnno" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purccnsttnno" class="input_default" maxlength="4" style="left:244px; top:102px; width:51px; height:19px; text-align:center; "/>
  374. <input id="cal_purccnsttndd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purccnsttndd" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:102px; width:146px; height:19px; text-align:center; ">
  375. <script type="javascript" ev:event="xforms-value-changed">
  376. <![CDATA[
  377. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  378. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd.attribute("ref")));
  379. if (submit("TRRSK00102")){
  380. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  381. model.setValue(ipt_purccnsttnno.attribute("ref"), purccnsttnno);
  382. }
  383. model.setValue("/root/send/nosearch/instcd" , "");
  384. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  385. model.refresh();
  386. ]]>
  387. </script>
  388. </input>
  389. <button id="btn_insert" class="btn2_letter2" style="left:869px; top:71px; width:42px; height:19px; ">
  390. <caption>입력</caption>
  391. <script type="javascript" ev:event="DOMActivate">
  392. <![CDATA[
  393. fInpt("01");
  394. btn_choiadd.disabled = false;
  395. //수리장비공사용역품의는 활성화 시켜야 함.
  396. ipt_goodcntnm.disabled = false;
  397. rdo_goodcd.disabled = false;
  398. model.refresh();
  399. ]]>
  400. </script>
  401. </button>
  402. <input id="ipt_newyn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/newyn" class="input_default" disabled="true" visibility="hidden" maxlength="1" style="left:669px; top:70px; width:61px; height:19px; text-align:center; "/>
  403. <select id="chk_updtgoodcntyn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/updtgoodcntyn" visibility="hidden" overflow="visible" appearance="full" style="left:500px; top:72px; width:15px; height:15px; border-style:none; ">
  404. <choices>
  405. <item>
  406. <label/>
  407. <value>Y</value>
  408. </item>
  409. </choices>
  410. <script type="javascript" ev:event="xforms-value-changed">
  411. <![CDATA[
  412. var updtgoodcntyn = model.getValue(chk_updtgoodcntyn.attribute("ref"));
  413. if (updtgoodcntyn == "Y"){
  414. ipt_goodcntnm.disabled = "false";
  415. }else{
  416. ipt_goodcntnm.disabled = "true";
  417. }
  418. ]]>
  419. </script>
  420. </select>
  421. <select id="chk_sklabr" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/sklabr" visibility="hidden" overflow="visible" appearance="full" style="left:630px; top:72px; width:15px; height:15px; border-style:none; ">
  422. <choices>
  423. <item>
  424. <label/>
  425. <value>Y</value>
  426. </item>
  427. </choices>
  428. </select>
  429. <caption id="caption3" class="search_name" visibility="hidden" style="left:390px; top:72px; width:114px; height:17px; ">품건명 수정 :</caption>
  430. <caption id="caption5" class="search_name" visibility="hidden" style="left:530px; top:72px; width:100px; height:17px; ">기술/용역 :</caption>
  431. <caption id="caption36" class="cell_1" style="left:304px; top:100px; width:90px; height:23px; vertical-align:middle; ">팀구분</caption>
  432. <caption id="caption8" class="cell_1" style="left:535px; top:100px; width:90px; height:23px; vertical-align:middle; ">계약방법</caption>
  433. <line id="line18" class="line_2" style="x1:0px; y1:124px; x2:1195px; y2:124px; "/>
  434. <caption id="cap_reqdeptcd" class="cell_1" style="left:840px; top:100px; width:90px; height:23px; vertical-align:middle; ">예산부서</caption>
  435. <line id="line8" class="line_2" style="x1:0px; y1:255px; x2:1190px; y2:255px; "/>
  436. <line id="line9" class="line_2" style="x1:0px; y1:226px; x2:1190px; y2:226px; "/>
  437. <input id="ipt_goodcntnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/goodcntnm" class="input_default" style="left:93px; top:152px; width:627px; height:19px; ">
  438. <script type="javascript" ev:event="xforms-value-changed">
  439. <![CDATA[
  440. ]]>
  441. </script>
  442. </input>
  443. <input id="ipt_needterm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/needterm" class="input_default" visibility="hidden" style="left:1105px; top:233px; width:76px; height:19px; text-align:right; ">
  444. <script type="javascript" ev:event="xforms-value-changed">
  445. <![CDATA[
  446. ]]>
  447. </script>
  448. </input>
  449. <input id="ipt_cmt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cmt" class="input_default" disabled="false" style="left:93px; top:179px; width:627px; height:19px; text-align:left; padding-left:10; "/>
  450. <input id="ipt_mdvan_message" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/mdvan_message" class="input_default" disabled="true" style="left:93px; top:205px; width:627px; height:19px; text-align:center; "/>
  451. <input id="ipt_reqdeptcd" class="input_default" visibility="hidden" style="left:248px; top:233px; width:76px; height:19px; ">
  452. <script type="javascript" ev:event="xforms-value-changed">
  453. <![CDATA[
  454. ]]>
  455. </script>
  456. </input>
  457. <caption id="caption21" class="cell_1" visibility="hidden" style="left:505px; top:229px; width:90px; height:23px; vertical-align:middle; ">이전금액</caption>
  458. <button id="btn_suplplcecd" class="icon_search" style="left:935px; top:154px; width:16px; height:16px; ">
  459. <caption/>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  463. model.refresh();
  464. ]]>
  465. </script>
  466. </button>
  467. <caption id="caption10" class="cell_1" style="left:535px; top:125px; width:90px; height:23px; vertical-align:middle; ">작성자</caption>
  468. <input id="ipt_writid" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/writid" class="input_search" style="left:630px; top:127px; width:75px; height:19px; ">
  469. <script type="javascript" ev:event="xforms-value-changed">
  470. <![CDATA[
  471. if(ipt_writnm.value.length == 0)
  472. ipt_writnm.value = "";
  473. else
  474. misfValidationCheck("01-1", "", "winpsn,winpsnnm");
  475. model.refresh();
  476. //btn_search.dispatch("DOMActivate");
  477. ]]>
  478. </script>
  479. </input>
  480. <button id="btn_writid" class="icon_search" style="left:711px; top:127px; width:16px; height:16px; ">
  481. <caption/>
  482. <script type="javascript" ev:event="DOMActivate">
  483. <![CDATA[
  484. misfOpenPopUpList("01", ipt_writid, "", "writid,writnm");
  485. model.refresh();
  486. // btn_search.dispatch("DOMActivate");
  487. ]]>
  488. </script>
  489. </button>
  490. <caption id="caption22" class="cell_1" visibility="visible" style="left:725px; top:176px; width:90px; height:23px; vertical-align:middle; ">총금액</caption>
  491. <input id="ipt_suplimdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplimdd" visibility="hidden" inputtype="date" style="left:935px; top:233px; width:62px; height:19px; ">
  492. <script type="javascript" ev:event="xforms-value-changed">
  493. <![CDATA[
  494. ]]>
  495. </script>
  496. </input>
  497. <caption id="caption11" class="cell_1" style="left:840px; top:125px; width:90px; height:23px; vertical-align:middle; ">계정과목</caption>
  498. <caption id="caption12" class="cell_1" style="left:0px; top:152px; width:90px; height:23px; vertical-align:middle; ">품건명</caption>
  499. <caption id="caption24" class="cell_1" style="left:880px; top:203px; width:110px; height:23px; vertical-align:middle; ">이전품의일/SEQ</caption>
  500. <input id="ipt_notino" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/notino" class="input_default" disabled="true" visibility="hidden" style="left:95px; top:233px; width:56px; height:19px; ">
  501. <script type="javascript" ev:event="xforms-value-changed">
  502. <![CDATA[
  503. ]]>
  504. </script>
  505. </input>
  506. <caption id="caption13" class="cell_1" visibility="hidden" style="left:1010px; top:229px; width:90px; height:23px; vertical-align:middle; ">소요일</caption>
  507. <caption id="caption25" class="cell_1" style="left:0px; top:178px; width:90px; height:23px; vertical-align:middle; ">비고</caption>
  508. <caption id="caption14" class="cell_1" visibility="hidden" style="left:154px; top:229px; width:90px; height:23px; vertical-align:middle; ">요구부서</caption>
  509. <caption id="caption26" class="cell_1" style="left:0px; top:204px; width:90px; height:23px; vertical-align:middle; ">Message</caption>
  510. <input id="ipt_totbfcnsttnamt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/totbfcnsttnamt" class="input_default" disabled="true" visibility="hidden" format="#,###" style="left:598px; top:233px; width:72px; height:19px; text-align:right; "/>
  511. <caption id="caption15" class="cell_1" visibility="hidden" style="left:675px; top:229px; width:90px; height:23px; vertical-align:middle; ">납품지시일</caption>
  512. <input id="ipt_writnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/writnm" class="output_search" appearance="input" style="left:730px; top:127px; width:105px; height:19px; ">
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. if(ipt_winpsnnm.value.length == 0)
  516. ipt_writid.value = "";
  517. else
  518. misfValidationCheck("01-2", "", "winpsn,winpsnnm");
  519. model.refresh();
  520. // btn_search.dispatch("DOMActivate");
  521. ]]>
  522. </script>
  523. </input>
  524. <caption id="caption37" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">품의사유</caption>
  525. <input id="ipt_totcnsttnamt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/totcnsttnamt" class="input_default" disabled="true" visibility="visible" format="#,###" style="left:818px; top:178px; width:172px; height:19px; text-align:right; "/>
  526. <caption id="caption16" class="cell_1" visibility="hidden" style="left:840px; top:229px; width:90px; height:23px; vertical-align:middle; ">납품기한</caption>
  527. <line id="line3" class="line_2" style="x1:0px; y1:149px; x2:650px; y2:149px; "/>
  528. <line id="line4" class="line_2" style="x1:0px; y1:149px; x2:1190px; y2:149px; "/>
  529. <input id="ipt_old_gm_ymd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/old_gm_ymd" class="input_default" disabled="true" style="left:995px; top:205px; width:125px; height:19px; text-align:center; "/>
  530. <caption id="caption17" class="cell_1" style="left:725px; top:150px; width:90px; height:23px; vertical-align:middle; ">거래처</caption>
  531. <line id="line5" class="line_2" style="x1:0px; y1:174px; x2:1190px; y2:174px; "/>
  532. <input id="ipt_old_gm_seq" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/old_gm_seq" class="input_default" disabled="true" style="left:1124px; top:205px; width:56px; height:19px; text-align:center; "/>
  533. <caption id="caption18" class="cell_1" visibility="hidden" style="left:1px; top:229px; width:90px; height:23px; vertical-align:middle; ">공고번호</caption>
  534. <line id="line6" class="line_2" style="x1:0px; y1:200px; x2:1190px; y2:200px; "/>
  535. <caption id="caption19" class="cell_1" style="left:995px; top:176px; width:70px; height:23px; vertical-align:middle; ">진행사항</caption>
  536. <output id="opt_suplplcenm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcenm" class="output_fix" style="left:960px; top:152px; width:220px; height:19px; "/>
  537. <input id="ipt_reqresn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqresn" class="input_default" style="left:93px; top:127px; width:437px; height:19px; ">
  538. <script type="javascript" ev:event="xforms-value-changed">
  539. <![CDATA[
  540. ]]>
  541. </script>
  542. </input>
  543. <select1 id="cmb_conflag" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/conflag" appearance="minimal" style="left:630px; top:102px; width:205px; height:19px; ">
  544. <choices>
  545. <itemset nodeset="/root/init/wareflag">
  546. <label ref="cdnm"/>
  547. <value ref="cdid"/>
  548. </itemset>
  549. </choices>
  550. </select1>
  551. <output id="opt_reqdeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqdeptnm" class="output_fix" visibility="hidden" style="left:350px; top:233px; width:150px; height:19px; "/>
  552. <button id="btn_reqdeptcd" class="icon_search" visibility="hidden" style="left:331px; top:236px; width:16px; height:16px; ">
  553. <caption/>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. var recv_list = "reqdeptcd,reqdeptnm";
  557. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, cmb_instcd.value, "instcd") ;
  558. model.refresh();
  559. ]]>
  560. </script>
  561. </button>
  562. <input id="cal_supdirecdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/supdirecdd" visibility="hidden" inputtype="date" style="left:768px; top:233px; width:67px; height:19px; ">
  563. <script type="javascript" ev:event="xforms-value-changed">
  564. <![CDATA[
  565. ]]>
  566. </script>
  567. </input>
  568. <input id="ipt_suplplcecd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcecd" class="input_default" style="left:818px; top:152px; width:112px; height:19px; ">
  569. <script type="javascript" ev:event="xforms-value-changed">
  570. <![CDATA[
  571. if(ipt_suplplcecd.value.length == 0)
  572. ipt_suplplcenm.value = "";
  573. else
  574. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  575. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  576. ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
  577. model.refresh();
  578. ]]>
  579. </script>
  580. </input>
  581. <select1 id="cmb_teamflag" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/teamflag" disabled="true" visibility="visible" appearance="minimal" style="left:398px; top:102px; width:132px; height:19px; ">
  582. <choices>
  583. <itemset nodeset="/root/init/wareflag">
  584. <label ref="cdnm"/>
  585. <value ref="cdid"/>
  586. </itemset>
  587. </choices>
  588. </select1>
  589. <select1 id="cmb_mdvan_send" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/mdvan_send" disabled="false" appearance="minimal" style="left:1070px; top:177px; width:110px; height:19px; ">
  590. <choices>
  591. <itemset nodeset="/root/init/wareflag">
  592. <label ref="cdnm"/>
  593. <value ref="cdid"/>
  594. </itemset>
  595. </choices>
  596. </select1>
  597. <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; "/>
  598. <input id="ipt_acntcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/acntcd" class="input_essential" style="left:934px; top:127px; width:76px; height:19px; ">
  599. <script type="javascript" ev:event="xforms-value-changed">
  600. <![CDATA[
  601. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_acntcd.attribute("ref")) ,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
  602. model.refresh();
  603. model.setFocus("ipt_amtacnt");
  604. ]]>
  605. </script>
  606. <script type="javascript" ev:event="onkeydown">
  607. <![CDATA[
  608. if(event.keyCode == 9)
  609. {
  610. if(event.shiftKey)model.setFocus("cmb_lrgcd");
  611. else model.setFocus("ipt_amtacnt");
  612. }
  613. //event.preventDefault();
  614. ]]>
  615. </script>
  616. </input>
  617. <button id="btn_acntcd" class="icon_search" style="left:1012px; top:127px; width:16px; height:16px; ">
  618. <caption/>
  619. <script type="javascript" ev:event="DOMActivate">
  620. <![CDATA[
  621. rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","","");
  622. model.refresh();
  623. ]]>
  624. </script>
  625. </button>
  626. <input id="ipt_cnsttndeptcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptcd" class="input_default" style="left:934px; top:102px; width:76px; height:19px; ">
  627. <script type="javascript" ev:event="xforms-value-changed">
  628. <![CDATA[
  629. misfValidationCheck("02", "", "cnsttndeptcd,cnsttndeptnm" );
  630. model.refresh();
  631. ]]>
  632. </script>
  633. </input>
  634. <button id="btn_cnsttndeptcd" class="icon_search" style="left:1012px; top:104px; width:16px; height:16px; ">
  635. <caption/>
  636. <script type="javascript" ev:event="DOMActivate">
  637. <![CDATA[
  638. var recv_list = "cnsttndeptcd,cnsttndeptnm";
  639. misfOpenPopUpList("02", ipt_cnsttndeptcd,"", recv_list) ;
  640. model.refresh();
  641. ]]>
  642. </script>
  643. </button>
  644. <output id="opt_cnsttndeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptnm" class="output_fix" style="left:1031px; top:102px; width:150px; height:19px; "/>
  645. <datagrid id="grd_purccnsttn" nodeset="/root/main/list/purccnsttninfo/purccnsttnsublist" caption="이전 상태값^순번^계정과목코드^계정과목^구분^물품코드^물품코드^물품명^규격^모델^품의량^단위^BOX 단위^이전단가^조사단가1^조사단가2^조사단가3^조사단가4^조사단가5^품의단가^금액^계약일^계약번호^계약일련번호^제조사^제조사^신규여부^품의일^납품지시일^계약방법^팀구분^진행사항^비고^예산부서^품건명^소요일^공고번호^이전품의순번^이전품의일^품의번호^요구부서^요구부서^요구사항^납품기한^거래처^이전금액^총금액^작성자^메세지^구매요구일자^구매요구번호^구매요구일련번호^요구구매환산수량^고정자산구분^수리요구일^수리요구번호^수리일자^수리순번" colsep="^" colwidth="32, 55, 23, 77, 100, 94, 35, 109, 80, 80, 80, 56, 20, 80, 80, 80, 80, 17, 19, 80, 80, 22, 80, 19, 90, 79, 25, 22, 20, 15, 23, 19, 25, 21, 15, 23, 16, 16, 17, 17, 113, 100, 16, 18, 18, 17, 20, 18, 24, 14, 17, 21, 19, 36, 32, 35, 31, 34" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:260px; width:1190px; height:443px; font-weight:normal; text-align:center; ">
  646. <col ref="prestatus" visibility="hidden" style="text-align:center; "/>
  647. <col ref="purccnsttnseq" style="text-align:center; "/>
  648. <col ref="acntcd" visibility="hidden" style="text-align:center; "/>
  649. <col ref="acntnm" visibility="hidden" style="text-align:left; padding-left:10; "/>
  650. <col ref="cnsttndivflag" type="combo">
  651. <choices>
  652. <itemset nodeset="/root/init/cmb_cnsttndivflag/comcodelist">
  653. <label ref="cdnm"/>
  654. <value ref="cdid"/>
  655. </itemset>
  656. </choices>
  657. </col>
  658. <col ref="goodcd" visibility="hidden" style="text-align:center; "/>
  659. <col ref="allsizespecid" visibility="hidden" style="text-align:center; "/>
  660. <col ref="goodnm" type="input" style="text-align:left; padding-left:10; "/>
  661. <col ref="goodspec" type="input" style="text-align:left; padding-left:10; "/>
  662. <col ref="goodmodel" type="input" visibility="hidden" style="text-align:left; padding-left:10; "/>
  663. <col ref="cnsttnqty" type="input" format="#,###" style="text-align:right; "/>
  664. <col ref="cnsttnunit" type="input" style="text-align:left; padding-left:10; "/>
  665. <col ref="fullpurcunit" visibility="hidden" style="text-align:left; padding-left:10; "/>
  666. <col ref="bfcnsttngoodunitcost" type="output" format="#,###" style="text-align:right; "/>
  667. <col ref="cmpygoodunitcost1" type="input" format="#,###" style="text-align:right; "/>
  668. <col ref="cmpygoodunitcost2" type="input" format="#,###" style="text-align:right; "/>
  669. <col ref="cmpygoodunitcost3" type="input" format="#,###" style="text-align:right; "/>
  670. <col ref="cmpygoodunitcost4" visibility="hidden" format="#,###" style="text-align:right; "/>
  671. <col ref="cmpygoodunitcost5" visibility="hidden" format="#,###" style="text-align:right; "/>
  672. <col ref="cnsttngoodunitcost" type="input" format="#,###" style="text-align:right; "/>
  673. <col ref="cnsttnamt" format="#,###" style="text-align:right; "/>
  674. <col ref="purccondd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  675. <col ref="purcconno" style="text-align:center; "/>
  676. <col ref="purcconseq" visibility="hidden" style="text-align:center; "/>
  677. <col ref="prodcmpycd" type="inputbutton" visibility="hidden" style="text-align:center; "/>
  678. <col ref="prodcmpynm" visibility="hidden" style="text-align:left; padding-left:10; "/>
  679. <col ref="newyn" visibility="hidden" style="text-align:center; "/>
  680. <col ref="purccnsttndd" visibility="hidden" style="text-align:center; "/>
  681. <col ref="supdirecdd" visibility="hidden" style="text-align:center; "/>
  682. <col ref="conflag" visibility="hidden" style="text-align:center; "/>
  683. <col ref="teamflag" visibility="hidden" style="text-align:center; "/>
  684. <col ref="mdvan_send" visibility="hidden" style="text-align:center; "/>
  685. <col ref="cmt" visibility="hidden" style="text-align:center; "/>
  686. <col ref="cnsttndeptcd" visibility="hidden" style="text-align:center; "/>
  687. <col ref="goodcntnm" visibility="hidden" style="text-align:center; "/>
  688. <col ref="needterm" visibility="hidden" style="text-align:center; "/>
  689. <col ref="notino" visibility="hidden" style="text-align:center; "/>
  690. <col ref="old_gm_seq" visibility="hidden" style="text-align:center; "/>
  691. <col ref="old_gm_ymd" visibility="hidden" style="text-align:center; "/>
  692. <col ref="purccnsttnno" visibility="hidden" style="text-align:center; "/>
  693. <col ref="reqdeptcd" type="inputbutton" style="text-align:center; "/>
  694. <col ref="reqdeptnm" style="text-align:left; padding-left:10; "/>
  695. <col ref="reqresn" visibility="hidden" style="text-align:center; "/>
  696. <col ref="suplimdd" visibility="hidden" style="text-align:center; "/>
  697. <col ref="suplplcecd" visibility="hidden" style="text-align:center; "/>
  698. <col ref="totbfcnsttnamt" visibility="hidden" style="text-align:center; "/>
  699. <col ref="totcnsttnamt" visibility="hidden" style="text-align:center; "/>
  700. <col ref="writid" visibility="hidden" style="text-align:center; "/>
  701. <col ref="mdvan_message" visibility="hidden" style="text-align:center; "/>
  702. <col ref="purcdmnddd" visibility="hidden" style="text-align:center; "/>
  703. <col ref="purcdmndno" visibility="hidden" style="text-align:center; "/>
  704. <col ref="purcdmndseq" visibility="hidden" style="text-align:center; "/>
  705. <col ref="reqpackcntperunit" visibility="hidden" style="text-align:center; "/>
  706. <col ref="fixtrseqmtflag" visibility="hidden"/>
  707. <col ref="reqdd" visibility="hidden"/>
  708. <col ref="reqno" visibility="hidden"/>
  709. <col ref="rpirdd" visibility="hidden"/>
  710. <col ref="rpirseq" visibility="hidden"/>
  711. <script type="javascript" ev:event="onbuttonclick">
  712. <![CDATA[
  713. if (grd_purccnsttn.col == grd_purccnsttn.colRef("prodcmpycd")) {
  714. rszfOpenPopUpListByWndName(grd_purccnsttn,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  715. }
  716. if (grd_purccnsttn.col == grd_purccnsttn.colRef("reqdeptcd")) {
  717. misfOpenPopUpList("02", grd_purccnsttn,"", "reqdeptcd,reqdeptnm") ;
  718. }
  719. model.refresh();
  720. ]]>
  721. </script>
  722. <script type="javascript" ev:event="xforms-value-changed">
  723. <![CDATA[
  724. if( grd_purccnsttn.col == grd_purccnsttn.colRef("bfcnsttngoodunitcost")
  725. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost1")
  726. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost2")
  727. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost3")
  728. || grd_purccnsttn.col == grd_purccnsttn.colRef("cnsttngoodunitcost"))
  729. {
  730. fCalcAmt();
  731. fDispSumAmt();
  732. }
  733. ]]>
  734. </script>
  735. </datagrid>
  736. <caption id="caption7" class="cell_1" style="left:725px; top:200px; width:90px; height:23px; vertical-align:middle; ">환율</caption>
  737. <input id="input1" style="left:818px; top:204px; width:60px; height:19px; "/>
  738. <button id="btn_choiadd" class="btn2_letter3" style="left:1025px; top:70px; width:53px; height:19px; ">
  739. <caption>행추가</caption>
  740. <script type="javascript" ev:event="DOMActivate">
  741. <![CDATA[
  742. grd_purccnsttn.addRow(grd_purccnsttn.row);
  743. //grd_purccnsttn.isReadOnly(grd_purccnsttn.row , grd_purccnsttn.colRef("cnsttndivflag")) = false;
  744. fGetGoodcntnm();
  745. //fDelSetting(grd_purccnsttn);
  746. ]]>
  747. </script>
  748. </button>
  749. <select1 id="cmb_cnsttndivflag" visibility="hidden" appearance="minimal" style="left:750px; top:70px; width:100px; height:19px; ">
  750. <choices>
  751. <itemset>
  752. <label/>
  753. <value/>
  754. </itemset>
  755. </choices>
  756. </select1>
  757. <caption id="caption9" class="search_name" visibility="visible" style="left:130px; top:72px; width:114px; height:17px; ">품의 선택 :</caption>
  758. <select1 id="rdo_goodcd" ref="/root/main/list/cnsttnkindinfo/goodcd" visibility="visible" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:230px; top:72px; width:180px; height:15px; font-weight:bold; border-style:none; ">
  759. <choices>
  760. <item>
  761. <label>장비/공사/용역</label>
  762. <value>N</value>
  763. </item>
  764. <item>
  765. <label>수리</label>
  766. <value>Y</value>
  767. </item>
  768. </choices>
  769. <script type="javascript" ev:event="xforms-value-changed">
  770. <![CDATA[
  771. if (rdo_goodcd.value == "Y"){
  772. btn_purcdmnd.disabled = false;
  773. btn_choiadd.disabled = true;
  774. }else{
  775. btn_purcdmnd.disabled = true;
  776. btn_choiadd.disabled = false;
  777. }
  778. fViewOptionToggle("goodcd");
  779. ]]>
  780. </script>
  781. </select1>
  782. </group>
  783. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  784. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  785. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  786. <caption>초기화</caption>
  787. <script type="javascript" ev:event="DOMActivate">
  788. <![CDATA[
  789. fInitialize("01");
  790. //수리장비공사용역품의는 활성화 시켜야 함.
  791. ipt_goodcntnm.disabled = false;
  792. //행추가 disable
  793. btn_choiadd.disabled = true;
  794. //그리드상의 구분코드를 생성(
  795. misfGridComboComCdList("030M0009",grd_purccnsttn,"cnsttndivflag");
  796. ]]>
  797. </script>
  798. </button>
  799. <button id="btn_prnt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  800. <caption>출력</caption>
  801. <script type="javascript" ev:event="DOMActivate">
  802. <![CDATA[
  803. var nodelist = instance1.selectNodes("/root/main/list/purccnsttninfo/purccnsttnsublist").length;
  804. var conflag = model.getValue("/root/main/list/purccnsttninfo/purccnsttnmainlist/conflag");
  805. var cnsttndivflag = model.getValue("/root/main/list/purccnsttninfo/purccnsttnsublist/cnsttndivflag");
  806. //수리/장비/공사/용역 품의요구 관리는 요구부서를 합한다.
  807. var SumReqdeptnm = "";
  808. var SumCnsttnqty = 0;
  809. model.removeNodeset("/root/prtinfo/purccnsttninfo");
  810. model.makeNode("/root/prtinfo/purccnsttninfo");
  811. copyNodesetType("/root/prtinfo/purccnsttninfo","/root/main/list/purccnsttninfo","replace");
  812. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/conflagnm" ,cmb_conflag.label);
  813. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/goodcnt" ,nodelist);
  814. for(var k =grd_purccnsttn.fixedRows; k <grd_purccnsttn.rows;k++){
  815. SumCnsttnqty = SumCnsttnqty+parseFloat(grd_purccnsttn.valueMatrix(k,grd_purccnsttn.colRef("cnsttnqty")));
  816. if (k == 1){
  817. SumReqdeptnm = SumReqdeptnm +grd_purccnsttn.valueMatrix(k,grd_purccnsttn.colRef("reqdeptnm"));
  818. } else {
  819. SumReqdeptnm = SumReqdeptnm +","+grd_purccnsttn.valueMatrix(k,grd_purccnsttn.colRef("reqdeptnm"));
  820. }
  821. }
  822. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/sumcnsttnqty" ,SumCnsttnqty);
  823. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/reqdeptnm" ,SumReqdeptnm);
  824. if(cnsttndivflag=="0"){
  825. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm",cmb_conflag.label);
  826. }else if(cnsttndivflag=="1"){
  827. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","수리/구입");
  828. }else if(cnsttndivflag=="2"){
  829. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","장비구입/제조");
  830. }else if(cnsttndivflag=="3"){
  831. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","시설공사");
  832. }else if(cnsttndivflag=="4"){
  833. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","기술용역");
  834. }else if(cnsttndivflag=="5"){
  835. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","구입제조");
  836. }else if(cnsttndivflag=="6"){
  837. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","수리내역");
  838. }else if(cnsttndivflag=="7"){
  839. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","수리구입");
  840. }else if(cnsttndivflag=="8"){
  841. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","장비내역");
  842. }
  843. if(nodelist > 10 ){
  844. exeReportPreview("RPRSK00102","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  845. exeReportPreview("RPRSK00101","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  846. }else{
  847. exeReportPreview("RPRSK00100","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  848. }
  849. ]]>
  850. </script>
  851. </button>
  852. </group>
  853. </xhtml:body>
  854. </xhtml:html>