SMRAC00300_기재사항코드관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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. <condition>
  11. <notecd/>
  12. <notecdnm/>
  13. </condition>
  14. <notelist>
  15. <notecd/>
  16. <notecdnm/>
  17. <mngtkind/>
  18. <inptkind/>
  19. <frmt/>
  20. <popwnd/>
  21. </notelist>
  22. </main>
  23. <send>
  24. <notelist/>
  25. </send>
  26. <init>
  27. <helppopup>
  28. <popup>
  29. <cd>15</cd>
  30. <nm>계좌번호</nm>
  31. </popup>
  32. <popup>
  33. <cd>05</cd>
  34. <nm>대체계정</nm>
  35. </popup>
  36. <popup>
  37. <cd>50</cd>
  38. <nm>차입금관리</nm>
  39. </popup>
  40. <popup>
  41. <cd>51</cd>
  42. <nm>유가증권관리</nm>
  43. </popup>
  44. <popup>
  45. <cd>02</cd>
  46. <nm>부서코드</nm>
  47. </popup>
  48. <popup>
  49. <cd>01</cd>
  50. <nm>사번</nm>
  51. </popup>
  52. <popup>
  53. <cd>14</cd>
  54. <nm>거래처</nm>
  55. </popup>
  56. <popup>
  57. <cd>36</cd>
  58. <nm>부서코드</nm>
  59. </popup>
  60. </helppopup>
  61. </init>
  62. <temp/>
  63. </root>
  64. </instance>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  69. <submission id="TRRAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/notelist"/>
  70. <submission id="TXRAC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. fCheckAuth();//화면 권한체크
  74. fOpenForm();
  75. //sCdGrupid = model.getValue("/root/init/comcode/cdgrupid");
  76. //공통함수 호출(help명)
  77. //misfGridComboComCdList("R0002", grd_notelist, "popwnd");
  78. misfMsterDetailSet(grd_notelist, null, "TRRAC00301", "Y");
  79. fGetNoteList();
  80. ]]>
  81. </script>
  82. <script type="javascript">
  83. <![CDATA[
  84. //========================================================================================
  85. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  86. //========================================================================================
  87. function fCheckAuth() {
  88. btn_search.disabled = !checkAuth("R") ;
  89. btn_save.disabled = !checkAuth("X") ;
  90. btn_prt.disabled = !checkAuth("P") ;
  91. }
  92. //========================================================================================
  93. //화면 로드시 초기화 함수
  94. //========================================================================================
  95. function fOpenForm() {
  96. model.removenode("/root/main/notelist");
  97. model.refresh();
  98. }
  99. //========================================================================================
  100. //기재사항코드 조회
  101. //========================================================================================
  102. function fGetNoteList() {
  103. model.removenode("/root/main/notelist");//조회시 기존 데이터 삭제
  104. model.copyNode("/root/send", "/root/main/condition");
  105. // submit("TRRAC00301");
  106. misfMsterDetailRetrieve();
  107. misfSetReadOnlyCol(grd_notelist, "notecd");
  108. model.refresh();
  109. }
  110. //========================================================================================
  111. // 저장버튼 클릭시 저장 수행 함수
  112. //========================================================================================
  113. function fClickSaveBtn()
  114. {
  115. if(!fIsValidForSave())//저장전 유효성 검사
  116. return;
  117. model.resetInstanceNode("/root/send");
  118. model.makeNode("/root/send/notelist");
  119. model.setValue("/root/send/notelist", grd_notelist.getUpdateData());
  120. misfSave("TXRAC00301");
  121. /* model.resetInstanceNode("/root/send");
  122. model.makeNode("/root/send/notelist");
  123. model.setValue("/root/send/notelist", grd_notelist.getUpdateData());
  124. if(submit("TXRAC00301"))
  125. {
  126. grd_notelist.clearStatus();
  127. }
  128. */
  129. }
  130. //========================================================================================
  131. // 행추가버튼 클릭시
  132. //========================================================================================
  133. function fGrdAdd(pGrid) {
  134. pGrid.addRow();
  135. pGrid.editCell();
  136. model.refresh();
  137. }
  138. //========================================================================================
  139. // 행삭제버튼 클릭시
  140. //========================================================================================
  141. function fGrdDel(pGrid) {
  142. var cur_row = pGrid.row;
  143. if(cur_row > -1) {
  144. deleteSelectedRows(pGrid, false); //true : 바로삭제, false : 상태만 삭제로 변경
  145. pGrid.refresh();
  146. }else if(cur_row == -1) {
  147. messageBox("삭제하려는 행을", "C002");
  148. }
  149. }
  150. //========================================================================================
  151. //저장전 유효성 검사
  152. //========================================================================================
  153. function fIsValidForSave() {
  154. //필수 입력 항목 체크(공통 ftHelper.js)
  155. /* if(!isRequiredControls("ipt_acntcdi", "ipt_acntnmi", "rdo_drcustflag", "rdo_crcustflag",
  156. "cmb_balflag", "rdo_acntuseyn", "com_acntflag", "com_acntclsflag")) {
  157. return false;
  158. }
  159. */
  160. var sNoteList = getGridUpdateData(grd_notelist);
  161. if(sNoteList == "") {
  162. messageBox("변경된 데이터가","I004");
  163. return false;
  164. }else if(sNoteList != "") {
  165. return true;
  166. }
  167. }
  168. //========================================================================================
  169. //엑셀입력(excel file을 그리드에 입력)
  170. //========================================================================================
  171. function fInputExcel(pGrid) {
  172. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  173. if(fileName != "") {
  174. pGrid.loadExcel(fileName, 1, true);
  175. pGrid.deleteRow(1);
  176. for(i = 1; i < pGrid.rows; i++) {
  177. pGrid.rowStatus(i) = 1;
  178. }
  179. pGrid.refresh();
  180. }
  181. }
  182. ]]>
  183. </script>
  184. </model>
  185. </xhtml:head>
  186. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  187. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  188. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">기재사항 코드관리</caption>
  189. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  190. </group>
  191. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  192. <group id="grp_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
  193. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  194. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:125px; height:17px; ">기재사항코드 :</caption>
  195. <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  196. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  197. <caption>조회</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. fGetNoteList();
  201. ]]>
  202. </script>
  203. </button>
  204. <input id="ipt_notecd" ref="/root/main/condition/notecd" class="input_s_essential" navindex="6" style="left:135px; top:8px; width:80px; height:19px; ">
  205. <script type="javascript" ev:event="onkeypress">
  206. <![CDATA[
  207. if(event.keyCode == 13)
  208. {
  209. model.setFocus("ipt_notecdnm");
  210. }
  211. ]]>
  212. </script>
  213. <script type="javascript" ev:event="xforms-value-changed">
  214. <![CDATA[
  215. racfNoteValidCheck("notecd,notecdnm")
  216. ]]>
  217. </script>
  218. </input>
  219. <input id="ipt_notecdnm" ref="/root/main/condition/notecdnm" class="input_s_essential" navindex="6" style="left:241px; top:8px; width:230px; height:19px; ">
  220. <script type="javascript" ev:event="onkeypress">
  221. <![CDATA[
  222. if(event.keyCode == 13)
  223. {
  224. model.setFocus("btn_search");
  225. }
  226. ]]>
  227. </script>
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. racfNoteValidCheck("notecd,notecdnm")
  231. ]]>
  232. </script>
  233. </input>
  234. <button id="btn_help" class="icon_search" style="left:221px; top:10px; width:16px; height:16px; ">
  235. <caption/>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. misfOpenPopUpList("06", ipt_notecd, "", "notecd,notecdnm");
  239. model.refresh();
  240. ]]>
  241. </script>
  242. </button>
  243. </group>
  244. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  245. <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">관리항목코드 목록</caption>
  246. <button id="btn_grdadd" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
  247. <caption>행추가</caption>
  248. <script type="javascript" ev:event="onclick">
  249. <![CDATA[
  250. misfGridIUD(grd_notelist, "A");
  251. ]]>
  252. </script>
  253. </button>
  254. <button id="btn_grddel" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
  255. <caption>행삭제</caption>
  256. <script type="javascript" ev:event="onclick">
  257. <![CDATA[
  258. misfGridIUD(grd_notelist, "D");
  259. ]]>
  260. </script>
  261. </button>
  262. <button id="btn_excadd" class="btn2_letter4" style="left:1018px; top:50px; width:64px; height:19px; text-align:left; ">
  263. <caption>엑셀입력</caption>
  264. <script type="javascript" ev:event="onclick">
  265. <![CDATA[
  266. fInputExcel(grd_notelist);
  267. ]]>
  268. </script>
  269. </button>
  270. <datagrid id="grd_notelist" nodeset="/root/main/notelist" caption="기재코드^기재사항코드명^관리형태^입력유형^형식^HELP명^Return List" colsep="^" colwidth="160, 230, 90, 80, 146, 132, 320" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:75px; width:1194px; height:663px; ">
  271. <col ref="notecd" type="input" maxlength="3" style="text-align:left; "/>
  272. <col ref="notecdnm" type="input"/>
  273. <col ref="mngtkind" type="combo">
  274. <choices>
  275. <item>
  276. <label>코드</label>
  277. <value>1</value>
  278. </item>
  279. <item>
  280. <label>내역</label>
  281. <value>2</value>
  282. </item>
  283. <item>
  284. <label>콤보</label>
  285. <value>3</value>
  286. </item>
  287. </choices>
  288. </col>
  289. <col ref="inptkind" type="combo">
  290. <choices>
  291. <item>
  292. <label>문자</label>
  293. <value>C</value>
  294. </item>
  295. <item>
  296. <label>숫자</label>
  297. <value>N</value>
  298. </item>
  299. <item>
  300. <label>날짜</label>
  301. <value>D</value>
  302. </item>
  303. <item>
  304. <label>백분율</label>
  305. <value>P</value>
  306. </item>
  307. </choices>
  308. </col>
  309. <col ref="frmt" type="input"/>
  310. <col id="popwnd" ref="popwnd" type="combo">
  311. <choices>
  312. <itemset nodeset="/root/init/helppopup/popup">
  313. <label ref="nm"/>
  314. <value ref="cd"/>
  315. </itemset>
  316. </choices>
  317. </col>
  318. <col ref="returninstancelist" type="input"/>
  319. <script type="javascript" ev:event="onaftersort">
  320. <![CDATA[
  321. grd_notelist.gridToInstance();
  322. ]]>
  323. </script>
  324. </datagrid>
  325. <button id="button1" class="btn2_letter4" style="left:950px; top:50px; width:64px; height:19px; text-align:left; ">
  326. <caption>엑셀출력</caption>
  327. <script type="javascript" ev:event="onclick">
  328. <![CDATA[
  329. fInputExcel(misfSaveExcel);
  330. ]]>
  331. </script>
  332. </button>
  333. </group>
  334. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  335. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  336. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  337. <caption>저장</caption>
  338. <script type="javascript" ev:event="onclick">
  339. <![CDATA[
  340. fClickSaveBtn();
  341. ]]>
  342. </script>
  343. </button>
  344. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
  345. <caption>출력</caption>
  346. </button>
  347. </group>
  348. </xhtml:body>
  349. </xhtml:html>