SMRSK00100_품의요구관리.xrw 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  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. <purccnsttnbugtinfo>
  44. <purccnsttnbugtlist/>
  45. </purccnsttnbugtinfo>
  46. </purccnsttninfo>
  47. <bfpurccnsttnmaininfo>
  48. <bfpurccnsttnmainlist/>
  49. </bfpurccnsttnmaininfo>
  50. <purccnsttnnoinfo>
  51. <maxpurccnsttnno>
  52. <purccnsttnno/>
  53. </maxpurccnsttnno>
  54. </purccnsttnnoinfo>
  55. </list>
  56. </main>
  57. <send>
  58. <search>
  59. <instcd/>
  60. <wareflag/>
  61. <purccnsttndd/>
  62. <purccnsttnno/>
  63. <teamflag/>
  64. </search>
  65. <stocsearch>
  66. <instcd/>
  67. <wareflag/>
  68. <winacnt/>
  69. </stocsearch>
  70. <save>
  71. <purccnsttnlist/>
  72. </save>
  73. <nosearch>
  74. <instcd/>
  75. <purccnsttndd/>
  76. </nosearch>
  77. </send>
  78. <init>
  79. </init>
  80. <temp>
  81. </temp>
  82. </root>
  83. </instance>
  84. <submission id="TRRSK00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purccnsttninfo"/>
  85. <submission id="TRRSK00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purccnsttnnoinfo"/>
  86. <submission id="TXRSK00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  87. </model>
  88. <script type="javascript" ev:event="xforms-ready">
  89. <![CDATA[
  90. //화면 Control을 초기화한다
  91. fInitialize("00");
  92. ]]>
  93. </script>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  97. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  100. <script type="javascript" src="../../../mis/purccnsttnweb/js/RSK0001.js"/>
  101. <script type="javascript">
  102. <![CDATA[
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body guideline="1,1332;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  108. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">품의요구 관리</caption>
  109. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  110. </group>
  111. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  112. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:48px; vertical-align:top; ">
  113. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  114. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  115. <button id="btn_search" class="btn1_letter2" style="left:1065px; top:7px; width:56px; height:22px; ">
  116. <caption>조회</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. fSearch("00");
  120. ]]>
  121. </script>
  122. </button>
  123. <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; ">
  124. <choices>
  125. <itemset nodeset="/root/main/init">
  126. <label ref="cnstnm"/>
  127. <value ref="cnstcd"/>
  128. </itemset>
  129. </choices>
  130. </select1>
  131. <caption id="cap_instcd" class="search_name" style="left:8px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  132. <input id="cal_purccnsttndd_search" ref="/root/send/search/purccnsttndd" navindex="1" inputtype="date" style="left:596px; top:10px; width:105px; height:19px; ">
  133. <script type="javascript" ev:event="xforms-value-changed">
  134. <![CDATA[
  135. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  136. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd_search.attribute("ref")));
  137. if (submit("TRRSK00102")){
  138. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  139. model.setValue(ipt_purccnsttnno_search.attribute("ref"), purccnsttnno);
  140. }
  141. model.setValue("/root/send/nosearch/instcd" , "");
  142. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  143. model.refresh();
  144. ]]>
  145. </script>
  146. </input>
  147. <caption id="caption20" class="search_name" style="left:505px; top:10px; width:96px; height:17px; vertical-align:middle; ">품의일자 :</caption>
  148. <line id="line30" class="line_4" style="x1:1055px; y1:3px; x2:1055px; y2:35px; "/>
  149. <caption id="caption2" class="search_name" style="left:250px; top:10px; width:106px; height:17px; ">창고 구분 :</caption>
  150. <select1 id="cmb_wareflag_search" ref="/root/send/search/wareflag" appearance="minimal" style="left:346px; top:10px; width:134px; height:19px; ">
  151. <choices>
  152. <itemset nodeset="/root/init/wareflag">
  153. <label ref="cdnm"/>
  154. <value ref="cdid"/>
  155. </itemset>
  156. </choices>
  157. </select1>
  158. <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; ">
  159. <script type="javascript" ev:event="onkeyup">
  160. <![CDATA[
  161. inputEnterKey("btn_search", "DOMActivate");
  162. ]]>
  163. </script>
  164. </input>
  165. <button id="btn_save" class="btn4_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
  166. <caption>저장</caption>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. fSave();
  170. ]]>
  171. </script>
  172. </button>
  173. <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; "/>
  174. </group>
  175. <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1190px; y2:93px; "/>
  176. <caption id="caption1" class="tit_2" style="left:0px; top:74px; width:180px; height:13px; ">품의요구 관리</caption>
  177. <button id="btn_choidel" class="btn2_letter3" style="left:1082px; top:71px; width:53px; height:19px; ">
  178. <caption>행삭제</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. fRowDel();
  182. fDispSumAmt();
  183. //fDelSetting(grd_purccnsttn);
  184. ]]>
  185. </script>
  186. </button>
  187. <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:71px; width:42px; height:19px; ">
  188. <caption>엑셀</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. misfSaveExcel(grd_purccnsttn);
  192. ]]>
  193. </script>
  194. </button>
  195. <caption id="cap_purccnsttndd" class="cell_1" style="left:0px; top:100px; width:90px; height:23px; vertical-align:middle; ">품의일/NO</caption>
  196. <line id="line2" class="line_1" style="x1:0px; y1:280px; x2:1190px; y2:280px; "/>
  197. <button id="btn_purcdmnd" class="btn2_letter4" style="left:1015px; top:71px; width:64px; height:19px; ">
  198. <caption>구매요구</caption>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. if (fDataValiChk() == false) return;
  202. model.removenode("/root/copynode");
  203. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  204. model.makeNode("/root/copynode");
  205. setParameter("para_acntcd" , model.getValue(ipt_acntcd.attribute("ref")));
  206. // 자산구분 - 의료소모품(1) - 기존 Y
  207. // 약품 (3)
  208. // 식재료 (4)
  209. setParameter("para_purcpgmgubn" , "1");
  210. modal("SMRSK00200");
  211. var cur_row = grd_purccnsttn.row;
  212. var status = grd_purccnsttn.valueMatrix(cur_row, grd_purccnsttn.colRef("m"));
  213. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  214. setCSVToNode("/root/copynode", CSV, "purccnsttnsublist");
  215. fDataSet("/root/copynode", "purccnsttnsublist");
  216. for(var i=grd_purccnsttn.fixedRows; i < grd_purccnsttn.rows;i++){
  217. var reqpackcnt = parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("reqpackcnt")));
  218. var reqpackcntperunit = parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("reqpackcntperunit")));
  219. var cnsttngoodunitcost = parseFloat(grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttngoodunitcost")));
  220. grd_purccnsttn.valueMatrix(i, grd_purccnsttn.colRef("cnsttnamt")) = cnsttngoodunitcost * (reqpackcnt * reqpackcntperunit);
  221. }
  222. if (grd_purccnsttn.rows - grd_purccnsttn.fixedRows == 0){
  223. ipt_acntcd.disabled = false;
  224. btn_acntcd.disabled = false;
  225. }else{
  226. fGetGoodcntnm();
  227. ipt_acntcd.disabled = true;
  228. btn_acntcd.disabled = true;
  229. }
  230. for (var i = grd_purccnsttn.fixedRows; i <= grd_purccnsttn.rows ; i++) {
  231. 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")));
  232. }
  233. fDispSumAmt();
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </button>
  238. <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; "/>
  239. <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; ">
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  243. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd.attribute("ref")));
  244. if (submit("TRRSK00102")){
  245. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  246. model.setValue(ipt_purccnsttnno.attribute("ref"), purccnsttnno);
  247. }
  248. model.setValue("/root/send/nosearch/instcd" , "");
  249. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  250. model.refresh();
  251. ]]>
  252. </script>
  253. </input>
  254. <button id="btn_insert" class="btn2_letter2" style="left:969px; top:71px; width:42px; height:19px; ">
  255. <caption>입력</caption>
  256. <script type="javascript" ev:event="DOMActivate">
  257. <![CDATA[
  258. fInpt("00");
  259. model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  260. model.setValue(opt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  261. model.refresh();
  262. ]]>
  263. </script>
  264. </button>
  265. <input id="ipt_newyn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/newyn" class="input_default" disabled="true" visibility="hidden" maxlength="1" style="left:109px; top:72px; width:61px; height:19px; text-align:center; "/>
  266. <select id="chk_updtgoodcntyn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/updtgoodcntyn" overflow="visible" appearance="full" style="left:300px; top:72px; width:15px; height:15px; border-style:none; ">
  267. <choices>
  268. <item>
  269. <label/>
  270. <value>Y</value>
  271. </item>
  272. </choices>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. var updtgoodcntyn = model.getValue(chk_updtgoodcntyn.attribute("ref"));
  276. if (updtgoodcntyn == "Y"){
  277. ipt_goodcntnm.disabled = "false";
  278. }else{
  279. ipt_goodcntnm.disabled = "true";
  280. }
  281. ]]>
  282. </script>
  283. </select>
  284. <select id="chk_sklabr" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/sklabr" overflow="visible" appearance="full" style="left:475px; top:72px; width:15px; height:15px; border-style:none; ">
  285. <choices>
  286. <item>
  287. <label/>
  288. <value>Y</value>
  289. </item>
  290. </choices>
  291. </select>
  292. <caption id="caption3" class="search_name" style="left:190px; top:72px; width:114px; height:17px; ">품건명 수정 :</caption>
  293. <caption id="caption5" class="search_name" style="left:375px; top:72px; width:100px; height:17px; ">기술/용역 :</caption>
  294. <caption id="caption36" class="cell_1" style="left:304px; top:100px; width:90px; height:23px; vertical-align:middle; ">팀구분</caption>
  295. <caption id="caption8" class="cell_1" style="left:535px; top:100px; width:90px; height:23px; vertical-align:middle; ">계약방법</caption>
  296. <line id="line18" class="line_2" style="x1:0px; y1:124px; x2:1195px; y2:124px; "/>
  297. <caption id="cap_reqdeptcd" class="cell_1" style="left:840px; top:100px; width:90px; height:23px; vertical-align:middle; ">예산부서</caption>
  298. <line id="line8" class="line_2" style="x1:0px; y1:227px; x2:1190px; y2:227px; "/>
  299. <line id="line9" class="line_2" style="x1:0px; y1:253px; x2:1190px; y2:253px; "/>
  300. <input id="ipt_goodcntnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/goodcntnm" class="input_default" disabled="true" style="left:93px; top:152px; width:567px; height:19px; ">
  301. <script type="javascript" ev:event="xforms-value-changed">
  302. <![CDATA[
  303. ]]>
  304. </script>
  305. </input>
  306. <input id="ipt_needterm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/needterm" class="input_default" style="left:759px; top:152px; width:76px; height:19px; text-align:right; ">
  307. <script type="javascript" ev:event="xforms-value-changed">
  308. <![CDATA[
  309. ]]>
  310. </script>
  311. </input>
  312. <input id="ipt_cmt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cmt" class="input_default" disabled="false" style="left:93px; top:231px; width:1087px; height:19px; text-align:left; padding-left:10; "/>
  313. <input id="ipt_mdvan_message" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/mdvan_message" class="input_default" disabled="true" style="left:93px; top:257px; width:1087px; height:19px; text-align:center; "/>
  314. <input id="ipt_reqdeptcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqdeptcd" class="input_default" style="left:934px; top:152px; width:76px; height:19px; ">
  315. <script type="javascript" ev:event="xforms-value-changed">
  316. <![CDATA[
  317. ]]>
  318. </script>
  319. </input>
  320. <caption id="caption21" class="cell_1" style="left:0px; top:203px; width:90px; height:23px; vertical-align:middle; ">이전금액</caption>
  321. <button id="btn_suplplcecd" class="icon_search" style="left:630px; top:180px; width:16px; height:16px; ">
  322. <caption/>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </button>
  330. <caption id="caption10" class="cell_1" style="left:535px; top:125px; width:90px; height:23px; vertical-align:middle; ">작성자</caption>
  331. <input id="ipt_writid" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/writid" class="input_search" style="left:630px; top:127px; width:75px; height:19px; ">
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. if(ipt_writnm.value.length == 0)
  335. ipt_writnm.value = "";
  336. else
  337. misfValidationCheck("01-1", "", "writid,writnm");
  338. model.refresh();
  339. //btn_search.dispatch("DOMActivate");
  340. ]]>
  341. </script>
  342. </input>
  343. <button id="btn_writid" class="icon_search" style="left:711px; top:127px; width:16px; height:16px; ">
  344. <caption/>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. misfOpenPopUpList("01", ipt_writid, "", "writid,writnm");
  348. model.refresh();
  349. // btn_search.dispatch("DOMActivate");
  350. ]]>
  351. </script>
  352. </button>
  353. <caption id="caption22" class="cell_1" style="left:245px; top:203px; width:90px; height:23px; vertical-align:middle; ">총금액</caption>
  354. <input id="ipt_suplimdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplimdd" inputtype="date" style="left:328px; top:178px; width:122px; height:19px; ">
  355. <script type="javascript" ev:event="xforms-value-changed">
  356. <![CDATA[
  357. ]]>
  358. </script>
  359. </input>
  360. <caption id="caption11" class="cell_1" style="left:840px; top:125px; width:90px; height:23px; vertical-align:middle; ">계정과목</caption>
  361. <caption id="caption12" class="cell_1" style="left:0px; top:151px; width:90px; height:23px; vertical-align:middle; ">품건명</caption>
  362. <caption id="caption24" class="cell_1" style="left:840px; top:203px; width:130px; height:23px; vertical-align:middle; ">이전품의일/SEQ</caption>
  363. <input id="ipt_notino" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/notino" class="input_default" disabled="true" style="left:934px; top:177px; width:56px; height:19px; ">
  364. <script type="javascript" ev:event="xforms-value-changed">
  365. <![CDATA[
  366. ]]>
  367. </script>
  368. </input>
  369. <caption id="caption13" class="cell_1" style="left:665px; top:151px; width:90px; height:23px; vertical-align:middle; ">소요일</caption>
  370. <caption id="caption25" class="cell_1" style="left:0px; top:229px; width:90px; height:23px; vertical-align:middle; ">비고</caption>
  371. <caption id="caption14" class="cell_1" style="left:840px; top:151px; width:90px; height:23px; vertical-align:middle; ">요구부서</caption>
  372. <caption id="caption26" class="cell_1" style="left:0px; top:256px; width:90px; height:23px; vertical-align:middle; ">Message</caption>
  373. <input id="ipt_totbfcnsttnamt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/totbfcnsttnamt" class="input_default" disabled="true" format="#,###" style="left:93px; top:205px; width:146px; height:19px; text-align:right; "/>
  374. <caption id="caption15" class="cell_1" style="left:0px; top:176px; width:90px; height:23px; vertical-align:middle; ">납품지시일</caption>
  375. <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; ">
  376. <script type="javascript" ev:event="xforms-value-changed">
  377. <![CDATA[
  378. if(ipt_winpsnnm.value.length == 0)
  379. ipt_writid.value = "";
  380. else
  381. misfValidationCheck("01-2", "", "writid,writnm");
  382. model.refresh();
  383. // btn_search.dispatch("DOMActivate");
  384. ]]>
  385. </script>
  386. </input>
  387. <caption id="caption37" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">요구사항</caption>
  388. <input id="ipt_totcnsttnamt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/totcnsttnamt" class="input_default" disabled="true" format="#,###" style="left:338px; top:205px; width:146px; height:19px; text-align:right; "/>
  389. <caption id="caption16" class="cell_1" style="left:235px; top:176px; width:90px; height:23px; vertical-align:middle; ">납품기한</caption>
  390. <line id="line3" class="line_2" style="x1:0px; y1:149px; x2:650px; y2:149px; "/>
  391. <line id="line4" class="line_2" style="x1:0px; y1:149px; x2:1190px; y2:149px; "/>
  392. <input id="ipt_old_gm_ymd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/old_gm_ymd" class="input_default" disabled="true" style="left:974px; top:205px; width:146px; height:19px; text-align:center; "/>
  393. <caption id="caption17" class="cell_1" style="left:458px; top:176px; width:90px; height:23px; vertical-align:middle; ">거래처</caption>
  394. <line id="line5" class="line_2" style="x1:0px; y1:174px; x2:1190px; y2:174px; "/>
  395. <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; "/>
  396. <caption id="caption18" class="cell_1" style="left:840px; top:176px; width:90px; height:23px; vertical-align:middle; ">공고번호</caption>
  397. <line id="line6" class="line_2" style="x1:0px; y1:200px; x2:1190px; y2:200px; "/>
  398. <caption id="caption19" class="cell_1" style="left:995px; top:176px; width:70px; height:23px; vertical-align:middle; ">진행사항</caption>
  399. <output id="opt_suplplcenm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcenm" class="output_fix" style="left:649px; top:178px; width:186px; height:19px; "/>
  400. <input id="ipt_reqresn" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqresn" class="input_default" style="left:93px; top:127px; width:437px; height:19px; ">
  401. <script type="javascript" ev:event="xforms-value-changed">
  402. <![CDATA[
  403. ]]>
  404. </script>
  405. </input>
  406. <select1 id="cmb_conflag" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/conflag" appearance="minimal" style="left:630px; top:102px; width:205px; height:19px; ">
  407. <choices>
  408. <itemset nodeset="/root/init/wareflag">
  409. <label ref="cdnm"/>
  410. <value ref="cdid"/>
  411. </itemset>
  412. </choices>
  413. </select1>
  414. <output id="opt_reqdeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqdeptnm" class="output_fix" style="left:1031px; top:152px; width:150px; height:19px; "/>
  415. <button id="btn_reqdeptcd" class="icon_search" style="left:1012px; top:153px; width:16px; height:16px; ">
  416. <caption/>
  417. <script type="javascript" ev:event="DOMActivate">
  418. <![CDATA[
  419. var recv_list = "reqdeptcd,reqdeptnm";
  420. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, cmb_instcd.value, "instcd") ;
  421. model.refresh();
  422. ]]>
  423. </script>
  424. </button>
  425. <input id="cal_supdirecdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/supdirecdd" inputtype="date" style="left:93px; top:178px; width:137px; height:19px; ">
  426. <script type="javascript" ev:event="xforms-value-changed">
  427. <![CDATA[
  428. ]]>
  429. </script>
  430. </input>
  431. <input id="ipt_suplplcecd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcecd" class="input_default" style="left:552px; top:178px; width:76px; height:19px; ">
  432. <script type="javascript" ev:event="xforms-value-changed">
  433. <![CDATA[
  434. if(ipt_suplplcecd.value.length == 0)
  435. ipt_suplplcenm.value = "";
  436. else
  437. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  438. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  439. ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
  440. model.refresh();
  441. ]]>
  442. </script>
  443. </input>
  444. <select1 id="cmb_teamflag" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/teamflag" appearance="minimal" style="left:398px; top:102px; width:132px; height:19px; ">
  445. <choices>
  446. <itemset nodeset="/root/init/wareflag">
  447. <label ref="cdnm"/>
  448. <value ref="cdid"/>
  449. </itemset>
  450. </choices>
  451. </select1>
  452. <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; ">
  453. <choices>
  454. <itemset nodeset="/root/init/wareflag">
  455. <label ref="cdnm"/>
  456. <value ref="cdid"/>
  457. </itemset>
  458. </choices>
  459. </select1>
  460. <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; "/>
  461. <input id="ipt_acntcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/acntcd" class="input_essential" style="left:934px; top:127px; width:76px; height:19px; ">
  462. <script type="javascript" ev:event="xforms-value-changed">
  463. <![CDATA[
  464. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_acntcd.attribute("ref")) ,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
  465. model.refresh();
  466. model.setFocus("ipt_amtacnt");
  467. ]]>
  468. </script>
  469. <script type="javascript" ev:event="onkeydown">
  470. <![CDATA[
  471. if(event.keyCode == 9)
  472. {
  473. if(event.shiftKey)model.setFocus("cmb_lrgcd");
  474. else model.setFocus("ipt_amtacnt");
  475. }
  476. //event.preventDefault();
  477. ]]>
  478. </script>
  479. </input>
  480. <button id="btn_acntcd" class="icon_search" style="left:1012px; top:127px; width:16px; height:16px; ">
  481. <caption/>
  482. <script type="javascript" ev:event="DOMActivate">
  483. <![CDATA[
  484. rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","","");
  485. model.refresh();
  486. ]]>
  487. </script>
  488. </button>
  489. <input id="ipt_cnsttndeptcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptcd" class="input_default" style="left:934px; top:102px; width:76px; height:19px; ">
  490. <script type="javascript" ev:event="xforms-value-changed">
  491. <![CDATA[
  492. misfValidationCheck("02", "", "cnsttndeptcd,cnsttndeptnm" );
  493. model.refresh();
  494. ]]>
  495. </script>
  496. </input>
  497. <button id="btn_cnsttndeptcd" class="icon_search" style="left:1012px; top:104px; width:16px; height:16px; ">
  498. <caption/>
  499. <script type="javascript" ev:event="DOMActivate">
  500. <![CDATA[
  501. var recv_list = "cnsttndeptcd,cnsttndeptnm";
  502. misfOpenPopUpList("02", ipt_cnsttndeptcd,"", recv_list) ;
  503. model.refresh();
  504. ]]>
  505. </script>
  506. </button>
  507. <output id="opt_cnsttndeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptnm" class="output_fix" style="left:1031px; top:102px; width:150px; height:19px; "/>
  508. <datagrid id="grd_purccnsttn" nodeset="/root/main/list/purccnsttninfo/purccnsttnsublist" caption="이전 상태값^순번^계정과목코드^계정과목^물품코드^물품코드^물품명^규격^모델^품의량^단위^BOX 단위^이전단가^조사단가1^조사단가2^조사단가3^조사단가4^조사단가5^품의단가^금액^계약일자^계약번호^계약순번^제조사^제조사^신규여부^품의일^납품지시일^계약방법^팀구분^진행사항^비고^예산부서^품건명^소요일^공고번호^이전품의순번^이전품의일^품의번호^요구부서^요구사항^납품기한^거래처^이전금액^총금액^작성자^메세지^구매요구일자^구매요구번호^구매요구일련번호^요구구매환산수량^이전품의수량^이전품의금액^이전총품의금액" colsep="^" colwidth="32, 55, 23, 77, 94, 35, 109, 80, 80, 80, 56, 20, 80, 80, 80, 80, 17, 19, 80, 80, 80, 69, 60, 90, 79, 25, 22, 20, 15, 23, 19, 25, 21, 15, 23, 16, 16, 17, 17, 17, 16, 18, 18, 17, 20, 18, 24, 14, 17, 21, 19, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:287px; width:1190px; height:443px; font-weight:normal; text-align:center; ">
  509. <col ref="prestatus" visibility="hidden" style="text-align:center; "/>
  510. <col ref="purccnsttnseq" style="text-align:center; "/>
  511. <col ref="acntcd" visibility="hidden" style="text-align:center; "/>
  512. <col ref="acntnm" style="text-align:left; padding-left:10; "/>
  513. <col ref="goodcd" style="text-align:center; "/>
  514. <col ref="allsizespecid" style="text-align:center; "/>
  515. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  516. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  517. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  518. <col ref="cnsttnqty" format="#,###" style="text-align:right; "/>
  519. <col ref="cnsttnunit" style="text-align:left; padding-left:10; "/>
  520. <col ref="fullpurcunit" visibility="hidden" style="text-align:left; padding-left:10; "/>
  521. <col ref="bfcnsttngoodunitcost" type="output" format="#,###" style="text-align:right; "/>
  522. <col ref="cmpygoodunitcost1" type="input" format="#,###" style="text-align:right; "/>
  523. <col ref="cmpygoodunitcost2" type="input" format="#,###" style="text-align:right; "/>
  524. <col ref="cmpygoodunitcost3" type="input" format="#,###" style="text-align:right; "/>
  525. <col ref="cmpygoodunitcost4" visibility="hidden" format="#,###" style="text-align:right; "/>
  526. <col ref="cmpygoodunitcost5" visibility="hidden" format="#,###" style="text-align:right; "/>
  527. <col ref="cnsttngoodunitcost" type="input" format="#,###" style="text-align:right; "/>
  528. <col ref="cnsttnamt" format="#,###" style="text-align:right; "/>
  529. <col ref="purccondd" visibility="visible" format="yyyy-mm-dd" style="text-align:center; "/>
  530. <col ref="purcconno" style="text-align:center; "/>
  531. <col ref="purcconseq" visibility="visible" style="text-align:center; "/>
  532. <col ref="prodcmpycd" type="inputbutton" style="text-align:center; "/>
  533. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  534. <col ref="newyn" visibility="hidden" style="text-align:center; "/>
  535. <col ref="purccnsttndd" visibility="hidden" style="text-align:center; "/>
  536. <col ref="supdirecdd" visibility="hidden" style="text-align:center; "/>
  537. <col ref="conflag" visibility="hidden" style="text-align:center; "/>
  538. <col ref="teamflag" visibility="hidden" style="text-align:center; "/>
  539. <col ref="mdvan_send" visibility="hidden" style="text-align:center; "/>
  540. <col ref="cmt" visibility="hidden" style="text-align:center; "/>
  541. <col ref="cnsttndeptcd" visibility="hidden" style="text-align:center; "/>
  542. <col ref="goodcntnm" visibility="hidden" style="text-align:center; "/>
  543. <col ref="needterm" visibility="hidden" style="text-align:center; "/>
  544. <col ref="notino" visibility="hidden" style="text-align:center; "/>
  545. <col ref="old_gm_seq" visibility="hidden" style="text-align:center; "/>
  546. <col ref="old_gm_ymd" visibility="hidden" style="text-align:center; "/>
  547. <col ref="purccnsttnno" visibility="hidden" style="text-align:center; "/>
  548. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  549. <col ref="reqresn" visibility="hidden" style="text-align:center; "/>
  550. <col ref="suplimdd" visibility="hidden" style="text-align:center; "/>
  551. <col ref="suplplcecd" visibility="hidden" style="text-align:center; "/>
  552. <col ref="totbfcnsttnamt" visibility="hidden" style="text-align:center; "/>
  553. <col ref="totcnsttnamt" visibility="hidden" style="text-align:center; "/>
  554. <col ref="writid" visibility="hidden" style="text-align:center; "/>
  555. <col ref="mdvan_message" visibility="hidden" style="text-align:center; "/>
  556. <col ref="purcdmnddd" visibility="hidden" style="text-align:center; "/>
  557. <col ref="purcdmndno" visibility="hidden" style="text-align:center; "/>
  558. <col ref="purcdmndseq" visibility="hidden" style="text-align:center; "/>
  559. <col ref="reqpackcntperunit" visibility="hidden" style="text-align:center; "/>
  560. <col ref="bfcnsttnqty" visibility="hidden" style="text-align:center; "/>
  561. <col ref="bfcnsttnamt" visibility="hidden" style="text-align:center; "/>
  562. <col ref="bftotcnsttnamt" visibility="hidden" style="text-align:center; "/>
  563. <script type="javascript" ev:event="onbuttonclick">
  564. <![CDATA[
  565. if (grd_purccnsttn.col == grd_purccnsttn.colRef("prodcmpycd")) {
  566. rszfOpenPopUpListByWndName(grd_purccnsttn,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  567. }
  568. model.refresh();
  569. ]]>
  570. </script>
  571. <script type="javascript" ev:event="xforms-value-changed">
  572. <![CDATA[
  573. if( grd_purccnsttn.col == grd_purccnsttn.colRef("bfcnsttngoodunitcost")
  574. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost1")
  575. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost2")
  576. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost3")
  577. || grd_purccnsttn.col == grd_purccnsttn.colRef("cnsttngoodunitcost"))
  578. {
  579. fCalcAmt();
  580. fDispSumAmt();
  581. }
  582. ]]>
  583. </script>
  584. </datagrid>
  585. </group>
  586. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  587. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  588. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  589. <caption>초기화</caption>
  590. <script type="javascript" ev:event="DOMActivate">
  591. <![CDATA[
  592. fInitialize("00");
  593. ]]>
  594. </script>
  595. </button>
  596. <button id="btn_prnt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  597. <caption>출력</caption>
  598. <script type="javascript" ev:event="DOMActivate">
  599. <![CDATA[
  600. var nodelist = instance1.selectNodes("/root/main/list/purccnsttninfo/purccnsttnsublist").length;
  601. var conflag = model.getValue("/root/main/list/purccnsttninfo/purccnsttnmainlist/conflag");
  602. var SumCnsttnqty = 0;
  603. model.removeNodeset("/root/prtinfo/purccnsttninfo");
  604. model.makeNode("/root/prtinfo/purccnsttninfo");
  605. copyNodesetType("/root/prtinfo/purccnsttninfo","/root/main/list/purccnsttninfo","replace");
  606. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/conflagnm" ,cmb_conflag.label);
  607. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/goodcnt" ,nodelist);
  608. for(var k =grd_purccnsttn.fixedRows; k <grd_purccnsttn.rows;k++){
  609. SumCnsttnqty = SumCnsttnqty+parseFloat(grd_purccnsttn.valueMatrix(k,grd_purccnsttn.colRef("cnsttnqty")));
  610. }
  611. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/sumcnsttnqty" ,SumCnsttnqty);
  612. if(conflag=="02"){
  613. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm",cmb_conflag.label);
  614. }else{
  615. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm","물품구입/제조");
  616. }
  617. if(nodelist > 10 ){
  618. exeReportPreview("RPRSK00102","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  619. exeReportPreview("RPRSK00101","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  620. }else{
  621. exeReportPreview("RPRSK00100","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  622. }
  623. ]]>
  624. </script>
  625. </button>
  626. <button id="button1" class="btn6_letter5" style="left:60px; top:5px; width:85px; height:22px; ">
  627. <caption>견적요청서</caption>
  628. <script type="javascript" ev:event="DOMActivate">
  629. <![CDATA[
  630. var nodelist = instance1.selectNodes("/root/main/list/purccnsttninfo/purccnsttnsublist").length;
  631. var conflag = model.getValue("/root/main/list/purccnsttninfo/purccnsttnmainlist/conflag");
  632. var SumCnsttnqty = 0;
  633. model.removeNodeset("/root/prtinfo/purccnsttninfo");
  634. model.makeNode("/root/prtinfo/purccnsttninfo");
  635. copyNodesetType("/root/prtinfo/purccnsttninfo","/root/main/list/purccnsttninfo","replace");
  636. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/conflagnm" ,cmb_conflag.label);
  637. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/goodcnt" ,nodelist);
  638. for(var k =grd_purccnsttn.fixedRows; k <grd_purccnsttn.rows;k++){
  639. SumCnsttnqty = SumCnsttnqty+parseFloat(grd_purccnsttn.valueMatrix(k,grd_purccnsttn.colRef("cnsttnqty")));
  640. }
  641. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/sumcnsttnqty" ,SumCnsttnqty);
  642. exeReportPreview("RPRSK00103","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  643. ]]>
  644. </script>
  645. </button>
  646. <button id="button2" class="btn6_letter6" style="left:155px; top:5px; width:96px; height:22px; ">
  647. <caption>조사가격조서</caption>
  648. <script type="javascript" ev:event="DOMActivate">
  649. <![CDATA[
  650. var nodelist = instance1.selectNodes("/root/main/list/purccnsttninfo/purccnsttnsublist").length;
  651. var conflag = model.getValue("/root/main/list/purccnsttninfo/purccnsttnmainlist/conflag");
  652. var SumCnsttnqty = 0;
  653. model.removeNodeset("/root/prtinfo/purccnsttninfo");
  654. model.makeNode("/root/prtinfo/purccnsttninfo");
  655. copyNodesetType("/root/prtinfo/purccnsttninfo","/root/main/list/purccnsttninfo","replace");
  656. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/conflagnm" ,cmb_conflag.label);
  657. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/goodcnt" ,nodelist);
  658. for(var k =grd_purccnsttn.fixedRows; k <grd_purccnsttn.rows;k++){
  659. SumCnsttnqty = SumCnsttnqty+parseFloat(grd_purccnsttn.valueMatrix(k,grd_purccnsttn.colRef("cnsttnqty")));
  660. }
  661. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/sumcnsttnqty" ,SumCnsttnqty);
  662. exeReportPreview("RPRSK00104","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  663. ]]>
  664. </script>
  665. </button>
  666. </group>
  667. </xhtml:body>
  668. </xhtml:html>