123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <gridmidc/>
- </list1>
- <item1>
- <iteminpt>
- <insukind/>
- <insukindcd/>
- <suppkind/>
- <suppkindcd/>
- <ownrate/>
- </iteminpt>
- </item1>
- </main>
- <send>
- <pid/>
- <indd/>
- <mskind/>
- <midclist/>
- <fromdate/>
- <todate/>
- </send>
- <hidden>
- </hidden>
- <init/>
- <temp>
- <totordamt/>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- //[개발 중 메모]
- // 1) ZBC001.js => com.ZBCCODEM에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIJ01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
- <submission id="TXPIJ01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRPIJ01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/item1"/>
- <submission id="TRPIJ01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
- cbo_mskind.select(0);
- model.removeNodeset("/root/main/list1/gridmidc");
- model.setValue("/root/main/item1/iteminpt/insukind","");
- model.setValue("/root/main/item1/iteminpt/insukindcd","");
- model.setValue("/root/main/item1/iteminpt/suppkind","");
- model.setValue("/root/main/item1/iteminpt/suppkindcd","");
- model.setValue("/root/main/item1/iteminpt/ownrate","");
-
- var pid = model.getValue("/root/send/pid");
-
- if(pid != "")
- {
- fSetMidClamList();
- fGetMidClamList();
- }
- model.refresh();
-
- }
-
- //분할청구내역을 조회 한다.
- function fGetMidClamList(){
- // alert(cbo_mskind.value);
- var insukindcd = model.getValue("root/main/item1/iteminpt/insukindcd");
- if(insukindcd != ""){
- model.setValue("/root/main/item1/iteminpt/insukind","");
- model.setValue("/root/main/item1/iteminpt/insukindcd","");
- model.setValue("/root/main/item1/iteminpt/suppkind","");
- model.setValue("/root/main/item1/iteminpt/suppkindcd","");
- model.setValue("/root/main/item1/iteminpt/ownrate","");
- }
- model.setValue("/root/send/mskind",cbo_mskind.value);
- if(ipt_pid.currentText.length >0)
- {
- model.removeNodeset("/root/main/list1/gridmidc");
- submit("TRPIJ01101");
- model.removeNodeset("/root/main/item1/iteminpt");
- submit("TRPIJ01102");
- model.refresh();
-
- }else
- {
- messageBox("환자번호를","C001");
- }
-
- }
-
- function fSetMidClamList(){
- var pid = opener.model.getValue("/root/send/pid");
- var indd = opener.model.getValue("/root/send/indd");
-
- if (pid != "") {
- model.setValue("/root/send/pid", pid);
- model.setValue("/root/send/indd", indd);
- model.setValue("/root/send/mskind",cbo_mskind.value);
- //setInputNodeCurText();
- submit("TRPIJ01101");
- grd_midc.resizeCells();
- model.refresh();
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="865" pageheight="525" guideline="1,871;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:845px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:124px; height:13px; ">중간청구 등록관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:845px; height:457px; ">
- <group id="group2" style="left:5px; top:10px; width:840px; height:70px; vertical-align:top; ">
- <shape id="roundrect1" style="left:0px; top:0px; width:835px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">등록변호 :</caption>
- <caption id="caption5" class="search_name" style="left:468px; top:9px; width:86px; height:17px; ">주부유형 :</caption>
- <caption id="caption2" class="search_name" style="left:254px; top:9px; width:86px; height:17px; ">입원일자 :</caption>
- <input id="ipt_pid" ref="/root/send/pid" class="input_search" style="left:104px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == '13'){
- if(ipt_pid.currentText.isNumber()){
- // if(ipt_pid.currentText.length< 8){
- // ipt_pid.currentText = ipt_pid.currentText.getleftPad(8, '0');
- // model.setFocus("ipt_indd");
- // }
- // else{
- // model.setFocus("ipt_indd");
- // }
- model.setFocus("ipt_indd");
- // }
- }else{
- messageBox("환자번호를 정확히","C001");
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_indd" ref="/root/send/indd" class="input_search" inputtype="date" style="left:348px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == '13'){
- if(ipt_indd.currentText.length != ""){
- model.setFocus("cbo_mskind");
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="cbo_mskind" ref="/root/send/mskind" class="combo_search" appearance="minimal" style="left:557px; top:8px; width:82px; height:19px; ">
- <choices>
- <item>
- <label>주보험</label>
- <value>M</value>
- </item>
- <item>
- <label>부보험</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == '13'){
- if(ipt_indd.currentText.length != ""){
- model.setFocus("btn_srch");
- }
- }
- ]]>
- </script>
- </select1>
- <button id="btn_srch" class="btn1_letter2" style="left:760px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_midc);
- if(updtdata != "")
- {
- var ret = messageBox("그리드에 작업중인 내용이 있습니다. 조회 작업을","Q003");
- if(ret != 6){
- return;
- }
- }
- fGetMidClamList();
- ]]>
- </script>
- </button>
- <output id="opt_ownrate" ref="/root/main/item1/iteminpt/ownrate" class="output_fix" style="left:460px; top:35px; width:30px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">보험유형 :</caption>
- <caption id="caption11" class="search_name" style="left:255px; top:35px; width:93px; height:17px; ">보호/요율 :</caption>
- <output id="opt_insukindcd" ref="/root/main/item1/iteminpt/insukindcd" class="output_fix" style="left:104px; top:35px; width:35px; height:19px; "/>
- <output id="opt_insukind" ref="/root/main/item1/iteminpt/insukind" class="output_fix" style="left:145px; top:35px; width:95px; height:19px; "/>
- <output id="opt_suppkindcd" ref="/root/main/item1/iteminpt/suppkindcd" class="output_fix" style="left:357px; top:35px; width:35px; height:19px; "/>
- <output id="opt_suppkind" ref="/root/main/item1/iteminpt/suppkind" class="output_fix" style="left:395px; top:35px; width:60px; height:19px; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:85px; width:177px; height:13px; ">중간청구(분리청구) 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:840px; y2:100px; "/>
- <datagrid id="grd_midc" nodeset="/root/main/list1/gridmidc" caption="청구시작일^청구종료일^보혐유형^유형보조^총진료비^등록자^등록시간^청구년월^환자번호^입원일자^seqno^기관기호^주부유형^상태^확인자id^확인여부^확인일자^청구키^수정상태^최초등록자^최초등록일시" colsep="^" colwidth="97, 109, 91, 97, 111, 87, 117, 107" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:100px; width:840px; height:345px; ">
- <col ref="fromdd" type="inputdate" format="yyyy-mm-dd"/>
- <col disabled="false" ref="todd" type="input" format="yyyy-mm-dd"/>
- <col ref="insukind"/>
- <col ref="suppkind"/>
- <col ref="totordamt" type="output" format="#,###" style="text-align:right; "/>
- <col ref="lastupdtrid"/>
- <col ref="lastupdtdt"/>
- <col ref="clamdd"/>
- <col ref="pid"/>
- <col ref="indd"/>
- <col ref="seqno"/>
- <col ref="instcd"/>
- <col ref="mskind"/>
- <col ref="stat"/>
- <col ref="cnfmrid"/>
- <col ref="cnfmyn"/>
- <col ref="confmdt"/>
- <col ref="clamkey"/>
- <col ref="rowstat"/>
- <col ref="fstrgstrid"/>
- <col ref="fstrgstdt"/>
- <!--
- <col ref="pid" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="mskind" visibility="hidden"/>
- <col ref="stat" visibility="hidden"/>
- <col ref="cnfmyn" visibility="hidden"/>
- <col ref="confmdt" visibility="hidden"/>
- <col ref="clamkey" visibility="hidden"/>
- <col ref="rowstat" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- -->
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_midc.row >1){
- var row_stat = grd_midc.rowStatus(grd_midc.row-1);
-
- var new_todd = model.getValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/fromdd") ;
- var thisYear = new_todd.substring(0,4); // 현재 입력된 연
- var thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- var thisDay = new_todd.substring(6,8); // 현재 입력된 일
- var nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(-24); // 24시간 뒤인 다음날 날짜를 구한다.
- var nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- if(row_stat != 4){
- if( model.getValue("/root/main/list1/gridmidc[" + (grd_midc.row -1 )+ " ]/fromdd") > nextfromdd){
- // alert( model.getValue("/root/main/list1/gridmidc[" +( grd_midc.row -1 )+ " ]/fromdd")+ "/" + nextfromdd);
- messageBox("시작일자를 오류","E008");
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/fromdd",new_todd);
- return;
- }
- model.setValue("/root/main/list1/gridmidc[" + (grd_midc.row - 1) + " ]/todd", nextfromdd);
- }
-
- if(row_stat != 1){
- if(row_stat != 3){
- if(row_stat != 4){
- grd_midc.rowStatus(grd_midc.row -1) = 2;
- }
- }
- }
-
- //현재 추가된 Row의 총진료비를 조회 한다.
- model.setValue("/root/send/fromdate",model.getValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/fromdd"));
- model.setValue("/root/send/todate",model.getValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/todd"));
- model.setValue("/root/temp/totordamt", "0");
-
- //총진료비를 조회하여 넣어 준다.
- if ( submit("TRPIJ01103") ) {
-
- var totordamt = model.getValue("/root/temp/totordamt");
- if(totordamt != "0"){
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/totordamt",totordamt);
- }
- model.refresh();
- }
-
- //이전줄의 금액도 다시 계산을 해준다.
- model.setValue("/root/send/fromdate",model.getValue("/root/main/list1/gridmidc[" + (grd_midc.row - 1)+ " ]/fromdd"));
- model.setValue("/root/send/todate",model.getValue("/root/main/list1/gridmidc[" +( grd_midc.row -1)+ " ]/todd"));
- model.setValue("/root/temp/totordamt", "0");
-
- //총진료비를 조회하여 넣어 준다.
- if ( submit("TRPIJ01103") ) {
-
- var totordamt = model.getValue("/root/temp/totordamt");
- if(totordamt != "0"){
- model.setValue("/root/main/list1/gridmidc[" + (grd_midc.row - 1) + " ]/totordamt",totordamt);
- }
- model.refresh();
- }
-
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if( grd_midc.rowData(grd_midc.row) == "disabled" )
- event.defaultAction = "cancel";
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseover">
- <![CDATA[
- if( grd_midc.rowData(grd_midc.mouseRow) == "disabled" ) {
- grd_midc.colDisabled(grd_midc.mouseCol) = true;
- }
- else {
- grd_midc.colDisabled(grd_midc.mouseCol) = false;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_addrow" class="btn2_letter3" style="left:730px; top:80px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_midc.row < 1){
- grd_midc.addrow();
-
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/fromdd", model.getValue("/root/send/indd"));
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/todd","29991231");
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/insukind",model.getValue("/root/main/item1/iteminpt/insukindcd"));
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/suppkind",model.getValue("/root/main/item1/iteminpt/suppkindcd"));
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/pid",model.getValue("/root/send/pid"));
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/indd",model.getValue("/root/send/indd"));
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/mskind",model.getValue("/root/send/mskind"));
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/indd",model.getValue("/root/send/indd"));
-
- //현재 Row의 총진료비를 구한다.
- model.setValue("/root/send/fromdate",model.getValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/fromdd"));
- model.setValue("/root/send/todate",model.getValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/todd"));
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/totordamt","0");
-
- model.setValue("/root/temp/totordamt", "0");
-
- //총진료비를 조회하여 넣어 준다.
- if ( submit("TRPIJ01103") ) {
-
- var totordamt = model.getValue("/root/temp/totordamt");
- if(totordamt != "0"){
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/totordamt",totordamt);
- }
- model.refresh();
- }
-
- return;
- }
- if(grd_midc.row >= 1)
- {
- var chk_date = model.getValue("/root/main/list1/gridmidc[" + (grd_midc.row) + " ]/fromdd");
- if ( chk_date == ""){
- return;
- }
- grd_midc.addrow();
- model.copyNode("/root/main/list1/gridmidc[" + grd_midc.row + " ]", "/root/main/list1/gridmidc[" + (grd_midc.row-1) + " ]");
- //기본적으로 오늘날짜를 선택해준다. - 데이터 없이 저장하는것을 방지하기 위하여.
- var tmp_day = new Date();
- var tmp_year = tmp_day.getYear();
- var tmp_month = tmp_day.getMonth() +1;
- var tmp_date = tmp_day.getDate();
-
- if(tmp_month <10 ){
- tmp_month = "0" + tmp_month;
- }
- if(tmp_date <10 ){
- tmp_date = "0" + tmp_date;
- }
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/fromdd",tmp_year + tmp_month + tmp_date);
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/todd","29991231");
- //윗줄의 데이터 바꿔준다.
- var row_stat = grd_midc.rowStatus(grd_midc.row-1);
-
- var new_todd = tmp_year + tmp_month + tmp_date ;
- var thisYear = new_todd.substring(0,4); // 현재 입력된 연
- var thisMonth = new_todd.substring(4,6); // 현재 입력된 월
- var thisDay = new_todd.substring(6,8); // 현재 입력된 일
- var nextDate = new Date(thisYear, (thisMonth - 1), thisDay);
- nextDate.setHours(-24); // 24시간 뒤인 다음날 날짜를 구한다.
- var nextfromdd = "";
- nextfromdd += nextDate.getYear();
- if ((nextDate.getMonth() + 1) < 10) {
- nextfromdd += "0" + (nextDate.getMonth() + 1);
- }
- else {
- nextfromdd += (nextDate.getMonth() + 1);
- }
- if (nextDate.getDate() < 10) {
- nextfromdd += "0" + nextDate.getDate();
- }
- else {
- nextfromdd += nextDate.getDate();
- }
- if(row_stat != 4){
- model.setValue("/root/main/list1/gridmidc[" + (grd_midc.row - 1) + " ]/todd", nextfromdd);
- }
-
- if(row_stat != 1){
- if(row_stat != 3){
- if(row_stat != 4){
- grd_midc.rowStatus(grd_midc.row -1) = 2;
- }
- }
- }
-
- //현재 추가된 Row의 총진료비를 조회 한다.
- model.setValue("/root/send/fromdate",model.getValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/fromdd"));
- model.setValue("/root/send/todate",model.getValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/todd"));
- model.setValue("/root/temp/totordamt", "0");
-
- //총진료비를 조회하여 넣어 준다.
- if ( submit("TRPIJ01103") ) {
-
- var totordamt = model.getValue("/root/temp/totordamt");
- if(totordamt != "0"){
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/totordamt",totordamt);
- }
- model.refresh();
- }
-
- //이전줄의 금액도 다시 계산을 해준다.
- model.setValue("/root/send/fromdate",model.getValue("/root/main/list1/gridmidc[" + (grd_midc.row - 1)+ " ]/fromdd"));
- model.setValue("/root/send/todate",model.getValue("/root/main/list1/gridmidc[" +( grd_midc.row -1)+ " ]/todd"));
- model.setValue("/root/temp/totordamt", "0");
-
- //총진료비를 조회하여 넣어 준다.
- if ( submit("TRPIJ01103") ) {
-
- var totordamt = model.getValue("/root/temp/totordamt");
- if(totordamt != "0"){
- model.setValue("/root/main/list1/gridmidc[" + (grd_midc.row - 1) + " ]/totordamt",totordamt);
- }
- model.refresh();
- }
- for(var i =grd_midc.fixedRows;i < grd_midc.rows -1 ; i++){
- grd_midc.rowData(i) = "disabled";
- }
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" style="left:786px; top:80px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/list1/gridmidc[" + (grd_midc.row )+ " ]/clamkey") != ""){
- messageBox("이미 청구된 내역이 있는 자료는 삭제","E001");
- return;
- }
-
- if(model.getValue("/root/main/list1/gridmidc[" + (grd_midc.row - 1)+ " ]/clamkey") != ""){
- messageBox("이미 분할청구된 내역이 있으므로 마지막 자료는 삭제","E001");
- return;
- }
- grd_midc.removeitem();
- model.setValue("/root/main/list1/gridmidc[" + grd_midc.row + " ]/todd","29991231");
- grd_midc.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:465px; width:845px; height:35px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:840px; y2:0px; "/>
- <button id="btn_clear" class="btn4_letter3" style="left:710px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/pid","");
- model.setValue("/root/send/indd","");
- model.setValue("/root/send/mskind","M");
- fInitialize();
- model.setFocus("ipt_pid");
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:781px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close(); //F5 실행시 IE를 종료시킨다.
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:650px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var updtdata = getGridUpdateData(grd_midc);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- if(grd_midc.rows <= 1)
- {
- return;
- }
- //data grid에 잘못된 값이 존재하는 지 체크한다. - fromdd, todd
- for( i = grd_midc.fixedRows; i < grd_midc.rows ; i++ ) {
- var fromdd = grd_midc.valueMatrix(i,1);
- if(fromdd <= ""){
- messageBox("시작일자는","I003");
- return;
- }
- var todd = grd_midc.valueMatrix(i,2);
- if(todd <= ""){
- messageBox("종료일자는0","I003");
- return;
- }
- }
-
- model.setValue("/root/send/midclist",grd_midc.getUpdateData());
- if ( submit("TXPIJ01101") ) {
- grd_midc.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- messageBox("저장이","I002");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|