SMRAS09000_지급어음관리원장.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. <condition>
  11. <notecd/>
  12. <notecdnm/>
  13. <frdt/>
  14. <todt/>
  15. <instcd/>
  16. <mngitem/>
  17. <todaydt/>
  18. </condition>
  19. <list>
  20. <itemlist/>
  21. <hospislist/>
  22. </list>
  23. <list2>
  24. <detailist/>
  25. </list2>
  26. </main>
  27. <send>
  28. <prntlist/>
  29. <prntlist2/>
  30. </send>
  31. <init>
  32. <sumamt/>
  33. <settyamt/>
  34. <settnamt/>
  35. </init>
  36. <temp>
  37. <prntlist/>
  38. <prntlist2/>
  39. </temp>
  40. <source>
  41. <slipinfo/>
  42. </source>
  43. </root>
  44. </instance>
  45. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  48. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  49. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  50. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  51. <script type="javascript" ev:event="xforms-ready">
  52. <![CDATA[
  53. fOpenForm();
  54. ]]>
  55. </script>
  56. <script type="javascript">
  57. <![CDATA[
  58. //========================================================================================
  59. //화면 로드시 초기화 함수
  60. //========================================================================================
  61. function fOpenForm() {
  62. model.removenode("/root/main/notelist");
  63. var sToday = getCurrentDate().toString();
  64. var sFrday = sToday.substring(0,4) + "0101";
  65. var sTodayDate = getCurrentDate().toString();
  66. model.setValue("/root/main/condition/todt",sToday);
  67. model.setValue("/root/main/condition/frdt",sFrday);
  68. model.setValue("/root/main/condition/todaydt" ,sTodayDate);
  69. var instcd = getUserInfo("dutplceinstcd");
  70. model.setValue("/root/main/condition/instcd",instcd);
  71. model.refresh();
  72. }
  73. //========================================================================================
  74. // 금일날짜와 만기일자 계산해서 처리 부분 매핑
  75. //========================================================================================
  76. function fGetTret(){
  77. }
  78. //========================================================================================
  79. //기재사항코드 조회
  80. //========================================================================================
  81. function fGetNoteList() {
  82. model.resetInstanceNode("/root/main/list/itemlist");
  83. model.resetInstanceNode("/root/main/list2/detailist");
  84. model.removenode("/root/main/list/itemlist");//조회시 기존 데이터 삭제
  85. model.removenode("/root/main/list2/detailist");//조회시 기존 데이터 삭제
  86. model.copyNode("/root/send", "/root/main/condition");
  87. model.refresh();
  88. //if(model.getValue("/root/main/condition/notecd")!="510") {
  89. submit("TRRAS00180");
  90. submit("TRRAS00200");
  91. // fGetSett();
  92. //}else{
  93. //}
  94. }
  95. //========================================================================================
  96. //처리결과 조회
  97. //========================================================================================
  98. function fGetSett(){
  99. // if(model.getValue("/root/main/list/detailist/dramt") == model.getValue("/root/main/list/detailist/cramt")){
  100. if((model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row+ "]/dramt")) == (model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row+ "]/cramt"))) {
  101. alert("1");
  102. model.setValue("/root/main/list/detailist/settyn" , "결재");
  103. }else{
  104. alert("2");
  105. model.setValue("/root/main/list/detailist/settyn" , "미결");
  106. }
  107. //var srcNodeList = model.instances(0).selectNodes("/root/main/list/detailist[activityname='PCI']" );
  108. }
  109. model.refresh();
  110. //========================================================================================
  111. //관리항목 상세정보 조회(그리드용)
  112. //========================================================================================
  113. function fGetMngItemInfo(pRow)
  114. {
  115. if ( pRow > 0 )
  116. {
  117. model.resetInstanceNode("/root/send");
  118. var strItem ;
  119. strItem = grd_notelist.valueMatrix(grd_notelist.row, grd_notelist.colRef("mngitem"));
  120. model.setValue("/root/main/condition/mngitem",strItem);
  121. model.resetInstanceNode("/root/main/list2/detailist");
  122. model.removenode("/root/main/list2/detailist");//조회시 기존 데이터 삭제
  123. model.copyNode("/root/send", "/root/main/condition");
  124. model.refresh();
  125. submit("TRRAS00190");
  126. }
  127. }
  128. function settamt() {
  129. if(model.getValue("/root/init/settamt")=="결재"){
  130. }
  131. }
  132. //========================================================================================
  133. //엑셀입력(excel file을 그리드에 입력)
  134. //========================================================================================
  135. function fInputExcel(pGrid) {
  136. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  137. if(fileName != "") {
  138. pGrid.loadExcel(fileName, 1, true);
  139. pGrid.deleteRow(1);
  140. for(i = 1; i < pGrid.rows; i++) {
  141. pGrid.rowStatus(i) = 1;
  142. }
  143. pGrid.refresh();
  144. }
  145. }
  146. ]]>
  147. </script>
  148. <submission id="TRRAS00180" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist"/>
  149. <submission id="TRRAS00190" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detailist"/>
  150. <submission id="TRRAS00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/detailist"/>
  151. <bind id="ipt_sumamt1" ref="/root/init/sumamt" calculate="sum(/root/main/list2/detailist/cramt)"/>
  152. <bind id="ipt_settyamt1" ref="/root/init/settyamt" calculate="sum(/root/main/list2/detailist/settyamt)"/>
  153. <bind id="ipt_settnamt1" ref="/root/init/settnamt" calculate="sum(/root/main/list2/detailist/settnamt)"/>
  154. </model>
  155. </xhtml:head>
  156. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  157. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  158. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">지급어음 관리 원장</caption>
  159. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  160. </group>
  161. <group id="group3" scroll="auto" style="left:0px; top:20px; width:1195px; height:680px; ">
  162. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  163. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  164. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:125px; height:17px; ">관리항목코드 :</caption>
  165. <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  166. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1120px; top:7px; width:56px; height:22px; text-align:left; ">
  167. <caption>조회</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. //model.refresh();
  171. fGetNoteList();
  172. ]]>
  173. </script>
  174. </button>
  175. <input id="ipt_notecd" ref="/root/main/condition/notecd" class="input_s_essential" navindex="6" style="left:135px; top:8px; width:80px; height:19px; ">
  176. <script type="javascript" ev:event="onkeypress">
  177. <![CDATA[
  178. if(event.keyCode == 13)
  179. {
  180. model.setFocus("ipt_notecdnm");
  181. }
  182. ]]>
  183. </script>
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. racfNoteValidCheck("notecd,notecdnm")
  187. ]]>
  188. </script>
  189. </input>
  190. <input id="ipt_notecdnm" ref="/root/main/condition/notecdnm" class="input_s_essential" navindex="6" style="left:241px; top:8px; width:230px; height:19px; ">
  191. <script type="javascript" ev:event="onkeypress">
  192. <![CDATA[
  193. if(event.keyCode == 13)
  194. {
  195. model.setFocus("btn_search");
  196. }
  197. ]]>
  198. </script>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. racfNoteValidCheck("notecd,notecdnm")
  202. ]]>
  203. </script>
  204. </input>
  205. <button id="btn_help" class="icon_search" style="left:221px; top:10px; width:16px; height:16px; ">
  206. <caption/>
  207. <script type="javascript" ev:event="DOMActivate">
  208. <![CDATA[
  209. misfOpenPopUpList("06", ipt_notecd, "", "notecd,notecdnm");
  210. model.refresh();
  211. ]]>
  212. </script>
  213. </button>
  214. <caption id="caption1" class="search_name" style="left:505px; top:8px; width:89px; height:17px; ">기 간 :</caption>
  215. <caption id="caption2" style="left:699px; top:8px; width:15px; height:20px; ">~</caption>
  216. <input id="input2" ref="/root/main/condition/frdt" class="input_s_essential" inputtype="date" style="left:595px; top:8px; width:100px; height:19px; "/>
  217. <input id="input3" ref="/root/main/condition/todt" class="input_s_essential" inputtype="date" style="left:712px; top:8px; width:100px; height:19px; "/>
  218. <input id="input1" ref="/root/main/condition/todaydt" class="input_s_essential" visibility="hidden" inputtype="date" style="left:890px; top:10px; width:100px; height:19px; "/>
  219. <button id="btn_print" class="btn6_letter2" style="left:1041px; top:7px; width:56px; height:22px; ">
  220. <caption>출력</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. exeReportPreview("RPRAT01400", "XMLSTR", "");
  224. ]]>
  225. </script>
  226. </button>
  227. </group>
  228. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1193px; y2:70px; "/>
  229. <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">관리항목</caption>
  230. <button id="btn_excadd" class="btn2_letter4" style="left:1129px; top:50px; width:64px; height:19px; text-align:left; ">
  231. <caption>엑셀입력</caption>
  232. <script type="javascript" ev:event="onclick">
  233. <![CDATA[
  234. fInputExcel(grd_notelist);
  235. ]]>
  236. </script>
  237. </button>
  238. <datagrid id="grd_notelist" nodeset="/root/main/list/itemlist" caption="기관코드^코드^관리항목" colsep="^" colwidth="0, 0, 200" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:75px; width:225px; height:600px; ">
  239. <col ref="instcd" visibility="hidden"/>
  240. <col ref="notecd" visibility="hidden"/>
  241. <col ref="mngitem" maxlength="3" style="text-align:left; "/>
  242. <script type="javascript" ev:event="onrowchanged">
  243. <![CDATA[
  244. var cur_row = grd_notelist.row;
  245. fGetMngItemInfo(cur_row);
  246. grd_notelist.dispatch("onmouseup");
  247. model.refresh();
  248. ]]>
  249. </script>
  250. </datagrid>
  251. <datagrid id="grd_notedetllist" nodeset="/root/main/list2/detailist" caption="전표번호^계정명^귀속부서^차변금액^거래처코드^전표일자^전표번호^거래처명^차변금액^금액^어음번호^지급은행^발행일^만기일자^처리^결제금액^미결재금액" colsep="^" colwidth="0, 0, 0, 0, 74, 50, 60, 142, 0, 103, 97, 216, 72, 72, 45, 0, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="16" rowsep="|" style="left:230px; top:74px; width:965px; height:571px; text-align:center; ">
  252. <col ref="slipno" type="input" visibility="hidden" maxlength="3" style="text-align:left; "/>
  253. <col ref="acntnm" type="input" visibility="hidden" maxlength="3" style="text-align:left; "/>
  254. <col ref="costcntrdeptnm" type="input" visibility="hidden" maxlength="3" style="text-align:left; "/>
  255. <col ref="dramt" type="input" visibility="hidden" format="#,###" maxlength="3" savetype="digit" style="text-align:right; "/>
  256. <col ref="custcd" style="text-align:center; "/>
  257. <col ref="unsldd" visibility="hidden" style="text-align:center; "/>
  258. <col ref="unslno" style="text-align:center; "/>
  259. <col ref="custnm" style="text-align:center; "/>
  260. <col ref="dramt" type="input" format="#,###" maxlength="3" savetype="digit" style="text-align:right; "/>
  261. <col ref="cramt" format="#,###" maxlength="3" savetype="digit" style="text-align:right; "/>
  262. <col ref="note1" style="text-align:center; "/>
  263. <col ref="note3" style="left:727px; top:23px; width:170px; height:23px; text-align:center; "/>
  264. <col ref="note4" format="yyyy-mm-dd" style="text-align:center; "/>
  265. <col ref="note5" format="yyyy-mm-dd" style="text-align:center; "/>
  266. <col ref="settyn"/>
  267. <col ref="settyamt"/>
  268. <col ref="settnamt"/>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. fGetTret();
  272. ]]>
  273. </script>
  274. <script type="javascript" ev:event="ondblclick">
  275. <![CDATA[
  276. //if (ipt_detailist.row > 0 && ipt_detailist.valueMatrix(ipt_detailist.row, ipt_detailist.colRef("gubn")) == "0")
  277. //{
  278. model.makeValue("/root/source/slipinfo/instcd", getUserInfo("dutplceinstcd"));
  279. model.makeValue("/root/source/slipinfo/slipdt", model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row + "]/unsldd"));
  280. model.makeValue("/root/source/slipinfo/slipno", model.getValue(grd_notedetllist.nodeset + "[" + grd_notedetllist.row + "]/unslno").substr(0, 4));
  281. model.refresh();
  282. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  283. //}
  284. ]]>
  285. </script>
  286. </datagrid>
  287. <upload id="upload1" style="left:735px; top:415px; width:100px; height:20px; "/>
  288. <button id="button1" class="btn2_letter4" style="left:1062px; top:50px; width:64px; height:19px; text-align:left; ">
  289. <caption>엑셀출력</caption>
  290. <script type="javascript" ev:event="onclick">
  291. <![CDATA[
  292. //radfSaveExcel(grd_notedetllist);
  293. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  294. grd_notedetllist.saveExcel(fileName,"SheetName:sheet1");
  295. ]]>
  296. </script>
  297. </button>
  298. <caption id="caption3" class="cell_1" style="left:230px; top:650px; width:90px; height:23px; text-align:center; vertical-align:middle; ">총 액</caption>
  299. <caption id="caption5" class="cell_1" style="left:492px; top:650px; width:90px; height:23px; text-align:center; vertical-align:middle; ">결재금액</caption>
  300. <caption id="caption8" class="cell_1" style="left:754px; top:650px; width:90px; height:23px; text-align:center; vertical-align:middle; ">미결재금액</caption>
  301. <input id="ipt_sumamt" ref="/root/init/sumamt" format="#,###" style="left:322px; top:652px; width:165px; height:19px; text-align:right; "/>
  302. <input id="ipt_settyamt" ref="/root/init/settyamt" format="#,###" style="left:584px; top:652px; width:165px; height:19px; text-align:right; "/>
  303. <input id="ipt_settnamt" ref="/root/init/settnamt" format="#,###" style="left:846px; top:652px; width:165px; height:19px; text-align:right; "/>
  304. </group>
  305. </xhtml:body>
  306. </xhtml:html>