123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHA00300.xrw
- * 설 명 : 단체예약/접수(종건/일건)
- * 설 계 자 : 박원희
- * 작 성 자 : 박원희
- * 작 성 일 : 2007.07.12
- * 수정이력 : 손범성
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>단체예약접수</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <uploadlst>
- <item>
- <chk/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <hopedd/>
- <email/>
- <telno/>
- <mpphon/>
- <zipcd11/>
- <zipcd12/>
- <detladdr1/>
- <pkgcd/>
- <testcd/>
- <healexamplacecd/>
- <pkgnm/>
- <testnm/>
- <sex/>
- <brthdd/>
- <age/>
- <forgneryn/>
- <emailid/>
- <emailtype/>
- <statflag/>
- <healexamflag/>
- <healexamdetlflag/>
- </item>
- </uploadlst>
- <uploadspcllst>
- <item>
- <chk/>
- <cmpycd/>
- <hopedd/>
- <chartno/>
- <hngnm/>
- <rrgstno/>
- <clntempid/>
- <acpt_insuid/>
- <deptnm/>
- <entcodd/>
- <junibdd/>
- <jobkindcd/>
- <workproccd/>
- <workprocnm/>
- <gnrlflag/>
- <gnrluncocd/>
- <spclhealexamflag/>
- <spclpkg1/>
- <spclpkg2/>
- <spclpkg3/>
- <spclpkg4/>
- <spclpkg5/>
- <spclpkg6/>
- <spclpkg7/>
- <spclpkg8/>
- <spclpkg9/>
- <spclpkg10/>
- <spclpkg11/>
- <spclpkg12/>
- <spclpkg13/>
- <spclpkg14/>
- <spclpkg15/>
- <spclpkg16/>
- <spclpkg17/>
- <spclpkg18/>
- <spclpkg19/>
- <spclpkg20/>
- <addtest/>
- <adduncocd/>
- <simppkgcd/>
- <simpuncocd/>
- <healexamplacecd/>
- <plceflag/>
- <lifeconvpkgcd/>
- <lifeconvuncocd/>
- <remcnts/>
- <dgflag/>
- <sex/>
- <brthdd/>
- <age/>
- <forgneryn/>
- <statflag/>
- <gnrlpkgcd/>
- <acptcd/>
- <healexamflag/>
- <healexamdetlflag/>
- </item>
- </uploadspcllst>
- <uploadinsulst>
- <item>
- <rrgstno1/>
- <rrgstno2/>
- <insuid/>
- </item>
- </uploadinsulst>
- <pkginfo>
- <pkglst/>
- </pkginfo>
- <downloadlst>
- <item>
- <chk/>
- <cmpycd/>
- <hopedd/>
- <chartno/>
- <hngnm/>
- <rrgstno/>
- <clntempid/>
- <insuid/>
- <clntdeptnm/>
- <entcodd/>
- <junibdd/>
- <jobkindnm/>
- <workproccd/>
- <workprocnm/>
- <gnrlpkg/>
- <gnrluncocd/>
- <spclhealexamflag/>
- <spclpkg1/>
- <spclpkg2/>
- <spclpkg3/>
- <spclpkg4/>
- <spclpkg5/>
- <spclpkg6/>
- <spclpkg7/>
- <spclpkg8/>
- <spclpkg9/>
- <spclpkg10/>
- <spclpkg11/>
- <spclpkg12/>
- <spclpkg13/>
- <spclpkg14/>
- <spclpkg15/>
- <spclpkg16/>
- <spclpkg17/>
- <spclpkg18/>
- <spclpkg19/>
- <spclpkg20/>
- <addtest/>
- <adduncocd/>
- <simppkg/>
- <simpuncocd/>
- <pid/>
- <acptdd/>
- <spclpkg/>
- <spclpkgcmt/>
- <cmpynm/>
- </item>
- </downloadlst>
- <printinfo>
- <spcl>
- <chartno/>
- <cmpynm/>
- <clntempid/>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <spclpkg/>
- <spclpkgcmt/>
- </spcl>
- </printinfo>
- </main>
- <send>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- <srchhealexamplacecd/>
- <srchhealexamplacecd2/>
- <srchspclcmpycd/>
- <srchspclcmpynm/>
- <srchspclbizoffccd/>
- <srchspcldeptcd/>
- <srchrrgstno1/>
- <srchrrgstno2/>
- <srchinsuid/>
- <srchinstcd/>
- <srchplceflag/>
- <save>
- <gnrlgroup/>
- <spclgroup/>
- <insugroup/>
- </save>
- <srch>
- <rrgstno/>
- <insurrgstno/>
- </srch>
- <cmpyinfo>
- <srchcmpycd/>
- <srchappyear/>
- </cmpyinfo>
- <download>
- <srchfromdd/>
- <srchtodd/>
- <srchcmpycd/>
- <srchcmpynm/>
- <srchdeptnm/>
- </download>
- <srchrrgstnogrd1/>
- <srchrrgstnogrd2/>
- </send>
- <init>
- <baseinfo>
- <healexamplacelst/>
- <healexamflag/>
- <healexamdetlflag/>
- <spclflaglst/>
- <jobkindlst/>
- <autopkglst/>
- <acptcd/>
- <plceflag/>
- </baseinfo>
- <pkginfo>
- <srchhealexamflag/>
- <srchhealexamdetlflag/>
- </pkginfo>
- <print>
- </print>
- <popupmenu>
- <grid>
- <item>
- <name>선택</name>
- <func>fSetCheck</func>
- </item>
- <item>
- <name>선택취소</name>
- <func>fSetCnclCheck</func>
- </item>
- </grid>
- </popupmenu>
- </init>
- <hidden>
- <pkglst>
- </pkglst>
- <testlst/>
- <send>
- <pkgcd/>
- <srchpkgcd/>
- <grupflag/>
- <healexamflag/>
- </send>
- <duprrgstnolst>
- <item/>
- </duprrgstnolst>
- <cmpyinfodetl/>
- </hidden>
- <tmp>
- <cmpyinfo>
- </cmpyinfo>
- <uploadinsulst>
- <item/>
- </uploadinsulst>
- <rrgstinfo>
- <item/>
- </rrgstinfo>
- </tmp>
- </root>
- </instance>
- <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="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA00001"/>
- <submission id="TRAHA00002"/>
- <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
- <submission id="TRAHA00013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/send" resultref="/root/tmp"/>
- <submission id="TRAHA05101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cmpyinfo" replace="instance" resultref="/root/tmp/cmpyinfo"/>
- <submission id="TRAHA04091" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/hidden/duprrgstnolst"/>
- <submission id="TRAHA04092" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/uploadinsulst"/>
- <submission id="TRAHA04093" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/download" replace="instance" resultref="/root/main/downloadlst"/>
- <submission id="TRAHA04042" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/pkginfo" replace="instance" resultref="/root/main/pkginfo/pkglst"/>
- <submission id="TXAHA04091" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/tmp"/>
- <submission id="TXAHA04092" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/tmp"/>
- <submission id="TXAHA04093" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/tmp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sFlag = getScreenMenuParameter();
- if(sFlag != "") {
- m_vHealexamflag = sFlag.substr(0,1);
- m_vHealexamdetlflag = sFlag.substr(0,3);
- }
-
- fGetBaseInfo();
- fInit();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var m_vHealexamflag = "";
- var m_vHealexamdetlflag = "";
- /**
- *기본정보 가져오기
- */
- function fGetBaseInfo(){
- zbcfGetCodeList( new Array("A0068","A0070","A0110"),
- new Array("/root/init/baseinfo/healexamflag" // 건진구분
- ,"/root/init/baseinfo/healexamdetlflag" // 일반건진상세구분
- ,"/root/init/baseinfo/plceflag" //건진장소
- ) );
-
- healGetCodeList( new Array("S600","G108","G111")
- , new Array("/root/init/baseinfo/healexamplacelst"
- ,"/root/init/baseinfo/jobkindlst"
- ,"/root/init/baseinfo/spclflaglst" ) );
- model.removenode("/root/init/baseinfo/healexamplacelst/S600[cdid='']");
-
- // submit 방식 모든 공통코드 전체항목이 조회 됨
- healGetCodeListSubmit( new Array("G110","G112")
- , new Array("/root/init/baseinfo/autopkglst"
- ,"/root/init/baseinfo/acptcd" // 공단접수코드
- ), false);
-
- model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd") );
- submit("TRAHA00104",false);
-
- model.makeValue("/root/init/pkginfo/srchhealexamflag" , "G");
- model.makeValue("/root/init/pkginfo/srchhealexamdetlflag" , "G03");
- submit("TRAHA04042" , false);
-
- model.refresh();
- }
-
- function fInit() {
- model.setValue("/root/send/download/srchfromdd" , getCurrentDate());
- model.setValue("/root/send/download/srchtodd" , getCurrentDate());
- model.toggle("case_gnrl");
- btn_gnrl.selected = true;
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
- grd_cupload.fixedcellcheckbox(0 , grd_cupload.colRef("chk")) = true;
- grd_spcldownlst.fixedcellcheckbox(0 , grd_cupload.colRef("chk")) = true;
- grd_supload.fixedcellcheckbox(0,grd_supload.colRef("chk"))=true;
- rdo_healexamplacecd.select(0);
- rdo_spclhealexamplace.select(0);
- }
- /********************************************************************************************************************************************************
- * 파일 업로드
- ********************************************************************************************************************************************************/
-
- function fFileUpload(){
- var healexamdeltflag = model.getValue("/root/init/baseinfo/healexamdetlflag" );
- var fileName = window.fileDialog("open", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|Dat Files(*.dat)|*.dat|All Files (*.*)|*.*");
- var regExp = /.dat$/gi;
-
- var vGrd = null;
- if(fileName == "" || fileName == null) return;
- //model.setValue("/root/hidden/save/filename" , fileName);
-
- // 엑셀, dat파일 구분
- if(regExp.test(fileName)) {
- /*
- var fso,ts,tsr;
- fso = new ActiveXObject("Scripting.FileSystemObject");
- ts = fso.OpenTextFile(fileName);
- model.setValue("/root/send/linkdata",ts.ReadAll());
- ts.Close();
- if(submit("TRAHA00304",false)) {
- if(model.getValue("/root/main/linklst/cmpy/cmpyrgstyn") == 0) {
- submit("TXAHA00303");
- }
- model.toggle("case_linkup");
- } */
- }else {
- if(case_gnrl.selected == true) {
- grd_cupload.loadExcel(fileName);
- var cnt = grd_cupload.rows;
- for(var i = 1; i < cnt +1 ; i++){
- grd_cupload.addStatus(i, "insert");
- }
- grd_cupload.deleteRow(1);
- grd_cupload.rebuildStyle();
- grd_cupload.refresh();
- }else if(case_spcl.selected == true) {
- grd_supload.loadExcel(fileName);
- var cnt = grd_supload.rows;
- model.setValue("/root/send/srchrrgstno1" , "");
- model.setValue("/root/send/srchrrgstno2" , "");
- model.setValue("/root/send/srchinsuid" , "");
- submit("TRAHA04092" , false);
-
- grd_supload.deleteRow(1);
- grd_supload.rebuildStyle();
-
- for(var i = 1; i < cnt +1 ; i++){
- grd_supload.valueMatrix( i , grd_supload.colRef("rrgstno")) = grd_supload.valueMatrix( i , grd_supload.colRef("rrgstno")).replace(/-/g,"");
- var rrgstno1 = grd_supload.valueMatrix( i , grd_supload.colRef("rrgstno")).substr(0,6);
- var rrgstno2 = grd_supload.valueMatrix( i , grd_supload.colRef("rrgstno")).substr(6,7);
- var node = instance1.selectNodes("/root/tmp/uploadinsulst/item[rrgstno1='" + rrgstno1+ "' and rrgstno2='" + rrgstno2 +"']");
- if(node.length > 0) {
- if(grd_supload.valueMatrix( i , grd_supload.colRef("acpt_insuid")) == "") {
- grd_supload.valueMatrix( i , grd_supload.colRef("acpt_insuid")) = node.item(0).insuid.text;
- }
- }
- grd_supload.addStatus(i, "insert");
- }
- grd_supload.refresh();
- }else if(case_insu.selected == true) {
- model.resetInstanceNode(grd_iupload.nodeset);
- grd_iupload.loadExcel(fileName);
- var cnt = grd_iupload.rows;
- for(var i = 1; i < cnt +1 ; i++){
- grd_iupload.addStatus(i, "insert");
- }
- grd_iupload.deleteRow(1);
- grd_iupload.rebuildStyle();
-
- model.makeValue("/root/send/srch/insurrgstno" , getGridUpdateData(grd_iupload));
- var rrgstCnt = 0;
- if(submit("TRAHA04091" , false)) {
- rrgstCnt = getNodesetCount("/root/hidden/duprrgstnolst/insu");
- for(var j=1; j < grd_iupload.rows; j++) {
- var srchrrgstno1 = grd_iupload.valueMatrix(j ,grd_iupload.colRef("rrgstno1"));
- var srchrrgstno2 = grd_iupload.valueMatrix(j ,grd_iupload.colRef("rrgstno2"));
- for(var k=1; k <= rrgstCnt ; k++) {
- var desrrgstno1 = model.getValue("/root/hidden/duprrgstnolst/insu[" + k + "]/rrgstno1");
- var desrrgstno2 = model.getValue("/root/hidden/duprrgstnolst/insu[" + k + "]/rrgstno2");
- if(srchrrgstno1 == desrrgstno1 && srchrrgstno2 == desrrgstno2) {
- grd_iupload.cellStyle("background-color", j , grd_iupload.colRef("rrgstno1")) = "#f7a08b";
- grd_iupload.cellStyle("background-color", j , grd_iupload.colRef("rrgstno2")) = "#f7a08b";
- }
- }
- }
- }
- grd_iupload.refresh();
-
- if(rrgstCnt > 0) {
- messageBox("["+ rrgstCnt +"]건이 이미 등록된 주민번호 ","I009");
- }
- }
- }
- }
-
- /********************************************************************************************************************************************************
- * 단체 예약 종합건진접수 등록
- ********************************************************************************************************************************************************/
- function fSaveGroupRsrvAcpt(){
- var hopeDDCnt = 0;
- var pkgCnt = 0;
- var healexamplaceCnt = 0;
-
- for(var i=1; i < grd_cupload.rows; i++){
- if(grd_cupload.valueMatrix(i , grd_cupload.colRef("chk")) == "Y"){
- if(grd_cupload.valueMatrix(i , grd_cupload.colRef("hopedd")) == ""){
- hopeDDCnt++;
- }
- if(grd_cupload.valueMatrix(i , grd_cupload.colRef("pkgcd")) == ""){
- pkgCnt++;
- }
- if(grd_cupload.valueMatrix(i , grd_cupload.colRef("healexamplacecd")) == ""){
- healexamplaceCnt++;
- }
- }
- }
- var healexamflag = model.getValue("/root/send/srchhealexamflag");
- var healexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
-
- //등록정보 체크
- if(healexamflag == "" || instance1.selectNodes("/root/init/baseinfo/healexamflag/A0068[cdid='" + healexamflag + "']").length < 1) {
- messageBox("건진구분 정보를", "I007");
- return;
- }
- if(healexamdetlflag == "" || instance1.selectNodes("/root/init/baseinfo/healexamdetlflag/A0070[cdid='"+ healexamdetlflag + "']").length < 1 ) {
- messageBox("건진상세구분 정보를", "I007");
- return;
- }
- if(hopeDDCnt > 0) {
- messageBox("건진일을 모두 ", "C001");
- return;
- }
- if(pkgCnt > 0) {
- messageBox("패키지코드를 모두 ", "C001");
- return;
- }
- if(healexamplaceCnt > 0) {
- messageBox("건진장소 구분을 모두 ", "C001");
- return;
- }
-
- //초기화
- var rsrvCnt = 0;
- var healexamflag = model.getValue("/root/send/srchhealexamflag");
- var healexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
- grd_cupload.clearStatus();
-
- for (var i=1; i<grd_cupload.rows; i++){
- if(grd_cupload.valueMatrix(i , grd_cupload.colRef("chk") ) == "Y" ){
- var rrgstno = grd_cupload.valueMatrix(i , grd_cupload.colRef("rrgstno1")) + grd_cupload.valueMatrix(i , grd_cupload.colRef("rrgstno2"));
- var email = grd_cupload.valueMatrix(i , grd_cupload.colRef("email")).split("@");
- grd_cupload.addStatus(i,"insert");
- grd_cupload.valueMatrix(i , grd_cupload.colRef("sex")) = fGetRrgstNo(rrgstno,"S");
- grd_cupload.valueMatrix(i , grd_cupload.colRef("brthdd")) = fGetRrgstNo(rrgstno,"B");
- grd_cupload.valueMatrix(i , grd_cupload.colRef("age")) = fGetRrgstNo(rrgstno,"A");
- grd_cupload.valueMatrix(i , grd_cupload.colRef("forgeryn")) = fGetRrgstNo(rrgstno,"F");
- grd_cupload.valueMatrix(i , grd_cupload.colRef("statflag")) = "A";
- grd_cupload.valueMatrix(i , grd_cupload.colRef("emailid")) = email[0];
- grd_cupload.valueMatrix(i , grd_cupload.colRef("emailtype")) = email[1];
- grd_cupload.valueMatrix(i , grd_cupload.colRef("healexamflag")) = healexamflag;
- grd_cupload.valueMatrix(i , grd_cupload.colRef("healexamdetlflag")) = healexamdetlflag;
- }
- }
-
- var saveGroup = getGridUpdateData(grd_cupload);
- if(saveGroup != "") {
- model.setValue("/root/send/save/gnrlgroup" , saveGroup);
- openLoadingBar("일괄 예약/접수");
- if(submit("TXAHA04091")) {
- messageBox("예약처리가","I002");
- return;
- }
- closeLoadingBar();
- }else {
- messageBox("저장할 내역이 " , "E014");
- return;
- }
- }
-
- /********************************************************************************************************************************************************
- * 선택 그리드 일괄적용
- ********************************************************************************************************************************************************/
- function fSetBatApp(vGrd) {
- var vCol = vGrd.col
- var vChng = vGrd.valueMatrix(vGrd.row,vCol);
- var vEcep = vGrd.valueMatrix(vGrd.row,vGrd.colRef("testcd"));
- for(var i = 0; i <= vGrd.selectedRows; i++) {
- var vRow = vGrd.selectedRow(i);
- if(vCol != vGrd.colRef("testcd")) {
- vGrd.valueMatrix(vRow,vCol) = vChng;
- }else {
- vGrd.valueMatrix(vRow ,vGrd.colRef("testnm")) = vChng;
- vGrd.valueMatrix(vRow ,vGrd.colRef("testcd")) = vEcep;
- }
- }
- vGrd.refresh();
- }
-
- /********************************************************************************************************************************************************
- * 해당값을 구분자로 구분하여 배열에 등록한다.
- *vSpiltValue:구분할값 vMode:모드 vDel:구분자
- ********************************************************************************************************************************************************/
- String.prototype.fSplit = function(vMode,vDel){
- if(vDel == "") vDel = "-";
- var vSplit = this;
- var chk = vSplit.search(eval("/[" + vDel + "]/g"));
- var vDelValue = new Array();
- if(chk > -1) {
- vDelValue = vSplit.split(vDel);
- }else {
- if(vMode == "R") {
- // 주민번호
- vDelValue[0] = vSplit.substr(0,6);
- vDelValue[1] = vSplit.substr(6,7);
- } else if(vMode == "Z") {
- // 우편번호
- vDelValue[0] = vSplit.substr(0,3);
- vDelValue[1] = vSplit.substr(3,3);
- } else if(vMode == "E") {
- //Email
- vDelValue = vSplit.split('@');
- }
- }
- return vDelValue;
- }
-
- /********************************************************************************************************************************************************
- * 주민번호를 이용하여
- *S:성별 A:나이 B:생년월일 F:외국인여부
- ********************************************************************************************************************************************************/
- function fGetRrgstNo(vRstno,vMode) {
- var rstno = vRstno.replace("-","");
- var sex = rstno.substr(6,1);
- var YY = "";
- //성별
- if(vMode == "S") {
- if(sex == "2" || sex == "4" || sex == "6" || sex == "8"){
- return "F";
- }else if(sex == "1" || sex == "3" || sex == "5" || sex == "7") {
- return "M";
- }
- // 나이
- }else if(vMode == "A"){
- if(sex == "1" || sex == "2" || sex == "5" || sex == "6") {
- YY = "19"
- }else if(sex == "3" || sex == "4" || sex == "7" || sex == "8") {
- YY = "20"
- }
- var toYear = getNewDate().getFullYear();
- var bornday = YY + rstno.substr(0,2);
- return parseInt(toYear) - parseInt(bornday);
- }else if(vMode == "B") {
- if(sex == "1" || sex == "2" || sex == "5" || sex == "6") {
- YY = "19"
- }else if(sex == "3" || sex == "4" || sex == "7" || sex == "8") {
- YY = "20"
- }
- return YY + rstno.substr(0,6);
- }else if(vMode == "F") {
- var forgnerYN = "N";
- if(sex == "5" || sex == "6" || sex == "7" || sex == "8") {
- forgnerYN = "Y";
- }
- return forgnerYN;
- }
- }
-
- /********************************************************************************************************************************************************
- * 패키지 검사를
- ********************************************************************************************************************************************************/
- function fSetPkg(vGrd , vNodeSet) {
- if(vGrd == null) return;
- if(vNodeSet == null || vNodeSet == "") return;
-
- var nodeList = instance1.selectNodes(vNodeSet);
- var pkgcdList = vGrd.valueMatrix( vGrd.row , vGrd.colRef("pkgcd"));
- var pkgnmList = vGrd.valueMatrix( vGrd.row , vGrd.colRef("pkgnm"));
-
- for(var i=1; i <= nodeList.length; i++) {
- var pkgcd = model.getValue(vNodeSet + "[" + i + "]/pkgcd");
- var pkgnm = model.getValue(vNodeSet + "[" + i + "]/pkgnm");
-
- // 중복체크 로직
- if(pkgcdList != "") {
- if ( fCheckDup(pkgcdList , pkgcd) ) {
- if( messageBox("중복되는 패키지코드[" + pkgcd + " - " + pkgnm +"] 를 추가 ", "S001") != 6 ){
- continue ;
- }
- }
- }
-
- if(pkgcdList != "") {
- pkgcdList += "," + pkgcd ;
- pkgnmList += "," + pkgnm ;
- }else {
- pkgcdList += pkgcd != "" && nodeList.length>i ? "," + pkgcd : pkgcd;
- pkgnmList += pkgnm != "" &&nodeList.length>i ?"," + pkgnm : pkgnm;
- }
- }
-
- vGrd.valueMatrix(vGrd.row,vGrd.colRef("pkgcd")) = pkgcdList;
- vGrd.valueMatrix(vGrd.row,vGrd.colRef("pkgnm")) = pkgnmList;
- }
- /********************************************************************************************************************************************************
- * 추가검사 선택을 그리드에 등록
- ********************************************************************************************************************************************************/
- function fSetAddTest(vGrd , vNodeSet) {
- if(vGrd == null) return;
- if(vNodeSet == null || vNodeSet == "") return;
-
- var nodeList = instance1.selectNodes(vNodeSet);
- var testcdList = vGrd.valueMatrix( vGrd.row , vGrd.colRef("testcd"));
- var testnmList = vGrd.valueMatrix( vGrd.row , vGrd.colRef("testnm"));
-
- for(var i=1; i <= nodeList.length; i++){
- var testcd = model.getValue(vNodeSet + "[" + i + "]/testcd");
- var testnm = model.getValue(vNodeSet + "[" + i + "]/testnm");
- var groupflag = model.getValue(vNodeSet + "[" + i + "]/grupflag");
-
- // 중복체크 로직
- if(testcdList != "") {
- if ( fCheckDup(testcdList , testcd) ) {
- if( messageBox("중복되는 검사코드[" + testcd + " - " + testnm +"] 를 추가 ", "S001") != 6 ){
- continue ;
- }
- }
- }
-
- var pkgCd = vGrd.valueMatrix(vGrd.row , vGrd.colRef("pkgcd"));
- if(pkgCd != ""){
- // 패키지 내부검사 중복여부 체크
- model.removeNodeset("/root/hidden/send");
- model.makeValue("/root/hidden/send/pkgcd" , testcd);
- model.makeValue("/root/hidden/send/grupflag" , groupflag);
- model.makeValue("/root/hidden/send/srchpkgcd" , pkgCd );
- model.makeValue("/root/hidden/send/healexamflag" , model.getValue("/root/send/srchhealexamflag"));
- submit("TRAHA00013",false); //패키지내 중복 체크*/
- var dupTestnm = model.getValue("/root/tmp/testcount/testcount/testnm")
- if(dupTestnm != "") {
- if( messageBox("패키지의 [" + testnm + "]검사와 중복됩니다. 추가 ", "S001") != 6 ){
- continue ;
- }
- }
- }
-
- if(testcdList != "") {
- testcdList += "," + testcd ;
- testnmList += "," + testnm ;
- }else {
- testcdList += testcd != "" && nodeList.length>i ? "," + testcd : testcd;
- testnmList += testnm != "" &&nodeList.length>i ? "," + testnm : testnm;
- }
- }
- vGrd.valueMatrix(vGrd.row,vGrd.colRef("testcd")) = testcdList;
- vGrd.valueMatrix(vGrd.row,vGrd.colRef("testnm")) = testnmList;
- }
-
- /********************************************************************************************************************************************************
- * 추가검사 중복선택 체크여부
- ********************************************************************************************************************************************************/
- function fCheckDup(testList , desTestCd) {
- var sTestCd = testList.split(",");
- var chk = false;
-
- for(var j=0; j < sTestCd.length; j++) {
- var srcTestCd = sTestCd[j];
- if(srcTestCd == desTestCd) {
- chk = true;
- }
- }
- return chk;
- }
- /********************************************************************************************************************************************************
- * 데이터 포맷을 체크한다.
- * R : 주민번호 Z: 우편번호 D: 날짜 E: e-mail T: 전화번호 M:핸드폰
- ********************************************************************************************************************************************************/
- function fChkValue(vChkValue,vMode,vDel) {
- var ret = false;
- var regExp = "";
- if(typeof(vDel) == "undefined" || vDel == null) {
- vDel = "";
- }
-
-
- if(vMode == "R1") {
- regExp = "/[0-9]{2}[01]{1}[0-9]{1}[0123]{1}[0-9]{1}$/g";
- }else if(vMode == "R2") {
- regExp = "/[12345678]{1}[0-9]{6}$/g";
- }else if(vMode == "Z1") {
- regExp = "/^[0-9]{3}$/g";
- }else if(vMode == "Z2") {
- regExp = "/^[0-9]{3}$/g";
-
- }else if(vMode == "D") {
- regExp = "/[0-9]{4}" + vDel + "[01]{1}[0-9]{1}" + vDel + "[0123]{1}[0-9]{1}/g";
-
- }else if(vMode == "E") {
- regExp = "/[_0-9a-zA-Z]+([-+.0-9a-zA-Z_]+)*@[_0-9a-zA-Z]+([-+.0-9a-zA-Z_]+)*.[a-zA-Z]{2,4}$/g";
-
- }else if(vMode == "T") {
- regExp = "/(02|0[3-9]{1}[0-9]{1})" + vDel + "[1-9]{1}[0-9]{2,3}" + vDel + "[0-9]{4}$/g";
-
- }else if(vMode == "M") {
- regExp = "/01[016789]" + vDel + "[1-9]{1}[0-9]{2,3}" + vDel + "[0-9]{4}$/g";
-
- }
-
- if(vChkValue == "") {
- return true;
- }else {
- return ret = eval(regExp).test(vChkValue);
- }
- }
- /********************************************************************************************************************************************************
- * 그리드의 데이터 체크
- ********************************************************************************************************************************************************/
- function fChkData(vGrd) {
- // 초기화
- vGrd.rebuildStyle();
- var nodeSet = vGrd.nodeset;
- var chkCnt = 0;
-
- for(var i = 1; i < vGrd.rows ; i++ ){
- //주민번호 check
- var rrgstno1 = model.getValue(nodeSet+"[" + i + "]/rrgstno1");
- var rrgstno2 = model.getValue(nodeSet+"[" + i + "]/rrgstno2");
- if(!isResidentNo(rrgstno1 + rrgstno2)) {
- var ret1 = fChkValue(rrgstno1,"R1")
- var ret2 = fChkValue(rrgstno2,"R2")
- if(!ret1) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("rrgstno1"));
- chkCnt++;
- }
- if(!ret2) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("rrgstno2"));
- chkCnt++;
- }
-
- if(ret1 == true && ret2 == true) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("rrgstno1"));
- fDispGrd(vGrd,"E",i,vGrd.colRef("rrgstno2"));
- chkCnt++;
- }
- }
-
- // 선택검사 비어있다면 "당일로 처리"
- /* var vchoi = model.getValue("/root/main/uploadlst/c_lst/item[" + i + "]/choi");
- if (vchoi == "" ){
- model.setValue("/root/main/uploadlst/c_lst/item[" + i + "]/choi","01");
- }*/
-
- // 우편번호
- var zip1 = model.getValue(nodeSet+"[" + i + "]/zipcd11");
- if(!fChkValue(zip1,"Z1")) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("zipcd11"));
- chkCnt++;
- }
-
- var zip2 = model.getValue(nodeSet+"[" + i + "]/zipcd12");
- if(!fChkValue(zip2,"Z2")) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("zipcd12"));
- chkCnt++;
- }
-
- // 전화번호
- var telno = model.getValue(nodeSet+"[" + i + "]/telno");
- if(!fChkValue(telno,"T","-")) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("telno"));
- chkCnt++;
- }
-
- // 핸드폰번호
- var mpno = model.getValue(nodeSet + "[" + i + "]/mpphon");
- if(!fChkValue(mpno,"M","-")) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("mpphon"));
- chkCnt++;
- }
-
- // 예약 체크
- var hopedd = model.getValue(nodeSet + "[" + i + "]/hopedd").replace(/-/g,"");
- if(!fChkValue(hopedd,"D","")) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("hopedd"));
- chkCnt++;
- }
-
- //email주소
- var email = model.getValue(nodeSet+ "[" + i + "]/email");
- if(!fChkValue(email,"E")) {
- fDispGrd(vGrd,"E",i,vGrd.colRef("email"));
- chkCnt++;
- }
- }
- vGrd.refresh();
- return chkCnt;
- }
- /********************************************************************************************************************************************************
- * 그리드의 상태 Style을 변경한다.
- * vGrd: 그리드객체 vMode: 모드 vRow: 변경할 row vCol: 변경할 col
- ********************************************************************************************************************************************************/
- function fDispGrd(vGrd,vMode,vRow,vCol) {
- if(vMode == "E") {
- if(vCol !="") {
- vGrd.cellStyle("background-color",vRow,vCol) = "#f7a08b";
- vGrd.isReadOnly(vRow,vCol) = false;
- }else {
- vGrd.cellStyle("background-color",vRow,0,vRow,vGrd.cols - 1) = "#f7a08b";
- //vGrd.isReadOnly(vRow,0,vRow,vGrd.cols - 1) = true;
- }
- }
- }
-
- function fChkDupRrgstno(vGrd) {
- vGrd.clearStatus();
- for(var i=1; i < vGrd.rows; i++) {
- if(vGrd.valueMatrix(i , vGrd.colRef("chk") )== "Y" ) {
- vGrd.addStatus(i,"insert");
- }
- }
- model.makeValue("/root/send/srch/rrgstno" , getGridUpdateData(vGrd) );
-
- if(submit("TRAHA04091")) {
- var rrgstCnt = getNodesetCount("/root/hidden/duprrgstnolst/item");
- for(var j=1; j < vGrd.rows; j++) {
- var srchrrgstno1 = vGrd.valueMatrix(j ,vGrd.colRef("rrgstno1"));
- var srchrrgstno2 = vGrd.valueMatrix(j ,vGrd.colRef("rrgstno2"));
- for(var k=1; k <= rrgstCnt ; k++) {
- var desrrgstno1 = model.getValue("/root/hidden/duprrgstnolst/item[" + k + "]/rrgstno1");
- var desrrgstno2 = model.getValue("/root/hidden/duprrgstnolst/item[" + k + "]/rrgstno2");
- if(srchrrgstno1 == desrrgstno1 && srchrrgstno2 == desrrgstno2) {
- vGrd.valueMatrix( j , vGrd.colRef("chk") ) = "N";
- vGrd.cellStyle("background-color", j , vGrd.colRef("hngnm")) = "#f7a08b";
- }
- }
- }
- }
-
- return rrgstCnt;
- }
- /********************************************************************************************************************************************************
- * 특수건진 일괄예약 정보를 저장한다.
- ********************************************************************************************************************************************************/
- function fSaveGroupSpclRsrvAcpt() {
- var hopeDDCnt = 0;
- var plceCnt = 0;
- var healexamplaceCnt = 0;
-
- for(var i=1; i < grd_supload.rows; i++) {
- if(grd_supload.valueMatrix(i , grd_supload.colRef("chk") )== "Y" ) {
- var plceFlag = grd_supload.valueMatrix(i , grd_supload.colRef("plceflag"));
- var healexamplcecd = grd_supload.valueMatrix(i , grd_supload.colRef("healexamplacecd"));
- if(grd_supload.valueMatrix(i , grd_supload.colRef("hopedd") ) == "") {
- hopeDDCnt++;
- }
- if( healexamplcecd == "" || instance1.selectNodes("/root/init/baseinfo/healexamplacelst/S600[cdid='" + healexamplcecd + "']").length < 1) {
- healexamplaceCnt++;
- }
- if(plceFlag == "" || instance1.selectNodes("/root/init/baseinfo/plceflag/A0110[cdid='" + plceFlag + "']").length < 1) {
- plceCnt++;
- }
- }
- }
- var healexamflag = model.getValue("/root/send/srchhealexamflag");
- var healexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
-
- // 등록정보 체크
- if(healexamflag == "" || instance1.selectNodes("/root/init/baseinfo/healexamflag/A0068[cdid='" + healexamflag + "']").length < 1) {
- messageBox("건진구분 정보를", "I007");
- return;
- }
- if(healexamdetlflag == "" || instance1.selectNodes("/root/init/baseinfo/healexamdetlflag/A0070[cdid='"+ healexamdetlflag + "']").length < 1 ) {
- messageBox("건진상세구분 정보를", "I007");
- return;
- }
- if(hopeDDCnt > 0) {
- messageBox("건진일을", "I007");
- return;
- }
-
- if(healexamplaceCnt > 0) {
- messageBox("건진장소 구분을 ", "I007");
- return;
- }
-
- if(plceCnt > 0) {
- messageBox("출장/내원 구분을", "I007");
- return;
- }
-
- // 초기화
- var rsrvCnt = 0;
- var healexamflag = model.getValue("/root/send/srchhealexamflag");
- var healexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
- grd_supload.clearStatus();
-
- for(var i=1; i<grd_supload.rows; i++){
- if(grd_supload.valueMatrix(i , grd_supload.colRef("chk") ) == "Y" ){
- grd_supload.addStatus(i,"insert");
- var rrgstno = grd_supload.valueMatrix(i , grd_supload.colRef("rrgstno"));
- grd_supload.valueMatrix(i , grd_supload.colRef("sex")) = fGetRrgstNo(rrgstno,"S");
- grd_supload.valueMatrix(i , grd_supload.colRef("brthdd")) = fGetRrgstNo(rrgstno,"B");
- grd_supload.valueMatrix(i , grd_supload.colRef("age")) = fGetRrgstNo(rrgstno,"A");
- grd_supload.valueMatrix(i , grd_supload.colRef("forgeryn")) = fGetRrgstNo(rrgstno,"F");
- grd_supload.valueMatrix(i , grd_supload.colRef("statflag")) = "A";
- grd_supload.valueMatrix(i , grd_supload.colRef("healexamflag")) = healexamflag;
- grd_supload.valueMatrix(i , grd_supload.colRef("healexamdetlflag")) = healexamdetlflag;
- grd_supload.valueMatrix(i , grd_supload.colRef("gnrlpkgcd")) = model.getValue("/root/init/baseinfo/autopkglst/G110[cdid='" + grd_supload.valueMatrix(i , grd_supload.colRef("gnrlflag")) + "']/cmt");
- grd_supload.valueMatrix(i , grd_supload.colRef("acptcd")) = model.getValue("/root/init/baseinfo/acptcd/G112[cdid='01']/cmt");
- }
- }
-
- var saveGroup = getGridUpdateData(grd_supload);
- if(saveGroup != ""){
- model.setValue("/root/send/save/spclgroup", saveGroup);
- if(submit("TXAHA04092")){
- messageBox("예약처리가","I002");
- return;
- }
- }else{
- messageBox("저장할 내역이 " , "E014");
- return;
- }
- }
-
- /**
- * 업체별 영업소 및 부서정보 조회
- */
- function fGetCmpyDetlCdList(){
- if( ipt_cmpycd.value == "" ) return ;
- var appYear = getCurrentDate().toDate().getDateFormat("YYYY");
-
-
- model.makeValue("/root/send/cmpyinfo/srchcmpycd", ipt_cmpycd.value );
- model.makeValue("/root/send/cmpyinfo/srchappyear" , appYear);
- return submit("TRAHA05101");
- }
- /********************************************************************************************************************************************************
- * 엑셀 주민번호에 증번호등록
- ********************************************************************************************************************************************************/
- function fSaveGroupInsuInfo() {
- var rrgstnoCnt1 = 0;
- var rrgstnoCnt2 = 0;
- var insuidCnt = 0;
-
- for(var i=1; i < grd_iupload.rows; i++) {
- if(grd_iupload.valueMatrix( i , grd_iupload.colRef("rrgstno1")) == "") {
- rrgstnoCnt1++;
- }
- if(grd_iupload.valueMatrix( i , grd_iupload.colRef("rrgstno2")) == "") {
- rrgstnoCnt2++;
- }
- if(grd_iupload.valueMatrix( i , grd_iupload.colRef("insuid")) == "") {
- insuidCnt++;
- }
- }
-
- // 등록정보 체크
- if(rrgstnoCnt1 > 0) {
- messageBox("주민번호 앞번호를", "C001");
- return;
- }
- if(rrgstnoCnt2 > 0) {
- messageBox("주민번호 뒷번호를", "C001");
- return;
- }
- if(insuidCnt > 0) {
- messageBox("증번호", "C001");
- return;
- }
- // 초기화
- var saveGroup = getGridUpdateData(grd_iupload);
- if(saveGroup != "") {
- model.setValue("/root/send/save/insugroup" , saveGroup);
- if(submit("TXAHA04093")) {
- model.resetInstanceNode(grd_iupload.nodeset);
- if(submit("TRAHA04092")) {
- copyNodesetType("/root/main/uploadinsulst/item" , "/root/tmp/uploadinsulst/item" , "replace");
- grd_iupload.refresh();
- }
- messageBox("등록처리가","I002");
- return;
- }
- }else {
- messageBox("저장할 내역이 " , "E014");
- return;
- }
- }
- /********************************************************************************************************************************************************
- * 특수건진 업로드 내역 내려받기
- ********************************************************************************************************************************************************/
- function fGetSpclDownList() {
- var healexamflag = model.getValue("/root/send/srchhealexamflag");
- var healexamdetlflag = model.getValue("/root/send/srchhealexamdetlflag");
-
- model.makeValue("/root/send/download/srchhealexamflag" , healexamflag);
- model.makeValue("/root/send/download/srchhealexamdetlflag" , healexamdetlflag);
- submit("TRAHA04093");
- }
-
- /********************************************************************************************************************************************************
- * 특수건진 검진 개인표 출력
- ********************************************************************************************************************************************************/
- function fPrintSpclSeq() {
- if(instance1.selectNodes(grd_spcldownlst.nodeset + "[chk='Y']").length < 1) {
- messageBox("출력할 건진자가" , "I004");
- return;
- }
-
- for(var i=1; i < grd_spcldownlst.rows; i++) {
- if(grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("chk")) == "Y") {
- model.resetInstanceNode("/root/main/printinfo/spcl");
- model.makeValue("/root/main/printinfo/spcl/chartno" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("chartno")));
- model.makeValue("/root/main/printinfo/spcl/cmpynm" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("cmpynm")));
- model.makeValue("/root/main/printinfo/spcl/deptnm" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("clntdeptnm")));
- model.makeValue("/root/main/printinfo/spcl/clntempid" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("clntempid")));
- model.makeValue("/root/main/printinfo/spcl/pid" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("pid")));
- model.makeValue("/root/main/printinfo/spcl/hngnm" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("hngnm")));
- model.makeValue("/root/main/printinfo/spcl/rrgstno" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("rrgstno")));
- model.makeValue("/root/main/printinfo/spcl/spclpkg" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("spclpkg")));
- model.makeValue("/root/main/printinfo/spcl/spclpkgcmt" , grd_spcldownlst.valueMatrix(i , grd_spcldownlst.colRef("spclpkgcmt")));
-
- //exeReportPreview("RPAHA04090", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "");
- exeReportPreview("RPAHA04090", "XMLSTR", "", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", 0);
- }
- }
- }
-
- function fSetCheck() {
- for( var i = 0 ; i <= grd_spcldownlst.selectedRows ; i++){
- grd_spcldownlst.valueMatrix(grd_spcldownlst.selectedRow(i), grd_spcldownlst.colRef("chk")) = "Y" ;
- }
- }
-
- function fSetCnclCheck() {
- for( var i = 0 ; i <= grd_spcldownlst.selectedRows ; i++){
- grd_spcldownlst.valueMatrix(grd_spcldownlst.selectedRow(i), grd_spcldownlst.colRef("chk")) = "N" ;
- }
- }
- ]]>
- </script>
- <submission id="TRAHA04094" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/tmp/rrgstinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- if(event.description == "deladdtest"){
- grd_cupload.valueMatrix( grd_cupload.row , grd_cupload.colRef("testcd")) = "";
- grd_cupload.valueMatrix( grd_cupload.row , grd_cupload.colRef("testnm")) = "";
- }
- ]]>
- </script>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:159px; height:14px; ">일괄예약/접수</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:756px; width:1195px; height:28px; ">
- <button id="button8" class="btn4_letter4" style="left:1110px; top:6px; width:80px; height:22px; ">
- <caption>등록처리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("예약처리를","Q004") == "6") {
- if(case_gnrl.selected == true) {
- fSaveGroupRsrvAcpt();
- }else if(case_spcl.selected == true) {
- fSaveGroupSpclRsrvAcpt();
- }else if(case_insu.selected == true) {
- fSaveGroupInsuInfo();
- }
- }
- ]]>
- </script>
- </button>
- <button id="button33" class="btn4_letter3" style="left:1040px; top:6px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- grd_supload.rebuildStyle();
- grd_iupload.rebuildStyle();
- grd_cupload.rebuildStyle();
- model.reset();
- ]]>
- </script>
- </button>
- <button id="button14" class="btn6_letter5" style="left:0px; top:4px; width:84px; height:22px; ">
- <caption>검진개인표</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(case_down.selected == true){
- fPrintSpclSeq();
- }
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_gnrl" class="btn_sw" group="tab" style="left:5px; top:18px; width:100px; height:22px; ">
- <caption>공단건진</caption>
- <toggle case="case_gnrl" ev:event="DOMActivate"/>
- </button>
- <button id="btn_spcl" class="btn_sw" group="tab" style="left:105px; top:18px; width:100px; height:22px; ">
- <caption>특수건진</caption>
- <toggle case="case_spcl" ev:event="DOMActivate"/>
- </button>
- <switch id="switch1" style="left:0px; top:40px; width:1195px; height:717px; ">
- <case id="case_gnrl" selected="true">
- <line id="line8" class="line_3" style="x1:5px; y1:53px; x2:1189px; y2:53px; "/>
- <button id="button3" class="btn2_letter4" style="left:233px; top:32px; width:64px; height:19px; ">
- <caption>일괄적용</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- for(var i =1; i < grd_cupload.rows; i++) {
- grd_cupload.valueMatrix( i , grd_cupload.colRef("healexamplacecd")) = model.getValue("/root/send/srchhealexamplacecd");
- }
- ]]>
- </script>
- </button>
- <caption id="caption2" class="tit_2" style="left:8px; top:8px; width:151px; height:14px; ">공단일괄 예약/접수</caption>
- <button id="btn_upload" class="btn2_letter5" style="left:1034px; top:5px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("파일 업로드");
- fFileUpload();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <select1 id="rdo_healexamplacecd" ref="/root/send/srchhealexamplacecd" overflow="visible" appearance="full" cols="2" rows="1" style="left:82px; top:32px; width:143px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption47" class="cell_1" style="left:5px; top:31px; width:73px; height:20px; vertical-align:middle; ">장소구분</caption>
- <line id="line17" class="line_1" style="x1:4px; y1:25px; x2:1188px; y2:25px; "/>
- <datagrid id="grd_cupload" nodeset="/root/main/uploadlst/item" allowselection="true" autoresize="true" caption="선택^성명^주민번호^주민번호^건진일^이메일주소^전화번호^핸드폰^우편번호^우편번호^주 소^패키지^추가검사^건진장소^패키지명^추가검사명^sex^brthdd^age^forgneryn^emailid^emailtype^statflag^healexamflag^healexamdetlflag" colsep="^" colwidth="50, 80, 70, 70, 90, 150, 110, 110, 35, 35, 250, 200, 200, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="listbox" subtotalposition="below" style="left:4px; top:55px; width:1184px; height:655px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="hngnm" style="left:94px; top:43px; width:61px; height:23px; "/>
- <col disabled="true" ref="rrgstno1" type="input" style="left:118px; top:23px; width:114px; height:23px; "/>
- <col disabled="true" ref="rrgstno2" type="input"/>
- <col ref="hopedd" type="inputdate"/>
- <col disabled="true" ref="email" type="input"/>
- <col disabled="true" ref="telno" type="input"/>
- <col disabled="true" ref="mpphon" type="input"/>
- <col disabled="true" ref="zipcd11" type="input"/>
- <col disabled="true" ref="zipcd12" type="input"/>
- <col disabled="true" ref="detladdr1" style="left:1001px; top:43px; width:250px; height:23px; "/>
- <col ref="pkgcd" type="inputbutton"/>
- <col ref="testcd" type="inputbutton"/>
- <col ref="healexamplacecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="pkgnm" visibility="hidden"/>
- <col ref="testnm" visibility="hidden"/>
- <col ref="sex" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="forgneryn" visibility="hidden"/>
- <col ref="emailid" visibility="hidden"/>
- <col ref="emailtype" visibility="hidden"/>
- <col ref="statflag" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetBatApp(grd_cupload);
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_cupload.col;
- var row = grd_cupload.row;
-
- // 패키지검사
- if(col == grd_cupload.colRef("pkgcd")){
- if(model.getValue("/root/send/srchhealexamdetlflag") == "" ){
- messageBox("건진구분 정보를", "C001");
- return;
- }
- model.resetInstanceNode("/root/hidden/pkglst/list");
- var rgstno = grd_cupload.valueMatrix(row, grd_cupload.colRef("rrgstno1")) + grd_cupload.valueMatrix(row, grd_cupload.colRef("rrgstno2")); // 주민번호
- fGetPkgCd("SMAHA00300", "P", "Y","nm" , "",model.getValue("/root/send/srchhealexamdetlflag") , fGetRrgstNo(rgstno,"S"), "/root/hidden/pkglst","Y","" ,fGetRrgstNo(rgstno,"A") );
- if(model.getValue("/root/temp/okflag") == "ok") {
- fSetPkg(grd_cupload , "/root/hidden/pkglst/list");
- //fSetAddTest(grd_cupload);
- }
- //fSetBatApp(grd_cupload);
- }else if( col == grd_cupload.colRef("testcd")) {
- if(model.getValue("/root/send/srchhealexamdetlflag") == "" ) {
- messageBox("건진구분 정보를", "C001");
- return;
- }
- model.resetInstanceNode("/root/hidden/testlst/list");
- var rgstno = grd_cupload.valueMatrix(row, grd_cupload.colRef("rrgstno1")) + grd_cupload.valueMatrix(row, grd_cupload.colRef("rrgstno2")); // 주민번호
- fGetPkgCd("SMAHA00300", "A", "Y","nm" , "",model.getValue("/root/send/srchhealexamdetlflag") , fGetRrgstNo(rgstno,"S"), "/root/hidden/testlst","Y","" ,fGetRrgstNo(rgstno,"A") );
- if(model.getValue("/root/temp/okflag") == "ok") {
- fSetAddTest(grd_cupload , "/root/hidden/testlst/list");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_cupload.isCell(event.target) && grd_cupload.mouseRow >= grd_cupload.fixedrows){
- window.setPopupMenu(true, "/root/popup/item", "label", "func", true);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cupload.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_chkdata" class="btn2_letter5" style="left:1113px; top:5px; width:75px; height:19px; ">
- <caption>데이터확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chkCnt = 0;
- var dupRrgstCnt = 0;
- grd_cupload.isReadOnly(1 , grd_cupload.colRef("pname") , grd_cupload.rows -1 , grd_cupload.cols - 1) = true;
- chkCnt = fChkData(grd_cupload);
- dupRrgstCnt = fChkDupRrgstno(grd_cupload);
- messageBox("데이터 확인이 처리되었습니다.\n주민번호 중복[" + dupRrgstCnt + "]건과 \n" + "["+ chkCnt +"]건의 오류항목이 ","E005");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_spcl">
- <button id="button1" class="btn2_letter5" style="left:1113px; top:5px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("파일 업로드");
- fFileUpload();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:8px; top:8px; width:151px; height:14px; ">특수일괄 예약/접수</caption>
- <line id="line1" class="line_1" style="x1:4px; y1:25px; x2:1188px; y2:25px; "/>
- <line id="line2" class="line_3" style="x1:5px; y1:53px; x2:1189px; y2:53px; "/>
- <button id="button4" class="btn2_letter4" style="left:432px; top:32px; width:64px; height:19px; ">
- <caption>일괄적용</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- for(var i =1; i < grd_supload.rows; i++){
- grd_supload.valueMatrix( i , grd_supload.colRef("healexamplacecd")) = model.getValue("/root/send/srchhealexamplacecd2");
- grd_supload.valueMatrix( i , grd_supload.colRef("plceflag")) = model.getValue("/root/send/srchplceflag");
- }
- ]]>
- </script>
- </button>
- <select1 id="rdo_spclhealexamplace" ref="/root/send/srchhealexamplacecd2" overflow="visible" appearance="full" cols="2" rows="1" style="left:82px; top:32px; width:143px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:5px; top:31px; width:73px; height:20px; vertical-align:middle; ">장소구분</caption>
- <datagrid id="grd_supload" nodeset="/root/main/uploadspcllst/item" allowselection="true" autoresize="true" caption="선택^사업장코드^예약일자^차트번호^성명^주민번호^사원번호^증번호^부서명^입사일자^전입일자^직종^작업공정코드^작업공정명^일반/생애^청구구분^특수구분^유해인자1^유해인자2^유해인자3^유해인자4^유해인자5^유해인자6^유해인자7^유해인자8^유해인자9^유해인자10^유해인자11^유해인자12^유해인자13^유해인자14^유해인자15^유해인자16^유해인자17^유해인자18^유해인자19^유해인자20^추가검사^추가청구구분^간이패키지^간이청구구분^장소구분^출장/내원구분^공단(생애전환기)^공단청구구분^비고^1/2차^sex^brthdd^age^forgneryn^statflag^gnrlpkgcd^acptcd^healexamflag^healexamdetlflag" colsep="^" colwidth="50, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="listbox" subtotalposition="below" style="left:4px; top:55px; width:1184px; height:655px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="cmpycd" style="left:94px; top:43px; width:61px; height:23px; "/>
- <col disabled="true" ref="hopedd" type="inputdate"/>
- <col ref="chartno"/>
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="clntempid"/>
- <col ref="acpt_insuid"/>
- <col ref="deptnm"/>
- <col disabled="true" ref="entcodd" type="inputdate"/>
- <col disabled="true" ref="junibdd" type="inputdate"/>
- <col disabled="true" ref="jobkindcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/jobkindlst/G108">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="workproccd" type="inputbutton"/>
- <col ref="workprocnm"/>
- <col disabled="true" ref="gnrlflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/autopkglst/G110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="gnrluncocd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="spclhealexamflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/spclflaglst/G111">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="spclpkg1" type="inputbutton"/>
- <col ref="spclpkg2" type="inputbutton"/>
- <col ref="spclpkg3" type="inputbutton"/>
- <col ref="spclpkg4" type="inputbutton"/>
- <col ref="spclpkg5" type="inputbutton"/>
- <col ref="spclpkg6" type="inputbutton"/>
- <col ref="spclpkg7" type="inputbutton"/>
- <col ref="spclpkg8" type="inputbutton"/>
- <col ref="spclpkg9" type="inputbutton"/>
- <col ref="spclpkg10" type="inputbutton"/>
- <col ref="spclpkg11" type="inputbutton"/>
- <col ref="spclpkg12" type="inputbutton"/>
- <col ref="spclpkg13" type="inputbutton"/>
- <col ref="spclpkg14" type="inputbutton"/>
- <col ref="spclpkg15" type="inputbutton"/>
- <col ref="spclpkg16" type="inputbutton"/>
- <col ref="spclpkg17" type="inputbutton"/>
- <col ref="spclpkg18" type="inputbutton"/>
- <col ref="spclpkg19" type="inputbutton"/>
- <col ref="spclpkg20" type="inputbutton"/>
- <col ref="addtest" type="inputbutton"/>
- <col disabled="true" ref="adduncocd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="simppkgcd" type="inputbutton"/>
- <col disabled="true" ref="simpuncocd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="healexamplacecd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamplacelst/S600">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="plceflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="lifeconvpkgcd" type="inputbutton"/>
- <col disabled="true" ref="lifeconvuncocd" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/pamcdlst/uncocdlst">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="remcnts"/>
- <col ref="dgflag" type="combo">
- <choices>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="sex" visibility="hidden"/>
- <col ref="brthdd" visibility="hidden"/>
- <col ref="age" visibility="hidden"/>
- <col ref="forgneryn" visibility="hidden"/>
- <col ref="statflag" visibility="hidden"/>
- <col ref="gnrlpkgcd" visibility="hidden"/>
- <col ref="acptcd" visibility="hidden"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fSetBatApp(grd_cupload);
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_supload.col;
- var row = grd_supload.row;
-
- // 패키지검사
- if(col >= grd_supload.colRef("spclpkg1") && grd_supload.colRef("spclpkg20") >= col){
- model.resetInstanceNode("/root/hidden/pkglst");
- var rgstno = grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno1")) + grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno2")); // 주민번호
- fGetPkgCd("SMAHA00300", "P", "N","nm" , grd_supload.valueMatrix(row,col) ,"G03" , fGetRrgstNo(rgstno,"S"), "/root/hidden/pkglst","Y","" ,fGetRrgstNo(rgstno,"A") );
- grd_supload.valueMatrix(row,col) = model.getValue("/root/hidden/pkglst/pkgcd") == "" ? grd_supload.valueMatrix(row,col) : model.getValue("/root/hidden/pkglst/pkgcd");
- }else if( col == grd_supload.colRef("addtest")){
- model.resetInstanceNode("/root/hidden/testlst/list");
- var rgstno = grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno1")) + grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno2")); // 주민번호
- fGetPkgCd("SMAHA00300", "A", "Y","nm" , "","G03" , fGetRrgstNo(rgstno,"S"), "/root/hidden/testlst","Y","" ,fGetRrgstNo(rgstno,"A") );
- var nodeList = instance1.selectNodes("/root/hidden/testlst/list");
- var testcdList = grd_supload.valueMatrix( grd_supload.row , grd_supload.colRef("addtest"));
-
- for(var i=1; i <= nodeList.length; i++){
- var testcd = model.getValue("/root/hidden/testlst/list[" + i + "]/testcd");
- var testnm = model.getValue("/root/hidden/testlst/list[" + i + "]/testnm");
- var groupflag = model.getValue("/root/hidden/testlst/list[" + i + "]/grupflag");
-
- //중복체크 로직
- if(testcdList != ""){
- if( fCheckDup(testcdList , testcd)){
- if( messageBox("중복되는 검사코드[" + testcd + " - " + testnm +"] 를 추가 ", "S001") != 6 ){
- continue ;
- }
- }
- }
- if(testcdList != "") {
- testcdList += "," + testcd ;
- }else {
- testcdList += testcd != "" && nodeList.length>i ? "," + testcd : testcd;
- }
- }
- grd_supload.valueMatrix(grd_supload.row,grd_supload.colRef("addtest")) = testcdList;
- }else if( col == grd_supload.colRef("lifeconvpkgcd")) {
- model.resetInstanceNode("/root/hidden/testlst/list");
- var rgstno = grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno1")) + grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno2")); // 주민번호
- fGetPkgCd("SMAHA00300", "A", "Y","nm" , "","G08" , fGetRrgstNo(rgstno,"S"), "/root/hidden/testlst","Y","" ,fGetRrgstNo(rgstno,"A") );
- var nodeList = instance1.selectNodes("/root/hidden/testlst/list");
- var testcdList = grd_supload.valueMatrix( grd_supload.row , grd_supload.colRef("lifeconvpkgcd"));
-
- for(var i=1; i <= nodeList.length; i++) {
- var testcd = model.getValue("/root/hidden/testlst/list[" + i + "]/testcd");
- var testnm = model.getValue("/root/hidden/testlst/list[" + i + "]/testnm");
- var groupflag = model.getValue("/root/hidden/testlst/list[" + i + "]/grupflag");
-
- // 중복체크 로직
- if(testcdList != "") {
- if ( fCheckDup(testcdList , testcd) ) {
- if( messageBox("중복되는 검사코드[" + testcd + " - " + testnm +"] 를 추가 ", "S001") != 6 ){
- continue ;
- }
- }
- }
- if(testcdList != "") {
- testcdList += "," + testcd ;
- }else {
- testcdList += testcd != "" && nodeList.length>i ? "," + testcd : testcd;
- }
- }
- grd_supload.valueMatrix(grd_supload.row,grd_supload.colRef("lifeconvpkgcd")) = testcdList;
- }else if( col == grd_supload.colRef("workproccd")) {
- fGetCommonCode("N","G105",grd_supload.valueMatrix(row , grd_supload.colRef("workproccd")),"", grd_supload.nodeset + "[" + row + "]/workproccd", grd_supload.nodeset + "[" + row + "]/workprocnm");
- }else if(col == grd_supload.colRef("simppkgcd")) {
- model.resetInstanceNode("/root/hidden/pkglst");
- var rgstno = grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno1")) + grd_supload.valueMatrix(row, grd_supload.colRef("rrgstno2")); // 주민번호
- fGetPkgCd("SMAHA00300", "P", "N","nm" , grd_supload.valueMatrix(row,col) ,"G11" , fGetRrgstNo(rgstno,"S"), "/root/hidden/pkglst","Y","" ,fGetRrgstNo(rgstno,"A") );
- grd_supload.valueMatrix(row,col) = model.getValue("/root/hidden/pkglst/pkgcd") == "" ? grd_supload.valueMatrix(row,col) : model.getValue("/root/hidden/pkglst/pkgcd");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(grd_cupload.isCell(event.target) && grd_cupload.mouseRow >= grd_cupload.fixedrows){
- window.setPopupMenu(true, "/root/popup/item", "label", "func", true);
- }else{
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cupload.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter4" style="left:1046px; top:5px; width:64px; height:19px; ">
- <caption>물질확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pkgNodeList = instance1.selectNodes("/root/main/pkginfo/pkglst/item");
- for(var i=1; i < grd_supload.rows; i++) {
- for(var j=grd_supload.colRef("spclpkg1"); j <= grd_supload.colRef("spclpkg20"); j++) {
- var srchPkgnm = grd_supload.valueMatrix(i , j);
- if(srchPkgnm == "") continue;
-
- for(var x=0; x < pkgNodeList.length; x++) {
- var desPkgnm = pkgNodeList.item(x).pkgnm.text;
- if(srchPkgnm == desPkgnm) {
- grd_supload.valueMatrix(i , j) = pkgNodeList.item(x).pkgcd.text;
- break;
- }
- }
- }
- }
- grd_supload.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:228px; top:31px; width:90px; height:20px; vertical-align:middle; ">출장/내원구분</caption>
- <select1 id="combo1" ref="/root/send/srchplceflag" appearance="minimal" style="left:322px; top:32px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="button15" class="btn2_letter6" style="left:957px; top:5px; width:86px; height:19px; ">
- <caption>주민번호체크</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_supload.rebuildStyle();
- var chkCnt = 0;
- for(var i=1; i < grd_supload.rows; i++) {
- if(!isResidentNo(grd_supload.valueMatrix(i , grd_supload.colRef("rrgstno")))) {
- grd_supload.cellStyle("background-color", i , grd_supload.colRef("rrgstno")) = "#f7a08b";
- chkCnt++;
- }
-
- //해당환자의 원무주민번호가 2건이상일경우 메세지처리
- var rrgstno1 = grd_supload.valueMatrix(i , grd_supload.colRef("rrgstno")).substr(0,6);
- var rrgstno2 = grd_supload.valueMatrix(i , grd_supload.colRef("rrgstno")).substr(6,7);
- var hngnm = grd_supload.valueMatrix(i , grd_supload.colRef("hngnm"));
-
- model.setValue("/root/send/srchrrgstnogrd1",rrgstno1);
- model.setValue("/root/send/srchrrgstnogrd2",rrgstno2);
- if(submit("TRAHA04094")){
- var rrgstcnt = parseInt(model.getValue("/root/tmp/rrgstinfo/item/rrgstcnt"));
- if(rrgstcnt > 1){
- messageBox("[" + hngnm + "]님의 주민번호가 [" + rrgstcnt + "]건 있습니다.","I007");
- return;
- }
- }
- }
- messageBox("[" + chkCnt + "]건의 주민번호가","E016");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_insu">
- <caption id="caption8" class="tit_2" style="left:8px; top:42px; width:151px; height:13px; ">증번호등록</caption>
- <line id="line3" class="line_1" style="x1:4px; y1:59px; x2:1188px; y2:59px; "/>
- <datagrid id="grd_iupload" nodeset="/root/main/uploadinsulst/item" caption="주민번호^주민번호^증번호" colsep="^" colwidth="150, 150, 150" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:4px; top:64px; width:1184px; height:646px; ">
- <col disabled="true" ref="rrgstno1" type="input"/>
- <col disabled="true" ref="rrgstno2" type="input"/>
- <col ref="insuid" type="input"/>
- </datagrid>
- <button id="button6" class="btn2_letter5" style="left:1035px; top:39px; width:75px; height:19px; ">
- <caption>파일업로드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- openLoadingBar("파일 업로드");
- fFileUpload();
- closeLoadingBar();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter3" style="left:923px; top:39px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_iupload.addRow();
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" style="left:979px; top:39px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_iupload,true);
- ]]>
- </script>
- </button>
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1193px; height:31px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_acptlst" class="btn1_letter2" style="left:1122px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode(grd_iupload.nodeset);
- if(submit("TRAHA04092")){
- copyNodesetType("/root/main/uploadinsulst/item" , "/root/tmp/uploadinsulst/item" , "replace");
- grd_iupload.refresh();
- }
- ]]>
- </script>
- </button>
- <line id="line29" style="x1:1106px; y1:6px; x2:1106px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="input1" ref="/root/send/srchrrgstno1" style="left:95px; top:7px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/send/srchrrgstno2" style="left:205px; top:7px; width:100px; height:19px; "/>
- <input id="input3" ref="/root/send/srchinsuid" style="left:412px; top:6px; width:110px; height:19px; "/>
- <caption id="caption49" class="search_name" style="left:5px; top:8px; width:86px; height:17px; ">주민번호 :</caption>
- <caption id="caption9" class="search_name" style="left:335px; top:8px; width:86px; height:17px; ">증번호 :</caption>
- <button id="button10" class="btn2_letter5" style="left:1113px; top:39px; width:75px; height:19px; ">
- <caption>데이터확인</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chkCnt = 0;
- for(var i =1; i < grd_iupload.rows; i++) {
- var rrgstno1 = grd_iupload.valueMatrix( i , grd_iupload.colRef("rrgstno1"));
- var rrgstno2 = grd_iupload.valueMatrix( i , grd_iupload.colRef("rrgstno2"));
- if(!isResidentNo(rrgstno1+rrgstno2)) {
- var ret1 = fChkValue(rrgstno1,"R1")
- var ret2 = fChkValue(rrgstno2,"R2")
- if(!ret1) {
- fDispGrd(grd_iupload,"E",i,grd_iupload.colRef("rrgstno1"));
- chkCnt++;
- }
- if(!ret2) {
- fDispGrd(grd_iupload,"E",i,grd_iupload.colRef("rrgstno2"));
- chkCnt++;
- }
- if(ret1 == true && ret2 == true) {
- fDispGrd(grd_iupload,"E",i,grd_iupload.colRef("rrgstno1"));
- fDispGrd(grd_iupload,"E",i,grd_iupload.colRef("rrgstno2"));
- chkCnt++;
- }
- }
- }
- messageBox("데이터 확인이 처리되었습니다.\n" + "["+ chkCnt +"]건의 주민번호가 ","E016");
- ]]>
- </script>
- </button>
- </case>
- <case id="case_down">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1192px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="opt_cmpynm" ref="/root/send/download/srchcmpynm" class="output_fix" disabled="true" imemode="alpha" style="left:536px; top:5px; width:140px; height:19px; "/>
- <button id="btn_srchcmpy" class="icon_search" style="left:517px; top:5px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHA01500", "09" , "nm", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"), opt_cmpynm.attribute("ref"));
- ipt_cmpycd.refresh();
- opt_cmpynm.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_cmpycd" ref="/root/send/download/srchcmpycd" class="input_default" navindex="12" imemode="alpha" style="left:408px; top:5px; width:104px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_srchcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:5px; top:7px; width:86px; height:17px; ">건진일자 :</caption>
- <caption id="caption7" class="search_name" style="left:330px; top:7px; width:86px; height:17px; ">사업체 :</caption>
- <input id="ipt_srchfromdd" ref="/root/send/download/srchfromdd" class="input_s_essential" inputtype="date" style="left:92px; top:5px; width:100px; height:19px; "/>
- <caption id="caption50" class="search_n_b" style="left:196px; top:5px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_srchtodd" ref="/root/send/download/srchtodd" class="input_s_essential" inputtype="date" style="left:212px; top:5px; width:100px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_acptlst.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button12" class="btn1_letter2" style="left:1122px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetSpclDownList();
- ]]>
- </script>
- </button>
- <line id="line4" style="x1:1111px; y1:5px; x2:1111px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button13" class="btn2_letter4" style="left:1124px; top:35px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != ""){
- grd_spcldownlst.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false", false, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_spcldownlst" nodeset="/root/main/downloadlst/item" allowselection="true" autoresize="true" caption="선택^사업장코드^예약일자^차트번호^성명^주민번호^사원번호^증번호^부서명^입사일자^전입일자^직종^작업공정코드^작업공정명^일반/생애^청구구분^특수구분^유해인자1^유해인자2^유해인자3^유해인자4^유해인자5^유해인자6^유해인자7^유해인자8^유해인자9^유해인자10^유해인자11^유해인자12^유해인자13^유해인자14^유해인자15^유해인자16^유해인자17^유해인자18^유해인자19^유해인자20^추가검사^추가청구구분^간이패키지^간이청구구분^ 등록번호^검진일^유해인자목록^유해인자별검사^사업체명" colsep="^" colwidth="50, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="listbox" subtotalposition="below" style="left:4px; top:60px; width:1184px; height:650px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="cmpycd" style="left:94px; top:43px; width:61px; height:23px; "/>
- <col disabled="true" ref="hopedd" type="inputdate"/>
- <col ref="chartno"/>
- <col ref="hngnm"/>
- <col ref="rrgstno"/>
- <col ref="clntempid"/>
- <col ref="insuid"/>
- <col ref="clntdeptnm"/>
- <col disabled="true" ref="entcodd" type="inputdate"/>
- <col disabled="true" ref="junibdd" type="inputdate"/>
- <col disabled="true" ref="jobkindnm" type="output"/>
- <col ref="workproccd" type="output"/>
- <col ref="workprocnm"/>
- <col disabled="true" ref="gnrlpkg" type="output"/>
- <col disabled="true" ref="gnrluncocd" type="output"/>
- <col disabled="true" ref="spclhealexamflag" type="output"/>
- <col ref="spclpkg1" type="output"/>
- <col ref="spclpkg2" type="output"/>
- <col ref="spclpkg3" type="output"/>
- <col ref="spclpkg4" type="output"/>
- <col ref="spclpkg5" type="output"/>
- <col ref="spclpkg6" type="output"/>
- <col ref="spclpkg7" type="output"/>
- <col ref="spclpkg8" type="output"/>
- <col ref="spclpkg9" type="output"/>
- <col ref="spclpkg10" type="output"/>
- <col ref="spclpkg11" type="output"/>
- <col ref="spclpkg12" type="output"/>
- <col ref="spclpkg13" type="output"/>
- <col ref="spclpkg14" type="output"/>
- <col ref="spclpkg15" type="output"/>
- <col ref="spclpkg16" type="output"/>
- <col ref="spclpkg17" type="output"/>
- <col ref="spclpkg18" type="output"/>
- <col ref="spclpkg19" type="output"/>
- <col ref="spclpkg20" type="output"/>
- <col ref="addtest" type="output"/>
- <col disabled="true" ref="adduncocd" type="output"/>
- <col ref="simppkg" type="output"/>
- <col disabled="true" ref="simpuncocd" type="output"/>
- <col ref="pid" type="output"/>
- <col disabled="true" ref="acptdd" type="inputdate"/>
- <col ref="spclpkg" visibility="hidden"/>
- <col ref="spclpkgcmt" visibility="hidden"/>
- <col ref="cmpynm" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_spcldownlst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(isDataCell()){
- setPopupMenu("grd_spcldownlst", false, "/root/init/popupmenu/grid/item", "name", "func");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- if(event.button == 3){
- if(isDataCell()){
- setPopupMenu("grd_spcldownlst", false, "/root/init/popupmenu/grid/item", "name", "func");
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption10" class="tit_2" style="left:8px; top:38px; width:151px; height:13px; ">특수일괄 예약/접수</caption>
- <line id="line5" class="line_1" style="x1:4px; y1:55px; x2:1188px; y2:55px; "/>
- <caption id="caption11" class="search_name" style="left:700px; top:7px; width:86px; height:17px; ">부서명 :</caption>
- <input id="input4" ref="/root/send/download/srchdeptnm" style="left:775px; top:5px; width:170px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("button12", "DOMActivate");
- ]]>
- </script>
- </input>
- </case>
- </switch>
- <button id="button5" class="btn_sw" group="tab" style="left:205px; top:18px; width:100px; height:22px; ">
- <caption>증번호</caption>
- <toggle case="case_insu" ev:event="DOMActivate"/>
- </button>
- <button id="button11" class="btn_sw" group="tab" style="left:305px; top:18px; width:100px; height:22px; ">
- <caption>내려받기</caption>
- <toggle case="case_down" ev:event="DOMActivate"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|