XSMRSC05000_TEST.xrw 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. <main>
  10. <studylist>
  11. <instcd/>
  12. <stdysubjno/>
  13. <stdysubjnm/>
  14. <stdypsn/>
  15. <stdypnm/>
  16. <cmt/>
  17. </studylist>
  18. </main>
  19. <send>
  20. <instcd/>
  21. <studylist/>
  22. </send>
  23. <init/>
  24. <hidden/>
  25. <temp/>
  26. </root>
  27. </instance>
  28. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  29. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  30. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  31. <script type="javascript" ev:event="xforms-ready">
  32. <![CDATA[
  33. fInitialize();
  34. misfMsterDetailRetrieve();
  35. ]]>
  36. </script>
  37. <submission id="TRRSC01201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/studylist"/>
  38. <submission id="TXRSC01201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
  39. </model>
  40. <script type="javascript">
  41. <![CDATA[
  42. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  43. function fInitialize() {
  44. misfComboComCdList("Z0007", cmb_instcd); //기관코드
  45. misfMsterDetailSet(grd_studylist,null,"TRRSC01201","Y"); //마스터 설정
  46. misfGridInit(grd_studylist);
  47. model.removeNodeset("/root/main/studylist");
  48. model.resetInstanceNode("/root/send");
  49. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  50. //화면 권한 설정
  51. btn_save.disabled = !(checkAuth("X"));
  52. btn_prt.disabled= !(checkAuth("P"));
  53. misfSetReadOnlyCol(grd_studylist, "instcd,stdysubjno",true);
  54. // model.refresh();
  55. }
  56. function fsearch()
  57. {
  58. var updtdata = getGridUpdateData(grd_studylist);
  59. if ( updtdata != "") {
  60. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  61. if (ret != 6) { // not OK
  62. return;
  63. }
  64. }
  65. misfMsterDetailRetrieve();
  66. misfSetReadOnlyCol(grd_studylist, "instcd,stdysubjno",true);
  67. }
  68. ]]>
  69. </script>
  70. </xhtml:head>
  71. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  72. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  73. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">연구과제 등록</caption>
  74. </group>
  75. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  76. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:40px; vertical-align:top; ">
  77. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  78. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  79. <line id="line13" class="line_4" style="x1:1110px; y1:0px; x2:1110px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  80. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  81. <caption>조회</caption>
  82. <script type="javascript" ev:event="DOMActivate">
  83. <![CDATA[
  84. var updtdata = getGridUpdateData(grd_studylist);
  85. if ( updtdata != "") {
  86. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  87. if (ret != 6) { // not OK
  88. return;
  89. }
  90. }
  91. //기관코드 값 체크
  92. var null_check = cmb_instcd.value;
  93. if( null_check=="") {
  94. messageBox("기관코드를","C002");
  95. return;
  96. }
  97. //연구과제 등록 리스트 출력
  98. misfMsterDetailRetrieve();
  99. if(grd_studylist.rows >1) {
  100. grd_studylist.row=1;
  101. }
  102. model.refresh();
  103. ]]>
  104. </script>
  105. </button>
  106. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:8px; width:158px; height:19px; ">
  107. <choices>
  108. <itemset>
  109. <label/>
  110. <value/>
  111. </itemset>
  112. </choices>
  113. </select1>
  114. <script type="javascript" ev:event="xforms-value-changed">
  115. <![CDATA[
  116. misfMsterDetailRetrieve();
  117. ]]>
  118. </script>
  119. </group>
  120. <line id="line2" class="line_1" style="x1:0px; y1:94px; x2:1194; y2:94px; "/>
  121. <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:95px; height:14px; ">연구과제</caption>
  122. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:74px; width:53px; height:19px; ">
  123. <caption>행추가</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. if(!isRequiredControls("cmb_instcd")) return;
  127. misfGridIUD(grd_studylist, "A");
  128. var cur_row = grd_studylist.row;
  129. //행추가를 누를시 기간코드 값을 자동으로 저장한다.
  130. model.setValue(grd_studylist.attribute("nodeset")+"["+cur_row+"]/instcd",cmb_instcd.value);
  131. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  132. grd_studylist.editCell()
  133. ]]>
  134. </script>
  135. </button>
  136. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:74px; width:53px; height:19px; ">
  137. <caption>행삭제</caption>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. misfGridIUD(grd_studylist, "D");
  141. ]]>
  142. </script>
  143. </button>
  144. <datagrid id="grd_studylist" nodeset="/root/main/studylist" caption="기관코드^연구과제번호^연구과제명^책임자^책임자^비고" colwidth="2, 150, 200, 150, 150, 520" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" colsep="^" style="left:0px; top:100px; width:1195px; height:640px; ">
  145. <col ref="instcd" type="input" _key="true"/>
  146. <col ref="stdysubjno" type="input" _key="true"/>
  147. <col ref="stdysubjnm" type="input"/>
  148. <col ref="stdypsn" type="inputbutton"/>
  149. <col ref="stdypnm"/>
  150. <col ref="cmt" type="input"/>
  151. <script type="javascript" ev:event="onbuttonclick">
  152. <![CDATA[
  153. if (grd_studylist.col == 4) {//책임자 버튼을 눌렀을 때
  154. misfOpenPopUpList("12", grd_studylist, "", "stdypsn,stdypnm", "%", "instcd");
  155. }
  156. ]]>
  157. </script>
  158. </datagrid>
  159. </group>
  160. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  161. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  162. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  163. <caption>초기화</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. fInitialize();
  167. ]]>
  168. </script>
  169. </button>
  170. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3; width:56px; height:22px; ">
  171. <caption>저장</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. var updtdata = getGridUpdateData(grd_studylist);
  175. if (updtdata == "")
  176. {
  177. messageBox("변경된 데이터가","I004");
  178. return;
  179. }
  180. if(!checkKeyColumn("grd_studylist")) return;
  181. rtn = messageBox("", "Q002");
  182. if(rtn != "6" ) return false;
  183. misfSave("TXRSC01201");
  184. fsearch();
  185. ]]>
  186. </script>
  187. </button>
  188. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:3; width:56px; height:22px; ">
  189. <caption>출력</caption>
  190. </button>
  191. <button id="btn_scrnmove" class="btn3_letter4" style="left:58px; top:3px; width:80px; height:22px; ">
  192. <caption>화면이동</caption>
  193. </button>
  194. </group>
  195. </xhtml:body>
  196. </xhtml:html>