123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : 건진대상자자료연계
- * 설 명 : 건진대상자자료연계
- * 설 계 자 :
- * 작 성 자 : 임여원
- * 작 성 일 : 2009.05.29
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>건진대상자자료연계</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <linkfiletrgtlst>
- <item>
- <sel/>
- <pid/>
- <hngnm/>
- <orddd/>
- <rrgstno/>
- <statflag/>
- <examnm/>
- <cncrcountryyn/>
- <trgtlinkflag/>
- <fstrsltlinkflag/>
- <scndrsltlinkflag/>
- <healexaminqrlinkflag/>
- <orallinkflag/>
- <oralinqrlinkflag/>
- <cancerlinkflag/>
- <cancerinqrlinkflag/>
- <medcancerlinkflag/>
- <rsrvdd/>
- <rsrvno/>
- <healexamflag/>
- <healexamdetlflag/>
- <appyear/>
- </item>
- </linkfiletrgtlst>
- <linkfilecmpylst>
- <item>
- <sel/>
- <appyear/>
- <cmpyid/>
- <cmpynm/>
- <insucorpbrchcd/>
- <insucorpbrchnm/>
- <civilaplflag/>
- <bizoffccd/>
- <bizoffcnm/>
- <cmpyno/>
- <cmpylinkflag/>
- </item>
- </linkfilecmpylst>
- <linkfile>
- <cmpy>
- <cmpyfile/>
- </cmpy>
- <trgt>
- <trgtfile/>
- <fstrsltfile/>
- <scndrsltfile/>
- <healexaminqrfile/>
- <oralfile/>
- <oralinqrfile/>
- <cancercountryfile/>
- <cancerfile/>
- <cancerinqrfile/>
- </trgt>
- </linkfile>
- </main>
- <send>
- <srchhealexamgubun/>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchappyear/>
- <srchfromdd/>
- <srchtodd/>
- <srchstatfg>H</srchstatfg>
- <srchpid/>
- <srchpnm/>
- <srchflag/>
- <srchflagstat/>
- <srchlinkfileflag/>
- <srchcmpyid/>
- <srchcmpynm/>
- <cret>
- <appyear/>
- <linkfileflag/>
- <cmpylink/>
- </cret>
- <save>
- <cmpystat/>
- <trgtstat/>
- </save>
- </send>
- <init>
- <baseinfo>
- <linkfilelst/>
- <linkflaglst/>
- <statlst/>
- <healexamgubun/>
- <yearlist/>
- </baseinfo>
- <datalink>
- <folderpath/>
- </datalink>
- </init>
- <hidden>
- <exestat/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA00002"/>
- <submission id="TRAHA04080" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/linkfilecmpylst"/>
- <submission id="TRAHA04081" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cret" replace="instance" resultref="/root/main/linkfile"/>
- <submission id="TRAHA04082" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/linkfiletrgtlst"/>
- <submission id="TRAHA04083" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cret" replace="instance" resultref="/root/main/linkfile"/>
- <submission id="TXAHA04080" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden/exestat"/>
- <submission id="TXAHA00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/drug" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAHA03230" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchstduser" replace="instance" resultref="/root/temp/stduserInfo"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetBasicCdList();
- fInit();
- btn_trgt.dispatch("DOMActivate");
- model.refresh();
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
- m_vHealexamflag = "";
- m_vHealexamdetlflag = "";
-
- /****************************************************************************************************
- *** 기초코드조회
- **************************************************************************************************/
- function fGetBasicCdList() {
- zbcfGetCodeList( new Array("A0615","A0107", "A0088")
- , new Array("/root/init/baseinfo/linkflaglst" //자료연계상태구분
- ,"/root/init/baseinfo/statlst" //건진상태구분
- ,"/root/init/baseinfo/healexamgubun" //검진분류
- ) );
-
- healGetCodeListSubmit( new Array("G099", "S900"), new Array("/root/init/baseinfo/linkfilelst", "/root/init/baseinfo/yearlist"), false);
- model.removenode("/root/init/baseinfo/linkfilelst/G099[1]");
- addComboItem("combo4", "전체", "", "above");
- addComboItem("combo2", "전체", "", "above");
-
- model.refresh();
- }
-
- /****************************************************************************************************
- *** 화면 초기화
- **************************************************************************************************/
- function fInit() {
- rdo_linkfileflag.select(0);
- grd_linkcmpylst.fixedcellcheckbox(0, grd_linkcmpylst.colRef("sel")) = true;
- grd_linktrgtlst.fixedcellcheckbox(0, grd_linktrgtlst.colRef("sel")) = true;
- model.setValue("/root/init/datalink/folderpath", "C:\\NHICGG\\apps");
-
- var sFlag = getScreenMenuParameter();
- if(sFlag == "") {
- m_vHealexamflag = "G";
- m_vHealexamdetlflag = "G01";
- }else {
- m_vHealexamflag = sFlag.substr(0, 1);
- m_vHealexamdetlflag = sFlag;
- }
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
-
- var curDate = getCurrentDate().toDate();
- var curYear = curDate.getDateFormat('YYYY');
- model.setValue(cmb_appyear.attribute("ref") , curYear);
- model.setValue(ipt_fromdd.attribute("ref") , getCurrentDate());
- model.setValue(ipt_todd.attribute("ref") , getCurrentDate());
-
- // model.setValue(ipt_fromdd.attribute("ref") , "20130524");
- // model.setValue(ipt_todd.attribute("ref") , "20130524");
-
- /*
- * A 공단검진
- * B 직원검진
- * C 경대교직원
- * D 영유아검진
- * E 영유아구강검진
- * F 공단생애검진
- * G 단체검진
- */
- // model.setValue("/root/send/srchhealexamgubun" , "A");
- // combo1.refresh();
-
- //사용자별 기본정보 설정 - 건진분류, 진료과
- model.resetInstanceNode("/root/send/srchstduser");
- model.makeValue("/root/send/srchstduser/srchhealexamflag" , m_vHealexamflag);
- model.makeValue("/root/send/srchstduser/srchuserid" , getUserId());
- model.makeValue("/root/temp/stdUser/item" , "");
- submit("TRAHA03230");
- if(getNodesetCount("/root/temp/stduserInfo/item") < 1){
- // messageBox("설정된 기본정보가 없습니다. 사용자별 기본정보 설정을", "I007");
- model.setValue("/root/send/srchhealexamgubun", "A");
- }else{
- model.setValue("/root/send/srchhealexamgubun", model.getValue("root/temp/stduserInfo/item/healexamgubun"));
- }
- }
- /****************************************************************************************************
- *** 조회 컨트롤 보여주기 초기화
- **************************************************************************************************/
- function fViewSrchCntrl(vFlag) {
- var vCmpy = false;
- var vTrgt = false
-
- switch(vFlag) {
- case "0" : vTrgt = true;
- break;
- case "1" : vCmpy = true;
- break;
- default : break;
- }
- //대상자
- cap_term.visible = vTrgt;
- cap_pat.visible = vTrgt;
- ipt_fromdd.visible = vTrgt;
- ipt_todd.visible = vTrgt;
- ipt_pid.visible = vTrgt;
- ipt_pnm.visible = vTrgt;
-
- //사업체
- cap_cmpyid.visible = vCmpy;
- cap_cmpynm.visible = vCmpy;
- ipt_cmpyid.visible = vCmpy;
- ipt_cmpynm.visible = vCmpy;
- }
- /****************************************************************************************************
- *** 연계파일 생성활 사업체 리스트 조회
- **************************************************************************************************/
- function fGetLinkFileCmpyList() {
- submit("TRAHA04080");
- }
-
- /****************************************************************************************************
- *** 연계파일을 생성활 대상자를 조회
- **************************************************************************************************/
- function fGetLinkFileTrgtList() {
- submit("TRAHA04082");
- }
- /****************************************************************************************************
- *** 단체 연계파일을 생성한다.
- **************************************************************************************************/
- function fSetCmpyLinkFileCret(){
- var cmpyLink = "";
- grd_linkcmpylst.clearStatus();
- for(var i=1; i < grd_linkcmpylst.rows; i++ ){
- if("Y" == grd_linkcmpylst.valueMatrix(i , grd_linkcmpylst.colRef("sel"))){
- grd_linkcmpylst.addStatus(i ,"insert");
- }
- }
- cmpyLink = getGridUpdateData(grd_linkcmpylst);
-
- if(cmpyLink != ""){
- model.makeValue("/root/send/cret/cmpylink" , cmpyLink);
- model.makeValue("/root/send/cret/linkfileflag" , model.getValue("/root/send/srchlinkfileflag"));
- if(submit("TRAHA04081")){
- fCretLinkFile("C");
- messageBox("파일생성이","I002");
- }
- }else{
- messageBox("사업장을","C002");
- return;
- }
- }
- /****************************************************************************************************
- *** 단체 연계파일을 생성한다.
- **************************************************************************************************/
- function fSetTrgtLinkFileCret(){
- if(model.getValue("/root/send/srchlinkfileflag") == ""){
- messageBox("연계파일생성 구분을","C002");
- return;
- }
- if(model.getValue("/root/send/srchappyear") == ""){
- messageBox("연계파일생성 기준년도를","C002");
- return;
- }
-
- var trgtLink = "";
- grd_linktrgtlst.clearStatus();
- for(var i=1; i<grd_linktrgtlst.rows; i++){
- if("Y" == grd_linktrgtlst.valueMatrix(i, grd_linktrgtlst.colRef("sel"))){
- grd_linktrgtlst.addStatus(i ,"insert");
- grd_linktrgtlst.valueMatrix(i, grd_linktrgtlst.colRef("appyear")) = model.getValue("/root/send/srchappyear");
- grd_linktrgtlst.valueMatrix(i, grd_linktrgtlst.colRef("linkfileflag")) = model.getValue("/root/send/srchlinkfileflag");
- }
- }
- trgtLink = getGridUpdateData(grd_linktrgtlst);
- if(trgtLink != ""){
- model.makeValue("/root/send/cret/linkfileflag" , model.getValue("/root/send/srchlinkfileflag"));
- model.makeValue("/root/send/cret/trgtlink" , trgtLink);
- if(submit("TRAHA04083")){
- fCretLinkFile("T");
- messageBox("파일생성이","I002");
- btn_search.dispatch("DOMActivate");
- }
- }else{
- messageBox("건진대상자를 ","C002");
- return;
- }
- }
- /****************************************************************************************************
- *** 연계파일을 생성한다.
- **************************************************************************************************/
- function fCretLinkFile(vFlag){
- var cmpyFile, trgtFile, fstRsltFile, scndRsltFile, healexamInqrFile, oralFile, oralInqrFile, cancerFile, cancerInqrFile = "";
- var sel = model.getValue("/root/send/cret/linkfileflag");
- var node = instance1.selectNodes("/root/init/baseinfo/linkfilelst/G099[cdid='" + sel + "']");
-
- if(vFlag == "C") {
- if(sel == "01") {
- if(node.length > 0 && node != null) {
- cmpyFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(cmpyFile, model.getValue("/root/main/linkfile/cmpy/cmpyfile"));
- }
- }
- }else if(vFlag == "T") {
- if(sel == "02") { // 대상자
- if(node.length > 0 && node != null) {
- trgtFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(trgtFile, model.getValue("/root/main/linkfile/trgt/trgtfile"));
- }
- }else if(sel == "03") { // 1차 검진결과
- if(node.length > 0 && node != null) {
- fstRsltFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(fstRsltFile,model.getValue("/root/main/linkfile/trgt/fstrsltfile"));
- }
- }else if(sel == "04") { // 2차 검진결과
- if(node.length > 0 && node != null) {
- scndRsltFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(scndRsltFile,model.getValue("/root/main/linkfile/trgt/scndrsltfile"));
- }
- }else if(sel == "05") { // 건강검진문진표
- if(node.length > 0 && node != null) {
- healexamInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(healexamInqrFile,model.getValue("/root/main/linkfile/trgt/healexaminqrfile"));
- }
- }else if(sel == "06") { // 구강검진
- if(node.length > 0 && node != null) {
- oralFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralFile,model.getValue("/root/main/linkfile/trgt/oralfile"));
- }
- }else if(sel == "07") { // 구강문진표
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/oralinqrfile"));
- }
- }else if(sel == "08") { //암검진결과(국가암포함)
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/cancercountryfile"));
- }
- }else if(sel == "09") { //의료급여암건진결과
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/cancerfile"));
- }
- }else if(sel == "10") { //암 문진표
- if(node.length > 0 && node != null) {
- oralInqrFile = node.item(0).cmt.text + "_" + getCurrentDate() + ".dat";
- fMakeFile(oralInqrFile,model.getValue("/root/main/linkfile/trgt/cancerinqrfile"));
- }
- }
- }
- }
-
- /****************************************************************************************************
- *** 파일을 생성한다.
- **************************************************************************************************/
- function fMakeFile(vFileName, vFileCont){
- if(vFileName == null || vFileCont == "") return;
- if(vFileCont == null || vFileCont == "") return;
-
- var defaultFolder = model.getValue("/root/init/datalink/folderpath");
- var fso = new ActiveXObject("Scripting.FileSystemObject");
- var folderExist = false;
- var fileExist = true;
- var fileCnt = 0;
-
- //폴더가 존재하는 체크
- if(fso.FolderExists(defaultFolder)){
- folderExist = true;
- }else{
- folderExist = false;
- fso.CreateFolder(defaultFolder);
- }
-
- //파일 존재체크 안됨 - fso.FileExists 오류?
- // while(fileExist){
- // // 파일이 존재하는 체크
- // if(fso.FileExists(defaultFolder + "\\" + vFileName)) {
- // fileCnt++;
- // }else {
- // if(fileCnt > 0) {
- // vFileName = "(" + fileCnt + ")" + vFileName;
- // }
- // fileExist = false;
- // }
- // }
- filePath = defaultFolder + "\\" + vFileName;
-
- //파일 생성
- if(filePath != ""){
- try{
- fso.CreateTextFile(filePath, true, true);
- file = fso.OpenTextFile(filePath, 2, true, true);
- file.Write(vFileCont);
- }catch(err){
- alert(err.description);
- }finally{
- file.close();
- }
- }
- }
- /**************************************************************************************************
- *** 대상자의 자료연계상태를 저장한다.
- **************************************************************************************************/
- function fSaveTrgtLinkStat() {
- grd_linktrgtlst.clearStatus();
- for(var i=0; i < grd_linktrgtlst.rows; i++) {
- if("Y" == grd_linktrgtlst.valueMatrix(i , grd_linktrgtlst.colRef("sel"))) {
- grd_linktrgtlst.addStatus(i , "insert");
- }
- }
- var trgtStat = getGridUpdateData(grd_linktrgtlst);
- if(trgtStat == "") {
- messageBox("건진자를","C002");
- }else {
- model.makeValue("/root/send/save/trgtstat",trgtStat);
- if(submit("TXAHA04080")) {
- fGetLinkFileTrgtList();
- }
- }
- }
-
- function fSaveCmpyLinkStat() {
- grd_linkcmpylst.clearStatus();
- for(var i=0; i < grd_linkcmpylst.rows; i++) {
- if("Y" == grd_linkcmpylst.valueMatrix(i , grd_linkcmpylst.colRef("sel"))) {
- grd_linkcmpylst.addStatus(i , "insert");
- }
- }
- var cmpyStat = getGridUpdateData(grd_linkcmpylst);
- if(cmpyStat == "") {
- messageBox("건진자를","C002");
- }else {
- model.makeValue("/root/send/save/cmpystat",cmpyStat);
- if(submit("TXAHA04080")) {
- fGetLinkFileCmpyList();
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">자료연계파일생성</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button1" class="btn3_letter8" style="left:5px; top:3px; width:125px; height:22px; ">
- <caption>연계파일생성경로</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.folderDialog("자료연계파일 생성경로");
- model.setValue("/root/init/datalink/folderpath" , fileName);
- opt_folderpath.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_folderpath" ref="/root/init/datalink/folderpath" style="left:134px; top:4px; width:450px; height:19px; font-weight:bold; "/>
- </group>
- <button id="btn_delete" class="btn4_letter2" style="left:1136px; top:760px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/save/trgtstat");
- model.resetInstanceNode("/root/send/save/cmpystat");
-
- if(case_cmpy.selected == true) {
- fSaveCmpyLinkStat();
- }else if(case_trgt.selected == true) {
- fSaveTrgtLinkStat();
- }
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:110px; width:1195px; height:647px; ">
- <case id="case_trgt" selected="true" style="left:0px; top:0px; width:1193px; height:662px; ">
- <caption id="caption3" class="tit_2" style="left:5px; top:6px; width:186px; height:14px; ">대상자연계</caption>
- <line id="line7" class="line_1" style="x1:5px; y1:25px; x2:1188px; y2:25px; "/>
- <datagrid id="grd_linktrgtlst" nodeset="/root/main/linkfiletrgtlst/item" autoresize="true" caption="선택^적용년도^등록번호^성명^건진일자^주민번호^상태^검사내역^국가암대상^대상자^1차검진^2차검진^검진 문진표^구강 검진^구강 문진표^암검진^암 문진표^의료급여암^등록일자^예약등록번호^건진구분^건진상세구분^linkfileflag" colsep="^" colwidth="60, 0, 60, 65, 80, 100, 71, 230, 67, 80, 80, 80, 80, 80, 80, 80, 80, 80, 75, 100, 100, 100, 100" explorerbar="sortshowmove" forecolorfrozen="transparent" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:30px; width:1182px; height:610px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="appyear"/>
- <col ref="pid" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:left; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999"/>
- <col disabled="true" ref="statflag" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/statlst/A0107">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="examnm"/>
- <col checkvalue="Y,N" disabled="true" ref="cncrcountryyn" type="checkbox"/>
- <col disabled="true" ref="trgtlinkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="fstrsltlinkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="scndrsltlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="healexaminqrlinkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orallinkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="oralinqrlinkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cancerlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="cancerinqrlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="medcancerlinkflag" type="combo" visibility="hidden">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="rsrvdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="linkfileflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_linktrgtlst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var changVal = grd_linktrgtlst.valueMatrix(grd_linktrgtlst.row,grd_linktrgtlst.col);
- for(var i=0 ; i<=grd_linktrgtlst.selectedRows; i++){
- grd_linktrgtlst.valueMatrix(grd_linktrgtlst.selectedRow(i), grd_linktrgtlst.col) = changVal;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_linkfiletrgt" class="btn5_letter6" style="left:1102px; top:3px; width:86px; height:19px; ">
- <caption>연계파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTrgtLinkFileCret();
- ]]>
- </script>
- </button>
- <select1 id="cmb_appyear" ref="/root/send/srchappyear" appearance="minimal" style="left:1033px; top:3px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/yearlist/S900">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </case>
- <case id="case_cmpy">
- <caption id="caption1" class="tit_2" style="left:5px; top:6px; width:186px; height:14px; ">사업체연계</caption>
- <line id="line2" class="line_1" style="x1:5px; y1:25px; x2:1187px; y2:25px; "/>
- <datagrid id="grd_linkcmpylst" nodeset="/root/main/linkfilecmpylst/item" caption="선택^적용년도^사업장관리번호^사업장명^건강보험지사^건강보험지사명^민원실구분^영업소코드^영업소명^사업자등록번호^사업장" colsep="^" colwidth="70, 50, 100, 200, 100, 100, 100, 100, 150, 100, 90" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:30px; width:1182px; height:610px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col disabled="true" ref="appyear" type="combo">
- <choices>
- <item>
- <label>2009년</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010년</label>
- <value>2010</value>
- </item>
- <item>
- <label>2011년</label>
- <value>2011</value>
- </item>
- <item>
- <label>2012년</label>
- <value>2012</value>
- </item>
- <item>
- <label>2013년</label>
- <value>2013</value>
- </item>
- <item>
- <label>2014년</label>
- <value>2014</value>
- </item>
- </choices>
- </col>
- <col ref="cmpyid"/>
- <col ref="cmpynm"/>
- <col ref="insucorpbrchcd"/>
- <col ref="insucorpbrchnm"/>
- <col ref="civilaplflag"/>
- <col ref="bizoffccd"/>
- <col ref="bizoffcnm"/>
- <col ref="cmpyno"/>
- <col ref="cmpylinkflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_linkcmpylst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var changVal = grd_linkcmpylst.valueMatrix(grd_linkcmpylst.row,grd_linkcmpylst.col);
- for( var i = 0 ; i <= grd_linkcmpylst.selectedRows ; i++){
- grd_linkcmpylst.valueMatrix(grd_linkcmpylst.selectedRow(i), grd_linkcmpylst.col) = changVal;
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_linkfilecmpy" class="btn5_letter6" style="left:1102px; top:5px; width:86px; height:19px; ">
- <caption>연계파일생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCmpyLinkFileCret();
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <group id="group2" style="left:0px; top:19px; width:1194px; height:66px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="cap_pat" class="search_name" style="left:836px; top:8px; width:89px; height:17px; ">환자검색 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1127px; top:22px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(case_trgt.selected == true) {
- fGetLinkFileTrgtList();
- }else if(case_cmpy.selected == true) {
- fGetLinkFileCmpyList();
- }
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:1116px; y1:7px; x2:1116px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="cap_appyear" class="search_name" visibility="hidden" style="left:468px; top:40px; width:86px; height:17px; ">적용년도 :</caption>
- <caption id="cap_term" class="search_name" style="left:6px; top:8px; width:204px; height:17px; ">건진기간 : ~</caption>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" inputtype="date" style="left:95px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/srchtodd" inputtype="date" style="left:194px; top:8px; width:85px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send/srchpid" style="left:923px; top:8px; width:67px; height:19px; "/>
- <input id="ipt_pnm" ref="/root/send/srchpnm" disabled="true" style="left:1013px; top:8px; width:87px; height:19px; "/>
- <button id="btn_searchpat" class="icon_search" style="left:993px; top:10px; width:16px; height:16px; ">
- <caption/>
- </button>
- <caption id="cap_cmpynm" class="search_name" visibility="hidden" style="left:913px; top:35px; width:89px; height:17px; ">사업장명 :</caption>
- <caption id="cap_cmpyid" class="search_name" visibility="hidden" style="left:713px; top:35px; width:99px; height:17px; ">사업장코드 :</caption>
- <input id="ipt_cmpyid" ref="/root/send/srchcmpyid" visibility="hidden" style="left:812px; top:35px; width:100px; height:19px; "/>
- <input id="ipt_cmpynm" ref="/root/send/srchcmpynm" visibility="hidden" style="left:1000px; top:35px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:285px; top:9px; width:86px; height:17px; ">건진분류 :</caption>
- <select1 id="combo1" ref="/root/send/srchhealexamgubun" appearance="minimal" style="left:375px; top:8px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamgubun/A0088">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <!--
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- btn_search.dispatch("onclick");
- ]]>
- </script>
- -->
- </select1>
- <caption id="caption4" class="search_name" style="left:500px; top:9px; width:86px; height:17px; ">진행상태 :</caption>
- <select1 id="rdo_srchcond" ref="/root/send/srchstatfg" class="radio_search" appearance="full" cols="5" overflow="visible" style="left:585px; top:9px; width:255px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>접수</label>
- <value>E</value>
- </item>
- <item>
- <label>결과</label>
- <value>G</value>
- </item>
- <item>
- <label>결과완료</label>
- <value>GY</value>
- </item>
- <item>
- <label>판정</label>
- <value>H</value>
- </item>
- </choices>
- <!--
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- btn_search.dispatch("onclick");
- ]]>
- </script>
- -->
- </select1>
- <select1 id="combo2" ref="/root/send/srchflagstat" appearance="minimal" style="left:360px; top:40px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkflaglst/A0615">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:220px; top:40px; width:144px; height:17px; ">자료연계상태구분 :</caption>
- <caption id="caption7" class="search_name" style="left:6px; top:40px; width:86px; height:17px; ">생성구분 :</caption>
- <select1 id="combo4" ref="/root/send/srchflag" appearance="minimal" style="left:95px; top:40px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkfilelst/G099">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <!--
- <choices>
- <item>
- <label>대상자</label>
- <value>trgtlinkflag</value>
- </item>
- <item>
- <label>1차검진</label>
- <value>fstrsltlinkflag</value>
- </item>
- <item>
- <label>검진문진표</label>
- <value>healexaminqrlinkflag</value>
- </item>
- <item>
- <label>구강검진</label>
- <value>orallinkflag</value>
- </item>
- <item>
- <label>구강문진표</label>
- <value>oralinqrlinkflag</value>
- </item>
- </choices>
- -->
- </select1>
- </group>
- <button id="btn_trgt" class="btn_sw" visibility="visible" group="tab" style="left:0px; top:88px; width:79px; height:22px; ">
- <caption>대상자</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_trgt");
- btn_trgt.selected = true;
- fViewSrchCntrl("0");
- ]]>
- </script>
- </button>
- <button id="btn_cmpy" class="btn_sw" visibility="hidden" group="tab" style="left:595px; top:90px; width:79px; height:22px; ">
- <caption>사업체</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case_cmpy");
- btn_cmpy.selected = true;
- fViewSrchCntrl("1");
- ]]>
- </script>
- </button>
- <select1 id="rdo_linkfileflag" ref="/root/send/srchlinkfileflag" appearance="full" cols="10" overflow="visible" style="left:570px; top:115px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/linkfilelst/G099">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button2" class="btn4_letter3" visibility="hidden" style="left:956px; top:760px; width:56px; height:22px; ">
- <caption>올리기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "txt", "Text Files(*.txt)|*.txt|All Files (*.*)|*.*");
- var fso,ts,tsr;
- var cnt = 1;
- fso = new ActiveXObject("Scripting.FileSystemObject");
- ts = fso.OpenTextFile(fileName);
- model.makeNode("/root/main/drug");
- //alert(readLine +"\r\n" + txt[0] +" " + txt[1]+ " " + txt[2] + " " + txt[3] + " " + txt[4] + " " + txt[5]);
- while(!ts.AtEndOfLine) {
- var readLine = ts.ReadLine();
- var txt = readLine.split(',');
- model.makeNode("/root/main/drug/druglst[" + cnt +"]");
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/orddd", txt[0]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/pid", txt[1]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/cretno", txt[2]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/instcd", txt[3]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/orddeptcd", txt[4]);
- model.makeValue("/root/main/drug/druglst[" + cnt +"]/orddrid", txt[5]);
- cnt++;
- }
- ts.Close();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter3" visibility="hidden" style="left:1030px; top:760px; width:68px; height:22px; ">
- <caption>보내기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/send/drug");
- for(var i=1; i <= getNodesetCount("/root/main/drug/druglst"); i++) {
- copyNodesetType("/root/send/drug" , "/root/main/drug/druglst[" + i + "]" , "replace");
- submit("TXAHA00105");
- }
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|