XSMRSD0430X_신규재료 심사(X).xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <init>
  10. <instcd/>
  11. <goodflag/>
  12. <newmatrprcsstat>
  13. <label>구매팀접수</label>
  14. <value>1</value>
  15. <label>보험과접수</label>
  16. <value>2</value>
  17. <label>심의완료</label>
  18. <value>3</value>
  19. </newmatrprcsstat>
  20. </init>
  21. <send>
  22. <sendlist>
  23. <instcd/>
  24. <goodflag/>
  25. <reqfromdd/>
  26. <reqtodd/>
  27. <recedd/>
  28. <newmatrprcsstat/>
  29. <reqdeptcd/>
  30. <reqdeptnm/>
  31. <reqpsnid/>
  32. <reqpsnnm/>
  33. </sendlist>
  34. <newmeterialdetail/>
  35. </send>
  36. <main>
  37. <list>
  38. <newmeterialdetail/>
  39. </list>
  40. </main>
  41. <temp/>
  42. <hidden/>
  43. </root>
  44. </instance>
  45. <script type="javascript" ev:event="xforms-ready">
  46. <![CDATA[
  47. //화면 Control을 초기화한다
  48. fInitialize();
  49. ]]>
  50. </script>
  51. <submission id="TRRSD04001" ref="/root/send/sendlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/list/newmeterial"/>
  52. <submission id="TXRSD04201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
  53. </model>
  54. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  56. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  57. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  59. <script type="javascript">
  60. <![CDATA[
  61. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  62. function fInitialize() {
  63. misfGridInit(grd_newmeterial);
  64. model.resetInstanceNode("/root/send");
  65. misfMsterDetailSet(grd_newmeterial,null,"TRRSD04001","Y");
  66. grd_newmeterial.fixedcellcheckbox(0,1) = true;
  67. misfComboComCdListMulti("Z0007,R0025","cmb_instcd,cmb_goodflag");
  68. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  69. model.setValue(opt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  70. model.setValue(opt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  71. model.setValue(opt_reqpsnid.attribute("ref") , getUserInfo("userid"));
  72. model.setValue(opt_reqpsnnm.attribute("ref") , getUserInfo("usernm"));
  73. // rdo_newmatrprcsstat.select(0);
  74. model.refresh();
  75. }
  76. function fDataCheck() {
  77. var updtdata = getGridUpdateData(grd_newmeterial);
  78. model.refresh();
  79. if (updtdata != "" ) return true;
  80. else return false;
  81. }
  82. function fSearchCheck() {
  83. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  84. {
  85. messageBox("기관구분은 " ,"I003");
  86. model.setFocus("cmb_instcd");
  87. return false;
  88. }
  89. if(model.getValue(cmb_goodflag.attribute("ref")).length==0)
  90. {
  91. messageBox("물품구분은","I003");
  92. model.setFocus("cmb_goodflag");
  93. return false;
  94. }
  95. }
  96. function fChangeStatus( flag, flagnm ) {
  97. var cnt = grd_newmeterial.rows;
  98. var temp = 0;
  99. for ( var i=0; i<cnt; i++ ) {
  100. var select = model.getValue(grd_newmeterial.attribute("nodeset")+"[" + i + "]/chk");
  101. // 화면의 체크 값 확인
  102. if (select != 0) {
  103. temp = temp + 1;
  104. // 불출 수량이 있을 경우 상태 변경 불가.
  105. if( model.getValue( grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat") != 0 ) {
  106. messageBox ("항목을 변경할 수","I004");
  107. grd_newmeterial.select(i, 3)=true;
  108. break;
  109. } else {
  110. // 현재 요청한 접수 상태가 이전 상태와 동일한지 확인
  111. if ( model.getValue( grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat") != flag ) {
  112. model.setValue(grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat", flag );
  113. model.setValue(grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstatnm", flagnm );
  114. grd_newmeterial.rowStatus( i ) = 2;
  115. var cur_row = grd_newmeterial.row;
  116. var status = grd_newmeterial.valueMatrix(cur_row, grd_newmeterial.colRef("m"));
  117. if(status !="insert" && status !="delete") grd_newmeterial.addStatus(cur_row,"update");
  118. }
  119. }
  120. } else {
  121. grd_newmeterial.rowStatus( i ) = 0;
  122. }
  123. // if( grd_reqdetaillist.rowStatus(i)==2 ) grd_reqdetaillist.rowStatus(i) = 0;
  124. }
  125. if( temp<=0 ) messageBox ("선택된 항목이","I004");
  126. }
  127. ]]>
  128. </script>
  129. </xhtml:head>
  130. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  131. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  132. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">신규재료청구심사</caption>
  133. </group>
  134. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  135. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:111px; height:13px; ">신규품목</caption>
  136. <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  137. <line id="line4" class="line_2" style="x1:0px; y1:52px; x2:1194px; y2:52px; "/>
  138. <select1 id="rdo_newmatrprcsstat" ref="/root/send/sendlist/newmatrprcsstat" overflow="visible" appearance="full" cols="4" cellspacing="5" style="left:87px; top:57px; width:278px; height:15px; background-color:transparent; border-style:none; ">
  139. <choices>
  140. <itemset nodeset="/root/init/newmatrprcsstat">
  141. <label ref="label"/>
  142. <value ref="value"/>
  143. </itemset>
  144. </choices>
  145. <script type="javascript" ev:event="xforms-select">
  146. <![CDATA[
  147. btn_search.dispatch("DOMActivate");
  148. ]]>
  149. </script>
  150. </select1>
  151. <datagrid id="grd_newmeterial" nodeset="/root/main/list/newmeterialdetail" caption="^기관코드^청구일자^청구순번^물품구분^신청부서^품명^품명^구입예정가^납품업체^제조회사^진행사항^진행사항^비고" colwidth="25, 30, 30, 30, 30, 150, 150, 169, 203, 100, 161, 30, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:107px; width:1195px; height:628px; ">
  152. <col ref="chk" type="checkbox" checkvalue="1,0"/>
  153. <col ref="instcd" visibility="hidden"/>
  154. <col ref="reqdd" visibility="hidden"/>
  155. <col ref="reqseqno" visibility="hidden"/>
  156. <col ref="goodflag" visibility="hidden"/>
  157. <col ref="reqdeptnm"/>
  158. <col ref="goodengnm"/>
  159. <col ref="goodhngnm"/>
  160. <col/>
  161. <col ref="maincust"/>
  162. <col ref="prodcmpynm"/>
  163. <col ref="newmatrprcsstat" visibility="hidden"/>
  164. <col ref="newmatrprcsstatnm"/>
  165. <col/>
  166. <script type="javascript" ev:event="onaftersort">
  167. <![CDATA[
  168. grd_newmeterial.gridToInstance();
  169. ]]>
  170. </script>
  171. </datagrid>
  172. <button id="button6" class="btn2_letter2" style="left:1152px; top:81px; width:42px; height:19px; ">
  173. <caption>접수</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. fChangeStatus( "1", "접수" );
  177. ]]>
  178. </script>
  179. </button>
  180. <caption id="caption4" class="tit_2" style="left:5px; top:87px; width:118px; height:13px; ">신청내역</caption>
  181. <line id="line1" class="line_1" style="x1:1px; y1:102px; x2:1195px; y2:102px; "/>
  182. <button id="button7" class="btn2_letter4" visibility="hidden" style="left:1020px; top:81px; width:64px; height:19px; ">
  183. <caption>전체선택</caption>
  184. </button>
  185. <button id="button9" class="btn2_letter4" visibility="hidden" style="left:1086px; top:81px; width:64px; height:19px; ">
  186. <caption>선택취소</caption>
  187. </button>
  188. <line id="line6" class="line_3" style="x1:0px; y1:76px; x2:1194px; y2:76px; "/>
  189. <output id="opt_reqdeptnm" ref="/root/send/sendlist/reqdeptnm" class="output_fix" appearance="output" style="left:608px; top:56px; width:262px; height:19px; "/>
  190. <output id="opt_reqpsnnm" ref="/root/send/sendlist/reqpsnnm" class="output_fix" appearance="output" style="left:1009px; top:56px; width:182px; height:19px; "/>
  191. <output id="opt_reqpsnid" ref="/root/send/sendlist/reqpsnid" class="output_fix" appearance="output" style="left:945px; top:56px; width:61px; height:19px; "/>
  192. <caption id="caption10" class="cell_1" style="left:580px; top:29px; width:100px; height:23px; vertical-align:middle; ">신청일자*</caption>
  193. <caption id="caption2" class="cell_1" style="left:0px; top:29px; width:85px; height:23px; vertical-align:middle; ">기관구분*</caption>
  194. <select1 id="cmb_goodflag" ref="/root/send/sendlist/goodflag" class="combo_default" appearance="minimal" style="left:375px; top:32; width:202px; height:19px; ">
  195. <choices>
  196. <itemset nodeset="/root/init/goodflag">
  197. <label ref="cdnm"/>
  198. <value ref="cdid"/>
  199. </itemset>
  200. </choices>
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. btn_search.dispatch("DOMActivate");
  204. ]]>
  205. </script>
  206. </select1>
  207. <caption id="caption3" class="cell_1" style="left:873px; top:53px; width:70px; height:23px; vertical-align:middle; ">신청자</caption>
  208. <select1 id="cmb_instcd" ref="/root/send/sendlist/instcd" class="combo_default" appearance="minimal" style="left:87px; top:32; width:183px; height:19px; ">
  209. <choices>
  210. <itemset nodeset="/root/init/instcd">
  211. <label ref="cdnm"/>
  212. <value ref="cdid"/>
  213. </itemset>
  214. </choices>
  215. </select1>
  216. <input id="ipt_reqfromdd" ref="/root/send/sendlist/reqfromdd" class="input_default" inputtype="date" style="left:683px; top:32px; width:92px; height:19px; "/>
  217. <input id="ipt_reqtodd" ref="/root/send/sendlist/reqtodd" class="input_default" inputtype="date" style="left:778px; top:32px; width:92px; height:19px; "/>
  218. <caption id="caption7" class="cell_1" style="left:873px; top:29px; width:70px; height:23px; vertical-align:middle; ">접수일자</caption>
  219. <caption id="caption16" class="cell_1" style="left:0px; top:53px; width:85px; height:23px; vertical-align:middle; ">상태</caption>
  220. <caption id="caption8" class="cell_1" style="left:462px; top:53px; width:85px; height:23px; vertical-align:middle; ">신청부서</caption>
  221. <caption id="caption9" class="cell_1" style="left:273px; top:29px; width:100px; height:23px; vertical-align:middle; ">물품구분*</caption>
  222. <input id="ipt_recedd" ref="/root/send/sendlist/recedd" class="input_default" inputtype="date" style="left:945px; top:32px; width:92px; height:19px; "/>
  223. <output id="opt_reqdeptcd" ref="/root/send/sendlist/reqdeptcd" class="output_fix" appearance="output" style="left:548px; top:56px; width:57px; height:19px; "/>
  224. <button id="btn_search" class="btn1_letter2" style="left:1135px; top:30px; width:56px; height:22px; ">
  225. <caption>조회</caption>
  226. <script type="javascript" ev:event="DOMActivate">
  227. <![CDATA[
  228. if (fSearchCheck() == false) return;
  229. if ( fDataCheck() ) {
  230. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  231. if (ret != 6) { // not OK
  232. return;
  233. } else {
  234. misfMsterDetailRetrieve();
  235. model.refresh();
  236. }
  237. } else {
  238. misfMsterDetailRetrieve();
  239. model.refresh();
  240. }
  241. ]]>
  242. </script>
  243. </button>
  244. <button id="button3" class="btn2_letter4" style="left:954px; top:81px; width:64px; height:19px; ">
  245. <caption>심사의견</caption>
  246. <script type="javascript" ev:event="onclick">
  247. <![CDATA[
  248. //window.load("ALLSIZE.xrw","modeless", "ALLSIZE.xrw", "width:790px;height:744px;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  249. // window.load("SPRSD04310_심사.xrw","modeless", "SPRSD04310_심사.xrw", "width:535px; height:490;min:hidden;max:hidden;align:center", "" ,"");
  250. // rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd" );
  251. // rszfOpenPopUpListByWndName(opt_reqdeptcd,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD04310","instcd","cmb_instcd" );
  252. rszfOpenPopUpListByWndName(grd_newmeterial,"","","SPRSD04310","","" );
  253. // modal("SPRSD04310","","","","","/root/source", "/root/target" );
  254. ]]>
  255. </script>
  256. </button>
  257. </group>
  258. <group id="group1" style="left:0px; top:12px; width:1195px; height:27px; ">
  259. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
  260. <caption>초기화</caption>
  261. </button>
  262. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  263. <caption>저장</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. if ( fDataCheck() ) {
  267. misfSave("TXRSD04201");
  268. misfMsterDetailRetrieve();
  269. model.refresh();
  270. } else {
  271. messageBox("변경된 데이터가","I004");
  272. return;
  273. }
  274. ]]>
  275. </script>
  276. </button>
  277. <line id="line32" class="line_2" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  278. <button id="btn_purccmt" class="btn3_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  279. <caption>구매팀소견</caption>
  280. <script type="javascript" ev:event="onclick">
  281. <![CDATA[
  282. //window.load("ALLSIZE.xrw","modeless", "ALLSIZE.xrw", "width:790px;height:744px;min:hidden;max:hidden;align:center", "/root/hidden/bcno", "/root/hidden/bcno");
  283. window.load("SPRSD04311_소견.xrw","modeless", "SPRSD04311_소견.xrw", "width:540px; height:300;min:hidden;max:hidden;align:center", "" ,"");
  284. ]]>
  285. </script>
  286. </button>
  287. </group>
  288. </xhtml:body>
  289. </xhtml:html>