SMRSK01000_단가납품지시.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <acntcd/>
  16. <suplimdd/>
  17. <cnsttndeptcd/>
  18. <goodcntnm/>
  19. <purccnsttnno/>
  20. <reqdeptcd/>
  21. <suplplcecd/>
  22. <totcnsttnamt/>
  23. <writid/>
  24. <writnm/>
  25. <acntnm/>
  26. <cnsttndeptnm/>
  27. <reqdeptnm/>
  28. <suplplcenm/>
  29. <newyn/>
  30. <suppos/>
  31. <purccondd/>
  32. <purcconno/>
  33. <purcdmnddd/>
  34. <purcdmndno/>
  35. </purccnsttnmainlist>
  36. <purccnsttnsublist/>
  37. <purccnsttnbugtinfo>
  38. <purccnsttnbugtlist/>
  39. </purccnsttnbugtinfo>
  40. </purccnsttninfo>
  41. <bfpurccnsttnmaininfo>
  42. <bfpurccnsttnmainlist/>
  43. </bfpurccnsttnmaininfo>
  44. <purccnsttnnoinfo>
  45. <maxpurccnsttnno>
  46. <purccnsttnno/>
  47. </maxpurccnsttnno>
  48. </purccnsttnnoinfo>
  49. <purcdmndsubinfo/>
  50. </list>
  51. </main>
  52. <send>
  53. <search>
  54. <instcd/>
  55. <wareflag/>
  56. <purccnsttndd/>
  57. <purccnsttnno/>
  58. </search>
  59. <save>
  60. <purccnsttnlist/>
  61. </save>
  62. <nosearch>
  63. <instcd/>
  64. <purcdmnddd/>
  65. <purccnsttndd/>
  66. <purccondd/>
  67. </nosearch>
  68. <dmndsubsearch>
  69. <instcd/>
  70. <purcdmnddd/>
  71. <purcdmndno/>
  72. </dmndsubsearch>
  73. <dmndmainsearch>
  74. <instcd/>
  75. <purcdmndddfr/>
  76. <purcdmndddto/>
  77. <purcdmndno/>
  78. </dmndmainsearch>
  79. </send>
  80. <init>
  81. </init>
  82. <temp>
  83. </temp>
  84. </root>
  85. </instance>
  86. <submission id="TRRSR10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purcdmndnoinfo"/>
  87. <submission id="TRRSK00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purccnsttninfo"/>
  88. <submission id="TRRSK00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purccnsttnnoinfo"/>
  89. <submission id="TRRSK00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dmndmainsearch" resultref="/root/main/list/purcdmndmaininfo"/>
  90. <submission id="TRRSK01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dmndsubsearch" resultref="/root/main/list/purcdmndsubinfo"/>
  91. <submission id="TRRSP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purcconnoinfo"/>
  92. <submission id="TXRSK01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  93. </model>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. //화면 Control을 초기화한다
  97. fInitialize("00");
  98. ]]>
  99. </script>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  103. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../mis/purccnsttnweb/js/RSK0001.js"/>
  107. <script type="javascript" src="../../../mis/purccnsttnweb/js/SMRSK01000.js"/>
  108. <script type="javascript">
  109. <![CDATA[
  110. ]]>
  111. </script>
  112. </xhtml:head>
  113. <xhtml:body guideline="1,1332;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  114. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  115. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">단가납품지시</caption>
  116. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  117. </group>
  118. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  119. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:48px; vertical-align:top; ">
  120. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  121. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  122. <button id="btn_search" class="btn1_letter2" style="left:1065px; top:7px; width:56px; height:22px; ">
  123. <caption>조회</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. fSearch();
  127. cal_purcdmnddd.disabled = true;
  128. ipt_purcdmndno.disabled = true;
  129. //cal_purccondd.disabled = true;
  130. //ipt_purcconno.disabled = true;
  131. ]]>
  132. </script>
  133. </button>
  134. <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; ">
  135. <choices>
  136. <itemset nodeset="/root/main/init">
  137. <label ref="cnstnm"/>
  138. <value ref="cnstcd"/>
  139. </itemset>
  140. </choices>
  141. </select1>
  142. <caption id="cap_instcd" class="search_name" style="left:8px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  143. <input id="cal_purccnsttndd_search" ref="/root/send/search/purccnsttndd" navindex="1" inputtype="date" style="left:596px; top:10px; width:105px; height:19px; ">
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  147. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd_search.attribute("ref")));
  148. if (submit("TRRSK00102")){
  149. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  150. model.setValue(ipt_purccnsttnno_search.attribute("ref"), purccnsttnno);
  151. }
  152. model.setValue("/root/send/nosearch/instcd" , "");
  153. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  154. model.refresh();
  155. ]]>
  156. </script>
  157. </input>
  158. <caption id="caption20" class="search_name" style="left:505px; top:10px; width:96px; height:17px; vertical-align:middle; ">품의일자 :</caption>
  159. <line id="line30" class="line_4" style="x1:1055px; y1:3px; x2:1055px; y2:35px; "/>
  160. <caption id="caption2" class="search_name" style="left:250px; top:10px; width:106px; height:17px; ">창고 구분 :</caption>
  161. <select1 id="cmb_wareflag_search" ref="/root/send/search/wareflag" appearance="minimal" style="left:346px; top:10px; width:134px; height:19px; ">
  162. <choices>
  163. <itemset nodeset="/root/init/wareflag">
  164. <label ref="cdnm"/>
  165. <value ref="cdid"/>
  166. </itemset>
  167. </choices>
  168. </select1>
  169. <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; ">
  170. <script type="javascript" ev:event="onkeyup">
  171. <![CDATA[
  172. inputEnterKey("btn_search", "DOMActivate");
  173. ]]>
  174. </script>
  175. </input>
  176. <button id="btn_save" class="btn4_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
  177. <caption>저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. fSave();
  181. ]]>
  182. </script>
  183. </button>
  184. </group>
  185. <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1190px; y2:93px; "/>
  186. <caption id="caption1" class="tit_2" style="left:0px; top:74px; width:180px; height:13px; ">품의요구 관리</caption>
  187. <button id="btn_choidel" class="btn2_letter3" style="left:1082px; top:71px; width:53px; height:19px; ">
  188. <caption>행삭제</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fRowDel();
  192. //fDelSetting(grd_purccnsttn);
  193. ]]>
  194. </script>
  195. </button>
  196. <button id="btn_excel" class="btn2_letter2" style="left:1140px; top:71px; width:42px; height:19px; ">
  197. <caption>엑셀</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. misfSaveExcel(grd_purccnsttn);
  201. ]]>
  202. </script>
  203. </button>
  204. <caption id="cap_purccnsttndd" class="cell_1" style="left:0px; top:100px; width:90px; height:23px; vertical-align:middle; ">품의일/NO</caption>
  205. <line id="line2" class="line_1" style="x1:0px; y1:200px; x2:1190px; y2:200px; "/>
  206. <input id="ipt_purccnsttnno" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purccnsttnno" class="input_default" maxlength="4" style="left:305px; top:102px; width:71px; height:19px; text-align:center; "/>
  207. <input id="cal_purccnsttndd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purccnsttndd" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:102px; width:206px; height:19px; text-align:center; ">
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  211. model.setValue("/root/send/nosearch/purccnsttndd" , model.getValue(cal_purccnsttndd.attribute("ref")));
  212. if (submit("TRRSK00102")){
  213. var purccnsttnno = model.getValue("/root/main/list/purccnsttnnoinfo/maxpurccnsttnno/purccnsttnno");
  214. model.setValue(ipt_purccnsttnno.attribute("ref"), purccnsttnno);
  215. }
  216. model.setValue("/root/send/nosearch/instcd" , "");
  217. model.setValue("/root/send/nosearch/purccnsttndd" , "");
  218. model.refresh();
  219. ]]>
  220. </script>
  221. </input>
  222. <button id="btn_insert" class="btn2_letter2" style="left:1034px; top:71px; width:42px; height:19px; ">
  223. <caption>입력</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. var curdate = getCurrentDate();
  227. var cvtdate = curdate.toDate("YYYYMMDD");
  228. cal_purcdmnddd.disabled = false;
  229. ipt_purcdmndno.disabled = false;
  230. //cal_purccondd.disabled = false;
  231. //ipt_purcconno.disabled = false;
  232. fInpt();
  233. model.setValue(cal_purccondd.attribute("ref") , curdate);
  234. cal_purccondd.dispatch("xforms-value-changed");
  235. ]]>
  236. </script>
  237. </button>
  238. <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; "/>
  239. <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; ">
  240. <choices>
  241. <item>
  242. <label/>
  243. <value>Y</value>
  244. </item>
  245. </choices>
  246. <script type="javascript" ev:event="xforms-value-changed">
  247. <![CDATA[
  248. var updtgoodcntyn = model.getValue(chk_updtgoodcntyn.attribute("ref"));
  249. if (updtgoodcntyn == "Y"){
  250. ipt_goodcntnm.disabled = "false";
  251. }else{
  252. ipt_goodcntnm.disabled = "true";
  253. }
  254. ]]>
  255. </script>
  256. </select>
  257. <caption id="caption3" class="search_name" style="left:190px; top:72px; width:114px; height:17px; ">품건명 수정 :</caption>
  258. <line id="line18" class="line_2" style="x1:0px; y1:124px; x2:1195px; y2:124px; "/>
  259. <caption id="caption11" class="cell_1" style="left:795px; top:100px; width:90px; height:23px; vertical-align:middle; ">계정과목</caption>
  260. <line id="line3" class="line_2" style="x1:0px; y1:149px; x2:650px; y2:149px; "/>
  261. <line id="line4" class="line_2" style="x1:0px; y1:149px; x2:1190px; y2:149px; "/>
  262. <line id="line5" class="line_2" style="x1:0px; y1:174px; x2:1190px; y2:174px; "/>
  263. <line id="line6" class="line_2" style="x1:0px; y1:198px; x2:1190px; y2:198px; "/>
  264. <output id="opt_acntnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/acntnm" class="output_fix" appearance="output" style="left:1011px; top:102px; width:169px; height:19px; text-align:left; padding-left:10; "/>
  265. <input id="ipt_acntcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/acntcd" class="input_essential" style="left:889px; top:102px; width:96px; height:19px; text-align:center; ">
  266. <script type="javascript" ev:event="xforms-value-changed">
  267. <![CDATA[
  268. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_acntcd.attribute("ref")) ,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
  269. model.refresh();
  270. model.setFocus("ipt_amtacnt");
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="onkeydown">
  274. <![CDATA[
  275. if(event.keyCode == 9)
  276. {
  277. if(event.shiftKey)model.setFocus("cmb_lrgcd");
  278. else model.setFocus("ipt_amtacnt");
  279. }
  280. //event.preventDefault();
  281. ]]>
  282. </script>
  283. </input>
  284. <button id="btn_acntcd" class="icon_search" style="left:992px; top:102px; width:16px; height:16px; ">
  285. <caption/>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","","");
  289. model.refresh();
  290. ]]>
  291. </script>
  292. </button>
  293. <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, 24, 71, 80, 80, 80, 18, 17, 81, 80, 17, 72, 21, 99, 96, 23, 25, 22, 17, 20, 18, 21, 15, 17, 18, 20, 22, 18, 19, 21, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:208px; width:1190px; height:517px; font-weight:normal; text-align:center; ">
  294. <col ref="prestatus" visibility="hidden" style="text-align:center; "/>
  295. <col ref="purccnsttnseq" style="text-align:center; "/>
  296. <col ref="acntcd" visibility="hidden" style="text-align:center; "/>
  297. <col ref="acntnm" style="text-align:left; padding-left:10; "/>
  298. <col ref="goodcd" style="text-align:center; "/>
  299. <col ref="allsizespecid" style="text-align:center; "/>
  300. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  301. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  302. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  303. <col ref="cnsttnqty" format="#,###" style="text-align:right; "/>
  304. <col ref="cnsttnunit" style="text-align:left; padding-left:10; "/>
  305. <col ref="fullpurcunit" visibility="hidden" style="text-align:left; padding-left:10; "/>
  306. <col ref="bfcnsttngoodunitcost" type="output" format="#,###" style="text-align:right; "/>
  307. <col ref="cmpygoodunitcost1" type="input" format="#,###" style="text-align:right; "/>
  308. <col ref="cmpygoodunitcost2" type="input" format="#,###" style="text-align:right; "/>
  309. <col ref="cmpygoodunitcost3" type="input" format="#,###" style="text-align:right; "/>
  310. <col ref="cmpygoodunitcost4" visibility="hidden" format="#,###" style="text-align:right; "/>
  311. <col ref="cmpygoodunitcost5" visibility="hidden" format="#,###" style="text-align:right; "/>
  312. <col ref="cnsttngoodunitcost" type="input" format="#,###" style="text-align:right; "/>
  313. <col ref="cnsttnamt" format="#,###" style="text-align:right; "/>
  314. <col ref="purccondd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  315. <col ref="purcconno" style="text-align:center; "/>
  316. <col ref="purcconseq" visibility="hidden" style="text-align:center; "/>
  317. <col ref="prodcmpycd" type="inputbutton" style="text-align:center; "/>
  318. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  319. <col ref="newyn" visibility="hidden" style="text-align:center; "/>
  320. <col ref="purccnsttndd" visibility="hidden" style="text-align:center; "/>
  321. <col ref="purccnsttnno" visibility="hidden" style="text-align:center; "/>
  322. <col ref="supdirecdd" visibility="hidden" style="text-align:center; "/>
  323. <col ref="suplimdd" visibility="hidden" style="text-align:center; "/>
  324. <col ref="cnsttndeptcd" visibility="hidden" style="text-align:center; "/>
  325. <col ref="goodcntnm" visibility="hidden" style="text-align:center; "/>
  326. <col ref="reqdeptcd" visibility="hidden" style="text-align:center; "/>
  327. <col ref="suplplcecd" visibility="hidden" style="text-align:center; "/>
  328. <col ref="totcnsttnamt" visibility="hidden" style="text-align:center; "/>
  329. <col ref="writid" visibility="hidden" style="text-align:center; "/>
  330. <col ref="suppos" visibility="hidden" style="text-align:left; padding-left:10; "/>
  331. <col ref="purcdmnddd" visibility="hidden" style="text-align:center; "/>
  332. <col ref="purcdmndno" visibility="hidden" style="text-align:center; "/>
  333. <col ref="purcdmndseq" visibility="hidden" style="text-align:center; "/>
  334. <col ref="conflag" visibility="hidden" style="text-align:center; "/>
  335. <script type="javascript" ev:event="onbuttonclick">
  336. <![CDATA[
  337. if (grd_purccnsttn.col == grd_purccnsttn.colRef("prodcmpycd")) {
  338. rszfOpenPopUpListByWndName(grd_purccnsttn,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  339. }
  340. model.refresh();
  341. ]]>
  342. </script>
  343. <script type="javascript" ev:event="xforms-value-changed">
  344. <![CDATA[
  345. if( grd_purccnsttn.col == grd_purccnsttn.colRef("bfcnsttngoodunitcost")
  346. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost1")
  347. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost2")
  348. || grd_purccnsttn.col == grd_purccnsttn.colRef("cmpygoodunitcost3")
  349. || grd_purccnsttn.col == grd_purccnsttn.colRef("cnsttngoodunitcost"))
  350. {
  351. fCalcAmt();
  352. fDispSumAmt();
  353. }
  354. ]]>
  355. </script>
  356. </datagrid>
  357. <input id="ipt_cnsttndeptcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptcd" class="input_default" style="left:474px; top:102px; width:116px; height:19px; text-align:center; ">
  358. <script type="javascript" ev:event="xforms-value-changed">
  359. <![CDATA[
  360. misfValidationCheck("02", "", "cnsttndeptcd,cnsttndeptnm" );
  361. model.refresh();
  362. ]]>
  363. </script>
  364. </input>
  365. <button id="btn_cnsttndeptcd" class="icon_search" style="left:592px; top:104px; width:16px; height:16px; ">
  366. <caption/>
  367. <script type="javascript" ev:event="DOMActivate">
  368. <![CDATA[
  369. var recv_list = "cnsttndeptcd,cnsttndeptnm";
  370. misfOpenPopUpList("02", ipt_cnsttndeptcd,"", recv_list) ;
  371. model.refresh();
  372. ]]>
  373. </script>
  374. </button>
  375. <output id="opt_cnsttndeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/cnsttndeptnm" class="output_fix" style="left:611px; top:102px; width:179px; height:19px; text-align:left; padding-left:10; "/>
  376. <caption id="cap_reqdeptcd" class="cell_1" style="left:380px; top:100px; width:90px; height:23px; vertical-align:middle; ">예산부서</caption>
  377. <input id="ipt_suplplcecd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcecd" class="input_default" style="left:92px; top:128px; width:76px; height:19px; text-align:center; ">
  378. <script type="javascript" ev:event="xforms-value-changed">
  379. <![CDATA[
  380. if(ipt_suplplcecd.value.length == 0)
  381. ipt_suplplcenm.value = "";
  382. else
  383. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  384. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suplplcecd.attribute("ref")),"","suplplcecd,suplplcenm" ,
  385. ipt_suplplcecd,"SPRSD00220","instcd","cmb_instcd");
  386. model.refresh();
  387. ]]>
  388. </script>
  389. </input>
  390. <output id="opt_suplplcenm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplplcenm" class="output_fix" style="left:189px; top:128px; width:186px; height:19px; text-align:left; padding-left:10; "/>
  391. <caption id="caption5" class="cell_1" style="left:0px; top:126px; width:90px; height:23px; vertical-align:middle; ">거래처</caption>
  392. <button id="button1" class="icon_search" style="left:170px; top:130px; width:16px; height:16px; ">
  393. <caption/>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. rszfOpenPopUpListByWndName(ipt_suplplcecd,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  397. model.refresh();
  398. ]]>
  399. </script>
  400. </button>
  401. <input id="cal_supdirecdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/supdirecdd" inputtype="date" style="left:823px; top:128px; width:137px; height:19px; text-align:center; ">
  402. <script type="javascript" ev:event="xforms-value-changed">
  403. <![CDATA[
  404. ]]>
  405. </script>
  406. </input>
  407. <caption id="caption7" class="cell_1" style="left:730px; top:126px; width:90px; height:23px; vertical-align:middle; ">납품지시일</caption>
  408. <caption id="caption8" class="cell_1" style="left:965px; top:126px; width:90px; height:23px; vertical-align:middle; ">납품기한</caption>
  409. <input id="cal_suplimdd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suplimdd" inputtype="date" style="left:1058px; top:128px; width:122px; height:19px; text-align:center; ">
  410. <script type="javascript" ev:event="xforms-value-changed">
  411. <![CDATA[
  412. ]]>
  413. </script>
  414. </input>
  415. <caption id="caption9" class="cell_1" style="left:380px; top:125px; width:90px; height:23px; vertical-align:middle; ">납품장소</caption>
  416. <input id="ipt_suppos" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/suppos" class="input_default" disabled="false" style="left:474px; top:126px; width:252px; height:19px; text-align:left; padding-left:10; "/>
  417. <caption id="caption10" class="cell_1" style="left:0px; top:151px; width:90px; height:23px; vertical-align:middle; ">작성자</caption>
  418. <button id="btn_writid" class="icon_search" style="left:170px; top:153px; width:16px; height:16px; ">
  419. <caption/>
  420. <script type="javascript" ev:event="DOMActivate">
  421. <![CDATA[
  422. misfOpenPopUpList("01", ipt_writid, "", "writid,writnm");
  423. model.refresh();
  424. // btn_search.dispatch("DOMActivate");
  425. ]]>
  426. </script>
  427. </button>
  428. <input id="ipt_writid" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/writid" class="input_search" style="left:93px; top:153px; width:75px; height:19px; text-align:center; ">
  429. <script type="javascript" ev:event="xforms-value-changed">
  430. <![CDATA[
  431. if(ipt_writnm.value.length == 0)
  432. ipt_writnm.value = "";
  433. else
  434. misfValidationCheck("01-1", "", "writid,writnm");
  435. model.refresh();
  436. //btn_search.dispatch("DOMActivate");
  437. ]]>
  438. </script>
  439. </input>
  440. <input id="ipt_writnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/writnm" class="output_search" appearance="input" style="left:189px; top:153px; width:186px; height:19px; text-align:left; padding-left:10; ">
  441. <script type="javascript" ev:event="xforms-value-changed">
  442. <![CDATA[
  443. if(ipt_winpsnnm.value.length == 0)
  444. ipt_writid.value = "";
  445. else
  446. misfValidationCheck("01-2", "", "writid,writnm");
  447. model.refresh();
  448. // btn_search.dispatch("DOMActivate");
  449. ]]>
  450. </script>
  451. </input>
  452. <caption id="caption12" class="cell_1" style="left:380px; top:151px; width:90px; height:23px; vertical-align:middle; ">품건명</caption>
  453. <input id="ipt_goodcntnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/goodcntnm" class="input_default" disabled="true" style="left:475px; top:152px; width:405px; height:19px; text-align:left; padding-left:10; ">
  454. <script type="javascript" ev:event="xforms-value-changed">
  455. <![CDATA[
  456. ]]>
  457. </script>
  458. </input>
  459. <input id="cal_purccondd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purccondd" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:979px; top:152px; width:146px; height:19px; text-align:center; ">
  460. <script type="javascript" ev:event="xforms-value-changed">
  461. <![CDATA[
  462. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  463. model.setValue("/root/send/nosearch/purccondd" , model.getValue(cal_purccondd.attribute("ref")));
  464. if (submit("TRRSP00102")){
  465. var purcconno = model.getValue("/root/main/list/purcconnoinfo/maxpurcconno/purcconno");
  466. model.setValue(ipt_purcconno.attribute("ref"), purcconno);
  467. }
  468. model.setValue("/root/send/nosearch/instcd" , "");
  469. model.setValue("/root/send/nosearch/purccondd" , "");
  470. model.refresh();
  471. ]]>
  472. </script>
  473. </input>
  474. <input id="ipt_purcconno" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purcconno" class="input_default" disabled="true" maxlength="4" style="left:1129px; top:152px; width:51px; height:19px; text-align:center; "/>
  475. <caption id="cap_purccondd" class="cell_1" style="left:885px; top:150px; width:90px; height:23px; vertical-align:middle; ">확정일자/NO</caption>
  476. <input id="ipt_purcdmndno" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purcdmndno" class="input_default" disabled="true" maxlength="4" style="left:305px; top:178px; width:71px; height:19px; text-align:center; ">
  477. <script type="javascript" ev:event="xforms-value-changed">
  478. <![CDATA[
  479. ]]>
  480. </script>
  481. </input>
  482. <input id="cal_purcdmnddd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/purcdmnddd" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:178px; width:206px; height:19px; text-align:center; ">
  483. <script type="javascript" ev:event="xforms-value-changed">
  484. <![CDATA[
  485. fGetPurcdmndInfo();
  486. ]]>
  487. </script>
  488. </input>
  489. <caption id="cap_purcdmnddd" class="cell_1" style="left:0px; top:176px; width:90px; height:23px; vertical-align:middle; ">요구일자/NO</caption>
  490. <caption id="caption14" class="cell_1" style="left:380px; top:177px; width:90px; height:23px; vertical-align:middle; ">요구부서</caption>
  491. <button id="btn_reqdeptcd" class="icon_search" style="left:592px; top:179px; width:16px; height:16px; ">
  492. <caption/>
  493. <script type="javascript" ev:event="DOMActivate">
  494. <![CDATA[
  495. var recv_list = "reqdeptcd,reqdeptnm";
  496. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, cmb_instcd.value, "instcd") ;
  497. model.refresh();
  498. ]]>
  499. </script>
  500. </button>
  501. <output id="opt_reqdeptnm" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqdeptnm" class="output_fix" style="left:611px; top:178px; width:179px; height:19px; "/>
  502. <input id="ipt_reqdeptcd" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/reqdeptcd" class="input_default" style="left:474px; top:178px; width:116px; height:19px; text-align:center; ">
  503. <script type="javascript" ev:event="xforms-value-changed">
  504. <![CDATA[
  505. ]]>
  506. </script>
  507. </input>
  508. <caption id="caption22" class="cell_1" style="left:795px; top:178px; width:90px; height:23px; vertical-align:middle; ">총금액</caption>
  509. <input id="ipt_totcnsttnamt" ref="/root/main/list/purccnsttninfo/purccnsttnmainlist/totcnsttnamt" class="input_default" disabled="true" format="#,###" style="left:889px; top:178px; width:141px; height:19px; text-align:right; "/>
  510. </group>
  511. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  512. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  513. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  514. <caption>초기화</caption>
  515. <script type="javascript" ev:event="DOMActivate">
  516. <![CDATA[
  517. fInitialize("00");
  518. ]]>
  519. </script>
  520. </button>
  521. <button id="btn_prnt" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  522. <caption>출력</caption>
  523. <script type="javascript" ev:event="DOMActivate">
  524. <![CDATA[
  525. var nodelist = instance1.selectNodes("/root/main/list/purccnsttninfo/purccnsttnsublist").length;
  526. var SumCnsttnqty = 0;
  527. model.removeNodeset("/root/prtinfo/purccnsttninfo");
  528. model.makeNode("/root/prtinfo/purccnsttninfo");
  529. copyNodesetType("/root/prtinfo/purccnsttninfo","/root/main/list/purccnsttninfo","replace");
  530. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/conflagnm" ,"단가납품지시");
  531. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/goodcnt" ,nodelist);
  532. for(var k =grd_purccnsttn.fixedRows; k <grd_purccnsttn.rows;k++){
  533. SumCnsttnqty = SumCnsttnqty+parseFloat(grd_purccnsttn.valueMatrix(k,grd_purccnsttn.colRef("cnsttnqty")));
  534. }
  535. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/sumcnsttnqty" ,SumCnsttnqty);
  536. model.makeValue("/root/prtinfo/purccnsttninfo/purccnsttnmainlist/titlenm" ,"단가납품지시");
  537. if(nodelist > 10 ){
  538. exeReportPreview("RPRSK00102","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  539. exeReportPreview("RPRSK00101","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  540. }else{
  541. exeReportPreview("RPRSK00100","XMLSTR","/root/prtinfo/purccnsttninfo", "", "true", "", "", "", "", "true");
  542. }
  543. ]]>
  544. </script>
  545. </button>
  546. </group>
  547. </xhtml:body>
  548. </xhtml:html>