XSMRSD0420X_신규재료구매팀접수(X).xrw 12 KB

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