SMRSC20300_장비신청부서장승인(경북대).xrw 17 KB

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