SMLPC01400_사유구분코드등록.xrw 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPC01400_사유구분코드등록.xrw
  4. * 설 명 : 사유구분코드등록 화면
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2007.01.15
  8. * 수정이력 : 2007.02.19 - 유동철
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>사유구분코드등록</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <resncd>
  20. <resncdlist>
  21. <instcd/>
  22. <baseflagcd/>
  23. <baseflagnm/>
  24. <resncd/>
  25. <resncnts/>
  26. </resncdlist>
  27. </resncd>
  28. <baseflagcd>
  29. <baseflagcdinfo>
  30. <instcd/>
  31. <baseflagcd/>
  32. <baseflagnm/>
  33. <delflagcd/>
  34. <fstrgstdt/>
  35. <fstrgstrnm/>
  36. <lastupdtdt/>
  37. <lastupdtnm/>
  38. </baseflagcdinfo>
  39. <baseflagcdlist>
  40. <instcd/>
  41. <baseflagcd/>
  42. <baseflagnm/>
  43. </baseflagcdlist>
  44. </baseflagcd>
  45. <resncd>
  46. <resncdinfo>
  47. <instcd/>
  48. <baseflagcd/>
  49. <baseflagnm/>
  50. <resncd/>
  51. <resncnts/>
  52. <delflagcd/>
  53. <fstrgstdt/>
  54. <fstrgstrnm/>
  55. <lastupdtdt/>
  56. <lastupdtrnm/>
  57. <dispseqno/>
  58. </resncdinfo>
  59. </resncd>
  60. </main>
  61. <send>
  62. <data1/>
  63. </send>
  64. <init>
  65. </init>
  66. <hidden>
  67. <seaval/>
  68. <seamthd1/>
  69. <useyn/>
  70. <resnstatcd/>
  71. <flagstatcd/>
  72. </hidden>
  73. <message/>
  74. </root>
  75. </instance>
  76. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  77. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  78. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  79. <script type="javascript" ev:event="xforms-ready">
  80. <![CDATA[
  81. fExeInitialize();
  82. ]]>
  83. </script>
  84. <submission id="TRLPC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseflagcd/baseflagcdlist"/>
  85. <submission id="TRLPC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseflagcd/baseflagcdinfo"/>
  86. <submission id="TRLPC01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resncd/resncdlist"/>
  87. <submission id="TRLPC01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resncd/resncdinfo"/>
  88. <submission id="TXLPC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
  89. <submission id="TXLPC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/message"/>
  90. </model>
  91. <!-- public Script Start -->
  92. <script type="javascript">
  93. <![CDATA[
  94. /* @group : 사유구분코드등록 화면
  95. * @ver : 2007.01.15 (CMCDEV-0001)
  96. * @by : 황상미(ACK)
  97. * @-----------------------------------
  98. * @type : function
  99. * @access : public
  100. * @desc : 화면초기화 함수
  101. */
  102. function fExeInitialize(){
  103. model.removeNodeset("/root/main/baseflagcd/baseflagcdlist"); // 구분코드목록 초기화
  104. model.removeNodeset("/root/main/resnflag/resnflaglist"); // 사유코드목록 초기화
  105. model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo"); // 구분코드 초기화
  106. model.resetInstanceNode("/root/main/resncd/resncdinfo"); // 사유코드 초기화
  107. model.setValue("/root/hidden/seaval", ""); // 검색값 초기화
  108. model.setValue("/root/hidden/seamthd1", "0"); // 검색방법1(0:코드, 1:명칭)
  109. model.setValue("/root/hidden/useyn", "0"); // 사용여부 초기화(0:사용, 1:미사용)
  110. model.setValue("/root/hidden/flagstatcd", "0"); // 구분코드 상태(0:조회, 1:수정, 2:신규)
  111. model.setValue("/root/hidden/resnstatcd", "0"); // 사유코드 상태(0:조회, 1:수정, 2:신규)
  112. model.setValue("/root/hidden/flagstatcd", "0"); // 구분코드 상태코드(0:사용, 1:미사용)
  113. model.setValue("/root/hidden/resnstatcd", "0"); // 사유코드 상태코드(0:사용, 1:미사용)
  114. fExeControlChng("Flag", "false");
  115. fExeControlChng("Resn", "false");
  116. btn_flagcd.selected = true;
  117. model.toggle("case_baseflagcd");
  118. model.refresh();
  119. }
  120. /* @group : 사유구분코드등록 화면
  121. * @ver : 2007.01.15 (CMCDEV-0001)
  122. * @by : 황상미(ACK)
  123. * @-----------------------------------
  124. * @type : function
  125. * @access : public
  126. * @desc : 조회/수정/신규 컨트롤 사용여부 변경 함수
  127. * wGbn : 작업구분 - Flag(구분코드)/Resn(사유코드) iGbn : 입력구분 - true/false
  128. */
  129. function fExeControlChng(wGbn, iGbn){
  130. var vCtrIptArr = new Array();
  131. var vCtrIptArr = new Array(); //입력 컨트롤
  132. var vCtrSelArr = new Array(); //선택 컨트롤
  133. var sGbn = "";
  134. //---------------
  135. if(iGbn == "true") {
  136. sGbn = "false";
  137. }else{
  138. sGbn = "true";
  139. }
  140. //----------------
  141. if(wGbn == "Flag"){
  142. vCtrIptArr[0] = document.controls("ipt_flagcd"); //구분코드 입력박스
  143. vCtrIptArr[1] = document.controls("ipt_flagnm"); //구분명칭 입력박스
  144. vCtrSelArr[0] = document.controls("rdo_delflagcd"); //사유구분 사용여부 선택박스
  145. }else{
  146. vCtrIptArr[0] = document.controls("ipt_resncd"); //사유코드 입력박스
  147. vCtrIptArr[1] = document.controls("tar_resncnts"); //사유내용 입력박스
  148. vCtrSelArr[0] = document.controls("rdo_resndelflagcd"); //사유코드 사용여부 선택박스
  149. vCtrSelArr[1] = document.controls("cmb_baseflagcd"); //기초구분코드 사용여부 선택박스
  150. }
  151. for(var idx = 0; idx < vCtrIptArr.length; idx++){
  152. vCtrIptArr[idx].attribute("editable") = iGbn;
  153. }
  154. for(var idx = 0; idx < vCtrSelArr.length; idx++){
  155. vCtrSelArr[idx].disabled = sGbn;
  156. }
  157. }
  158. /* @group : 사유구분코드등록 화면
  159. * @ver : 2007.01.15 (CMCDEV-0001)
  160. * @by : 황상미(ACK)
  161. * @-----------------------------------
  162. * @type : function
  163. * @access : public
  164. * @desc : 구분/사유 조회 함수
  165. */
  166. function fExeGetRefData() {
  167. //--------------------------------
  168. model.removeNodeset("/root/send");
  169. //-----------------
  170. // 기초구분코드 조회
  171. if (btn_flagcd.selected == true) {
  172. model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo");
  173. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  174. model.makeValue("/root/send/refval", model.getValue("/root/hidden/seaval")); // 검색값
  175. model.makeValue("/root/send/refflag", model.getValue("/root/hidden/seamthd1")); // 검색방법
  176. model.makeValue("/root/send/delflagcd", model.getValue("/root/hidden/useyn")); // 사용여부
  177. submit("TRLPC01401");
  178. } else {
  179. model.resetInstanceNode("/root/main/resncd/resncdinfo");
  180. //-------------------------------------
  181. // 구분코드에 해당되는 사유코드목록 조회
  182. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  183. model.makeValue("/root/send/flagcd", "");
  184. model.makeValue("/root/send/delflagcd", model.getValue("/root/hidden/useyn"));
  185. submit("TRLPC01403");
  186. }
  187. }
  188. /* @group : 사유구분코드등록 화면
  189. * @ver : 2007.01.15 (CMCDEV-0001)
  190. * @by : 황상미(ACK)
  191. * @-----------------------------------
  192. * @type : function
  193. * @access : public
  194. * @desc : 조회, 수정, 신규 작업 구분 함수
  195. * wGbn : 작업구분 - Flag(구분코드)/Resn(사유코드)
  196. */
  197. function fExeCdUpdtFlag(wGbn){
  198. var updtGbn = "";
  199. //-----------------------
  200. // 조회조건(사용여부) 검색
  201. if (model.getValue("/root/hidden/useyn") == "1") {
  202. if (model.getValue("/root/hidden/flagstatcd") != "0" && btn_flagcd.selected == true) {
  203. messageBox("검색조건(사용여부)를 사용으로 변경하여 주십시오! 수정/신규 작업을 ", "E001");
  204. model.setValue("/root/hidden/flagstatcd", "0");
  205. model.refresh();
  206. return false;
  207. }
  208. if (model.getValue("/root/hidden/resnstatcd") != "0" && btn_resncd.selected == true) {
  209. messageBox("검색조건(사용여부)를 사용으로 변경하여 주십시오! 수정/신규 작업을 ", "E001");
  210. model.setValue("/root/hidden/resnstatcd", "0");
  211. model.refresh();
  212. return false;
  213. }
  214. }
  215. //----------------
  216. if(wGbn == "Flag"){
  217. updtGbn = model.getValue("/root/hidden/flagstatcd"); //기본파트 처리부 조회/수정/입력 구분
  218. }else{
  219. updtGbn = model.getValue("/root/hidden/resnstatcd"); //세부파트 처리부 조회/수정/입력 구분
  220. }
  221. //---------------
  222. if(updtGbn == "0"){
  223. fExeControlChng(wGbn, "false");
  224. }else if(updtGbn == "1"){
  225. fExeControlChng(wGbn, "true");
  226. if (wGbn == "Flag") {
  227. ipt_flagcd.disabled = true;
  228. } else {
  229. cmb_baseflagcd.disabled = true;
  230. ipt_resncd.disabled = true;
  231. // tar_resncnts.disabled = true;
  232. }
  233. }else{
  234. fExeControlChng(wGbn, "true");
  235. if(wGbn == "Flag"){
  236. ipt_flagcd.disabled = false;
  237. model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo"); // 구분코드정보 초기화
  238. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/instcd");
  239. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagcd");
  240. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagnm");
  241. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/delflagcd");
  242. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstdt");
  243. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstrnm");
  244. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtdt");
  245. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtrnm");
  246. model.setValue("/root/main/baseflagcd/baseflagcdinfo/delflagcd", "0");
  247. }else{
  248. cmb_baseflagcd.disabled = false;
  249. ipt_resncd.disabled = false;
  250. model.resetInstanceNode("/root/main/resncd/resncdinfo"); // 사유코드정보 초기화
  251. model.makeNode("/root/main/resncd/resncdinfo/instcd");
  252. model.makeNode("/root/main/resncd/resncdinfo/baseflagcd");
  253. model.makeNode("/root/main/resncd/resncdinfo/baseflagnm");
  254. model.makeNode("/root/main/resncd/resncdinfo/resncd");
  255. model.makeNode("/root/main/resncd/resncdinfo/resncnts");
  256. model.makeNode("/root/main/resncd/resncdinfo/delflagcd");
  257. model.makeNode("/root/main/resncd/resncdinfo/fstrgstdt");
  258. model.makeNode("/root/main/resncd/resncdinfo/fstrgstrnm");
  259. model.makeNode("/root/main/resncd/resncdinfo/lastupdtdt");
  260. model.makeNode("/root/main/resncd/resncdinfo/lastupdtrnm");
  261. model.setValue("/root/main/resncd/resncdinfo/delflagcd", "0");
  262. }
  263. }
  264. model.refresh();
  265. }
  266. /* @group : 사유구분코드등록 화면
  267. * @ver : 2007.01.15 (CMCDEV-0001)
  268. * @by : 황상미(ACK)
  269. * @-----------------------------------
  270. * @type : function
  271. * @access : public
  272. * @desc : 저장 함수
  273. *
  274. */
  275. function fExeSave() {
  276. //--------------------------
  277. // Send Node 삭제 후 재 생성
  278. model.removeNodeset("/root/send");
  279. //-----------------------
  280. // 구분코드, 사유코드 식별
  281. if (btn_flagcd.selected) {
  282. //---------------------------------------------------------------------------
  283. if (model.getValue("/root/main/baseflagcd/baseflagcdinfo/delflagcd") == "") {
  284. messageBox("사용여부는 ", "I003");
  285. return false;
  286. }
  287. //------------------------------------
  288. model.makeNode("/root/send/baseinfo");
  289. model.copyNode("/root/send/baseinfo", "/root/main/baseflagcd/baseflagcdinfo"); // 구분코드 정보
  290. model.makeValue("/root/send/baseinfo/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  291. model.makeValue("/root/send/flagstatcd", model.getValue("/root/hidden/flagstatcd")); // 구분코드 상태
  292. submit("TXLPC01401");
  293. //-----------------------------
  294. // 정상처리인 경우 그리드에 반영
  295. // ?
  296. fExeGridChange("1", model.getValue("/root/hidden/flagstatcd"));
  297. } else {
  298. //-------------------------------------------------------------------
  299. if (model.getValue("/root/main/resncd/resncdinfo/delflagcd") == "") {
  300. messageBox("사용여부는 ", "I003");
  301. return false;
  302. }
  303. //------------------------------------
  304. model.makeNode("/root/send/resninfo");
  305. model.copyNode("/root/send/resninfo", "/root/main/resncd/resncdinfo"); // 구분코드 정보
  306. model.makeValue("/root/send/resninfo/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  307. model.makeValue("/root/send/resnstatcd", model.getValue("/root/hidden/resnstatcd")); // 구분코드 상태
  308. submit("TXLPC01402");
  309. //-----------------------------
  310. // 정상처리인 경우 그리드에 반영
  311. fExeGridChange("2", model.getValue("/root/hidden/resnstatcd"));
  312. }
  313. }
  314. /* @group : 사유구분코드등록 화면
  315. * @ver : 2007.01.15 (CMCDEV-0001)
  316. * @by : 황상미(ACK)
  317. * @-----------------------------------
  318. * @type : function
  319. * @access : public
  320. * @desc : 저장 후 그리드 변경처리 함수
  321. * @param : workflagcd - 그리드 구분코드(1:기초구분코드 그리드, 2:사유코드 그리드)
  322. * : workstatcd - 작업상태(0:조회, 1:수정, 2:신규)
  323. *
  324. */
  325. function fExeGridChange(workflagcd, workstatcd) {
  326. //------------------
  327. if (workflagcd == "1")
  328. {
  329. //-------------------
  330. if (workstatcd == "2") {
  331. grd_baseflaglist.additem();
  332. model.setValue("/root/main/baseflagcd/baseflagcdlist[" + (grd_baseflaglist.rows-1) + "]/instcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/instcd"));
  333. model.setValue("/root/main/baseflagcd/baseflagcdlist[" + (grd_baseflaglist.rows-1) + "]/baseflagcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagcd"));
  334. model.setValue("/root/main/baseflagcd/baseflagcdlist[" + (grd_baseflaglist.rows-1) + "]/baseflagnm", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagnm"));
  335. } else if (model.getValue("/root/main/baseflagcd/baseflagcdinfo/delflagcd") == model.getValue("/root/hidden/useyn")) {
  336. model.setValue("/root/main/baseflagcd/baseflagcdlist[" + grd_baseflaglist.row + "]/instcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/instcd"));
  337. model.setValue("/root/main/baseflagcd/baseflagcdlist[" + grd_baseflaglist.row + "]/baseflagcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagcd"));
  338. model.setValue("/root/main/baseflagcd/baseflagcdlist[" + grd_baseflaglist.row + "]/baseflagnm", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagnm"));
  339. } else {
  340. model.setValue("/root/hidden/flagstatcd", "0");
  341. grd_baseflaglist.deleteitem(grd_baseflaglist.row);
  342. model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo");
  343. }
  344. } else {
  345. if (workstatcd == "2") {
  346. grd_resncdlist.additem();
  347. model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/instcd", model.getValue("/root/main/resncd/resncdinfo/instcd"));
  348. model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/baseflagcd", model.getValue("/root/main/resncd/resncdinfo/baseflagcd"));
  349. model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/resncd", model.getValue("/root/main/resncd/resncdinfo/resncd"));
  350. model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/resncnts", model.getValue("/root/main/resncd/resncdinfo/resncnts"));
  351. } else if (model.getValue("/root/main/resncd/resncdinfo/delflagcd") == model.getValue("/root/hidden/useyn")) {
  352. model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/instcd", model.getValue("/root/main/resncd/resncdinfo/instcd"));
  353. model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/baseflagcd", model.getValue("/root/main/resncd/resncdinfo/baseflagcd"));
  354. model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/resncd", model.getValue("/root/main/resncd/resncdinfo/resncd"));
  355. model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/resncnts", model.getValue("/root/main/resncd/resncdinfo/resncnts"));
  356. } else {
  357. model.setValue("/root/hidden/resnstatcd", "0");
  358. grd_resncdlist.deleteitem(grd_resncdlist.row);
  359. model.resetInstanceNode("/root/main/resncd/resncdinfo");
  360. }
  361. }
  362. //--------------
  363. model.refresh();
  364. }
  365. /* @group : 사유구분코드등록 화면
  366. * @ver : 2007.01.15 (CMCDEV-0001)
  367. * @by : 황상미(ACK)
  368. * @-----------------------------------
  369. * @type : function
  370. * @access : public
  371. * @desc : 구분코드 그리드를 클릭 함수
  372. * @param : flagcd - 그리드 구분코드(1:기초구분코드 그리드, 2:사유코드 그리드)
  373. *
  374. */
  375. function fExeFlagCodeClick(flagcd) {
  376. var grdRow = "0";
  377. //---------------------------------------
  378. if (flagcd == "1") grdRow = grd_baseflaglist.row;
  379. else grdRow = grd_baseflaglist.row;
  380. //------------------------------
  381. fGetFlagCodeInfo(grdRow, flagcd);
  382. }
  383. /* @group : 사유구분코드등록 화면
  384. * @ver : 2007.01.15 (CMCDEV-0001)
  385. * @by : 황상미(ACK)
  386. * @-----------------------------------
  387. * @type : function
  388. * @access : public
  389. * @desc : 사유코드 그리드를 클릭 함수
  390. *
  391. */
  392. function fExeReasonCodeClick() {
  393. var grdRow = grd_resncdlist.row;
  394. fGetReasonCodeInfo(grdRow, "2");
  395. }
  396. /* @group : 사유구분코드등록 화면
  397. * @ver : 2007.01.15 (CMCDEV-0001)
  398. * @by : 황상미(ACK)
  399. * @-----------------------------------
  400. * @type : function
  401. * @access : public
  402. * @desc : 구분코드 상세정보 조회 함수
  403. * @param : iRow - 선택된 Row번호
  404. * flagcd - 그리드 구분코드(1:기초구분코드 그리드, 2:사유코드 그리드)
  405. *
  406. */
  407. function fGetFlagCodeInfo(iRow, flagcd) {
  408. //------------------
  409. if (flagcd == "1") {
  410. model.makeValue("/root/send/instcd", model.getValue("/root/main/baseflagcd/baseflagcdlist[" + iRow + "]/instcd"));
  411. model.makeValue("/root/send/baseflagcd", model.getValue("/root/main/baseflagcd/baseflagcdlist[" + iRow + "]/baseflagcd"));
  412. submit("TRLPC01402");
  413. }
  414. }
  415. /* @group : 사유구분코드등록 화면
  416. * @ver : 2007.01.15 (CMCDEV-0001)
  417. * @by : 황상미(ACK)
  418. * @-----------------------------------
  419. * @type : function
  420. * @access : public
  421. * @desc : 사유코드 상세정보 조회 함수
  422. *
  423. */
  424. function fGetReasonCodeInfo(iRow) {
  425. //--------------------------
  426. // Send Node 삭제 후 재 생성
  427. lpzfExeRemakeSendNode(3);
  428. model.setValue("/root/send/data1", model.getValue("/root/main/resncd/resncdlist[" + iRow + "]/instcd"));
  429. model.setValue("/root/send/data2", model.getValue("/root/main/resncd/resncdlist[" + iRow + "]/baseflagcd"));
  430. model.setValue("/root/send/data3", model.getValue("/root/main/resncd/resncdlist[" + iRow + "]/resncd"));
  431. submit("TRLPC01404");
  432. }
  433. /* @group : 사유구분코드등록 화면
  434. * @ver : 2007.01.15 (CMCDEV-0001)
  435. * @by : 황상미(ACK)
  436. * @-----------------------------------
  437. * @type : function
  438. * @access : public
  439. * @desc : 값 변경 처리 함수
  440. *
  441. */
  442. function fExeChangeValue(param) {
  443. switch (param) {
  444. case "resnflagcd" :
  445. model.setValue("/root/main/resncd/resncdinfo/instcd", model.getValue("/root/main/baseflagcd/baseflagcdlist[flagcd='" + model.getValue("/root/main/resncd/resncdinfo/resnflagcd") + "']/instcd"));
  446. break;
  447. }
  448. }
  449. /* @group : 사유구분코드등록 화면
  450. * @ver : 2007.01.15 (CMCDEV-0001)
  451. * @by : 황상미(ACK)
  452. * @-----------------------------------
  453. * @type : function
  454. * @access : public
  455. * @desc : Tab(작업구분) 변경 처리 함수
  456. *
  457. */
  458. function fExeWorkChange() {
  459. //--------------------------
  460. // Send Node 삭제 후 재 생성
  461. model.removeNodeset("/root/send");
  462. //-----------------
  463. // 기초구분코드 조회
  464. if (btn_flagcd.selected == true) {
  465. model.toggle("case_baseflagcd");
  466. model.removeNodeset("/root/main/baseflagcd/baseflagcdlist");
  467. model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo");
  468. } else {
  469. model.toggle("case_resncd");
  470. model.removeNodeset("/root/main/resncd/resncdlist");
  471. model.resetInstanceNode("/root/main/resncd/resncdinfo");
  472. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
  473. model.makeValue("/root/send/refflag", ""); // 검색값
  474. model.makeValue("/root/send/refval", "0"); // 검색방법
  475. model.makeValue("/root/send/delflagcd", "0"); // 사용여부
  476. submit("TRLPC01401");
  477. }
  478. //-------------
  479. model.refresh();
  480. }
  481. ]]>
  482. </script>
  483. <!-- public Script end -->
  484. </xhtml:head>
  485. <xhtml:body guideline="1,1194;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  486. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  487. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">사유구분/코드등록</caption>
  488. </group>
  489. <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  490. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  491. <button id="btn_save" class="btn4_letter2" navindex="16" style="left:1139px; top:3; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  492. <caption>저장</caption>
  493. <script type="javascript" ev:event="DOMActivate">
  494. <![CDATA[
  495. fExeSave();
  496. ]]>
  497. </script>
  498. </button>
  499. </group>
  500. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  501. <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; ">
  502. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  503. <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  504. <input id="ipt_refval" ref="/root/hidden/seaval" class="input_search" navindex="1" style="left:95px; top:8px; width:120px; height:19px; "/>
  505. <select1 id="cmb_refflag" ref="/root/hidden/seamthd1" class="combo_search" navindex="2" appearance="minimal" style="left:538px; top:8px; width:102px; height:19px; ">
  506. <choices>
  507. <item>
  508. <label>코드</label>
  509. <value>0</value>
  510. </item>
  511. <item>
  512. <label>명칭</label>
  513. <value>1</value>
  514. </item>
  515. </choices>
  516. </select1>
  517. <caption id="caption23" class="search_name" style="left:15px; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색값 :</caption>
  518. <caption id="caption24" class="search_name" autoresize="true" style="left:878; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">사용여부 :</caption>
  519. <caption id="caption2" class="search_name" autoresize="true" style="left:445px; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색방법 :</caption>
  520. <button id="btn_sea" class="btn1_letter2" navindex="5" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  521. <caption>조회</caption>
  522. <script type="javascript" ev:event="DOMActivate">
  523. <![CDATA[
  524. fExeGetRefData();
  525. ]]>
  526. </script>
  527. </button>
  528. <select1 id="rdo_useyn" ref="/root/hidden/useyn" class="radio_search" navindex="4" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:971; top:10px; width:122px; height:16px; border-style:none; ">
  529. <choices>
  530. <item>
  531. <label>사용</label>
  532. <value>0</value>
  533. </item>
  534. <item>
  535. <label>미사용</label>
  536. <value>1</value>
  537. </item>
  538. </choices>
  539. </select1>
  540. </group>
  541. <button id="btn_flagcd" class="btn_sw" group="tab" style="left:0px; top:49px; width:78px; height:22px; ">
  542. <caption>기초구분코드</caption>
  543. <script type="javascript" ev:event="DOMActivate">
  544. <![CDATA[
  545. fExeWorkChange();
  546. ]]>
  547. </script>
  548. </button>
  549. <button id="btn_resncd" class="btn_sw" group="tab" selected="true" style="left:78px; top:49px; width:70px; height:22px; ">
  550. <caption>사유코드</caption>
  551. <script type="javascript" ev:event="DOMActivate">
  552. <![CDATA[
  553. fExeWorkChange();
  554. ]]>
  555. </script>
  556. </button>
  557. <switch id="switch1" style="left:0px; top:70px; width:1194px; height:674px; border-color:#c7a3cf; border-style:solid; ">
  558. <case id="case_resncd">
  559. <caption id="caption21" class="cell_1" style="left:645px; top:408px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사용여부</caption>
  560. <caption id="caption12" class="cell_1" style="left:926px; top:480px; width:110px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정자</caption>
  561. <caption id="caption4" class="tit_2" style="left:650px; top:10px; width:95px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">사유코드정보</caption>
  562. <caption id="caption15" class="cell_1" style="left:645px; top:456px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록일시</caption>
  563. <line id="line3" class="line_1" style="x1:645px; y1:25px; x2:1189; y2:25px; "/>
  564. <caption id="caption8" class="cell_1" style="left:645px; top:54px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사유코드</caption>
  565. <caption id="caption18" class="cell_1" style="left:926px; top:456px; width:110px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록자</caption>
  566. <caption id="caption9" class="cell_1" style="left:645px; top:30px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사유구분</caption>
  567. <caption id="caption19" class="cell_1" style="left:645px; top:480px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정일시</caption>
  568. <caption id="caption7" class="cell_1" style="left:645px; top:78px; width:120px; height:329px; text-align:left; vertical-align:middle; padding-left:10px; ">사유내용</caption>
  569. <output id="opt_rsncdfstrgstdt" ref="/root/main/resncd/resncdinfo/fstrgstdt" class="output_fix" appearance="output" style="left:768px; top:458px; width:155px; height:19px; border-color:#c0c0c0; "/>
  570. <output id="opt_rsncdfstrgstrid" ref="/root/main/resncd/resncdinfo/fstrgstrnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1039px; top:458px; width:150px; height:19px; border-color:#c0c0c0; "/>
  571. <output id="opt_rsncdlastrgstdt" ref="/root/main/resncd/resncdinfo/lastupdtdt" class="output_fix" appearance="output" style="left:768px; top:482px; width:155px; height:19px; border-color:#c0c0c0; "/>
  572. <output id="opt_rsncdlastrgstrid" ref="/root/main/resncd/resncdinfo/lastupdtrnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1039px; top:482px; width:150px; height:19px; border-color:#c0c0c0; "/>
  573. <select1 id="rdo_rsncdupdt" ref="/root/hidden/resnstatcd" navindex="10" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:751px; top:9px; width:162px; height:13px; border-style:none; ">
  574. <choices>
  575. <item>
  576. <label>조회</label>
  577. <value>0</value>
  578. </item>
  579. <item>
  580. <label>수정</label>
  581. <value>1</value>
  582. </item>
  583. <item>
  584. <label>신규</label>
  585. <value>2</value>
  586. </item>
  587. </choices>
  588. <script type="javascript" ev:event="xforms-value-changed">
  589. <![CDATA[
  590. fExeCdUpdtFlag("Rsn");
  591. ]]>
  592. </script>
  593. </select1>
  594. <line id="line7" class="line_2" style="x1:645px; y1:76px; x2:1189px; y2:76px; "/>
  595. <line id="line8" class="line_2" style="x1:645px; y1:52px; x2:1189px; y2:52px; "/>
  596. <line id="line6" class="line_2" style="x1:645px; y1:405px; x2:1189px; y2:405px; "/>
  597. <line id="line20" class="line_2" style="x1:645px; y1:430px; x2:1189px; y2:430px; "/>
  598. <line id="line16" class="line_2" style="x1:645px; y1:454px; x2:1189px; y2:454px; "/>
  599. <line id="line5" class="line_3" style="x1:645px; y1:504px; x2:1189px; y2:504px; "/>
  600. <input id="ipt_resncd" ref="/root/main/resncd/resncdinfo/resncd" class="input_essential" navindex="12" maxlength="4" appearance="input" style="left:768px; top:55px; width:421px; height:19px; border-color:#c0c0c0; "/>
  601. <textarea id="tar_resncnts" ref="/root/main/resncd/resncdinfo/resncnts" class="text_essential" navindex="14" style="left:768px; top:79px; width:421px; height:324px; "/>
  602. <select1 id="rdo_resndelflagcd" ref="/root/main/resncd/resncdinfo/delflagcd" navindex="15" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:768px; top:411px; width:132px; height:13px; border-style:none; ">
  603. <choices>
  604. <item>
  605. <label>사용</label>
  606. <value>0</value>
  607. </item>
  608. <item>
  609. <label>미사용</label>
  610. <value>1</value>
  611. </item>
  612. </choices>
  613. </select1>
  614. <line id="line11" class="line_1" style="width:855px; x1:5; y1:25px; x2:640px; y2:25px; "/>
  615. <caption id="caption22" class="tit_2" style="left:10; top:10px; width:131px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">사유코드</caption>
  616. <datagrid id="grd_resncdlist" nodeset="/root/main/resncd/resncdlist" caption="기관코드^기초구분코드^기초구분명^사유코드^사 유 명" colsep="^" colwidth="0, 80, 150, 100, 280" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="16" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:30px; width:635px; height:640px; border-color:#c0c0c0; ">
  617. <col ref="instcd" type="output"/>
  618. <col ref="baseflagcd"/>
  619. <col ref="baseflagnm"/>
  620. <col ref="resncd" type="output"/>
  621. <col ref="resncnts" type="output"/>
  622. <script type="javascript" ev:event="onclick">
  623. <![CDATA[
  624. fExeReasonCodeClick();
  625. ]]>
  626. </script>
  627. <script type="javascript" ev:event="onaftersort">
  628. <![CDATA[
  629. grd_resncdlist.gridToInstance();
  630. model.makeNode("/root/main/resncd/resncdinfo/instcd");
  631. model.makeNode("/root/main/resncd/resncdinfo/baseflagcd");
  632. model.makeNode("/root/main/resncd/resncdinfo/baseflagnm");
  633. model.makeNode("/root/main/resncd/resncdinfo/resncd");
  634. model.makeNode("/root/main/resncd/resncdinfo/resncnts");
  635. model.makeNode("/root/main/resncd/resncdinfo/delflagcd");
  636. model.makeNode("/root/main/resncd/resncdinfo/fstrgstdt");
  637. model.makeNode("/root/main/resncd/resncdinfo/fstrgstrnm");
  638. model.makeNode("/root/main/resncd/resncdinfo/lastupdtdt");
  639. model.makeNode("/root/main/resncd/resncdinfo/lastupdtrnm");
  640. model.makeNode("/root/main/resncd/resncdinfo/dispseqno");
  641. ]]>
  642. </script>
  643. </datagrid>
  644. <select1 id="cmb_baseflagcd" ref="/root/main/resncd/resncdinfo/baseflagcd" appearance="minimal" style="left:768px; top:31px; width:421px; height:19px; ">
  645. <choices>
  646. <itemset nodeset="/root/main/baseflagcd/baseflagcdlist">
  647. <label ref="baseflagnm"/>
  648. <value ref="baseflagcd"/>
  649. </itemset>
  650. </choices>
  651. </select1>
  652. <caption id="caption3" class="cell_1" style="left:645px; top:432px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">표시일련번호</caption>
  653. <line id="line2" class="line_2" style="x1:645px; y1:480px; x2:1189px; y2:480px; "/>
  654. <input id="input1" ref="/root/main/resncd/resncdinfo/dispseqno" maxlength="5" format="#,###" style="left:768px; top:433px; width:100px; height:19px; "/>
  655. </case>
  656. <case id="case_baseflagcd" selected="true">
  657. <caption id="caption1" class="cell_1" style="left:645px; top:78px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사용여부</caption>
  658. <caption id="caption5" class="cell_1" style="left:913; top:127px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정자</caption>
  659. <caption id="caption10" class="cell_1" style="left:645px; top:102px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록일시</caption>
  660. <caption id="caption11" class="cell_1" style="left:645px; top:54px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">구분명칭</caption>
  661. <caption id="caption13" class="cell_1" style="left:913; top:103px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록자</caption>
  662. <caption id="caption14" class="cell_1" style="left:645; top:30px; width:100; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">구분코드</caption>
  663. <caption id="caption16" class="cell_1" style="left:645px; top:126px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정일시</caption>
  664. <caption id="caption17" class="tit_2" style="left:650px; top:10px; width:100px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">기초구분정보</caption>
  665. <select1 id="radio2" ref="/root/hidden/flagstatcd" navindex="6" visibility="hidden" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:753; top:9px; width:162px; height:13px; border-style:none; ">
  666. <choices>
  667. <item>
  668. <label>조회</label>
  669. <value>0</value>
  670. </item>
  671. <item>
  672. <label>수정</label>
  673. <value>1</value>
  674. </item>
  675. <item>
  676. <label>신규</label>
  677. <value>2</value>
  678. </item>
  679. </choices>
  680. <script type="javascript" ev:event="xforms-value-changed">
  681. <![CDATA[
  682. fExeCdUpdtFlag("Flag");
  683. ]]>
  684. </script>
  685. </select1>
  686. <output id="opt_rsnflagfstrgstdt" ref="/root/main/baseflagcd/baseflagcdinfo/fstrgstdt" class="output_fix" appearance="output" style="left:748px; top:104px; width:162px; height:19px; border-color:#c0c0c0; "/>
  687. <output id="opt_rsnflagfstrgstrid" ref="/root/main/baseflagcd/baseflagcdinfo/fstrgstrnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1016; top:104px; width:168px; height:19px; border-color:#c0c0c0; "/>
  688. <output id="opt_rsnflaglastrgstdt" ref="/root/main/baseflagcd/baseflagcdinfo/lastupdtdt" class="output_fix" appearance="output" style="left:748px; top:128px; width:162px; height:19px; border-color:#c0c0c0; "/>
  689. <output id="opt_rsnflaglastrgstrid" ref="/root/main/baseflagcd/baseflagcdinfo/lastupdtnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1016; top:128px; width:168px; height:19px; border-color:#c0c0c0; "/>
  690. <line id="line12" class="line_3" style="x1:645px; y1:148px; x2:1184px; y2:148px; "/>
  691. <line id="line9" class="line_2" style="x1:645px; y1:124px; x2:1184px; y2:124px; "/>
  692. <line id="line13" class="line_2" style="x1:645px; y1:76px; x2:1184px; y2:76px; "/>
  693. <line id="line15" class="line_1" style="x1:645px; y1:25px; x2:1184px; y2:25px; "/>
  694. <line id="line1" class="line_2" style="x1:645px; y1:52px; x2:1184px; y2:52px; "/>
  695. <line id="line4" class="line_2" style="x1:645px; y1:100px; x2:1184px; y2:100px; "/>
  696. <input id="ipt_flagcd" ref="/root/main/baseflagcd/baseflagcdinfo/baseflagcd" class="input_essential" navindex="7" maxlength="2" appearance="input" style="left:748; top:31px; width:32px; height:19px; border-color:#c0c0c0; "/>
  697. <input id="ipt_flagnm" ref="/root/main/baseflagcd/baseflagcdinfo/baseflagnm" class="input_essential" navindex="8" maxlength="100" appearance="input" style="left:748px; top:56px; width:436px; height:19px; border-color:#c0c0c0; "/>
  698. <select1 id="rdo_delflagcd" ref="/root/main/baseflagcd/baseflagcdinfo/delflagcd" navindex="9" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:748px; top:84px; width:132px; height:13px; border-style:none; ">
  699. <choices>
  700. <item>
  701. <label>사용</label>
  702. <value>0</value>
  703. </item>
  704. <item>
  705. <label>미사용</label>
  706. <value>1</value>
  707. </item>
  708. </choices>
  709. </select1>
  710. <caption id="caption20" class="tit_2" style="left:10px; top:10px; width:131px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">기초구분코드</caption>
  711. <line id="line10" class="line_1" style="width:855px; x1:5px; y1:25px; x2:640px; y2:25px; "/>
  712. <datagrid id="grd_baseflaglist" nodeset="/root/main/baseflagcd/baseflagcdlist" caption="기관코드^기초구분코드^구분명칭" colsep="^" colwidth="0, 153, 457" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="16" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:30px; width:635; height:640; ">
  713. <col ref="instcd" type="output"/>
  714. <col ref="baseflagcd" type="output"/>
  715. <col ref="baseflagnm" type="output"/>
  716. <script type="javascript" ev:event="onclick">
  717. <![CDATA[
  718. fExeFlagCodeClick("1");
  719. ]]>
  720. </script>
  721. <script type="javascript" ev:event="onaftersort">
  722. <![CDATA[
  723. grd_baseflaglist.gridToInstance();
  724. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/instcd");
  725. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagcd");
  726. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagnm");
  727. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/delflagcd");
  728. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstdt");
  729. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstrnm");
  730. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtdt");
  731. model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtrnm");
  732. ]]>
  733. </script>
  734. </datagrid>
  735. </case>
  736. </switch>
  737. </group>
  738. </xhtml:body>
  739. </xhtml:html>