SMRPV04600_내부고객만족체계도등록.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <list>
  11. <inot>
  12. <inotlist/>
  13. </inot>
  14. <iodt>
  15. <iodtlist/>
  16. </iodt>
  17. </list>
  18. </main>
  19. <send>
  20. <inot>
  21. <valuyy/>
  22. <instcd/>
  23. <valuclscd>01</valuclscd>
  24. <valumdlcd>001</valumdlcd>
  25. <valuclsdetlcd>001</valuclsdetlcd>
  26. <numberflag>04600</numberflag>
  27. </inot>
  28. <iodt>
  29. <valuyy/>
  30. <instcd/>
  31. <valuclscd/>
  32. <valumdlcd/>
  33. <valuclsdetlcd/>
  34. <deptcd/>
  35. </iodt>
  36. <dept>
  37. <refcond>deptcd</refcond>
  38. <deptcd/>
  39. <instcd/>
  40. </dept>
  41. <save>
  42. <inotlist/>
  43. <iodt/>
  44. </save>
  45. <workgbn/>
  46. <targdeptcd/>
  47. </send>
  48. <init>
  49. <inoutflag>
  50. <code>A</code>
  51. <cdnm>전체</cdnm>
  52. <code>I</code>
  53. <cdnm>내부</cdnm>
  54. <code>O</code>
  55. <cdnm>외부</cdnm>
  56. </inoutflag>
  57. <depttemp>
  58. <deptcd/>
  59. </depttemp>
  60. </init>
  61. <hidden/>
  62. <temp/>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. model.setFocus("btn_search");
  68. /* Grid 초기화 */
  69. misfGridInit(grd_inot);
  70. misfGridInit(grd_iodt);
  71. /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
  72. /* Grid의 Mater, Detail관계 설정
  73. misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
  74. misfMsterDetailSet(grd_inot,null, "TRRPV04601" ,"Y");
  75. misfMsterDetailSet(grd_iodt,grd_inot, "TRRPV04602" ,"Y");
  76. var curdate = getCurrentDate();
  77. model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
  78. rpvfComboInstCdList("cmb_instcd");
  79. //misfComboCopyItemSet(cmb_instcd, "", grd_iodt, "valuinstcd");
  80. rpvfComboValuCdList(model.getValue(ipt_valuyy.attribute("ref")),"INOUTFLAG","grd_inot.inoutflag");
  81. model.setValue(cmb_instcd.attribute("ref") ,getUserInfo("dutplceinstcd"));
  82. rpvfComboInstCdList("grd_iodt.valuinstcd",getCurrentDate(),"","Y");
  83. rpvfComboDisableYn("cmb_instcd","");
  84. // model.setValue("/root/send/workgbn","SMRPV04600");
  85. model.refresh();
  86. ]]>
  87. </script>
  88. <submission id="TRRPV04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/inot" resultref="/root/main/list/inot"/>
  89. <submission id="TRRPV04602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/iodt" resultref="/root/main/list/iodt"/>
  90. <submission id="TRRPZ00212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dept" resultref="/root/main/list/dept"/>
  91. <submission id="TXRPV04600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  92. <submission id="TXRPV09002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/inot" resultref="/root/temp"/>
  93. <script type="javascript" ev:event="xforms-model-destruct">
  94. <![CDATA[
  95. if (getGridUpdateData(grd_inot) != "" || getGridUpdateData(grd_iodt) != "" ) {
  96. var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
  97. if (save_val == "6") {
  98. btn_save.dispatch("DOMActivate");
  99. }
  100. }
  101. ]]>
  102. </script>
  103. </model>
  104. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  108. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  109. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  110. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  111. </xhtml:head>
  112. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  113. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  114. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">내부 고객 만족 체계도 등록</caption>
  115. </group>
  116. <group id="group2" scroll="auto" style="left:0px; top:12px; width:1195px; height:743px; ">
  117. <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1190px; y2:25px; "/>
  118. <button id="btn_init" class="btn4_letter3" style="left:1064px; top:3px; width:68px; height:22px; ">
  119. <caption>초기화</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. window.reload() ;
  123. ]]>
  124. </script>
  125. </button>
  126. <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
  127. <caption>저장</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. if(!checkKeyColumn("grd_inot") || !checkKeyColumn("grd_iodt")) return;
  131. misfSave("TXRPV04600");
  132. ]]>
  133. </script>
  134. </button>
  135. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:28px; width:1190px; height:35px; "/>
  136. <line id="line13" class="line_4" style="x1:1118px; y1:35px; x2:1118px; y2:57px; "/>
  137. <select1 id="cmb_instcd" ref="/root/send/inot/instcd" appearance="minimal" style="left:293px; top:36px; width:180px; height:19px; ">
  138. <choices>
  139. <itemset>
  140. <label/>
  141. <value/>
  142. </itemset>
  143. </choices>
  144. </select1>
  145. <caption id="cap_valuyy" class="search_name" style="left:15px; top:37px; width:100px; height:17px; vertical-align:middle; ">기준년도 :</caption>
  146. <caption id="cap_valuclscd" class="search_name" style="left:233px; top:37px; width:100px; height:17px; vertical-align:middle; ">기관 :</caption>
  147. <input id="ipt_valuyy" ref="/root/send/inot/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:103px; top:36px; width:125px; height:19px; ">
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. var instcd = cmb_instcd.value;
  151. if( getStringLength(ipt_valuyy.value) == "4" ) {
  152. rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
  153. cmb_instcd.value = instcd;
  154. model.refresh();
  155. }
  156. ]]>
  157. </script>
  158. </input>
  159. <button id="btn_search" class="btn1_letter2" style="left:1133px; top:35px; width:56px; height:22px; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. if ( !isRequiredControls("ipt_valuyy", "cmb_valuclscd") ) {
  164. return false;
  165. }
  166. model.setValue("/root/send/workgbn","SMRPV04600");
  167. misfMsterDetailRetrieve();
  168. ]]>
  169. </script>
  170. </button>
  171. <datagrid id="grd_inot" nodeset="/root/main/list/inot/inotlist" caption="부서^구분" colsep="^" colwidth="320, 87, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:92px; width:445px; height:650px; ">
  172. <col ref="deptnm" type="inputbutton" _key="true"/>
  173. <col class="gridcombo" ref="inoutflag" type="combo">
  174. <choices>
  175. <itemset nodeset="/root/init/inoutflag">
  176. <label ref="cdnm"/>
  177. <value ref="code"/>
  178. </itemset>
  179. </choices>
  180. </col>
  181. <col ref="deptcd" visibility="hidden"/>
  182. <col ref="orgdeptcd" visibility="hidden"/>
  183. <col ref="instcd" visibility="hidden"/>
  184. <col ref="valuyy" visibility="hidden"/>
  185. <col ref="valuclscd" visibility="hidden"/>
  186. <col ref="valumdlcd" visibility="hidden"/>
  187. <col ref="valuclsdetlcd" visibility="hidden"/>
  188. <script type="javascript" ev:event="onbuttonclick">
  189. <![CDATA[
  190. if(grd_iodt.rows - grd_iodt.fixedRows> 0)
  191. {
  192. messageBox("세부내역이 존재 하므로 부서정보를 수정", "E001");
  193. return;
  194. }
  195. var instcd = model.getValue(cmb_instcd.attribute("ref"));
  196. if (grd_inot.colAttribute(grd_inot.col,"ref") == "deptnm" ) {
  197. var recv_list = "deptcd,deptnm";
  198. model.setValue("/root/send/workgbn","");
  199. rpvfOpenDeptCdHelp(grd_inot,recv_list, instcd, "instcd");
  200. model.setValue("/root/send/workgbn","SMRPV04600");
  201. model.refresh();
  202. }
  203. ]]>
  204. </script>
  205. <script type="javascript" ev:event="onrowchanged">
  206. <![CDATA[
  207. model.setValue(ipt_inputinstcd.attribute("ref"), grd_inot.valueMatrix(grd_inot.row, grd_inot.colRef("deptcd")));
  208. misfGridInit(grd_iodt);
  209. misfMsterDetailRetrieve();
  210. var inoutflag = grd_inot.valueMatrix(grd_inot.row, grd_inot.colRef("inoutflag"));
  211. if (inoutflag == "I" ) {
  212. btn_copy.disabled = false;
  213. btn_subinsert.disabled = false;
  214. btn_subdelete.disabled = false;
  215. }
  216. else {
  217. btn_copy.disabled = true;
  218. btn_subinsert.disabled = true;
  219. btn_subdelete.disabled = true;
  220. }
  221. ]]>
  222. </script>
  223. <script type="javascript" ev:event="xforms-value-changed">
  224. <![CDATA[
  225. if (grd_inot.col == grd_inot.colRef("inoutflag")) {
  226. var inoutflag = grd_inot.valueMatrix(grd_inot.row, grd_inot.colRef("inoutflag"));
  227. if (inoutflag == "I" ) {
  228. btn_copy.disabled = false;
  229. btn_subinsert.disabled = false;
  230. btn_subdelete.disabled = false;
  231. }
  232. else {
  233. btn_copy.disabled = true;
  234. btn_subinsert.disabled = true;
  235. btn_subdelete.disabled = true;
  236. }
  237. }
  238. ]]>
  239. </script>
  240. </datagrid>
  241. <button id="btn_insert" class="btn2_letter3" style="left:336px; top:65px; width:53px; height:19px; ">
  242. <caption>행추가</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. if ( !isRequiredControls("ipt_valuyy", "cmb_instcd") ) {
  246. return false;
  247. }
  248. misfGridInit(grd_iodt);
  249. misfGridIUD(grd_inot, "A");
  250. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
  251. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/instcd", model.getValue(cmb_instcd.attribute("ref")));
  252. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/valuclscd", model.getValue("/root/send/inot/valuclscd"));
  253. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/valumdlcd", model.getValue("/root/send/inot/valumdlcd"));
  254. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/valuclsdetlcd", model.getValue("/root/send/inot/valuclsdetlcd"));
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="btn_delete" class="btn2_letter3" style="left:391px; top:65px; width:53px; height:19px; ">
  259. <caption>행삭제</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. misfGridIUD(grd_inot, "D");
  263. ]]>
  264. </script>
  265. </button>
  266. <caption id="caption1" class="tit_2" style="left:449px; top:69px; width:230px; height:14px; vertical-align:middle; ">내부 고객 만족 체계도 List</caption>
  267. <caption id="caption4" class="tit_2" style="left:5px; top:69px; width:213px; height:13px; vertical-align:middle; ">피평가 부서 List</caption>
  268. <line id="line1" class="line_1" style="x1:0px; y1:86px; x2:445px; y2:86px; "/>
  269. <line id="line2" class="line_1" style="x1:449px; y1:86px; x2:1194px; y2:86px; "/>
  270. <button id="btn_subinsert" class="btn2_letter3" style="left:1085px; top:65px; width:53px; height:19px; ">
  271. <caption>행추가</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. if(!checkKeyColumn("grd_inot")) return;
  275. misfGridIUD(grd_iodt, "A");
  276. ]]>
  277. </script>
  278. </button>
  279. <button id="btn_subdelete" class="btn2_letter3" style="left:1140px; top:65px; width:53px; height:19px; ">
  280. <caption>행삭제</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. misfGridIUD(grd_iodt, "D");
  284. ]]>
  285. </script>
  286. </button>
  287. <datagrid id="grd_iodt" nodeset="/root/main/list/iodt/iodtlist" caption="기관^부서^직책^" colsep="^" colwidth="190, 348, 184, 157, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:448px; top:92px; width:745px; height:650px; ">
  288. <col class="gridcombo" ref="valuinstcd" type="combo" _key="true">
  289. <choices>
  290. <itemset>
  291. <label/>
  292. <value/>
  293. </itemset>
  294. </choices>
  295. </col>
  296. <col ref="valudeptnm" type="inputbutton" _key="true"/>
  297. <col ref="valujobrespnm" type="inputbutton" _key="true"/>
  298. <col ref="valudeptcd" visibility="hidden"/>
  299. <col ref="orgvaluinstcd" visibility="hidden"/>
  300. <col ref="orgvaludeptcd" visibility="hidden"/>
  301. <col ref="orgvalujobrespcd" visibility="hidden"/>
  302. <col ref="instcd" visibility="hidden"/>
  303. <col ref="valuyy" visibility="hidden"/>
  304. <col ref="valuclscd" visibility="hidden"/>
  305. <col ref="valumdlcd" visibility="hidden"/>
  306. <col ref="valuclsdetlcd" visibility="hidden"/>
  307. <col ref="deptcd"/>
  308. <col ref="valujobrespcd" visibility="hidden"/>
  309. <script type="javascript" ev:event="onbuttonclick">
  310. <![CDATA[
  311. var valuinstcd = grd_iodt.valueMatrix(grd_iodt.row, grd_iodt.colRef("valuinstcd"));
  312. var deptcd = grd_iodt.valueMatrix(grd_iodt.row, grd_iodt.colRef("deptcd"));
  313. if (grd_iodt.colAttribute(grd_iodt.col,"ref") == "valudeptnm" ) {
  314. if(valuinstcd==""){
  315. messageBox("기관은 ","I003");
  316. return;
  317. }
  318. model.setValue("/root/send/targdeptcd",deptcd);
  319. var recv_list = "valudeptcd,valudeptnm";
  320. rpvfOpenDeptCdHelp(grd_iodt,recv_list, valuinstcd, "instcd");
  321. model.refresh();
  322. var instcd = grd_inot.valueMatrix(grd_inot.row, grd_inot.colRef("instcd"));
  323. var deptcd = grd_inot.valueMatrix(grd_inot.row, grd_inot.colRef("deptcd"));
  324. var valudeptcd = grd_iodt.valueMatrix(grd_iodt.row, grd_iodt.colRef("valudeptcd"));
  325. var valuinstcd = grd_iodt.valueMatrix(grd_iodt.row, grd_iodt.colRef("valuinstcd"));
  326. if (instcd == valuinstcd && deptcd == valudeptcd) {
  327. messageBox("피평가부서와 같은부서는 추가할수","I004");
  328. grd_iodt.deleteRow(grd_iodt.row);
  329. }
  330. model.refresh();
  331. }
  332. else if(grd_iodt.colAttribute(grd_iodt.col,"ref") == "valujobrespnm" ) {
  333. var recv_list = "valujobrespcd,valujobrespnm";
  334. rpbfOpenPopUpList("SPRPZ00600", grd_iodt, recv_list,"","","","jobrespcd,jobrespnm") ;
  335. model.refresh();
  336. }
  337. ]]>
  338. </script>
  339. </datagrid>
  340. <button id="btn_outcustdept" class="btn2_letter8" style="left:227px; top:65px; width:108px; height:19px; ">
  341. <caption>평가부서 가져오기</caption>
  342. <script type="javascript" ev:event="DOMActivate">
  343. <![CDATA[
  344. model.setValue("/root/send/dept/instcd", model.getValue(cmb_instcd.attribute("ref")));
  345. submit("TRRPZ00212");
  346. var cur_row = grd_inot.row;
  347. var status = grd_inot.valueMatrix(cur_row, grd_inot.colRef("m"));
  348. var node = "/root/main/list/dept";
  349. var nodename = "deptcodelist";
  350. var codynode = instance1.selectNodes(node + "/*");
  351. var addRow = grd_inot.rows - grd_inot.fixedRows;
  352. if(model.getValue(grd_inot.nodeset + "[" + addRow + "]/deptcd").length > 0)addRow = addRow + 1;
  353. for (var j = 1; j <= codynode.length ; j++) {
  354. if(grd_inot.findrow(model.getValue(node +"/" + nodename + "[" + j + "]/deptcd"),grd_inot.fixedRows,grd_inot.colRef("deptcd"),false,false) == -1)
  355. {
  356. if(addRow == 0 || addRow >= grd_inot.rows - grd_inot.fixedRows)
  357. {
  358. misfGridIUD(grd_inot,"A","N");
  359. addRow = grd_inot.rows - grd_inot.fixedRows;
  360. model.setValue(grd_inot.attribute("nodeset")+"["+ addRow +"]/valuyy", model.getValue(ipt_valuyy.attribute("ref")));
  361. model.setValue(grd_inot.attribute("nodeset")+"["+ addRow +"]/instcd", model.getValue(cmb_instcd.attribute("ref")));
  362. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/valuclscd", model.getValue("/root/send/inot/valuclscd"));
  363. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/valumdlcd", model.getValue("/root/send/inot/valumdlcd"));
  364. model.setValue(grd_inot.attribute("nodeset")+"["+(grd_inot.row - grd_inot.fixedRows + 1)+"]/valuclsdetlcd", model.getValue("/root/send/inot/valuclsdetlcd"));
  365. }
  366. model.setValue(grd_inot.nodeset + "[" + addRow + "]/deptcd" , model.getValue(node +"/" + nodename + "[" + j + "]/deptcd"));
  367. model.setValue(grd_inot.nodeset + "[" + addRow + "]/deptnm" , model.getValue(node +"/" + nodename + "[" + j + "]/depthngnm"));
  368. addRow = addRow + 1;
  369. }
  370. }
  371. model.refresh();
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="btn_copy" class="btn2_letter11" style="left:942px; top:65px; width:141px; height:19px; ">
  376. <caption>기관/부서/직책 읽어오기</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. model.removenode("/root/copynode");
  380. model.removenode(gvParamPath +"/SMRPV99300_/SMRPV99300_value");
  381. model.makeNode("/root/copynode");
  382. rpvfOpenPopUpList("27",grd_iodt,"","valuinstcd","cmb_instcd,ipt_inputinstcd","");
  383. var cur_row = grd_iodt.row;
  384. var status = grd_iodt.valueMatrix(cur_row, grd_iodt.colRef("m"));
  385. var CSV = model.getValue(gvParamPath +"/SMRPV99300_/SMRPV99300_value");
  386. setCSVToNode("/root/copynode", CSV, "instdeptresplist");
  387. var node = "/root/copynode";
  388. var nodename = "instdeptresplist";
  389. var codynode = instance1.selectNodes(node + "/*");
  390. var addRow = grd_iodt.rows - grd_iodt.fixedRows;
  391. var chkdup = false;
  392. if(model.getValue(grd_iodt.nodeset + "[" + addRow + "]/instcd").length > 0)addRow = addRow + 1;
  393. for (var j = 1; j <= codynode.length ; j++) {
  394. chkdup = false;
  395. for(var row = grd_iodt.fixedRows; row < grd_iodt.rows ; row++)
  396. {
  397. if(grd_iodt.valueMatrix(row , grd_iodt.colRef("valuinstcd")) == model.getValue(node +"/" + nodename + "[" + j + "]/instcd") &&
  398. grd_iodt.valueMatrix(row , grd_iodt.colRef("valudeptcd")) == model.getValue(node +"/" + nodename + "[" + j + "]/deptcd") &&
  399. grd_iodt.valueMatrix(row , grd_iodt.colRef("valujobrespcd")) == model.getValue(node +"/" + nodename + "[" + j + "]/jobrespcd")){
  400. chkdup = true;
  401. break;
  402. }
  403. }
  404. if(!chkdup){
  405. if(addRow == 0 || addRow > grd_iodt.rows - grd_iodt.fixedRows)
  406. {
  407. misfGridIUD(grd_iodt,"A");
  408. addRow = grd_iodt.rows - grd_iodt.fixedRows;
  409. }
  410. model.setValue(grd_iodt.nodeset + "[" + addRow + "]/valuinstcd" , model.getValue(node +"/" + nodename + "[" + j + "]/instcd"));
  411. model.setValue(grd_iodt.nodeset + "[" + addRow + "]/valudeptnm" , model.getValue(node +"/" + nodename + "[" + j + "]/deptnm"));
  412. model.setValue(grd_iodt.nodeset + "[" + addRow + "]/valudeptcd" , model.getValue(node +"/" + nodename + "[" + j + "]/deptcd"));
  413. model.setValue(grd_iodt.nodeset + "[" + addRow + "]/valujobrespnm" , model.getValue(node +"/" + nodename + "[" + j + "]/jobrespnm"));
  414. model.setValue(grd_iodt.nodeset + "[" + addRow + "]/valujobrespcd" , model.getValue(node +"/" + nodename + "[" + j + "]/jobrespcd"));
  415. addRow = addRow + 1;
  416. }
  417. }
  418. model.refresh();
  419. ]]>
  420. </script>
  421. </button>
  422. <input id="ipt_inputinstcd" ref="/root/init/depttemp/deptcd" class="input_default" visibility="hidden" style="left:155px; top:65px; width:50px; height:19px; "/>
  423. <button id="button1" class="btn4_letter5" style="left:970px; top:3px; width:92px; height:22px; ">
  424. <caption>전년도복사</caption>
  425. <script type="javascript" ev:event="DOMActivate">
  426. <![CDATA[
  427. if(!isRequiredControls("ipt_valuyy")) return;
  428. if( messageBox( ipt_valuyy.value +"년도의 Data가 모두 삭제되며\n" + (ipt_valuyy.value - 1) +"년도의 Data를 가져오게됩니다.\n","Q003") != 6 ) return;
  429. submit("TXRPV09002");
  430. btn_search.dispatch("DOMActivate");
  431. ]]>
  432. </script>
  433. </button>
  434. <input id="ipt_workgbn" ref="/root/send/workgbn" visibility="hidden" style="left:640px; top:65px; width:75px; height:19px; "/>
  435. <input id="input1" ref="/root/send/targdeptcd" visibility="hidden" style="left:735px; top:65px; width:85px; height:20px; "/>
  436. </group>
  437. </xhtml:body>
  438. </xhtml:html>