123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906 |
- <?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>필수심사대상생성기준관리(SMPIB00500)</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <surelist>
- <surecd/>
- <orddeptcd/>
- <diaggubun/>
- <diagcdfrom/>
- <diagnmfrom/>
- <diagcdto/>
- <diagnmto/>
- <amt/>
- <earncls1/>
- <earncls2/>
- <calcscorcd/>
- <ordnm/>
- <anticanflag/>
- <seq/>
- <changeflag/>
- </surelist>
- </list1>
- </main>
- <send>
- <itemchk>
- <surecd/>
- <orddeptcd/>
- <diaggubun/>
- <anticanflag/>
- <earncls1/>
- <earncls2/>
- <calcscorcd/>
- <ordnm/>
- <diagcd/>
- <diagnm/>
- </itemchk>
- <item2>
- <grdsrchnm>
- <searchkind/>
- <iptsearch/>
- </grdsrchnm>
- </item2>
- <item3>
- <srchdiag>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- </srchdiag>
- </item3>
- <updatedata>
- <datalist/>
- </updatedata>
- </send>
- <init>
- <P0486list>
- <P0486>
- <cdnm/>
- <cdid/>
- </P0486>
- </P0486list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- </init>
- <hidden>
- <sppiz00400>
- <rslt>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- </rslt>
- </sppiz00400>
- <smpic00200>
- <cond>
- <calcnm/>
- </cond>
- </smpic00200>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" 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="TRPIB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/itemchk" resultref="/root/main/list1"/>
- <submission id="TRPIB00502" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="root/init/ictplist"/>
- <submission id="TXPIB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/result"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // (PAM.js) submission id="TRPAM00101" 를 사용하여 Combo item을 가져온다.
- pamGetDeptCDDrIDList();
- //처방분류코드 조회
- submit("TRPIB00502");
-
- // 공통코드를 조회한다.
- // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- zbcfGetCodeList(
- new Array("P0486"),new Array("/root/init/P0486list" ) // 필수심사항목
- );
- // 공백, 적용안함 등은 제외 (등록시는 사용안함)
- model.removeNodeset("/root/init/P0486list/P0486[cdid='' or cdid='X' or cdid='-' or cdid = '7']");
-
- // 필수심사항목 전체추가(맨위로)
- model.makeValue("/root/hidden/P0486list/P0486/cdid","");
- model.makeValue("/root/hidden/P0486list/P0486/cdnm","");
- copyNodeType("/root/init/P0486list","/root/hidden/P0486list","before");
- // 진료과 전체추가(맨위로)
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/cd","-");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/nm","전체");
- copyNodeType("/root/init/orddeptcd","/root/hidden/orddeptcd","before");
- // 진료과 공백추가(맨위로)
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/cd","");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/nm","");
- copyNodeType("/root/init/orddeptcd","/root/hidden/orddeptcd","before");
- // 처방대분류 전체추가(맨위로)
- model.makeValue("/root/hidden/ictp1List/ictp1/ictp1_earncls1","-");
- model.makeValue("/root/hidden/ictp1List/ictp1/ictp1_earncls1nm","-");
- copyNodeType("/root/init/ictplist/ictp1List","/root/hidden/ictp1List","before");
- // 처방대분류 공백추가(맨위로)
- model.makeValue("/root/hidden/ictp1List/ictp1/ictp1_earncls1","");
- model.makeValue("/root/hidden/ictp1List/ictp1/ictp1_earncls1nm","");
- copyNodeType("/root/init/ictplist/ictp1List","/root/hidden/ictp1List","before");
- // 처방중분류 전체추가(맨위로)
- model.makeValue("/root/hidden/ictp2List/ictp2/ictp2_earncls1","-");
- model.makeValue("/root/hidden/ictp2List/ictp2/ictp2_earncls2","-");
- model.makeValue("/root/hidden/ictp2List/ictp2/ictp2_earncls2nm","-");
- copyNodeType("/root/init/ictplist/ictp2List","/root/hidden/ictp2List","before");
- // 처방중분류 공백추가(맨위로)
- model.makeValue("/root/hidden/ictp2List/ictp2/ictp2_earncls1","");
- model.makeValue("/root/hidden/ictp2List/ictp2/ictp2_earncls2","");
- model.makeValue("/root/hidden/ictp2List/ictp2/ictp2_earncls2nm","");
- copyNodeType("/root/init/ictplist/ictp2List","/root/hidden/ictp2List","before");
- // 필요없는 인스턴스 / 임시추가 인스턴스 지우기
- model.removenode("/root/init/orddrid");
- model.removenode("/root/init/centcd");
- model.removenode("/root/init/subdeptcd");
- model.removenode("/root/hidden/P0486list");
- model.removenode("/root/hidden/orddeptcd");
- model.removenode("/root/hidden/ictp1List");
- model.removenode("/root/hidden/ictp2List");
- fInitialize();
- //fAddRow();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
-
- var glb_diagtype = "GRID"; // 상병조회( 그리드인지? 조회조건인지)
-
- // 화면 open시와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
- // 조회조건 초기화
- model.resetInstanceNode("/root/send/itemchk");
- var EarnCd1 = model.getValue("/root/send/itemchk/earncls1");
- cmb_earncls2.choices.itemset.attribute("nodeset") = "/root/init/ictplist/ictp2List/ictp2[ictp2_earncls1 = '' or ictp2_earncls1 = '"+ EarnCd1 + "']";
- // grid를 인스턴스에 mapping후 인스턴스에 해당하는 빈줄 1줄이 생기므로 grid 초기화
- model.removeNodeset("/root/main/list1/surelist");
- model.refresh(); // 지우지 말것.. 지우면 오류발생
- cmb_surecd.select(0);
- model.setFocus("cmb_surecd");
- }
-
- // 행추가
- function fAddRow() {
- grd_surelist.addRow(true, false);
-
- // 기본 데이타 넣어주기
- model.setValue("/root/main/list1/surelist[" + grd_surelist.row+" ]/orddeptcd", "-");
- model.setValue("/root/main/list1/surelist[" + grd_surelist.row+" ]/diaggubun", "-");
- model.setValue("/root/main/list1/surelist[" + grd_surelist.row+" ]/amt", "0");
- model.setValue("/root/main/list1/surelist[" + grd_surelist.row+" ]/earncls1", "-");
- model.setValue("/root/main/list1/surelist[" + grd_surelist.row+" ]/earncls2", "-");
- fEarncls1(grd_surelist.row,false);
- model.setValue("/root/main/list1/surelist[" + grd_surelist.row+" ]/anticanflag", "-");
- model.setValue("/root/main/list1/surelist[" + grd_surelist.row+" ]/changeflag", "I");
- }
- // 행삭제
- function fDeleteRow() {
- var row = grd_surelist.row;
- var rowstatus = grd_surelist.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_surelist.deleteRow(row,true);
- } else {
- grd_surelist.rowstatus(row) = 4;
- }
- }
- //처방대분류 선택했을때 중분류를 그에맞게 셋팅
- function fEarncls1(jrow, clearflag) {
- if ( clearflag == true ) {
- model.setValue("/root/main/list1/surelist[" + jrow + "]/earncls2","-");
- }
- var EarnCd1 = model.getValue("/root/main/list1/surelist[" + jrow + "]/earncls1");
- grd_surelist.cellComboNodeset(jrow,grd_surelist.colRef("earncls2")) = "/root/init/ictplist/ictp2List/ictp2[ictp2_earncls1 = '-' or ictp2_earncls1 = '"+ EarnCd1 + "']";
- }
- //처방대분류 선택했을때 중분류를 그에맞게 셋팅
- function fSelectLIst() {
- // 행추가 없이도 자동 한줄추가에 따른 자동 추가된 행 제외 부분 추가
- for( i = grd_surelist.fixedRows; i < grd_surelist.rows ; i++ ) {
-
- var rowstatus = grd_surelist.rowStatus(i);
-
- if (rowstatus == 1 || rowstatus == 3) {
-
- var changeflag = model.getValue("/root/main/list1/surelist[" + i + "]/changeflag");
-
- if (changeflag == "I") {
- grd_surelist.rowStatus(i) = 0;
- }
- }
- }
-
- var updtdata = getGridUpdateData(grd_surelist);
-
- if (updtdata != "") // 그리드에 작업중인 내용이 있을때 조회여부를 체크한다.
- {
- var ret = messageBox("그리드에 작업중인 내용이 있습니다. 조회를","Q003");
- if(ret != 6){
- return false;
- }
- }
- // 그리드내용 지우기
- model.removeNodeset("/root/main/list1/surelist");
- // 조회
- submit("TRPIB00501");
- //model.refresh(); // 지우지 말것.. 지우면 오류발생
- // 처방대분류에 맞는 처방중분류 셋팅
- for(var i = grd_surelist.fixedRows; i < grd_surelist.rows ; i++ ) {
- // 속도가 느려져서 처방분류 항목만 변경
- if ( model.getValue("/root/main/list1/surelist[" + i + "]/surecd") == "4" ) {
- fEarncls1(i, false);
- }
- }
- model.refresh(); // 지우지 말것.. 지우면 오류발생
-
- //fAddRow(); // 조회후 한줄추가
- }
- function fSrchNm() {
- var today = getCurrentDate(); // 현재 날짜를 얻어옴
- var row = grd_surelist.row;
- var col = grd_surelist.col;
-
- // 수가코드
- if (col == grd_surelist.colRef("calcscorcd")) {
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list1/surelist["+row+"]/calcscorcd"));
- model.setValue("/root/send/item2/grdsrchnm/searchkind","1");
- }
- // 시작상병코드
- else if (col == grd_surelist.colRef("diagcdfrom")){
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list1/surelist["+row+"]/diagcdfrom"));
- model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
- }
- // 종료상병코드
- else if (col == grd_surelist.colRef("diagcdto")){
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list1/surelist["+row+"]/diagcdto"));
- model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
- }
- // '-' -> 공백으로 변경
- if ( model.getValue("/root/send/item2/grdsrchnm/iptsearch") == "-" ) {
- model.setValue("/root/send/item2/grdsrchnm/iptsearch","");
- }
-
- submit("TRPIB00202");
-
- var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
- if (hngnm == "") {
- if (col == grd_surelist.colRef("calcscorcd")) {
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200","/root/send/item2/grdsrchnm/iptsearch", "/root/temp", "", "");
- model.setValue("/root/main/list1/surelist["+row+"]/calcscorcd",model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
- model.setValue("/root/main/list1/surelist["+row+"]/ordnm",model.getValue("/root/temp/picmmech/picmmech_hngnm"));
- }
- else {
- if (col == grd_surelist.colRef("diagcdfrom") || col == grd_surelist.colRef("diagcdto")) {
- model.setValue("/root/send/item3/srchdiag/basedd", today);
- if (col == grd_surelist.colRef("diagcdfrom")) {
- model.setValue("/root/send/item3/srchdiag/diagcd", model.getValue("/root/main/list1/surelist["+row+"]/diagcdfrom"));
- } else {
- model.setValue("/root/send/item3/srchdiag/diagcd", model.getValue("/root/main/list1/surelist["+row+"]/diagcdto"));
- }
- // '-' -> 공백으로 변경
- if ( model.getValue("/root/send/item3/srchdiag/diagcd") == "-" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd","");
- }
- model.setValue("/root/send/item3/srchdiag/selectedrdodiagkind","1"); // icd10으로
- glb_diagtype = "GRID";
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/item3/srchdiag", "/root/init", "", "");
- }
- }
- // 팝업에서 아무것도 선택하지 않았을 경우- 그리드의 내용을 지운다.
- if (col == grd_surelist.colRef("calcscorcd")) {
- var srchnm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- if (srchnm == "") {
- model.setValue("/root/main/list1/surelist[" + row + " ]/calcscorcd","");
- model.setValue("/root/main/list1/surelist[" + row + " ]/ordnm","");
- }
- }
- if (col == grd_surelist.colRef("diagcdfrom")) {
- var srchnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- if (srchnm == "") {
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagcdfrom","");
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagnmfrom","");
- }
- }
- if (col == grd_surelist.colRef("diagcdto")) {
- var srchnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- if (srchnm == "") {
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagcdto","");
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagnmto","");
- }
- }
- }
- else {
- if (col == grd_surelist.colRef("calcscorcd")) {
- model.setValue("/root/main/list1/surelist["+row+"]/ordnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- }
- if (col == grd_surelist.colRef("diagcdfrom")) {
- model.setValue("/root/main/list1/surelist["+row+"]/diagnmfrom",model.getValue("/root/temp/calcdiagnm/hngnm"));
- var diagcdto = model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdto");
- var diagnmto = model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmto");
- if( ( diagcdto == "" || diagcdto == "-" )
- && ( diagnmto == "" || diagnmto == "-" )
- ) {
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagcdto",model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdfrom"));
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagnmto",model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmfrom"));
- }
- }
- if (col == grd_surelist.colRef("diagcdto")) {
- model.setValue("/root/main/list1/surelist["+row+"]/diagnmto",model.getValue("/root/temp/calcdiagnm/hngnm"));
- var diagcdfrom = model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdfrom");
- var diagnmfrom = model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmfrom");
- if( ( diagcdfrom == "" || diagcdfrom == "-" )
- && ( diagnmfrom == "" || diagnmfrom == "-" )
- ) {
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagcdfrom",model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdto"));
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagnmfrom",model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmto"));
- }
- }
- }
- }
-
- function fSetDiagCdNm() {
- if ( glb_diagtype == "SEARCH" ) {
- model.setValue("/root/send/itemchk/diagcd", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/send/itemchk/diagnm", model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- ipt_diagcd.refresh();
- ipt_diagnm.refresh();
- return;
- }
-
- model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
-
- submit("TRPIB00202");
- model.setValue("/root/hidden/sppiz00400/rslt/diaghngnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
-
- var row = grd_surelist.row;
- var col = grd_surelist.col;
-
- if (col == grd_surelist.colRef("diagcdfrom")) {
- model.setValue("/root/main/list1/surelist["+row+"]/diagcdfrom", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list1/surelist["+row+"]/diagnmfrom", model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
-
- var diagcdto = model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdto");
- var diagnmto = model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmto");
- if( ( diagcdto == "" || diagcdto == "-" )
- && ( diagnmto == "" || diagnmto == "-" )
- ) {
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagcdto",model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdfrom"));
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagnmto",model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmfrom"));
- }
- }
- if (col ==grd_surelist.colRef("diagcdto")) {
- model.setValue("/root/main/list1/surelist["+row+"]/diagcdto", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list1/surelist["+row+"]/diagnmto", model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
-
- var diagcdfrom = model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdfrom");
- var diagnmfrom = model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmfrom");
- if( ( diagcdfrom == "" || diagcdfrom == "-" )
- && ( diagnmfrom == "" || diagnmfrom == "-" )
- ) {
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagcdfrom",model.getValue("/root/main/list1/surelist[" + row + " ]/diagcdto"));
- model.setValue("/root/main/list1/surelist[" + row + " ]/diagnmfrom",model.getValue("/root/main/list1/surelist[" + row + " ]/diagnmto"));
- }
- }
- }
-
- // 저장과 관련된 입력된 데이터의 항목을 검증한다.
- function fCheckSaveInfo() {
- // 행추가 없이도 자동 한줄추가에 따른 자동 추가된 행 제외 부분 추가
- for( i = grd_surelist.fixedRows; i < grd_surelist.rows ; i++ ) {
-
- var rowstatus = grd_surelist.rowStatus(i);
-
- if (rowstatus == 1 || rowstatus == 3) {
-
- var changeflag = model.getValue("/root/main/list1/surelist[" + i + "]/changeflag");
-
- if (changeflag == "I") {
- grd_surelist.rowStatus(i) = 0;
- }
- }
- }
-
- var updtdata = getGridUpdateData(grd_surelist);
-
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004"); // 변경된 데이이터가 없습니다.
- return false;
- }
-
- // 수정된 데이타 유효성 확인
- for( i = grd_surelist.fixedRows; i < grd_surelist.rows ; i++ ) {
-
- var rowstatus = grd_surelist.rowStatus(i);
-
- if (rowstatus == 0) continue;
-
- var g_surecd = grd_surelist.valueMatrix(i,grd_surelist.colRef("surecd")); // 필수항목
- //var g_orddeptcd = grd_surelist.valueMatrix(i,grd_surelist.colRef("orddeptcd")); // 진료과
- //var g_diaggubun = grd_surelist.valueMatrix(i,grd_surelist.colRef("diaggubun")); // 상병구분
- var g_diagcdfrom = grd_surelist.valueMatrix(i,grd_surelist.colRef("diagcdfrom")); // 시작상병
- var g_diagcdto = grd_surelist.valueMatrix(i,grd_surelist.colRef("diagcdto")); // 종료상병
- var g_amt = grd_surelist.valueMatrix(i,grd_surelist.colRef("amt")); // 금액
- var g_earncls1 = grd_surelist.valueMatrix(i,grd_surelist.colRef("earncls1")); // 처방대분류
- var g_earncls2 = grd_surelist.valueMatrix(i,grd_surelist.colRef("earncls2")); // 처방중분류
- var g_calcscorcd = grd_surelist.valueMatrix(i,grd_surelist.colRef("calcscorcd")); // 수가코드
- //var g_anticanflag = grd_surelist.valueMatrix(i,grd_surelist.colRef("anticanflag")); // 항암제구분
-
- // 조건문을 단순화 하려고 변경후 비교
- if ( g_diagcdfrom == "-" ) g_diagcdfrom = "";
- if ( g_diagcdto == "-" ) g_diagcdto = "";
- if ( g_calcscorcd == "-" ) g_calcscorcd = "";
- if ( g_earncls1 == "-" ) g_earncls1 = "";
- if ( g_earncls2 == "-" ) g_earncls2 = "";
- if ( g_amt == "0" ) g_amt = "";
-
- // 필수항목구분
- if (g_surecd == "") {
- messageBox("필수항목구분은","I003");
- return false;
- }
-
- // 필수구분 상병일때 체크
- if ( g_surecd == "1" ) {
- if ( g_diagcdfrom == "" || g_diagcdto == "" ) {
- messageBox("상병 구분일때 시작,종료상병은","I003");
- return false;
- }
- if ( g_amt != "" ) {
- messageBox("상병 구분일때 금액은 제외대상입니다.","I999");
- return false;
- }
- if ( g_calcscorcd != "" ) {
- messageBox("상병 구분일때 수가코드는 제외대상입니다.","I999");
- return false;
- }
- if ( g_earncls1 != "" || g_earncls2 != "" ) {
- messageBox("상병 구분일때 처방분류는 제외대상입니다.","I999");
- return false;
- }
- }
-
- // 필수구분 총진료비,청구액일때 체크
- if ( g_surecd == "2" || g_surecd == "3" ) {
- if ( g_diagcdfrom != "" || g_diagcdto != "" ) {
- messageBox("진료비 구분일때 시작,종료상병은 제외대상입니다.","I999");
- return false;
- }
- if ( g_amt == "" ) {
- messageBox("진료비 구분일때 금액은","I003");
- return false;
- }
- if ( g_calcscorcd != "" ) {
- messageBox("진료비 구분일때 수가코드는 제외대상입니다.","I999");
- return false;
- }
- if ( g_earncls1 != "" || g_earncls2 != "" ) {
- messageBox("진료비 구분일때 처방분류는 제외대상입니다.","I999");
- return false;
- }
- }
- // 필수구분 처방분류일때 체크
- if ( g_surecd == "4" ) {
- if ( g_diagcdfrom != "" || g_diagcdto != "" ) {
- messageBox("처방분류 구분일때 시작,종료상병은 제외대상입니다.","I999");
- return false;
- }
- if ( g_amt != "" ) {
- messageBox("처방분류 구분일때 금액은 제외대상입니다.","I999");
- return false;
- }
- if ( g_calcscorcd != "" ) {
- messageBox("처방분류 구분일때 수가코드는 제외대상입니다.","I999");
- return false;
- }
- if ( g_earncls1 == "" && g_earncls2 == "" ) {
- messageBox("처방분류 구분일때 처방분류는","I003");
- return false;
- }
- }
- // 필수구분 처방코드일때 체크
- if ( g_surecd == "5" ) {
- if ( g_diagcdfrom != "" || g_diagcdto != "" ) {
- messageBox("처방코드 구분일때 시작,종료상병은 제외대상입니다.","I999");
- return false;
- }
- if ( g_amt != "" ) {
- messageBox("처방코드 구분일때 금액은 제외대상입니다.","I999");
- return false;
- }
- if ( g_calcscorcd == "" ) {
- messageBox("처방코드 구분일때 수가코드는","I003");
- return false;
- }
- if ( g_earncls1 != "" || g_earncls2 != "" ) {
- messageBox("처방코드 구분일때 처방분류는 제외대상입니다.","I999");
- return false;
- }
- }
- // 필수구분 항암제일때 체크
- if ( g_surecd == "6" ) {
- if ( g_diagcdfrom != "" || g_diagcdto != "" ) {
- messageBox("항암제 구분일때 시작,종료상병은 제외대상입니다.","I999");
- return false;
- }
- if ( g_amt != "" ) {
- messageBox("항암제 구분일때 금액은 제외대상입니다.","I999");
- return false;
- }
- if ( g_calcscorcd != "" ) {
- messageBox("항암제 구분일때 수가코드는 제외대상입니다.","I999");
- return false;
- }
- if ( g_earncls1 != "" || g_earncls2 != "" ) {
- messageBox("항암제 구분일때 처방분류는 제외대상입니다.","I999");
- return false;
- }
- }
- }
-
- return true;
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="800" guideline="1,1195;" style="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:180px; height:13px; ">필수심사대상 생성기준관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
- <button id="btn_srch" class="btn1_letter2" style="left:1128px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectLIst();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1118px; y1:7px; x2:1118px; y2:54px; "/>
- <caption id="caption8" class="search_name" style="left:10px; top:9px; width:113px; height:17px; ">필수심사항목 :</caption>
- <select1 id="cmb_surecd" ref="/root/send/itemchk/surecd" class="combo_search" appearance="minimal" style="left:125px; top:8px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0486list/P0486">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/send/itemchk/orddeptcd" class="combo_search" appearance="minimal" style="left:301px; top:8px; width:126px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:225px; top:9px; width:76px; height:17px; ">진료과 :</caption>
- <caption id="caption1" class="search_name" style="left:434px; top:9px; width:95px; height:17px; ">상병구분 :</caption>
- <select1 id="cmb_diaggubun" ref="/root/send/itemchk/diaggubun" class="combo_search" appearance="minimal" style="left:525px; top:8px; width:60px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>전 체</label>
- <value>-</value>
- </item>
- <item>
- <label>주상병</label>
- <value>M</value>
- </item>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:905px; top:9px; width:75px; height:17px; ">항암제 :</caption>
- <select1 id="cmb_anticanflag" ref="/root/send/itemchk/anticanflag" class="combo_search" appearance="minimal" style="left:980px; top:8px; width:69px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>2군</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:745px; top:35px; width:99px; height:17px; ">처방중분류 :</caption>
- <select1 id="cmb_earncls2" ref="/root/send/itemchk/earncls2" class="combo_search" appearance="minimal" style="left:845px; top:35px; width:205px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ictplist/ictp2List/ictp2">
- <label ref="ictp2_earncls2nm"/>
- <value ref="ictp2_earncls2"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_earncls1" ref="/root/send/itemchk/earncls1" class="combo_search" appearance="minimal" style="left:535px; top:35px; width:205px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/ictplist/ictp1List/ictp1[ictp1_earncls1 != '-']">
- <label ref="ictp1_earncls1nm"/>
- <value ref="ictp1_earncls1"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/itemchk/earncls2","");
- var EarnCd1 = model.getValue("/root/send/itemchk/earncls1");
- cmb_earncls2.choices.itemset.attribute("nodeset") = "/root/init/ictplist/ictp2List/ictp2[ictp2_earncls1 = '' or ictp2_earncls1 = '"+ EarnCd1 + "']";
- cmb_earncls2.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:434px; top:35px; width:99px; height:17px; ">처방대분류 :</caption>
- <input id="ipt_calcscorcd" ref="/root/send/itemchk/calcscorcd" class="input_search" imemode="disabled" inputtype="button" maxlength="10" _chartype="upper" style="left:103px; top:35px; width:112px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/send/item1/itemjchk/calcscorcd", "/root/temp", "", "");
- var calcscorcd = model.getValue("/root/temp/picmmech/picmmech_calcscorcd");
- var ordnm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- if (calcscorcd != "") {
- model.setValue("/root/send/itemchk/calcscorcd", calcscorcd);
- model.setValue("/root/send/itemchk/ordnm",ordnm);
- ipt_calcscorcd.refresh();
- ipt_ordnm.refresh();
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:10px; top:35px; width:86px; height:17px; ">수가코드 :</caption>
- <input id="ipt_ordnm" ref="/root/send/itemchk/ordnm" editable="false" style="left:230px; top:35px; width:197px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:589px; top:9px; width:86px; height:17px; ">상병코드 :</caption>
- <input id="ipt_diagcd" ref="/root/send/itemchk/diagcd" class="input_search" imemode="disabled" inputtype="button" maxlength="5" _chartype="upper" style="left:675px; top:8px; width:65px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- glb_diagtype = "SEARCH";
- var today = getCurrentDate(); // 현재 날짜를 얻어옴
- model.setValue("/root/send/item3/srchdiag/basedd", today);
- model.setValue("/root/send/item3/srchdiag/diagcd","");
- model.setValue("/root/send/item3/srchdiag/selectedrdodiagkind","1"); // icd10으로
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/item3/srchdiag", "/root/init", "", "");
- ]]>
- </script>
- </input>
- <input id="ipt_diagnm" ref="/root/send/itemchk/diagnm" editable="false" style="left:745px; top:8px; width:150px; height:19px; "/>
- </group>
- <line id="line3" class="line_1" style="x1:0px; y1:94px; x2:1194px; y2:94px; "/>
- <datagrid id="grd_surelist" nodeset="/root/main/list1/surelist" overflow="scroll" scroll="auto" caption="필수항목^진료과^상병구분^시작상병^시작상병명^종료상병^종료상병명^금액^처방대분류^처방중분류^수가코드^수가명^항암제^순번^changeflag" colsep="^" colwidth="69, 89, 61, 59, 138, 59, 138, 64, 100, 100, 80, 149, 45, 30, 30" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" focuscolor="#b9e5fb" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:99px; width:1194px; height:641px; ">
- <col disabled="true" ref="surecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0486list/P0486[cdid != '']">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist[cd != '']">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="diaggubun" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>주상병</label>
- <value>M</value>
- </item>
- </choices>
- </col>
- <col imemode="disabled" ref="diagcdfrom" type="inputbutton" maxlength="5" _chartype="upper"/>
- <col ref="diagnmfrom"/>
- <col imemode="disabled" ref="diagcdto" type="inputbutton" maxlength="5" _chartype="upper"/>
- <col ref="diagnmto"/>
- <col ref="amt" type="input" format="#,###" maxlength="10" style="text-align:right; "/>
- <col ref="earncls1" type="combo">
- <choices>
- <itemset nodeset="/root/init/ictplist/ictp1List/ictp1[ictp1_earncls1 != '']">
- <label ref="ictp1_earncls1nm"/>
- <value ref="ictp1_earncls1"/>
- </itemset>
- </choices>
- </col>
- <col ref="earncls2" type="combo">
- <choices>
- <itemset nodeset="/root/init/ictplist/ictp2List/ictp2[ictp2_earncls2 != '']">
- <label ref="ictp2_earncls2nm"/>
- <value ref="ictp2_earncls2"/>
- </itemset>
- </choices>
- </col>
- <col ref="calcscorcd" type="inputbutton" maxlength="10" _chartype="upper"/>
- <col ref="ordnm"/>
- <col ref="anticanflag" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>2군</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="seq" visibility="hidden"/>
- <col ref="changeflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_surelist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_surelist.row;
- var col = grd_surelist.col;
-
- if ( col == grd_surelist.colRef("earncls1") ) {
- fEarncls1(row, true);
- }
- // 저장, 조회시 작업내역 확인하기 위한 flag 값 변경
- model.setValue("/root/main/list1/surelist[" + row+ "]/changeflag","U");
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_surelist.col;
- var row = grd_surelist.row;
- var oldvalue = grd_surelist.valueMatrix(row,col);
-
- if ( col == grd_surelist.colRef("calcscorcd")
- || col == grd_surelist.colRef("diagcdfrom")
- || col == grd_surelist.colRef("diagcdto")
- ) { // 수가코드, 시작상병코드, 종료상병코드
- fSrchNm();
- }
- var newvalue = grd_surelist.valueMatrix(row,col);
-
- if ( oldvalue == "-" ) { oldvalue = ""; }
- if ( newvalue == "-" ) { newvalue = ""; }
- if ( oldvalue != newvalue ) {
- var rowstatus = grd_surelist.rowStatus(row);
-
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/surelist[" + row+ "]/changeflag","U");
- } else if (rowstatus == 0) {
- grd_surelist.rowstatus(row) = 2;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var col = grd_surelist.col;
- var row = grd_surelist.row;
- var oldvalue = grd_surelist.valueMatrix(row,col);
-
- if ( col == grd_surelist.colRef("calcscorcd")
- || col == grd_surelist.colRef("diagcdfrom")
- || col == grd_surelist.colRef("diagcdto")
- ) { // 수가코드, 시작상병코드, 종료상병코드
- fSrchNm();
- }
- var newvalue = grd_surelist.valueMatrix(row,col);
-
- if ( oldvalue == "-" ) { oldvalue = ""; }
- if ( newvalue == "-" ) { newvalue = ""; }
- if ( oldvalue != newvalue ) {
- var rowstatus = grd_surelist.rowStatus(row);
-
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/surelist[" + row+ "]/changeflag","U");
- } else if (rowstatus == 0) {
- grd_surelist.rowstatus(row) = 2;
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:5px; top:79px; width:190px; height:13px; ">필수심사대상 생성기준 목록</caption>
- <button id="btn_delRow" class="btn2_letter3" style="left:1140px; top:74px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDeleteRow();
- ]]>
- </script>
- </button>
- <button id="btn_addRow" class="btn2_letter3" style="left:1083px; top:74px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- grd_surelist.col = 1; // 행추가된 row 로 이동한다.
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="button5" class="btn4_letter3" style="left:1125px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- fAddRow(); // 빈줄추가
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1064px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( fCheckSaveInfo() == false ) return; // 저장될 데이터의 유효성 체크
- model.setValue("/root/send/updatedata/datalist",grd_surelist.getupdatedata());
-
- if ( submit("TXPIB00501") ) {
- grd_surelist.clearStatus(); // submit() 성공하면 그리드의 i,u 상태 제거
-
- fSelectLIst(); // 저장 성공시 재조회
-
- messageBox("정상적으로 저장되었습니다.", "I999");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|