SMRSC20600_장비도입검토부서의견입력(경북대).xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
  4. <xhtml:head>
  5. <xhtml:title>장비도입검토부서의견입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <reqeqmt>
  11. <reqeqmtlist/>
  12. </reqeqmt>
  13. </main>
  14. <send>
  15. <search>
  16. <instcd/>
  17. <reqdeptcd/>
  18. <reqdeptnm/>
  19. <reqfrmdd/>
  20. <reqtodd/>
  21. <prcsstat/>
  22. <emplno/>
  23. </search>
  24. <save>
  25. <reqeqmtlist/>
  26. </save>
  27. </send>
  28. <hidden/>
  29. <temp>
  30. </temp>
  31. <init/>
  32. <combo>
  33. <dcusrslt/>
  34. <purcprcsstat/>
  35. </combo>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. fInitialize();
  41. ]]>
  42. </script>
  43. <submission id="TRRSC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/reqeqmt"/>
  44. <submission id="TXRSC20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  45. </model>
  46. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  52. <script type="javascript">
  53. <![CDATA[
  54. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  55. function fInitialize()
  56. {
  57. misfGridInit(grd_reqeqmtlist);
  58. model.resetInstanceNode("/root/send");
  59. model.resetInstanceNode("/root/main");
  60. misfComboComCdList("Z0007",cmb_instcd);
  61. misfComboComCdList("030R0025",cmb_prcsstat_search);
  62. misfGridComboComCdList("030R0026",grd_reqeqmtlist,"dcusrslt");
  63. misfComboCopyItemSet(cmb_prcsstat_search, "", grd_reqeqmtlist, "prcsstat");
  64. addComboItem( "cmb_prcsstat_search", "전체", "", "above");
  65. model.setValue(cmb_prcsstat_search.attribute("ref"), "");
  66. // misfGridComboComCdList("030R0025",grd_reqeqmtlist,"prcsstat");
  67. // misfGridComboComCdList("030R0026",grd_reqeqmtlist,"dcusrslt");
  68. // misfGridComboComCdList("030R0027",grd_reqeqmtlist,"purcprcsstat");
  69. //misfComboComCdListMulti("030R0025","cmb_prcsstat_search");
  70. // 전체
  71. //rszfComboAppendBlankChild("cmb_prcsstat_search");
  72. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  73. // model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  74. // model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  75. misfMsterDetailSet(grd_reqeqmtlist ,null, "TRRSC20101", "Y");
  76. //btn_search.dispatch("DOMActivate");
  77. if(getUserInfo("dutplcecd") == "4090500000" || getUserInfo("dutplcecd") == "4060100000" || getUserInfo("dutplcecd") == "4130116000" || getUserInfo("userid") == "08190" || getUserInfo("userid") == "MIS" ||
  78. getUserInfo("userid") == "10326" || getUserInfo("userid") == "95034" || getUserInfo("userid") == "97089" || getUserInfo("userid") == "96008"){
  79. model.setValue("/root/send/search/reqfrmdd", getCurrentDate().substr(0,4)+"0101");
  80. model.setValue("/root/send/search/reqtodd", getCurrentDate().substr(0,8));
  81. model.setValue("/root/send/search/prcsstat","4");
  82. //model.setValue("/root/send/search/emplno", getUserInfo("userid"));
  83. model.refresh();
  84. }else{
  85. messageBox("접속하신 아이디는 화면권한이 없습니다.", "E999", "");
  86. group3.disabled = true;
  87. grp_btn.disabled = true;
  88. return;
  89. }
  90. }
  91. ]]>
  92. </script>
  93. </xhtml:head>
  94. <xhtml:body guideline="1,-12;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  95. <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
  96. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:171px; height:14px; ">장비도입검토부서의견입력</caption>
  97. </group>
  98. <group id="group3" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  99. <line id="line12" class="line_2" style="x1:0px; y1:531px; x2:1195px; y2:531px; "/>
  100. <caption id="caption9" class="tit_2" style="left:5px; top:79px; width:100px; height:14px; ">장비신청 목록</caption>
  101. <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  102. <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  103. <datagrid id="grd_reqeqmtlist" nodeset="/root/main/reqeqmt/reqeqmtlist" caption="진행상태^신청번호^신청자^장비명^설치장소^신청수량^단위^원화총금액^외화총금액^심의결과^심의비고^구매기준일자^구매진행상태^구매비고" colsep="^" colwidth="140, 95, 60, 150, 130, 55, 70, 80, 80, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" navindex="13" style="left:0px; top:99px; width:1195px; height:636px; ">
  104. <col disabled="true" ref="prcsstat" type="combo" style="text-align:center; ">
  105. <choices>
  106. <itemset>
  107. <label/>
  108. <value/>
  109. </itemset>
  110. </choices>
  111. </col>
  112. <col ref="reqno" style="text-align:center; "/>
  113. <col ref="reqpsnnm" style="text-align:center; "/>
  114. <col ref="goodflagengnm"/>
  115. <col ref="installplcenm"/>
  116. <col ref="appqty" style="text-align:center; "/>
  117. <col ref="bugtforgnamtunitnm" style="text-align:center; "/>
  118. <col ref="bugtwncurncy" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  119. <col ref="bugtforgnamt" format="(-)#,###" style="text-align:right; padding-right:5; "/>
  120. <col disabled="true" ref="dcusrslt" type="combo" style="text-align:center; ">
  121. <choices>
  122. <itemset>
  123. <label/>
  124. <value/>
  125. </itemset>
  126. </choices>
  127. </col>
  128. <col ref="dcuscmt"/>
  129. <col ref="badd" format="yyyy-mm-dd" style="text-align:center; "/>
  130. <col ref="purcprcsstat" style="text-align:center; "/>
  131. <col ref="purcprcscmt"/>
  132. <col ref="instcd" visibility="hidden"/>
  133. <col ref="reqdd" visibility="hidden"/>
  134. <col ref="reqseqno" visibility="hidden"/>
  135. <col ref="goodflaghngnm" visibility="hidden"/>
  136. <col ref="workflag" visibility="hidden"/>
  137. <col ref="workflagnm" visibility="hidden"/>
  138. <col ref="welfcd" visibility="hidden"/>
  139. <col ref="reqdeptcd" visibility="hidden"/>
  140. <col ref="reqdeptnm" visibility="hidden"/>
  141. <col ref="mngtdeptcd" visibility="hidden"/>
  142. <col ref="mngtdeptnm" visibility="hidden"/>
  143. <col ref="installplcecd" visibility="hidden"/>
  144. <col ref="usemthd" visibility="hidden"/>
  145. <col ref="usemthdnm" visibility="hidden"/>
  146. <col ref="fcstuseyearno" visibility="hidden"/>
  147. <col ref="goodunitcost" visibility="hidden"/>
  148. <col ref="bugtyy" visibility="hidden"/>
  149. <col ref="bugtforgnamtunit" visibility="hidden"/>
  150. <col ref="chgrate" visibility="hidden"/>
  151. <col ref="addmnpwrdr" visibility="hidden"/>
  152. <col ref="addmnpwrnurs" visibility="hidden"/>
  153. <col ref="addmnpwrengr" visibility="hidden"/>
  154. <col ref="addmnpwretc" visibility="hidden"/>
  155. <col ref="installspcepossnyn" visibility="hidden"/>
  156. <col ref="calcscorgenryn" visibility="hidden"/>
  157. <col ref="usgepurcneed" visibility="hidden"/>
  158. <col ref="reqpsnid" visibility="hidden"/>
  159. <col ref="possesdocucd" visibility="hidden"/>
  160. <col ref="comusedept" visibility="hidden"/>
  161. <col ref="smkindeqyn" visibility="hidden"/>
  162. <col ref="goodflag" visibility="hidden"/>
  163. <col ref="rowstatus" visibility="hidden"/>
  164. <col ref="adyn" visibility="hidden"/>
  165. <col ref="deptaprvyn" visibility="hidden"/>
  166. <col ref="acptflag" visibility="hidden"/>
  167. <script type="javascript" ev:event="onrowchanged">
  168. <![CDATA[
  169. ]]>
  170. </script>
  171. <script type="javascript" ev:event="onaftersort">
  172. <![CDATA[
  173. grd_reqeqmtlist.gridToInstance();
  174. ]]>
  175. </script>
  176. <script type="javascript" ev:event="ondblclick">
  177. <![CDATA[
  178. if(grd_reqeqmtlist.rows == "1"){
  179. return;
  180. }
  181. model.setValue("/root/main/reqeqmt/reqeqmtlist[" + grd_reqeqmtlist.row + "]/rowstatus","review");
  182. window.load("SMRSC20200_장비신청상세내역(경북대).xrw", "modal","", "left:300; top:300;", "/root/main/reqeqmt/reqeqmtlist[" + grd_reqeqmtlist.row + "]","/root/main/reqeqmtlist");
  183. misfMsterDetailRetrieve();
  184. ]]>
  185. </script>
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. var row = grd_reqeqmtlist.row;
  189. if(grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("acptflag")) == "Y"){
  190. if(grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("deptaprvyn")) == "N"){
  191. messageBox("부서장 승인이 되지 않은 자료입니다.", "E999", "");
  192. grd_reqeqmtlist.valueMatrix(row, grd_reqeqmtlist.colRef("deptaprvyn")) = "N"
  193. grd_reqeqmtlist.rowStatus(row) = 0;
  194. }
  195. }
  196. ]]>
  197. </script>
  198. </datagrid>
  199. <line id="line3" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:96px; "/>
  200. <!--</group>-->
  201. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; "/>
  202. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1124px; top:29px; width:56px; height:22px; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. misfMsterDetailRetrieve();
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="button5" class="icon_search" disabled="false" navindex="5" style="left:548px; top:21px; width:16px; height:16px; ">
  211. <caption/>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var recv_list = "reqdeptcd,reqdeptnm";
  215. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, cmb_instcd.value, "instcd") ;
  216. model.refresh();
  217. // 권한설정.
  218. //fSetReqAuth();
  219. ]]>
  220. </script>
  221. </button>
  222. <caption id="caption4" class="search_name" style="left:15px; top:19px; width:117px; height:17px; ">기관코드 :</caption>
  223. <line id="line18" class="line_4" style="x1:1109px; y1:20px; x2:1109px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  224. <input id="ipt_reqdeptcd_search" ref="/root/send/search/reqdeptcd" class="input_s_essential" disabled="false" navindex="4" style="left:425px; top:20px; width:120px; height:19px; ">
  225. <script type="javascript" ev:event="xforms-value-changed">
  226. <![CDATA[
  227. if(ipt_reqdeptcd_search.value.length == 0)
  228. opt_reqdeptnm_search.value = "";
  229. else
  230. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd" );
  231. model.refresh();
  232. // 권한설정.
  233. //fSetReqAuth();
  234. ]]>
  235. </script>
  236. </input>
  237. <caption id="caption8" class="search_name" style="left:340px; top:20px; width:117px; height:17px; ">신청부서 :</caption>
  238. <output id="opt_reqdeptnm_search" ref="/root/send/search/reqdeptnm" class="output_fix" appearance="output" style="left:567px; top:20px; width:191px; height:19px; "/>
  239. <caption id="caption14" class="search_name" style="left:15px; top:45; width:117px; height:17px; ">신청일자 :</caption>
  240. <input id="ipt_reqfrmdd_search" ref="/root/send/search/reqfrmdd" class="input_s_essential" navindex="2" inputtype="date" style="left:100px; top:44; width:95px; height:19px; "/>
  241. <caption id="caption42" style="left:199px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
  242. <input id="ipt_reqtodd_search" ref="/root/send/search/reqtodd" class="input_s_essential" navindex="3" inputtype="date" style="left:215px; top:44; width:95px; height:19px; "/>
  243. <select1 id="cmb_prcsstat_search" ref="/root/send/search/prcsstat" class="combo_default" navindex="7" appearance="minimal" style="left:425px; top:44px; width:190px; height:19px; ">
  244. <choices>
  245. <itemset>
  246. <label/>
  247. <value/>
  248. </itemset>
  249. </choices>
  250. </select1>
  251. <caption id="caption45" class="search_name" style="left:340px; top:45px; width:117px; height:17px; ">진행상태 :</caption>
  252. <button id="btnselect" class="btn2_letter4" navindex="11" style="left:1063px; top:73px; width:64px; height:19px; ">
  253. <caption>전체선택</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. for(i = 1 ; i < grd_reqeqmtlist.rows ; i++)
  257. {
  258. grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("acptflag")) = "Y";
  259. grd_reqeqmtlist.rowStatus(i) = 2;
  260. }
  261. grd_reqeqmtlist.refresh();
  262. ]]>
  263. </script>
  264. </button>
  265. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" navindex="1" appearance="minimal" style="left:100px; top:20px; width:210px; height:19px; ">
  266. <choices>
  267. <itemset>
  268. <label/>
  269. <value/>
  270. </itemset>
  271. </choices>
  272. <script type="javascript" ev:event="xforms-value-changed">
  273. <![CDATA[
  274. opt_instcd.value = cmb_instcd.value;
  275. ]]>
  276. </script>
  277. </select1>
  278. <select1 id="ipt_dcusrslt" ref="/root/combo/dcusrslt" visibility="hidden" appearance="minimal" style="left:825px; top:50px; width:30px; height:19px; ">
  279. <choices>
  280. <itemset>
  281. <label/>
  282. <value/>
  283. </itemset>
  284. </choices>
  285. </select1>
  286. <select1 id="ipt_purcprcsstat" ref="/root/combo/purcprcsstat" visibility="hidden" appearance="minimal" style="left:855px; top:50px; width:30px; height:19px; ">
  287. <choices>
  288. <itemset>
  289. <label/>
  290. <value/>
  291. </itemset>
  292. </choices>
  293. </select1>
  294. <button id="btn_cancel" class="btn2_letter4" navindex="11" style="left:1128px; top:73px; width:64px; height:19px; ">
  295. <caption>전체취소</caption>
  296. <script type="javascript" ev:event="DOMActivate">
  297. <![CDATA[
  298. for(i = 1 ; i < grd_reqeqmtlist.rows ; i++)
  299. {
  300. grd_reqeqmtlist.valueMatrix(i, grd_reqeqmtlist.colRef("acptflag")) = "N";
  301. grd_reqeqmtlist.rowStatus(i) = 2;
  302. }
  303. grd_reqeqmtlist.refresh();
  304. ]]>
  305. </script>
  306. </button>
  307. </group>
  308. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  309. <button id="btn_init" class="btn4_letter3" visibility="hidden" style="left:1127px; top:3px; width:68px; height:22px; ">
  310. <caption>초기화</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. if ( fDataCheck() ) {
  314. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  315. if (ret != 6) { // not OK
  316. return;
  317. } else {
  318. fInitialize();
  319. }
  320. } else {
  321. fInitialize();
  322. }
  323. ]]>
  324. </script>
  325. </button>
  326. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  327. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1070px; top:3px; width:56px; height:22px; ">
  328. <caption>저장</caption>
  329. <script type="javascript" ev:event="DOMActivate">
  330. <![CDATA[
  331. for(i = 1 ; i < grd_reqeqmtlist.rows ; i++){
  332. if(grd_reqeqmtlist.rowStatus(i) == "2"){
  333. model.setValue("/root/main/reqeqmt/reqeqmtlist["+i+"]/adyn","acpt");
  334. }
  335. }
  336. var req = messageBox("접수된 자료를 승인하거나 취소합니다.", "Q003");
  337. if(req == 6){
  338. misfSave("TXRSC20101");
  339. }else{
  340. return;
  341. }
  342. ]]>
  343. </script>
  344. </button>
  345. </group>
  346. </xhtml:body>
  347. </xhtml:html>