12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511 |
- <?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>
- <listautd/>
- </list1>
- <list2>
- <listmech/>
- <listdiag/>
- <listedept/>
- <listespcl/>
- </list2>
- </main>
- <send>
- <autogrup/>
- <autogrupnm/>
- <orddeptcd/>
- <snglcalcscorcd/>
- <diagcd/>
- <minage/>
- <maxage/>
- <sex/>
- <useyn/>
- <ioflag/>
- <updatedata>
- <gruplist/>
- <mechlist/>
- <diaglist/>
- <seldeptlist/>
- <edeptlist/>
- <espcllist/>
- </updatedata>
- <item2>
- <grdsrchnm>
- <iptsearch/>
- <searchkind/>
- </grdsrchnm>
- </item2>
- <item3>
- <srchdiag>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- </srchdiag>
- </item3>
- </send>
- <send2>
- <autogrup/>
- <orddeptcd/>
- </send2>
- <hidden>
- <sppiz00400>
- <rslt>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- </rslt>
- </sppiz00400>
- <mode/>
- <smpic00200>
- <cond>
- <calcnm/>
- </cond>
- </smpic00200>
- <seldeptlist>
- <selyn/>
- <deptcd/>
- <deptnm/>
- <oldselyn/>
- </seldeptlist>
- <seldeptbase>
- <autogrup/>
- <autogrupnm/>
- <orddeptcd/>
- </seldeptbase>
- </hidden>
- <init>
- <orddeptcd>
- <nm>전체</nm>
- <cd>-</cd>
- </orddeptcd>
- </init>
- <temp>
- <calcdiagnm>
- <hngnm/>
- </calcdiagnm>
- <picmmech>
- <picmmech_calcscorcd/>
- <picmmech_hngnm/>
- </picmmech>
- </temp>
- <init3>
- </init3>
- </root>
- </instance>
- <submission id="TRPIB03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
- <submission id="TXPIB03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/result"/>
- <submission id="TRPIB03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2/grdsrchnm" resultref="/root/temp"/>
- <submission id="TRPIB03103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/main/list2"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" add="bottom" resultref="/root/hidden/tmp"/>
- <submission id="TRPIB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2/grdsrchnm" resultref="/root/temp"/>
- <submission id="TXPIB03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" replace="instance" resultref="/root/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- // grid를 인스턴스에 mapping후 인스턴스에 해당하는 빈줄 1줄이 생기므로 grid 초기화
- model.removeNodeset("/root/main/list1/listautd");
- model.removeNodeset("/root/main/list2/listmech");
- model.removeNodeset("/root/main/list2/listdiag");
- model.removeNodeset("/root/main/list2/listedept");
- model.removeNodeset("/root/main/list2/listespcl");
-
- // (PAM.js) submission id="TRPAM00101" 를 사용하여 Combo item을 가져온다.
- pamGetDeptCDDrIDList();
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/cd","-");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/nm","전체");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/deptengabbgr","-");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/reqdeptno","-");
- copyNodeType("/root/init/orddeptcd","/root/hidden/orddeptcd","before");
- // 김용민 지저분해서 삭제
- model.removeNodeset("/root/init/orddrid");
- model.removeNodeset("/root/init/centcd");
- model.removeNodeset("/root/init/subdeptcd");
- /*
- var nodelist = instance1.selectNodes("/root/init/orddeptcd/orddeptcdlist");
- var length = nodelist.length;
- model.makeValue("/root/init/orddeptcd/orddeptcdlist["+ (length+1) +"]/nm","전체");
- model.makeValue("/root/init/orddeptcd/orddeptcdlist["+ (length+1) +"]/cd","-");
- model.makeValue("/root/init/orddeptcd/orddeptcdlist["+ (length+2) +"]/nm"," ");
- model.makeValue("/root/init/orddeptcd/orddeptcdlist["+ (length+2) +"]/cd"," ");
- */
- /*
- ipt_snglcalcscorcd.attribute("_chartype") = "upper"; // 수가코드 대문자
- ipt_diagcd.attribute("_chartype") = "upper"; // 상병코드 대문자
-
- // 코드명(처방,상병)은 대문자로
- grd_autmech.colAttribute ( 1, "_chartype" ) = "upper";
- grd_autdiag.colAttribute ( 1, "_chartype" ) = "upper";
- */
- // 김용민 추가 - 과별 선택기능을 위한 진료과 리스트 작업
- model.removeNodeset("/root/hidden/seldeptlist");
- for( i = 1; i <= model.getXPathValue( "count(/root/init/orddeptcd/orddeptcdlist)" ) ; i++ ) {
- model.makeNode("root/hidden/seldeptlist[" + i + "]/selyn");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/deptcd");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/deptnm");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/oldselyn");
-
- model.setValue("/root/hidden/seldeptlist[" + i + "]/deptcd", model.getValue("/root/init/orddeptcd/orddeptcdlist[" + i + "]/cd") );
- model.setValue("/root/hidden/seldeptlist[" + i + "]/deptnm", model.getValue("/root/init/orddeptcd/orddeptcdlist[" + i + "]/nm") );
- }
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/cd","");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/nm","");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/deptengabbgr","-");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/reqdeptno","-");
- copyNodeType("/root/init/orddeptcd","/root/hidden/orddeptcd","before");
-
- cmb_orddeptcd.refresh();
- }
-
- // 처방이나 상병코드로 명칭을 검색 결과가 단일일때 명칭을 표기 아닐경우는 상병조회,수가조회 팝업과 연동
- function fSearchNm(mode) {
- var srchkind = model.getValue("/root/send/searchkind");
- var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
-
- var calc_col = grd_autdiagrgst.colRef("calcscorcd");
- var frd_col = grd_autdiagrgst.colRef("diagcd");
-
- model.resetInstanceNode("/root/main/temp");
- model.resetInstanceNode("/root/hidden/sppiz00400");
-
- model.setValue("/root/hidden/mode",mode);
-
- // srchkind - 1 : 수가 , 2 : 상병 , 3 : 처방
- // mode - 1 : 검색조건 , 2 : 그리드
- if ( (srchkind == 1 && mode == 1) || (grd_autdiagrgst.col == calc_col && mode == 2) ) { // 수가검색
- if (grd_autdiagrgst.col == calc_col && mode == 2) {
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/calcscornm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- }
- if (hngnm == "") { // 검색된 건수가 2건이상이면 팝업을 통해 조회한다.
- var trgtManWindow = getChildWindow("SMPIC00200"); // 수가 조회
- if (trgtManWindow == null) {
- if (mode == 1) { // 조회창에서 검색
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/send/iptsearch", "/root/temp", "", "");
- model.setValue("/root/send/iptsearch",model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
- model.setValue("/root/send/srchnm",model.getValue("/root/temp/picmmech/picmmech_hngnm"));
- }
- else if (mode == 2 && grd_autdiagrgst.col == calc_col) { // 그리드에서 검색
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/main/list1/listautd["+grd_autdiagrgst.row+"]/calcscorcd", "/root/temp", "", "");
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/calcscorcd",model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/calcscornm",model.getValue("/root/temp/picmmech/picmmech_hngnm"));
- var srchnm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- if (srchnm == "") {
- //model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+" ]/calcscorcd","");
- //model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+" ]/calcscornm","");
- }
- }
- } else {
- trgtManWindow.javascript.fSearchDiag();
- activateChild("SMPIC00200");
- }
- model.refresh();
- }
- } else if ( (srchkind == 2 && mode == 1) || (grd_autdiagrgst.col == frd_col && mode == 2)) { // 상병조회
-
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/diagnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
-
- if (hngnm == "") { // 검색된 건수가 2건이상이면 팝업을 통해 조회한다.
- var trgtManWindow = getChildWindow("SPPIZ00400"); // 상병 조회
- if (trgtManWindow == null) {
- model.setValue("/root/send/item1/srchdiag/basedd", model.getValue("/root/send/badd"));
- if (mode == 1) { // 조회창에서 검색
- model.setValue("/root/send/item1/srchdiag/diagcd", model.getValue("/root/send/iptsearch"));
- } else if (mode == 2) { // 그리드에서 검색
- model.setValue("/root/send/item1/srchdiag/diagcd", model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/diagcd"));
- }
- model.setValue("/root/send/item1/srchdiag/selectedrdodiagkind","1"); // icd10으로
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/item1/srchdiag", "/root/init", "", "");
-
- var srchnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- if (srchnm == "") {
-
- //model.setValue("/root/main/list1/listautd[" +grd_autdiagrgst.row+ " ]/diagcd","");
- //model.setValue("/root/main/list1/listautd[" +grd_autdiagrgst.row+ " ]/diagnm","");
-
- }
- } else {
- trgtManWindow.javascript.fSearchDiag();
- activateChild("SPPIZ00400");
- }
- model.refresh();
- }
-
- }
- }
-
- // 상병조회 팝업에서 상병을 더블클릭 했을경우 상병 그리드에 반영, 상병명은 상병조회팝업의 상병명을 사용하지 않고 ICD10 사용
- function fSetDiagCdNm() {
-
- var mode = model.getValue("/root/hidden/mode");
-
- if (mode == 1) {
- model.setValue("/root/send/iptsearch",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/send/srchnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- } else if (mode == 2) {
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/diagcd", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/diagnm", model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
-
- model.refresh();
- }
-
- // 조회시 데이터의 유효성체크
- function fCheckSrchData() {
- var srchkind = model.getValue("/root/send/searchkind");
- var iptsearch = model.getValue("/root/send/iptsearch");
-
- if (srchkind == "-") {
- return true;
- }
- if (iptsearch == "") {
- if (srchkind == "1") {
- messageBox("처방코드는","I003"); // 처방코드는 필수입력입니다.
- return false;
- }
- if (srchkind == "2") {
- messageBox("상병코드는","I003"); // 상병코드는 필수입력입니다.
- return false;
- }
- return true;
- }
- return true;
- }
-
- // 저장시 데이터의 유효성체크
- function fCheckSaveData() {
- var gupdtdata = getGridUpdateData(grd_autdiagrgst);
- var mupdtdata = getGridUpdateData(grd_autmech);
- var cupdtdata = getGridUpdateData(grd_autdiag);
- var eupdtdata = getGridUpdateData(grd_autedept);
- var supdtdata = getGridUpdateData(grd_autespcl);
- if (gupdtdata == "" && mupdtdata =="" && cupdtdata == ""&& eupdtdata == "" && supdtdata == "") {
- messageBox("변경된 데이터가","I004");
- return false;
- }
-
- for(var i = 1 ; i < grd_autdiagrgst.rows ; i++) {
- var status = grd_autdiagrgst.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list1/listautd[" + i + "]/autogrupnm") == "" ) {
- messageBox("그룹명칭은","I003");
- return false;
- }
- }
- }
-
- for(var i = 1 ; i < grd_autmech.rows ; i++) {
- var status = grd_autmech.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list2/listmech[" + i + "]/snglcalcscorcd") == "" ) {
- messageBox("수가코드는","I003");
- return false;
- }
- }
- }
- for(var i = 1 ; i < grd_autdiag.rows ; i++) {
- var status = grd_autdiag.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list2/listdiag[" + i + "]/diagcd") == ""
- || model.getValue("/root/main/list2/listdiag[" + i + "]/diagcd") == "-"
- )
- {
- messageBox("시작상병코드는","I003");
- return false;
- }
- }
- }
-
- return true;
- }
-
- function fCallSubList() {
- var rtn = null;
-
- model.removeNodeset("/root/main/list2/listmech");
- model.removeNodeset("/root/main/list2/listdiag");
- model.removeNodeset("/root/main/list2/listedept");
- model.removeNodeset("/root/main/list2/listespcl");
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/autogrup") == "9999" ) {
- grd_autdiag.colAttribute(grd_autdiag.colRef("orddeptcd"),"disabled") = "false";
- grd_autdiag.colAttribute(grd_autdiag.colRef("chgdiagcd"),"disabled") = "false";
- } else {
- grd_autdiag.colAttribute(grd_autdiag.colRef("orddeptcd"),"disabled") = "true";
- grd_autdiag.colAttribute(grd_autdiag.colRef("chgdiagcd"),"disabled") = "true";
- }
- // grd_autdiag.refresh();
- //if (grd_autdiagrgst.isCell(event.target) && grd_autdiagrgst.row >= grd_autdiagrgst.fixedRows) {
-
- var row = grd_autdiagrgst.selectedRow(0);
-
- var autogrup = grd_autdiagrgst.textmatrix(row, grd_autdiagrgst.colRef("autogrup")); // 그룹코드
- var orddeptcd = grd_autdiagrgst.textmatrix(row, grd_autdiagrgst.colRef("orddeptcd")); // 적용과
-
- model.setValue( "/root/send2/autogrup" , autogrup);
- model.setValue( "/root/send2/orddeptcd", orddeptcd);
-
- if ( autogrup == "" || orddeptcd == "" ) {
- grd_autmech.refresh();
- grd_autdiag.refresh();
- return; // 조회할 코드 없으면 그냥 리턴
- }
- rtn = submit("TRPIB03103");
- //}
- }
-
- function fSrchSnglCalcscorNm() {
- var col = grd_autmech.col;
- var row = grd_autmech.row;
-
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listmech["+row+"]/snglcalcscorcd"));
- model.setValue("/root/send/item2/grdsrchnm/searchkind","1");
-
- submit("TRPIB00202");
-
- var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
- if (hngnm == "") {
- setParameter("openflag", "hngnm"); // 검색 조건을 한글명으로 세팅
- setParameter("iParam_mother_view", "SMPPI00100_사전심사제어코드관리");
-
- //modal("SMPIC00200" ,"", "10", "10", "SMPIC00200","/root/send/item2/grdsrchnm/iptsearch", "/root/temp", "", "");
- modal("../../../pam/calcscormngtweb/xrw/SMPIC00202_수가조회", "", "200", "200" ,"SMPIC00202_수가조회", "", "");
-
- var sugainfo = getParameter("SMPIC00202");
- setCSVToNode("/root/init3", sugainfo, "grd_autmech");
- fSettingList("/root/init3", "grd_autmech");
- model.removeNodeset("/root/init3/grd_autmech");
- model.refresh();
-
-
- } else {
- model.setValue("/root/main/list2/listmech["+row+"]/hngnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- }
- }
- function fSettingList(pnode, grdName)
- {
- var datagrid = document.controls(grdName);
-
- var codynode = instance1.selectNodes(pnode + "/*");
-
- var addRow = datagrid.rows - datagrid.fixedRows;
-
-
- for (var j = 1; j <= codynode.length ; j++)
- {
-
- if(addRow > datagrid.rows - datagrid.fixedRows)
- {
- datagrid.addRow(false,true);;
- datagrid.select(datagrid.row, datagrid.col) = true;
- addRow = datagrid.rows - datagrid.fixedRows;
- }
- model.setValue(datagrid.nodeset + "["+addRow+"]/orddeptcd",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/orddeptcd"));
- model.setValue(datagrid.nodeset + "["+addRow+"]/autogrup",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/autogrup"));
- model.setValue(datagrid.nodeset + "["+addRow+"]/snglcalcscorcd", model.getValue(pnode +"/" + grdName + "[" + j + "]/picmmech_calcscorcd"));
- model.setValue(datagrid.nodeset + "["+addRow+"]/hngnm",model. getValue(pnode +"/" + grdName + "[" + j + "]/picmmech_hngnm"));
-
- addRow = addRow + 1;
- }
-
- model.recalculate();
- model.refresh();
- }
- function fSrchDiagNm(fromto) {
- var col = grd_autdiag.col;
- var row = grd_autdiag.row;
- if ( fromto == "FROM" ) {
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list2/listdiag["+row+"]/diagcd") == '-' ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagcd","");
- }
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listdiag["+row+"]/diagcd"));
-
- } else if ( fromto == "TO" ) {
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list2/listdiag["+row+"]/diagcdto") == '-' ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagcdto","");
- }
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listdiag["+row+"]/diagcdto"));
- } else if ( fromto == "CHG" ) {
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list2/listdiag["+row+"]/chgdiagcd") == '-' ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/chgdiagcd","");
- }
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listdiag["+row+"]/chgdiagcd"));
- } else if ( fromto == "CHKF" ) {
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list2/listdiag["+row+"]/chkdiagcd") == '-' ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/chkdiagcd","");
- }
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listdiag["+row+"]/chkdiagcd"));
- } else if ( fromto == "CHKT" ) {
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list2/listdiag["+row+"]/chkdiagcdto") == '-' ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/chkdiagcdto","");
- }
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listdiag["+row+"]/chkdiagcdto"));
- }
- model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
-
- submit("TRPIB00202");
-
- var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
- if (hngnm == "") {
- var today = getCurrentDate(); // 현재 날짜를 얻어옴
- model.setValue("/root/send/item3/srchdiag/basedd", today);
- if ( fromto == "FROM" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd",model.getValue("/root/main/list2/listdiag["+row+"]/diagcd"));
- } else if ( fromto == "TO" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd",model.getValue("/root/main/list2/listdiag["+row+"]/diagcdto"));
- } else if ( fromto == "CHG" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd",model.getValue("/root/main/list2/listdiag["+row+"]/chgdiagcd"));
- } else if ( fromto == "CHKF" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd",model.getValue("/root/main/list2/listdiag["+row+"]/chkdiagcd"));
- } else if ( fromto == "CHKT" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd",model.getValue("/root/main/list2/listdiag["+row+"]/chkdiagcdto"));
- }
- model.setValue("/root/send/item3/srchdiag/selectedrdodiagkind","1"); // icd10으로
- model.resetInstanceNode("/root/hidden/sppiz00400/rslt"); // 20100313 초기화
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/item3/srchdiag", "/root/init", "", "");
-
- var diagcd = model.getValue("/root/hidden/sppiz00400/rslt/diagcd");
-
- if ( fromto == "FROM" ) {
- if (diagcd == "") {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcd","-");
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnm","-");
- } else {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcd",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
- } else if ( fromto == "TO" ) {
- if (diagcd == "") {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcdto","-");
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnmto","-");
- } else {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcdto",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnmto",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
- } else if ( fromto == "CHG" ) {
- if (diagcd == "") {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chgdiagcd","-");
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chgdiagnm","-");
- } else {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chgdiagcd",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chgdiagnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
- } else if ( fromto == "CHKF" ) {
- if (diagcd == "") {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagcd","-");
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagnm","-");
- } else {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagcd",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
- } else if ( fromto == "CHKT" ) {
- if (diagcd == "") {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagcdto","-");
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagnmto","-");
- } else {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagcdto",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list2/listdiag[" + row + " ]/chkdiagnmto",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
- }
-
- } else {
- if ( fromto == "FROM" ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- } else if ( fromto == "TO" ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagnmto",model.getValue("/root/temp/calcdiagnm/hngnm"));
- } else if ( fromto == "CHG" ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/chgdiagnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- } else if ( fromto == "CHKF" ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/chkdiagnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- } else if ( fromto == "CHKT" ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/chkdiagnmto",model.getValue("/root/temp/calcdiagnm/hngnm"));
- }
- }
- }
-
- // 김용민 ... 진료과 선택창 띄위기전에 초기작업을 한다.
- function fSelectDeptInit() {
-
- model.setValue("/root/hidden/seldeptbase/autogrup" , model.getValue("/root/main/list1/listautd[" + grd_autdiagrgst.row + "]/autogrup") );
- model.setValue("/root/hidden/seldeptbase/autogrupnm", model.getValue("/root/main/list1/listautd[" + grd_autdiagrgst.row + "]/autogrupnm") );
- model.setValue("/root/hidden/seldeptbase/orddeptcd", model.getValue("/root/main/list1/listautd[" + grd_autdiagrgst.row + "]/orddeptcd") );
- // 일단 기존꺼 지우고
- //for( i = 1; i <= model.getXPathValue( "count(/root/init/orddeptcd/orddeptcdlist)" ) ; i++ ) {
- for( i = 1; i <= model.getXPathValue( "count(/root/hidden/seldeptlist)" ) ; i++ ) {
- model.setValue("/root/hidden/seldeptlist[" + i + "]/selyn", "false" );
- model.setValue("/root/hidden/seldeptlist[" + i + "]/oldselyn", "false" );
- grd_seldeptlist.clearStatus();
- }
- for( i = grd_autdiagrgst.fixedRows; i < grd_autdiagrgst.rows ; i++ ) {
- if ( model.getValue("/root/hidden/seldeptbase/autogrup") == model.getValue("/root/main/list1/listautd[" + i + "]/autogrup") ) {
- var tmpDeptcd = model.getValue("/root/main/list1/listautd[" + i + "]/orddeptcd");
-
- for( j = grd_seldeptlist.fixedRows; j < grd_seldeptlist.rows ; j++ ) {
- if ( tmpDeptcd == grd_seldeptlist.valueMatrix(j, grd_seldeptlist.colRef("deptcd")) ) {
- model.setValue("/root/hidden/seldeptlist[" + j + "]/selyn","true");
- model.setValue("/root/hidden/seldeptlist[" + j + "]/oldselyn","true");
- }
- }
- }
- }
- model.refresh();
-
- }
- // 김용민 ... 진료과 선택창 완료시 체크
- function fSelectDeptChk() {
- var changecnt = 0;
- var alldept = 0;
- var etcdept = 0;
-
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- if ( model.getValue("/root/hidden/seldeptlist[" + i + "]/selyn") != model.getValue("/root/hidden/seldeptlist[" + i + "]/oldselyn") )
- {
- changecnt++;
- }
-
- if ( model.getValue("/root/hidden/seldeptlist[" + i + "]/selyn") == "true" ) {
- if ( model.getValue("/root/hidden/seldeptlist[" + i + "]/deptcd") == "-" ) {
- alldept++;
- } else {
- etcdept++;
- }
- }
- }
-
- if ( changecnt == 0 ) {
- messageBox("변경된 데이터가","I004");
- return false;
- }
- if ( alldept != 0 && etcdept != 0 ) {
- messageBox("전체과와 타과를 같이 선택할수","I004");
- return false;
- }
-
- if ( alldept == 0 && etcdept == 0 ) {
- messageBox("선택된 진료과가 하나도","I004");
- return false;
- }
-
- return true;
- }
- // 김용민 - 선택된 진료과를 입력한다.
- function fSelectDeptInput() {
-
- var jobrow = 0;
-
- model.removeNodeset("/root/temp/save/seldeptlist");
-
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- if ( model.getValue("root/hidden/seldeptlist[" + i + "]/selyn") == "true"
- && model.getValue("root/hidden/seldeptlist[" + i + "]/oldselyn") == "false"
- )
- {
- // 신규입력
- jobrow++;
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/autogrup");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/basedept");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/status");
-
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/autogrup", model.getValue("/root/hidden/seldeptbase/autogrup") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/basedept", model.getValue("/root/hidden/seldeptbase/orddeptcd") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd", model.getValue("/root/hidden/seldeptlist[" + i + "]/deptcd") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/status", "i" );
-
- } else if ( model.getValue("root/hidden/seldeptlist[" + i + "]/selyn") == "false"
- && model.getValue("root/hidden/seldeptlist[" + i + "]/oldselyn") == "true"
- )
- {
- // 삭제
- jobrow++;
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/autogrup");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/basedept");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/status");
-
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/autogrup", model.getValue("/root/hidden/seldeptbase/autogrup") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/basedept", "" );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd", model.getValue("/root/hidden/seldeptlist[" + i + "]/deptcd") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/status", "d" );
- }
-
- }
-
- model.setValue("/root/send/updatedata/seldeptlist", getNodeListCSV(instance1.selectNodes("/root/temp/save/seldeptlist")) );
- }
- // 김용민 - 화면 display 버튼 사용여부 제어
- function fSetDisplayDisable(iFlag) {
- if ( iFlag == true ) {
- grd_autdiagrgst.disabled = true;
- grd_autmech.disabled = true;
- grd_autdiag.disabled = true;
-
- btn_search.disabled = true;
- btn_save.disabled = true;
- btn_init.disabled = true;
-
- btn_sel_dept.disabled = true;
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_copy.disabled = true;
- btn_autdiag_insrow.disabled = true;
- btn_autdiag_delrow.disabled = true;
- btn_autmech_insrow.disabled = true;
- btn_autmech_delrow.disabled = true;
-
- } else {
-
- grd_autdiagrgst.disabled = false;
- grd_autmech.disabled = false;
- grd_autdiag.disabled = false;
- btn_search.disabled = false;
- btn_save.disabled = false;
- btn_init.disabled = false;
-
- btn_sel_dept.disabled = false;
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_copy.disabled = false;
- btn_autdiag_insrow.disabled = false;
- btn_autdiag_delrow.disabled = false;
- btn_autmech_insrow.disabled = false;
- btn_autmech_delrow.disabled = false;
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1194;1,238;1,241;1,240;1,237;1,240;1,245;1,247;1,247;" style="vertical-align:bottom; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:13px; ">자동주석등록관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:58px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:55px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">그룹코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 1. 자동주석등록 목록 조회
- model.removenode("/root/main/list1");
- model.removeNodeset("/root/main/list2/listmech"); // 조회시 처방 그리드도 지운다
- model.removeNodeset("/root/main/list2/listdiag"); // 조회시 상병 그리드도 지운다.
- model.removeNodeset("/root/main/list2/listedept");
- model.removeNodeset("/root/main/list2/listespcl");
- model.makeNode("/root/main/list1");
- submit("TRPIB03101");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:49px; "/>
- <caption id="caption11" class="search_name" style="left:180px; top:9px; width:98px; height:17px; ">그룹명칭 :</caption>
- <input id="ipt_srchspclcd" ref="/root/send/autogrupnm" class="input_search" style="left:270px; top:8px; width:225px; height:19px; "/>
- <input id="input1" ref="/root/send/autogrup" class="input_search" imemode="disabled" _chartype="upper" style="left:110px; top:8px; width:65px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" navindex="4" appearance="minimal" style="left:580px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:502px; top:9px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption3" class="search_name" style="left:730px; top:9px; width:86px; height:17px; ">수가코드 :</caption>
- <input id="ipt_snglcalcscorcd" ref="/root/send/snglcalcscorcd" class="input_search" imemode="disabled" inputtype="button" _chartype="upper" style="left:825px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- setParameter("openflag", "hngnm");
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/send/snglcalcscorcd", "/root/temp", "", "");
- var calcscorcd = model.getValue("/root/temp/picmmech/picmmech_calcscorcd");
- if (calcscorcd != "") {
- model.setValue("/root/send/snglcalcscorcd", calcscorcd);
- ipt_snglcalcscorcd.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption8" class="search_name" style="left:930px; top:9px; width:86px; height:17px; ">상병코드 :</caption>
- <input id="ipt_diagcd" ref="/root/send/diagcd" class="input_search" imemode="disabled" _chartype="upper" style="left:1025px; top:8px; width:75px; height:19px; "/>
- <caption id="caption9" class="search_name" visibility="hidden" style="left:180px; top:33px; width:86px; height:17px; ">최소나이 :</caption>
- <input id="input4" ref="/root/send/minage" class="input_search" visibility="hidden" imemode="disabled" _chartype="upper" style="left:270px; top:32px; width:65px; height:19px; "/>
- <input id="input5" ref="/root/send/maxage" class="input_search" visibility="hidden" imemode="disabled" _chartype="upper" style="left:430px; top:32px; width:65px; height:19px; "/>
- <caption id="caption10" class="search_name" visibility="hidden" style="left:340px; top:33px; width:86px; height:17px; ">최대나이 :</caption>
- <caption id="caption12" class="search_name" visibility="hidden" style="left:502px; top:33px; width:86px; height:17px; ">성 별 :</caption>
- <caption id="caption13" class="search_name" style="left:730px; top:33px; width:86px; height:17px; ">사용여부 :</caption>
- <select1 id="combo1" ref="/root/send/sex" navindex="4" visibility="hidden" appearance="minimal" style="left:580px; top:32px; width:75px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>남자</label>
- <value>M</value>
- </item>
- <item>
- <label>여자</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/useyn" navindex="4" appearance="minimal" style="left:825px; top:32px; width:75px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/send/ioflag" navindex="4" appearance="minimal" style="left:1025px; top:32px; width:75px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <caption id="caption17" class="search_name" style="left:930px; top:33px; width:86px; height:17px; ">구 분 :</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:131px; height:13px; ">자동주석 그룹 목록</caption>
- <line id="line1" class="line_1" style="x1:5px; y1:90px; x2:900px; y2:90px; "/>
- <button id="btn_delrow" class="btn2_letter3" style="left:793px; top:70px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/autogrup") == "9999" ) {
- messageBox("9999 (제외상병) 은 행삭제","E001");
- return;
- }
- var row = grd_autdiagrgst.row;
- var rowstatus = grd_autdiagrgst.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_autdiagrgst.deleteRow(row,true);
- } else {
- grd_autdiagrgst.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:739px; top:70px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_autdiagrgst.addRow(false);
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/orddeptcd","-");
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/sex","-");
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/minage","0");
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/maxage","999");
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/useyn","Y");
- model.setValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/ioflag","O");
- grd_autdiagrgst.col = 1; // 추가된 row로 이동
- fCallSubList(); // 행추가시 처방,상병 목록을 다시 조회해 온다.
- ]]>
- </script>
- </button>
- <datagrid id="grd_autmech" nodeset="/root/main/list2/listmech" caption="No^그룹^처방코드^처방명^적용과" colsep="^" colwidth="28, 35, 80, 180, 55" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:5px; top:347px; width:340px; height:395px; ">
- <col ref="rn"/>
- <col ref="autogrup" type="output"/>
- <col imemode="disabled" ref="snglcalcscorcd" type="inputbutton" _chartype="upper"/>
- <col ref="hngnm" type="output"/>
- <col disabled="true" ref="orddeptcd" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var col = grd_autmech.col;
- var row = grd_autmech.row;
-
- // 처방코드나 상병코드이면
- if (col == grd_autmech.colRef("snglcalcscorcd")) {
- fSrchSnglCalcscorNm();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_autmech.col;
- var row = grd_autmech.row;
-
- // 처방코드이면
- if (col == grd_autmech.colRef("snglcalcscorcd")) {
- fSrchSnglCalcscorNm();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_autmech.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_copy" class="btn2_letter3" style="left:847px; top:70px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/autogrup") == "9999" ) {
- messageBox("9999 (제외상병) 은 행복사","E001");
- return;
- }
- var oldrow = grd_autdiagrgst.row;
- if (oldrow <= 0) return;
- grd_autdiagrgst.addRow();
- var newrow = grd_autdiagrgst.row;
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/autogrupcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/autogrupcd"));
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/autogrup", model.getValue("/root/main/list1/listautd[" + oldrow + "]/autogrup"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/autogrupnm", model.getValue("/root/main/list1/listautd[" + oldrow + "]/autogrupnm"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/orddeptcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/orddeptcd"));
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/snglcalcscorcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/snglcalcscorcd"));
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/orddeptcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/orddeptcd"));
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/diagcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/diagcd"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/minage", model.getValue("/root/main/list1/listautd[" + oldrow + "]/minage"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/maxage", model.getValue("/root/main/list1/listautd[" + oldrow + "]/maxage"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/sex", model.getValue("/root/main/list1/listautd[" + oldrow + "]/sex"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/useyn", model.getValue("/root/main/list1/listautd[" + oldrow + "]/useyn"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/ioflag", model.getValue("/root/main/list1/listautd[" + oldrow + "]/ioflag"));
- grd_autdiagrgst.col = 1; // 복사된 곳으로 이동
- ]]>
- </script>
- </button>
- <datagrid id="grd_autdiag" nodeset="/root/main/list2/listdiag" caption="그룹^R/O^시작상병^시작상병명^종료상병^종료상병명^체크시작^상병명^체크종료^상병명^적용과^체크^대체상병^대체상병명^seqno" colsep="^" colwidth="35, 30, 60, 180, 60, 145, 60, 180, 60, 171, 55, 50, 55, 180, 47" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:347px; top:348px; width:553px; height:394px; ">
- <col ref="autogrup" type="output"/>
- <col checkvalue="R,C" ref="diagkindcd" type="checkbox"/>
- <col imemode="disabled" ref="diagcd" type="inputbutton" _chartype="upper"/>
- <col ref="diagnm" type="output"/>
- <col imemode="disabled" ref="diagcdto" type="inputbutton" _chartype="upper"/>
- <col ref="diagnmto" type="output"/>
- <col imemode="disabled" ref="chkdiagcd" type="inputbutton" visibility="hidden" _chartype="upper"/>
- <col ref="chkdiagnm" type="output" visibility="hidden"/>
- <col imemode="disabled" ref="chkdiagcdto" type="inputbutton" visibility="hidden" _chartype="upper"/>
- <col ref="chkdiagnmto" type="output" visibility="hidden"/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="chkflag" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>둘다</label>
- <value>-</value>
- </item>
- <item>
- <label>체크만</label>
- <value>C</value>
- </item>
- <item>
- <label>발생만</label>
- <value>M</value>
- </item>
- </choices>
- </col>
- <col imemode="disabled" ref="chgdiagcd" type="inputbutton" visibility="hidden" _chartype="upper"/>
- <col ref="chgdiagnm" type="output" visibility="hidden"/>
- <col ref="seqno" type="output" visibility="hidden"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var col = grd_autdiag.col;
- var row = grd_autdiag.row;
-
- if ( col == grd_autdiag.colRef("diagcd") ) {
- fSrchDiagNm("FROM");
- }
- else if ( col == grd_autdiag.colRef("diagcdto") ) {
- fSrchDiagNm("TO");
- }
- else if ( col == grd_autdiag.colRef("chgdiagcd") ) {
- fSrchDiagNm("CHG");
- }
- else if ( col == grd_autdiag.colRef("chkdiagcd") ) {
- fSrchDiagNm("CHKF");
- }
- else if ( col == grd_autdiag.colRef("chkdiagcdto") ) {
- fSrchDiagNm("CHKT");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_autdiag.col;
- var row = grd_autdiag.row;
- var oldvalue = grd_autdiag.valueMatrix(row,col);
- var status = grd_autdiag.rowStatus(row);
-
- if ( col == grd_autdiag.colRef("diagcd") ) {
- fSrchDiagNm("FROM");
- }
- else if ( col == grd_autdiag.colRef("diagcdto") ) {
- fSrchDiagNm("TO");
- }
- else if ( col == grd_autdiag.colRef("chgdiagcd") ) {
- fSrchDiagNm("CHG");
- }
- else if ( col == grd_autdiag.colRef("chkdiagcd") ) {
- fSrchDiagNm("CHKF");
- }
- else if ( col == grd_autdiag.colRef("chkdiagcdto") ) {
- fSrchDiagNm("CHKT");
- }
-
- var newvalue = grd_autdiag.valueMatrix(row,col);
- if ( oldvalue == "-" ) { oldvalue = ""; }
- if ( newvalue == "-" ) { newvalue = ""; }
- if ( oldvalue != newvalue ) {
- if (status == 0) { grd_autdiag.rowstatus(row) = 2; }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_autdiag.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_autdiagrgst" nodeset="/root/main/list1/listautd" caption="그룹코드^그룹명칭^적용과^성별^최소나이^최대나이^사용여부^구분" colsep="^" colwidth="68, 306, 153, 71, 62, 62, 67, 64" dataheight="23" defaultrows="0" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:5px; top:96px; width:895px; height:224px; ">
- <col ref="autogrup" type="output" maxlength="12" _key="true"/>
- <col ref="autogrupnm" type="input"/>
- <col disabled="true" ref="orddeptcd" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="sex" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>남자</label>
- <value>M</value>
- </item>
- <item>
- <label>여자</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="minage" type="input" visibility="hidden" format="###"/>
- <col ref="maxage" type="input" visibility="hidden" format="###"/>
- <col ref="useyn" type="combo">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="ioflag" type="combo">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_autdiagrgst.col;
- if (col == grd_autdiagrgst.colRef("detail")) { // 그룹코드
- //if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/orddeptcd") == "" ) { return; }
- /*
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/autogrup") == "9999" ) {
- grd_autdiag.colAttribute(4,"disabled") = "false";
- } else {
- grd_autdiag.colAttribute(4,"disabled") = "true";
- }
- */
- fCallSubList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_autdiagrgst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_autdiagrgst.row;
- var col = grd_autdiagrgst.col;
- if (col == grd_autdiagrgst.colRef("orddeptcd")) { // 적용과가 변경된 경우
-
- var mupdtdata = getGridUpdateData(grd_autmech);
- var cupdtdata = getGridUpdateData(grd_autdiag);
-
- if ( mupdtdata != "" || cupdtdata != "") {
- messageBox("작업중인 처방, 상병 내역이 있습니다. 변경된 진료과로 내역을 변경합니다.","");
-
- var base_autogrup = model.getValue("/root/main/list1/listautd[" + row + "]/autogrup");
- var base_orddeptcd = model.getValue("/root/main/list1/listautd[" + row + "]/orddeptcd");
-
- for( i = grd_autmech.fixedRows; i < grd_autmech.rows ; i++ ) {
- var rowstat = grd_autmech.rowStatus(i);
- if (
- model.getValue("/root/main/list2/listmech[" + i + "]/autogrup") == base_autogrup
- && model.getValue("/root/main/list2/listmech[" + i + "]/orddeptcd") != base_orddeptcd
- && ( rowstat == 1 || rowstat == 2 || rowstat == 3 )
- ) {
- model.setValue("/root/main/list2/listmech[" + i + "]/orddeptcd", base_orddeptcd);
- }
- }
- for( i = grd_autdiag.fixedRows; i < grd_autdiag.rows ; i++ ) {
- var rowstat = grd_autdiag.rowStatus(i);
- if (
- model.getValue("/root/main/list2/listdiag[" + i + "]/autogrup") == base_autogrup
- && model.getValue("/root/main/list2/listdiag[" + i + "]/orddeptcd") != base_orddeptcd
- && ( rowstat == 1 || rowstat == 2 || rowstat == 3 )
- ) {
- model.setValue("/root/main/list2/listdiag[" + i + "]/orddeptcd", base_orddeptcd);
- }
- }
- } else {
- fCallSubList();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/orddeptcd") == "" ) { return; }
- if (grd_autdiagrgst.isCell(event.target) && grd_autdiagrgst.row >= grd_autdiagrgst.fixedRows) {
- var cur_row = grd_autdiagrgst.row ;
- if (cur_row > 0) {
- fCallSubList();
- }
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:5px; y1:345px; x2:343px; y2:344px; "/>
- <caption id="caption4" class="tit_2" style="left:10px; top:326px; width:136px; height:13px; ">자동주석 처방 목록</caption>
- <caption id="caption5" class="tit_2" style="left:351px; top:326px; width:136px; height:13px; ">자동주석 질병 목록</caption>
- <line id="line3" class="line_1" style="x1:349px; y1:345px; x2:900px; y2:344px; "/>
- <button id="btn_autmech_delrow" class="btn2_letter3" style="left:292px; top:322px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_autmech.row;
- var rowstatus = grd_autmech.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_autmech.deleteRow(row,true);
- } else {
- grd_autmech.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="btn_autmech_insrow" class="btn2_letter3" style="left:236px; top:322px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/orddeptcd") == "" ) { return; }
-
- grd_autmech.addRow(false,true);
-
- model.setValue("/root/main/list2/listmech["+grd_autmech.row+"]/orddeptcd",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/orddeptcd"));
- model.setValue("/root/main/list2/listmech["+grd_autmech.row+"]/autogrup",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/autogrup"));
- grd_autmech.col = 1; // 추가된 row로 이동
- ]]>
- </script>
- </button>
- <button id="btn_autdiag_delrow" class="btn2_letter3" style="left:848px; top:323px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_autdiag.row;
- var rowstatus = grd_autdiag.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_autdiag.deleteRow(row,true);
- } else {
- grd_autdiag.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="btn_autdiag_insrow" class="btn2_letter3" style="left:794px; top:323px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/orddeptcd") == "" ) { return; }
- grd_autdiag.addRow(false,true);
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/orddeptcd",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/orddeptcd"));
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/autogrup",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/autogrup"));
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/chkflag","-"); // 적용과 전체
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/diagcd","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/diagnm","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/diagcdto","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/diagnmto","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/chgdiagcd","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/chgdiagnm","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/chkdiagcd","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/chkdiagnm","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/chkdiagcdto","-");
- model.setValue("/root/main/list2/listdiag["+grd_autdiag.row+"]/chkdiagnmto","-");
- grd_autdiag.col = 1; // 추가된 row로 이동
- ]]>
- </script>
- </button>
- <caption id="caption14" class="tit_2" style="left:140px; top:75px; width:460px; height:13px; color:#0000ff; ">동일내역을 과별로 적용시 진료과선택 또는 행복사 기능을 이용하세요</caption>
- <button id="btn_sel_dept" class="btn2_letter5" navindex="5" style="left:663px; top:70px; width:75px; height:19px; ">
- <caption>진료과선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/orddeptcd") == "" ) { return; }
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/autogrup") == "9999" ) {
- messageBox("9999 (제외상병) 은 과별선택을","E001");
- return;
- }
- var gupdtdata = getGridUpdateData(grd_autdiagrgst);
- var mupdtdata = getGridUpdateData(grd_autmech);
- var cupdtdata = getGridUpdateData(grd_autdiag);
- if (gupdtdata != "" || mupdtdata != "" || cupdtdata != "") {
- messageBox("작업중인 내역을 저장후","I008");
- return false;
- }
- fSelectDeptInit();
- grp_dept_select.attribute("top") = 110;
- grp_dept_select.attribute("left") = 380;
- grd_seldeptlist.row = 1;
- grp_dept_select.visible = true;
- fSetDisplayDisable(true); // 화면 사용여부 제어
- ]]>
- </script>
- </button>
- <caption id="caption18" class="tit_2" style="left:910px; top:75px; width:136px; height:13px; ">자동주석 제외과</caption>
- <line id="line5" class="line_1" style="x1:906px; y1:92px; x2:1191px; y2:91px; "/>
- <button id="btn_edept_add" class="btn2_letter3" style="left:1079px; top:70px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/orddeptcd") == "" ) { return; }
- if ( model.getValue("root/main/list1/listautd[ "+ grd_autdiagrgst.row + "]/orddeptcd") != "-" ) {
- messageBox("제외과는 적용과가 전체일 때만 등록 가능합니다","");
- return false;
- }
- grd_autedept.addRow(false,true);
- model.setValue("/root/main/list2/listedept["+grd_autedept.row+"]/autogrup",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/autogrup"));
- grd_autedept.col = 1; // 추가된 row로 이동
- ]]>
- </script>
- </button>
- <button id="btn_edept_del" class="btn2_letter3" style="left:1135px; top:70px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_autedept.row;
- var rowstatus = grd_autedept.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_autedept.deleteRow(row,true);
- } else {
- grd_autedept.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_autedept" nodeset="/root/main/list2/listedept" caption="그룹코드^제외과^seqno" colsep="^" colwidth="60, 198, 39" dataheight="23" defaultrows="0" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:905px; top:95px; width:287px; height:224px; ">
- <col ref="autogrup" type="output" maxlength="12" _key="true"/>
- <col disabled="false" ref="orddeptcd" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="seqno" visibility="hidden"/>
- </datagrid>
- <button id="btn_sort" class="btn2_letter5" navindex="5" style="left:587px; top:70px; width:75px; height:19px; ">
- <caption>우선순위</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SMPIB01410" ,"", "10", "10", "SMPIB01410", "/root/send", "/root/init", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_excelsave" class="btn2_letter4" style="left:522px; top:70px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_autdiagrgst.rows > 1) {
- var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
- // grd_clbsmast.saveExcel(fileName, "SheetName", true, true, "", "", true);
- grd_autdiagrgst.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;col_1:label;col_2:label;col_3:label;col_4:label;col_5:label;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 대상자가", "I004"); ///엑셀저장할 대상자가 없습니다.
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_autespcl" nodeset="/root/main/list2/listespcl" autoresize="true" autosizemouse="true" caption="그룹코드^주석^seqno" colsep="^" colwidth="60, 217, 39" dataheight="23" defaultrows="0" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:907px; top:348px; width:287px; height:392px; ">
- <col ref="autogrup" type="output" maxlength="12" _key="true"/>
- <col ref="spclspec" type="input"/>
- <col ref="seqno" visibility="hidden"/>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:1137px; top:323px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_autespcl.row;
- var rowstatus = grd_autespcl.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_autespcl.deleteRow(row,true);
- } else {
- grd_autespcl.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1081px; top:323px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_autespcl.addRow(false,true);
- model.setValue("/root/main/list2/listespcl["+grd_autespcl.row+"]/autogrup",model.getValue("/root/main/list1/listautd["+grd_autdiagrgst.row+"]/autogrup"));
- grd_autedept.col = 1; // 추가된 row로 이동
- ]]>
- </script>
- </button>
- <line id="line6" class="line_1" style="x1:908px; y1:345px; x2:1193px; y2:344px; "/>
- <caption id="caption16" class="tit_2" style="left:912px; top:328px; width:136px; height:15px; ">자동주석 내용</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:755px; width:1194px; height:27px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:0px; x2:700px; y2:0px; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 1. 저장데이터 유효성 체크
- if (!fCheckSaveData()) return;
-
- // 2. 저장하시겠습니까?
- var rtn = messageBox("자동주석등록 기준정보를", "Q002");
- if (rtn != 6) {
- return;
- }
-
- // 3. 저장
- model.setValue("/root/send/updatedata/gruplist",grd_autdiagrgst.getupdatedata());
- model.setValue("/root/send/updatedata/mechlist",grd_autmech.getupdatedata());
- model.setValue("/root/send/updatedata/diaglist",grd_autdiag.getupdatedata());
- model.setValue("/root/send/updatedata/edeptlist",grd_autedept.getupdatedata());
- model.setValue("/root/send/updatedata/espcllist",grd_autespcl.getupdatedata());
- if (submit("TXPIB03101")) {
- messageBox("저장", "I002");
- }
- /*
- // 4. 재조회
- model.removeNodeset("/root/main/list2/listmech"); // 조회시 처방 그리드도 지운다
- model.removeNodeset("/root/main/list2/listdiag"); // 조회시 상병 그리드도 지운다.
- model.removeNodeset("/root/main/list2/listedept"); // 조회시 상병 그리드도 지운다.
- submit("TRPIB03101"); */
-
-
- // model.removeNodeset("/root/main/list2/listmech");
- // model.removeNodeset("/root/main/list2/listdiag");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_dept_select" visibility="hidden" style="left:35px; top:80px; width:360px; height:530px; border-color:#333333; border-style:solid; ">
- <datagrid id="grd_seldeptlist" nodeset="/root/hidden/seldeptlist" caption="선택^진료과코드^진료과명^기존선택" colsep="^" colwidth="56, 88, 162, 9, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:14px; top:74px; width:330px; height:400px; border-color:#333333; ">
- <col ref="selyn" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="oldselyn" visibility="hidden"/>
- </datagrid>
- <caption id="caption15" class="tit_2" style="left:5px; top:5px; width:344px; height:13px; ">자동메모 진료과 선택 (그룹코드로 조회후 사용하세요)</caption>
- <button id="button6" class="btn4_letter2" style="left:281px; top:492px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_dept_select.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" style="left:216px; top:492px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( fSelectDeptChk() == false ) return;
- if ( messageBox("선택된 진료과로 수가코드, 상병이 복사됩니다.", "Q003") != 6 ) return;
- fSelectDeptInput(); // 저장 데이타 생성
- grp_dept_select.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
- if (submit("TXPIB03102")) {
- messageBox("저장", "I002");
- }
-
- // 4. 재조회
- model.removeNodeset("/root/main/list2/listmech"); // 조회시 처방 그리드도 지운다
- model.removeNodeset("/root/main/list2/listdiag"); // 조회시 상병 그리드도 지운다.
- submit("TRPIB03101");
-
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:4px; y1:20px; x2:354px; y2:20px; "/>
- <output id="opt_seldeptcd" ref="/root/hidden/seldeptbase/autogrup" class="output_fix" appearance="output" style="left:14px; top:29px; width:75px; height:19px; color:#ff00ff; "/>
- <output id="opt_seldeptnm" ref="/root/hidden/seldeptbase/autogrupnm" class="output_fix" appearance="output" style="left:94px; top:29px; width:245px; height:19px; color:#ff00ff; "/>
- <button id="btn_selall" class="btn2_letter4" navindex="5" style="left:214px; top:51px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- model.setValue("/root/hidden/seldeptlist[" + i + "]/selyn","true");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_selno" class="btn2_letter4" navindex="5" style="left:279px; top:51px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- model.setValue("/root/hidden/seldeptlist[" + i + "]/selyn","false");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_seldeptorddeptcd" ref="/root/hidden/seldeptbase/orddeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:14px; top:52px; width:145px; height:19px; color:#ff00ff; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|