SMSMV00200_세분변수등록.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  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. <newform>
  11. <divvarcd/>
  12. <divvarnm/>
  13. <histstatcd/>
  14. <instcd/>
  15. <clsdeptnm/>
  16. <suggdeptcd/>
  17. <divvardefine/>
  18. <relcdnm/>
  19. <supdivvarcd/>
  20. <stndagmtyn/>
  21. <compuappyn/>
  22. <subjcd/>
  23. <rem/>
  24. <fstrgstrid/>
  25. <fstrgstdt/>
  26. <lastupdtrid/>
  27. <lastupdtdt/>
  28. <updtrtelno/>
  29. <rgstnm/>
  30. </newform>
  31. <item>
  32. <item_check/>
  33. <itemseq/>
  34. <itemnm/>
  35. <itemlblnm/>
  36. <itemdefine/>
  37. <recgendbasespec/>
  38. <divvarcd/>
  39. <fstrgstrid/>
  40. <fstrgstdt/>
  41. <lastupdtrid/>
  42. <lastupdtdt/>
  43. </item>
  44. <kpi>
  45. <kpi_check/>
  46. <kpi_num/>
  47. <kpicd/>
  48. <kpinm/>
  49. <kpidefine/>
  50. <kpiunitcd/>
  51. <kpitypcd/>
  52. <divvarcd/>
  53. <lastupdtrid/>
  54. <lastupdtridnm/>
  55. </kpi>
  56. <report>
  57. <cretseq/>
  58. <statsreptcd/>
  59. <statsreptnm/>
  60. <statsspec/>
  61. <divvarcd/>
  62. <lastupdtrid/>
  63. </report>
  64. </main>
  65. <send>
  66. <divvarcd/>
  67. <savedata>
  68. <newform/>
  69. </savedata>
  70. <data2>
  71. </data2>
  72. <data3/>
  73. <onflag/>
  74. <sessuserid/>
  75. </send>
  76. <hidden>
  77. <session/>
  78. <tabkpidata/>
  79. <prevdata/>
  80. </hidden>
  81. <temp/>
  82. <init>
  83. <instcd/>
  84. <dutplcecd/>
  85. <usergrpcd/>
  86. <dutplceinstnm/>
  87. <usernm/>
  88. <dutplcenm/>
  89. <userid/>
  90. <supdivvarnm/>
  91. <S0001_list>
  92. <S0001>
  93. <cdid/>
  94. <cdnm/>
  95. </S0001>
  96. </S0001_list>
  97. </init>
  98. </root>
  99. </instance>
  100. <submission id="TRSMV00201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main"/>
  101. <submission id="TXSMV00203" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
  102. <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
  103. </model>
  104. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  106. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  107. <script type="javascript" src="../../../sts/stsmngtweb/js/sts.js"/>
  108. <script type="javascript" ev:event="xforms-ready">
  109. <![CDATA[
  110. var userGroup //사용자그룹 전역변수
  111. fGetUserSessionInfo(); //session 정보 세팅 + 사용자 정보 세팅
  112. fUserBtnAuthCheck(); //버튼에 대한 권한체크
  113. zbcfGetCodeList(new Array("S0001"), new Array("/root/init/S0001_list"));
  114. fNodeClearDivVar(); //노드와 컨트롤을 초기화한다.
  115. fSetUserInfo() // 상단의 사용자 정보 세팅
  116. //신규버튼을 누르고 넘어온 화면(on)인지, 상세조회로 온 화면(off)인지 구분하여 버튼권한처리
  117. if (model.getAttribute("iParam_new_on_off") == "on") {
  118. btn_save.disabled = false;
  119. btn_update.disabled = true;
  120. btn_delete.disabled = true;
  121. model.setvalue("/root/main/newform/compuappyn", "N");
  122. model.setvalue("/root/main/newform/stndagmtyn", "N");
  123. model.setvalue("/root/main/newform/histstatcd", "01");
  124. }else {
  125. btn_save.disabled = true;
  126. btn_update.disabled = false;
  127. model.setvalue("/root/send/divvarcd", model.getValue("/root/hidden/prevdata/divvarcd"));
  128. submit("TRSMV00201");
  129. }
  130. model.setValue("/root/main/newform/instcd", model.getValue("/root/hidden/session/dutplceinstcd")); //기관코드
  131. model.setValue("/root/main/newform/suggdeptcd", model.getValue("/root/hidden/session/dutplcecd")); //부서코드
  132. model.setValue("/root/init/usergrpcd", model.getValue("/root/hidden/prevdata/usergrpcd")); //사용자그룹
  133. model.refresh();
  134. ]]>
  135. </script>
  136. <script type="javascript">
  137. <![CDATA[
  138. var GridTab = "grd_item";
  139. //tab 세분변수 항목 입력/수정시 순번 체크함수
  140. function fItemNumDupCheck(){
  141. var rowcnt = grd_item.rows;
  142. var item_back;
  143. var item_num;
  144. for (i = 1; i <= rowcnt; i++){
  145. item_back = model.getValue("/root/main/item["+ i +"]/item_num");
  146. for (j = 1; j <= rowcnt; j++){
  147. if (i != j){
  148. item_num = model.getValue("/root/main/item["+ j +"]/item_num");
  149. // 비교하는 데이타가 null이 아닐때만 체크한다.
  150. if( item_back != "" && item_num != ""){
  151. if (item_back == item_num) {
  152. alert("순번 " + item_back.toString() + " 가 중복됩니다! 순번작업을 다시해 주십시요!");
  153. return false;
  154. }
  155. }
  156. }
  157. }
  158. }
  159. }
  160. //tab KPI 코드 중복체크
  161. function fKPICDDupCheck(){
  162. var rowcnt = grd_kpi.rows;
  163. var kpi_back;
  164. var kpi_kpicd;
  165. for (i = 1; i <= rowcnt; i++){
  166. kpi_back = model.getValue("/root/main/kpi["+ i +"]/kpicd");
  167. for (j = 1; j <= rowcnt; j++){
  168. if (i != j){
  169. kpi_kpicd = model.getValue("/root/main/kpi["+ j +"]/kpicd");
  170. if (kpi_back == kpi_kpicd){
  171. alert("KPI 코드가 중복됩니다! 한개만 선택해주십시요!");
  172. return false;
  173. }
  174. }
  175. }
  176. }
  177. }
  178. //빈값이 있는지 체크
  179. function fNullCheck() {
  180. if(model.getvalue("/root/main/newform/updtrtelno") =="") {
  181. alert("작성자 연락처를 입력하세요.");
  182. return false;
  183. }
  184. if(model.getvalue("/root/main/newform/divvarnm") =="") {
  185. alert("세분변수 명을 입력하세요.");
  186. return false;
  187. }
  188. if(model.getvalue("/root/main/newform/divvardefine") =="") {
  189. alert("세분변수 정의를 입력하세요.");
  190. return false;
  191. }
  192. if(model.getvalue("/root/main/newform/subjcd") =="") {
  193. alert("subject 영역을 선택해 주세요.");
  194. return false;
  195. }
  196. }
  197. // 변경이 가능한 상황인지 체크. (슈퍼관리자 2명은 제외)
  198. function fUpdateCheck() {
  199. if(userGroup != "S"){
  200. var rgst_userid = model.getValue("/root/main/newform/lastupdtrid");
  201. var sess_userid = model.getValue("/root/hidden/session/userid");
  202. if (rgst_userid != sess_userid){
  203. alert("등록한 사용자만 변경할 수 있습니다. ");
  204. return false;
  205. }
  206. } //관리자체크
  207. }
  208. // 삭제가 가능한 상황인지 체크
  209. function fDeleteCheck() {
  210. if( model.getValue("/root/main/newform/divvarcd") == "" ||
  211. model.getValue("/root/main/newform/divvarnm") == ""){
  212. alert("삭제할 내용이 없습니다.");
  213. return false;
  214. }
  215. }
  216. function fSetKeyValue() {
  217. for(var a = 1; a < grd_kpi.rows; a++){
  218. model.makeValue("/root/main/kpi[" + a + "]/divvarcd", model.getvalue("/root/main/newform/divvarcd"));
  219. }
  220. model.refresh();
  221. }
  222. ]]>
  223. </script>
  224. </xhtml:head>
  225. <xhtml:body guideline="1,1247;2,330;1,600;1,718;2,328;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  226. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  227. <input id="ipt_relcdnm" ref="/root/main/newform/relcdnm" class="input_default" style="left:103px; top:158px; width:466px; height:19px; "/>
  228. <output id="opt_supdivvarnm" ref="/root/init/supdivvarnm" class="output_fix" appearance="output" style="left:103px; top:182px; width:466px; height:19px; "/>
  229. <caption id="caption3" class="cell_1" style="left:0px; top:180px; width:100px; height:23px; ">상위세분변수명</caption>
  230. <input id="ipt_divvarnm" ref="/root/main/newform/divvarnm" class="input_essential" maxlength="25" style="left:103px; top:110px; width:466px; height:19px; "/>
  231. <output id="opt_divvarcd" ref="/root/main/newform/divvarcd" class="output_essential" appearance="output" style="left:723px; top:110px; width:175px; height:19px; "/>
  232. <caption id="caption5" class="cell_1" style="left:600px; top:156px; width:120px; height:23px; ">표준화 합의여부</caption>
  233. <caption id="caption8" class="cell_1" style="left:900px; top:180px; width:130px; height:23px; ">전산 적용여부</caption>
  234. <caption id="caption9" class="cell_1" style="left:600px; top:108px; width:120px; height:23px; ">세분변수 Code</caption>
  235. <input id="ipt_divvardefine" ref="/root/main/newform/divvardefine" class="input_essential" maxlength="130" style="left:103px; top:134px; width:1089px; height:19px; "/>
  236. <select1 id="cmb_stndyn" ref="/root/main/newform/stndagmtyn" class="combo_default" appearance="minimal" style="left:723px; top:158px; width:175px; height:19px; ">
  237. <choices>
  238. <item>
  239. <label>Yes</label>
  240. <value>Y</value>
  241. </item>
  242. <item>
  243. <label>No</label>
  244. <value>N</value>
  245. </item>
  246. </choices>
  247. </select1>
  248. <output id="opt_deptnm" ref="/root/init/dutplcenm" class="output_default" style="left:403px; top:32px; width:140px; height:19px; text-align:left; "/>
  249. <output id="opt_usernm" ref="/root/init/usernm" class="output_default" style="left:103px; top:56px; width:190px; height:19px; text-align:left; "/>
  250. <output id="opt_fstrgstdt" ref="/root/main/newform/lastupdtdt" format="yyyy-mm-dd hh:nn" style="left:723px; top:56px; width:175px; height:19px; text-align:left; "/>
  251. <output id="opt_clsdeptnm" class="output_fix" appearance="output" style="left:723px; top:32px; width:175px; height:19px; text-align:left; "/>
  252. <line id="line4" class="line_3" style="x1:0px; y1:254px; x2:1195px; y2:254px; "/>
  253. <line id="line5" class="line_3" style="x1:230px; y1:738px; x2:1190px; y2:738px; "/>
  254. <button id="button8" class="icon_search" style="left:882px; top:183px; width:16px; height:16px; ">
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. modal("SPSMV00400");
  258. opt_supcd.value = model.getAttribute("iParam_divvarcd");
  259. opt_supdivvarnm.value = model.getAttribute("iParam_divvarnm");
  260. model.refresh();
  261. ]]>
  262. </script>
  263. <caption/>
  264. </button>
  265. <output id="opt_stndagmtyn" ref="/root/main/newform/compuappyn" class="output_fix" appearance="output" style="left:1032px; top:182px; width:70px; height:19px; "/>
  266. <caption id="caption2" class="cell_1" style="left:0px; top:204px; width:100px; height:50px; ">비 고</caption>
  267. <textarea id="tar_rem" ref="/root/main/newform/rem" scroll="vertical" style="left:103px; top:205px; width:1089px; height:48px; "/>
  268. <button id="btn_tab_kpi" class="btn_sw" group="tab" style="left:84px; top:261px; width:84px; height:22px; ">
  269. <caption>KPI</caption>
  270. <toggle case="KPI" ev:event="onclick"/>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. GridTab = "grd_kpi";
  274. btn_add.visible = true;
  275. btn_delete_row.visible = true;
  276. ]]>
  277. </script>
  278. </button>
  279. <button id="btn_tab_item" class="btn_sw" group="tab" selected="true" style="left:0px; top:261px; width:84px; height:22px; ">
  280. <caption>항목</caption>
  281. <toggle case="항목" ev:event="onclick"/>
  282. <script type="javascript" ev:event="DOMActivate">
  283. <![CDATA[
  284. GridTab = "grd_item";
  285. btn_add.visible = true;
  286. btn_delete_row.visible = true;
  287. ]]>
  288. </script>
  289. </button>
  290. <switch id="GridTab" style="left:0px; top:283px; width:1190px; height:456px; border-color:#c7a3cf; border-style:solid; ">
  291. <case id="항목" selected="true" style="left:0px; top:0px; width:1188px; height:454px; ">
  292. <datagrid id="grd_item" nodeset="/root/main/item" caption="선택^순 번^항 목 명^약어 (Label)^항 목 정 의^인식 / 마감기준^ㅇ" colwidth="34, 60, 225, 140, 550, 157, 7" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:4px; top:29px; width:1180px; height:420px; ">
  293. <col ref="item_check" type="checkbox"/>
  294. <col ref="itemseq" type="input"/>
  295. <col class="gridinput" ref="itemnm" type="input"/>
  296. <col class="gridinput" ref="itemlblnm" type="input"/>
  297. <col class="gridinput" ref="itemdefine" type="input"/>
  298. <col class="gridinput" ref="recgendbasespec" type="input"/>
  299. <col ref="divvarcd"/>
  300. </datagrid>
  301. </case>
  302. <case id="KPI">
  303. <datagrid id="grd_kpi" nodeset="/root/main/kpi" visibility="visible" caption="^순번^KPI 코드^KPI 명^KPI 정 의^단 위^KPI 유형^dvcd^최종수정자ID-^등록자" colwidth="25, 40, 80, 150, 700, 60, 90, 53, 100, 100" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:5px; top:29px; width:1175px; height:380px; ">
  304. <col ref="kpi_check" type="checkbox"/>
  305. <col ref="kpi_num" style="text-align:center; "/>
  306. <col ref="kpicd" visibility="hidden"/>
  307. <col ref="kpinm" visibility="visible"/>
  308. <col ref="kpidefine"/>
  309. <col ref="kpiunitcd" style="text-align:center; "/>
  310. <col ref="kpitypcd" style="text-align:center; "/>
  311. <col ref="divvarcd" visibility="hidden" style="text-align:center; "/>
  312. <col ref="lastupdtrid" visibility="hidden" style="text-align:center; "/>
  313. <col ref="lastupdtridnm" style="text-align:center; "/>
  314. </datagrid>
  315. </case>
  316. <case id="Report" style="left:0px; top:0px; width:1188px; height:454px; ">
  317. <datagrid id="grd_report" nodeset="/root/main/report" caption="생성순번^cd^Report 명^통계 Report 설명 내역" colwidth="60, 42, 281, 823" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" tooltip="true" style="left:4px; top:29px; width:1180px; height:420px; ">
  318. <col ref="cretseq"/>
  319. <col ref="statsreptcd" visibility="hidden"/>
  320. <col ref="statsreptnm"/>
  321. <col ref="statsspec"/>
  322. </datagrid>
  323. </case>
  324. </switch>
  325. <button id="btn_add" class="btn2_letter4" style="left:1066px; top:291px; width:64px; height:19px; ">
  326. <caption>항목추가</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. // 항목 탭일때....
  330. if(GridTab == "grd_item"){
  331. grd_item.additem();
  332. var iRow = grd_item.row;
  333. model.setvalue("/root/main/item[" + iRow + "]/divvarcd", model.getvalue("/root/main/newform/divvarcd"));
  334. }
  335. // KPI 탭일때.....
  336. if(GridTab == "grd_kpi"){
  337. modal("SPSMK00500");
  338. model.refresh();
  339. }
  340. ]]>
  341. </script>
  342. </button>
  343. <button id="btn_delete_row" class="btn2_letter3" style="left:1132px; top:291px; width:53px; height:19px; ">
  344. <caption>행삭제</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. var sessionuserid = model.getValue("/root/hidden/session/userid");
  348. var status;
  349. // 관리자를 제외하고는 등록한 사람만이 삭제할 수 있다.
  350. if (userGroup != "S"){
  351. if(GridTab == "grd_item"){
  352. cur_row = grd_item.row;
  353. status = grd_item.rowstatus("delete");
  354. var item_lastupdtrid = model.getValue("/root/main/item["+cur_row+"]/lastupdtrid");
  355. if (status == 0 && sessionuserid != item_lastupdtrid){
  356. alert("최종수정자와 로그인한 사용자가 다르므로 삭제할 수 없습니다!");
  357. return;
  358. }
  359. grd_item.deleteitem(cur_row);
  360. }
  361. if(GridTab == "grd_kpi"){
  362. cur_row = grd_kpi.row;
  363. status = grd_item.rowstatus("delete");
  364. var kpi_lastupdtrid = model.getValue("/root/main/kpi["+cur_row+"]/lastupdtrid");
  365. if (status == 0 && sessionuserid != kpi_lastupdtrid){
  366. alert("최종수정자와 로그인한 사용자가 다르므로 삭제할 수 없습니다!");
  367. return;
  368. }
  369. grd_kpi.deleteitem(cur_row);
  370. }
  371. } // 관리자 체크 끝
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="btn_tab_report" class="btn_sw" group="tab" style="left:168px; top:261px; width:84px; height:22px; ">
  376. <caption>Report</caption>
  377. <toggle case="Report" ev:event="onclick"/>
  378. <script type="javascript" ev:event="DOMActivate">
  379. <![CDATA[
  380. GridTab = "grd_report";
  381. btn_add.visible = false;
  382. btn_delete_row.visible = false;
  383. ]]>
  384. </script>
  385. </button>
  386. <output id="opt_supcd" ref="/root/main/newform/supdivvarcd" class="output_fix" appearance="output" style="left:723px; top:182px; width:153px; height:19px; "/>
  387. <caption id="caption10" class="cell_1" style="left:600px; top:180px; width:120px; height:23px; ">상위세분변수 코드</caption>
  388. <output id="opt_instnm" ref="/root/init/dutplceinstnm" class="output_default" style="left:103px; top:32px; width:190px; height:19px; text-align:left; "/>
  389. <output id="opt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:102px; top:3px; width:90px; height:19px; "/>
  390. <output id="opt_deptcd" ref="/root/main/newform/suggdeptcd" style="left:552px; top:32px; width:45px; height:19px; "/>
  391. <output id="opt_userid" ref="/root/init/userid" visibility="hidden" style="left:103px; top:81px; width:80px; height:19px; "/>
  392. <caption id="caption20" class="tit_2" style="left:5px; top:9px; width:108px; height:14px; ">사용자정보</caption>
  393. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  394. <caption id="caption30" class="cell_1" style="left:900px; top:30px; width:130px; height:23px; ">등록자</caption>
  395. <caption id="caption31" class="cell_1" style="left:600px; top:30px; width:120px; height:23px; ">분 과 명</caption>
  396. <caption id="caption32" class="cell_1" style="left:0px; top:54px; width:100px; height:23px; ">현재 사용자</caption>
  397. <caption id="caption33" class="cell_1" style="left:900px; top:54px; width:130px; height:23px; ">등록자 연락처</caption>
  398. <caption id="caption34" class="cell_1" style="left:900px; top:108px; width:130px; height:23px; ">Subject 영역</caption>
  399. <line id="line3" class="line_3" style="x1:0px; y1:77px; x2:1195px; y2:77px; "/>
  400. <caption id="caption29" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; ">기 관 명</caption>
  401. <caption id="caption1" class="tit_2" style="left:5px; top:88px; width:100px; height:13px; ">개 요</caption>
  402. <line id="line2" class="line_1" style="x1:0px; y1:103px; x2:1195px; y2:103px; "/>
  403. <caption id="caption4" class="cell_1" style="left:600px; top:54px; width:120px; height:23px; ">최종 등록시간</caption>
  404. <input id="input1" ref="/root/main/newform/updtrtelno" class="input_essential" style="left:1032px; top:56px; width:160px; height:19px; text-align:left; "/>
  405. <select1 id="cbo_statecd" ref="/root/main/newform/histstatcd" disabled="true" appearance="minimal" style="left:1032px; top:158px; width:160px; height:19px; ">
  406. <choices>
  407. <itemset nodeset="/root/init/S0001_list/S0001">
  408. <label ref="cdnm"/>
  409. <value ref="cdid"/>
  410. </itemset>
  411. </choices>
  412. </select1>
  413. <caption id="caption13" class="cell_1" style="left:900px; top:156px; width:130px; height:23px; ">현재 상태</caption>
  414. <caption id="caption15" class="cell_1" style="left:0px; top:132px; width:100px; height:23px; ">세분변수 정의</caption>
  415. <caption id="caption16" class="cell_1" style="left:0px; top:156px; width:100px; height:23px; ">관련코드 명</caption>
  416. <caption id="caption17" class="cell_1" style="left:0px; top:108px; width:100px; height:23px; ">세분변수 명</caption>
  417. <caption id="caption7" class="tit_2" style="left:5px; top:297px; width:100px; height:13px; ">관련 List</caption>
  418. <output id="output1" ref="/root/main/newform/rgstnm" style="left:1032px; top:32px; width:160px; height:19px; text-align:left; "/>
  419. <caption id="caption11" class="cell_1" style="left:300px; top:30px; width:100px; height:23px; ">부 서 명</caption>
  420. <output id="output2" ref="/root/main/newform/lastupdtrid" visibility="hidden" style="left:1035px; top:4px; width:90px; height:19px; "/>
  421. <caption id="caption36" class="tit_2" style="left:610px; top:9px; width:100px; height:13px; ">등록자정보</caption>
  422. <caption id="caption40" class="cell_1" style="left:300px; top:54px; width:100px; height:23px; text-align:left; vertical-align:middle; ">사용자 그룹</caption>
  423. <select1 id="cbo_group" ref="/root/init/usergrpcd" disabled="true" appearance="minimal" style="left:402px; top:56px; width:162px; height:19px; ">
  424. <choices>
  425. <item>
  426. <label>관리자</label>
  427. <value>S</value>
  428. </item>
  429. <item>
  430. <label>ITC담당자</label>
  431. <value>T</value>
  432. </item>
  433. <item>
  434. <label>개발자</label>
  435. <value>D</value>
  436. </item>
  437. <item>
  438. <label>일반사용자</label>
  439. <value>R</value>
  440. </item>
  441. </choices>
  442. </select1>
  443. </group>
  444. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">세분변수 정의</caption>
  445. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  446. <button id="btn_prev" class="btn3_letter2" style="left:0px; top:2px; width:56px; height:22px; ">
  447. <caption>이전</caption>
  448. <script type="javascript" ev:event="DOMActivate">
  449. <![CDATA[
  450. navigate("SMSMV00100");
  451. ]]>
  452. </script>
  453. </button>
  454. <button id="btn_update" class="btn4_letter4" style="left:1113px; top:3px; width:80px; height:22px; ">
  455. <caption>변경요청</caption>
  456. <script type="javascript" ev:event="DOMActivate">
  457. <![CDATA[
  458. var rtn = window.alert("내역을 변경 또는 변경요청 하시겠습니까?", "선택", "4");
  459. if (rtn != 6) {
  460. return;
  461. }
  462. if (fItemNumDupCheck() == false) return; //항목 중복체크
  463. if (fKPICDDupCheck() == false) return; //KPI등록 중복체크
  464. if (fNullCheck() == false) return; //필수입력사항 중에 빈값이 있는지 체크
  465. if (fUpdateCheck() == false) return; //변경할 권한이 있는지 체크 (등록한 사람만 가능)
  466. model.setValue("/root/send/onflag","O"); //변경저장
  467. model.setValue("/root/send/sessuserid",model.getValue("/root/hidden/session/userid"));
  468. model.copyNode("/root/send/savedata/newform", "/root/main/newform");
  469. model.setValue("/root/send/data2", grd_item.getUpdateData());
  470. model.setValue("/root/send/data3", grd_kpi.getUpdateData());
  471. var rslt;
  472. // 관리자이냐 아니냐에 따로 저장방식이 다름. 아래 사번은 하드코딩
  473. if (userGroup == "S"){
  474. rslt = submit("TXSMV00203"); //관리자일때는 해당값을 바로 수정한다.
  475. if (rslt) {
  476. model.alert("수정되었습니다. (관리자)");
  477. navigate("SMSMV00100");
  478. }else{
  479. model.alert("수정에 실패");
  480. }
  481. } else { // 관리자가 아닐때...
  482. if(model.getvalue("/root/main/newform/histstatcd") == "01") {
  483. rslt = submit("TXSMV00203"); //신규요청 상태일때는 바로 데이타를 저장할 수 있다.
  484. if (rslt) {
  485. model.alert("세분변수 내역이 수정되었습니다.");
  486. navigate("SMSMV00100");
  487. }else{
  488. model.alert("세분변수내역 수정 실패");
  489. }
  490. } else {
  491. //
  492. model.property("iParam_itemflag") = "V";
  493. model.property("iParam_code") = model.getvalue("/root/main/newform/divvarcd");
  494. model.property("iParam_desc") = model.getvalue("/root/main/newform/divvardefine");
  495. model.property("iParam_name") = model.getvalue("/root/main/newform/divvarnm");
  496. model.property("iParam_instcd") = model.getvalue("/root/main/newform/instcd");
  497. model.property("iParam_deptcd") = model.getvalue("/root/main/newform/suggdeptcd");
  498. model.property("iParam_userid") = model.getvalue("/root/hidden/session/userid");
  499. model.property("iParam_usernm") = model.getvalue("/root/init/usernm");
  500. modal("SPSOC00401"); //아닐때는 변경요청 팝업을 띄우다.
  501. model.refresh();
  502. }
  503. }
  504. ]]>
  505. </script>
  506. </button>
  507. <button id="btn_save" class="btn4_letter4" disabled="false" style="left:1032px; top:3px; width:80px; height:22px; ">
  508. <caption>신규저장</caption>
  509. <script type="javascript" ev:event="DOMActivate">
  510. <![CDATA[
  511. if (fItemNumDupCheck() == false) return; //항목 중복체크
  512. if (fKPICDDupCheck() == false) return; //KPI등록 중복체크
  513. if (fNullCheck() == false) return; //빈값이 있는지 체크
  514. var rtn = window.alert("세분변수를 저장하시겠습니까?", "선택", "4");
  515. if (rtn != 6) {
  516. return;
  517. }
  518. model.setValue("/root/send/onflag","N"); //신규저장
  519. model.setValue("/root/send/sessuserid",model.getValue("/root/hidden/session/userid"));
  520. model.copyNode("/root/send/savedata/newform", "/root/main/newform");
  521. model.setValue("/root/send/data2", grd_item.getUpdateData());
  522. model.setValue("/root/send/data3", grd_kpi.getUpdateData());
  523. var rslt = submit("TXSMV00203");
  524. if (rslt) {
  525. model.alert("성공적으로 저장되었습니다.");
  526. navigate("SMSMV00100");
  527. }else{
  528. model.alert("세분변수 신규저장 실패!");
  529. }
  530. model.refresh();
  531. ]]>
  532. </script>
  533. </button>
  534. <line id="line14" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  535. <button id="btn_delete" class="btn4_letter2" style="left:975px; top:3px; width:56px; height:22px; ">
  536. <caption>삭제</caption>
  537. <script type="javascript" ev:event="DOMActivate">
  538. <![CDATA[
  539. if (fDeleteCheck() == false) return; //삭제할수 있는 상황 체크
  540. // 일괄삭제기능.... 관리자만이 버튼이 보이고, 처리할수 있다. (2007.03.27)
  541. var rtn = window.alert("해당 세분변수및 관련항목까지 모두 삭제됩니다. 삭제하시겠습니까?", "선택", "4");
  542. if (rtn != 6) {
  543. return;
  544. }
  545. model.setValue("/root/send/onflag","D"); //삭제 플래그
  546. model.setValue("/root/send/sessuserid",model.getValue("/root/hidden/session/userid"));
  547. model.copyNode("/root/send/savedata/newform", "/root/main/newform");
  548. model.setValue("/root/send/data2", grd_item.getUpdateData());
  549. model.setValue("/root/send/data3", grd_kpi.getUpdateData());
  550. var rslt = submit("TXSMV00203");
  551. if (rslt) {
  552. model.alert("성공적으로 삭제되었습니다.");
  553. navigate("SMSMV00100");
  554. }else{
  555. model.alert("세분변수 삭제 실패!");
  556. }
  557. model.refresh();
  558. ]]>
  559. </script>
  560. </button>
  561. </group>
  562. <select1 id="cmb_subjcd" ref="/root/main/newform/subjcd" class="combo_essential" appearance="minimal" style="left:1032px; top:150px; width:160px; height:19px; ">
  563. <choices>
  564. <item>
  565. <label>기본정보-기본정보</label>
  566. <value>S10007</value>
  567. </item>
  568. <item>
  569. <label>환자정보-인적사항</label>
  570. <value>S10008</value>
  571. </item>
  572. <item>
  573. <label>환자정보-환자분류</label>
  574. <value>S10009</value>
  575. </item>
  576. <item>
  577. <label>병원정보-교직원</label>
  578. <value>S10010</value>
  579. </item>
  580. <item>
  581. <label>병원정보-장소</label>
  582. <value>S10011</value>
  583. </item>
  584. <item>
  585. <label>의료정보-환자상태</label>
  586. <value>S10012</value>
  587. </item>
  588. <item>
  589. <label>의료정보-상병</label>
  590. <value>S10013</value>
  591. </item>
  592. <item>
  593. <label>의료정보-수술</label>
  594. <value>S10014</value>
  595. </item>
  596. <item>
  597. <label>의료정보-정도관리</label>
  598. <value>S10015</value>
  599. </item>
  600. <item>
  601. <label>의료정보-협진</label>
  602. <value>S10016</value>
  603. </item>
  604. <item>
  605. <label>의료정보-공간</label>
  606. <value>S10017</value>
  607. </item>
  608. <item>
  609. <label>의료정보-기간</label>
  610. <value>S10018</value>
  611. </item>
  612. <item>
  613. <label>의료정보-기타</label>
  614. <value>S10019</value>
  615. </item>
  616. <item>
  617. <label>수익정보-수익</label>
  618. <value>S10020</value>
  619. </item>
  620. <item>
  621. <label>수익정보-처방</label>
  622. <value>S10021</value>
  623. </item>
  624. <item>
  625. <label>수익정보-청구</label>
  626. <value>S10022</value>
  627. </item>
  628. <item>
  629. <label>수익정보-감면할인미수</label>
  630. <value>S10023</value>
  631. </item>
  632. <item>
  633. <label>수익정보-기타</label>
  634. <value>S10024</value>
  635. </item>
  636. <item>
  637. <label>기타-협력</label>
  638. <value>S10025</value>
  639. </item>
  640. <item>
  641. <label>기타-기타</label>
  642. <value>S10026</value>
  643. </item>
  644. </choices>
  645. </select1>
  646. <caption id="caption23" style="left:973px; top:0px; width:217px; height:13px; vertical-align:middle; ">[ * 시스템 문의 : 박종택 (02-590-7891)]</caption>
  647. </xhtml:body>
  648. </xhtml:html>