SMRSC02700_청구취합부서 등록.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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. <main>
  10. <reqcollcdeptlist>
  11. <instcd/>
  12. <reqcollcdeptcd/>
  13. <reqcollcdeptnm/>
  14. <reqdeptcd/>
  15. <reqdeptnm/>
  16. <goodflag/>
  17. <appdd/>
  18. <cmt/>
  19. <fstrgstrid/>
  20. <fstrgstdt/>
  21. <lastupdtrid/>
  22. <lastupdtdt/>
  23. </reqcollcdeptlist>
  24. </main>
  25. <send>
  26. <instcd/>
  27. <goodflag/>
  28. <reqcollcdeptcd/>
  29. <reqcollcdeptnm/>
  30. <reqdeptcd/>
  31. <reqdeptnm/>
  32. <reqcollcdeptlist/>
  33. </send>
  34. <init/>
  35. <hidden/>
  36. <temp/>
  37. </root>
  38. </instance>
  39. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" ev:event="xforms-ready">
  43. <![CDATA[
  44. fInitialize();
  45. misfGridInit(grd_reqcollcdeptlist);
  46. misfComboComCdList("Z0007", cmb_instcd); //기관코드
  47. misfComboComCdList("R0025", cmb_goodflag); //물품구분
  48. misfComboCopyItemSet(cmb_goodflag,"",grd_reqcollcdeptlist,"goodflag"); //물품구분 콤보 노드카피
  49. misfMsterDetailSet(grd_reqcollcdeptlist,null,"TRRSC02701","Y"); //마스터 설정
  50. //화면 권한 설정
  51. btn_save.disabled = !(checkAuth("X"));
  52. btn_prt.disabled= !(checkAuth("P"));
  53. model.refresh();
  54. ]]>
  55. </script>
  56. <submission id="TRRSC02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqcollcdeptlist"/>
  57. <submission id="TXRSC02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  58. </model>
  59. <script type="javascript">
  60. <![CDATA[
  61. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  62. function fInitialize() {
  63. model.removeNodeset("/root/main/reqcollcdeptlist");
  64. model.resetInstanceNode("/root/send");
  65. model.refresh();
  66. }
  67. ]]>
  68. </script>
  69. </xhtml:head>
  70. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  71. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  72. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">청구취합부서 등록</caption>
  73. </group>
  74. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  75. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  76. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  77. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  78. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
  79. <caption id="caption7" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">물품구분 :</caption>
  80. <caption id="caption1" class="search_name" style="left:272px; top:34px; width:90px; height:17px; ">청구부서 :</caption>
  81. <caption id="caption5" class="search_name" style="left:272px; top:10px; width:112px; height:17px; ">청구취합부서 :</caption>
  82. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
  83. <caption>조회</caption>
  84. <script type="javascript" ev:event="DOMActivate">
  85. <![CDATA[
  86. var updtdata = getGridUpdateData(grd_reqcollcdeptlist);
  87. if ( updtdata != "") {
  88. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  89. if (ret != 6) { // not OK
  90. return;
  91. }
  92. }
  93. //물품구분코드 값 체크
  94. var null_check = cmb_instcd.value;
  95. if( null_check=="") {
  96. messageBox("기관코드를","C002");
  97. return;
  98. }
  99. //청구취합부서 리스트 출력
  100. misfMsterDetailRetrieve();
  101. if(grd_reqcollcdeptlist.rows >1) {
  102. grd_reqcollcdeptlist.row=1;
  103. }
  104. model.refresh();
  105. ]]>
  106. </script>
  107. </button>
  108. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:8px; width:158px; height:19px; ">
  109. <choices>
  110. <itemset>
  111. <label/>
  112. <value/>
  113. </itemset>
  114. </choices>
  115. <script type="javascript" ev:event="xforms-value-changed">
  116. <![CDATA[
  117. btn_search.dispatch("DOMActivate");
  118. ]]>
  119. </script>
  120. </select1>
  121. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_search" appearance="minimal" style="left:102px; top:34px; width:158px; height:19px; ">
  122. <choices>
  123. <itemset>
  124. <label/>
  125. <value/>
  126. </itemset>
  127. </choices>
  128. </select1>
  129. <input id="ipt_reqcollcdeptcd" ref="/root/send/reqcollcdeptcd" class="input_search" style="left:386px; top:9px; width:85px; height:19px; ">
  130. <script type="javascript" ev:event="xforms-value-changed">
  131. <![CDATA[
  132. misfValidationCheck("02", "", "reqcollcdeptcd,reqcollcdeptnm" );
  133. model.refresh();
  134. ]]>
  135. </script>
  136. </input>
  137. <input id="ipt_reqdeptcd" ref="/root/send/reqdeptcd" class="input_search" style="left:386px; top:33px; width:85px; height:19px; ">
  138. <script type="javascript" ev:event="xforms-value-changed">
  139. <![CDATA[
  140. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  141. model.refresh();
  142. ]]>
  143. </script>
  144. </input>
  145. <input id="ipt_reqcollcdeptnm" ref="/root/send/reqcollcdeptnm" class="input_search" appearance="input" style="left:499px; top:9px; width:172px; height:19px; ">
  146. <script type="javascript" ev:event="xforms-value-changed">
  147. <![CDATA[
  148. misfValidationCheck("02", "", "reqcollcdeptcd,reqcollcdeptnm" );
  149. model.refresh();
  150. ]]>
  151. </script>
  152. </input>
  153. <input id="ipt_reqdeptnm" ref="/root/send/reqdeptnm" class="input_search" appearance="input" style="left:499px; top:33px; width:172px; height:19px; ">
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  157. model.refresh();
  158. ]]>
  159. </script>
  160. </input>
  161. <button id="btn_reqcollcdept" class="icon_search" style="left:477px; top:11px; width:16px; height:16px; ">
  162. <caption/>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. var recv_list = "reqcollcdeptcd,reqcollcdeptnm";
  166. misfOpenPopUpList("02", ipt_reqcollcdeptcd,"",recv_list);
  167. model.refresh();
  168. ]]>
  169. </script>
  170. </button>
  171. <button id="btn_reqdept" class="icon_search" style="left:477px; top:35px; width:16px; height:16px; ">
  172. <caption/>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. var recv_list = "reqdeptcd,reqdeptnm";
  176. misfOpenPopUpList("02", ipt_reqdeptcd,"",recv_list);
  177. model.refresh();
  178. ]]>
  179. </script>
  180. </button>
  181. </group>
  182. <line id="line2" class="line_1" style="x1:0px; y1:94px; x2:1194; y2:94px; "/>
  183. <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:95px; height:13px; ">청구취합부서</caption>
  184. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:74px; width:53px; height:19px; ">
  185. <caption>행추가</caption>
  186. <script type="javascript" ev:event="DOMActivate">
  187. <![CDATA[
  188. if(cmb_instcd.value == "") {
  189. messageBox("기관코드를","C002");
  190. }
  191. else{
  192. grd_reqcollcdeptlist.addRow();
  193. var cur_row = grd_reqcollcdeptlist.row;
  194. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  195. model.setValue(grd_reqcollcdeptlist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd.value);
  196. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  197. grd_reqcollcdeptlist.editCell()
  198. }
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:74px; width:53px; height:19px; ">
  203. <caption>행삭제</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. deleteSelectedRows(grd_reqcollcdeptlist,false);
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </button>
  211. <datagrid id="grd_reqcollcdeptlist" nodeset="/root/main/reqcollcdeptlist" class="text_center" allowuserresize="false" caption="기관코드^청구취합부서^청구취합부서^청구부서^청구부서^물품구분^적용일자^비고^최초수정자ID^최초수정일시^최종수정자ID^최종수정일시" colsep="^" colwidth="140, 100, 130, 100, 130, 130, 120, 320, 100, 110, 100, 110" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:99px; width:1194; height:636px; ">
  212. <col id="instcd" class="combo_essential" disabled="true" ref="instcd" visibility="hidden">
  213. <choices>
  214. <itemset>
  215. <label/>
  216. <value/>
  217. </itemset>
  218. </choices>
  219. </col>
  220. <col class="input_essential" disabled="true" ref="reqcollcdeptcd" type="inputbutton"/>
  221. <col disabled="true" ref="reqcollcdeptnm" type="input"/>
  222. <col class="input_essential" disabled="true" ref="reqdeptcd" type="inputbutton"/>
  223. <col disabled="true" ref="reqdeptnm" type="input"/>
  224. <col id="goodflag" class="combo_essential" disabled="true" ref="goodflag" type="combo">
  225. <choices>
  226. <itemset>
  227. <label/>
  228. <value/>
  229. </itemset>
  230. </choices>
  231. </col>
  232. <col class="input_essential" disabled="true" ref="appdd" type="inputdate"/>
  233. <col ref="cmt" type="input"/>
  234. <col ref="fstrgstrid" visibility="hidden"/>
  235. <col ref="fstrgstdt" visibility="hidden"/>
  236. <col ref="lastupdtrid" visibility="hidden"/>
  237. <col ref="lastupdtdt" visibility="hidden"/>
  238. <script type="javascript" ev:event="onbuttonclick">
  239. <![CDATA[
  240. if (grd_reqcollcdeptlist.col == 2) {//청구취합부서 버튼을 눌렀을 때
  241. var recv_list = "reqcollcdeptcd,reqcollcdeptnm";
  242. misfOpenPopUpList("02", grd_reqcollcdeptlist,"",recv_list);
  243. var cur_row = grd_reqcollcdeptlist.row;
  244. var status = grd_reqcollcdeptlist.valueMatrix(cur_row, grd_reqcollcdeptlist.colRef("m"));
  245. if(status !="insert" && status !="delete") grd_reqcollcdeptlist.addStatus(cur_row,"update");
  246. }else if(grd_reqcollcdeptlist.col == 4) { //청구부서 버튼을 눌렀을 때
  247. var recv_list1 = "reqdeptcd,reqdeptnm";
  248. misfOpenPopUpList("02", grd_reqcollcdeptlist,"",recv_list1) ;
  249. var cur_row = grd_reqcollcdeptlist.row;
  250. var status = grd_reqcollcdeptlist.valueMatrix(cur_row, grd_reqcollcdeptlist.colRef("m"));
  251. if(status !="insert" && status !="delete") grd_reqcollcdeptlist.addStatus(cur_row,"update");
  252. }
  253. ]]>
  254. </script>
  255. </datagrid>
  256. </group>
  257. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  258. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  259. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  260. <caption>초기화</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. fInitialize();
  264. ]]>
  265. </script>
  266. </button>
  267. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3; width:56px; height:22px; ">
  268. <caption>저장</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. var updtdata = getGridUpdateData(grd_reqcollcdeptlist);
  272. if (updtdata == "" ) {
  273. messageBox("변경된 데이터가","I004");
  274. return;
  275. }
  276. //필수입력사항 체크
  277. var null_check_reqcollcdeptcd= "";
  278. var null_check_reqdeptcd = "";
  279. var null_check_goodflag = "";
  280. var null_check_appdd = "";
  281. for(var i=1;i<=grd_reqcollcdeptlist.rows-1;i++)
  282. {
  283. null_check_reqcollcdeptcd = model.getValue(grd_reqcollcdeptlist.attribute("nodeset")+"["+i+"]/reqcollcdeptcd");
  284. null_check_reqdeptcd = model.getValue(grd_reqcollcdeptlist.attribute("nodeset")+"["+i+"]/reqdeptcd");
  285. null_check_goodflag = model.getValue(grd_reqcollcdeptlist.attribute("nodeset")+"["+i+"]/goodflag");
  286. null_check_appdd = model.getValue(grd_reqcollcdeptlist.attribute("nodeset")+"["+i+"]/appdd");
  287. if(null_check_reqcollcdeptcd=="") {
  288. messageBox("청구취합부서코드는","I003");
  289. return;
  290. } else if(null_check_reqdeptcd=="") {
  291. messageBox("청구부서코드는","I003");
  292. return;
  293. } else if(null_check_goodflag=="") {
  294. messageBox("물품구분은","I003");
  295. return;
  296. } else if(null_check_appdd=="") {
  297. messageBox("적용일자는","I003");
  298. return;
  299. }
  300. null_check_reqcollcdeptcd = "";
  301. null_check_reqdeptcd = "";
  302. null_check_goodflag = "";
  303. null_check_appdd = "";
  304. }
  305. misfSave("TXRSC02701");
  306. ]]>
  307. </script>
  308. </button>
  309. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  310. <caption>출력</caption>
  311. </button>
  312. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  313. <caption>화면이동</caption>
  314. </button>
  315. </group>
  316. </xhtml:body>
  317. </xhtml:html>