123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLP02100_검사수가관리.xrw
- * 설 명 : 검사수가조회
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 이재민
- * 작 성 일 : 2009.10.6
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <getCharge>
- <tclscd/>
- <sectnm/>
- <tclsnm/>
- <tclsabbrnm/>
- <genrprice/>
- <insuprice/>
- <contprice/>
- </getCharge>
- </main>
- <send>
- <extrtestinstcd/>
- <data/>
- <codeflag/>
- <code1/>
- <search/>
- <code3/>
- <code2/>
- </send>
- <hidden>
- <ref>
- <extrtestinstcd>00</extrtestinstcd>
- <cnfmyn>0</cnfmyn>
- <nm>100</nm>
- <code1>C</code1>
- <search/>
- <code2>00</code2>
- </ref>
- </hidden>
- <init>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
-
- model.removeNodeset("/root/main/getCharge");
-
-
- model.refresh();
- ]]>
- </script>
- <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/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/codeflag", "0110|0106|0108|0109|0111|0210|0000|0124|1005|0128|"); //0110
-
- submit("TRLZZ00101");
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getCharge"/>
- <submission id="TXLLP02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- //계약가 계산
- function fInsurance() {
-
- var cnf = model.getValue("/root/hidden/ref/cnfmyn");
- var gen = "";
- var ins = "";
- var nm = model.getValue("/root/hidden/ref/nm");
-
- if (cnf == 0) {
-
- for(var tRow = 1 ; tRow < datagrid1.rows ; tRow++ ){
-
- gen = model.getValue("/root/main/getCharge["+tRow+"]/genrprice");
- var genrprice = gen * nm / 100;
-
- model.setValue("/root/main/getCharge["+tRow+"]/contprice", genrprice);
- datagrid1.rowStatus(tRow) = 2; //상태함수
-
- }
- }else{
-
- for(var tRow = 1 ; tRow < datagrid1.rows ; tRow++ ){
-
- ins= model.getValue("/root/main/getCharge["+tRow+"]/insuprice");
- var insuprice = ins * nm / 100;
-
- model.setValue("/root/main/getCharge["+tRow+"]/contprice", insuprice);
- datagrid1.rowStatus(tRow) = 2;
-
- }
- }
- model.refresh();
- }
-
- //조회
- function fGetList() {
-
- model.setValue("/root/send/extrtestinstcd", model.getValue("/root/hidden/ref/extrtestinstcd"));
- model.setValue("root/send/code1", model.getValue("/root/hidden/ref/code1"));
- model.setValue("root/send/code2", model.getValue("/root/hidden/ref/code2"));
- model.setValue("root/send/search", model.getValue("/root/hidden/ref/search"));
-
- submit("TRLLP02101");
- }
- //저장
- function fListSave() {
-
- model.setValue("/root/send/data" , getGridUpdateData(datagrid1));
- submit("TXLLP02101");
-
- fGetList();
- }
- // 초기화
- function fSetInit() {
- model.removeNodeset("/root/main/getCharge");
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1175px; height:13px; "/>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group2" ref="/root/main/getList" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <button id="button1" class="btn1_letter2" style="left:1131px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1121px; y1:7px; x2:1121px; y2:29px; "/>
- <select1 id="extrtestinstcd" ref="/root/hidden/ref/extrtestinstcd" appearance="minimal" style="left:291px; top:9px; width:113px; height:19px; font-weight:normal; ">
- <choices>
- <itemset nodeset="/root/init/LB0110">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:199px; top:10px; width:86px; height:17px; ">외부업체 :</caption>
- <caption id="caption3">%</caption>
- <input id="input2" ref="/root/hidden/ref/search" style="left:1010px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //엔터 이벤트
- if(event.keyCode == "13") {
-
- model.setValue("/root/hidden/ref/search",input2.currentText);
-
- fGetList();
-
- }
- ]]>
- </script>
- </input>
- <select1 id="combo1" ref="/root/hidden/ref/code1" appearance="minimal" style="left:930px; top:8px; width:76px; height:19px; ">
- <choices>
- <item>
- <label>검사코드</label>
- <value>C</value>
- </item>
- <item>
- <label>검사명</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:5px; top:9px; width:86px; height:17px; ">시행부서 :</caption>
- <select1 id="combo2" ref="/root/hidden/ref/code2" appearance="minimal" style="left:94px; top:9px; width:86px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/LB0111">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:840px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:131px; height:13px; ">검사수가 리스트</caption>
- <datagrid id="datagrid1" nodeset="/root/main/getCharge" caption="검사코드^시행부서^검사명^검사명(약어)^일반^보험^계약가^" colwidth="80, 100, 250, 120, 90, 90, 90" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" explorerbar="sortshow" style="left:0px; top:80px; width:1194px; height:625px; font-weight:bold; text-align:center; ">
- <col autonext="true" disabled="true" editable="true" imemode="disabled" key="true" ref="tclscd" savetype="auto" type="output" visibility="visible"/>
- <col ref="sectnm" type="output" style="text-align:left; "/>
- <col ref="tclsnm" type="output" style="text-align:left; "/>
- <col ref="tclsabbrnm" type="output" style="text-align:left; "/>
- <col ref="genrprice" type="output" format="(-)#,###.99" style="text-align:right; "/>
- <col ref="insuprice" type="output" format="(-)#,###.99" style="text-align:right; "/>
- <col ref="contprice" type="output" format="(-)#,###.99" style="text-align:right; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_1" style="x1:0px; y1:77px; x2:1194px; y2:76px; "/>
- <select1 id="radio1" ref="/root/hidden/ref/cnfmyn" class="radio_search" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:564px; top:53px; width:105px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>0</value>
- </item>
- <item>
- <label>보험</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <input id="input1" ref="/root/hidden/ref/nm" style="left:664px; top:51px; width:35px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //엔터 이벤트
- if(event.keyCode == "13") {
-
- model.setValue("/root/hidden/ref/nm",input1.currentText);
-
- fInsurance();
-
- }
- ]]>
- </script>
- </input>
- <caption id="caption4" style="left:700px; top:52px; width:25px; height:20px; ">%</caption>
- <caption id="cpt_wbc" class="cell_1" style="left:484px; top:49px; width:77px; height:23px; ">계약가계산 :</caption>
- <button id="button3" class="btn6_letter2" style="left:725px; top:50px; width:56px; height:22px; ">
- <caption>계산</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fInsurance();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:15px; width:1195px; height:27px; ">
- <button id="button5" class="btn4_letter3" style="left:1125px; top:2px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1067px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fListSave();
- ]]>
- </script>
- </button>
- <line id="line15" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- <group id="group5" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">검사수가 금액 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|