123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPAHA02140_감액입력.xrw
- * 설 명 : 감액입력
- * 설 계 자 : 채희철
- * 작 성 자 : 채희철
- * 작 성 일 : 2007.05.28
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>감액입력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <p_dcgm/>
- <h_dcgm>
- <totamt/>
- <reduamt/>
- <percent/>
- <discamt/>
- <rcptamt/>
- </h_dcgm>
- </main>
- <send>
- <srchdiscuncoflag>%</srchdiscuncoflag>
- </send>
- <init>
- <baseinfo/>
- </init>
- <hidden>
- <session/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- fGetBaseInfo();
- fCheckOpener();
- ]]>
- </script>
- <submission id="TRAHA02141" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/baseinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../ast/healexamrcptweb/js/SPAHA02140.js"/>
- <script type="javascript">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" src="D:\CMCProject\application\webapps\com\hismainweb\js\DocTitle.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="534" pageheight="317" guideline="1,518;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:518px; height:290px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:517px; y2:24px; "/>
- <button id="button1" class="btn2_letter3" style="left:464px; top:4px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteRow();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:408px; top:4px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="cell_1" style="left:57px; top:264px; width:60px; height:23px; vertical-align:middle; ">수납금액</caption>
- <caption id="caption4" class="cell_1" style="left:379px; top:264px; width:60px; height:23px; vertical-align:middle; ">감액총액</caption>
- <output id="output2" ref="/root/main/h_dcgm/rcptamt" class="output_fix" format="#,###" style="left:120px; top:265px; width:100px; height:19px; text-align:right; "/>
- <output id="output3" ref="/root/main/h_dcgm/reduamt" class="output_fix" format="#,###" style="left:440px; top:265px; width:77px; height:19px; text-align:right; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:108px; height:13px; ">감액내역</caption>
- <input id="input1" ref="/root/main/h_dcgm/percent" visibility="hidden" style="left:10px; top:265px; width:30px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
-
- if (getNodesetCount("/root/main/h_dcgm/dcgm") < 1)
- {
- model.resetInstanceNode("/root/main/dcgm/percent");
- model.refresh();
- return;
- }
-
- if (datagrid1.row < 1)
- {
- model.resetInstanceNode("/root/main/dcgm/percent");
- model.refresh();
- messageBox("적용할 감액 행을 선택하십시요!","E999","");
- return;
- }
-
- var percent = model.getValue("/root/main/dcgm/percent");
-
- if (percent.isNumber() == false)
- {
- model.resetInstanceNode("/root/main/dcgm/percent");
- model.refresh();
- messageBox("숫자형태만 입력가능합니다!","E999","");
- return;
- }
-
- if (eval(percent) < 1 || eval(percent) > 100)
- {
- model.resetInstanceNode("/root/main/dcgm/percent");
- model.refresh();
- messageBox("1 ~100 까지만 입력가능합니다!","E999","");
- return;
- }
-
- var totrcptamt = model.getValue("/root/main/dcgm/totrcptamt");
-
- //test
- //totrcptamt = "1000";
-
- if (totrcptamt.isNumber() == false)
- {
- messageBox("수납금액이 올바르지 않습니다!","E999","");
- return;
- }
-
- var reduamt = 0;
-
- reduamt = eval(totrcptamt) * eval(percent) / 100;
-
- model.setValue("/root/main/h_dcgm/dcgm["+ datagrid1.row +"]/dcgm_discreduamt",reduamt);
-
- datagrid1.rebuild();
-
- fReduamtCalc();
- }
-
- ]]>
- </script>
- </input>
- <caption id="caption2" visibility="hidden" style="left:40px; top:265px; width:20px; height:20px; ">%</caption>
- <datagrid id="grd_dcgm" nodeset="/root/main/p_dcgm" caption="감액분류^감액명칭^감액^적용사유" colwidth="76, 147, 90, 271" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:29px; width:518px; height:232px; ">
- <col ref="discreduflag" type="combo" disabled="true">
- <choices>
- <item>
- <label>할인</label>
- <value>D</value>
- </item>
- <item>
- <label>감액</label>
- <value>G</value>
- </item>
- </choices>
- </col>
- <col ref="discreducd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/disccdlist">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="discreduamt" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="apprsn" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var currow = grd_dcgm.row;
- var curcol = grd_dcgm.col;
-
- if (curcol == "2")
- {
- if ( model.getValue("/root/main/p_dcgm[" + currow + "]/discreduflag") == "D"){
- messageBox("할인 계정에 해당하는 금액은 변경 할 수 없습니다!","E999","");
- return
- }else
- fAmtCalc();
- }
-
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="cell_1" style="left:239px; top:264px; width:60px; height:23px; vertical-align:middle; ">할인총액</caption>
- <output id="output1" ref="/root/main/h_dcgm/discamt" class="output_fix" format="#,###" style="left:300px; top:265px; width:77px; height:19px; text-align:right; "/>
- </group>
- <group id="group1" scroll="auto" style="left:0px; top:290px; width:518px; height:27px; ">
- <button id="btn_confirm" class="btn4_letter2" style="left:402px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fConfirm();
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:461px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fCancel();
- ]]>
- </script>
- </button>
- <line id="line88" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|