123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656 |
- <?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>JX999 자동생성</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <item1>
- <itematsu>
- </itematsu>
- </item1>
- <list1>
- <listatsu>
- <calcscorcd/>
- <calcscornm/>
- <diagcdfrom/>
- <diagnmfrom/>
- <diagcdto/>
- <diagnmto/>
- <ioflag/>
- <orddeptcd/>
- <fromdd/>
- <todd/>
- <spclcd/>
- <spclspec/>
- <seq/>
- <repday/>
- <changeflag/>
- </listatsu>
- </list1>
- <cdnmchk>
- <optcdnm/>
- <chkcnt/>
- </cdnmchk>
- <listrsltnm>
- <rsltnm>
- <hngnm/>
- <hngcnt/>
- </rsltnm>
- </listrsltnm>
- </main>
- <send>
- <grdlistatsu/>
- <savedata/>
- <reqdata>
- <srchkind/>
- <srch/>
- <mdldd/>
- <orddeptcd/>
- <delinclude/>
- <spclcd/>
- </reqdata>
- <finddata/>
- <list1>
- <listatsu>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- </listatsu>
- </list1>
- <spclcdref>
- <calcscorcd/>
- <spclcd/>
- </spclcdref>
- </send>
- <init>
- <P0149list>
- <P0149>
- <cdnm>전체</cdnm>
- <cdid>-</cdid>
- </P0149>
- </P0149list>
- <spclcdlist>
- <spclcd>
- <cdid>JX999</cdid>
- <cdnm>JX999</cdnm>
- </spclcd>
- <spclcd>
- <cdid>MX999</cdid>
- <cdnm>MX999</cdnm>
- </spclcd>
- <spclcd>
- <cdid>MT015</cdid>
- <cdnm>MT015</cdnm>
- </spclcd>
- </spclcdlist>
- </init>
- <hidden>
- <listrsltnm>
- <rsltnm>
- <hngnm/>
- <hngcnt/>
- </rsltnm>
- </listrsltnm>
- <sppiz00400>
- <rslt>
- <diagcd/>
- <diagnm/>
- <diaghngnm/>
- <diagengnm/>
- </rslt>
- </sppiz00400>
- <sppiz00500/>
- <currentdate/>
- <spclspec/>
- <oldspclspec/>
- <seldeptlist>
- <selyn/>
- <deptcd/>
- <deptnm/>
- <oldselyn/>
- <calcscorcdkey/>
- <toddkey/>
- <seq/>
- </seldeptlist>
- <seldeptbase>
- <calcscorcd/>
- <calcscornm/>
- <calcscorcdkey/>
- <toddkey/>
- <seq/>
- <deptcd/>
- </seldeptbase>
- <sppiz00200>
- <cond>
- <clsp>
- <spclcd>MT015</spclcd>
- <seqno>0</seqno>
- <spclspec/>
- <rowstat>-</rowstat>
- </clsp>
- </cond>
- <rslt/>
- </sppiz00200>
- </hidden>
- <temp>
- <clsp>
- <snglcalcscorcd/>
- <edilnno/>
- <spclcd/>
- <spclspec/>
- <spclformat/>
- </clsp>
- </temp>
- </root>
- </instance>
- <!-- 진료과 공통코드 가져오기 -->
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" add="bottom"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- model.setValue("/root/hidden/currentdate", getCurrentDate()); // 현재 날짜를 얻어옴
-
- fInitialize();
-
- // Default 한줄 자동 생성 요청에 의해 추가 2008.08.28 - 김건기
- fAddRow();
- ]]>
- </script>
- <!--검색조건에 따른 조회 -->
- <submission id="TRPIB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/list1"/>
- <!-- 수가코드 갯수 및 코드명 가져오기 -->
- <submission id="TRPIB00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/listrsltnm"/>
- <!-- 상병코드 갯수 및 코드명 가져오기 -->
- <submission id="TRPIB00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/listrsltnm"/>
- <!-- 삽입, 수정, 삭제 -->
- <submission id="TXPIB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
- grp_spclspec.visible = false;
-
- // 그리드 초기화
- model.removeNodeset("/root/main/list1/listatsu");
-
- // 각 인스턴스 초기화
- model.resetInstanceNode("/root/send/reqdata/srchkind");
- model.resetInstanceNode("/root/send/reqdata/srch");
- model.resetInstanceNode("/root/send/reqdata/mdldd");
- model.resetInstanceNode("/root/send/reqdata/orddeptcd");
- model.resetInstanceNode("/root/main/listrsltnm/rsltnm");
- model.resetInstanceNode("/root/main/cdnmchk/optcdnm");
-
- model.setValue("/root/send/reqdata/srchkind","-");
- model.setValue("/root/send/reqdata/delinclude","1");
- model.setValue("/root/send/reqdata/spclcd","JX999");
- model.setValue("/root/send/reqdata/mdldd",model.getValue("/root/hidden/currentdate"));
- // MT015 일때는 직접수정은 안되도록
- if ( model.getValue("/root/send/reqdata/spclcd") == "MT015" ) {
- grd_listatsu.colAttribute(grd_listatsu.colRef("spclspec"),"editable") = "false";
- } else {
- grd_listatsu.colAttribute(grd_listatsu.colRef("spclspec"),"editable") = "true";
- }
- // // 공통코드를 조회한다.
- // // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
- // // P0149 : 진료과
- // zbcfGetCodeList(
- // new Array("P0149"),
- // new Array("/root/init/P0149list"));
-
- // 진료과 구하여 그 첫 라인에 '전체' 추가시키는 작업
- 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");
- // 김용민 추가 - 과별 선택기능을 위한 진료과 리스트 작업
- 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.makeNode("root/hidden/seldeptlist[" + i + "]/calcscorcdkey");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/toddkey");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/seq");
-
- 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");
- model.refresh();
-
- // 진료과 콤보박스 기본선택
- cmb_orddepcdt.select(0);
-
- // grd_listatsu의 정렬하기 위해 그리드 상단의 컬럼명에 sort정렬버튼을 보인다.
- grd_listatsu.explorerbar = "sortshow";
- }
-
- // 조회버튼 클릭시 검색조건이 알맞은지 검사한다.
- function fGetAutMemoCretList() {
- var cmb_srchkind = model.getValue("/root/send/reqdata/srchkind");
- var ipt_srch = model.getValue("/root/send/reqdata/srch");
- var ipt_mdldd = model.getValue("/root/send/reqdata/mdldd");
- var cmb_orddeptcd = model.getValue("/root/send/reqdata/orddeptcd");
-
- // 검색조건은 수가코드인데 세부코드를 입력하지 않았을 경우 오류메세지 출력
- if(cmb_srchkind == "0" && ipt_srch == ""){
- messageBox("수가코드를 입력하지","E007");
- return false;
- }
- // 검색조건은 상병코드인데 세부코드를 입력하지 않았을 경우 오류메세지 출력
- if(cmb_srchkind == "1" && ipt_srch == ""){
- messageBox("상병코드를 입력하지","E007");
- return false;
- }
- // 검색조건은 기준일인데 세부조건의 기준일를 입력하지 않았을 경우 오류메세지 출력
- if(cmb_srchkind == "2" && ipt_mdldd == ""){
- messageBox("기준일을 입력하지","E007");
- return false;
- }
- return true;
- }
-
- // 저장 버튼 클릭시 grid내용 check!!!
- function fChkAutMemoCretList() {
- if (grp_spclspec.visible == true) {
- messageBox("특정내역 창을 닫고 사용하세요","");
- return;
- }
- if (grp_dept_select.visible == true) {
- messageBox("진료과 선택창을 닫고 사용하세요","");
- return;
- }
-
- for( i = grd_listatsu.fixedRows; i < grd_listatsu.rows ; i++ ) {
- var rowstatus = grd_listatsu.rowStatus(i);
- if (rowstatus == 1 || rowstatus == 3) {
- var changeflag = model.getValue("/root/main/list1/listatsu[" + i + "]/changeflag");
- if (changeflag == "I") {
- grd_listatsu.rowStatus(i) = 0;
- }
- }
- }
-
- var updtdata = getGridUpdateData(grd_listatsu);
-
- // grid의 status의 상태가 변경(insert, update)된것이 있는지 확인한다.
- if (updtdata == "") {
-
- for( i = grd_listatsu.fixedRows; i < grd_listatsu.rows ; i++ ) {
- var changeflag = model.getValue("/root/main/list1/listatsu[" + i + "]/changeflag");
- if (changeflag == "I") {
- grd_listatsu.rowStatus(i) = 3;
- }
- }
-
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- for(var i = 1 ; i < grd_listatsu.rows ; i++) {
- // 각 row마다 status를 확인한다.
- var status = grd_listatsu.rowStatus(i);
- // status의 상태를 확인한다(1:insert, 2:update, 3:insert&new)
- if(status == "1" || status == "2" || status =="3" ) {
- // 변경사항이 있는 각 row의 cell값을 변수에 저장한다.(calcscorcd:수가코드, diagcdfrom:시작상병코드, diagcdto:종료상병코드,orddeptcd:진료과코드, textcnts:메모)
- var calcscorcd = model.getValue("/root/main/list1/listatsu[" + i + "]/calcscorcd");
- var diagcdfrom = model.getValue("/root/main/list1/listatsu[" + i + "]/diagcdfrom");
- var diagcdto = model.getValue("/root/main/list1/listatsu[" + i + "]/diagcdto");
- var orddeptcd = model.getValue("/root/main/list1/listatsu[" + i + "]/orddeptcd");
- var spclcd = model.getValue("/root/main/list1/listatsu[" + i + "]/spclcd");
- var spclspec = model.getValue("/root/main/list1/listatsu[" + i + "]/spclspec");
- var seq = model.getValue("/root/main/list1/listatsu[" + i + "]/seq");
- var repday = model.getValue("/root/main/list1/listatsu[" + i + "]/repday");
-
- // 수가코드는 insert시 필수 입력, update시 변경불가.
- if (calcscorcd == ""){
- messageBox("수가코드는","I003");
- return false;
- }
-
- /* 필수 제외 요청에 따라 주석 처리 2007.08.28 - 김건기
- // 시작상병코드는 insert시 필수 입력.
- if(diagcdfrom == "") {
- messageBox("시작상병코드는","I003");
- return false;
- }
- // 종료상병코드를 입력하지 않았을 경우 종료상병코드는 시작상병코드가 된다.
- if(diagcdto == "") {
- model.setValue("/root/main/list1/listatsu[" + i + "]/diagcdto",diagcdfrom);
- diagcdto = diagcdfrom;
- }
- */
-
-
- // 시작상병코드와 종료상병코드의 길이를 구한다.
- var fromlength = diagcdfrom.length;
- var tolength = diagcdto.length;
- // 시작상병코드와 종료상병코드의 첫번째 자리를 구한다.
- var fromsubstring = diagcdfrom.substring(0, 1);
- var tosubstring = diagcdto.substring(0, 1);
- // 시작상병코드와 종료상병코드의 첫번째 자리를 제외한 나머지 자리를 구한다.
- var fromsubstringtwo = diagcdfrom.substring(1, fromlength);
- var tosubstringtwo = diagcdto.substring(1, tolength);
- // 시작상병코드와 종료상병코드를 정수형으로 변환한다.
- var fromparseint = parseInt(fromsubstringtwo, 10);
- var toparseint = parseInt(tosubstringtwo, 10);
-
- // 시작상병코드와 종료상병코드의 앞자리가 같을경우
- //if(fromsubstring == tosubstring){
- // 종료상병코드는 시작상병코드보다 앞설 수 없습니다.
- // if (fromparseint > toparseint) {
- // messageBox("종료상병코드가 시작상병코드 보다 앞설 수","I004");
- // return false;
- // }
- //}
- // 시작상병코드와 종료상병코드의 앞자리가 다를 경우
- //if( fromsubstring != tosubstring){
- // messageBox("시작상병코드와 종료상병코드의 대분류가","E004");
- // return false;
- //}
-
- /* 필수 제외 요청에 따라 주석 처리 2007.08.28 - 김건기
- // 진료과코드는 insert시 필수 입력.
- if(orddeptcd == "") {
- messageBox("진료과코드는","I003");
- return false;
- }
- */
-
- // 메모는 insert시 필수 입력
- if(spclcd == "") {
- messageBox("특정코드는","I003");
- return false;
- }
- // 메모는 insert시 필수 입력
- if(spclspec == "") {
- messageBox("특정내역은","I003");
- return false;
- }
- // 변경사항이 있는 각 row의 cell값을 변수에 저장한다.(fromdd:시작일자,todd:종료일자)
- var fromdd = model.getValue("/root/main/list1/listatsu[" + i + "]/fromdd");
- var todd = model.getValue("/root/main/list1/listatsu[" + i + "]/todd");
-
- // 현재 서버의 날짜를 yyyymmdd형태로 가지고 온다.
- var currentdate = model.getValue("/root/hidden/currentdate");
- //시작일자가 입력되지 않았을 경우 현재 일자가 시작일자가 된다.
- if (fromdd == "") {
- model.setValue("/root/main/list1/listatsu[" + i + "]/fromdd",currentdate)
- fromdd = currentdate;
- }
- /*
- if(status == "1" || status =="3" ) {
- // 시작일은 현재일 이전이 될 수 없습니다.
- if(fromdd < currentdate){
- messageBox("시작일은 현재일보다 앞설 수","I004");
- return false;
- }
- }
- */
- // insert시 종료일자가 입력되지 않았을 경우 '99991231'로 맞춘다.
- if ( todd == "" ){
- model.setValue("/root/main/list1/listatsu[" + i + "]/todd","99991231");
- todd = "99991231";
- }
- // 종료일자는 시작일자를 앞설 수 없다.
- if (fromdd > todd) {
- messageBox("종료일이 시작일보다 앞설 수","I004");
- return false;
- }
- // 종료일자는 시작일자를 앞설 수 없다.
- if (repday == "") {
- messageBox("기간은","I003");
- return false;
- }
- }
- }
- // updatedata를 savedata instance에 엎는다.
- model.setValue("/root/send/savedata",updtdata);
- return true;
- }
-
- function fIpt_mchrgcode() {
- if (model.getValue("/root/send/data1") != "") {
- if (ipt_mchrgcode.currentText.length > 1) {
- }else {
- messageBox("검색할 수가코드를 2글자 이상", "C001"); //검색할 수가코드를 2글자 이상 입력하십시오.
- }
- }else {
- messageBox("수가코드 검색 조건을", "C002"); //수가코드 검색 조건을 선택하십시오.
- }
- }
-
- // 데이터 삭제시 이루어지는 함수
- function fLineDel() {
- var del = messageBox("해당 데이터를 ", "Q001");
- // 데이터 삭제 확인시(위의 메세지 박스에서 예를 누르면 6 반환)
- if(del == 6){
- model.setValue("/root/send/savedata",grd_listatsu.getUpdateData());
-
- var rows = grd_listatsu.selectedRows;
-
- if (rows > 1) {
- submit("TXPIB00801");
-
- var controlSnw = document.controls("btn_search");
- controlSnw.dispatch("DOMActivate");
-
- } else {
- for(var i = 0; i<rows;i++){
- grd_listatsu.deleteitem(grd_listatsu.selectedrow(i));
- }
- submit("TXPIB00801");
- }
-
- messageBox("선택하신 데이터가 삭제","I001");
- //grd_listatsu.deleteitem(grd_listatsu.row);
- //messageBox("선택하신 데이터가 삭제","I001");
- }
- // 데이터 삭제 확인시(위의 메세지 박스에서 아니오를 누르면 7 반환)
- if(del == 7){
- for(var i = 0; i<grd_listatsu.selectedRows;i++){
- grd_listatsu.removeStatus(grd_listatsu.selectedrow(i), "delete");
- }
- }
- return true;
- }
-
- function fDiag() {
- var row = grd_listatsu.row;
- var col = grd_listatsu.col;
-
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list1/listatsu["+row+"]/diagcdfrom") == '-' ) {
- model.setValue("/root/main/list1/listatsu["+row+"]/diagcdfrom","");
- }
- model.setValue("/root/send/reqdata/srch",model.getValue("/root/main/list1/listatsu["+row+"]/diagcdfrom"));
- submit("TRPIB00803");
- var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
- var hngcnt = model.getValue("/root/hidden/listrsltnm/rsltnm/hngcnt");
- // 쿼리된 결과가 한개일 경우 수행
- if(hngnm != ""){
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("diagnmfrom") ) = hngnm;
-
- var rowstatus = grd_listatsu.rowStatus(row);
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/listatsu[" + row + "]/changeflag","U");
- }
- }
- // 쿼리된 결과가 한개가 아니거나 없는경우.
- if(hngnm == ""){
- model.setValue("/root/send/list1/listatsu/diagcd",model.getValue("/root/main/list1/listatsu["+row+"]/diagcdfrom"));
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("diagcdfrom")) = "-";
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("diagnmfrom") ) = "";
- fSearchDiag(); // 상병조회 팝업을 통하여 상병 조회
- // 서브밋을 위해 사용하엿던 컨트롤을 정리
- ipt_srch.value = "";
-
- }
- }
-
- function fDiagTwo() {
- var row = grd_listatsu.row;
- var col = grd_listatsu.col;
-
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list1/listatsu["+row+"]/diagcdto") == '-' ) {
- model.setValue("/root/main/list1/listatsu["+row+"]/diagcdto","");
- }
- model.setValue("/root/send/reqdata/srch",model.getValue("/root/main/list1/listatsu["+row+"]/diagcdto"));
- submit("TRPIB00803");
- var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
- var hngcnt = model.getValue("/root/hidden/listrsltnm/rsltnm/hngcnt");
- // 쿼리된 결과가 1개인 경우
- if(hngnm != ""){
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("diagnmto") ) = hngnm;
-
- var rowstatus = grd_listatsu.rowStatus(row);
-
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/listatsu[" + row+ "]/changeflag","U");
- }
- }
- if(hngnm == ""){
- model.setValue("/root/send/list1/listatsu/diagcd",model.getValue("/root/main/list1/listatsu["+row+"]/diagcdto"));
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("diagcdto") ) = "-";
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("diagnmto") ) = "";
- fSearchDiag(); // 상병조회 팝업을 통하여 상병 조회
- // 서브밋을 위해 사용하엿던 컨트롤을 정리
- ipt_srch.value = "";
- }
- }
- // 상병명 조회시 데이터가 1개 이상일경우 및 없을시 상병조회 창을 띄운다.
- function fSearchDiag() {
- // 여기부터는 상병코드 조회 프로그램 사용자와 상의 후 작성
- var trgtManWindow = getChildWindow("SPPIZ00400"); // 상병 조회
- if (trgtManWindow == null) {
- var today = new Date();
- var syear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var smonth = today.getDateFormat("MM");
- var sday = today.getDateFormat("DD");
-
- model.setValue("/root/send/list1/listatsu/basedd", syear + smonth + sday);
- model.setValue("/root/send/list1/listatsu/selectedrdodiagkind","1"); // ICD10으로 고정
-
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/list1/listatsu", "/root/init", "", "");
- } else {
- trgtManWindow.javascript.fSearchDiag();
- activateChild("SPPIZ00400");
- }
- model.refresh();
- }
-
- // 상병조회 팝업에서 상병을 더블클릭 했을경우 상병 그리드에 반영
- function fSetDiagCdNm() {
- // 검색창에서 상병코드를 검색했을 경우에 검색창부분에 반영
- //if(grd_listatsu.col == -1){
- if(cmb_srchkind.value == "1"){
- var diagcd = model.getValue("/root/hidden/sppiz00400/rslt/diagcd");
- var diaghngnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- model.refresh();
- model.setValue("/root/send/reqdata/srch", diagcd);
- model.setValue("/root/main/cdnmchk/optcdnm", diaghngnm);
- //opt_nm.value= model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- }
- //}
- // 시작상병코드와 명을 반영
- if(grd_listatsu.col == grd_listatsu.colRef("diagcdfrom")){
- var diagcd = model.getValue("/root/hidden/sppiz00400/rslt/diagcd");
- var diaghngnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- model.refresh();
- model.setValue("/root/main/list1/listatsu["+grd_listatsu.row+"]/diagcdfrom", diagcd);
- model.setValue("/root/main/list1/listatsu["+grd_listatsu.row+"]/diagnmfrom", diaghngnm);
-
- if (diagcd != "") {
- var rowstatus = grd_listatsu.rowStatus(grd_listatsu.row);
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/changeflag","U");
- }
- }
-
- }
-
- // 종료상병코드와 명을 반영
- if(grd_listatsu.col == grd_listatsu.colRef("diagcdto")){
- var diagcd = model.getValue("/root/hidden/sppiz00400/rslt/diagcd");
- var diaghngnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- model.refresh();
- model.setValue("/root/main/list1/listatsu["+grd_listatsu.row+"]/diagcdto", diagcd);
- model.setValue("/root/main/list1/listatsu["+grd_listatsu.row+"]/diagnmto", diaghngnm);
-
- if (diagcd != "") {
- var rowstatus = grd_listatsu.rowStatus(grd_listatsu.row);
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/changeflag","U");
- }
- }
- }
- model.refresh();
- }
-
- // 특정코드 팝업창 띄우기
- function fSearchSpcl() {
- // *특정코드과 특정내역을 입력하기 위한 특정내역관리 창을 연다.*
- // grid의 특정코드컬럼 부분인 10번째 컬럼일 경우...
- if(grd_listatsu.col == grd_listatsu.colRef("spclcd") || grd_listatsu.col == grd_listatsu.colRef("spclspec") ){
- var spclcd = model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/spclcd");
- var spclspec = model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/spclspec");
- // 특정코드와 특정내역의 값이 없을경우(첫입력일경우)
- if(spclcd == "" && spclspec == ""){
- // 그냥 팝업창을 띄운다.
- modal("SPPIZ00500" ,"", "10", "10", "SPPIZ00500", "", "", "", "");
- // 팝업창에서 입력된 내용을 grid에 넣어준다.
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/spclcd", model.getValue("/root/hidden/sppiz00500/rslt/spclcd"));
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/spclspec", model.getValue("/root/hidden/sppiz00500/rslt/spclspec"));
- }
- // 특정코드와 특정내역의 값이 있을경우(수정일경우)
- if(spclcd != "" && spclspec != ""){
- // 임의의 인스턴스를 만들어 해당 특정코드와 특정내역을 넣어놓는다.
- model.setValue("/root/temp/clsp/spclcd", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row+ "]/spclcd"));
- model.setValue("/root/temp/clsp/spclspec", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row+ "]/spclspec"));
- // 팝업창을 열고 임의의 인스턴스의 값을 팝업창 내부의 해당 인스턴스와 매칭시킨다.
- modal("SPPIZ00500" ,"", "10", "10", "SPPIZ00500","/root/temp/clsp","/root/hidden/clsp/cond", "", "");
- // 팝업창에서 입력된 내용을 grid에 넣어준다.
- var scd = model.getValue("/root/hidden/sppiz00500/rslt/spclcd");
- var smemo = model.getValue("/root/hidden/sppiz00500/rslt/spclspec");
-
- if(scd != "" && smemo != ""){
-
- var spclcd = model.getValue("/root/hidden/sppiz00500/rslt/spclcd");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/spclcd", spclcd);
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/spclspec", model.getValue("/root/hidden/sppiz00500/rslt/spclspec"));
-
- if (spclcd !="") {
- var rowstatus = grd_listatsu.rowStatus(grd_listatsu.row);
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/changeflag","U");
- }
- }
- }
- }
- }
- }
- function fCalcscorcd() {
- var row = grd_listatsu.row;
- var col = grd_listatsu.col;
- var tmpcalcscorcd = model.getValue("/root/send/reqdata/srch"); // 잠시백업
- model.setValue("/root/send/reqdata/srch",model.getValue("/root/main/list1/listatsu["+row+"]/calcscorcd"));
- submit("TRPIB00802");
-
- var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
- var hngcnt = model.getValue("/root/hidden/listrsltnm/rsltnm/hngcnt");
-
- // 조회된 쿼리가 한개인경우
- if(hngnm != ""){
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("calcscornm") ) = hngnm;
- }
- // 조회된 쿼리가 한개가 아니거나 없는경우.
- if(hngnm == ""){
- grd_listatsu.valueMatrix(row, grd_listatsu.colRef("calcscornm") ) = "";
- fSearchCalcscorcd("grid"); // 수가조회 팝업을 통하여 수가명 조회
- // 서브밋을 위해 사용하엿던 컨트롤을 정리
- //model.setValue("/root/send/reqdata/srch","");
- //ipt_srch.value = "";
- model.setValue("/root/send/reqdata/srch",tmpcalcscorcd); // 원상복구
- model.refresh();
- }
- }
- // 수가조회 팝업에서 수가코드를 더블클릭 했을경우 수가 그리드에 반영
- function fSearchCalcscorcd(inputFlag) {
- // 수가조회 팝업.. 팝업창의 /root/temp에 /root/send/reqdata/srch값을 넣어준다.
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/send/reqdata/srch", "/root/temp", "", "");
- // grid에서 검색한것이 아니라 ipt에서 검색했을때..
- //if(cmb_srchkind.value == "0") {
- if ( inputFlag == "ipt" ) {
- var calcscorcd = model.getValue("/root/temp/picmmech/picmmech_calcscorcd");
- var hngnm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- model.refresh();
- model.setValue("/root/send/reqdata/srch", calcscorcd);
- model.setValue("/root/main/cdnmchk/optcdnm", hngnm);
- }
- // 그리드에서 수가코드인 col이 '1'일때.
- //if(grd_listatsu.col == 1){
- if ( inputFlag == "grid" ) {
- var calcscorcd = model.getValue("/root/temp/picmmech/picmmech_calcscorcd");
- var calcscornm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- model.refresh();
-
- model.setValue("/root/main/list1/listatsu["+ grd_listatsu.row +"]/calcscorcd", calcscorcd);
- model.setValue("/root/main/list1/listatsu["+ grd_listatsu.row +"]/calcscornm", calcscornm);
-
- if (calcscorcd != "") {
- var rowstatus = grd_listatsu.rowStatus(grd_listatsu.row);
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/changeflag","U");
- }
- }
- }
- model.refresh();
- }
-
- function fGetCodeNm() {
- // 검색조건을 선택하지 않고 inputbutton을 클릭하였을 경우..
- if(cmb_srchkind.value == '-'){
- messageBox("검색조건을","C002");
- }
- // 수가코드 선택
- if (cmb_srchkind.value == '0'){
- // 수가명을 가져오는 submission을 수행한다.
- var srch = model.getValue("/root/send/reqdata/srch");
- submit("TRPIB00802");
- model.setValue("/root/send/reqdata/srch", srch);
- }
- // 상병코드 선택
- if (cmb_srchkind.value == '1'){
- // 상병명을 가져오는 sumission을 수행한다.
- var srch = model.getValue("/root/send/reqdata/srch");
- submit("TRPIB00803");
- model.setValue("/root/send/reqdata/srch", srch);
- }
-
- var hngnm = model.getValue("/root/hidden/listrsltnm/rsltnm/hngnm");
- var hngcnt = model.getValue("/root/hidden/listrsltnm/rsltnm/hngcnt");
- // 쿼리갯수가 1개일 경우
- if(hngcnt == '1'){
- opt_nm.value= hngnm;
- }
- // 쿼리값이 한개가 아닌경우(한개도 없거나, 1개이상이거나)
- if(hngcnt !== '1'){
- // 조건분류가 수가코드이면...
- if(cmb_srchkind.value == '0'){
- fSearchCalcscorcd("ipt"); // 수가코드 조회 창을 띄운다.
- }
- // 조건분류가 상병코드이면...
- if(cmb_srchkind.value == '1'){
- model.setValue("/root/send/list1/listatsu/diagcd",ipt_srch.value);
- fSearchDiag(); // 상병코드 조회창을 띄운다.
- }
- }
- }
- function fMovCol() {
- var col = grd_listatsu.col;
- if(col == grd_listatsu.colRef("calcscorcd")){
- grd_listatsu.col = grd_listatsu.colRef("diagcdfrom");
- //grd_listatsu.editCell();
- } else if(col == grd_listatsu.colRef("diagcdfrom")) {
- grd_listatsu.col = grd_listatsu.colRef("diagcdto");
- //grd_listatsu.editCell();
- } else if(col==grd_listatsu.colRef("diagcdto")) {
- grd_listatsu.col = grd_listatsu.colRef("spclspec");
- }
- }
- function fDelRow() {
- var rows = grd_listatsu.rows;
-
- for(var i = 1; i <= rows; i++){
- var todd = model.getValue("/root/main/list1/listatsu[" + i + "]/todd");
- var currentdate = model.getValue("/root/hidden/currentdate");
- if(todd <= currentdate){
- grd_listatsu.rowStyle(i,"all","color") = "#FF0000";
- grd_listatsu.isReadOnly(i, 1, i, 13) = true;
- } else {
- grd_listatsu.rowStyle(i,"all","color") = "#000000";
- grd_listatsu.isReadOnly(i, 1, i, 13) = false;
- }
- }
- }
-
- function fAddRow() {
-
- grd_listatsu.AddRow(true, true);
- /*
- var today = getCurrentDate(); // 현재 날짜를 얻어옴
- */
- var today = model.getValue("/root/hidden/currentdate");
-
- // 행추가후 기본적인 data를 넣어준다(default 값)
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/diagcdfrom", "-");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/diagcdto", "-");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/fromdd", today);
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/todd", "99991231");
- //model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/spclcd", "JX999");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/spclcd", model.getValue("/root/send/reqdata/spclcd"));
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/spclspec", "");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/ioflag", "A");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/orddeptcd", "-");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/repday", "0");
-
- model.makeNode("/root/main/list1/listatsu[" + grd_listatsu.row+ "]/changeflag");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+ "]/changeflag","I");
-
- grd_listatsu.select(grd_listatsu.row, grd_listatsu.colRef("calcscorcd"), grd_listatsu.row, grd_listatsu.colRef("seq")) = true;
- }
-
- // 김용민 ... 진료과 선택창 띄위기전에 초기작업을 한다.
- function fSelectDeptInit() {
- model.setValue("/root/hidden/seldeptbase/calcscorcd", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/calcscorcd") );
- model.setValue("/root/hidden/seldeptbase/calcscornm", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/calcscornm") );
- model.setValue("/root/hidden/seldeptbase/calcscorcdkey",model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/calcscorcdkey") );
- model.setValue("/root/hidden/seldeptbase/toddkey", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/toddkey") );
- model.setValue("/root/hidden/seldeptbase/seq", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/seq") );
- model.setValue("/root/hidden/seldeptbase/deptcd", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.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" );
- model.setValue("/root/hidden/seldeptlist[" + i + "]/calcscorcdkey", "" );
- model.setValue("/root/hidden/seldeptlist[" + i + "]/toddkey", "" );
- model.setValue("/root/hidden/seldeptlist[" + i + "]/seq", "" );
- grd_seldeptlist.clearStatus();
- }
- for( i = grd_listatsu.fixedRows; i < grd_listatsu.rows ; i++ ) {
- if ( model.getValue("/root/hidden/seldeptbase/calcscorcdkey") == model.getValue("/root/main/list1/listatsu[" + i + "]/calcscorcdkey") ) {
- var tmpDeptcd = model.getValue("/root/main/list1/listatsu[" + i + "]/orddeptcd");
-
- for( j = grd_seldeptlist.fixedRows; j < grd_seldeptlist.rows ; j++ ) {
- if ( tmpDeptcd == grd_seldeptlist.valueMatrix(j,1) ) {
- model.setValue("/root/hidden/seldeptlist[" + j + "]/selyn","true");
- model.setValue("/root/hidden/seldeptlist[" + j + "]/oldselyn","true");
- model.setValue("/root/hidden/seldeptlist[" + j + "]/calcscorcdkey",model.getValue("/root/main/list1/listatsu[" + i + "]/calcscorcdkey") );
- model.setValue("/root/hidden/seldeptlist[" + j + "]/toddkey",model.getValue("/root/main/list1/listatsu[" + i + "]/toddkey") );
- model.setValue("/root/hidden/seldeptlist[" + j + "]/seq",model.getValue("/root/main/list1/listatsu[" + i + "]/seq") );
- }
- }
- }
- }
- 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() {
-
- // 빈 신규입력 줄 삭제
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- if ( model.getValue("root/main/list1/listatsu[" + i + "]/calcscorcd") == ""
- && model.getValue("root/main/list1/listatsu[" + i + "]/calcscorcdkey") == ""
- && model.getValue("root/main/list1/listatsu[" + i + "]/toddkey") == ""
- && model.getValue("root/main/list1/listatsu[" + i + "]/seq") == ""
- ) {
- var rowstatus = grd_listatsu.rowStatus(i);
- if (rowstatus == 1 || rowstatus == 3) {
- var changeflag = model.getValue("/root/main/list1/listatsu[" + i + "]/changeflag");
- if (changeflag == "I") {
- grd_listatsu.rowStatus(i) = 0;
- }
- }
- //grd_listatsu.deleteItem(i);
- grd_listatsu.deleteRow(i,false);
- }
- }
-
- // 신규입력 먼저 체크
- 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"
- ) {
- var jobrow = 0;
-
- for ( j = grd_listatsu.fixedRows; j < grd_listatsu.rows; j++) {
-
- if ( model.getValue("root/main/list1/listatsu[" + j + "]/calcscorcd") == model.getValue("root/hidden/seldeptbase/calcscorcd")
- && model.getValue("root/main/list1/listatsu[" + j + "]/orddeptcd") == model.getValue("root/hidden/seldeptbase/deptcd")
- && model.getValue("root/main/list1/listatsu[" + j + "]/calcscorcdkey") == model.getValue("root/hidden/seldeptbase/calcscorcdkey")
- && model.getValue("root/main/list1/listatsu[" + j + "]/toddkey") == model.getValue("root/hidden/seldeptbase/toddkey")
- && model.getValue("root/main/list1/listatsu[" + j + "]/seq") == model.getValue("root/hidden/seldeptbase/seq")
- && jobrow == 0 // 처음한번만 조회
- ) {
- jobrow = j;
- break;
- }
- }
- if ( jobrow > 0 && jobrow < grd_listatsu.rows ) { // 신규입력
- grd_listatsu.AddRow(false,false);
- model.copyNode("/root/main/list1/listatsu[" + grd_listatsu.row + "]","/root/main/list1/listatsu[" + jobrow +"]");
- model.makeNode("/root/main/list1/listatsu[" + grd_listatsu.row + "]/changeflag");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/changeflag","U");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row + "]/orddeptcd",model.getValue("root/hidden/seldeptlist["+ i +"]/deptcd"));
- }
-
- }
-
- }
- // 삭제 체크
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
-
- if ( model.getValue("root/hidden/seldeptlist[" + i + "]/selyn") == "false"
- && model.getValue("root/hidden/seldeptlist[" + i + "]/oldselyn") == "true"
- ) {
- var jobrow = 0;
- for ( j = grd_listatsu.fixedRows; j < grd_listatsu.rows; j++) {
- if ( model.getValue("root/main/list1/listatsu[" + j + "]/calcscorcd") == model.getValue("root/hidden/seldeptbase/calcscorcd")
- && model.getValue("root/main/list1/listatsu[" + j + "]/orddeptcd") == model.getValue("root/hidden/seldeptlist["+ i +"]/deptcd")
- && model.getValue("root/main/list1/listatsu[" + j + "]/calcscorcdkey") == model.getValue("root/hidden/seldeptlist["+ i +"]/calcscorcdkey")
- && model.getValue("root/main/list1/listatsu[" + j + "]/toddkey") == model.getValue("root/hidden/seldeptlist["+ i +"]/toddkey")
- && model.getValue("root/main/list1/listatsu[" + j + "]/seq") == model.getValue("root/hidden/seldeptlist["+ i +"]/seq")
- ) {
- jobrow = j;
- break;
- }
- }
- if ( jobrow > 0 && jobrow < grd_listatsu.rows ) { // 삭제
- var rowstatus = grd_listatsu.rowStatus(jobrow);
- if (rowstatus == 1 || rowstatus == 3) {
- var changeflag = model.getValue("/root/main/list1/listatsu[" + jobrow + "]/changeflag");
- if (changeflag == "I") {
- grd_listatsu.rowStatus(jobrow) = 0;
- }
- }
- //grd_listatsu.deleteItem(jobrow);
- grd_listatsu.deleteRow(jobrow,false);
- }
- }
-
- }
-
- model.refresh(); // 작업완료 refresh
- }
-
- // 김용민 - 화면 display 버튼 사용여부 제어
- function fSetDisplayDisable(iFlag) {
- if ( iFlag == true ) {
-
- grd_listatsu.disabled = true;
- btn_search.disabled = true;
- bbt_save.disabled = true;
- bbt_init.disabled = true;
-
- btn_sel_dept.disabled = true;
- btn_excel.disabled = true;
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_copyrow.disabled = true;
-
- } else {
-
- grd_listatsu.disabled = false;
- btn_search.disabled = false;
- bbt_save.disabled = false;
- bbt_init.disabled = false;
-
- btn_sel_dept.disabled = false;
- btn_excel.disabled = false;
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_copyrow.disabled = false;
-
- }
-
- }
- // 김용민 - 화면 display 버튼 사용여부 제어
- function fSelectList() {
- var srchcond = model.getValue("/root/send/reqdata/srchkind")
- var srch = model.getValue("/root/send/reqdata/srch")
-
- // 그리드 초기화
- model.removeNodeset("/root/main/list1/listatsu");
- grd_listatsu.refresh();
-
- // 모든 내역을 확인하고 싶을때..(검색조건이 전체일때)
- if(srchcond == "-" ){
- submit("TRPIB00801");
- fAddRow();
- }
-
- // 각 조건별로 검색하고 싶을때..(검색조건이 전체가 아닌 다른경우)
- if(srchcond != "-"){
- // 검색조건의 입력여부를 확인 후 submit한다.
- if(fGetAutMemoCretList()) {
- submit("TRPIB00801");
- fAddRow();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1211;2,784;1,0;1,0;">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1200px; height:717px; ">
- <group id="group2" scroll="auto" style="left:0px; top:10px; width:1200px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1200px; height:40px; "/>
- <caption id="caption2" class="search_name" style="left:5px; top:10px; width:81px; height:17px; ">검색조건 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1137px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectList();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1129px; y1:9px; x2:1129px; y2:31px; "/>
- <input id="ipt_mdldd" ref="/root/send/reqdata/mdldd" class="input_date" visibility="hidden" inputtype="date" required="false" appearance="input" style="left:167px; top:10px; width:94px; height:19px; "/>
- <input id="ipt_srch" ref="/root/send/reqdata/srch" class="input_search" navindex="2" imemode="disabled" inputtype="button" required="false" _chartype="upper" appearance="input" style="left:167px; top:10px; width:94px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetCodeNm();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <select1 id="cmb_srchkind" ref="/root/send/reqdata/srchkind" class="combo_search" navindex="1" appearance="minimal" style="left:89px; top:10px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>수가코드</label>
- <value>0</value>
- </item>
- <item>
- <label>상병코드</label>
- <value>1</value>
- </item>
- <item>
- <label>기준일</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // 검색분류에 따라 수가 및 상병코드일때는 ipt_srch가 보이고, 기준일이면, ipt_mdldd가 보인다.
- if (model.getValue("/root/send/reqdata/srchkind") == '2'){
- ipt_mdldd.visible = true;
- ipt_srch.visible = false;
- } else if (model.getValue("/root/send/reqdata/srchkind") == '0' || model.getValue("/root/send/reqdata/srchkind") == '1' ) {
- ipt_mdldd.visible = false;
- ipt_srch.visible = true;
- } else {
- // 전체 선택되면 우측 입력필드 내용 지움
- model.setValue("/root/send/reqdata/srch", "");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검색조건이 변화가 발생했을 경우 코드창과 코드명창을 초기화한다.
- // opt_nm.value="";
- // ipt_srch.value = "";
- // model.resetInstanceNode("/root/send/reqdata/srch");
- // model.resetInstanceNode("/root/main/cdnmchk/optcdnm");
- model.resetInstanceNode("/root/temp/picmmech");
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:521px; top:12px; width:74px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddepcdt" ref="/root/send/reqdata/orddeptcd" class="combo_search" navindex="3" appearance="minimal" style="left:595px; top:12px; width:100px; height:19px; ">
- <choices>
- <!-- ZBC001.js에서 가져온 P0149(진료과코드)를 select에 뿌려준다.-->
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </select1>
- <output id="opt_nm" ref="/root/main/cdnmchk/optcdnm" style="left:267px; top:10px; width:245px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:715px; top:13px; width:75px; height:17px; ">종료건 :</caption>
- <select1 id="rdo_delinclude" ref="/root/send/reqdata/delinclude" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:790px; top:14px; width:105px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>포함</label>
- <value>1</value>
- </item>
- <item>
- <label>미포함</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:916px; top:14px; width:90px; height:17px; ">특정코드 :</caption>
- <select1 id="radio1" ref="/root/send/reqdata/spclcd" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:1003px; top:15px; width:120px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>메모</label>
- <value>JX999</value>
- </item>
- <item>
- <label>소명자료</label>
- <value>MT015</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue("/root/send/reqdata/spclcd") == "MT015" ) {
- grd_listatsu.colAttribute(grd_listatsu.colRef("spclspec"),"editable") = "false";
- } else {
- grd_listatsu.colAttribute(grd_listatsu.colRef("spclspec"),"editable") = "true";
- }
- fSelectList();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:65px; width:105px; height:13px; ">자동 메모 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1200px; y2:80px; "/>
- <button id="btn_delrow" class="btn2_letter3" navindex="7" style="left:1088px; top:59px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(grd_listatsu.row <= 0){
- messageBox("삭제할 행을","C002");
- } else {
- for( i = grd_listatsu.fixedRows; i < grd_listatsu.rows ; i++ ) {
- var rowstatus = grd_listatsu.rowStatus(i);
- if (rowstatus == 1 || rowstatus == 3) {
- var changeflag = model.getValue("/root/main/list1/listatsu[" + i + "]/changeflag");
- if (changeflag == "I") {
- grd_listatsu.rowStatus(i) = 0;
- }
- }
- }
-
- grd_listatsu.deleteItem(grd_listatsu.row);
-
- /*
- var rows = grd_listatsu.selectedRows;
-
- for(var i = 0; i<rows; i++){
- grd_listatsu.addstatus(grd_listatsu.selectedrow(i),"delete");
- }
- */
-
- //fLineDel();
- }
- // var line = grd_listatsu.row;
- // // grid의 메뉴가 '0'이므로 선택되어진 row가 1보다 같거나 클것이다.
- // if(line >= 1){
- // // 해당 row의 status를 delete로 바꾼다.(grid의 status바의 상태가 'O'에서 'D'로 변한다
- // grd_listatsu.addstatus(grd_listatsu.row, "delete");
- // // row를 지우기 위한 함수를 실행한다.
- // fLineDel();
- // }
- // // 삭제할 행을 선택하지 않고 행삭제를 클릭할 경우 알림메세지를 뿌려준다.
- // if(line <= 0) {
- // messageBox("삭제할 행을","C002");
- // }
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter4" navindex="5" style="left:965px; top:59px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_listatsu.rows == 1) {
- return;
- }
-
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_listatsu.saveExcel(fileName, "자동메모생성관리", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" navindex="6" style="left:1032px; top:59px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 행추가
- fAddRow();
- grd_listatsu.col = 1; // 행추가된 row 로 이동한다.
- ]]>
- </script>
- </button>
- <button id="btn_copyrow" class="btn2_letter3" navindex="8" style="left:1144px; top:59px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- grd_listatsu.insertitem(grd_listatsu.row);
-
- var today = getCurrentDate(); // 현재 날짜를 얻어옴
-
- // 행추가후 기본적인 data를 넣어준다(default 값)
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/fromdd", today);
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+" ]/todd", "99991231");
- */
- var row = grd_listatsu.row;
-
- if(row <= 0){
- messageBox("복사할 행을","C002");
-
- }
- grd_listatsu.AddRow(false);
-
- model.copyNode("/root/main/list1/listatsu[" + grd_listatsu.row+ "]","/root/main/list1/listatsu[" + row + "]");
- model.makeNode("/root/main/list1/listatsu[" + grd_listatsu.row+ "]/changeflag");
- model.setValue("/root/main/list1/listatsu[" + grd_listatsu.row+ "]/changeflag","U");
- model.refresh();
- grd_listatsu.col = 1; // 행추가된 row 로 이동한다.
- ]]>
- </script>
- </button>
- <datagrid id="grd_listatsu" nodeset="/root/main/list1/listatsu" caption="수가코드^수가명^시작상병^시작상병명^종료상병^종료상병명^내원^진료과^시작일자^종료일자^특정코드^특정내역^수가코드key^종료일자key^순번^기간^상태" colsep="^" colwidth="85, 140, 57, 122, 58, 125, 39, 73, 85, 84, 57, 191, 100, 100, 100, 40, 100" defaultrows="0" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" navindex="9" dataeight="23" style="left:0px; top:85px; width:1200px; height:625px; ">
- <col imemode="disabled" ref="calcscorcd" type="inputbutton" _chartype="upper" style="left:20px; top:23px; width:90px; height:23px; "/>
- <col ref="calcscornm" type="output"/>
- <col imemode="disabled" ref="diagcdfrom" type="inputbutton" _chartype="upper"/>
- <col ref="diagnmfrom" type="output"/>
- <col imemode="disabled" ref="diagcdto" type="inputbutton" _chartype="upper"/>
- <col ref="diagnmto" type="output"/>
- <col ref="ioflag" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <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="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate"/>
- <col ref="spclcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/spclcdlist/spclcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="spclspec" type="inputbutton"/>
- <col ref="calcscorcdkey" visibility="hidden"/>
- <col ref="toddkey" visibility="hidden"/>
- <col ref="seq" type="output" visibility="hidden"/>
- <col ref="repday" type="input" style="text-align:center; "/>
- <col ref="changeflag" visibility="hidden"/>
- <!-- 수가코드, 시작상병코드, 종료상병코드 입력시 해당 cell에 값이 변경될 경우 일어나는 이벤트로 서브밋을 날리면 해당 명이 뿌려진다.-->
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- var row = grd_listatsu.row;
- var col = grd_listatsu.col;
- // 해당 row의 status(상태:O,I,U,D)를 가져온다.
- var status = grd_listatsu.rowStatus(row);
- if(event.keyCode == 13){
- //if( col == 1 ) {
- if ( col == grd_listatsu.colRef("calcscorcd") ) {
- grd_listatsu.endEditCell();
- var cal = grd_listatsu.valueMatrix(row, col);
- if(cal == ""){ }//alert("수가조회 안한다잉~~");
- if(cal != ""){
- fCalcscorcd();
- fMovCol();
- }
- //} else if( col == 3 ) {
- } else if( col == grd_listatsu.colRef("diagcdfrom") ) {
- grd_listatsu.endEditCell();
- var cal = grd_listatsu.valueMatrix(row, col);
- if(cal == "") { }//alert("시작상병조회 안한다~아찌?");
- if(cal != "") {
- fDiag();
- fMovCol();
- }
- //} else if( col == 5) {
- } else if( col == grd_listatsu.colRef("diagcdto") ) {
- grd_listatsu.endEditCell();
- var cal = grd_listatsu.valueMatrix(row, col);
- if(cal == ""){ }//alert("종료상병조회 안한다잉.. 아그야~");
- if(cal != ""){
- fDiagTwo();
- fMovCol();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var row = grd_listatsu.row;
- var col = grd_listatsu.col;
-
- // 해당 row의 status(상태:O,I,U,D)를 가져온다.
- var status = grd_listatsu.rowStatus(row);
-
- if ( col == grd_listatsu.colRef("calcscorcd") ) {
- fCalcscorcd();
- } else if ( col == grd_listatsu.colRef("diagcdfrom") ) {
- var oldvalue = grd_listatsu.valueMatrix(row,col);
- fDiag();
- var newvalue = grd_listatsu.valueMatrix(row,col);
- if ( oldvalue == "-" ) { oldvalue = ""; }
- if ( newvalue == "-" ) { newvalue = ""; }
- if ( oldvalue != newvalue ) {
- if (status == 0) { grd_listatsu.rowstatus(row) = 2; }
- }
- } else if( col == grd_listatsu.colRef("diagcdto") ) {
- var oldvalue = grd_listatsu.valueMatrix(row,col);
- fDiagTwo();
- var newvalue = grd_listatsu.valueMatrix(row,col);
- if ( oldvalue == "-" ) { oldvalue = ""; }
- if ( newvalue == "-" ) { newvalue = ""; }
- if ( oldvalue != newvalue ) {
- if (status == 0) { grd_listatsu.rowstatus(row) = 2; }
- }
- /*
- } else if( col == grd_listatsu.colRef("spclcd") ) {
- // *** 특정코드 및 특정내역의 변경이 발생하였을때 이전의 값과 비교하여 변경이 되었으면 grid의 status의 상태를 'U'로 바꿔준다. *****
- var spclcd = grd_listatsu.valueMatrix(row, col);
- var spclspec = grd_listatsu.valueMatrix(row, col+1);
-
- fSearchSpcl();
- var spclcdtwo = grd_listatsu.valueMatrix(row, col);
- var spclspectwo = grd_listatsu.valueMatrix(row, col+1);
- if(status == 0){
- if(spclcd != spclcdtwo){
- grd_listatsu.rowStatus(row) = 2;
- }
- if(spclspec != spclspectwo){
- grd_listatsu.rowStatus(row) = 2;
- }
- }
- */
- } else if( col == grd_listatsu.colRef("spclspec") ) {
- if (grp_spclspec.visible == true) {
- grp_spclspec.visible = false;
- return;
- }
- if ( grd_listatsu.valueMatrix(grd_listatsu.row,grd_listatsu.colRef("calcscorcd")) == "" ) {
- return;
- }
- if ( model.getValue("/root/send/reqdata/spclcd") == "MT015" ) {
- var nowrow = grd_listatsu.mouseRow;
- var rsltrow = 0;
- model.resetInstanceNode("/root/hidden/sppsiz00200/rslt/clsp");
- model.setValue("/root/hidden/sppiz00200/cond/clsp/spclspec",model.getValue("/root/main/list1/listatsu[" + nowrow + "]/spclspec"));
- modal("SPPIZ00200", "1", "10", "10", "SPPIZ00200", "", "", "", ""); // SPPIZ00200_첨부물자료관리.xrw
-
- //model.setValue("/root/main/list1/listatsu[" + nowrow + "]/spclspec",model.getValue("/root/hidden/sppiz00200/rslt/clsp/spclspec[spclcd=MT015]"));
- for (var i = 1; i <= model.getXPathValue( "count(/root/hidden/sppiz00200/rslt/clsp)" ); i++) {
- if ( model.getValue("/root/hidden/sppiz00200/rslt/clsp[" + i + "]/spclcd") == "MT015" ) {
- rsltrow = i;
- break;
- }
- }
- if ( rsltrow > 0 ) {
- //messageBox(rsltrow,"");
- if ( model.getValue("/root/hidden/sppiz00200/rslt/clsp[" + rsltrow + "]/rowstat") == "D" ) {
- model.setValue("/root/main/list1/listatsu[" + nowrow + "]/spclspec","");
- } else {
- model.setValue("/root/main/list1/listatsu[" + nowrow + "]/spclspec",model.getValue("/root/hidden/sppiz00200/rslt/clsp[" + rsltrow + "]/spclspec"));
- }
- }
- } else {
- model.setValue("/root/hidden/spclspec", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.mouseRow + "]/spclspec"));
- model.setValue("/root/hidden/oldspclspec", model.getValue("/root/main/list1/listatsu[" + grd_listatsu.mouseRow + "]/spclspec"));
- grp_spclspec.attribute("top") = 125;
- grp_spclspec.attribute("left") = 380;
- grp_spclspec.visible = true;
- model.setFocus("tar_spclspec");
- tar_spclspec.refresh();
- fSetDisplayDisable(true); // 화면 사용여부 제어
- }
- }
- ]]>
- </script>
- <!--<script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- for(var i = 1 ; i < grd_listatsu.rows ; i++) {
- // 각 row마다 status를 확인한다.
- var status = grd_listatsu.rowStatus(i);
- // status의 상태를 확인한다(1:insert, 2:update, 3:insert&new)
- if(status == "1" || status =="3" ) {
- //grd_listatsu.isReadOnly(1,1,1,1) = true;
- }
- }
- ]]>
- </script>-->
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_listatsu.row;
- var rowstatus = grd_listatsu.rowStatus(row);
- if (rowstatus == 1 || rowstatus == 3) {
- model.setValue("/root/main/list1/listatsu[" + row+ "]/changeflag","U");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_listatsu.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_sel_dept" class="btn2_letter5" navindex="5" style="left:886px; top:58px; width:75px; height:19px; ">
- <caption>진료과선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_listatsu.valueMatrix(grd_listatsu.row,grd_listatsu.colRef("calcscorcd")) == "" ) {
- messageBox("선택된 수가가", "I004");
- return;
- }
- fSelectDeptInit();
- grp_dept_select.attribute("top") = 125;
- grp_dept_select.attribute("left") = 380;
- grd_seldeptlist.row = 1;
- grp_dept_select.visible = true;
- fSetDisplayDisable(true); // 화면 사용여부 제어
- ]]>
- </script>
- </button>
- <caption id="caption14" class="tit_2" style="left:125px; top:63px; width:405px; height:13px; color:#0000ff; ">동일 수가코드를 과별로 적용시는 진료과선택 기능을 이용하세요</caption>
- <caption id="caption8" class="tit_2" style="left:555px; top:62px; width:315px; height:13px; color:#0000ff; ">소명자료 입력시 텍스트입력(MT016)은 적용불가</caption>
- </group>
- <group id="group1" style="left:0px; top:0px; width:701px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:220px; height:13px; ">JX999, MX999, MT015 자동생성</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:737px; width:1200px; height:27px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:0px; x2:12.0px; y2:0px; "/>
- <button id="bbt_init" class="btn4_letter3" navindex="13" style="left:1130px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- // 행추가
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="bbt_save" class="btn4_letter2" navindex="11" style="left:1071px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (fChkAutMemoCretList()) {
-
- // 그리드 초기화
- model.removeNodeset("/root/main/list1/listatsu");
-
- if ( submit("TXPIB00801") ) {
- var controlSnw = document.controls("btn_search");
- controlSnw.dispatch("DOMActivate");
-
- messageBox("정상적으로 저장되었습니다.", "I999");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_spclspec" visibility="hidden" style="left:0px; top:190px; width:435px; height:400px; border-color:#000000; border-style:solid; ">
- <line id="line4" class="line_1" style="x1:0px; y1:20px; x2:430px; y2:20px; "/>
- <caption id="caption26" class="tit_2" style="left:5px; top:5px; width:113px; height:14px; ">특정내역</caption>
- <textarea id="tar_spclspec" ref="/root/hidden/spclspec" style="left:1px; top:25px; width:430px; height:334px; color:#000000; border-color:#333333; "/>
- <button id="btn_memosave" class="btn4_letter2" style="left:310px; top:365px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/list1/listatsu["+grd_listatsu.row+"]/spclspec", model.getValue("/root/hidden/spclspec"));
- grp_spclspec.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
-
- // 내용이 변경되면 update 상태 처리
- var oldspclspec = model.getValue("/root/hidden/oldspclspec");
- var spclspec = model.getValue("/root/hidden/spclspec");
-
- if (oldspclspec != spclspec) {
- var status = grd_listatsu.rowstatus(grd_listatsu.row);
- if (status == 0) {
- grd_listatsu.rowstatus(grd_listatsu.row) = 2;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_cancel" class="btn4_letter2" style="left:370px; top:365px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_spclspec.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
- ]]>
- </script>
- </button>
- </group>
- <!-- 2007.07.03 18:44-->
- <group id="grp_dept_select" visibility="hidden" style="left:445px; top:155px; width:360px; height:450px; 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:330px; border-color:#333333; ">
- <col ref="selyn" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="oldselyn" visibility="hidden"/>
- <col ref="calcscorcdkey" visibility="hidden"/>
- <col ref="toddkey" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:5px; top:5px; width:344px; height:13px; ">자동메모 진료과 선택 (수가코드로 조회후 사용하세요)</caption>
- <button id="button2" class="btn4_letter2" style="left:281px; top:418px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_dept_select.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:216px; top:418px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( fSelectDeptChk() == false ) return;
- fSelectDeptInput();
- grp_dept_select.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
- grd_listatsu.col = 1; // 마지막 row 로 이동
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:4px; y1:20px; x2:354px; y2:20px; "/>
- <output id="opt_seldeptcd" ref="/root/hidden/seldeptbase/calcscorcd" class="output_fix" appearance="output" style="left:14px; top:29px; width:75px; height:19px; color:#ff00ff; "/>
- <output id="opt_seldeptnm" ref="/root/hidden/seldeptbase/calcscornm" class="output_fix" appearance="output" style="left:94px; top:29px; width:245px; height:19px; color:#ff00ff; "/>
- <output id="opt_seldeptkeycalcs" ref="/root/hidden/seldeptbase/calcscorcdkey" class="output_fix" visibility="hidden" appearance="output" style="left:14px; top:50px; width:35px; height:19px; color:#ff00ff; "/>
- <output id="opt_seldeptkeytodd" ref="/root/hidden/seldeptbase/toddkey" class="output_fix" visibility="hidden" appearance="output" style="left:49px; top:50px; width:30px; height:19px; color:#ff00ff; "/>
- <output id="opt_seldeptkeyseq" ref="/root/hidden/seldeptbase/seq" class="output_fix" visibility="hidden" appearance="output" style="left:79px; top:50px; width:35px; 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_seldeptkeydeptcd" ref="/root/hidden/seldeptbase/deptcd" class="output_fix" visibility="hidden" appearance="output" style="left:114px; top:50px; width:35px; height:19px; color:#ff00ff; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|