123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <list1>
- <clbs/>
- </list1>
- <item1>
- <clbs/>
- </item1>
- </main>
- <main2>
- <list1>
- <clbs/>
- </list1>
- </main2>
- <send>
- <clamym/>
- <clamdg/>
- <ioflag/>
- <clamflagcd/>
- <sumtypecd/>
- <insukind/>
- <suppkind/>
- <srcflag/>
- <docuseqno1/>
- <docuseqno2/>
- <prntlist/>
- <report1>
- <list1/>
- <list2/>
- <list3/>
- <list4/>
- <list6/>
- </report1>
- <report2>
- <list1/>
- <list5/>
- </report2>
- <reqdata/>
- <item1>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <pagenum/>
- <chkflag/>
- <insukind/>
- </item1>
- <minrnum/>
- <maxrnum/>
- <judgendyn/>
- <insucd/>
- <imgdata>
- <photimg/>
- <imgprtyn/>
- </imgdata>
- <pid/>
- <pidsn/>
- </send>
- <init>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 보조유형 -->
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- <!-- 보조유형 data값!!을 넣기 위한 instance-->
- <suppkindlist>
- <insukind/>
- <suppkind/>
- <suppkindnm/>
- <ownbrate/>
- </suppkindlist>
- <!-- 청구구분코드 -->
- <P0155list>
- <P0155>
- <cdnm/>
- <cdid/>
- </P0155>
- </P0155list>
- <!-- 진료분야 공통코드 -->
- <P0458list>
- <P0458>
- <cdnm/>
- <cdid/>
- </P0458>
- </P0458list>
- <insucdlist>
- <list>
- <insucd/>
- <insucdnm/>
- </list>
- </insucdlist>
- </init>
- <hidden>
- <clbs>
- <totcnt/>
- </clbs>
- <list1>
- </list1>
- <list2>
- </list2>
- <list3>
- </list3>
- <list4>
- </list4>
- </hidden>
- <previewyn/>
- <etc>
- <diagcd/>
- <diagnm/>
- </etc>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize(); // 화면을 초기화한다.
- fCheckAuth(); // 화면 권한을 설정한다.
- makeReportPreview(0,50,1194,600, "grp_rpt_hidden1"); // 바로 출력 할 경우 껌뻑껌뻑 거리는 걸 없에버리자.
- makeReportPreview(0,50,1194,600, "grp_rpt_hidden2"); // 바로 출력 할 경우 껌뻑껌뻑 거리는 걸 없에버리자.
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID20701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPIJ00601" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/tmp"/>
- <submission id="TRPID20301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPID20702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
- <submission id="TRPID20703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
- <submission id="TRPID20704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
- <submission id="TRPID20705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
- <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/clamdg"/>
- <submission id="TRPID20706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
- <submission id="TRPID20707" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main2"/>
- <submission id="TRPID20708" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/insucdlist"/>
- <submission id="TRPID20709" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/instimg"/>
- </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/numericHelper.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" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 지연 출력을 위한 글로벌 변수
- var timerID; // 타이머 전역 변수
- var glb_i = 0; // 체크된 행 번호
- var chkcnt = 0; // 체크된 행 갯수
- var chkArr = new Array(); // 체크된 행 담을 배열
-
- // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
- // 노드 초기화
- fInitSrchData();
-
- // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- zbcfGetCodeList(
- new Array("P0008","P0010","P0155","P0458"),
- new Array("/root/init/P0008list","/root/init/P0010list","/root/init/P0155list","/root/init/P0458list") );
- // 보험유형, 보조유형 코드 불러오기
- submit("TRPIJ00601");
- model.removeNodeset("root/init/insukind");
- model.removeNodeset("root/init/suppkind");
- model.makeNode("root/init/insukind");
- model.makeNode("root/init/suppkind");
- model.copyNode("root/init/insukind", "root/hidden/tmp/insukind");
- model.copyNode("root/init/suppkind", "root/hidden/tmp/suppkind");
- model.removeNodeset("root/hidden/tmp/insukind");
- model.removeNodeset("root/hidden/tmp/suppkind");
- model.removeNodeset("root/hidden/tmp/orddeptcd");
- model.removeNodeset("root/hidden/tmp/orddrid");
- model.removeNodeset("root/hidden/tmp/judgrid");
-
- // 20100108 보조유형 전체 추가
- /*
- for( i = 1; i <= model.getXPathValue( "count(/root/init/P0008list/P0008)" ) ; i++ ) {
- if ( model.getValue("/root/init/P0008list/P0008[" + i + "]/cdid") != "" ) {
- model.removeNodeset("/root/init/suppkindall/suppkindlist");
- model.makeValue("/root/init/suppkindall/suppkindlist/cdid","");
- model.makeValue("/root/init/suppkindall/suppkindlist/cdnm","전체");
- model.makeValue("/root/init/suppkindall/suppkindlist/up",model.getValue("/root/init/P0008list/P0008[" + i + "]/cdid"));
- copyNodeType("/root/init/suppkind","/root/init/suppkindall","before");
- }
- }
- */
- // 무식한 방법 같아서 다시 수정, 하나만 추가후 조회시 조정
- model.removeNodeset("/root/init/suppkindall/suppkindlist");
- model.makeValue("/root/init/suppkindall/suppkindlist/cdid","");
- model.makeValue("/root/init/suppkindall/suppkindlist/cdnm","전체");
- model.makeValue("/root/init/suppkindall/suppkindlist/up","-");
- copyNodeType("/root/init/suppkind","/root/init/suppkindall","before");
-
- // 손보사 콤보 리스트
- submit("TRPID20708");
- // 직인 이미지
- submit("TRPID20709");
- var imgdata = model.getValue("/root/init/instimg/list/photimg"); // base64 encoding 문자열을 가져온다.
- model.setValue("/root/send/imgdata/photimg", imgdata,true);
- setImageRefInstance("/root/send/imgdata/photimg"); //base64 encoding 문자열을 이미지로 변환하여 보여준다,
- // 직인 이미지 있으면 체크표시함
- if ( model.getValue("/root/send/imgdata/photimg") != "" ) {
- model.setValue("/root/send/imgdata/imgprtyn","Y");
- }
- // 삭제포함 자리 이동
- cp_delyn.attribute("left") = "880px";
- bool_delyn.attribute("left") = "960px";
- model.refresh();
- }
-
- // 노드 초기화
- function fInitSrchData() {
- // grid를 인스턴스에 mapping후 인스턴스에 해당하는 빈줄 1줄이 생기므로 grid 초기화
- model.removeNodeset("/root/main/list1/clbs");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/hidden/clbs/totcnt");
- // 청구년월, 차수 초기화
- var today = new Date();
- var baseyear = today.getDateFormat("YYYY");
- var basemonth = today.getDateFormat("MM");
- var baseday = today.getDateFormat("DD");
- var currentym = baseyear + basemonth;
- var currentdd = baseyear + basemonth + baseday;
- model.setValue("/root/send/clamym", currentym);
- model.setValue("/root/send/clamdg", "");
- model.setValue("/root/send/ioflag", "-");
- model.removeNodeset("/root/init/clamdg");
- model.makeNode("/root/init/clamdg");
- submit("TRPID20407");
- addComboItem("cmb_clamdg" , "전체","0","above");
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgnm", "전체");
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgcd", 0);
- // cmb_clamdg.refresh();
- cmb_clamdg.select(0);
- model.refreshpart("/root/init/clamdg");
-
- //컨트롤 초기화
- ipt_docuseqno1.value = "";
- ipt_docuseqno2.value = "";
- ipt_docuseqno1.disabled = true;
- ipt_docuseqno2.disabled = true;
- cmb_suppkind.disabled = true;
- cmb_ioflag.refresh();
- }
-
- // 화면 권한을 설정한다.
- function fCheckAuth() {
- if (!isPopup()) { // (common.js) 자신이 팝업인지 아닌지를 리턴한다.
- // model.setValue("/root/hidden/properties/auth", "10100000"); // (RXP)팝업이 아닌 경우 처리권한을 부여하지 않는다.
- model.setValue("properties/auth", "10100000"); // (RXP)팝업이 아닌 경우 처리권한을 부여하지 않는다.
- }
- var pAuth = !checkAuth("P"); // 출력권한(보고서 출력, 엑셀 내려받기 등)
- // btn_excelsave.disabled = pAuth;
- btn_print.disabled = pAuth;
- var xAuth = !checkAuth("X"); // 처리권한(입력, 수정, 삭제 등)
- // btn_confirm.disabled = xAuth;
- // btn_cancel.disabled = xAuth;
- }
-
- function fChangeImage(imgsrc) {
- img_hidden.src = imgsrc; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
- var data = img_hidden.getbase64data(); // base64 encoding 문자열을 가져온다.
-
- model.setValue("/root/send/imgdata/photimg",data,true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
- setImageRefInstance("/root/main/imgdata/photimg"); //base64 encoding 문자열을 이미지로 변환하여 보여준다,
- model.refreshpart("/root/send/imgdata/photimg");
- }
-
- // 조회
- function fGetPatClamDocuPrntList() {
- // 청구년월 입력값 체크
- var clamym = model.getValue("/root/send/clamym");
- if (clamym == "" || clamym.length != 6) {
- messageBox("청구년월은 필수", "E008"); /// 청구년월은 필수입니다.
- return;
- }
- // 청구차수 입력값 체크
- var clamdg = model.getValue("/root/send/clamdg");
- if (clamdg == "") {
- messageBox("청구차수는 필수", "E008"); /// 청구차수는 필수입니다.
- return;
- }
-
- var insukind = model.getValue("/root/send/insukind");
- var docuseqno1 = model.getValue("/root/send/docuseqno1");
- if (insukind != "31") {
- if (docuseqno1 == "") {
- messageBox("자보 이외에 등록번호는 필수", "E008"); /// 자보 이외에는 등록번호는 필수입니다.
- return;
- }
- }
-
-
- // 명세서 시작 종료 일련번호 값 체크
- var srcflag = model.getValue("/root/send/srcflag");
- var docuseqno1 = model.getValue("/root/send/docuseqno1");
- var docuseqno2 = model.getValue("/root/send/docuseqno2");
- if (srcflag == "1") { // 명번호
-
- var tmp_len1 = ipt_docuseqno1.value;
- var tmp_len2 = ipt_docuseqno2.value;
-
- // 입력시 앞대가리에 0을 안 붙여도 조회시 5자리로 맞춰서 조회하게 해줘요. 2009.04.17
- if ( tmp_len1.length > 0 && tmp_len1.length < 5 ) { // 명일련은 5자리를 맞춰줘야 해요
- while ( tmp_len1.length != 5 ) {
- tmp_len1 = "0" + tmp_len1;
- }
- ipt_docuseqno1.value = tmp_len1;
- }
-
- if ( tmp_len2.length > 0 && tmp_len2.length < 5 ) {
- while ( tmp_len2.length != 5 ) {
- tmp_len2 = "0" + tmp_len2;
- }
- ipt_docuseqno2.value = tmp_len2;
- }
-
- // 2009.04.17 완전 막음
- // var length1 = docuseqno1.length;
- // // 임시로 막음. 현재 DB에 명세서 일련번호는 5자리가 아니므로
- // if (length1 > 0 && length1 < 5) {
- // messageBox("명세서 [시작]일련번호는 5자리", "E008"); /// 명세서 일련번호는 5자리입니다.
- // return;
- // }
- // var length2 = docuseqno2.length;
- // if (length2 > 0 && length2 < 5) {
- // messageBox("명세서 [종료]일련번호는 5자리", "E008"); /// 명세서 일련번호는 5자리입니다.
- // return;
- // }
- }
-
- // 500건씩 잘라서 조회하기 위한 값
- var minrnum = 1;
- var maxrnum = 500;
-
- model.setValue("/root/send/minrnum",minrnum);
- model.setValue("/root/send/maxrnum",maxrnum);
-
- submit("TRPID20701");
-
- var clbsList = instance1.selectSingleNode("/root/main/list1/clbs");
- if (clbsList == null) {
- model.makeValue("/root/hidden/clbs/totcnt", 0); // 총건수
- } else {
- model.makeValue("/root/hidden/clbs/totcnt", clbsList.length); // 총건수
- }
-
- model.refresh();
- }
-
- // 자보 리스트 엑셀 출력
- function fGetPatClamAutoXlsList() {
- // 청구년월 입력값 체크
- var clamym = model.getValue("/root/send/clamym");
- if (clamym == "" || clamym.length != 6) {
- messageBox("청구년월은 필수", "E008"); /// 청구년월은 필수입니다.
- return;
- }
- // 청구차수 입력값 체크
- var clamdg = model.getValue("/root/send/clamdg");
- if (clamdg == "") {
- messageBox("청구차수는 필수", "E008"); /// 청구차수는 필수입니다.
- return;
- }
-
- var insukind = model.getValue("/root/send/insukind");
-
- // 자보일 경우에만 실행 가능하게
- if ( insukind == "31" ) {
- submit("TRPID20707");
- } else {
- messageBox("자보가 선택되지 ", "E007"); /// 자보가 선택되지 않았습니다.
- return;
- }
-
- // 조회된 건수가 있으면 엑셀 저장 다얄로그 소환
- if (grd_autoxls.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "자보리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- grd_autoxls.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- }
- }
-
- // 대량 출력시 버퍼 오류때문에 딜레이를 준다
- // 최초 sleep 함수를 만들어서 이용하려 했으나 출력하는 동안 과부하가 걸리고 익스플로어 제어가 불가능해서 제외
- // function sleep(time) {
- // if (time < 1) return;
- // var now = new Date();
- // var stop = now.getTime() + time;
- // while(true) {
- // now = new Date();
- // if (now.getTime() > stop) return;
- // }
- // }
-
-
- // 지연출력 함수 2009.02.13 By Kei
- // 한꺼번에 출력을 하면 프린터버퍼 문제로 일부 문서가 중복되거나 빠지는 경우가 발생한다.
- // 그래서 setInterval() 을 이용하여 출력물 간에 지연시간을 준다.
- // for() 문을 이용하면 setInterval() 과 관계없이 연속으로 호출이 된다. 시간지연이 안 됨.
- // 해서 for() 문으로 체크하는 것이 아니라 체크된 행을 배열에 저장해 두고
- // 글로벌 변수 glb_i를 이용해서 함수가 호출 될 때마다 1씩 증가하게 만들었다.
- function delayPrint() {
- var i = chkArr[glb_i]; // 배열에 들어 있는 체크된 행번호를 끄집어 낸다.
-
- chksel = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chksel")); // 급여출력여부
- chkpay = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkpay")); // 비급여출력여부
- chkall = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkall")); // 급여+비급여출력여부
-
- var ioflag = model.getValue("/root/main/list1/clbs["+i+"]/ioflag"); // 내원형태
- var sumtypecd = model.getValue("/root/main/list1/clbs["+i+"]/sumtypecd"); // 진료분야
- var insukind = model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"); // 보험유형
-
- // 급여명세서 조회를 위한 사후심사 key 값을 데이터로 만든다.
- model.setValue("/root/send/item1/clamym", model.getValue("/root/main/list1/clbs["+i+"]/clamym"));
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs["+i+"]/clamdg"));
- model.setValue("/root/send/item1/pid", model.getValue("/root/main/list1/clbs["+i+"]/pid"));
- model.setValue("/root/send/item1/pidsn", model.getValue("/root/main/list1/clbs["+i+"]/pidsn"));
- model.setValue("/root/send/item1/insukind", model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"));
- model.setValue("/root/send/item1/chkflag", "pay");
-
- // 2-1. 급여 출력
- if (chksel == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView3(); // 자보 (의과입원)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView4(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
-
- // 2-2. 비급여 출력
- model.setValue("/root/send/item1/chkflag", "nopay");
- if (chkpay == "true") {
-
- model.setValue("/root/send/item1/pagenum", "37");
- fPrintView5(); // 비급여
- }
-
- // 2-3. 급여+비급여 출력
- model.setValue("/root/send/item1/chkflag", "all");
- if (chkall == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView3(); // 자보 (의과입원)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView4(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
-
- // 그리드 마지막행까지 체크가 끝나면 초기화
- if ( glb_i == chkcnt - 1) {
- if(model.getValue("/root/previewyn") == "true") {
- window.clearInterval(timerID); // 타이머 초기화
- }
- messageBox("명세서 출력(" + chkcnt + "건)이 ","I002");
- glb_i = 0;
- chkcnt = 0;
- chkArr = new Array(); // 배열초기화
- return; // 반드시 여기서 종료를 해야 한다.
- }
-
- // 호출될 때마다 i 값을 1씩 증가시켜서 다음 행을 선택하게 한다
- glb_i++;
-
- }
-
-
- // 출력
- function fPrintView() {
-
- // 1. 출력여부 판단 (선택된 row 가 있어야 출력 가능)
- var rows = grd_clbsmast.rows;
- var chksel = "";
- var chkpay = "";
- var chkall = "";
- var isprnt = "";
- glb_i = 0; // 20100218 초기화추가
- chkcnt = 0; // 20100218 초기화추가
- chkArr = new Array(); // 20100218 배열초기화
- // 출력체크 여부와 체크된 행을 저장해 둔다
- for (i=1; i<rows; i++) {
- chksel = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chksel")); // 급여출력여부
- chkpay = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkpay")); // 비급여출력여부
- chkall = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkall")); // 급여+비급여출력여부
- if (chksel == "true" || chkpay == "true" || chkall == "true") {
- isprnt = "true";
- chkArr[chkcnt] = i;
- chkcnt++;
- // i = rows; 이건 뭐냐. 이해 안되서 주석처리
- }
- }
-
- // 2. 출력
- if (isprnt == "true") {
- chksel = "";
- chkpay = "";
- chkall = ""; // 20100228 추가
- // 지연출력을 위해 setInterval() 이용, 2초 간격으로 출력함수(delayPrint()) 호출함
- if(model.getValue("/root/previewyn") == "true") {
- timerID = window.setInterval("delayPrint()",2000);
- } else {
- // 기존 스크립트 2009.02.13 변경
- for (var i=1; i<rows; i++) {
-
- chksel = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chksel")); // 급여출력여부
- chkpay = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkpay")); // 비급여출력여부
- chkall = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkall")); // 급여+비급여출력여부
-
- var ioflag = model.getValue("/root/main/list1/clbs["+i+"]/ioflag"); // 내원형태
- var sumtypecd = model.getValue("/root/main/list1/clbs["+i+"]/sumtypecd"); // 진료분야
- var insukind = model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"); // 보험유형
-
- // 급여명세서 조회를 위한 사후심사 key 값을 데이터로 만든다.
- model.setValue("/root/send/item1/clamym", model.getValue("/root/main/list1/clbs["+i+"]/clamym"));
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs["+i+"]/clamdg"));
- model.setValue("/root/send/item1/pid", model.getValue("/root/main/list1/clbs["+i+"]/pid"));
- model.setValue("/root/send/item1/pidsn", model.getValue("/root/main/list1/clbs["+i+"]/pidsn"));
- model.setValue("/root/send/item1/insukind", model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"));
- model.setValue("/root/send/item1/chkflag", "pay");
- // 2-1. 급여 출력
- if (chksel == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView3(); // 자보 (의과입원)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView4(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
-
- // 2-2. 비급여 출력
- model.setValue("/root/send/item1/chkflag", "nopay");
- if (chkpay == "true") {
-
- model.setValue("/root/send/item1/pagenum", "37");
- fPrintView5(); // 비급여
- }
-
- // 2-3. 급여+비급여 출력
- model.setValue("/root/send/item1/chkflag", "all");
- if (chkall == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView3(); // 자보 (의과입원)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPrintView4(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "32");
- fPrintView2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
- }
- }
- } else {
- messageBox("출력할 환자 청구명세서가 선택되지", "E007");
- }
- }
-
- // 의과(치과)입원 환자청구명세서 출력
- function fPrintView1() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.removenode("/root/hidden/list6");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
- model.makeNode("/root/hidden/list6");
-
- // 1. 의과(치과)입원_메인 데이터 조회
- // 2. 의과(치과)입원_상병 목록 조회
- // 3. 의과(치과)입원_금액 조회
- // 4. 의과(치과)입원_처방 조회
- submit("TRPID20702");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
- model.copyNode("/root/send/report1/list6", "/root/hidden/list6");
- // option - flase : 미리보기 , ture : 미리보기 없이 출력
- //exeReportPreview("RPPID20701", "XMLSTR", "","", "false","","","","","false"); // 미리보기
- //exeReportPreview("RPPID20701", "XMLSTR", "","", "true","","","","","true"); // 미리보기없이 출력
- exeReportPreview("RPPID20701", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
- // 6. 보고서(나머지)로 데이터 보내기(뒷장의 존재유무를 sorting1 값으로 판단한다. 이전에는 edicd로 했는데 소계에서는 빈값이어서 변경함)
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- exeReportPreview("RPPID20706", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
- }
- }
-
- // 의과(치과)외래 환자청구명세서 출력
- function fPrintView2() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.removenode("/root/hidden/list6");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
- model.makeNode("/root/hidden/list6");
-
- // 1. 의과(치과)외래_메인 데이터 조회
- // 2. 의과(치과)외래_상병 목록 조회
- // 3. 의과(치과)외래원_금액 조회
- // 4. 의과(치과)외래_처방 조회
- submit("TRPID20703");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
- exeReportPreview("RPPID20700", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- exeReportPreview("RPPID20707", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
- }
- }
-
- // 자보입원 환자청구명세서 출력
- function fPrintView3() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 자보입원_메인 데이터 조회
- // 2. 자보입원_상병 목록 조회
- // 3. 자보입원_금액 조회
- // 4. 자보입원_처방 조회
- submit("TRPID20704");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
-
- // 20100228 자보 직인출력 추가
- if ( model.getValue("/root/send/imgdata/imgprtyn") == "Y" ) {
- model.makeValue("/root/send/report1/list1/main/main_photimg",model.getValue("/root/send/imgdata/photimg"),true);
- }
-
- // option - flase : 미리보기 , ture : 미리보기 없이 출력
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "false","","","","","false"); // 미리보기
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "true","","","","","true"); // 미리보기없이 출력
- // exeReportPreview("RPPID20705", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
-
- // 바로출력할때 미리보기 창이 껌뻑껌뻑거리는 걸 없앤다.
- // Step1. xforms-ready에서 미리 멕꾸레폿뷰를 한다.
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden1");
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden2");
- // Step2. 숨겨진 그룹을 생성한다. 구석에 숨겨놓고 요따가 미리보기 뷰를 얹는거다.
- // grp_rpt_hidden1, grp_rpt_hidden2
- // Step3. 출력호출 할때 grp_rpt_hidden1,2 를 지정해서 부른다.
- // 그룹을 두개로 나눈 이유는 한번에 호출을 두번하니까 첫번째 장이 날아가 버린다.
- // 그래서 첫번째 애랑 두번째 애를 다른 그룹에다가 줘 버렸다.
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RPPID20705", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
- } else {
- // 바로출력
- exeReportPreview("RPPID20705", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","","","","grp_rpt_hidden1");
- }
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- // exeReportPreview("RPPID20708", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
-
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RPPID20708", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
- } else {
- // 바로출력
- exeReportPreview("RPPID20708", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","","","","grp_rpt_hidden2");
- }
- }
- }
- function fPayment1() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 자보입원_메인 데이터 조회
- // 2. 자보입원_상병 목록 조회
- // 3. 자보입원_금액 조회
- // 4. 자보입원_처방 조회
- if(submit("TRPID20704")) {
- var diagcd = "";
- var diagnm = "";
- for(i = 0; i <= getNodesetCount("/root/hidden/list2/diag"); i++){
- diagcd += model.getValue("/root/hidden/list2/diag["+i+"]/diag_diagcd") +"\n";
- diagnm += model.getValue("/root/hidden/list2/diag["+i+"]/diag_diagnm") + "\n";
- }
- model.setValue("/root/etc/diagcd" , diagcd);
- model.setValue("/root/etc/diagnm" , diagnm);
- }
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
-
- // 20100228 자보 직인출력 추가
- if ( model.getValue("/root/send/imgdata/imgprtyn") == "Y" ) {
- model.makeValue("/root/send/report1/list1/main/main_photimg",model.getValue("/root/send/imgdata/photimg"),true);
- }
-
- // option - flase : 미리보기 , ture : 미리보기 없이 출력
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "false","","","","","false"); // 미리보기
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "true","","","","","true"); // 미리보기없이 출력
- // exeReportPreview("RPPID20705", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
-
- // 바로출력할때 미리보기 창이 껌뻑껌뻑거리는 걸 없앤다.
- // Step1. xforms-ready에서 미리 멕꾸레폿뷰를 한다.
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden1");
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden2");
- // Step2. 숨겨진 그룹을 생성한다. 구석에 숨겨놓고 요따가 미리보기 뷰를 얹는거다.
- // grp_rpt_hidden1, grp_rpt_hidden2
- // Step3. 출력호출 할때 grp_rpt_hidden1,2 를 지정해서 부른다.
- // 그룹을 두개로 나눈 이유는 한번에 호출을 두번하니까 첫번째 장이 날아가 버린다.
- // 그래서 첫번째 애랑 두번째 애를 다른 그룹에다가 줘 버렸다.
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- }
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- // exeReportPreview("RPPID20708", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
-
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- }
- }
- }
- function fPayment2() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 자보입원_메인 데이터 조회
- // 2. 자보입원_상병 목록 조회
- // 3. 자보입원_금액 조회
- // 4. 자보입원_처방 조회
- submit("TRPID20705");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
-
- // 20100228 자보 직인출력 추가
- if ( model.getValue("/root/send/imgdata/imgprtyn") == "Y" ) {
- model.makeValue("/root/send/report1/list1/main/main_photimg",model.getValue("/root/send/imgdata/photimg"),true);
- }
-
- // option - flase : 미리보기 , ture : 미리보기 없이 출력
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "false","","","","","false"); // 미리보기
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "true","","","","","true"); // 미리보기없이 출력
- // exeReportPreview("RPPID20705", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
-
- // 바로출력할때 미리보기 창이 껌뻑껌뻑거리는 걸 없앤다.
- // Step1. xforms-ready에서 미리 멕꾸레폿뷰를 한다.
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden1");
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden2");
- // Step2. 숨겨진 그룹을 생성한다. 구석에 숨겨놓고 요따가 미리보기 뷰를 얹는거다.
- // grp_rpt_hidden1, grp_rpt_hidden2
- // Step3. 출력호출 할때 grp_rpt_hidden1,2 를 지정해서 부른다.
- // 그룹을 두개로 나눈 이유는 한번에 호출을 두번하니까 첫번째 장이 날아가 버린다.
- // 그래서 첫번째 애랑 두번째 애를 다른 그룹에다가 줘 버렸다.
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- }
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- // exeReportPreview("RPPID20708", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
-
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- }
- }
- }
- function fPayment3() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 비급여_메인 데이터 조회
- // 2. 비급여_상병 목록 조회
- // 3. 비급여_금액 조회
- // 4. 비급여_처방 조회
- submit("TRPID20706");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- exeReportPreview("RFPID20800", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- }
- }
- function fAccidPayment1() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 자보입원_메인 데이터 조회
- // 2. 자보입원_상병 목록 조회
- // 3. 자보입원_금액 조회
- // 4. 자보입원_처방 조회
- if(submit("TRPID20704")) {
- var diagcd = "";
- var diagnm = "";
- for(i = 0; i <= getNodesetCount("/root/hidden/list2/diag"); i++){
- diagcd += model.getValue("/root/hidden/list2/diag["+i+"]/diag_diagcd") +"\n";
- diagnm += model.getValue("/root/hidden/list2/diag["+i+"]/diag_diagnm") + "\n";
- }
- model.setValue("/root/etc/diagcd" , diagcd);
- model.setValue("/root/etc/diagnm" , diagnm);
- }
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
-
- // 20100228 자보 직인출력 추가
- if ( model.getValue("/root/send/imgdata/imgprtyn") == "Y" ) {
- model.makeValue("/root/send/report1/list1/main/main_photimg",model.getValue("/root/send/imgdata/photimg"),true);
- }
-
- // option - flase : 미리보기 , ture : 미리보기 없이 출력
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "false","","","","","false"); // 미리보기
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "true","","","","","true"); // 미리보기없이 출력
- // exeReportPreview("RPPID20705", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
-
- // 바로출력할때 미리보기 창이 껌뻑껌뻑거리는 걸 없앤다.
- // Step1. xforms-ready에서 미리 멕꾸레폿뷰를 한다.
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden1");
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden2");
- // Step2. 숨겨진 그룹을 생성한다. 구석에 숨겨놓고 요따가 미리보기 뷰를 얹는거다.
- // grp_rpt_hidden1, grp_rpt_hidden2
- // Step3. 출력호출 할때 grp_rpt_hidden1,2 를 지정해서 부른다.
- // 그룹을 두개로 나눈 이유는 한번에 호출을 두번하니까 첫번째 장이 날아가 버린다.
- // 그래서 첫번째 애랑 두번째 애를 다른 그룹에다가 줘 버렸다.
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20900", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- //exeReportPreview("RFPID20900", "XMLSTR", "","", "true","","","","","true");
- }
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- // exeReportPreview("RPPID20708", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
-
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20900", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- exeReportPreview("RFPID20900", "XMLSTR", "","", "true","","","","","true");
- }
- }
- }
- function fAccidPayment2() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 자보입원_메인 데이터 조회
- // 2. 자보입원_상병 목록 조회
- // 3. 자보입원_금액 조회
- // 4. 자보입원_처방 조회
- submit("TRPID20705");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
-
- // 20100228 자보 직인출력 추가
- if ( model.getValue("/root/send/imgdata/imgprtyn") == "Y" ) {
- model.makeValue("/root/send/report1/list1/main/main_photimg",model.getValue("/root/send/imgdata/photimg"),true);
- }
-
- // option - flase : 미리보기 , ture : 미리보기 없이 출력
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "false","","","","","false"); // 미리보기
- //exeReportPreview("RPPID20705", "XMLSTR", "","", "true","","","","","true"); // 미리보기없이 출력
- // exeReportPreview("RPPID20705", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
-
- // 바로출력할때 미리보기 창이 껌뻑껌뻑거리는 걸 없앤다.
- // Step1. xforms-ready에서 미리 멕꾸레폿뷰를 한다.
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden1");
- // makeReportPreview(0,50,1194,600, "grp_rpt_hidden2");
- // Step2. 숨겨진 그룹을 생성한다. 구석에 숨겨놓고 요따가 미리보기 뷰를 얹는거다.
- // grp_rpt_hidden1, grp_rpt_hidden2
- // Step3. 출력호출 할때 grp_rpt_hidden1,2 를 지정해서 부른다.
- // 그룹을 두개로 나눈 이유는 한번에 호출을 두번하니까 첫번째 장이 날아가 버린다.
- // 그래서 첫번째 애랑 두번째 애를 다른 그룹에다가 줘 버렸다.
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20900", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- exeReportPreview("RFPID20900", "XMLSTR", "","", "true","","","","","true");
- }
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- // exeReportPreview("RPPID20708", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
-
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RFPID20900", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- } else {
- // 바로출력
- exeReportPreview("RFPID20900", "XMLSTR", "","", "true","","","","","true");
- }
- }
- }
- function fAccidPayment3() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 비급여_메인 데이터 조회
- // 2. 비급여_상병 목록 조회
- // 3. 비급여_금액 조회
- // 4. 비급여_처방 조회
- submit("TRPID20706");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
- exeReportPreview("RFPID20900", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- exeReportPreview("RFPID20900", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- }
- }
- // 자보외래 환자청구명세서 출력
- function fPrintView4() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 자보외래_메인 데이터 조회
- // 2. 자보외래_상병 목록 조회
- // 3. 자보외래_금액 조회
- // 4. 자보외래_처방 조회
- submit("TRPID20705");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
- // exeReportPreview("RPPID20704", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
- // 20100228 자보 직인출력 추가
- if ( model.getValue("/root/send/imgdata/imgprtyn") == "Y" ) {
- model.makeValue("/root/send/report1/list1/main/main_photimg",model.getValue("/root/send/imgdata/photimg"),true);
- }
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RPPID20704", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
- } else {
- // 바로출력
- exeReportPreview("RPPID20704", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","","","","grp_rpt_hidden1");
- }
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- // exeReportPreview("RPPID20709", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
-
- if (model.getValue("/root/previewyn") == "false") {
- // 미리보기
- exeReportPreview("RPPID20709", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","",model.getValue("/root/previewyn"));
- } else {
- // 바로출력
- exeReportPreview("RPPID20709", "XMLSTR", "","", model.getValue("/root/previewyn") ,"","","","","","","grp_rpt_hidden2");
- }
- }
- }
- // 비급여 환자청구명세서 출력
- function fPrintView5() {
- // 노드 초기화
- model.resetInstanceNode("/root/send/report1");
- model.resetInstanceNode("/root/send/report2");
- model.removenode("/root/hidden/list1");
- model.removenode("/root/hidden/list2");
- model.removenode("/root/hidden/list3");
- model.removenode("/root/hidden/list4");
- model.removenode("/root/hidden/list5");
- model.makeNode("/root/hidden/list1");
- model.makeNode("/root/hidden/list2");
- model.makeNode("/root/hidden/list3");
- model.makeNode("/root/hidden/list4");
- model.makeNode("/root/hidden/list5");
-
- // 1. 비급여_메인 데이터 조회
- // 2. 비급여_상병 목록 조회
- // 3. 비급여_금액 조회
- // 4. 비급여_처방 조회
- submit("TRPID20706");
-
- // 5. 보고서(첫장)로 데이터 보내기
- model.copyNode("/root/send/report1/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report1/list2", "/root/hidden/list2");
- model.copyNode("/root/send/report1/list3", "/root/hidden/list3");
- model.copyNode("/root/send/report1/list4", "/root/hidden/list4");
- exeReportPreview("RPPID20710", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
- // 6. 보고서(나머지)로 데이터 보내기
- var sorting1 = model.getValue("/root/hidden/list5/prcp_sub/prcp_sub_sorting1");
- if (sorting1 != "") {
- model.copyNode("/root/send/report2/list1", "/root/hidden/list1");
- model.copyNode("/root/send/report2/list5", "/root/hidden/list5");
- exeReportPreview("RPPID20711", "XMLSTR", "","", model.getValue("/root/previewyn"),"","","","",model.getValue("/root/previewyn"));
- }
- }
-
- // 다음페이지 조회
- function fNextpage()
- {
- if (model.getValue("/root/main/list1/clbs[1]/pid") != "")
- {
- model.removeNodeset("/root/main/list1/clbs");
- var minrnum = model.getValue("/root/send/minrnum");
- var maxrnum = model.getValue("/root/send/maxrnum");
-
- minrnum = parseInt(minrnum) + 500;
- maxrnum = parseInt(maxrnum) + 500;
-
- model.setValue("/root/send/minrnum",minrnum);
- model.setValue("/root/send/maxrnum",maxrnum);
-
- submit("TRPID20701");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1170" pageheight="760" guideline="1,1145;2,727;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_rpt_hidden1" visibility="hidden" style="left:155px; top:85px; width:30px; height:15px; "/>
- <group id="grp_rpt_hidden2" visibility="hidden" style="left:155px; top:85px; width:30px; height:15px; "/>
- <group id="group1" style="left:0px; top:0px; width:1145px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:13px; ">환자 청구명세서 출력</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1145px; height:714px; ">
- <datagrid id="grd_autoxls" nodeset="/root/main2/list1/clbs" visibility="hidden" caption="명세서일련번호^조합^조합명^환자명^등록번호^주민등록번호^사고접수번호^청구시작일자^청구종료일자^청구과코드^청구과명^청구액(선택진료비)^선택진료비" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:225px; top:60px; width:705px; height:80px; ">
- <col ref="docuseqno"/>
- <col ref="insuno"/>
- <col ref="insucdnm"/>
- <col ref="patnm"/>
- <col ref="pid"/>
- <col ref="patrrgstno"/>
- <col ref="acdacptno"/>
- <col ref="ordfromdd" format="yyyy-mm-dd"/>
- <col ref="ordtodd" format="yyyy-mm-dd"/>
- <col ref="clamdeptcd"/>
- <col ref="clamdeptnm"/>
- <col ref="edimedcaretotamt" format="#,###"/>
- <col ref="specamt" format="#,###"/>
- </datagrid>
- <group id="group2" style="left:0px; top:10px; width:1145px; height:59px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1145px; height:59px; "/>
- <caption id="caption3" class="search_name" style="left:275px; top:9px; width:86px; height:17px; ">내원형태 :</caption>
- <line id="line13" style="x1:1108px; y1:31px; x2:1108px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="11" style="left:1083px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회 클릭
- fGetPatClamDocuPrntList();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:10px; top:33px; width:86px; height:17px; ">청구구분 :</caption>
- <caption id="caption7" class="search_name" style="left:275px; top:33px; width:86px; height:17px; ">조회조건 :</caption>
- <select1 id="cmb_ioflag" ref="/root/send/ioflag" class="combo_search" navindex="3" appearance="minimal" style="left:364px; top:8px; width:76px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_clamflagcd" ref="/root/send/clamflagcd" class="combo_search" navindex="7" appearance="minimal" style="left:99px; top:32px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:675px; top:9px; width:86px; height:17px; ">보험유형 :</caption>
- <select1 id="cmb_sumtypecd" ref="/root/send/sumtypecd" class="combo_search" navindex="4" appearance="minimal" style="left:553px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0458list/P0458">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_insukind" ref="/root/send/insukind" class="combo_search" navindex="5" appearance="minimal" style="left:764px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var insukind = model.getValue("/root/send/insukind");
- if (insukind) {
- cmb_suppkind.disabled = false;
- cmb_suppkind.choices.itemset.attribute("nodeset") = "root/init/suppkind/suppkindlist[up='" + insukind + "' or up='-' ]";
- } else {
- cmb_suppkind.disabled = true;
- model.resetInstanceNode("/root/send/suppkind");
- cmb_suppkind.choices.itemset.attribute("nodeset") = "/root/init/P0010list/P0010";
- }
-
- if (insukind == "31") {
- cmb_insunm.attribute("visibility") = "visible";
- cp_insucd.attribute("visibility") = "visible";
- cp_delyn.attribute("left") = "760px";
- bool_delyn.attribute("left") = "840px";
- cmb_insunm.select(0);
- } else {
- cmb_insunm.attribute("visibility") = "hidden";
- cp_insucd.attribute("visibility") = "hidden";
- cp_delyn.attribute("left") = "880px";
- bool_delyn.attribute("left") = "960px";
- model.setValue("/root/send/insucd","");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:464px; top:9px; width:86px; height:17px; ">진료분야 :</caption>
- <select1 id="cmb_srcflag" ref="/root/send/srcflag" class="combo_search" navindex="8" appearance="minimal" style="left:364px; top:32px; width:76px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>0</value>
- </item>
- <item>
- <label>명번호</label>
- <value>1</value>
- </item>
- <item>
- <label>환자번호</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var srcflag = model.getValue("/root/send/srcflag");
- if (srcflag == "0") {
- ipt_docuseqno1.value = "";
- ipt_docuseqno2.value = "";
- ipt_docuseqno1.disabled = true;
- ipt_docuseqno2.disabled = true;
- } else if (srcflag == "1") {
- ipt_docuseqno1.disabled = false;
- ipt_docuseqno2.disabled = false;
- } else if (srcflag == "2") {
- ipt_docuseqno1.disabled = false;
- ipt_docuseqno2.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption13" class="search_name" style="left:464px; top:33px; width:86px; height:17px; ">시작번호 :</caption>
- <input id="ipt_docuseqno1" ref="/root/send/docuseqno1" class="input_search" disabled="true" navindex="9" format="9999999999" style="left:553px; top:32px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- setInputNodeCurText();
- if (event.keyCode == '13') {
- if (cmb_srcflag.value == "2") {
- btn_search.dispatch("DOMActivate");
- } else if (cmb_srcflag.value == "1") {
- model.setFocus("ipt_docuseqno2");
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_docuseqno2" ref="/root/send/docuseqno2" class="input_search" disabled="true" navindex="10" format="9999999999" style="left:659px; top:32px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- setInputNodeCurText();
- if (event.keyCode == '13') {
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_suppkind" ref="/root/send/suppkind" class="combo_search" navindex="6" appearance="minimal" style="left:969px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:880px; top:9px; width:86px; height:17px; ">보조유형 :</caption>
- <caption id="cp_delyn" class="search_name" style="left:760px; top:33px; width:86px; height:17px; ">삭제포함</caption>
- <bool id="bool_delyn" ref="/root/send/judgendyn" style="left:840px; top:31px; width:30px; height:20px; "/>
- <select1 id="cmb_insunm" ref="/root/send/insucd" class="combo_search" navindex="6" visibility="hidden" appearance="minimal" style="left:969px; top:32px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/insucdlist/list">
- <label ref="insucdnm"/>
- <value ref="insucd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" style="left:646px; top:35px; width:15px; height:20px; ">~</caption>
- <caption id="cp_insucd" class="search_name" visibility="hidden" style="left:880px; top:33px; width:88px; height:17px; ">손보사 :</caption>
- </group>
- <group id="group4" style="left:0px; top:100px; width:1145px; height:555px; ">
- <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="급^비^All^명세서
일련번호^청구년월^청구
차수^내원
형태^청구구분^진료과^진료분야^등록번호^pidsn^환자명^성
별^나
이^보험
유형^보조
유형^진료의^장
애^조합기호^조합기호명칭^총진료비^주민번호^청구번호^접수번호^심사차수^사
망^분할
청구^judgendyn^심사완료여부" colsep="^" colwidth="25, 25, 25, 56, 55, 31, 41, 60, 70, 89, 55, 40, 45, 25, 25, 35, 35, 45, 25, 80, 100, 74, 90, 70, 55, 55, 25, 35, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" frozencols="5" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1145px; height:549px; ">
- <col ref="chksel" type="checkbox"/>
- <col ref="chkpay" type="checkbox"/>
- <col ref="chkall" type="checkbox"/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col ref="clamym" format="yyyy/mm"/>
- <col ref="clamdg" style="text-align:center; "/>
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="clamflagcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptcd"/>
- <col disabled="true" ref="sumtypecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0458list/P0458">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pid"/>
- <col ref="pidsn" visibility="hidden"/>
- <col ref="patnm"/>
- <col ref="gender" style="text-align:center; "/>
- <col ref="patage" style="text-align:center; "/>
- <col ref="insukindcd" style="text-align:center; "/>
- <col ref="suppkindcd" style="text-align:center; "/>
- <col ref="orddrnm"/>
- <col ref="prockindflag"/>
- <col ref="insuno"/>
- <col ref="insucdnm"/>
- <col ref="ediinsuclamamt" format="#,###" style="text-align:right; "/>
- <col ref="patrrgstno" format="999999-9999999"/>
- <col ref="clamno"/>
- <col ref="acptno"/>
- <col ref="judgdg"/>
- <col ref="dethyn"/>
- <col ref="divclam"/>
- <col ref="judgendyn" visibility="hidden"/>
- <col ref="judgendynnm"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 정렬 후 요걸 해줘야 현재 보이는 그리드와 인스턴스가 매치가 된다.
- grd_clbsmast.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- var row = grd_clbsmast.row;
- model.setValue("/root/send/clamym" , model.getValue("/root/main/list1/clbs["+row+"]/clamym"));
- model.setValue("/root/send/clamdg" , model.getValue("/root/main/list1/clbs["+row+"]/clamdg"));
- model.setValue("/root/send/ioflag" , model.getValue("/root/main/list1/clbs["+row+"]/ioflag"));
- model.setValue("/root/send/pid" , model.getValue("/root/main/list1/clbs["+row+"]/pid"));
- model.setValue("/root/send/pidsn" , model.getValue("/root/main/list1/clbs["+row+"]/pidsn"));
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_instimg" visibility="hidden" style="left:25px; top:65px; width:170px; height:170px; border-color:#333333; border-style:solid; ">
- <img id="img_hidden" visibility="hidden" style="left:15px; top:3px; width:117px; height:115px; "/>
- <img id="img_view" ref="/root/send/imgdata/photimg" style="left:26px; top:9px; width:117px; height:115px; background-stretch:stretch; border-color:#333333; border-style:solid; "/>
- <button id="btn_fileupload" class="btn2_letter9" style="left:26px; top:134px; width:119px; height:19px; text-align:center; ">
- <caption>직 인 변 경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = openImageFileDialog(1048576); // image 파일이 너무 크면 submit 시간이 매우 오래(5분이상) 걸리므로 가급적 사이즈를 작게 제한한다.
- if (file == "") {
- return;
- }
-
- fChangeImage(file);
- ]]>
- </script>
- </button>
- </group>
- </group>
- <button id="button4" class="btn2_letter4" style="left:130px; top:73px; width:64px; height:19px; ">
- <caption>직인보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grp_instimg.visible == false ) {
- grp_instimg.visible = true;
- } else {
- grp_instimg.visible = false;
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:700px; width:1145px; height:27px; ">
- <button id="button10" class="btn4_letter3" style="left:1077px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 초기화
- fInitSrchData();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/previewyn","true"); // 미리보기 없음
- fPrintView();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:700px; y2:0px; "/>
- <button id="button1" class="btn6_letter4" style="left:65px; top:5px; width:80px; height:22px; ">
- <caption>미리보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/previewyn","false"); // 미리보기 있음
- fPrintView();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn6_letter5" style="left:155px; top:5px; width:80px; height:22px; ">
- <caption>자보리스트</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 데이터를 가꼬와서 감챠논 그리드에 뿌리고 그 데이터를 엑셀로 저장할 수 있게 한다.
- fGetPatClamAutoXlsList();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter5" style="left:980px; top:5px; width:92px; height:22px; ">
- <caption>다음페이지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 500건으로 조회 건수 제한
- if ( grd_clbsmast.rows == 501 )
- {
- fNextpage();
- }
- else
- {
- messageBox("마지막 페이지 ","E008");
- }
- ]]>
- </script>
- </button>
- <select id="chk_imgprtyn" ref="/root/send/imgdata/imgprtyn" overflow="visible" appearance="full" style="left:275px; top:7px; width:105px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>직인출력(자보)</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/send/imgdata/imgprtyn") == "Y"
- && model.getValue("/root/send/imgdata/photimg") == ""
- ) {
- model.setValue("/root/send/imgdata/imgprtyn","");
- model.refreshpart("/root/send/imgdata/imgprtyn");
- messageBox("저장된 직인이미지가 없어 선택할수","I004");
- }
- ]]>
- </script>
- </select>
- <button id="button5" class="btn3_letter6" style="left:390px; top:5px; width:104px; height:22px; ">
- <caption>진료비내역서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_clbsmast.rows;
- var chksel = "";
- var chkpay = "";
- var chkall = "";
- var isprnt = "";
- glb_i = 0; // 20100218 초기화추가
- chkcnt = 0; // 20100218 초기화추가
- chkArr = new Array(); // 20100218 배열초기화
- // 출력체크 여부와 체크된 행을 저장해 둔다
- for (i=1; i<rows; i++) {
- chksel = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chksel")); // 급여출력여부
- chkpay = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkpay")); // 비급여출력여부
- chkall = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkall")); // 급여+비급여출력여부
- if (chksel == "true" || chkpay == "true" || chkall == "true") {
- isprnt = "true";
- chkArr[chkcnt] = i;
- chkcnt++;
- // i = rows; 이건 뭐냐. 이해 안되서 주석처리
- }
- }
-
- // 2. 출력
- if (isprnt == "true") {
- chksel = "";
- chkpay = "";
- chkall = ""; // 20100228 추가
- // 지연출력을 위해 setInterval() 이용, 2초 간격으로 출력함수(delayPrint()) 호출함
- if(model.getValue("/root/previewyn") == "true") {
- timerID = window.setInterval("delayPrint()",2000);
- } else {
- // 기존 스크립트 2009.02.13 변경
- for (var i=1; i<rows; i++) {
-
- chksel = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chksel")); // 급여출력여부
- chkpay = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkpay")); // 비급여출력여부
- chkall = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkall")); // 급여+비급여출력여부
-
- var ioflag = model.getValue("/root/main/list1/clbs["+i+"]/ioflag"); // 내원형태
- var sumtypecd = model.getValue("/root/main/list1/clbs["+i+"]/sumtypecd"); // 진료분야
- var insukind = model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"); // 보험유형
-
- // 급여명세서 조회를 위한 사후심사 key 값을 데이터로 만든다.
- model.setValue("/root/send/item1/clamym", model.getValue("/root/main/list1/clbs["+i+"]/clamym"));
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs["+i+"]/clamdg"));
- model.setValue("/root/send/item1/pid", model.getValue("/root/main/list1/clbs["+i+"]/pid"));
- model.setValue("/root/send/item1/pidsn", model.getValue("/root/main/list1/clbs["+i+"]/pidsn"));
- model.setValue("/root/send/item1/insukind", model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"));
- model.setValue("/root/send/item1/chkflag", "pay");
- // 2-1. 급여 출력
- if (chksel == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPayment1();
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fPayment1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPayment2(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fPayment2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
-
- // 2-2. 비급여 출력
- model.setValue("/root/send/item1/chkflag", "nopay");
- if (chkpay == "true") {
-
- model.setValue("/root/send/item1/pagenum", "37");
- fPayment3(); // 비급여
- }
-
- // 2-3. 급여+비급여 출력
- model.setValue("/root/send/item1/chkflag", "all");
- if (chkall == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPayment1(); // 자보 (의과입원)
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fPayment1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fPayment2(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fPayment2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
- }
- }
- } else {
- messageBox("출력할 환자 청구명세서가 선택되지", "E007");
- }
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn3_letter8" style="left:500px; top:5px; width:128px; height:22px; ">
- <caption>산보진료비내역서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_clbsmast.rows;
- var chksel = "";
- var chkpay = "";
- var chkall = "";
- var isprnt = "";
- glb_i = 0; // 20100218 초기화추가
- chkcnt = 0; // 20100218 초기화추가
- chkArr = new Array(); // 20100218 배열초기화
- // 출력체크 여부와 체크된 행을 저장해 둔다
- for (i=1; i<rows; i++) {
- chksel = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chksel")); // 급여출력여부
- chkpay = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkpay")); // 비급여출력여부
- chkall = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkall")); // 급여+비급여출력여부
- if (chksel == "true" || chkpay == "true" || chkall == "true") {
- isprnt = "true";
- chkArr[chkcnt] = i;
- chkcnt++;
- // i = rows; 이건 뭐냐. 이해 안되서 주석처리
- }
- }
-
- // 2. 출력
- if (isprnt == "true") {
- chksel = "";
- chkpay = "";
- chkall = ""; // 20100228 추가
- // 지연출력을 위해 setInterval() 이용, 2초 간격으로 출력함수(delayPrint()) 호출함
- if(model.getValue("/root/previewyn") == "true") {
- timerID = window.setInterval("delayPrint()",2000);
- } else {
- // 기존 스크립트 2009.02.13 변경
- for (var i=1; i<rows; i++) {
-
- chksel = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chksel")); // 급여출력여부
- chkpay = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkpay")); // 비급여출력여부
- chkall = grd_clbsmast.valueMatrix(i, grd_clbsmast.colRef("chkall")); // 급여+비급여출력여부
-
- var ioflag = model.getValue("/root/main/list1/clbs["+i+"]/ioflag"); // 내원형태
- var sumtypecd = model.getValue("/root/main/list1/clbs["+i+"]/sumtypecd"); // 진료분야
- var insukind = model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"); // 보험유형
-
- // 급여명세서 조회를 위한 사후심사 key 값을 데이터로 만든다.
- model.setValue("/root/send/item1/clamym", model.getValue("/root/main/list1/clbs["+i+"]/clamym"));
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs["+i+"]/clamdg"));
- model.setValue("/root/send/item1/pid", model.getValue("/root/main/list1/clbs["+i+"]/pid"));
- model.setValue("/root/send/item1/pidsn", model.getValue("/root/main/list1/clbs["+i+"]/pidsn"));
- model.setValue("/root/send/item1/insukind", model.getValue("/root/main/list1/clbs["+i+"]/insukindcd"));
- model.setValue("/root/send/item1/chkflag", "pay");
- // 2-1. 급여 출력
- if (chksel == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fAccidPayment1();
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fAccidPayment1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fAccidPayment2(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fAccidPayment2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
-
- // 2-2. 비급여 출력
- model.setValue("/root/send/item1/chkflag", "nopay");
- if (chkpay == "true") {
-
- model.setValue("/root/send/item1/pagenum", "37");
- fAccidPayment3(); // 비급여
- }
-
- // 2-3. 급여+비급여 출력
- model.setValue("/root/send/item1/chkflag", "all");
- if (chkall == "true") {
-
- // 내원형태, 보험유형에 맞는 명세서를 출력한다.
- switch (ioflag) {
- case "-" :
- break;
- case "I" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fAccidPayment1(); // 자보 (의과입원)
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fAccidPayment1(); // 일반 (의과입원)
- }
- break;
- case "O" :
- if (insukind == "31") {
- model.setValue("/root/send/item1/pagenum", "33");
- fAccidPayment2(); // 자보 (의과외래)
- } else {
- model.setValue("/root/send/item1/pagenum", "37");
- fAccidPayment2(); // 일반 (의과외래)
- }
- break;
- default :
- }
- }
- }
- }
- } else {
- messageBox("출력할 환자 청구명세서가 선택되지", "E007");
- }
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn3_letter9" style="left:635px; top:5px; width:140px; height:22px; ">
- <caption>의료급여비용명세서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRPID20301");
- exeReportPreview("RFPID21000", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
- ]]>
- </script>
- </button>
- </group>
- <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:94px; width:135px; height:13px; ">환자 청구명세서</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:111px; x2:1145px; y2:111px; "/>
- <output id="opt_totcnt" ref="/root/hidden/clbs/totcnt" class="output_fix" style="left:75px; top:678px; width:85px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:677px; width:72px; height:23px; ">총건수</caption>
- <line id="line2" class="line_3" style="x1:0px; y1:675px; x2:1145px; y2:675px; "/>
- <line id="line3" class="line_3" style="x1:0px; y1:699px; x2:1145px; y2:699px; "/>
- <caption id="caption8" class="cell_1" style="left:162px; top:676px; width:983px; height:23px; "/>
- <button id="btn_cancel" class="btn2_letter4" style="left:1079px; top:90px; width:64px; height:19px; ">
- <caption>선택취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_clbsmast.rows;
- for (i=1; i<rows; i++) {
- model.setValue("/root/main/list1/clbs[" + i + "]/chksel", "false");
- model.setValue("/root/main/list1/clbs[" + i + "]/chkpay", "false");
- model.setValue("/root/main/list1/clbs[" + i + "]/chkall", "false");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_all" class="btn2_letter4" style="left:1012px; top:90px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_clbsmast.rows;
- for (i=1; i<rows; i++) {
- model.setValue("/root/main/list1/clbs[" + i + "]/chksel", "true");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_down" class="icon_down" style="left:173px; top:41px; width:10px; height:9px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 청구년월 이전월
- var nowym = model.getValue("/root/send/clamym");
- var downym;
- downym = pidfCalMonth(-1, nowym);
- model.setValue("/root/send/clamym", downym);
- ipt_clamym.refresh();
-
- // 청구년월에 대한 청구차수 조회
- pidfGetClamdg();
- addComboItem("cmb_clamdg" , "전체","0","above");
- model.setValue("/root/send/clamdg", 0);
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgnm", "전체");
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgcd", 0);
- cmb_clamdg.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_clamdg" ref="/root/send/clamdg" navindex="2" appearance="minimal" style="left:188px; top:31px; width:62px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdg/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:10px; top:31px; width:86px; height:17px; ">청구년월 :</caption>
- <button id="btn_up" class="icon_up" style="left:173px; top:31px; width:10px; height:9px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 청구년월 다음월
- var nowym = model.getValue("/root/send/clamym");
- var upym;
- upym = pidfCalMonth(1, nowym);
- model.setValue("/root/send/clamym", upym);
- ipt_clamym.refresh();
-
- // 청구년월에 대한 청구차수 조회
- pidfGetClamdg();
- addComboItem("cmb_clamdg" , "전체","0","above");
- model.setValue("/root/send/clamdg", 0);
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgnm", "전체");
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgcd", 0);
- cmb_clamdg.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_clamym" ref="/root/send/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" showmask="true" style="left:100px; top:31px; width:69px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 청구년월에 대한 청구차수 조회
- pidfGetClamdg();
- addComboItem("cmb_clamdg" , "전체","0","above");
- model.setValue("/root/send/clamdg", 0);
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgnm", "전체");
- // model.makeValue("/root/init/clamdg/clamdglist["+ cmb_clamdg.length+1 +"]/clamdgcd", 0);
- cmb_clamdg.refresh();
- ]]>
- </script>
- </input>
- <line id="line4" class="line_4" style="x1:1075px; y1:35px; x2:1075px; y2:70px; "/>
- <button id="button8" class="btn2_letter2" style="left:967px; top:90px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/previewyn","true"); // 미리보기 없음
- fPrintView();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|