12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430 |
- <?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>
- <orddept/>
- </list1>
- <list2>
- <atdoct/>
- </list2>
- <list3>
- <ward/>
- </list3>
- <list4>
- <judg/>
- </list4>
- <list5>
- <divs/>
- </list5>
- <list6>
- <orddeptcd/>
- </list6>
- <data1>
- <judgrid/>
- <judgflag/>
- <judgflagcd/>
- <ioflag/>
- <ioflagcd/>
- <insukind/>
- <insukindcd/>
- <divrate/>
- <divcnt/>
- <fromdd/>
- <todd/>
- <memo/>
- </data1>
- </main>
- <send>
- <data1>
- <judgrid/>
- <orddeptcd/>
- <endyn/>
- </data1>
- <list1>
- <divs/>
- </list1>
- <setdata>
- <update/>
- </setdata>
- </send>
- <init>
- </init>
- <hidden>
- <rdosel/>
- <todd/>
- <memo/>
- <list1/>
- <list2/>
- <list3/>
- <list5>
- <divs/>
- </list5>
- <data1/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 기초정보 가져오기 (심사담당자, 진료과, 진료의, 병동)
- fLoadBaseInfo();
-
- // 화면 초기화
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRPIB01501" mediatype="application/x-www-form-urlencoded" method="post" add="bottom" resultref="/root/init"/>
- <submission id="TRPIB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list5"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TXPIB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1" resultref="/root/temp"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" add="bottom" resultref="/root/hidden/tmp"/>
- <submission id="TRPIB01503" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/orddeptlist"/>
- <submission id="TRPIB01504" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/wardlist"/>
- <submission id="TXPIB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/temp"/>
- <submission id="TXPIB01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/temp"/>
- <submission id="TXPIB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/setdata"/>
- <submission id="TRPIB01505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1" resultref="/root/hidden/data1"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- // 기초정보 가져오기 (심사담당자, 진료과, 진료의, 병동 리스트)
- function fLoadBaseInfo() {
- // 심사자, 진료과, 진료의, 병동 목록 초기화
- model.removeNode("/root/init");
- // 심사자, 진료과, 진료의, 병동 목록 가져오기
- submit("TRPIB01501");
- // 20100220 진료과별 일반의 추가
- var deptcnt = instance1.selectNodes("/root/init/list1/orddept").length;
- var orddrcnt = instance1.selectNodes("/root/init/list2/atdoct").length;
- for(var i=1; i <= deptcnt; i++){
- model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/chksel","false");
- model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/atdoctid","PAM99999");
- model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/atdoctnm","일반의(과대표)");
- model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/orddeptcd",model.getValue("/root/init/list1/orddept[" + i + "]/orddeptcd") );
- model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/orddeptnm",model.getValue("/root/init/list1/orddept[" + i + "]/orddeptnm") );
- }
- // 심사배분 기준정보 목록 안에 진료과, 진료의, 병동은 "전체" 가 포함된 상태 이므로 따로 만들어 둔다.
- model.copyNode("/root/hidden/list1", "/root/init/list1");
- model.copyNode("/root/hidden/list2", "/root/init/list2");
- model.copyNode("/root/hidden/list3", "/root/init/list3");
- // 1. 진료과
- var nodelist = instance1.selectNodes("/root/hidden/list1/orddept");
- var length = nodelist.length;
- model.makeValue("/root/hidden/list1/orddept["+ (length+1) +"]/orddeptcd","-");
- model.makeValue("/root/hidden/list1/orddept["+ (length+1) +"]/orddeptnm","전체");
- // 2. 진료의
- var nodelist = instance1.selectNodes("/root/hidden/list2/atdoct");
- var length = nodelist.length;
- model.makeValue("/root/hidden/list2/atdoct["+ (length+1) +"]/atdoctid","-");
- model.makeValue("/root/hidden/list2/atdoct["+ (length+1) +"]/atdoctnm","전체");
- // 3. 병동
- var nodelist = instance1.selectNodes("/root/hidden/list3/ward");
- var length = nodelist.length;
- model.makeValue("/root/hidden/list3/ward["+ (length+1) +"]/wardcd","-");
- model.makeValue("/root/hidden/list3/ward["+ (length+1) +"]/wardnm","전체");
- }
-
- function fInitialize() {
- // 담당자 (심사자) 콤보 초기화
- model.removeNode("/root/main/list4");
- model.makeNode("/root/main/list4");
- model.copyNode("/root/main/list4", "/root/init/list4");
-
- // 조회용 진료과 콤보 초기화
- model.removeNode("/root/main/list6");
- model.makeNode("/root/main/list6");
- model.copyNode("/root/main/list6", "/root/init/list6");
-
- // 심사배분 기준정보 목록 초기화
- model.removeNodeset("/root/main/list5/divs");
-
- // 기준정보의 초기화
- model.resetInstanceNode("/root/main/data1");
- var currentdate = getCurrentDate();
- model.setValue("/root/main/data1/fromdd", currentdate);
- model.setValue("/root/main/data1/todd", "99991231");
- cmb_judgflag.select(0);
- cmb_ioflag.select(0);
- cmb_insukind.select(0);
- model.setValue("/root/main/data1/divrate", "100");
- model.setValue("/root/main/data1/divcnt", "0");
- var currentdate = getCurrentDate();
- model.setValue("/root/main/data1/fromdd",currentdate);
- model.setValue("/root/main/data1/todd","99991231");
- model.setValue("/root/hidden/rdosel", "0");
- model.setValue("/root/hidden/todd", currentdate);
-
- // 조회조건 초기화
- cmb_judgrid.select(0);
- cmb_orddeptcd.select(0);
- model.setValue("/root/send/data1/endyn", "2");
-
- // 진료과와 진료의, 병동별의 그리드의 컬럼명쪽 선택분야 전체 체크박스 실행
- grd_orddeptlist.fixedcellcheckbox(0,0) = true;
- grd_atdoctlist.fixedcellcheckbox(0,0) = true;
- grd_wardlist.fixedcellcheckbox(0,0) = true;
-
- // 진료과-진료의별 라디오버튼 선택된 상태로 만들기
- fSetCheckSel();
-
- model.refresh();
- }
-
- // 진료과별-진료의별 또는 병동별 라디오버튼 선택에 따른 그리드 disable 처리
- function fSetCheckSel() {
-
- // 진료과, 진료의, 병동, 심사자 그리드 초기화
- model.removeNode("/root/main/list1");
- model.removeNode("/root/main/list2");
- model.removeNode("/root/main/list3");
- model.makeNode("/root/main/list1");
- model.makeNode("/root/main/list2");
- model.makeNode("/root/main/list3");
- model.refresh();
- grd_orddeptlist.refresh();
- grd_atdoctlist.refresh();
- grd_wardlist.refresh();
-
- var chk = model.getValue("/root/hidden/rdosel");
- // 1. 진료과별-진료의별 선택
- if (chk == "0") {
- model.copyNode("/root/main/list1", "/root/init/list1");
- model.copyNode("/root/main/list3", "/root/init/list3");
- model.refresh();
- // 진료과 그리드
- for(var i=1; i < grd_orddeptlist.rows; i++){
- model.setValue("/root/main/list1/orddept[" + i + "]/chksel", "false");
- }
- grd_orddeptlist.fixedcellischeck(0,0) = false;
- grd_orddeptlist.disabled = false;
- // 진료의 그리드 초기화
- fSelectAtdoct();
- for(var i=1; i < grd_atdoctlist.rows; i++){
- model.setValue("/root/main/list2/atdoct[" + i + "]/chksel", "false");
- }
- grd_atdoctlist.fixedcellischeck(0,0) = false;
- grd_atdoctlist.disabled = false;
- grd_atdoctlist.refresh();
- // 병동 그리드
- for(var i=1; i < grd_wardlist.rows; i++){
- model.setValue("/root/main/list3/ward[" + i + "]/chksel", "true");
- }
- grd_wardlist.fixedcellischeck(0,0) = true;
- grd_wardlist.disabled = true;
-
- // 2. 병동별 선택
- } else if (chk == "1") {
- model.copyNode("/root/main/list1", "/root/init/list1");
- model.copyNode("/root/main/list2", "/root/init/list2");
- model.copyNode("/root/main/list3", "/root/init/list3");
- model.refresh();
- // 진료과 그리드
- for(var i=1; i < grd_orddeptlist.rows; i++){
- model.setValue("/root/main/list1/orddept[" + i + "]/chksel", "true");
- }
- grd_orddeptlist.fixedcellischeck(0,0) = true;
- grd_orddeptlist.disabled = true;
-
- // 진료의 그리드 초기화
- fSelectAtdoct();
- for(var j=1; j < grd_atdoctlist.rows; j++){
- model.setValue("/root/main/list2/atdoct[" + j + "]/chksel", "true");
- }
-
- grd_atdoctlist.fixedcellischeck(0,0) = true;
- grd_atdoctlist.disabled = true;
- grd_atdoctlist.refresh();
- // 병동 그리드
- for(var k=1; k < grd_wardlist.rows; k++){
- model.setValue("/root/main/list3/ward[" + k + "]/chksel", "false");
- }
-
- grd_wardlist.fixedcellischeck(0,0) = false;
- grd_wardlist.disabled = false;
-
- }
-
- grd_orddeptlist.refresh();
- grd_atdoctlist.refresh();
- grd_wardlist.refresh();
- }
-
- // 진료과를 선택하면 진료과에 해당하는 진료의 만 뿌려주게 한다.
- function fSelectAtdoct() {
-
- // 진료의 그리드 초기화
- model.removeNode("/root/main/list2");
- model.makeNode("/root/main/list2");
- model.copyNode("/root/main/list2", "/root/init/list2");
- model.refresh();
- grd_atdoctlist.fixedcellischeck(0,0) = false;
-
- var idx = 0;
- var rows = grd_orddeptlist.rows;
- var orddeptcdlist = new Array();
-
- // 진료과에서 선택된 진료코드를 담는다.
- for(var i = 1; i < grd_orddeptlist.rows; i++){
- var chksel = model.getValue("/root/main/list1/orddept[ " + i + "]/chksel");
- if(chksel == "true"){
- var orddeptcd = model.getValue("/root/main/list1/orddept[ " + i + "]/orddeptcd");
- orddeptcdlist[idx++] = orddeptcd;
- }
- }
-
- // 문자열을 만든다.
- var orddeptcd = "";
- for(var i = 0; i < idx; i++) {
- if(i == 0) {
- orddeptcd = "'" + orddeptcdlist[i] + "'";
- }
- else {
- orddeptcd = ""+ orddeptcd + "or orddeptcd='" + orddeptcdlist[i] + "'";
- }
- }
-
- // 진료의를 골라 보여준다.
- var fixedchk = grd_orddeptlist.fixedcellischeck(0,0);
- if (orddeptcd == "") {
- grd_atdoctlist.nodeset = "/root/main/list2/atdoct[orddeptcd='0']";
- }else if (orddeptcd != "" && fixedchk == true) {
- grd_atdoctlist.nodeset= "/root/main/list2/atdoct";
- }else if (orddeptcd != "" && fixedchk == false) {
- grd_atdoctlist.nodeset = "/root/init/list2/atdoct[orddeptcd=" + orddeptcd + "]";
- }
-
- // 체크상태를 모두 해제로 만든다.
- var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
- var length = nodeList.length;
- for(var i = 1; i <= length; i++){
- model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
- }
- }
- // 저장 전 데이터 검사
- function fValidateData() {
-
- // 1. 입력값 체크
- //var judgrid = model.getValue("/root/main/data1/judgrid");
- var judgrid = model.getValue("root/send/data1/judgrid");
- var judgflagcd = model.getValue("/root/main/data1/judgflagcd");
- var ioflagcd = model.getValue("/root/main/data1/ioflagcd");
- var insukindcd = model.getValue("/root/main/data1/insukindcd");
- var divrate = model.getValue("/root/main/data1/divrate");
- var divcnt = model.getValue("/root/main/data1/divcnt");
- var fromdd = model.getValue("/root/main/data1/fromdd");
- var todd = model.getValue("/root/main/data1/todd");
-
- // 기본 필수 입력값 검사
- if (judgrid == ""){
- messageBox("심사자ID는","I003");
- return false;
- }
- if(judgrid == "-"){
- messageBox("저장시 심사자는 전체를 선택할 수", "I004");
- return false;
- }
- if (divrate == ""){
- messageBox("분배율은","I003");
- return false;
- }
- if (divcnt == ""){
- messageBox("분배건수는","I003");
- return false;
- }
- if (fromdd == ""){
- messageBox("적용개시일은","I003");
- return false;
- }
-
- return true;
- }
-
- // 진료과-진료의별 또는 병동별 라디오버튼에 따른 저장데이터 만들기
- function fMakeSaveData() {
- // 1. 공통 입력값
- //var judgrid = model.getValue("/root/main/data1/judgrid");
- var judgrid = model.getValue("root/send/data1/judgrid");
- var judgflagcd = model.getValue("/root/main/data1/judgflagcd");
- var ioflagcd = model.getValue("/root/main/data1/ioflagcd");
- var insukindcd = model.getValue("/root/main/data1/insukindcd");
- var divrate = model.getValue("/root/main/data1/divrate");
- var divcnt = model.getValue("/root/main/data1/divcnt");
- var fromdd = model.getValue("/root/main/data1/fromdd");
- var todd = model.getValue("/root/main/data1/todd");
- var memo = model.getValue("/root/main/data1/memo");
-
- var flag = model.getValue("/root/hidden/rdosel");
-
- // 1. 진료과-진료의별 선택시
- if (flag == "0") {
-
- // case1. 진료과 전체, 진료의 전체
- if (grd_orddeptlist.fixedcellischeck(0,0) == true && grd_atdoctlist.fixedcellischeck(0,0) == true) {
-
- model.removenode("/root/send/list1");
- model.makeValue("/root/send/list1/divs[" + 1 + "]/judgrid " ,judgrid); // 심사자ID
- model.makeValue("/root/send/list1/divs[" + 1 + "]/judgflag " ,judgflagcd); // 심사구분
- model.makeValue("/root/send/list1/divs[" + 1 + "]/ioflag" ,ioflagcd); // 외래/입원
- model.makeValue("/root/send/list1/divs[" + 1 + "]/insukindflag" ,insukindcd); // 보험유형
- model.makeValue("/root/send/list1/divs[" + 1 + "]/divrate" ,divrate); // 분배율
- model.makeValue("/root/send/list1/divs[" + 1 + "]/divcnt" ,divcnt); // 분배건수
- model.makeValue("/root/send/list1/divs[" + 1 + "]/fromdd" ,fromdd); // 적용개시일
- model.makeValue("/root/send/list1/divs[" + 1 + "]/todd" ,todd); // 적용종료일
- model.makeValue("/root/send/list1/divs[" + 1 + "]/memo" ,memo); // 메모
- model.makeValue("/root/send/list1/divs[" + 1 + "]/orddeptcd" ,"-"); // 진료과(전체)
- model.makeValue("/root/send/list1/divs[" + 1 + "]/atdoct" ,"-"); // 진료의(전체)
- model.makeValue("/root/send/list1/divs[" + 1 + "]/ward" ,"-"); // 병동(전체)
-
- // case2. 진료과 전체, 진료의 선택
- } else if (grd_orddeptlist.fixedcellischeck(0,0) == true && grd_atdoctlist.fixedcellischeck(0,0) == false) {
-
- var insert = 1;
- model.removenode("/root/send/list1");
- var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
- var length = nodeList.length;
-
- for(var i = 1; i <= length; i++){
- var chk = model.getValue("/root/main/list2/atdoct[" + i + "]/chksel");
- if (chk == "true") {
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
- model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
- model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
- model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
- model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
- model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
- model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
- model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
- model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,model.getValue("/root/main/list2/atdoct[" + i + "]/orddeptcd")); // 진료과
- model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,model.getValue("/root/main/list2/atdoct[" + i + "]/atdoctid")); // 진료의
- model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,"-"); // 병동(전체)
- insert = insert + 1;
- }
- }
-
- // case3. 진료과 선택, 진료의 전체
- } else if (grd_orddeptlist.fixedcellischeck(0,0) == false && grd_atdoctlist.fixedcellischeck(0,0) == true) {
-
- var insert = 1;
- model.removenode("/root/send/list1");
- for (var i = 1; i < grd_orddeptlist.rows; i++) {
- var chk = model.getValue("/root/main/list1/orddept[" + i + "]/chksel");
- if (chk == "true") {
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
- model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
- model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
- model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
- model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
- model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
- model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
- model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
- model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,model.getValue("/root/main/list1/orddept[" + i + "]/orddeptcd")); // 진료과
- model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,"-"); // 진료의(전체)
- model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,"-"); // 병동(전체)
- insert = insert + 1;
- }
- }
-
- // case4. 진료과 선택, 진료의 선택 (case2와 동일)
- } else {
-
- var insert = 1;
- model.removenode("/root/send/list1");
- var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
- var length = nodeList.length;
-
- for(var i = 1; i <= length; i++){
- var chk = model.getValue("/root/main/list2/atdoct[" + i + "]/chksel");
- if (chk == "true") {
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
- model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
- model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
- model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
- model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
- model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
- model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
- model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
- model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,model.getValue("/root/main/list2/atdoct[" + i + "]/orddeptcd")); // 진료과
- model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,model.getValue("/root/main/list2/atdoct[" + i + "]/atdoctid")); // 진료의
- model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,"-"); // 병동(전체)
- insert = insert + 1;
- }
- }
-
- }
-
- // 2. 병동별 선택 시
- } else if (flag == "1") {
-
- // case1. 병동 전체
- if (grd_wardlist.fixedcellischeck(0,0) == true) {
-
- model.removenode("/root/send/list1");
- model.makeValue("/root/send/list1/divs[" + 1 + "]/judgrid " ,judgrid); // 심사자ID
- model.makeValue("/root/send/list1/divs[" + 1 + "]/judgflag " ,judgflagcd); // 심사구분
- model.makeValue("/root/send/list1/divs[" + 1 + "]/ioflag" ,ioflagcd); // 외래/입원
- model.makeValue("/root/send/list1/divs[" + 1 + "]/insukindflag" ,insukindcd); // 보험유형
- model.makeValue("/root/send/list1/divs[" + 1 + "]/divrate" ,divrate); // 분배율
- model.makeValue("/root/send/list1/divs[" + 1 + "]/divcnt" ,divcnt); // 분배건수
- model.makeValue("/root/send/list1/divs[" + 1 + "]/fromdd" ,fromdd); // 적용개시일
- model.makeValue("/root/send/list1/divs[" + 1 + "]/todd" ,todd); // 적용종료일
- model.makeValue("/root/send/list1/divs[" + 1 + "]/memo" ,memo); // 메모
- model.makeValue("/root/send/list1/divs[" + 1 + "]/orddeptcd" ,"-"); // 진료과(전체)
- model.makeValue("/root/send/list1/divs[" + 1 + "]/atdoct" ,"-"); // 진료의(전체)
- model.makeValue("/root/send/list1/divs[" + 1 + "]/ward" ,"-"); // 병동(전체)
-
- // case2. 병동 선택
- } else if (grd_wardlist.fixedcellischeck(0,0) == false) {
-
- var insert = 1;
- model.removenode("/root/send/list1");
- for (var i = 1; i < grd_wardlist.rows; i++) {
- var chk = model.getValue("/root/main/list3/ward[" + i + "]/chksel");
- if (chk == "true") {
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
- model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
- model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
- model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
- model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
- model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
- model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
- model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
- model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
- model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,"-"); // 진료과
- model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,"-"); // 진료의
- model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,model.getValue("/root/main/list3/ward[" + i + "]/wardcd")); // 병동(전체)
- insert = insert + 1;
- }
- }
- }
- }
- }
-
- function fAll(){
- var rows = grd_judginfo.rows;
-
- for(var i = 0; i <= rows; i++){
- var atdoct = model.getValue("/root/main/perchgrreflist/perchgrref["+ i + "]/atdoct");
- var orddept = model.getValue("/root/main/perchgrreflist/perchgrref[" + i +"]/orddeptcd");
- var ward = model.getValue("/root/main/perchgrreflist/perchgrref[" + i +"]/ward");
-
- // if(atdoct == '-'){
- // model.setValue("/root/main/perchgrreflist/perchgrref["+ i + "]/atdoct","전체");
- // }
- }
- }
-
- // 심사자배분 기준정보 목록 조회
- function fSearchJudgBaseInfoList() {
- var judgrid = model.getValue("/root/send/data1/judgrid");
- if(judgrid != ""){
- // 심사배분 기준정보 목록 초기화
- model.removeNodeset("/root/main/list5/divs");
- submit("TRPIB01502");
- //model.setValue("/root/main/data1/judgrid", judgrid);
-
- // 심사배분 기준정보 목록에 구분색상 입히기 (현재일자가 적용종료일보다 크다면 빨갛게 처리)
- var rows = grd_divslist.rows;
- for(var i = 1; i <= rows; i++){
- grd_divslist.rowStyle(i,"all","color") = "#000000";
- var todd = model.getValue("/root/main/list5/divs[" + i + "]/todd");
- var currentdate = getCurrentDate();
- if(todd < currentdate){
- grd_divslist.rowStyle(i,"all","color") = "#FF0000";
- }
- if(todd == currentdate){
- grd_divslist.rowStyle(i,"all","color") = "#0000CD";
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1281;2,784;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">심사배분 기준정보 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1211px; height:732px; ">
- <group id="group2" style="left:0px; top:10px; width:1211px; height:30px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1211px; height:30px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:6px; width:73px; height:17px; ">담당자 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1134px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchJudgBaseInfoList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:27px; "/>
- <select1 id="cmb_judgrid" ref="/root/send/data1/judgrid" navindex="1" appearance="minimal" style="left:95px; top:5px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/list4/judg">
- <label ref="judgnm"/>
- <value ref="judgrid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" style="left:860px; top:6px; width:125px; height:17px; ">종료건포함여부 :</caption>
- <select1 id="rdo_delinclude" ref="/root/send/data1/endyn" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:990px; top:7px; width:110px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>포함</label>
- <value>1</value>
- </item>
- <item>
- <label>미포함</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption16" class="search_name" style="left:275px; top:6px; width:73px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/data1/orddeptcd" navindex="1" appearance="minimal" style="left:355px; top:5px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/list6/orddeptcd">
- <label ref="orddeptnm"/>
- <value ref="orddeptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:263px; width:157px; height:13px; ">심사배분 기준정보 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:279px; x2:1211px; y2:279px; "/>
- <datagrid id="grd_divslist" nodeset="/root/main/list5/divs" autoresize="true" caption="judgrid^심사자^심사구분^외래/입원^보험유형^진료과^진료의^병동^분배율(%)^분배건수^적용개시일^적용종료일^oldtodd^메모" colsep="^" colwidth="80, 80, 60, 60, 80, 100, 80, 100, 60, 60, 100, 100, 100, 300" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:285px; width:1211px; height:441px; ">
- <col disabled="true" ref="judgrid" visibility="hidden"/>
- <col disabled="true" ref="judgnm"/>
- <col disabled="true" ref="judgflag" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>재원</label>
- <value>I</value>
- </item>
- <item>
- <label>사후</label>
- <value>A</value>
- </item>
- <item>
- <label>이의</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="ioflag" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>순수외래</label>
- <value>C</value>
- </item>
- <item>
- <label>외래퇴원</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="insukindcd" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>건강보험</label>
- <value>11</value>
- </item>
- <item>
- <label>의료급여1종</label>
- <value>21</value>
- </item>
- <item>
- <label>의료급여2종</label>
- <value>22</value>
- </item>
- <item>
- <label>자보</label>
- <value>31</value>
- </item>
- <item>
- <label>산재</label>
- <value>41</value>
- </item>
- <item>
- <label>공상</label>
- <value>42</value>
- </item>
- <item>
- <label>일반</label>
- <value>51</value>
- </item>
- <item>
- <label>외국인</label>
- <value>61</value>
- </item>
- <item>
- <label>임상시험</label>
- <value>71</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo" style="left:440px; top:23px; width:100px; height:23px; ">
- <choices>
- <!-- grid내의 콤보박스에도 ZBC001.js의 진료과 공통코드를 뿌려준다.-->
- <itemset nodeset="/root/hidden/list1/orddept">
- <label ref="orddeptnm"/>
- <value ref="orddeptcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="atdoctid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/list2/atdoct">
- <label ref="atdoctnm"/>
- <value ref="atdoctid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="wardcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/list3/ward">
- <label ref="wardnm"/>
- <value ref="wardcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="divrate" type="input" style="text-align:center; "/>
- <col ref="divcnt" type="input" style="text-align:center; "/>
- <col disabled="true" ref="fromdd" type="inputdate"/>
- <col disabled="true" ref="todd" type="inputdate"/>
- <col disabled="true" ref="oldtodd" type="inputdate" visibility="hidden"/>
- <col disabled="false" ref="memo" type="inputbutton"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // var judginforow = grd_judginfo.row;
- //
- // var judgrid = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/judgrid");
- // var judgflag = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/judgflag");
- // var ioflag = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/ioflag");
- // var insukindflag = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/insukindflag");
- // var atdoct = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/atdoct");
- // var orddeptcd = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/orddeptcd");
- // var ward = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/ward");
- // var divcnt = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/divcnt");
- // var divrate = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/divrate");
- // var fromdd = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/fromdd");
- // var todd = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/todd");
- //
- // if(judgrid != "" && judgflag != "" && ioflag != "" && insukindflag != "" && atdoct != "" && orddeptcd != "" && ward != "" && divcnt != "" && divrate != "" && fromdd != "" && todd != ""){
- // model.setValue("/root/main/baseinfo/judgrid",judgrid);
- // model.setValue("/root/main/baseinfo/judgflag",judgflag);
- // model.setValue("/root/main/baseinfo/ioflag",ioflag);
- // model.setValue("/root/main/baseinfo/insukindflag",insukindflag);
- // model.setValue("/root/main/baseinfo/atdoct",atdoct);
- // model.setValue("/root/main/baseinfo/divcnt",divcnt);
- // model.setValue("/root/main/baseinfo/divrate",divrate);
- // model.setValue("/root/main/baseinfo/fromdd",fromdd);
- // model.setValue("/root/main/baseinfo/todd",todd);
- //
- // var judgflagcd = model.getValue("/root/main/baseinfo/judgflag");
- // model.setValue("/root/main/baseinfo/judgflagcd",judgflagcd);
- // model.refreshpart("/root/main/baseinfo/judgflagcd");
- //
- // var ioflagcd = model.getValue("/root/main/baseinfo/ioflag");
- // model.setValue("/root/main/baseinfo/ioflagcd",ioflagcd);
- // model.refreshpart("/root/main/baseinfo/ioflagcd");
- //
- // var insukindflagcd = model.getValue("/root/main/baseinfo/insukindflag");
- // model.setValue("/root/main/baseinfo/insukindflagcd",insukindflagcd);
- // model.refreshpart("/root/main/baseinfo/insukindflagcd");
- //
- // var orddeptcdlistrows = grd_orddeptcdlist.rows;
- //
- // for(var i = 1 ; i <= orddeptcdlistrows ; i++){
- // //grd_orddeptcdlist.row = i;
- // grd_orddeptcdlist.col = 1;
- // var orddeptcdlistcd = model.getValue("/root/main/orddeptlist/orddept[" + i +"]/orddeptcd");
- // if(orddeptcdlistcd != ""){
- // if(orddeptcd == orddeptcdlistcd){
- // model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "true");
- // }
- // if(orddeptcd != orddeptcdlistcd){
- // model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "false");
- // }
- // }
- // }
- //
- // var wardrows = grd_ward.rows;
- // for( i = 1 ; i <= wardrows ; i++){
- // grd_ward.col = 1;
- // var wardcd = model.getValue("/root/main/wardlist/ward[" + i +"]/wardcd");
- // if(wardcd != ""){
- // if(ward == wardcd){
- // model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "true");
- // }
- // if(ward != wardcd){
- // model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "false");
- // }
- // }
- // }
- //
- // model.refresh();
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- // 메모 인풋버튼 해당
- var gridCol = grd_divslist.col;
- var gridRow = grd_divslist.row;
- var gettextcnts = model.getValue("/root/main/list5/divs[" + gridRow + "]/memo");
- if(gridCol == "13"){
- if(gettextcnts != ""){
- txa_memo.value = gettextcnts;
- }
- grp_memo.visible = true;
- model.setFocus("iptmemo");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_divslist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" navindex="15" style="left:1060px; top:258px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_divslist.rows == 1) {
- return;
- }
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_divslist.saveExcel(fileName, "심사배분기준정보목록", true, true, "", "", true);
- }
- // model.download(getActionURL("TRPIB00407"),"심사배분기준정보목록DATA.csv");
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:5px; top:53px; width:74px; height:13px; ">기준 정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:68px; x2:225px; y2:68px; "/>
- <caption id="caption24" class="cell_1" style="left:2px; top:209px; width:101px; height:18px; vertical-align:middle; ">적용종료일</caption>
- <caption id="caption7" class="cell_1" style="left:2px; top:187px; width:101px; height:18px; vertical-align:middle; ">적용개시일</caption>
- <input id="ipt_todd" ref="/root/main/data1/todd" class="input_default" disabled="true" navindex="12" inputtype="date" style="left:104px; top:209px; width:121px; height:19px; "/>
- <caption id="caption4" class="cell_1" style="left:2px; top:142px; width:101px; height:19px; vertical-align:middle; ">분배율</caption>
- <input id="ipt_divrate" ref="/root/main/data1/divrate" class="input_default" navindex="9" autonext="false" maxlength="3" style="left:104px; top:142px; width:101px; height:19px; ">
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- var divrate = ipt_divrate.value;
- if(divrate > 100){
- input1.value= 100;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_fromdd" ref="/root/main/data1/fromdd" class="input_default" navindex="11" inputtype="date" style="left:104px; top:187px; width:121px; height:19px; "/>
- <caption id="caption8" class="cell_1" style="left:2px; top:98px; width:101px; height:18px; vertical-align:middle; ">외래/입원</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:96px; x2:225px; y2:96px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:207px; x2:225px; y2:207px; "/>
- <caption id="caption9" class="cell_1" style="left:2px; top:120px; width:101px; height:18px; vertical-align:middle; ">보험유형</caption>
- <caption id="caption10" style="left:209px; top:147px; width:16px; height:15px; vertical-align:middle; ">%</caption>
- <input id="ipt_insukindcd" ref="/root/main/data1/insukindcd" class="input_default" style="left:104px; top:120px; width:30px; height:19px; "/>
- <input id="ipt_ioflagcd" ref="/root/main/data1/ioflagcd" class="input_default" style="left:104px; top:98px; width:30px; height:19px; "/>
- <line id="line8" class="line_1" style="x1:230px; y1:68px; x2:1211px; y2:69px; "/>
- <button id="button4" class="btn2_letter4" navindex="4" visibility="hidden" style="left:1141px; top:47px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=1; i < grd_orddeptcdlist.rows; i++){
- model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "false");
- //grd_orddeptcdlist.fixedcellischeck(0,1) = false;
- }
- for(var i=1; i < grd_ward.rows; i++){
- model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "false");
- }
- for(var i=1; i < grd_atdoctchk.rows; i++){
- model.setValue("/root/init/orddrid/orddridlist[" + i + "]/sp", "false");
- }
-
- grd_orddeptcdlist.fixedcellischeck(0,0) = false;
- grd_ward.fixedcellischeck(0,0) = false;
- grd_atdoctchk.fixedcellischeck(0,0) = false;
- grd_atdoctchk.nodeset = "/root/init/orddrid/orddridlist[dp='0']";
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter4" navindex="3" visibility="hidden" style="left:1072px; top:47px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=1; i < grd_orddeptcdlist.rows; i++){
- model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "true");
- //grd_orddeptcdlist.fixedcellischeck(0,1) = true;
- }
- for(var i=1; i < grd_ward.rows; i++){
- model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "true");
- }
- fSeeAtdoct();
- for(var i=1; i < grd_atdoctchk.rows; i++){
- model.setValue("/root/init/orddrid/orddridlist[" + i + "]/sp", "true");
- }
- grd_orddeptcdlist.fixedcellischeck(0,0) = true;
- grd_ward.fixedcellischeck(0,0) = true;
- grd_atdoctchk.fixedcellischeck(0,0) = true;
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <caption id="caption11" class="tit_2" style="left:235px; top:53px; width:194px; height:14px; ">진료과별 / 진료의별 / 병동별</caption>
- <line id="line6" class="line_3" style="x1:1px; y1:251px; x2:226px; y2:251px; "/>
- <select1 id="cmb_insukind" ref="/root/main/data1/insukind" class="combo_default" navindex="7" appearance="minimal" style="left:135px; top:120px; width:88px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>건강보험</label>
- <value>11</value>
- </item>
- <item>
- <label>의료급여1종</label>
- <value>21</value>
- </item>
- <item>
- <label>의료급여2종</label>
- <value>22</value>
- </item>
- <item>
- <label>자보</label>
- <value>31</value>
- </item>
- <item>
- <label>산재</label>
- <value>41</value>
- </item>
- <item>
- <label>공상</label>
- <value>42</value>
- </item>
- <item>
- <label>일반</label>
- <value>51</value>
- </item>
- <item>
- <label>외국인</label>
- <value>61</value>
- </item>
- <item>
- <label>임상시험</label>
- <value>71</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var insukindflagcd = model.getValue("/root/main/data1/insukind");
- model.setValue("/root/main/data1/insukindcd",insukindflagcd);
- model.refreshpart("/root/main/data1/insukindcd");
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ioflag" ref="/root/main/data1/ioflag" class="combo_default" navindex="6" appearance="minimal" style="left:135px; top:98px; width:88px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>순수외래</label>
- <value>C</value>
- </item>
- <item>
- <label>외래퇴원</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var ioflagcd = model.getValue("/root/main/data1/ioflag");
- model.setValue("/root/main/data1/ioflagcd",ioflagcd);
- model.refreshpart("/root/main/data1/ioflagcd");
- ]]>
- </script>
- </select1>
- <caption id="caption12" class="cell_1" style="left:2px; top:74px; width:101px; height:19px; text-align:left; vertical-align:middle; ">심사구분</caption>
- <select1 id="cmb_judgflag" ref="/root/main/data1/judgflag" class="combo_default" navindex="5" appearance="minimal" style="left:135px; top:74px; width:88px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>재원</label>
- <value>I</value>
- </item>
- <item>
- <label>사후</label>
- <value>A</value>
- </item>
- <item>
- <label>이의</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var judgflagcd = model.getValue("/root/main/data1/judgflag");
- model.setValue("/root/main/data1/judgflagcd",judgflagcd);
- model.refreshpart("/root/main/data1/judgflagcd");
- ]]>
- </script>
- </select1>
- <input id="ipt_judgflagcd" ref="/root/main/data1/judgflagcd" class="input_default" style="left:104px; top:74px; width:30px; height:19px; "/>
- <line id="line7" class="line_2" style="x1:0px; y1:118px; x2:225px; y2:118px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:140px; x2:225px; y2:140px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:163px; x2:225px; y2:163px; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:185px; x2:225px; y2:185px; "/>
- <input id="ipt_divcnt" ref="/root/main/data1/divcnt" class="input_default" navindex="10" maxlength="4" style="left:104px; top:165px; width:121px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:2px; top:165px; width:101px; height:19px; vertical-align:middle; ">분배건수</caption>
- <datagrid id="grd_wardlist" nodeset="/root/main/list3/ward" visibility="visible" caption="선택^코드^명칭" colsep="^" colwidth="80, 80, 150" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="14" style="left:894px; top:73px; width:315px; height:177px; ">
- <col ref="chksel" type="checkbox"/>
- <col ref="wardcd" style="text-align:center; "/>
- <col ref="wardnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (grd_wardlist.isCell(event.target) && grd_wardlist.mouseRow >= grd_wardlist.fixedrows) {
-
- var fixcellchk = grd_wardlist.fixedcellischeck(0, 0);
- var row = grd_wardlist.row;
-
- // 전체선택 또는 해제
- if (row == 0) {
- if (fixcellchk == true) {
- for (var i = 1; i < grd_wardlist.rows; i++) {
- model.setValue("/root/main/list3/ward["+ i +"]/chksel", "true");
- }
- } else {
- for (var i = 1; i < grd_wardlist.rows; i++) {
- model.setValue("/root/main/list3/ward["+ i +"]/chksel", "false");
- }
- }
- } else {
- if (fixcellchk == true) {
- grd_wardlist.valueMatrix(grd_wardlist.row, grd_wardlist.colRef("chksel")) = "true";
- }
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_orddeptlist" nodeset="/root/main/list1/orddept" autoresize="true" caption="선택^코드^명칭" colsep="^" colwidth="66, 80, 159" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="13" style="left:230px; top:73px; width:312px; height:177px; ">
- <col ref="chksel" type="checkbox"/>
- <col ref="orddeptcd" type="output" style="text-align:center; "/>
- <col ref="orddeptnm" type="output"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (grd_orddeptlist.isCell(event.target)) {
- var fixcellchk = grd_orddeptlist.fixedcellischeck(0, 0);
- var row = grd_orddeptlist.row;
-
- // 전체선택 또는 해제
- if (row == 0) {
- if (fixcellchk == true) {
- for (var i = 1; i < grd_orddeptlist.rows; i++) {
- model.setValue("/root/main/list1/orddept["+ i +"]/chksel", "true");
- }
- } else {
- for (var i = 1; i < grd_orddeptlist.rows; i++) {
- model.setValue("/root/main/list1/orddept["+ i +"]/chksel", "false");
- }
- }
- } else if (row > 0) {
- if (fixcellchk == true) {
- for (var i = 1; i < grd_orddeptlist.rows; i++) {
- model.setValue("/root/main/list1/orddept["+ i +"]/chksel", "true");
- }
- } else {
-
- }
- }
- model.refresh();
- grd_orddeptlist.refresh();
- // model.copyNode("/root/main/list2", "/root/init/list2");
- // model.refresh();
-
- // 진료과 선택에 따른 진료의 보여주기
- fSelectAtdoct();
- }
-
- ]]>
- </script>
- </datagrid>
- <line id="line14" class="line_3" style="x1:545px; y1:74px; x2:545px; y2:249px; "/>
- <line id="line12" class="line_3" style="x1:890px; y1:74px; x2:890px; y2:249px; "/>
- <datagrid id="grd_atdoctlist" nodeset="/root/main/list2/atdoct" autoresize="true" caption="선택^사번^성명^진료과^진료과코드" colsep="^" colwidth="51, 63, 92, 120, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="13" style="left:549px; top:73px; width:336px; height:177px; ">
- <col ref="chksel" type="checkbox"/>
- <col ref="atdoctid" type="output" style="text-align:center; "/>
- <col ref="atdoctnm" type="output"/>
- <col ref="orddeptnm" type="output"/>
- <col ref="orddeptcd" type="output" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (grd_atdoctlist.isCell(event.target)) {
- var fixcellchk = grd_atdoctlist.fixedcellischeck(0, 0);
- var row = grd_atdoctlist.row;
-
- // 전체선택 또는 해제
- if (row == 0) {
- if (fixcellchk == true) {
- // 진료과 전체 선택이면 모두 선택
- if (grd_orddeptlist.fixedcellischeck(0, 0) == true) {
-
- var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
- var length = nodeList.length;
-
- for(var i = 1; i <= length; i++){
- model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
- }
-
- // 진료과가 선택된 경우, 해당 진료과의 진료의들만 선택
- } else {
- for (var j = 1; j < grd_orddeptlist.rows; j++) {
- var chk = model.getValue("/root/main/list1/orddept["+ j +"]/chksel");
- if (chk == "true") {
- var orddeptcd = model.getValue("/root/main/list1/orddept["+ j +"]/orddeptcd");
-
- var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
- var length = nodeList.length;
-
- for(var i = 1; i <= length; i++){
- var orddeptcd2 = model.getValue("/root/main/list2/atdoct["+ i +"]/orddeptcd");
- if (orddeptcd == orddeptcd2) {
- model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
- }
- }
- // for (var i = 1; i < grd_atdoctlist.rows; i++) {
- // var orddeptcd2 = model.getValue("/root/main/list2/atdoct["+ i +"]/orddeptcd");
- // if (orddeptcd == orddeptcd2) {
- // model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
- // } else {
- // model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
- // }
- // }
- }
- }
- }
- } else {
- var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
- var length = nodeList.length;
-
- for(var i = 1; i <= length; i++){
- model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
- }
- }
- } else if (row > 0) {
-
- if (fixcellchk == true) {
- grd_atdoctlist.valueMatrix(grd_atdoctlist.row, grd_atdoctlist.colRef("chksel")) = "true";
- } else {
- if (grd_orddeptlist.fixedcellischeck(0, 0) != true) { // 왜 진료과 전체선택 여부에 따라 진료의 그리드가 체크가 되고 안되는지 의문... -> TF문의 필요(일단 막아놓았음)
- var col = grd_atdoctlist.col;
- if (col == grd_atdoctlist.colRef("chksel")) { // 체크 선택
- var atdoctid = grd_atdoctlist.valueMatrix(grd_atdoctlist.row, grd_atdoctlist.colRef("atdoctid"));
- var orddeptcd = grd_atdoctlist.valueMatrix(grd_atdoctlist.row, grd_atdoctlist.colRef("orddeptcd"));
-
- var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
- var length = nodeList.length;
-
- for(var i = 1; i <= length; i++){
- var chksel = model.getValue("/root/main/list2/atdoct["+ i +"]/chksel");
- var atdoctid2 = model.getValue("/root/main/list2/atdoct["+ i +"]/atdoctid");
- var orddeptcd2 = model.getValue("/root/main/list2/atdoct["+ i +"]/orddeptcd");
-
- if (atdoctid == atdoctid2 && orddeptcd == orddeptcd2) {
- if (chksel == "true") {
- model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
- } else {
- model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
- }
- i = length;
- }
- }
- }
- }
- }
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_end" class="btn2_letter4" navindex="3" style="left:992px; top:258px; width:64px; height:19px; ">
- <caption>적용종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var chk = 0;
- var todd2 = ipt_todd2.value;
- for(var j = 0; j < grd_divslist.selectedRows; j++){
- var fromdd = grd_divslist.valueMatrix(grd_divslist.selectedRow(j), grd_divslist.colRef("fromdd"));
- if(todd2 < fromdd) {
- chk = chk + 1;
- }
- }
- if(chk > 0){
- messageBox("입력하신 적용종료일이 적용개시일보다 \n앞선 DATA가 존재합니다.\n적용종료일 및 선택하신 목록을 확인하십시요. \n\n적용종료에 ","E009");
- } else {
- // 멀티라인 적용종료
- model.removeNode("/root/hidden/list5/divs");
- var todd = model.getValue("/root/hidden/todd"); // 적용종료일
- var rows = grd_divslist.selectedRows;
-
- if (messageBox("선택된 심사배분 기준정보를 적용종료", "S001") == 6) {
- for (var i = 0; i < rows; i++) {
- var sel = grd_divslist.selectedRow(i);
- grd_divslist.rowstatus(sel) = 2;
- model.setValue("/root/main/list5/divs[" + sel + "]/todd", todd);
- }
-
- var updtdata = getGridUpdateData(grd_divslist);
- if (updtdata == "") {
- } else {
- model.makeValue("/root/hidden/list5/divs",updtdata);
- }
-
- // 적용종료일 변경하기
- if ( submit("TXPIB01502") ) {
- // 다시 조회
- fSearchJudgBaseInfoList();
- }
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_chksel" ref="/root/hidden/rdosel" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:440px; top:49px; width:195px; height:19px; ">
- <choices>
- <item>
- <label>진료과/진료의별</label>
- <value>0</value>
- </item>
- <!-- 20100220 병동별은 적용불가능하여 삭제
- <item>
- <label>병동별</label>
- <value>1</value>
- </item>
- -->
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fSetCheckSel();
- ]]>
- </script>
- </select1>
- <input id="ipt_todd2" ref="/root/hidden/todd" class="input_search" navindex="5" visibility="visible" inputtype="date" style="left:893px; top:258px; width:99px; height:19px; "/>
- <button id="btn_delete" class="btn2_letter2" navindex="15" style="left:1168px; top:258px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 멀티라인 삭제
- model.removeNode("/root/hidden/list5/divs");
- var rows = grd_divslist.selectedRows;
-
- if (messageBox("선택된 심사배분 기준정보를 삭제", "S001") == 6) {
- for (var i = 0; i < rows; i++) {
- var sel = grd_divslist.selectedRow(i);
- grd_divslist.rowstatus(sel) = 4;
- }
-
- var updtdata = getGridUpdateData(grd_divslist);
- if (updtdata == "") {
- } else {
- model.makeValue("/root/hidden/list5/divs",updtdata);
- }
-
- // 삭제 하기
- if ( submit("TXPIB01503") ) {
- // 다시 조회
- fSearchJudgBaseInfoList();
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption14" class="cell_1" style="left:2px; top:231px; width:101px; height:18px; vertical-align:middle; ">메모</caption>
- <input id="ipt_memo" ref="/root/main/data1/memo" class="input_default" navindex="13" appearance="input" style="left:104px; top:231px; width:121px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:229px; x2:225px; y2:229px; "/>
- <button id="button2" class="btn2_letter2" navindex="15" style="left:1125px; top:258px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_divslist.selectedRows;
- var rows = grd_divslist.rows;
-
- for(var i=0; i <= rows; i++){
- grd_divslist.rowstatus(i) = 0;
- }
-
- if(row <= 0){
- messageBox("수정할 목록을","C002");
- return false;
- }
-
- grd_divslist.rowstatus(row) = 2;
- var updtdata = getGridUpdateData(grd_divslist);
-
- if (updtdata == "") {
- } else {
- model.makeValue("/root/send/setdata/update",updtdata);
- }
-
- // 수정하기
- if ( submit("TXPIB01504") ) {
- // 다시 조회
- fSearchJudgBaseInfoList();
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:744px; width:1211px; height:40px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:3px; x2:1211px; y2:3px; "/>
- <button id="btn_save" class="btn4_letter4" navindex="20" style="left:1058px; top:10px; width:80px; height:22px; ">
- <caption>심사배분</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fValidateData()) {
-
- // 1. 저장할 데이터 만들기
- fMakeSaveData();
-
- // 2. 기존에 들어간 심사기준정보인지 DB 중복확인 한다.
- model.removenode("/root/hidden/data1");
- model.makeNode("/root/hidden/data1");
- submit("TRPIB01505");
-
- var isDuplicated = model.getValue("/root/hidden/data1/dupl/isduplicated");
- if (isDuplicated == "true") {
- messageBox("이미 등록된 심사배분 기준정보","E008");
- return false;
- }
-
- // 3. 데이터 저장
- if (submit("TXPIB01501")) {
- fSearchJudgBaseInfoList();
- }
-
- }
- ]]>
- </script>
- </button>
- <button id="btn_judginsert" class="btn4_letter5" navindex="20" style="left:966px; top:10px; width:92px; height:22px; ">
- <caption>심사자등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 심사자 등록 화면 띄우기
- modal("SMPIB02100", "1", "10", "10", "SMPIB02100", "", "", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" navindex="22" style="left:1138px; top:10px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_memo" visibility="hidden" style="left:935px; top:445px; width:261px; height:137px; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:255px; height:132px; "/>
- <textarea id="txa_memo" ref="/root/hidden/memo" style="left:6px; top:24px; width:247px; height:84px; "/>
- <caption id="caption15" class="search_name" style="left:6px; top:5px; width:115px; height:17px; ">메모입력조회</caption>
- <button id="button1" class="btn4_letter2" style="left:137px; top:110px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var gridRow = grd_divslist.row;
- var value = model.getValue("/root/main/list5/divs[" + gridRow + "]/memo");
- if(value != txa_memo.value){
- model.setValue("/root/main/list5/divs[" + gridRow + "]/memo",txa_memo.currentText);
- grd_divslist.addstatus(grd_divslist.row, "update");
- }
- txa_memo.value= "";
- txa_memo.refresh();
- grp_memo.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:196px; top:110px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // iptmemo.value= ""; iptmemo.refresh();
- iptmemo.value= "";
- grp_memo.visible = false;
- ]]>
- </script>
- </button>
- </group>
- <!-- 20060622 1008-->
- </xhtml:body>
- </xhtml:html>
|