SMRPB18200_보증사항등록.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. <grnt>
  11. <grntlist1>
  12. <emplno/>
  13. <emplnm/>
  14. <grntpsnflag/>
  15. <grntpsnrela/>
  16. <grntdd/>
  17. <grnttodd/>
  18. <grntamt/>
  19. <cmt/>
  20. <seq/>
  21. <oldseq/>
  22. </grntlist1>
  23. </grnt>
  24. </main>
  25. <send>
  26. <paydedu>
  27. <paydedudd/>
  28. <instcd/>
  29. <paydeduflag/>
  30. <saldfrayflag/>
  31. <emplno/>
  32. <emplnm/>
  33. </paydedu>
  34. <save>
  35. <paydedulist/>
  36. </save>
  37. </send>
  38. </root>
  39. </instance>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. misfGridInit(grd_grntpsn1);
  43. misfMsterDetailSet(grd_grntpsn1,null, "TRRPB18201" ,"Y");
  44. var curdate = getCurrentDate();
  45. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  46. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  47. model.refresh();
  48. ]]>
  49. </script>
  50. <submission id="TRRPB18201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  51. <submission id="TXRPB18201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  57. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  58. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  59. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  60. </xhtml:head>
  61. <xhtml:body>
  62. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  63. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">보증 사항 등록</caption>
  64. </group>
  65. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  66. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  67. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  68. <caption>조회</caption>
  69. <script type="javascript" ev:event="DOMActivate">
  70. <![CDATA[
  71. misfMsterDetailRetrieve();
  72. ]]>
  73. </script>
  74. </button>
  75. <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  76. <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1192px; y2:71px; "/>
  77. <caption id="caption1" class="tit_2" style="left:2px; top:56px; width:198px; height:14px; ">보증사항등록</caption>
  78. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:948px; top:50px; width:53px; height:19px; ">
  79. <caption>행추가</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. misfGridIUD(grd_grntpsn1, "A");
  83. ]]>
  84. </script>
  85. </button>
  86. <button id="btn_inputexcel" class="btn2_letter4" style="left:1130px; top:50px; width:64px; height:19px; ">
  87. <caption>엑셀입력</caption>
  88. <script type="javascript" ev:event="DOMActivate">
  89. <![CDATA[
  90. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  91. grd_grntpsn1.loadExcel(fileName, 1, true);
  92. for (var i = 1; i < grd_grntpsn1.rows; i ++){
  93. grd_grntpsn1.rowStatus(i) = 1;
  94. }
  95. grd_grntpsn1.refresh();
  96. ]]>
  97. </script>
  98. </button>
  99. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1004px; top:50px; width:53px; height:19px; ">
  100. <caption>행삭제</caption>
  101. <script type="javascript" ev:event="DOMActivate">
  102. <![CDATA[
  103. misfGridIUD(grd_grntpsn1, "D");
  104. ]]>
  105. </script>
  106. </button>
  107. <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" appearance="minimal" style="left:88px; top:17px; width:125px; height:19px; ">
  108. <choices>
  109. <itemset>
  110. <label/>
  111. <value/>
  112. </itemset>
  113. </choices>
  114. </select1>
  115. <caption id="caption2" class="search_name" style="left:32px; top:18px; width:61px; height:17px; ">기관:</caption>
  116. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist1" caption="사원번호^성명^보증구분^보증인과의 관계(보증기관)^보증시작일^보증만료일^보증금액^비고^caption1^caption2" colsep="^" colwidth="118, 100, 100, 244, 119, 111, 100, 253, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1192px; height:660px; ">
  117. <col ref="emplno" type="inputbutton"/>
  118. <col ref="emplnm"/>
  119. <col disabled="true" ref="grntpsnflag" type="combo">
  120. <choices>
  121. <item>
  122. <label>인우보증</label>
  123. <value>1</value>
  124. </item>
  125. <item>
  126. <label>보증보험</label>
  127. <value>2</value>
  128. </item>
  129. </choices>
  130. </col>
  131. <col ref="grntpsnrela" type="input"/>
  132. <col ref="grntdd" type="inputdate" style="text-align:center; "/>
  133. <col ref="grnttodd" type="inputdate" style="text-align:center; "/>
  134. <col ref="grntamt" type="input" format="#,###" style="text-align:right; "/>
  135. <col ref="cmt" type="input" style="text-align:left; "/>
  136. <col ref="seq" visibility="hidden"/>
  137. <col ref="oldseq" visibility="hidden"/>
  138. <script type="javascript" ev:event="onbuttonclick">
  139. <![CDATA[
  140. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "emplno" ) { //계산기준코드
  141. var recv_list = "emplno,emplnm";
  142. rpbfOpenPopUpList("SPRPB00101", grd_grntpsn1, recv_list,"","N");
  143. model.refresh();
  144. }
  145. ]]>
  146. </script>
  147. <script type="javascript" ev:event="xforms-value-changed">
  148. <![CDATA[
  149. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "emplno" ) { //계산기준코드
  150. var recv_list = "emplno,emplnm";
  151. misfValidationCheck("01-1", "", recv_list);
  152. model.refresh();
  153. }
  154. ]]>
  155. </script>
  156. </datagrid>
  157. <caption id="caption7" class="search_name" style="left:245px; top:17px; width:63px; height:17px; ">사번 :</caption>
  158. <button id="btn_emplno" class="icon_search" style="left:395px; top:17px; width:16px; height:16px; ">
  159. <caption/>
  160. <script type="javascript" ev:event="DOMActivate">
  161. <![CDATA[
  162. var recv_list = "emplno,emplnm" ;
  163. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  164. model.refresh();
  165. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  166. btn_search.dispatch("DOMActivate");
  167. }
  168. ]]>
  169. </script>
  170. </button>
  171. <input id="ipt_emplnos" ref="/root/send/paydedu/emplno" class="input_essential" style="left:306px; top:17px; width:87px; height:19px; ">
  172. <script type="javascript" ev:event="onkeyup">
  173. <![CDATA[
  174. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  175. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  176. inputEnterKey("btn_search", "DOMActivate");
  177. }
  178. ]]>
  179. </script>
  180. <script type="javascript" ev:event="xforms-value-changed">
  181. <![CDATA[
  182. var recv_list = "emplno,emplnm" ;
  183. rpbfValidationCheck("EMPLNO", recv_list);
  184. model.refresh();
  185. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  186. btn_search.dispatch("DOMActivate");
  187. }
  188. ]]>
  189. </script>
  190. </input>
  191. <input id="ipt_emplnms" ref="/root/send/paydedu/emplnm" class="input_default" style="left:412px; top:17px; width:141px; height:19px; ">
  192. <script type="javascript" ev:event="onkeyup">
  193. <![CDATA[
  194. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  195. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  196. inputEnterKey("btn_search", "DOMActivate");
  197. }
  198. ]]>
  199. </script>
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. var recv_list = "emplno,emplnm" ;
  203. rpbfValidationCheck("EMPLNM", recv_list);
  204. model.refresh();
  205. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  206. btn_search.dispatch("DOMActivate");
  207. }
  208. ]]>
  209. </script>
  210. </input>
  211. <button id="btn_savegrntpsn1excel" class="btn2_letter4" style="left:1062px; top:50px; width:64px; height:19px; ">
  212. <caption>엑셀저장</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  216. if (fileName != "")
  217. {
  218. grd_grntpsn1.saveExcel(fileName);
  219. }
  220. ]]>
  221. </script>
  222. </button>
  223. </group>
  224. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  225. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  226. <caption>저장</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. for (var i = 1; i < grd_grntpsn1.rows; i ++){
  230. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/emplno") == ""){
  231. messageBox(i + "번째 사원번호는 필수 입력항목입니다.", "E999", "");
  232. return;
  233. }
  234. if (model.getValue("/root/main/grnt/grntlist1[" + i + "]/grntpsnflag") == ""){
  235. messageBox(i + "번째 보증구분은 필수 선택항목입니다.", "E999", "");
  236. return;
  237. }
  238. }
  239. if (misfSave("TXRPB18201")){
  240. btn_search.dispatch("DOMActivate");
  241. }
  242. ]]>
  243. </script>
  244. </button>
  245. <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
  246. <caption>초기화</caption>
  247. </button>
  248. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  249. </group>
  250. </xhtml:body>
  251. </xhtml:html>