SMRSC01200_연구과제 등록.xrw 8.9 KB

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