SMRSC06400_일일업무 체크리스트.xrw 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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>일일업무보고 checklist 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <dybizchecklist>
  11. <dutyyn/>
  12. <chkitemid/>
  13. <chknm/>
  14. <useyn/>
  15. <cmt/>
  16. <instcd/>
  17. <goodflag/>
  18. <fstrgstrid/>
  19. <fstrgstdt/>
  20. <lastupdtrid/>
  21. <lastupdtdt/>
  22. </dybizchecklist>
  23. </main>
  24. <send>
  25. <instcd/>
  26. <dybizchecklist/>
  27. </send>
  28. <init>
  29. <dutyyn>
  30. <label>DAY</label>
  31. <value>D</value>
  32. <label>EVENING</label>
  33. <value>E</value>
  34. <label>Night</label>
  35. <value>B</value>
  36. </dutyyn>
  37. </init>
  38. <hidden/>
  39. <temp/>
  40. </root>
  41. </instance>
  42. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  44. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  45. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. fInitialize();
  49. ]]>
  50. </script>
  51. <submission id="TRRSC06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dybizchecklist"/>
  52. <submission id="TXRSC06401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  53. </model>
  54. <script type="javascript">
  55. <![CDATA[
  56. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  57. function fInitialize() {
  58. model.removeNodeset("/root/main/dybizchecklist");
  59. model.resetInstanceNode("/root/send");
  60. model.refresh();
  61. misfGridInit(grd_dybizchecklist);
  62. misfComboComCdListMulti("Z0007", "cmb_instcd"); //기관코드
  63. misfMsterDetailSet(grd_dybizchecklist,null,"TRRSC06401","Y");
  64. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  65. //화면 권한 설정
  66. btn_save.disabled = !(checkAuth("X"));
  67. btn_prt.disabled= !(checkAuth("P"));
  68. model.refresh();
  69. fsearch();
  70. }
  71. function fsearch(){
  72. if(!isRequiredControls("cmb_instcd")) return;
  73. var updtdata1 = getGridUpdateData(grd_dybizchecklist);
  74. if (updtdata1 != "" ) {
  75. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  76. if (ret != 6) { // not OK
  77. return;
  78. }
  79. }
  80. misfSetReadOnlyCol(grd_dybizchecklist, "dutyyn, chkitemid", true);
  81. misfMsterDetailRetrieve();
  82. }
  83. ]]>
  84. </script>
  85. </xhtml:head>
  86. <xhtml:body>
  87. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  88. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:220px; height:14px; ">일일업무보고 checklist 항목관리</caption>
  89. </group>
  90. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  91. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; ">
  92. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
  93. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:89px; height:17px; ">기관구분 :</caption>
  94. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:189px; height:19px; ">
  95. <choices>
  96. <itemset>
  97. <label/>
  98. <value/>
  99. </itemset>
  100. </choices>
  101. <script type="javascript" ev:event="xforms-value-changed">
  102. <![CDATA[
  103. fsearch();
  104. ]]>
  105. </script>
  106. </select1>
  107. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; "/>
  108. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  109. <caption>조회</caption>
  110. <script type="javascript" ev:event="DOMActivate">
  111. <![CDATA[
  112. fsearch();
  113. ]]>
  114. </script>
  115. </button>
  116. </group>
  117. <caption id="cap_grdtitle" class="tit_2" style="left:5px; top:54px; width:157px; height:14px; ">일일업무 체크리스트</caption>
  118. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  119. <datagrid id="grd_dybizchecklist" nodeset="/root/main/dybizchecklist" allowuserresize="false" caption="DUTY ^체크항목 ID^체크명^사용여부^비고^기관코드^최종수정일시" colsep="^" colwidth="100, 100, 315, 213, 427, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:1195px; height:661px; ">
  120. <col class="input_essential" disabled="true" ref="dutyyn" type="combo" _key="true" style="left:20px; top:23px; width:100px; height:23px; ">
  121. <choices>
  122. <itemset nodeset="/root/init/dutyyn">
  123. <label ref="label"/>
  124. <value ref="value"/>
  125. </itemset>
  126. </choices>
  127. </col>
  128. <col class="input_essential" disabled="true" ref="chkitemid" type="input" maxlength="2" _key="true"/>
  129. <col ref="chknm" type="input" maxlength="180"/>
  130. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  131. <col ref="cmt" type="input" maxlength="96"/>
  132. <col ref="instcd" visibility="hidden"/>
  133. <script type="javascript" ev:event="onrowchanged">
  134. <![CDATA[
  135. misfMsterDetailRetrieve();
  136. ]]>
  137. </script>
  138. <script type="javascript" ev:event="onaftersort">
  139. <![CDATA[
  140. grd_dybizchecklist.gridToInstance();
  141. ]]>
  142. </script>
  143. </datagrid>
  144. <button id="btn_grdadd1" class="btn2_letter3" style="left:1085px; top:48px; width:53px; height:19px; ">
  145. <caption>행추가</caption>
  146. <script type="javascript" ev:event="DOMActivate">
  147. <![CDATA[
  148. if(!isRequiredControls("cmb_instcd")) return;
  149. misfGridIUD(grd_dybizchecklist, "A");
  150. var cur_row = grd_dybizchecklist.row;
  151. //행추가를 누를시 상위코드의 값을 자동으로 저장한다.
  152. model.setValue("/root/main/dybizchecklist["+cur_row+"]/instcd",cmb_instcd.value);
  153. //행추가시에만 키값에 대한 input이 허용된다. 그외에는 key값을 수정할 수 없다.
  154. grd_dybizchecklist.editCell()
  155. model.refresh();
  156. ]]>
  157. </script>
  158. </button>
  159. <button id="btn_grddel1" class="btn2_letter3" style="left:1141px; top:48px; width:53px; height:19px; ">
  160. <caption>행삭제</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. misfGridIUD(grd_dybizchecklist, "D");
  164. model.refresh();
  165. ]]>
  166. </script>
  167. </button>
  168. </group>
  169. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  170. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  171. <caption>저장</caption>
  172. <script type="javascript" ev:event="DOMActivate">
  173. <![CDATA[
  174. var updtdata1 = getGridUpdateData(grd_dybizchecklist);
  175. if (updtdata1 == "" ) {
  176. messageBox("변경된 데이터가","I004");
  177. return;
  178. }
  179. //필수입력사항 체크
  180. if(!checkKeyColumn("grd_dybizchecklist")) return;
  181. misfSave("TXRSC06401");
  182. fsearch();
  183. ]]>
  184. </script>
  185. </button>
  186. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  187. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  188. <caption>초기화</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. var dybizchecklist = getGridUpdateData(grd_dybizchecklist);
  192. if (dybizchecklist != "" ) {
  193. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  194. if (ret != 6) { // not OK
  195. return;
  196. }
  197. }
  198. fInitialize();
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  203. <caption>출력</caption>
  204. </button>
  205. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  206. <caption>화면이동</caption>
  207. </button>
  208. </group>
  209. </xhtml:body>
  210. </xhtml:html>