123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <clsdeptlist>
- </clsdeptlist>
- <deptlist>
- </deptlist>
- <depthistorylist/>
- <prevdata>
- <standarduseyn/>
- <standardflag/>
- </prevdata>
- <data>
- <instcd/>
- <deptcd/>
- <valifromddkey/>
- <valitoddkey/>
- <valifromdd/>
- <depthngnm/>
- <inorddeptnm/>
- <indepthngnm/>
- <deptengnm/>
- <deptchinm/>
- <deptplce/>
- <deptengabbr/>
- <depthngabbr/>
- <reqfild/>
- <reqdeptno/>
- <nextplceyn/>
- <nextplceprity/>
- <inetrsrvyn/>
- <cntctel/>
- <dutplceuseyn/>
- <reqauthdeptyn/>
- <planuseyn/>
- <plansupdeptcd/>
- <plandispseq/>
- <orduseyn/>
- <orddeptflag/>
- <orddispseq/>
- <ordsupdeptcd/>
- <clincdeptdispseq/>
- <psnworkuseyn/>
- <psnworksupdeptcd/>
- <psnworkdispseq/>
- <purcuseyn/>
- <purcsupdeptcd/>
- <purcdispseq/>
- <fnworkuseyn/>
- <fnworksupdeptcd/>
- <fnworkdispseq/>
- <careuseyn/>
- <caresupdeptcd/>
- <caredispseq/>
- <gafruseyn/>
- <gafrsupdeptcd/>
- <gafrdispseq/>
- <rcptuseyn/>
- <rcptsupdeptcd/>
- <rcptdispseq/>
- <pamuseyn/>
- <pamsupdeptcd/>
- <pamdispseq/>
- <healcareinfouseyn/>
- <healcareinfosupdeptcd/>
- <healcareinfodispseq/>
- <insuuseyn/>
- <insusupdeptcd/>
- <insudispseq/>
- <dgenuseyn/>
- <dgensupdeptcd/>
- <dgendispseq/>
- <homecareuseyn/>
- <homecaresupdeptcd/>
- <homecaredispseq/>
- <instsupdeptcd/>
- <instdispseq/>
- <valitodd/>
- <orddeptkind/>
- <ordclsdeptflag/>
- </data>
- <search>
- <instcd/>
- <deptmaster>
- <supdeptcd/>
- <supdeptnm/>
- </deptmaster>
- <authority/>
- <authorities/>
- <deptinfo>
- <deptcd/>
- <depthngnm/>
- </deptinfo>
- </search>
- <move>
- <mvdest/>
- <mvsrc/>
- </move>
- <mode/>
- <modedetail/>
- <modedetailstatus/>
- <label>
- <left/>
- <right/>
- <deptinfo/>
- </label>
- </main>
- <send>
- <data>
- <instcd/>
- <deptcd/>
- </data>
- </send>
- <hidden>
- </hidden>
- <init>
- <reqdeptnocode>
- <P0322>
- <cdid/>
- <cdnm/>
- </P0322>
- </reqdeptnocode>
- <reqfieldcode>
- <P0291>
- <cdid/>
- <cdnm/>
- </P0291>
- </reqfieldcode>
- <insuuseyn>
- <Z0015>
- <cdid/>
- <cdnm/>
- </Z0015>
- </insuuseyn>
- <instlist/>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD003.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var success = submit("TRZSD00205");
- return;
- if(success){
- zbcfGetCodeList( new Array("P0322", "P0291", "Z0015"), new Array("/root/init/reqdeptnocode", "/root/init/reqfieldcode", "/root/init/insuuseyn") );
- fInitMainData();
- model.setValue("/root/main/mode", "init");
- model.setValue("/root/main/modedetail", "init");
- model.setValue("/root/main/modedetailstatus", "none");
- model.refresh();
- fInitMainDataControls(true);
- }else{
- messageBox("업무부서관리 권한기관이 지정되지 않아서 화면을 조작", "E001");
- body.disabled = true;
- }
- ]]>
- </script>
- <submission id="TRZSD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/clsdeptlist"/>
- <submission id="TRZSD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/deptlist"/>
- <submission id="TXZSD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TRZSD00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
- <submission id="TRZSD00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/search/authorities"/>
- <submission id="TRZSD00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/deptlisthistory"/>
- <submission id="TXZSD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TXZSD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TXZSD00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TRZSD00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/clsdeptlist"/>
- <submission id="TXZSD00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TXZSD00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/search/authorities"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZSD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/init/instlist"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1201;2,109;1,836;" style="color:transparent; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">업무별부서정보관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="group5" style="left:0px; top:10px; width:1194px; height:59px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
- <line id="line12" class="line_4" style="x1:1106px; y1:8px; x2:1106px; y2:51px; "/>
- <caption id="caption2" class="search_name" style="left:412px; top:8px; width:143px; height:17px; ">조회기준 상위부서 :</caption>
- <select1 id="cmb_standardupdeptcd" ref="/root/main/search/authority" class="combo_essential" appearance="minimal" style="left:555px; top:7px; width:253px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/search/authorities/authority">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/search/deptmaster/supdeptcd", "");
- model.setValue("/root/main/search/deptmaster/supdeptnm", "");
- model.setValue("/root/main/search/deptinfo/deptcd", "");
- model.setValue("/root/main/search/deptinfo/depthngnm", "");
- model.removenode("/root/main/clsdeptlist");
- model.makeNode("/root/main/clsdeptlist");
- model.removenode("/root/main/deptlist");
- model.makeNode("/root/main/deptlist");
- model.removenode("/root/main/depthistorylist");
- model.makeNode("/root/main/depthistorylist");
- fInitMainData();
- model.refresh();
- fInitMainDataControls(true);
- ]]>
- </script>
- </select1>
- <button id="btn_retrive" class="btn1_letter2" style="left:1120px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/depthistorylist");
- var instcd = model.getValue("/root/main/search/instcd");
- var authority = model.getValue("/root/main/search/authority");
-
- if( instcd == "" ){
- messageBox("조회기준 기관을", "C002");
- model.setFocus("cmb_inst");
- return;
- }else if( authority == "" ){
- messageBox("조회기준 상위부서를", "C002");
- model.setFocus("cmb_standardupdeptcd");
- return;
- }
-
- model.makeValue("/root/send/data/instcd", instcd);
- model.makeValue("/root/send/data/standard", "instsupdeptcd");
- model.makeValue("/root/send/data/supdeptcd", "root");
-
- var success = submit("TRZSD00112");//기관담당자가 등록한 부서목록을 검색한다.
-
- if(success){
- grd_clsdeptlist.rebuild();//검색한 결과를 트리형태로 표현하기 전에 rebuild한다.
- grd_clsdeptlist.colHidden(grd_clsdeptlist.colRef("useyn")) = false;
- setTree( grd_clsdeptlist, grd_clsdeptlist.colRef("level"), grd_clsdeptlist.colRef("deptnm"), true );//마스터 트리를 만든다.
- var standard = model.getValue("/root/main/search/authority");
-
- model.makeValue("/root/send/data/instcd", instcd);
- model.makeValue("/root/send/data/standard", standard);
- model.makeValue("/root/send/data/supdeptcd", "root");
- success = submit("TRZSD00104");
-
- if(success){
-
- grd_deptlist.rebuild();
- setTree(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"), true);
- grd_clsdeptlist.rebuildStyle();
-
- var dept_standard_idx = grd_clsdeptlist.colRef(standard);
-
- var cls_fixed_rows = grd_clsdeptlist.fixedRows;
- var cls_rows = grd_clsdeptlist.rows;
- var cls_iscurrent_index = grd_clsdeptlist.colRef("iscurrent");
- var cls_color_index = grd_clsdeptlist.colRef("color");
-
- /*기관마스터에 색상부여하기*/
- for(var i = cls_fixed_rows; i<cls_rows; i++){
- var iscurrent = grd_clsdeptlist.valueMatrix(i, cls_iscurrent_index);//현재 사용중인것과 종료된것을 구분한다.
- var assigned_supdeptcd = grd_clsdeptlist.valueMatrix(i, dept_standard_idx);
- if(iscurrent=='Y'){//기관에서 현재사용중인부서
- grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
- grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#ffffff";
- }else if(iscurrent=='F'){
- grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
- grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#fcd2c1";
- }else if(iscurrent=='P'){
- grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
- grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#b9e5fb";
- }else{
- grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#c8e67b";//현제 기관에서는 사용하지 않는 부서
- grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#c8e67b";
- }
- if(assigned_supdeptcd!=""){
- grd_clsdeptlist.valueMatrix(i, grd_clsdeptlist.colRef("useyn")) = "true";
- }else{
- grd_clsdeptlist.valueMatrix(i, grd_clsdeptlist.colRef("useyn")) = "false";
- }
- }
- /*업무별 부서마스터에 색상부여하기*/
- for(var j = grd_deptlist.fixedRows; j<grd_deptlist.rows;j++){
- var iscurrent = grd_deptlist.valueMatrix(j, grd_deptlist.colRef("iscurrent"));
- if(iscurrent=="Y"){
- grd_deptlist.rowstyle( j , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
- grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#ffffff";
- }else if(iscurrent=="F"){
- grd_deptlist.rowstyle( j , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서는 사용중이며, 종료된부서.
- grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#fcd2c1";
- }else if(iscurrent=="P"){
- grd_deptlist.rowstyle( j , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서는 사용중이며, 종료된부서.
- grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#b9e5fb";
- }
- }
- model.setValue("/root/main/mode", "retrived");
- model.setValue("/root/main/modedetail", "init");
- model.setValue("/root/main/modedetailstatus", "none");
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:15px; top:34px; width:101px; height:17px; ">기관부서 :</caption>
- <img id="img2" class="icon_search" style="left:362px; top:35px; width:16px; height:16px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_clsdeptlist.rows<2){
- messageBox("조회된 아이템이 없습니다.", "C");
- return;
- }
- var supdeptcolumn = "instsupdeptcd";
- var searchcondition = "deptnm";
- var searchterm = model.getValue("/root/main/search/deptmaster/supdeptnm");
- var receivedeptcdpath = "/root/main/search/deptmaster/supdeptcd";
- var receivedeptnmpath = "/root/main/search/deptmaster/supdeptnm";
- var instcd = model.getValue("/root/main/search/instcd");
- zbcfGetDeptCodeListFromTree(searchcondition, searchterm, instcd, supdeptcolumn, receivedeptcdpath, receivedeptnmpath);
-
- var deptcd = model.getValue("/root/main/search/deptmaster/supdeptcd").getTrim();
- var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
- var selected_index = -1;
- if(deptcd!=""&&deptnm!=""){
- selected_index = fFindGridTreeItem(grd_clsdeptlist, deptcd, grd_clsdeptlist.colRef("deptcd"), grd_clsdeptlist.colRef("level"));
- if(selected_index==-1){
- var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
- messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
- }else{
- grd_clsdeptlist.row = selected_index;
- grd_clsdeptlist.topRow = selected_index;
- }
- }
- ]]>
- </script>
- </img>
- <input id="ipt_searchdeptcd" ref="/root/main/search/deptmaster/supdeptnm" class="input_s_essential" navindex="32" editable="false" inputtype="button" style="left:132px; top:33px; width:218px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var deptcd = model.getValue("/root/main/search/deptmaster/supdeptcd").getTrim();
- var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
- var selected_index = -1;
- if(deptcd!=""&&deptnm!=""){
- selected_index = fFindGridTreeItem(grd_clsdeptlist, deptcd, grd_clsdeptlist.colRef("deptcd"), grd_clsdeptlist.colRef("level"));
- if(selected_index==-1){
- var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
- messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
- }else{
- grd_clsdeptlist.row = selected_index;
- grd_clsdeptlist.topRow = selected_index;
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption16" class="search_name" style="left:15px; top:9px; width:127px; height:17px; ">조회기준 기관 :</caption>
- <img id="img4" class="icon_search" style="left:790px; top:34px; width:16px; height:16px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_deptlist.rows<2){
- messageBox("조회된 아이템이 없습니다.", "C");
- return;
- }
- var supdeptcolumn = model.getValue("/root/main/search/authority");
- var searchcondition = "deptnm";
- var searchterm = model.getValue("/root/main/search/deptinfo/depthngnm");
- var receivedeptcdpath = "/root/main/search/deptinfo/deptcd";
- var receivedeptnmpath = "/root/main/search/deptinfo/depthngnm";
- var instcd = model.getValue("/root/main/search/instcd");
- zbcfGetDeptCodeListFromTree(searchcondition, searchterm, instcd, supdeptcolumn, receivedeptcdpath, receivedeptnmpath);
-
- var deptcd = model.getValue("/root/main/search/deptinfo/deptcd").getTrim();
- var deptnm = model.getValue("/root/main/search/deptinfo/depthngnm").getTrim();
- var selected_index = -1;
- if(deptcd!=""&&deptnm!=""){
- selected_index = fFindGridTreeItem(grd_deptlist, deptcd, grd_deptlist.colRef("deptcd"), grd_deptlist.colRef("level"));
- if(selected_index==-1){
- messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
- }else{
- grd_deptlist.row = selected_index;
- grd_deptlist.topRow = selected_index;
- }
- }
- ]]>
- </script>
- </img>
- <caption id="caption17" class="search_name" style="left:413px; top:34px; width:142px; height:17px; ">업무별부서 :</caption>
- <input id="input1" ref="/root/main/search/deptinfo/depthngnm" class="input_s_essential" navindex="32" editable="false" inputtype="button" style="left:555px; top:33px; width:225px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var deptcd = model.getValue("/root/main/search/deptinfo/deptcd").getTrim();
- var deptnm = model.getValue("/root/main/search/deptinfo/depthngnm").getTrim();
- var selected_index = -1;
- if(deptcd!=""&&deptnm!=""){
- selected_index = fFindGridTreeItem(grd_deptlist, deptcd, grd_deptlist.colRef("deptcd"), grd_deptlist.colRef("level"));
- if(selected_index==-1){
- messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
- }else{
- grd_deptlist.row = selected_index;
- grd_deptlist.topRow = selected_index;
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_inst" ref="/root/main/search/instcd" class="combo_essential" appearance="minimal" style="left:132px; top:8px; width:253px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instlist/inst">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = model.getValue("/root/main/search/instcd");
- model.setValue("/root/send/data/instcd", instcd);
- var success = submit("TRZSD00108");
- model.setValue("/root/main/search/deptmaster/supdeptcd", "");
- model.setValue("/root/main/search/deptmaster/supdeptnm", "");
- model.setValue("/root/main/search/deptinfo/deptcd", "");
- model.setValue("/root/main/search/deptinfo/depthngnm", "");
- model.removenode("/root/main/clsdeptlist");
- model.makeNode("/root/main/clsdeptlist");
- model.removenode("/root/main/deptlist");
- model.makeNode("/root/main/deptlist");
- model.removenode("/root/main/depthistorylist");
- model.makeNode("/root/main/depthistorylist");
- fInitMainData();
- model.refresh();
- fInitMainDataControls(true);
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption12" ref="/root/main/label/left" class="tit_2" style="left:5px; top:85px; width:110px; height:13px; ">기관부서마스터</caption>
- <line id="line15" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
- <img id="img3">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var searchcondition = "deptnm";
- var searchterm = model.getValue("/root/main/search/deptcd");
- var receivedeptcdpath = "/root/main/search/deptcd";
- var receivedeptnmpath = "/root/main/search/deptnm";
- zbcfOpenMasterDeptCodeList(searchcondition, searchterm, receivedeptcdpath, receivedeptnmpath);
- ]]>
- </script>
- </img>
- <datagrid id="grd_clsdeptlist" nodeset="/root/main/clsdeptlist/dept" scroll="autovscroll" caption="^색상^상위 부서명^부서명^부서영문명^부서한문명^부서영문약어^부서한글약어^부서코드^기획상위부서^진료 상위부서^인사 상위부서^구매 상위부서^재무 상위부서^간호 상위부서^총무 상위부서^수납 상위부서^원무 상위부서^의료정보 상위부서^보험 상위부서^근태 상위부서^그룹웨어상위부서코드^기관상위부서코드^기관코드^유효시작일자^유효종료일자^현재사용여부^레벨" colsep="▦" colwidth="16, 100, 300, 300, 100, 100, 100, 100, 140, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="▩" select.background-color="transparent" style="left:0px; top:105px; width:380px; height:435px; border-color:#808080; ">
- <col checkvalue="true,false" disabled="true" ref="useyn" type="checkbox" visibility="hidden"/>
- <col ref="color" visibility="hidden"/>
- <col ref="supdeptnm" visibility="hidden"/>
- <col ref="deptnm"/>
- <col ref="deptengnm" visibility="hidden"/>
- <col ref="deptchinm" visibility="hidden"/>
- <col ref="deptengabbr" visibility="hidden"/>
- <col ref="depthngabbr" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="plansupdeptcd" visibility="hidden"/>
- <col ref="ordsupdeptcd" visibility="hidden"/>
- <col ref="psnworksupdeptcd" visibility="hidden"/>
- <col ref="purcsupdeptcd" visibility="hidden"/>
- <col ref="fnworksupdeptcd" visibility="hidden"/>
- <col ref="caresupdeptcd" visibility="hidden"/>
- <col ref="gafrsupdeptcd" visibility="hidden"/>
- <col ref="rcptsupdeptcd" visibility="hidden"/>
- <col ref="pamsupdeptcd" visibility="hidden"/>
- <col ref="healcareinfosupdeptcd" visibility="hidden"/>
- <col ref="insusupdeptcd" visibility="hidden"/>
- <col ref="dgensupdeptcd" visibility="hidden"/>
- <col ref="homecaresupdeptcd" visibility="hidden"/>
- <col ref="instsupdeptcd" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="valifromdd" visibility="hidden"/>
- <col ref="valitodd" visibility="hidden"/>
- <col ref="iscurrent" visibility="hidden"/>
- <col ref="level" visibility="hidden"/>
- </datagrid>
- <img id="img_mv_right" class="icon_right" style="left:382px; top:275px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var mode = model.getValue("/root/main/mode");//부서정보관리프로그램에서 프로그램의 현재상태를 얻어온다.
- if(mode!="retrived"){//검색이 되지 않은상태에서 부서관리작업을 수행할수 없다.
- messageBox("검색되지 않은상태에서 작업을 진행할수", "I004");
- return;
- }
-
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail!="init"&&modedetail!="reorg"){
- if(modedetail=="update"){
- var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
- if(nextstep==6){
- messageBox("업무별 부서 상위부서 및 출력순서 변경작업을 진행합니다.", "I");
- }else{
- return;
- }
- }
- fInitialize();
- }
-
- var src_row = grd_clsdeptlist.row;
- if(src_row==-1){
- messageBox("이동할 대상 부서를 선택하지 않은상태에서 이동", "E001");
- return;
- }
- /*
- 임시로 등록할 자원이 이미 등록되어 있는 자원인지 판단한다.
- */
- var standard = model.getValue("/root/main/search/authority");
- var master_standard_supdeptcd = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef(standard));
- if(master_standard_supdeptcd!=""){
- messageBox("이미 등록된부서는 이동", "E001");
- return;
- }
- /*
- 등록된 자원중 어느행을 대상으로 삽입할것인지 얻어온다.
- */
- var dest_row = grd_deptlist.row;
- var dest_row_style = grd_deptlist.valueMatrix(dest_row, grd_deptlist.colRef("color"));
- if(dest_row_style=="#b9e5fb"){
- messageBox("종료된 부서하위로 이동", "E001");
- return;
- }
-
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail!="init"&&modedetail!="reorg"){
- if(modedetail=="create"){
- var nextstep = messageBox("부서이력 추가작업중이었습니다. 추가작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
- if(nextstep==6){
- messageBox("출력상태 변경작업을 진행합니다.", "I");
- }else{
- return;
- }
- }else if(modedetail=="update"){
- var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
- if(nextstep==6){
- messageBox("출력상태 변경작업을 진행합니다.", "I");
- }else{
- return;
- }
- }
- fInitialize();
- }
-
- var child_info = fGetGridTreeNextChild(grd_deptlist, dest_row, "level", "deptcd");
- var child_offset = child_info[0];
- var insert_index = child_info[1];
- var child_index = child_info[2];
- var parents = child_info[3];
- var child_level = child_info[4];
- var child_seq = new Number(child_info[5]);
- if(insert_index==-1){
- messageBox("최상위 부서를 추가합니다.", "I");
- grd_deptlist.addItem();
- }else{
- grd_deptlist.insertrow(insert_index, "after", false);
- }
- /*
- 기관관리자가 등록한 해당부서의 속성을 가져온다.
- 부서코드와 유효종료일자를 PrimaryKey로 하여 기관관리자가 등록한 해당부서의 속성을 가져온다.
- */
- var master_instcd = model.getValue("/root/main/search/instcd");
- var master_deptcd = grd_clsdeptlist.valueMatrix(grd_clsdeptlist.row, grd_clsdeptlist.colRef("deptcd"));
- var master_valifromdd = grd_clsdeptlist.valueMatrix(grd_clsdeptlist.row, grd_clsdeptlist.colRef("valifromdd"));
- var master_valitodd = grd_clsdeptlist.valueMatrix(grd_clsdeptlist.row, grd_clsdeptlist.colRef("valitodd"));
-
- model.makeValue("/root/send/data/instcd", master_instcd);
- model.makeValue("/root/send/data/deptcd", master_deptcd);
- model.makeValue("/root/send/data/valifromdd", master_valifromdd);
- model.makeValue("/root/send/data/valitodd", master_valitodd);
-
- submit("TRZSD00106");
- model.removenode("/root/send/data");
- model.makeNode("/root/send/data");
- var dept_size = instance1.selectNodes("/root/hidden/dept").length;
- if(dept_size!=1){
- messageBox("조회한 부서의 이력이 다른사용자에 의해 삭제되었습니다. 다시조회한 후에 작업하시기 바랍니다.", "C");
- model.setValue("/root/main/search/deptmaster/supdeptcd", "");
- model.removenode("/root/main/clsdeptlist");
- model.makeNode("/root/main/clsdeptlist");
- model.removenode("/root/main/deptlist");
- model.makeNode("/root/main/deptlist");
- model.setValue("/root/main/mode", "init");
- model.setValue("/root/main/modedetail", "init");
- model.setValue("/root/main/modedetailstatus", "none");
- fInitMainData();
- model.refresh();
- fInitMainDataControls(true);
- return;
- }else{
- fMVInstMaster2BizMaster(grd_clsdeptlist.row, child_index, standard, dest_row, parents, child_seq, child_level);
- model.setValue("/root/main/modedetail", "reorg");
- model.setValue("/root/main/modedetailstatus", "");
- }
- grd_deptlist.topRow = grd_deptlist.row;
- ]]>
- </script>
- </img>
- <group id="group_master" style="left:228px; top:79px; width:145px; height:19px; ">
- <button id="btn_clsdepttotalopen" class="btn2_letter5" style="left:0px; top:0px; width:75px; height:19px; ">
- <caption>전체펼치기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=grd_clsdeptlist.fixedRows; i<grd_clsdeptlist.rows;i++){
- grd_clsdeptlist.iscollapsed(i)=false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_clsdepttotalclose" class="btn2_letter4" style="left:76px; top:0px; width:64px; height:19px; ">
- <caption>전체닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- for(var i=grd_clsdeptlist.fixedRows; i<grd_clsdeptlist.rows;i++){
- grd_clsdeptlist.iscollapsed(i)=true;
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group6" style="left:533px; top:79px; width:275px; height:19px; ">
- <button id="btn_bizdepttree_open" class="btn2_letter5" style="left:0px; top:0px; width:75px; height:19px; ">
- <caption>전체펼치기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=grd_deptlist.fixedRows; i<grd_deptlist.rows;i++){
- grd_deptlist.iscollapsed(i)=false;
- }
- ]]>
- </script>
- </button>
- <button id="btn_bizdepttree_close" class="btn2_letter4" style="left:76px; top:0px; width:64px; height:19px; ">
- <caption>전체닫기</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- for(var i=grd_deptlist.fixedRows; i<grd_deptlist.rows;i++){
- grd_deptlist.iscollapsed(i)=true;
- }
- ]]>
- </script>
- </button>
- <button id="btn_bizdepttree_relocate" class="btn2_letter4" style="left:141px; top:0px; width:64px; height:19px; ">
- <caption>위치이동</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail!="init"&&modedetail!="reorg"){
- if(modedetail=="update"){
- var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 위치이동 작업을 진행하게 됩니다", "S001");
- if(nextstep==6){
- messageBox("위치이동 작업을 진행합니다.", "C");
- }else{
- return;
- }
- }
- fInitialize();
- }
- var mv_src = grd_deptlist.row;
- if(mv_src<1){
- messageBox("위치이동 대상 부서를", "C002") ;
- return;
- }else{
- model.setValue("/root/main/move/mvsrc", mv_src);
- model.resetInstanceNode("/root/main/move/mvdest");
- modal("SPZSD00400",1,"","","SPZSD00400","/root/main/deptlist","/root/main/deptlist");
- var mv_dest = model.getValue("/root/main/move/mvdest").getTrim();
- if( mv_dest!="" && mv_dest!=null ){
- var mv_dest_deptcd = grd_deptlist.valueMatrix(mv_dest, grd_deptlist.colRef("deptcd"));
- var mv_dest_depthngnm = grd_deptlist.valueMatrix(mv_dest, grd_deptlist.colRef("depthngnm"));
- var last_src = fCacheDeptBundle(grd_deptlist, mv_src, "/root/main/deptlist/dept", "/root/main/temp/mvsrc");
- var src_level = new Number(grd_deptlist.valueMatrix(mv_src, grd_deptlist.colRef("level")));
- var standard_supdeptcd_cols = model.getValue("/root/main/search/authority");
- var standard_displayseq_cols = standard_supdeptcd_cols.substring(0, standard_supdeptcd_cols.indexOf("supdeptcd")) + "dispseq";
-
- var mv_src_parents = grd_deptlist.valueMatrix(mv_src, grd_deptlist.colRef(standard_supdeptcd_cols));
- for(var i=0; i<instance1.selectNodes("/root/main/temp/mvsrc").length; i++){
- grd_deptlist.deleterow(mv_src, false);
- }
- fReorgSequenceFromBizDeptGrid(grd_deptlist, mv_src_parents, standard_supdeptcd_cols, standard_displayseq_cols);
- mv_dest = fFindItem(grd_deptlist, mv_dest_deptcd, "deptcd");
- var last_dest = fCacheDeptBundle(grd_deptlist, mv_dest, "/root/main/deptlist/dept", "/root/main/temp/mvdest");
- var dest_level = new Number(grd_deptlist.valueMatrix(mv_dest, grd_deptlist.colRef("level")));
- var difference = dest_level-src_level;
- fCache2Grid("/root/main/temp/mvsrc", last_dest, difference);
- grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef(standard_supdeptcd_cols)) = mv_dest_deptcd;
- fReorgSequenceFromBizDeptGrid(grd_deptlist, mv_dest_deptcd, standard_supdeptcd_cols, standard_displayseq_cols);
-
- grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef("supdeptnm")) = mv_dest_depthngnm;
-
- var src_root_rowstatus = grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef("rowstatus"));
- if(src_root_rowstatus!=1){
- grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef("rowstatus")) = 2;
- }
- setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
- fRefreshGridRowStatus(grd_deptlist, "rowstatus");
- model.setValue("/root/main/modedetail", "reorg");
- model.setValue("/root/main/modedetailstatus", "none");
- grd_deptlist.topRow = grd_deptlist.row;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_selectdepthistory" class="btn2_letter4" style="left:206x; top:0px; width:64px; height:19px; ">
- <caption>이력선택</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail=="reorg"){
- messageBox("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력을 선택할수 없습니다.", "C");
- return;
- }
-
- var row = grd_deptlist.row;
- if(row<1){
- messageBox("부서코드 목록을 선택하세요.", "C");
- return;
- }
- var color_status = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("color"));
- fClearDeptHistory();
- model.refresh();
-
- if(color_status=="#dec6a4"){//임시인 경우
-
- model.setValue("/root/main/label/deptinfo", "부서정보추가");
- grd_depthistorylist.addItem();
- var add_offset = 1;
- fDept2DeptHistory(grd_deptlist.row,add_offset);
-
- }else{//임시가 아닌경우
-
- var deptcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("deptcd"));
- model.removenode("/root/send/data");
- var instcd = model.getValue("/root/main/search/instcd");
- model.makeValue("/root/send/data/instcd", instcd);
- model.makeValue("/root/send/data/deptcd", deptcd);
- submit("TRZSD00110");
-
- for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
- var iscurrent = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("iscurrent"));
- if(iscurrent=='Y'){//기관에서 현재사용중인부서
- grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
- grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#ffffff";
- }else if(iscurrent=='F'){
- grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
- grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#fcd2c1";
- }else if(iscurrent=='P'){
- grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
- grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#b9e5fb";
- }
- }
-
- var history_target_deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
- var history_target_valifromdd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("valifromdd"));
-
- for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
- var history_deptcd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("deptcd"));
- var history_valifromdd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("valifromdd"));
- if(history_target_deptcd==history_deptcd && history_target_valifromdd==history_valifromdd){
- grd_depthistorylist.row = i;
- break;
- }
- }
-
- }
- fInitMainDataControls(false);
- fHistoryGrid2Main();
-
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기")
- model.refresh();
- fInitMainDataControls(true);
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:1140px; top:79px; width:45px; height:20px; ">
- <button id="btn_update" class="btn2_letter2" visibility="hidden" style="left:0px; top:0px; width:42px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail=="reorg"){
- messageBox("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력수정에 해당하는 '추가','수정' 작업을 수행할수 없습니다.", "C");
- return;
- }
-
- var history_selected = fGridSelected(grd_depthistorylist);
- if(!history_selected){
- messageBox("부서이력목록을", "C002");
- return;
- }
-
- var history_status = fGetDeptHistoryStatus(grd_depthistorylist.row);
- if(history_status=="present"){
- var has_future = fHasDeptHistoryBundle("future");
- if(has_future){
- messageBox("미래이력을 가지고 있는 경우에는 현재이력을 수정할수 없습니다.", "C");
- return;
- }
-
- var valitodd = grd_depthistorylist.valueMatrix(grd_depthistorylist.row, grd_depthistorylist.colRef("valitodd"));
- var current_date = new Date();
- var next_date = current_date.getAddDate(1, "D");
- var next_date_string = next_date.getDateFormat("YYYYMMDD");
-
- if(valitodd<next_date_string){
- messageBox("현재이력의 종료일자가 현재일자와 같거나 더 작다면 현재이력을 변경하여, 현재이력과 미래이력으로 나눌수 없습니다.", "C");
- return;
- }
-
- fHistoryGrid2Main();
- model.refresh();
- fInitMainDataControls(true);
-
- var standard = model.getValue("/root/main/search/authority");
- if("plansupdeptcd"==standard){
- cmb_planuseyn.disabled = false;
- var planuseyn = model.getValue("/root/main/data/planuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", planuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("ordsupdeptcd"==standard){
- cmb_orduseyn.disabled = false;
- cmb_orddeptflag.disabled = false;
- var orduseyn = model.getValue("/root/main/data/orduseyn");
- var orddeptflag = model.getValue("/root/main/prevdata/standardflag");
- model.setValue("/root/main/prevdata/standarduseyn", orduseyn);
- model.setValue("/root/main/prevdata/standardflag", orddeptflag);
- }else if("psnworksupdeptcd"==standard){
- cmb_psnworkuseyn.disabled = false;
- var psnworkuseyn = model.getValue("/root/main/data/psnworkuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", psnworkuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("purcsupdeptcd"==standard){
- cmb_purcuseyn.disabled = false;
- var purcuseyn = model.getValue("/root/main/data/purcuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", purcuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("fnworksupdeptcd"==standard){
- cmb_fnworkuseyn.disabled = false;
- var fnworkuseyn = model.getValue("/root/main/data/fnworkuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", fnworkuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("caresupdeptcd"==standard){
- cmb_careuseyn.disabled = false;
- var careuseyn = model.getValue("/root/main/data/careuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", careuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("gafrsupdeptcd"==standard){
- cmb_gafruseyn.disabled = false;
- var gafruseyn = model.getValue("/root/main/data/gafruseyn");
- model.setValue("/root/main/prevdata/standarduseyn", gafruseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("rcptsupdeptcd"==standard){
- cmb_rcptuseyn.disabled = false;
- var rcptuseyn = model.getValue("/root/main/data/rcptuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", rcptuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("pamsupdeptcd"==standard){
- cmb_pamuseyn.disabled = false;
- var pamuseyn = model.getValue("/root/main/data/pamuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", pamuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("healcareinfosupdeptcd"==standard){
- cmb_healcareinfouseyn.disabled = false;
- var healcareinfouseyn = model.getValue("/root/main/data/healcareinfouseyn");
- model.setValue("/root/main/prevdata/standarduseyn", healcareinfouseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("insusupdeptcd"==standard){
- cmb_insuuseyn.disabled = false;
- var insuuseyn = model.getValue("/root/main/data/insuuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", insuuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("dgensupdeptcd"==standard){
- cmb_dgenuseyn.disabled = false;
- var dgenuseyn = model.getValue("/root/main/data/dgenuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", dgenuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else if("homecaresupdeptcd"==standard){
- cmb_homecareuseyn.disabled = false;
- var homecareuseyn = model.getValue("/root/main/data/homecareuseyn");
- model.setValue("/root/main/prevdata/standarduseyn", homecareuseyn);
- model.setValue("/root/main/prevdata/standardflag", "");
- }else{
- messageBox("ERROR=>unexpected standard : "+standard, "C");
- }
-
- model.setValue("/root/main/modedetail", "update");
- model.setValue("/root/main/modedetailstatus", "present");
- model.setValue("/root/main/label/deptinfo", "부서정보수정");
- model.refresh();
-
- }else if(history_status=="future"){
- messageBox("업무담당자는 미래이력을 수정할수 없습니다.", "C");
- }else if(history_status=="past"){
- messageBox("과거이력은 수정할 수 없습니다.", "C");
- }else{
- messageBox("ERROR => history_status : "+history_status, "C");
- }
- ]]>
- </script>
- </button>
- </group>
- <input id="ipt_deptcd" ref="/root/main/data/deptcd" class="input_essential" navindex="3" style="left:964px; top:154px; width:228px; height:19px; "/>
- <input id="ipt_inorddeptnm" ref="/root/main/data/inorddeptnm" class="input_essential" navindex="4" maxlength="21" style="left:964px; top:178px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_inorddeptnm.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 64) {
- messageBox("최대입력글자인 64byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_deptchinm" ref="/root/main/data/deptchinm" class="input_essential" navindex="6" maxlength="21" style="left:964px; top:225px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_deptchinm.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 64) {
- messageBox("최대입력글자인 64byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_deptengnm" ref="/root/main/data/deptengnm" class="input_essential" navindex="5" imemode="disabled" maxlength="21" style="left:964px; top:201px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_deptengnm.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 64) {
- messageBox("최대입력글자인 64byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <input id="ipt_valifromdd" ref="/root/main/data/valifromdd" class="input_search" navindex="1" inputtype="date" style="left:964px; top:106px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- ipt_valifromdd.attribute("_value") = ipt_valifromdd.value;
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- ipt_valifromdd.attribute("_value") = ipt_valifromdd.value;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var mode_detail = model.getValue("/root/main/modedetail");
- if(mode_detail=="create"){//추가시 상위부서를 지정하는 경우
- //시작일자는 종료일자보다 클수 없으며, 시작일자는 오늘이후여야 한다.
- var from = model.getValue("/root/main/data/valifromdd");
- var to= model.getValue("/root/main/data/valitodd");
- var isvalid_from = isValidDateTime(from, "YYYYMMDD");
- if(!isvalid_from){
- messageBox("유효시작일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- var is_valid_duration = fValidateDuration(from, to);
- if(!is_valid_duration){
- messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
- if(present_valitodd!=""){
- if(from<=present_valitodd){
- messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- }else{
- var current_date = new Date();
- var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
- if(from<min_valifromdd){
- messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- }
- }else if(mode_detail=="update"){
- var mode_detail_status = model.getValue("/root/main/modedetailstatus");
- if(mode_detail_status=="future"){
- var from = model.getValue("/root/main/data/valifromdd");
- var to= model.getValue("/root/main/data/valitodd");
- var isvalid_from = isValidDateTime(from, "YYYYMMDD");
- if(!isvalid_from){
- messageBox("유효시작일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- var is_valid_duration = fValidateDuration(from, to);
- if(!is_valid_duration){
- messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
-
- var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
- if(present_valitodd!=""){
- if(from<=present_valitodd){
- messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- }else{
- var current_date = new Date();
- var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
- if(from<min_valifromdd){
- messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- }
-
- }else{
- messageBox("error => mode_detail_status이 ("+mode_detail_status+")인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- }else{
- messageBox("error => mode_detail이 ("+mode_detail+")인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- ]]>
- </script>
- </input>
- <caption id="caption11" class="cell_1" style="left:838px; top:105px; width:125px; height:23px; vertical-align:middle; ">유효 시작일자</caption>
- <caption id="caption53" class="cell_1" style="left:838px; top:225px; width:125px; height:23px; vertical-align:middle; ">부서코드 한문명칭</caption>
- <caption id="caption58" class="cell_1" style="left:838px; top:201px; width:125px; height:23px; vertical-align:middle; ">부서코드 영문명칭</caption>
- <caption id="caption59" class="cell_1" style="left:838px; top:153px; width:125px; height:23px; vertical-align:middle; ">부서코드</caption>
- <caption id="caption66" class="cell_1" style="left:838px; top:177px; width:125px; height:23px; vertical-align:middle; ">부서명(MIS사용)</caption>
- <caption id="caption3" class="cell_1" style="left:838px; top:129px; width:125px; height:23px; vertical-align:middle; ">유효 종료일자</caption>
- <input id="ipt_valitodd" ref="/root/main/data/valitodd" class="input_search" navindex="2" inputtype="date" style="left:965px; top:130px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- ipt_valitodd.attribute("_value") = ipt_valitodd.value;
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- ipt_valitodd.attribute("_value") = ipt_valitodd.value;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var mode_detail = model.getValue("/root/main/modedetail");
- if(mode_detail=="create"){//추가시 상위부서를 지정하는 경우
- //시작일자는 종료일자보다 클수 없으며, 시작일자는 오늘이후여야 한다.
- var from = model.getValue("/root/main/data/valifromdd");
- var to= model.getValue("/root/main/data/valitodd");
- var is_valid_duration = fValidateDuration(from, to);
- var mode_detail = model.getValue("/root/main/modedetail");
- var isvalid_to = isValidDateTime(to, "YYYYMMDD");
- if(!isvalid_to){
- messageBox("유효종료일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- if(!is_valid_duration){
- messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
- if(present_valitodd!=""){
- if(from<=present_valitodd){
- messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- }else{
- var current_date = new Date();
- var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
- if(from<min_valifromdd){
- messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- }
- }else if(mode_detail=="update"){
- var mode_detail_status = model.getValue("/root/main/modedetailstatus");
- if(mode_detail_status=="present"){
- var from = model.getValue("/root/main/data/valifromdd");
- var to= model.getValue("/root/main/data/valitodd");
- var isvalid_to = isValidDateTime(to, "YYYYMMDD");
- if(!isvalid_to){
- messageBox("현재이력의 유효종료일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- var is_valid_duration = fValidateDuration(from, to);
- if(!is_valid_duration){
- messageBox("현재이력의 유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- var has_future = fHasDeptHistoryBundle("future");
- if(has_future){
- var future_valifromdd = grd_depthistorylist.valueMatrix(1, grd_depthistorylist.colRef("valifromdd"));
- if(to>=future_valifromdd){
- messageBox("현재이력의 유효종료일자는 미래이력의 유효시작일자보다 크거나 같을수 없습니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- }
- var current_date = new Date();
- min_valitodd = current_date.getDateFormat("YYYYMMDD");
- if(to<min_valitodd){
- messageBox("현재이력의 종료일자는 현재일자와 같거나 더 커야합니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- }else if(mode_detail_status=="future"){
- var from = model.getValue("/root/main/data/valifromdd");
- var to= model.getValue("/root/main/data/valitodd");
- var isvalid_to = isValidDateTime(to, "YYYYMMDD");
- if(!isvalid_to){
- messageBox("유효종료일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- var is_valid_duration = fValidateDuration(from, to);
- if(!is_valid_duration){
- messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
- if(present_valitodd!=""){
- if(from<=present_valitodd){
- messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- }else{
- var current_date = new Date();
- var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
- if(from<min_valifromdd){
- messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- }
- }else{
- messageBox("error => mode_detail('"+mode_detail+"'), mode_detail_status('"+mode_detail_status+"')인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
- return;
- }
- }else{
- messageBox("error => mode_detail이 ("+mode_detail+")인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- ]]>
- </script>
- </input>
- <caption id="caption14" class="cell_1" style="left:838px; top:273px; width:125px; height:23px; vertical-align:middle; ">입원진료부서명</caption>
- <input id="ipt_indepthngnm" ref="/root/main/data/indepthngnm" class="input_essential" navindex="6" maxlength="21" style="left:964px; top:273px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_indepthngnm.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 64) {
- messageBox("최대입력글자인 64byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption49" class="cell_1" style="left:838px; top:297px; width:125px; height:23px; vertical-align:middle; ">부서 한글약어</caption>
- <input id="ipt_depthngabbr" ref="/root/main/data/depthngabbr" class="input_essential" navindex="7" maxlength="21" style="left:964px; top:297px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_depthngabbr.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 64) {
- messageBox("최대입력글자인 64byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption69" class="cell_1" style="left:838px; top:321px; width:125px; height:23px; vertical-align:middle; ">부서 영문약어</caption>
- <input id="ipt_deptengabbr" ref="/root/main/data/deptengabbr" class="input_essential" navindex="8" imemode="disabled" maxlength="10" style="left:964px; top:321px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_deptengabbr.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 10) {
- messageBox("최대입력글자인 10byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption54" class="cell_1" style="left:838px; top:345px; width:125px; height:33px; vertical-align:middle; ">부서 위치</caption>
- <textarea id="tar_deptplce" ref="/root/main/data/deptplce" navindex="9" maxlength="21" style="left:964px; top:345px; width:228px; height:33px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = tar_deptplce.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 64) {
- messageBox("최대입력글자인 64byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </textarea>
- <caption id="caption68" class="cell_1" style="left:838px; top:379px; width:125px; height:23px; vertical-align:middle; ">근무지사용여부</caption>
- <select1 id="cmb_dutplceuseyn" ref="/root/main/data/dutplceuseyn" class="combo_essential" navindex="10" appearance="minimal" style="left:964px; top:379px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption65" class="cell_1" style="left:1015px; top:379px; width:125px; height:23px; vertical-align:middle; ">인터넷 예약구분</caption>
- <select1 id="cmb_inetrsrvyn" ref="/root/main/data/inetrsrvyn" class="combo_essential" navindex="11" appearance="minimal" style="left:1141px; top:379px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption57" class="cell_1" style="left:838px; top:403px; width:125px; height:23px; vertical-align:middle; ">다음 가실곳 여부</caption>
- <select1 id="cmb_nextplceyn" ref="/root/main/data/nextplceyn" class="combo_essential" navindex="12" appearance="minimal" style="left:964px; top:403px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption62" class="cell_1" style="left:1015px; top:403px; width:125px; height:23px; vertical-align:middle; ">다음 가실곳 우선순위</caption>
- <input id="ipt_nextplceprity" ref="/root/main/data/nextplceprity" class="input_essential" navindex="13" maxlength="4" format="999999-9999999" style="left:1141px; top:403px; width:50px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_nextplceprity.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 4) {
- messageBox("최대입력글자인 4byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption72" class="cell_1" style="left:838px; top:427px; width:125px; height:23px; vertical-align:middle; ">전화번호</caption>
- <input id="ipt_cntctel" ref="/root/main/data/cntctel" class="input_essential" navindex="14" maxlength="20" style="left:964px; top:427px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_cntctel.currentText;
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 20) {
- messageBox("최대입력글자인 20byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption46" class="cell_1" style="left:838px; top:451px; width:125px; height:23px; vertical-align:middle; ">청구 권한 부서</caption>
- <select1 id="cmb_reqauthdeptyn" ref="/root/main/data/reqauthdeptyn" class="combo_essential" navindex="15" appearance="minimal" style="left:964px; top:451px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption19" class="cell_1" style="left:1015px; top:451px; width:65px; height:23px; vertical-align:middle; ">상위부서</caption>
- <input id="ipt_supdeptcd" class="input_essential" navindex="13" style="left:1081px; top:451px; width:109px; height:19px; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*
- if(mode_detail=="create"){//추가시 상위부서를 지정하는 경우
- var from = model.getValue("/root/main/data/valifromdd");
- var to= model.getValue("/root/main/data/valitodd");
- var is_valid_duration = fValidateDuration(from, to);
- if(!is_valid_duration){
- alert("유효종료일자는 유효시작일자보다 커야합니다.");
- return;
- }
- var min_valifromdd = fGetMinValifromddFutureDeptHistory();
- if(min_valifromdd>from){
- alert("유효시작일자는 이전이력의 종료일자보다 커야 합니다.");
- return;
- }
- }else if(mode_detail=="update"){
- }else if(mode_detail=="delete"){
- }
- */
- ]]>
- </script>
- </input>
- <caption id="caption56" class="cell_1" style="left:838px; top:475px; width:125px; height:23px; vertical-align:middle; ">청구과 번호</caption>
- <select1 id="cmb_reqdeptno" ref="/root/main/data/reqdeptno" class="combo_essential" navindex="16" appearance="minimal" style="left:965px; top:475px; width:225px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqdeptnocode/P0322">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption55" class="cell_1" style="left:838px; top:499px; width:125px; height:23px; vertical-align:middle; ">청구분야</caption>
- <select1 id="cmb_reqfild" ref="/root/main/data/reqfild" class="combo_essential" navindex="17" appearance="minimal" style="left:964px; top:499px; width:226px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqfieldcode/P0291">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption45" class="cell_1" style="left:838px; top:523px; width:86px; height:23px; vertical-align:middle; ">진료사용여부</caption>
- <select1 id="cmb_orduseyn" ref="/root/main/data/orduseyn" class="combo_essential" navindex="18" appearance="minimal" style="left:925px; top:523px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var orduseyn = model.getValue("/root/main/data/orduseyn");
- if(orduseyn=="Y"){
- cmb_orddeptflag.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <caption id="caption15" class="cell_1" style="left:1006px; top:522px; width:94px; height:23px; vertical-align:middle; ">임상과출력순서</caption>
- <input id="ipt_clincdeptdispseq" ref="/root/main/data/clincdeptdispseq" class="input_essential" navindex="13" style="left:1101px; top:523px; width:90px; height:19px; "/>
- <caption id="caption61" class="cell_1" style="left:838px; top:547px; width:86px; height:23px; vertical-align:middle; ">진료부서구분</caption>
- <select1 id="cmb_orddeptflag" ref="/root/main/data/orddeptflag" class="combo_essential" navindex="19" appearance="minimal" style="left:925px; top:547px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>입원진료과</label>
- <value>D</value>
- </item>
- <item>
- <label>병동</label>
- <value>W</value>
- </item>
- <item>
- <label>Consult부서</label>
- <value>A</value>
- </item>
- <item>
- <label>기타</label>
- <value>X</value>
- </item>
- <item>
- <label>진료지원수행부서</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <caption id="caption25" class="cell_1" style="left:1021px; top:546px; width:84px; height:23px; vertical-align:middle; ">진료부서유형</caption>
- <select1 id="cmb_orddeptkind" ref="/root/main/data/orddeptkind" class="combo_essential" navindex="19" appearance="minimal" style="left:1106px; top:547px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>센터</label>
- <value>C</value>
- </item>
- <item>
- <label>일반부서</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:838px; top:571px; width:86px; height:23px; vertical-align:middle; ">진료분과구분</caption>
- <select1 id="cmb_ordclsdeptflag" ref="/root/main/data/ordclsdeptflag" class="combo_essential" navindex="19" appearance="minimal" style="left:925px; top:571px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>분과</label>
- <value>C</value>
- </item>
- <item>
- <label>대표과</label>
- <value>R</value>
- </item>
- <item>
- <label>간호외래</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="caption9" class="cell_1" style="left:1006px; top:570px; width:94px; height:23px; vertical-align:middle; ">근태 사용여부</caption>
- <select1 id="cmb_dgenuseyn" ref="/root/main/data/dgenuseyn" class="combo_essential" navindex="20" appearance="minimal" style="left:1102px; top:571px; width:88px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption7" class="cell_1" style="left:837px; top:595px; width:128px; height:23px; vertical-align:middle; ">보험사용여부</caption>
- <select1 id="cmb_insuuseyn" ref="/root/main/data/insuuseyn" class="combo_essential" navindex="21" appearance="minimal" style="left:966px; top:596px; width:221px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/insuuseyn/Z0015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption71" class="cell_1" style="left:838px; top:619px; width:125px; height:23px; vertical-align:middle; ">기획 사용여부</caption>
- <select1 id="cmb_planuseyn" ref="/root/main/data/planuseyn" class="combo_essential" navindex="22" appearance="minimal" style="left:964px; top:620px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption48" class="cell_1" style="left:1015px; top:619px; width:125px; height:23px; vertical-align:middle; ">구매 사용여부</caption>
- <select1 id="cmb_purcuseyn" ref="/root/main/data/purcuseyn" class="combo_essential" navindex="23" appearance="minimal" style="left:1141px; top:620px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption44" class="cell_1" style="left:838px; top:643px; width:125px; height:23px; vertical-align:middle; ">간호사용여부</caption>
- <select1 id="cmb_careuseyn" ref="/root/main/data/careuseyn" class="combo_essential" navindex="24" appearance="minimal" style="left:964px; top:644px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption36" class="cell_1" style="left:1015px; top:643px; width:125px; height:23px; vertical-align:middle; ">수납 사용여부</caption>
- <select1 id="cmb_rcptuseyn" ref="/root/main/data/rcptuseyn" class="combo_essential" navindex="25" appearance="minimal" style="left:1141px; top:644px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption40" class="cell_1" style="left:838px; top:667px; width:125px; height:23px; vertical-align:middle; ">의료정보 사용여부</caption>
- <select1 id="cmb_healcareinfouseyn" ref="/root/main/data/healcareinfouseyn" class="combo_essential" navindex="26" appearance="minimal" style="left:964px; top:668px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption43" class="cell_1" style="left:1015px; top:667px; width:125px; height:23px; vertical-align:middle; ">인사 사용여부</caption>
- <select1 id="cmb_psnworkuseyn" ref="/root/main/data/psnworkuseyn" class="combo_essential" navindex="27" appearance="minimal" style="left:1141px; top:668px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption70" class="cell_1" style="left:838px; top:691px; width:125px; height:23px; vertical-align:middle; ">재무 사용여부</caption>
- <select1 id="cmb_fnworkuseyn" ref="/root/main/data/fnworkuseyn" class="combo_essential" navindex="28" appearance="minimal" style="left:964px; top:692px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption51" class="cell_1" style="left:1015px; top:691px; width:125px; height:23px; vertical-align:middle; ">총무 사용여부</caption>
- <select1 id="cmb_gafruseyn" ref="/root/main/data/gafruseyn" class="combo_essential" navindex="29" appearance="minimal" style="left:1141px; top:692px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption63" class="cell_1" style="left:838px; top:715px; width:125px; height:23px; vertical-align:middle; ">원무 사용여부</caption>
- <select1 id="cmb_pamuseyn" ref="/root/main/data/pamuseyn" class="combo_essential" navindex="30" appearance="minimal" style="left:964px; top:716px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="cell_1" style="left:1015px; top:715px; width:125px; height:23px; vertical-align:middle; ">그룹웨어 사용여부</caption>
- <select1 id="cmb_homecareuseyn" ref="/root/main/data/homecareuseyn" class="combo_essential" navindex="31" appearance="minimal" style="left:1141px; top:716px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/dept" scroll="autovscroll" caption="색상^행상태^진료과유형^진료분과구분^입원진료과명^외래진료부서명^상위 부서명^부서명(MIS사용)^부서코드^부서 영문명^부서 한문명^부서위치^부서 영문약어^부서 한글약어^청구분야^진료부서구분^임상과출력순서^청구부서번호^청구세부진료과^다음 가실곳 여부^다음 가실곳 우선순위^인터넷 예약구분^전화번호^근무지부서여부^청구권한부서^기획부서여부^기획상위부서^기획부서 출력순서^진료부서여부^진료상위부서^진료부서 출력순서^인사부서 여부^인사 상위부서^인사부서 출력순서^구매부서 사용여부^구매 상위부서^구매부서 출력순서^재무부서 사용여부^재무 상위부서^재무 출력순서^간호 사용여부^간호 상위부서^간호 출력순서^총무 사용여부^총무 상위부서^총무 출력순서^수납 사용여부^수납 상위부서^수납 출력순서^원무 사용여부^원무 상위부서^원무 출력순서^의료정보 사용여부^의료정보 상위부서^의료정보 출력순서^보험 사용여부^보험 상위부서^보험 출력순서^근태 사용여부^근태 상위부서^근태 출력순서^그룹웨어사용여부^그룹웨어상위부서코드^그룹웨어출력순서^기관상위부서코드^기관출력순서^기관코드^유효 시작일자^유효 종료일자^레벨^현재사용여부" colsep="▦" colwidth="100, 47, 100, 100, 100, 100, 300, 300, 127, 120, 100, 100, 100, 100, 100, 100, 100, 124, 100, 100, 100, 100, 121, 100, 100, 100, 100, 100, 100, 111, 100, 100, 113, 100, 100, 105, 111, 100, 107, 108, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 106, 107, 107, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="▩" style="left:410px; top:105px; width:398px; height:435px; border-color:#808080; ">
- <col ref="color" visibility="hidden"/>
- <col ref="rowstatus" visibility="hidden"/>
- <col ref="orddeptkind" visibility="hidden"/>
- <col ref="ordclsdeptflag" visibility="hidden"/>
- <col ref="indepthngnm" visibility="hidden"/>
- <col ref="depthngnm" visibility="hidden"/>
- <col ref="supdeptnm" visibility="hidden"/>
- <col ref="inorddeptnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptengnm" visibility="hidden"/>
- <col ref="deptchinm" visibility="hidden" style="left:1314px; top:23px; width:100px; height:23px; "/>
- <col ref="deptplce" visibility="hidden"/>
- <col ref="deptengabbr" visibility="hidden"/>
- <col ref="depthngabbr" visibility="hidden"/>
- <col ref="reqfild" visibility="hidden"/>
- <col ref="orddeptflag" visibility="hidden"/>
- <col ref="clincdeptdispseq" visibility="hidden"/>
- <col ref="reqdeptno" visibility="hidden"/>
- <col ref="nextplceyn" visibility="hidden"/>
- <col ref="nextplceprity" visibility="hidden"/>
- <col ref="inetrsrvyn" visibility="hidden"/>
- <col ref="cntctel" visibility="hidden"/>
- <col ref="dutplceuseyn" visibility="hidden"/>
- <col ref="reqauthdeptyn" visibility="hidden"/>
- <col ref="planuseyn" visibility="hidden"/>
- <col ref="plansupdeptcd" visibility="hidden"/>
- <col ref="plandispseq" visibility="hidden"/>
- <col ref="orduseyn" visibility="hidden"/>
- <col ref="ordsupdeptcd" visibility="hidden"/>
- <col ref="orddispseq" visibility="hidden"/>
- <col ref="psnworkuseyn" visibility="hidden"/>
- <col ref="psnworksupdeptcd" visibility="hidden"/>
- <col ref="psnworkdispseq" visibility="hidden"/>
- <col ref="purcuseyn" visibility="hidden"/>
- <col ref="purcsupdeptcd" visibility="hidden"/>
- <col ref="purcdispseq" visibility="hidden"/>
- <col ref="fnworkuseyn" visibility="hidden"/>
- <col ref="fnworksupdeptcd" visibility="hidden"/>
- <col ref="fnworkdispseq" visibility="hidden"/>
- <col ref="careuseyn" visibility="hidden"/>
- <col ref="caresupdeptcd" visibility="hidden"/>
- <col ref="caredispseq" visibility="hidden"/>
- <col ref="gafruseyn" visibility="hidden"/>
- <col ref="gafrsupdeptcd" visibility="hidden"/>
- <col ref="gafrdispseq" visibility="hidden"/>
- <col ref="rcptuseyn" visibility="hidden"/>
- <col ref="rcptsupdeptcd" visibility="hidden"/>
- <col ref="rcptdispseq" visibility="hidden"/>
- <col ref="pamuseyn" visibility="hidden"/>
- <col ref="pamsupdeptcd" visibility="hidden"/>
- <col ref="pamdispseq" visibility="hidden"/>
- <col ref="healcareinfouseyn" visibility="hidden"/>
- <col ref="healcareinfosupdeptcd" visibility="hidden"/>
- <col ref="healcareinfodispseq" visibility="hidden"/>
- <col ref="insuuseyn" visibility="hidden"/>
- <col ref="insusupdeptcd" visibility="hidden"/>
- <col ref="insudispseq" visibility="hidden"/>
- <col ref="dgenuseyn" visibility="hidden"/>
- <col ref="dgensupdeptcd" visibility="hidden"/>
- <col ref="dgendispseq" visibility="hidden"/>
- <col ref="homecareuseyn" visibility="hidden"/>
- <col ref="homecaresupdeptcd" visibility="hidden"/>
- <col ref="homecaredispseq" visibility="hidden"/>
- <col ref="instsupdeptcd" visibility="hidden"/>
- <col ref="instdispseq" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="valifromdd" visibility="hidden"/>
- <col ref="valitodd" visibility="hidden"/>
- <col ref="level" visibility="hidden"/>
- <col ref="iscurrent" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail=="reorg"){
- messageBox("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력을 선택", "E001");
- return;
- }
- if( !grd_deptlist.iscell(event.target)){
- return;
- }
- var row = grd_deptlist.row;
- var color_status = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("color"));
- fClearDeptHistory();
- model.refresh();
-
- if(color_status=="#dec6a4"){//임시인 경우
-
- model.setValue("/root/main/label/deptinfo", "부서정보추가");
- grd_depthistorylist.addItem();
- var add_offset = 1;
- fDept2DeptHistory(grd_deptlist.row,add_offset);
-
- }else{//임시가 아닌경우
-
- var instcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("instcd"));
- var deptcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("deptcd"));
- model.makeValue("/root/send/data/instcd", instcd);
- model.makeValue("/root/send/data/deptcd", deptcd);
- submit("TRZSD00110");
-
- for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
- var iscurrent = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("iscurrent"));
- if(iscurrent=='Y'){//기관에서 현재사용중인부서
- grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
- grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#ffffff";
- }else if(iscurrent=='F'){
- grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
- grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#fcd2c1";
- }else if(iscurrent=='P'){
- grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
- grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#b9e5fb";
- }
- }
-
- var history_target_deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
- var history_target_valifromdd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("valifromdd"));
-
- for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
- var history_deptcd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("deptcd"));
- var history_valifromdd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("valifromdd"));
- if(history_target_deptcd==history_deptcd && history_target_valifromdd==history_valifromdd){
- grd_depthistorylist.row = i;
- break;
- }
- }
-
- }
- fInitMainDataControls(false);
- fHistoryGrid2Main();
-
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기")
- model.refresh();
- fInitMainDataControls(true);
- ]]>
- </script>
- </datagrid>
- <img id="img_mv_left" class="icon_left" style="left:382px; top:305px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- var row = grd_deptlist.row;
- var status = grd_deptlist.rowStatus(row);
- var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
- if( status == 1 ){//입력상태인 부서만 삭제할수 있다.
- var has_child = fFindGridTreeItemHasChild(grd_deptlist, row, "level");
- if(!has_child){
- grd_deptlist.deleterow(row, false); //행삭제
- var standard = model.getValue("/root/main/search/authority");
- var display_cols = standard.substring(0, standard.indexOf("supdeptcd")) + "dispseq"; //기준이 어떤상위부서인지 찾아보고, 해당 출력순서 행의 이름을 얻어온다.
- var parents = fGetParents(grd_deptlist, row, standard);
- fReorgSequenceFromBizDeptGrid(grd_deptlist, parents, standard, display_cols);//부서정보그리드, 상위부서코드, 기준상위부서라벨, 기준출력순서라벨으로 해당상위부서 하위의 부서순서를 재정렬한다.
- setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));//삭제한후에 그리드의 아웃라인을 다시 만든다.
- var class_dept_index = fFindGridItem(grd_clsdeptlist, grd_clsdeptlist.colRef("deptcd"), deptcd);
- var standard = model.getValue("/root/main/search/authority");
- grd_clsdeptlist.valueMatrix(class_dept_index, grd_clsdeptlist.colRef(standard)) = "";
- grd_clsdeptlist.valueMatrix(class_dept_index, grd_clsdeptlist.colRef("useyn")) = "false";
- setTreeItem( grd_clsdeptlist, grd_clsdeptlist.colRef("level"), grd_clsdeptlist.colRef("deptnm"));
- fInitMainData();
- fClearDeptHistory();
- model.setValue("/root/main/modedetail", "reorg");
- model.setValue("/root/main/modedetailstatus", "");
- model.refresh();
- fInitMainDataControls(true);
- grd_clsdeptlist.row = class_dept_index;
- grd_clsdeptlist.topRow = class_dept_index;
-
- }else{
- messageBox("부서코드 : "+deptcd+"는 하위부서코드를 포함하므로 삭제할수 없습니다.", "C");
- return;
- }
- }
-
- ]]>
- </script>
- </img>
- <img id="img_mv_up" class="icon_top" style="left:810px; top:275px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*임시부서가 있는지 확인*/
-
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail!="init"&&modedetail!="reorg"){
- if(modedetail=="update"){
- var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
- if(nextstep==6){
- messageBox("출력상태 변경작업을 진행합니다.", "I");
- }else{
- return;
- }
- }
- fInitialize();
- }
-
- var dn_row = grd_deptlist.row;//부서정보 그리드에서 현재 선택된 부서
- var deptcd = grd_deptlist.valueMatrix(dn_row, grd_deptlist.colRef("deptcd")); //부서정보 그리드에서 현재 선택된 부서의 부서코드
- var up_row = fFindUpSameLevelRow(grd_deptlist);//상위에 같은레벨의 부서코드가 있는지 확인
- if( up_row == -1 ){
- messageBox("상위로 이동할수", "I004");
- return;
- }else{
- var last_up_row = fCacheDeptBundle(grd_deptlist, up_row, "/root/main/deptlist/dept", "/root/main/temp/updept");//위에있는 같은레벨의 부서를 인스턴스 캐쉬에 저장한다.
- var last_dn_row = fCacheDeptBundle(grd_deptlist, dn_row, "/root/main/deptlist/dept", "/root/main/temp/dndept");//선택된부서와 같은레벨의 부서를 인스턴스 캐쉬에 저장한다.
-
- var parents_cols = model.getValue("/root/main/search/authority");//현재 설정된 부모부서코드라벨을 가져온다.
- var parents = grd_deptlist.valueMatrix(dn_row, grd_deptlist.colRef(parents_cols));
- var dispseq_cols = parents_cols.substring(0, parents_cols.indexOf("supdeptcd")) + "dispseq";
-
- fCache2Grid("/root/main/temp/updept", last_dn_row);//위에있는 같은레벨의 부서('캐쉬에저장되어있음')를 선택된부서와 같은레벨의 부서의 마지막 위치부터 붙인다.
- var updept_list = instance1.selectNodes("/root/main/temp/updept");//위에있는 같은레벨의 부서의 수를 알아내기위해 캐쉬에 저장되어있는 정보를 가져온다.
- for(var i=0; i<updept_list.length; i++){//위에있는 같은레벨의 부서의 수만큼 시작위치부터 삭제한다.
- grd_deptlist.deleterow(up_row, false);
- }
-
- fReorgSequenceFromBizDeptGrid(grd_deptlist, parents, parents_cols, dispseq_cols);
- fRefreshGridRowStatus(grd_deptlist, "rowstatus");
- model.setValue("/root/main/modedetail", "reorg");
- model.setValue("/root/main/modedetailstatus", "");
- grd_deptlist.refresh();
- setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
- }
-
- ]]>
- </script>
- </img>
- <img id="img_mv_down" class="icon_bottom" style="left:810px; top:305px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail!="init"&&modedetail!="reorg"){
- if(modedetail=="create"){
- var nextstep = messageBox("부서이력 추가작업중이었습니다. 추가작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
- if(nextstep==6){
- messageBox("출력상태 변경작업을 진행합니다.", "I");
- }else{
- return;
- }
- }else if(modedetail=="update"){
- var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
- if(nextstep==6){
- messageBox("출력상태 변경작업을 진행합니다.", "I");
- }else{
- return;
- }
- }
- fInitialize();
- }
-
- var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));//선택된 부서의 부서코드
- var dn_row = fFindDownSameLevelRow(grd_deptlist);//선택된부서 아래에 있는 같은레벨의 부서위치
- //alert("dn_row : "+dn_row);
- if( dn_row == -1 ){
- messageBox("하위로 이동할수", "I004");
- }else{
- var up_row = grd_deptlist.row;//위에있는부서위치('선택된부서')
- var parents_cols = model.getValue("/root/main/search/authority");
- var parents = grd_deptlist.valueMatrix(grd_deptlist.row,grd_deptlist.colRef(parents_cols));
- var dispseq_cols = parents_cols.substring(0, parents_cols.indexOf("supdeptcd")) + "dispseq";
-
- fCacheDeptBundle(grd_deptlist, up_row, "/root/main/deptlist/dept", "/root/main/temp/updept");//위에있는부서('선택된부서')와 그하위에 있는 부서를 캐쉬에 보관
- var last_dn_row = fCacheDeptBundle(grd_deptlist, dn_row, "/root/main/deptlist/dept", "/root/main/temp/dndept");//아래에있는부서와 그하위에 있는 부서를 캐쉬에 보관
- fCache2Grid("/root/main/temp/updept", last_dn_row);//위에있는부서('선택된부서')와 그하위에 있는부서들을 아래에있는부서와 그하위에 있는 부서다음에 붙인다.
- var updept_list = instance1.selectNodes( "/root/main/temp/updept");//캐쉬에 저장된 위에있는부서의 수를 구하기위해 목록을 가져온다.
- for(var i=0; i<updept_list.length; i++){//위에서부터 길이만큼 삭제한다.
- grd_deptlist.deleterow(up_row, false);
- }
-
- fReorgSequenceFromBizDeptGrid(grd_deptlist, parents, parents_cols, dispseq_cols);
- fRefreshGridRowStatus(grd_deptlist, "rowstatus");
- setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
- fFindItem(grd_deptlist, deptcd, "deptcd");
- model.setValue("/root/main/modedetail", "reorg");
- model.setValue("/root/main/modedetailstatus", "");
- model.refresh();
-
- }
-
- ]]>
- </script>
- </img>
- <caption id="caption4" ref="/root/main/label/right" class="tit_2" style="left:405px; top:85px; width:115px; height:13px; ">업무부서마스터</caption>
- <caption id="caption8" ref="/root/main/label/deptinfo" class="tit_2" style="left:840px; top:85px; width:213px; height:13px; "/>
- <datagrid id="grd_depthistorylist" nodeset="/root/main/depthistorylist/depthistory" caption="색상^유효시작일자^유효종료일자^외래진료부서명^입원진료부서명^부서 한글명(MIS사용)^부서코드^부서 영문명^부서 한문명^부서위치^부서 영문약어^부서 한글약어^청구분야^진료부서구분^진료부서유형^진료분과구분^청구부서번호^다음 가실곳 여부^다음가실곳 우선순위^인터넷 예약구분^전화번호^근무지부서여부^청구권한부서^기획부서여부^기획상위부서^기획부서 출력순서^진료부서여부^진료상위부서^진료부서 출력순서^임상과출력순서^인사부서 여부^인사 상위부서^인사부서 출력순서^구매부서 사용여부^구매 상위부서^구매부서 출력순서^재무부서 사용여부^재무 상위부서^재무 출력순서^간호 사용여부^간호 상위부서^간호 출력순서^총무 사용여부^총무 상위부서^총무 출력순서^수납 사용여부^수납 상위부서^수납 출력순서^원무 사용여부^원무 상위부서^원무 출력순서^의료정보 사용여부^의료정보 상위부서^의료정보 출력순서^보험 사용여부^보험 상위부서^보험 출력순서^근태 사용여부^근태 상위부서^근태 출력순서^그룹웨어사용여부^그룹웨어상위부서코드^그룹웨어출력순서^기관상위부서코드^기관출력순서^기관코드^현재사용여부" colsep="▦" colwidth="100, 100, 100, 100, 100, 300, 127, 120, 100, 100, 100, 100, 100, 100, 100, 100, 124, 100, 120, 100, 121, 100, 100, 100, 100, 104, 100, 111, 109, 100, 100, 113, 107, 107, 105, 111, 110, 107, 108, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 110, 114, 106, 107, 107, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="▩" style="left:0px; top:595px; width:805px; height:140px; border-color:#808080; ">
- <col ref="color" visibility="hidden" style="left:20px; top:23px; width:100px; height:23px; "/>
- <col ref="valifromdd"/>
- <col ref="valitodd"/>
- <col ref="depthngnm"/>
- <col ref="indepthngnm"/>
- <col ref="inorddeptnm"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptengnm"/>
- <col ref="deptchinm"/>
- <col ref="deptplce"/>
- <col ref="deptengabbr"/>
- <col ref="depthngabbr"/>
- <col ref="reqfild"/>
- <col ref="orddeptflag" type="combo">
- <choices>
- <item>
- <label>입원진료과</label>
- <value>D</value>
- </item>
- <item>
- <label>병동</label>
- <value>W</value>
- </item>
- <item>
- <label>진료지원수행부서</label>
- <value>E</value>
- </item>
- <item>
- <label>Consult부서</label>
- <value>A</value>
- </item>
- <item>
- <label>기타부서</label>
- <value>X</value>
- </item>
- </choices>
- </col>
- <col ref="orddeptkind" type="combo">
- <choices>
- <item>
- <label>센터</label>
- <value>C</value>
- </item>
- <item>
- <label>일반부서</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="ordclsdeptflag" type="combo">
- <choices>
- <item>
- <label>대표과</label>
- <value>R</value>
- </item>
- <item>
- <label>분과</label>
- <value>C</value>
- </item>
- <item>
- <label>간호외래</label>
- <value>A</value>
- </item>
- </choices>
- </col>
- <col ref="reqdeptno" type="combo">
- <choices>
- <itemset nodeset="/root/init/reqdeptnocode/P0322">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="nextplceyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="nextplceprity"/>
- <col ref="inetrsrvyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="cntctel"/>
- <col ref="dutplceuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="reqauthdeptyn"/>
- <col ref="planuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="plansupdeptcd" visibility="hidden"/>
- <col ref="plandispseq" visibility="hidden"/>
- <col ref="orduseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="ordsupdeptcd" visibility="hidden"/>
- <col ref="orddispseq"/>
- <col ref="clincdeptdispseq"/>
- <col ref="psnworkuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="psnworksupdeptcd" visibility="hidden"/>
- <col ref="psnworkdispseq" visibility="hidden"/>
- <col ref="purcuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="purcsupdeptcd" visibility="hidden"/>
- <col ref="purcdispseq" visibility="hidden"/>
- <col ref="fnworkuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="fnworksupdeptcd" visibility="hidden"/>
- <col ref="fnworkdispseq" visibility="hidden"/>
- <col ref="careuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="caresupdeptcd" visibility="hidden"/>
- <col ref="caredispseq" visibility="hidden"/>
- <col ref="gafruseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="gafrsupdeptcd" visibility="hidden"/>
- <col ref="gafrdispseq" visibility="hidden"/>
- <col ref="rcptuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="rcptsupdeptcd" visibility="hidden"/>
- <col ref="rcptdispseq" visibility="hidden"/>
- <col ref="pamuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="pamsupdeptcd" visibility="hidden"/>
- <col ref="pamdispseq" visibility="hidden"/>
- <col ref="healcareinfouseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="healcareinfosupdeptcd" visibility="hidden"/>
- <col ref="healcareinfodispseq" visibility="hidden"/>
- <col ref="insuuseyn" type="combo">
- <choices>
- <itemset nodeset="/root/init/insuuseyn/Z0015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="insusupdeptcd" visibility="hidden"/>
- <col ref="insudispseq" visibility="hidden"/>
- <col ref="dgenuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="dgensupdeptcd" visibility="hidden"/>
- <col ref="dgendispseq" visibility="hidden"/>
- <col ref="homecareuseyn" type="combo">
- <choices>
- <item>
- <label>사용함</label>
- <value>Y</value>
- </item>
- <item>
- <label>사용안함</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="homecaresupdeptcd" visibility="hidden"/>
- <col ref="homecaredispseq" visibility="hidden"/>
- <col ref="instsupdeptcd" visibility="hidden"/>
- <col ref="instdispseq" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="iscurrent" type="combo">
- <choices>
- <item>
- <label>미래사용</label>
- <value>F</value>
- </item>
- <item>
- <label>현재사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>과거사용</label>
- <value>P</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if( !grd_depthistorylist.iscell(event.target) || grd_depthistorylist.row<1){
- return;
- }
- fInitMainDataControls(false);
- fHistoryGrid2Main();
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기");
- model.refresh();
- fInitMainDataControls(true);
- ]]>
- </script>
- </datagrid>
- <caption id="caption18" class="tit_2" style="left:0px; top:576px; width:75px; height:13px; ">부서이력</caption>
- <caption id="caption20" style="left:499px; top:560px; width:38px; height:14px; ">미사용</caption>
- <caption id="caption21" class="color_5" style="left:546px; top:559px; width:15px; height:15px; "/>
- <caption id="caption22" style="left:564px; top:560px; width:32px; height:14px; ">종료</caption>
- <caption id="caption35" class="color_1" style="left:611px; top:559px; width:15px; height:15px; "/>
- <caption id="caption23" style="left:629px; top:560px; width:32px; height:14px; ">미래</caption>
- <caption id="caption47" class="cell_2" style="left:403px; top:557px; width:70px; height:20px; ">범 례</caption>
- <caption id="caption37" class="color_8" style="left:676px; top:559px; width:15px; height:15px; background-color:#ffffff; border-style:solid; "/>
- <caption id="caption38" style="left:694px; top:560px; width:32px; height:14px; ">현재</caption>
- <caption id="caption24" class="color_9" style="left:481px; top:559px; width:15px; height:15px; "/>
- <caption id="caption13" class="color_8" style="left:741px; top:559px; width:15px; height:15px; "/>
- <caption id="caption26" style="left:759px; top:560px; width:32px; height:14px; ">임시</caption>
- <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:400px; top:552px; width:405px; height:30px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:590px; x2:805px; y2:590px; "/>
- <caption id="caption27" class="cell_1" style="left:838px; top:249px; width:125px; height:23px; vertical-align:middle; ">외래진료부서명</caption>
- <input id="ipt_depthngnm" ref="/root/main/data/depthngnm" class="input_essential" navindex="6" maxlength="21" style="left:964px; top:249px; width:228px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var strlen = 0;
- var str = ipt_depthngnm.currentText
- for (var i=0; i<str.length; i++) {
- strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
- if (strlen > 64) {
- messageBox("최대입력글자인 64byte를 ", "E003");
- strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
- break;
- }
- }
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/search/deptmaster/supdeptcd", "");
- model.removenode("/root/main/clsdeptlist");
- model.makeNode("/root/main/clsdeptlist");
- model.removenode("/root/main/deptlist");
- model.makeNode("/root/main/deptlist");
- model.setValue("/root/main/mode", "init");
- model.setValue("/root/main/modedetail", "init");
- model.setValue("/root/main/modedetailstatus", "none");
- fInitMainData();
- model.refresh();
- fInitMainDataControls(true);
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="34" focus.background-color="#99ccff" style="left:1067px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var mode = model.getValue("/root/main/mode");
- if(mode!="retrived"){
- messageBox("조회된 경우에만 저장 가능합니다.", "C");
- return;
- }
- /* 1. 정보창 작업에 대한 처리 */
- var mode_detail = model.getValue("/root/main/modedetail");
- if(mode_detail=="reorg"){
- model.removenode("/root/hidden/temp");
- var update_data = grd_deptlist.getUpdateData ('update');
- var insert_data = grd_deptlist.getUpdateData('insert');
- model.makeValue("/root/send/updatedeptstructure", update_data);
- model.makeValue("/root/send/insertdeptstructure", insert_data);
- var bizcd = fGetBizCD();
- model.makeValue("/root/send/bisiness", bizcd);
- model.makeNode("/root/hidden/temp");
- var success = submit("TXZSD00107");
-
- if(success){
- for(var i=grd_deptlist.fixedRows; i<grd_deptlist.rows; i++){
- grd_deptlist.rowStatus(i) = 0;
- grd_deptlist.valueMatrix(i, grd_deptlist.colRef("rowstatus")) = 0;
- }
- model.setValue("/root/main/mode", "retrived");
- model.setValue("/root/main/modedetail", "init");
- model.setValue("/root/main/modedetail", "none");
- model.refresh();
- var u_updated = model.getValue("/root/hidden/temp/updateresultmsg/updated");
- var i_updated = model.getValue("/root/hidden/temp/insertresultmsg/updated");
- messageBox(u_updated+"건의 부서이력이 다른위치로 이동 되었습니다.", "I");
- messageBox(i_updated+"건의 부서이력이 새로운 위치로 이동 되었습니다.", "I");
- }else{
- messageBox("위치이동, 출력순서변경에 실패하였습니다.", "C");
- }
- }else if(mode_detail=="update"){
- model.resetInstanceNode("/root/send/data");
- var standard = model.getValue("/root/main/search/authority");
-
- if("plansupdeptcd"==standard){
-
- cmb_planuseyn.disabled = false;
-
- var planuseyn = model.getValue("/root/main/data/planuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
-
- if(planuseyn==standarduseyn){
- messageBox("기획사용여부가 기존현재이력와 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "plan");
- model.makeValue("/root/send/data/standarduseyn", planuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
-
- }else if("ordsupdeptcd"==standard){
-
- cmb_orduseyn.disabled = false;
- cmb_orddeptflag.disabled = false;
-
- var orduseyn = model.getValue("/root/main/data/orduseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
-
- var orddeptflag = model.getValue("/root/main/data/orddeptflag");
- var standardflag = model.getValue("/root/main/prevdata/standardflag");
-
- if(orduseyn==standarduseyn&&orddeptflag==standardflag){
- messageBox("진료사용여부와 진료부서구분이 기존현재이력와 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "ord");
- model.makeValue("/root/send/data/standarduseyn", orduseyn);
- model.makeValue("/root/send/data/standardflag", orddeptflag);
- }
-
- }else if("psnworksupdeptcd"==standard){
- cmb_psnworkuseyn.disabled = false;
- var psnworkuseyn = model.getValue("/root/main/data/psnworkuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
-
- if(psnworkuseyn==standarduseyn){
- messageBox("인사사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "psnwork");
- model.makeValue("/root/send/data/standarduseyn", psnworkuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
-
- }else if("purcsupdeptcd"==standard){
- cmb_purcuseyn.disabled = false;
- var purcuseyn = model.getValue("/root/main/data/purcuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(purcuseyn==standarduseyn){
- messageBox("구매사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "purc");
- model.makeValue("/root/send/data/standarduseyn", purcuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("fnworksupdeptcd"==standard){
- cmb_fnworkuseyn.disabled = false;
- var fnworkuseyn = model.getValue("/root/main/data/fnworkuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(fnworkuseyn==standarduseyn){
- messageBox("재무사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "fnwork");
- model.makeValue("/root/send/data/standarduseyn", fnworkuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("caresupdeptcd"==standard){
- cmb_careuseyn.disabled = false;
- var careuseyn = model.getValue("/root/main/data/careuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(careuseyn==standarduseyn){
- messageBox("간호사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "care");
- model.makeValue("/root/send/data/standarduseyn", careuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("gafrsupdeptcd"==standard){
- cmb_gafruseyn.disabled = false;
- var gafruseyn = model.getValue("/root/main/data/gafruseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(gafruseyn==standarduseyn){
- messageBox("총무사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "gafr");
- model.makeValue("/root/send/data/standarduseyn", gafruseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("rcptsupdeptcd"==standard){
- cmb_rcptuseyn.disabled = false;
- var rcptuseyn = model.getValue("/root/main/data/rcptuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(rcptuseyn==standarduseyn){
- messageBox("수납사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "rcpt");
- model.makeValue("/root/send/data/standarduseyn", rcptuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("pamsupdeptcd"==standard){
- cmb_pamuseyn.disabled = false;
- var pamuseyn = model.getValue("/root/main/data/pamuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(pamuseyn==standarduseyn){
- messageBox("원무사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "pam");
- model.makeValue("/root/send/data/standarduseyn", pamuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("healcareinfosupdeptcd"==standard){
- cmb_healcareinfouseyn.disabled = false;
- var healcareinfouseyn = model.getValue("/root/main/data/healcareinfouseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(healcareinfouseyn==standarduseyn){
- messageBox("의료정보사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "healcareinfo");
- model.makeValue("/root/send/data/standarduseyn", healcareinfouseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("insusupdeptcd"==standard){
- cmb_insuuseyn.disabled = false;
- var insuuseyn = model.getValue("/root/main/data/insuuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(insuuseyn==standarduseyn){
- messageBox("보험사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "insu");
- model.makeValue("/root/send/data/standarduseyn", insuuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("dgensupdeptcd"==standard){
- cmb_dgenuseyn.disabled = false;
- var dgenuseyn = model.getValue("/root/main/data/dgenuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(dgenuseyn==standarduseyn){
- messageBox("근태사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "dgen");
- model.makeValue("/root/send/data/standarduseyn", dgenuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else if("homecaresupdeptcd"==standard){
- cmb_homecareuseyn.disabled = false;
- var homecareuseyn = model.getValue("/root/main/data/homecareuseyn");
- var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
- if(homecareuseyn==standarduseyn){
- messageBox("그룹웨어사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
- return;
- }else{
- model.makeValue("/root/send/data/standard", "homecare");
- model.makeValue("/root/send/data/standarduseyn", homecareuseyn);
- model.makeValue("/root/send/data/standardflag", "");
- }
- }else{
- messageBox("ERROR=>unexpected standard : "+standard, "C");
- }
- model.makeValue("/root/send/data/deptcd", model.getValue("/root/main/data/deptcd"));
- model.makeValue("/root/send/data/valifromdd", model.getValue("/root/main/data/valifromdd"));
- model.makeValue("/root/send/data/valitodd", model.getValue("/root/main/data/valitodd"));
- var success = submit("TXZSD00108");
- if(success){
- var deptcd = model.getValue("/root/main/data/deptcd");
- var selected_row = fFindDept(deptcd);
- var current_date = new Date();
- var current_date_string = current_date.getDateFormat("YYYYMMDD");
-
- grd_deptlist.valueMatrix(selected_row, grd_deptlist.colRef("valitodd")) = current_date_string;
- selected_row = fIndexOfDeptHistory("present");
- grd_depthistorylist.valueMatrix(selected_row, grd_depthistorylist.colRef("valitodd")) = current_date_string;
- var future_valifromdd = model.getValue("/root/hidden/temp/deptfuturehistory/valifromdd");
- var future_valitodd = model.getValue("/root/hidden/temp/deptfuturehistory/valitodd");
- model.setValue("/root/main/data/valifromdd", future_valifromdd);
- model.setValue("/root/main/data/valitodd", future_valitodd);
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기")
- model.refresh();
- fInitMainDataControls(true);
-
- grd_depthistorylist.insertrow(1, "before", true);
- fCopyDetail2DeptHistoryGrid(1);
- grd_depthistorylist.rowStatus(1) = 0;
- grd_depthistorylist.valueMatrix(1, grd_depthistorylist.colRef("color")) = "#fcd2c1";
- grd_depthistorylist.rowstyle( 1 , "data" , "background-color" ) = "#fcd2c1";
- grd_depthistorylist.valueMatrix(1, grd_depthistorylist.colRef("iscurrent")) = "F";
- messageBox("현재이력을 수정하였습니다.", "I");
- }else{
- messageBox("현재이력 수정에 실패하였습니다. 화면과 데이터페이스간에 동기가 맞지 않는 경우이니 조회를 다시한후 다시 시도해 보세요.\n계속 문제가 발생한다면 관리자에게 문의하세요.", "I");
- }
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|