1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>기관별부서정보관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <clsdeptlist>
- </clsdeptlist>
- <deptlist>
- </deptlist>
- <depthistorylist/>
- <prevddata>
- <standarduseyn/>
- <standardflag/>
- </prevddata>
- <data>
- <instcd/>
- <deptcd/>
- <valifromddkey/>
- <valitoddkey/>
- <valifromdd/>
- <depthngnm/>
- <inorddeptnm/>
- <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/>
- <indepthngnm/>
- </data>
- <search>
- <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>
- <dept/>
- </send>
- <hidden>
- </hidden>
- <init>
- <reqdeptnocode>
- <P0322>
- <cdid/>
- <cdnm/>
- </P0322>
- </reqdeptnocode>
- <reqfieldcode>
- <P0291>
- <cdid/>
- <cdnm/>
- </P0291>
- </reqfieldcode>
- <insuuseyn>
- <Z0015>
- <cdid/>
- <cdnm/>
- </Z0015>
- </insuuseyn>
- </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[
- model.setValue("/root/main/label/left", "부서마스터");
- model.setValue("/root/main/label/right", "부서목록");
- model.setValue("/root/main/search/authority", "instsupdeptcd");
- zbcfGetCodeList(
- new Array("P0322", "P0291", "Z0015"),
- new Array("/root/init/reqdeptnocode", "/root/init/reqfieldcode", "/root/init/insuuseyn")
- );
-
- var nodelist = instance1.selectNodes("/root/init/reqdeptnocode/P0322");
- for(i=0; i<nodelist.length; i++){
- var node = nodelist.item(i);
- var cdid_node = node.selectSingleNode("cdid");
- var cdnm_node = node.selectSingleNode("cdnm");
- var cdid_value = model.getValue(cdid_node);
- var cdnm_value = model.getValue(cdnm_node);
- if( cdid_value.length!=0 && cdnm_value.length!=0){
- cdnm_value = cdnm_value + "("+cdid_value+")";
- model.setValue(cdnm_node, cdnm_value);
- }
- }
-
- var nodelist = instance1.selectNodes("/root/init/reqfieldcode/P0291");
- for(i=0; i<nodelist.length; i++){
- var node = nodelist.item(i);
- var cdid_node = node.selectSingleNode("cdid");
- var cdnm_node = node.selectSingleNode("cdnm");
- var cdid_value = model.getValue(cdid_node);
- var cdnm_value = model.getValue(cdnm_node);
- if( cdid_value.length!=0 && cdnm_value.length!=0){
- cdnm_value = cdnm_value + "("+cdid_value+")";
- model.setValue(cdnm_node, cdnm_value);
- }
- }
-
- var nodelist = instance1.selectNodes("/root/init/insuuseyn/Z0015");
- for(i=0; i<nodelist.length; i++){
- var node = nodelist.item(i);
- var cdid_node = node.selectSingleNode("cdid");
- var cdnm_node = node.selectSingleNode("cdnm");
- var cdid_value = model.getValue(cdid_node);
- var cdnm_value = model.getValue(cdnm_node);
- if( cdid_value.length!=0 && cdnm_value.length!=0){
- cdnm_value = cdnm_value + "("+cdid_value+")";
- model.setValue(cdnm_node, cdnm_value);
- }
- }
- fInitMainData();
- model.setValue("/root/main/mode", "init");
- model.setValue("/root/main/modedetail", "init");
- model.setValue("/root/main/modedetailstatus", "none");
- model.refresh();
- fInitMainDataControls(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/dept" 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" 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/dept" replace="instance" resultref="/root/hidden"/>
- <submission id="TXZSD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dept" replace="instance" resultref="/root/hidden"/>
- <submission id="TXZSD00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dept" replace="instance" resultref="/root/hidden"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dept" 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/dept" replace="instance" resultref="/root/hidden/temp"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1201;2,87;1,837;" 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:35px; vertical-align:top; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line12" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_retrive" class="btn1_letter2" style="left:1120px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![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");
-
- model.setValue("/root/main/mode", "init");
- model.setValue("/root/main/modedetail", "init");
- model.setValue("/root/main/modedetailstatus", "none");
- fInitMainData();
- model.refresh();
- fInitMainDataControls(true);
-
- var success = submit("TRZSD00103"); /*부서 마스터와 조인하여 현재기관에서 사용하고 있는 부서와 현재 사용하고 있지 않은 과거의 부서를 취합하여 보여준다. 부서통합마스터 Grid*/
- if(success){
- grd_clsdeptlist.rebuild();
- setTree( grd_clsdeptlist, grd_clsdeptlist.colRef("level"), grd_clsdeptlist.colRef("deptnm"), true);
- var standard = model.getValue("/root/main/search/authority");
- model.setValue("/root/main/search/deptmaster/supdeptcd", "root");
- 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);//현재 사용중인것과 종료된것을 구분한다.
- 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.cellStyle("background-color", i, grd_clsdeptlist.colRef("deptnm") ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
- grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#fcd2c1";
- }else if(iscurrent=='P'){
- grd_clsdeptlist.cellStyle("background-color", i, grd_clsdeptlist.colRef("deptnm") ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
- grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#b9e5fb";
- }else{
- grd_clsdeptlist.cellStyle("background-color", i, grd_clsdeptlist.colRef("deptnm") ) = "#c8e67b";//현제 기관에서는 사용하지 않는 부서
- grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#c8e67b";
- }
- }
- 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.cellStyle("background-color", j, grd_deptlist.colRef("inorddeptnm") ) = "#fcd2c1";//현제 기관에서는 사용중이며, 종료된부서.
- grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#fcd2c1";
- }else if(iscurrent=="P"){
- grd_deptlist.cellStyle("background-color", j, grd_deptlist.colRef("inorddeptnm") ) = "#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");
- }
-
- }
- grd_clsdeptlist.hscroll.attribute("pos") = 300;
- grd_deptlist.hscroll.attribute("pos") = 300;
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:5px; top:10px; width:112px; height:17px; ">통합부서선택</caption>
- <img id="img2" class="icon_search" style="left:294px; top:10px; width:16px; height:16px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_clsdeptlist.rows<2){
- messageBox("조회된 아이템이 없습니다.", "C");
- return;
- }
- 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";
- zbcfOpenMasterDeptCodeList(searchcondition, searchterm, 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" inputtype="button" style="left:109px; top:9px; width:180px; 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>
- <img id="img1" class="icon_search" style="left:688px; top:10px; 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/depcd");
- var receivedeptcdpath = "/root/main/search/deptinfo/deptcd";
- var receivedeptnmpath = "/root/main/search/deptinfo/depthngnm";
- var instcd = getUserInfo("dutplceinstcd");
-
- //zbcfGetDeptCodeListFromTree(searchcondition, searchterm, instcd, supdeptcolumn, receivedeptcdpath, receivedeptnmpath);
- zbcfGetDeptListFromTree(searchcondition, searchterm, instcd, supdeptcolumn, receivedeptcdpath, receivedeptnmpath);
- var deptcd = model.getValue("/root/main/search/deptinfo/deptcd");
- var depthngnm = model.getValue("/root/main/search/deptinfo/depthngnm");
- if(deptcd!=""&&depthngnm!=""){
- var 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="caption16" class="search_name" style="left:405px; top:10px; width:107px; height:17px; ">기관부서선택</caption>
- <input id="input2" ref="/root/main/search/deptinfo/depthngnm" class="input_s_essential" navindex="32" inputtype="button" style="left:510px; top:9px; width:175px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var deptcd = model.getValue("/root/main/search/deptinfo/deptcd");
- var depthngnm = model.getValue("/root/main/search/deptinfo/depthngnm");
- if(deptcd!=""&&depthngnm!=""){
- var 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>
- </group>
- <caption id="caption12" ref="/root/main/label/left" class="tit_2" style="left:0px; top:60px; width:144px; height:14px; ">통합부서마스터</caption>
- <line id="line15" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
- <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:80px; width:371px; height:460px; 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="img4" class="icon_right" style="left:372px; 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 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));//기관상위부서코드가 등록되어 있다면 널이 아닌상태가 나오고 기관상위부서코드가 등록되지 않았다면 "" String인 상태인 결과가 나온다.
- 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 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);
- }
-
- var authority = model.getValue("/root/main/search/authority");
- var master_deptcd = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef("deptcd"));
- var master_deptnm = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef("deptnm"));
- var master_deptengnm = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef("deptengnm"));
- var master_deptchinm = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef("deptchinm"));
- var master_deptengabbr = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef("deptengabbr"));
- var master_depthngabbr = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef("depthngabbr"));
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("deptcd")) = master_deptcd;//부서코드는 기관관리자가
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("depthngnm")) = master_deptnm;
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("deptengnm")) = master_deptengnm;
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("deptchinm")) = master_deptchinm;
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("deptengabbr")) = master_deptengabbr;
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("depthngabbr")) = master_depthngabbr;
-
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("orddeptkind")) = "D";
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("ordclsdeptflag")) = "R";
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("inorddeptnm")) = master_deptnm;
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("indepthngnm")) = master_deptnm;
-
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("nextplceyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("inetrsrvyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("dutplceuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("reqauthdeptyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("planuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("orduseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("clincdeptdispseq")) = "";
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("psnworkuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("purcuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("fnworkuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("careuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("gafruseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("rcptuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("pamuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("healcareinfouseyn")) = 'N';
- //grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("insuuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("dgenuseyn")) = 'N';
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("homecareuseyn")) = 'N';
- var current_date = new Date();
- var next_date = current_date.getAddDate(1, "D");
- var next_date_string = next_date.getDateFormat("YYYYMMDD");
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("valifromdd")) = next_date_string;
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("valitodd")) = "99991231";
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("rowstatus")) = 1;//등록대상창에 'Insert'상태로 표시되야 하기 때문에 1로 설정한다.
- grd_deptlist.rowStatus(child_index) = 1;
-
- grd_deptlist.rowstyle(child_index , "data" , "background-color" ) = "#dec6a4";
- grd_deptlist.valueMatrix(child_index , grd_deptlist.colRef("color")) = "#dec6a4";
- grd_clsdeptlist.rowstyle( src_row , "data" , "background-color" ) = "#dec6a4";
- grd_clsdeptlist.valueMatrix( src_row , grd_clsdeptlist.colRef("color")) = "#dec6a4";
- grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef(standard)) = parents; //등록된 부서 마스터 자원에 부모부서의 코드를 적어준다.
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef(standard)) = parents; //등록된 부서 정보 자원에 부모부서의 코드를 적어준다.
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("level")) = child_level;//등록된 부서정보중 새로 추가한 부서의 레벨을 설정한다.
- var standard_dispseq = standard.substring(0, standard.indexOf("supdeptcd")) + "dispseq"; //등록된 부서정보중 새로 추가한 부서의 선택된 업무의 출력순서 컬럼 라벨을 얻어온다.
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef(standard_dispseq)) = child_seq; //등록된 부서정보중 새로 추가한 부서의 선택된 업무의 출력수서의 출력순서를 설정한다.
- //등록된 부서정보중 새로 추가한 부서의 상위부서이름을 설정한다.
- var parents_name;
- if( dest_row>0 ){
- parents_name = fGetParentsName(grd_deptlist, dest_row, "inorddeptnm");
- }else{
- parents_name = "";
- }
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("supdeptnm")) = parents_name;
- var dutplceinstcd = getUserInfo("dutplceinstcd");
- grd_deptlist.valueMatrix(child_index, grd_deptlist.colRef("instcd")) = dutplceinstcd;
- setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
- grd_deptlist.topRow = grd_deptlist.row;
- ]]>
- </script>
- </img>
- <group id="group_master" style="left:228px; top:54px; 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:54px; width:275px; height:19px; ">
- <button id="button2" 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="button3" 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_relocatedeptcd" class="btn2_letter4" style="left:141px; top:0px; width:64px; height:19px; ">
- <caption>위치이동</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var has_temporary = fHasTemporaryFromDeptGrid();
- if(has_temporary){
- messageBox("임시부서가 있는 상태에서 위치이동을 할수 없습니다.", "C");
- 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 mv_src = grd_deptlist.row;
- if(mv_src<1){
- messageBox("위치이동 대상 부서를", "C002") ;
- return;
- }else{
- model.setValue("/root/main/move/mvsrc", mv_src);
-
- 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);
- }
- fReorgSequence(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;
- fReorgSequence(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;
- grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef("rowstatus")) = 2;
- grd_deptlist.rowStatus(new Number(last_dest)+1) = 2;//상위부서가 변경되었기 때문에 update상태로 변경
- setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
- model.setValue("/root/main/modedetail", "reorg");
- fRefreshGridRowStatus(grd_deptlist, "rowstatus");
- }
- }
- ]]>
- </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");
- 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:1095px; top:54px; width:85px; height:20px; ">
- <button id="btn_create" class="btn2_letter2" style="left:0px; top:0px; width:60px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //부서추가시 출력순서 재구성, 출력순서재조정, 기관관리자권한이 아닌 사용자인 경우에 기능을 수행할수 없다.
- var modedetail = model.getValue("/root/main/modedetail");
- if(modedetail=="reorg"){
- messageBox("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력수정에 해당하는 '추가','수정' 작업을 수행할수 없습니다.", "C");
- return;
- }else if(!fGridSelected(grd_depthistorylist)){
- messageBox("부서이력목록을", "C002");
- return;
- }else if(fHasDeptHistoryBundle("future")){
- messageBox("미래이력이 존재합니다.", "C");
- return;
- }else{
- var deptcd = model.getValue("/root/main/data/deptcd");
- var deptcd_offset = fFindGridItem(grd_deptlist, grd_deptlist.colRef("deptcd"), deptcd);
- var authority = model.getValue("/root/main/search/authority");
- var supdeptcd = grd_deptlist.valueMatrix(deptcd_offset, grd_deptlist.colRef(authority));
- if(supdeptcd!=""){
- var parents_offset = fGetGridItemIndex(grd_deptlist, grd_deptlist.colRef("deptcd"), supdeptcd);
- var paretns_status = grd_deptlist.valueMatrix(parents_offset, grd_deptlist.colRef("color"));
- if(paretns_status=="#dec6a4"){
- messageBox("상위부서가 임시인경우 하위부서를 추가할수 없습니다.", "C");
- return;
- }
- }
- }
-
- //해당부서이력의 상태를 구한다.
-
- var has_present = fHasDeptHistoryBundle("present");
- //해당 부서의 이력이 임시이력만 있는 경우
- if(!has_present){
- fInitMainDataControls(false);
- fHistoryGrid2Main();
- var min_valifromdd = fGetMinValifromddFutureDeptHistory();
- var min_valifromdd_date = min_valifromdd.toDate("YYYYMMDD");
- var next_valifromdd_date = min_valifromdd_date.getAddDate(1, "D");
- var next_valifromdd = next_valifromdd_date.getDateFormat("YYYYMMDD");
- model.setValue("/root/main/data/valifromdd", next_valifromdd);
- model.setValue("/root/main/data/valitodd", "99991231");
- model.setValue("/root/main/modedetail", "create");
- model.setValue("/root/main/modedetailstatus", "temporary");
- model.setValue("/root/main/label/deptinfo", "부서정보추가");
- model.refresh();
- ipt_deptcd.disabled = true;
- ipt_supdeptcd.disabled = true;
- }else{
- var present_index = fIndexOfDeptHistory('present');
- var valitodd = grd_depthistorylist.valueMatrix(present_index, grd_depthistorylist.colRef("valitodd"));
- var currentdd = new Date().getDateFormat("YYYYMMDD");
-
- var interval = getDateInterval(currentdd, valitodd);
- if(interval>365){
- messageBox("미래이력의 유효한 시작일자가 현재일자와 1년이상 차이가 납니다. 현재이력을 먼저 종료한후 미래이력을 추가하십시오.", "C");
- return;
- }else{
- var min_valifromdd = valitodd.toDate("YYYYMMDD").getAddDate(1, "D").getDateFormat("YYYYMMDD");
- fInitMainDataControls(false);
- fHistoryGrid2Main();
- model.setValue("/root/main/data/valifromdd", min_valifromdd);
- model.setValue("/root/main/data/valitodd", "99991231");
- model.setValue("/root/main/modedetail", "create");
- model.setValue("/root/main/label/deptinfo", "부서정보추가");
- model.refresh();
- ipt_deptcd.disabled = true;
- ipt_supdeptcd.disabled = true;
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_update" class="btn2_letter2" style="left:42px; 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"){
- fHistoryGrid2Main();
- model.refresh();
- fInitMainDataControls(true);
- ipt_valitodd.disabled = false;
- 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"){
- fHistoryGrid2Main();
- model.refresh();
- fInitMainDataControls(false);
- ipt_deptcd.disabled = true;
- ipt_supdeptcd.disabled = true;
- model.setValue("/root/main/modedetail", "update");
- model.setValue("/root/main/modedetailstatus", "future");
- model.setValue("/root/main/label/deptinfo", "부서정보수정");
- model.refresh();
- }else if(history_status=="past"){
- messageBox("과거부서이력은 수정할수 없습니다.", "C");
- return;
- }else if(history_status=="temporary"){
- 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:959px; top:130px; width:228px; height:19px; "/>
- <input id="ipt_inorddeptnm" ref="/root/main/data/inorddeptnm" class="input_essential" navindex="4" maxlength="21" style="left:959px; top:154px; 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:959px; top:201px; 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_depthngabbr" ref="/root/main/data/depthngabbr" class="input_essential" navindex="7" maxlength="21" style="left:959px; top:273px; 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>
- <input id="ipt_deptengnm" ref="/root/main/data/deptengnm" class="input_essential" navindex="5" imemode="disabled" maxlength="60" style="left:959px; top:177px; 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_deptengabbr" ref="/root/main/data/deptengabbr" class="input_essential" navindex="8" imemode="disabled" maxlength="10" style="left:959px; top:297px; 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>
- <textarea id="tar_deptplce" ref="/root/main/data/deptplce" navindex="9" maxlength="21" style="left:959px; top:321px; width:228px; height:42px; ">
- <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>
- <input id="ipt_nextplceprity" ref="/root/main/data/nextplceprity" class="input_essential" navindex="13" maxlength="4" format="999999-9999999" style="left:1136px; top:388px; 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>
- <select1 id="cmb_inetrsrvyn" ref="/root/main/data/inetrsrvyn" class="combo_essential" navindex="11" appearance="minimal" style="left:1136px; top:364px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_reqauthdeptyn" ref="/root/main/data/reqauthdeptyn" class="combo_essential" navindex="15" appearance="minimal" style="left:959px; top:436px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_nextplceyn" ref="/root/main/data/nextplceyn" class="combo_essential" navindex="12" appearance="minimal" style="left:959px; top:388px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_dutplceuseyn" ref="/root/main/data/dutplceuseyn" class="combo_essential" navindex="10" appearance="minimal" style="left:959px; top:364px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_planuseyn" ref="/root/main/data/planuseyn" class="combo_essential" navindex="22" appearance="minimal" style="left:959px; top:605px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_valifromdd" ref="/root/main/data/valifromdd" class="input_search" navindex="1" inputtype="date" style="left:959px; top:82px; 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 valifromdd = model.getValue("/root/main/data/valifromdd").getTrim();
- var valitodd = model.getValue("/root/main/data/valitodd").getTrim();
- var valifromdd_key = model.getValue("/root/main/data/valifromddkey").getTrim();
- var valitodd_key = model.getValue("/root/main/data/valitoddkey").getTrim();
- if(valifromdd!=""&&valitodd!=""){
- var result = fInspectDate(valifromdd, valitodd, valifromdd_key, valitodd_key);
- if(!result){
- ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
- model.setFocus("ipt_valifromdd");
- return;
- }
- }
- ]]>
- </script>
- </input>
- <caption id="caption11" class="cell_1" style="left:833px; top:81px; width:125px; height:23px; vertical-align:middle; ">유효 시작일자</caption>
- <select1 id="cmb_orduseyn" ref="/root/main/data/orduseyn" class="combo_essential" navindex="18" appearance="minimal" style="left:920px; top:508px; 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>
- <select1 id="cmb_reqfild" ref="/root/main/data/reqfild" class="combo_essential" navindex="17" appearance="minimal" style="left:959px; top:484px; width:226px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqfieldcode/P0291">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_psnworkuseyn" ref="/root/main/data/psnworkuseyn" class="combo_essential" navindex="27" appearance="minimal" style="left:1136px; top:653px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_purcuseyn" ref="/root/main/data/purcuseyn" class="combo_essential" navindex="23" appearance="minimal" style="left:1136px; top:605px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_fnworkuseyn" ref="/root/main/data/fnworkuseyn" class="combo_essential" navindex="28" appearance="minimal" style="left:959px; top:677px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_careuseyn" ref="/root/main/data/careuseyn" class="combo_essential" navindex="24" appearance="minimal" style="left:959px; top:629px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_gafruseyn" ref="/root/main/data/gafruseyn" class="combo_essential" navindex="29" appearance="minimal" style="left:1136px; top:677px; 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:1010px; top:628px; 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:1136px; top:629px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_pamuseyn" ref="/root/main/data/pamuseyn" class="combo_essential" navindex="30" appearance="minimal" style="left:959px; top:701px; width:50px; height:19px; ">
- <choices>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_healcareinfouseyn" ref="/root/main/data/healcareinfouseyn" class="combo_essential" navindex="26" appearance="minimal" style="left:959px; top:653px; 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:833px; top:652px; width:125px; height:23px; vertical-align:middle; ">의료정보 사용여부</caption>
- <caption id="caption43" class="cell_1" style="left:1010px; top:652px; width:125px; height:23px; vertical-align:middle; ">인사 사용여부</caption>
- <caption id="caption44" class="cell_1" style="left:833px; top:628px; width:125px; height:23px; vertical-align:middle; ">간호사용여부</caption>
- <caption id="caption45" class="cell_1" style="left:833px; top:508px; width:86px; height:23px; vertical-align:middle; ">진료사용여부</caption>
- <caption id="caption46" class="cell_1" style="left:833px; top:436px; width:125px; height:23px; vertical-align:middle; ">청구 권한 부서</caption>
- <caption id="caption48" class="cell_1" style="left:1010px; top:604px; width:125px; height:23px; vertical-align:middle; ">구매 사용여부</caption>
- <caption id="caption49" class="cell_1" style="left:833px; top:273px; width:125px; height:23px; vertical-align:middle; ">부서 한글약어</caption>
- <caption id="caption51" class="cell_1" style="left:1010px; top:676px; width:125px; height:23px; vertical-align:middle; ">총무 사용여부</caption>
- <caption id="caption53" class="cell_1" style="left:833px; top:201px; width:125px; height:23px; vertical-align:middle; ">부서코드 한문명칭</caption>
- <caption id="caption54" class="cell_1" style="left:833px; top:321px; width:125px; height:42px; vertical-align:middle; ">부서 위치</caption>
- <caption id="caption55" class="cell_1" style="left:833px; top:484px; width:125px; height:23px; vertical-align:middle; ">청구분야</caption>
- <caption id="caption56" class="cell_1" style="left:833px; top:460px; width:125px; height:23px; vertical-align:middle; ">청구과 번호</caption>
- <caption id="caption57" class="cell_1" style="left:833px; top:388px; width:125px; height:23px; vertical-align:middle; ">다음 가실곳 여부</caption>
- <caption id="caption58" class="cell_1" style="left:833px; top:177px; width:125px; height:23px; vertical-align:middle; ">부서코드 영문명칭</caption>
- <caption id="caption59" class="cell_1" style="left:833px; top:129px; width:125px; height:23px; vertical-align:middle; ">부서코드</caption>
- <caption id="caption61" class="cell_1" style="left:833px; top:532px; width:86px; height:23px; vertical-align:middle; ">진료부서구분</caption>
- <caption id="caption62" class="cell_1" style="left:1010px; top:388px; width:125px; height:23px; vertical-align:middle; ">다음 가실곳 우선순위</caption>
- <caption id="caption63" class="cell_1" style="left:833px; top:700px; width:125px; height:23px; vertical-align:middle; ">원무 사용여부</caption>
- <caption id="caption65" class="cell_1" style="left:1010px; top:364px; width:125px; height:23px; vertical-align:middle; ">인터넷 예약구분</caption>
- <caption id="caption66" class="cell_1" style="left:833px; top:153px; width:125px; height:23px; vertical-align:middle; ">부서명 (MIS사용)</caption>
- <caption id="caption68" class="cell_1" style="left:833px; top:364px; width:125px; height:23px; vertical-align:middle; ">근무지사용여부</caption>
- <caption id="caption69" class="cell_1" style="left:833px; top:297px; width:125px; height:23px; vertical-align:middle; ">부서 영문약어</caption>
- <caption id="caption70" class="cell_1" style="left:833px; top:676px; width:125px; height:23px; vertical-align:middle; ">재무 사용여부</caption>
- <caption id="caption71" class="cell_1" style="left:833px; top:604px; width:125px; height:23px; vertical-align:middle; ">기획 사용여부</caption>
- <caption id="caption72" class="cell_1" style="left:833px; top:412px; 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:959px; top:412px; 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>
- <select1 id="cmb_orddeptflag" ref="/root/main/data/orddeptflag" class="combo_essential" navindex="19" appearance="minimal" style="left:920px; top:532px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>입원진료과(D)</label>
- <value>D</value>
- </item>
- <item>
- <label>병동(W)</label>
- <value>W</value>
- </item>
- <item>
- <label>Consult부서(A)</label>
- <value>A</value>
- </item>
- <item>
- <label>기타(X)</label>
- <value>X</value>
- </item>
- <item>
- <label>진료지원수행부서(E)</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_reqdeptno" ref="/root/main/data/reqdeptno" class="combo_essential" navindex="16" appearance="minimal" style="left:960px; top:460px; width:225px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/reqdeptnocode/P0322">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:833px; top:105px; 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:960px; top:106px; 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 valifromdd = model.getValue("/root/main/data/valifromdd").getTrim();
- var valifromdd_key = model.getValue("/root/main/data/valifromddkey").getTrim();
- var valitodd = model.getValue("/root/main/data/valitodd").getTrim();
- var valitodd_key = model.getValue("/root/main/data/valitoddkey").getTrim();
- if(valifromdd!=""&&valitodd!=""){
- var result = fInspectDate(valifromdd, valitodd, valifromdd_key, valitodd_key);
- if(!result){
- ipt_valitodd.value = ipt_valitodd.attribute("_value");
- model.setFocus("ipt_valitodd");
- return;
- }
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_homecareuseyn" ref="/root/main/data/homecareuseyn" class="combo_essential" navindex="31" appearance="minimal" style="left:1136px; top:701px; 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:1010px; top:700px; width:125px; height:23px; vertical-align:middle; ">그룹웨어 사용여부</caption>
- <caption id="caption7" class="cell_1" style="left:832px; top:580px; 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:961px; top:581px; width:221px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/insuuseyn/Z0015">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_dgenuseyn" ref="/root/main/data/dgenuseyn" class="combo_essential" navindex="20" appearance="minimal" style="left:1097px; top:556px; 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="caption9" class="cell_1" style="left:1001px; top:555px; width:94px; height:23px; vertical-align:middle; ">근태 사용여부</caption>
- <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/dept" scroll="autovscroll" caption="색상^행상태^진료과유형^진료분과구분^입원진료부서명^외래진료부서명^부서명(MIS사용)^상위 부서명^부서코드^부서 영문명^부서 한문명^부서위치^부서 영문약어^부서 한글약어^청구분야^진료부서구분^임상과출력순서^청구부서번호^청구세부진료과^다음 가실곳 여부^다음 가실곳 우선순위^인터넷 예약구분^전화번호^근무지부서여부^청구권한부서^기획부서여부^기획상위부서^기획부서 출력순서^진료부서여부^진료상위부서^진료부서 출력순서^인사부서 여부^인사 상위부서^인사부서 출력순서^구매부서 사용여부^구매 상위부서^구매부서 출력순서^재무부서 사용여부^재무 상위부서^재무 출력순서^간호 사용여부^간호 상위부서^간호 출력순서^총무 사용여부^총무 상위부서^총무 출력순서^수납 사용여부^수납 상위부서^수납 출력순서^원무 사용여부^원무 상위부서^원무 출력순서^의료정보 사용여부^의료정보 상위부서^의료정보 출력순서^보험 사용여부^보험 상위부서^보험 출력순서^근태 사용여부^근태 상위부서^근태 출력순서^그룹웨어사용여부^그룹웨어상위부서코드^그룹웨어출력순서^기관상위부서코드^기관출력순서^기관코드^유효 시작일자^유효 종료일자^레벨^현재사용여부" colsep="▦" colwidth="100, 47, 100, 100, 100, 100, 115, 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:399px; top:80px; width:406px; height:460px; 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="inorddeptnm"/>
- <col ref="supdeptnm" visibility="hidden"/>
- <col ref="deptcd" visibility="hidden"/>
- <col ref="deptengnm" visibility="hidden"/>
- <col ref="deptchinm" visibility="hidden"/>
- <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" style="left:4299px; top:23px; width:107px; height:23px; "/>
- <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("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력을 선택할수 없습니다.", "C");
- 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 deptcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("deptcd"));
- model.removenode("/root/send/data");
- 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="img5" class="icon_left" style="left:372px; 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); //행삭제
- //alert(grd_deptlist.colRef("level")+", "+grd_deptlist.colRef("depthngnm"))
- 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);
- fReorgSequence(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.rowstyle(class_dept_index , "data" , "background-color" ) = "#c8e67b";
- 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);
- }else{
- messageBox("부서코드 : "+deptcd+"는 하위부서코드를 포함하므로 삭제할수 없습니다.", "C");
- return;
- }
- }
- ]]>
- </script>
- </img>
- <img id="img6" class="icon_top" style="left:806px; top:275px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- /*임시부서가 있는지 확인*/
- var has_temporary = fHasTemporaryFromDeptGrid();
- if(has_temporary){
- messageBox("임시부서가 있는 상태에서 출력상태를 변경할수 없습니다.", "C");
- 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 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);
- }
- fReorgSequence(grd_deptlist, parents, parents_cols, dispseq_cols);
- 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="img8" class="icon_bottom" style="left:806px; top:305px; width:26px; height:19px; background-stretch:stretch; ">
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var has_temporary = fHasTemporaryFromDeptGrid();
- if(has_temporary){
- messageBox("임시부서가 있는 상태에서 출력상태를 변경할수 없습니다.", "C");
- 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 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);
- }
- fReorgSequence(grd_deptlist, parents, parents_cols, dispseq_cols);
- setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
- fRefreshGridRowStatus(grd_deptlist, "rowstatus");
- 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:60px; width:144px; height:14px; ">기관부서마스터</caption>
- <caption id="caption1" ref="/root/main/label/deptinfo" class="tit_2" style="left:840px; top:60px; width:213px; height:13px; "/>
- <datagrid id="grd_depthistorylist" nodeset="/root/main/depthistorylist/depthistory" caption="색상^유효시작일자^유효종료일자^부서명(MIS사용)^외래진료부서명^입원진료부서명^부서코드^부서 영문명^부서 한문명^부서위치^부서 영문약어^부서 한글약어^청구분야^진료부서구분^진료부서유형^진료분과구분^청구부서번호^다음 가실곳 여부^다음가실곳 우선순위^인터넷 예약구분^전화번호^근무지부서여부^청구권한부서^기획부서여부^기획상위부서^기획부서 출력순서^진료부서여부^진료상위부서^진료부서 출력순서^임상과출력순서^인사부서 여부^인사 상위부서^인사부서 출력순서^구매부서 사용여부^구매 상위부서^구매부서 출력순서^재무부서 사용여부^재무 상위부서^재무 출력순서^간호 사용여부^간호 상위부서^간호 출력순서^총무 사용여부^총무 상위부서^총무 출력순서^수납 사용여부^수납 상위부서^수납 출력순서^원무 사용여부^원무 상위부서^원무 출력순서^의료정보 사용여부^의료정보 상위부서^의료정보 출력순서^보험 사용여부^보험 상위부서^보험 출력순서^근태 사용여부^근태 상위부서^근태 출력순서^그룹웨어사용여부^그룹웨어상위부서코드^그룹웨어출력순서^기관상위부서코드^기관출력순서^기관코드^현재사용여부" colsep="▦" colwidth="100, 100, 100, 300, 100, 100, 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:580px; width:805px; height:150px; 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="inorddeptnm"/>
- <col ref="depthngnm"/>
- <col ref="indepthngnm"/>
- <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:561px; width:75px; height:13px; ">부서이력</caption>
- <input id="ipt_supdeptcd" class="input_essential" navindex="13" style="left:1076px; top:436px; 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="caption19" class="cell_1" style="left:1010px; top:436px; width:65px; height:23px; vertical-align:middle; ">상위부서</caption>
- <caption id="caption20" style="left:499px; top:550px; width:38px; height:14px; ">미사용</caption>
- <caption id="caption21" class="color_5" style="left:546px; top:549px; width:15px; height:15px; "/>
- <caption id="caption22" style="left:564px; top:550px; width:32px; height:14px; ">종료</caption>
- <caption id="caption35" class="color_1" style="left:611px; top:549px; width:15px; height:15px; "/>
- <caption id="caption23" style="left:629px; top:550px; width:32px; height:14px; ">미래</caption>
- <caption id="caption47" class="cell_2" style="left:403px; top:547px; width:70px; height:20px; ">범 례</caption>
- <caption id="caption37" class="color_8" style="left:676px; top:549px; width:15px; height:15px; background-color:#ffffff; border-style:solid; "/>
- <caption id="caption38" style="left:694px; top:550px; width:32px; height:14px; ">현재</caption>
- <caption id="caption24" class="color_9" style="left:481px; top:549px; width:15px; height:15px; "/>
- <caption id="caption8" class="color_8" style="left:741px; top:549px; width:15px; height:15px; "/>
- <caption id="caption13" style="left:759px; top:550px; width:32px; height:14px; ">임시</caption>
- <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:400px; top:542px; width:405px; height:30px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:575px; x2:805px; y2:575px; "/>
- <caption id="caption15" class="cell_1" style="left:1001px; top:507px; width:94px; height:23px; vertical-align:middle; ">임상과출력순서</caption>
- <input id="ipt_clincdeptdispseq" ref="/root/main/data/clincdeptdispseq" class="input_essential" navindex="13" style="left:1096px; top:508px; width:90px; height:19px; "/>
- <caption id="caption14" class="cell_1" style="left:833px; top:249px; 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:959px; top:249px; 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="caption17" class="cell_1" style="left:833px; top:556px; 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:920px; top:556px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>분과(C)</label>
- <value>C</value>
- </item>
- <item>
- <label>대표과(R)</label>
- <value>R</value>
- </item>
- <item>
- <label>간호외래(A)</label>
- <value>A</value>
- </item>
- </choices>
- </select1>
- <caption id="caption25" class="cell_1" style="left:1016px; top:531px; 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:1101px; top:532px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>센터(C)</label>
- <value>C</value>
- </item>
- <item>
- <label>일반부서(D)</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_depthngnm" ref="/root/main/data/depthngnm" class="input_essential" navindex="6" maxlength="21" style="left:959px; top:225px; 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>
- <caption id="caption2" class="cell_1" style="left:833px; top:225px; width:125px; height:23px; vertical-align:middle; ">외래진료부서명</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button6" 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.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");
-
- 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="button7" 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=="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){
- messageBox("유효종료일자는 유효시작일자보다 커야합니다.", "C");
- return;
- }
- var latestValitodd = fGetLatestDeptHistoryValitodd();
- if(latestValitodd>=from){
- messageBox("유효시작일자는 이전이력의 종료일자보다 커야 합니다.", "C");
- return;
- }
-
- var standard = model.getValue("/root/main/search/authority");
- var standard_supdeptcd = model.getValue("/root/main/data/"+standard);
- if(standard_supdeptcd==""){
- messageBox("상위부서를 지정하십시오", "C");
- model.setFocus(ipt_supdeptcd);
- return;
- }
-
- var standard_dispseq_label = standard.substring(0, standard.indexOf("supdeptcd")) + "dispseq";
- var standard_dispseq = model.getValue("/root/main/data/"+standard_dispseq_label);
- if(standard_supdeptcd==""){
- messgeBox("상위부서출력순서를 지정하십시오.", "C");
- return;
- }
- fCopyDetail2Send();
- var success = submit("TXZSD00104");
- if(success){
- var has_temporary = fHasDeptHistoryBundle("temporary");
- if(has_temporary){//임시에서 추가되는 부서인 경우
- var deptcd = model.getValue("/root/main/data/deptcd");
- var selected_row = fFindGridItem(grd_deptlist, grd_deptlist.colRef("deptcd"), deptcd);
- fCopyDetail2DeptGrid(selected_row);//부서정보창의 저장된 내용과 부서그리드의 내용을 동기화 시킨다.
-
- var current_date = new Date();
- var current_date_string = current_date.getDateFormat("YYYYMMDD");
- var valifromdd = model.getValue("/root/main/data/valifromdd");
- var valitodd = model.getValue("/root/main/data/valitodd");
- if(valifromdd<=current_date_string&¤t_date_string<=valitodd){
- grd_deptlist.valueMatrix( selected_row, grd_deptlist.colRef("iscurrent")) = "Y";
- grd_deptlist.valueMatrix( selected_row, grd_deptlist.colRef("color") ) = "#ffffff";
- grd_deptlist.rowstyle( selected_row , "data" , "background-color" ) = "#ffffff";//현재사용부서 색깔을 입힌다.
-
- }else if(valifromdd>current_date_string){
- grd_deptlist.valueMatrix( selected_row, grd_deptlist.colRef("iscurrent")) = "F";
- grd_deptlist.valueMatrix( selected_row, grd_deptlist.colRef("color") ) = "#fcd2c1";
- grd_deptlist.rowstyle( selected_row , "data" , "background-color" ) = "#fcd2c1";//사용예정부서 색깔을 입힌다.
- }
- grd_deptlist.valueMatrix(selected_row, grd_deptlist.colRef("rowstatus")) = 0;
- grd_deptlist.rowStatus(selected_row) = 0;
- fDept2DeptHistory(selected_row, 1);
- grd_depthistorylist.rowStatus(1) = 0;
- selected_row = fFindGridItem(grd_clsdeptlist, grd_clsdeptlist.colRef("deptcd"), deptcd);
- if(valifromdd<=current_date_string&¤t_date_string<=valitodd){
- grd_clsdeptlist.valueMatrix( selected_row, grd_clsdeptlist.colRef("iscurrent")) = "Y";
- grd_clsdeptlist.valueMatrix( selected_row, grd_clsdeptlist.colRef("color") ) = "#ffffff";
- grd_clsdeptlist.rowstyle( selected_row , "data" , "background-color" ) = "#ffffff";//현재사용부서 색깔을 입힌다.
- }else if(valifromdd>current_date_string){
- grd_clsdeptlist.valueMatrix( selected_row, grd_clsdeptlist.colRef("iscurrent")) = "F";
- grd_clsdeptlist.valueMatrix( selected_row, grd_clsdeptlist.colRef("color") ) = "#fcd2c1";
- grd_clsdeptlist.rowstyle( selected_row , "data" , "background-color" ) = "#fcd2c1";//사용예정부서 색깔을 입힌다.
- }
- grd_clsdeptlist.rowStatus( selected_row ) = 0;
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기")
- model.refresh();
- fInitMainDataControls(true);
- messageBox("부서('"+deptcd+"')의 이력이 추가되었습니다.", "I");
- }else{
- var deptcd = model.getValue("/root/main/data/deptcd");
- var selected_row = fFindGridItem(grd_deptlist, grd_deptlist.colRef("deptcd"), deptcd);
- var history_status = grd_deptlist.valueMatrix(selected_row, grd_deptlist.colRef("color"));
- if(history_status=="#b9e5fb"){//부서목록에 과거로 표시된경우
- fCopyDetail2DeptGrid(selected_row);
- grd_deptlist.valueMatrix( selected_row, grd_deptlist.colRef("iscurrent")) = "F";
- grd_deptlist.valueMatrix( selected_row, grd_deptlist.colRef("color") ) = "#fcd2c1";
- grd_deptlist.rowstyle( selected_row , "data" , "background-color" ) = "#fcd2c1";
- grd_deptlist.valueMatrix( selected_row, grd_deptlist.colRef("rowstatus") ) =0;
- grd_deptlist.rowStatus( selected_row ) = 0;
-
- grd_depthistorylist.insertrow(1, "before", true);
- fDept2DeptHistory(selected_row, 1);
- grd_depthistorylist.rowStatus(1) = 0;
-
- selected_row = fFindGridItem(grd_clsdeptlist, grd_clsdeptlist.colRef("deptcd"), deptcd);
- grd_clsdeptlist.valueMatrix( selected_row, grd_clsdeptlist.colRef("iscurrent")) = "F";
- grd_clsdeptlist.valueMatrix( selected_row, grd_clsdeptlist.colRef("color") ) = "#fcd2c1";
- grd_clsdeptlist.rowstyle( selected_row , "data" , "background-color" ) = "#fcd2c1";
- grd_clsdeptlist.rowStatus( selected_row ) = 0;
- messageBox("부서('"+deptcd+"')의 이력이 추가되었습니다.", "I");
- }else if(history_status=="#ffffff"){
- 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("부서('"+deptcd+"')의 이력이 추가되었습니다.", "I");
- }
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기")
- model.refresh();
- fInitMainDataControls(true);
- }
-
- }
- }else if(mode_detail=="update"){
- var modedetailstatus = model.getValue("/root/main/modedetailstatus");
- if(modedetailstatus=="present"){
- var req_deptcd_key = model.getValue("/root/main/data/deptcd");
- var req_valifromdd_key = model.getValue("/root/main/data/valifromddkey");
- var req_valitodd = model.getValue("/root/main/data/valitodd");
- fCopyDetail2Send();
- var success = submit("TXZSD00106");
- if(success){
- var selected_row = fFindGridItem(grd_deptlist, grd_deptlist.colRef("deptcd"), req_deptcd_key);
- grd_deptlist.valueMatrix(selected_row, grd_deptlist.colRef("valitodd")) = req_valitodd;
- selected_row = fFindDeptHistory(req_deptcd_key, req_valifromdd_key);
- grd_depthistorylist.valueMatrix(selected_row, grd_depthistorylist.colRef("valitodd"))=req_valitodd;
- messageBox("부서코드('"+req_deptcd_key+"')에 대한 종료일자가 '"+req_valitodd+"'로 수정되었습니다.", "I");
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기")
- model.refresh();
- fInitMainDataControls(true);
- }else{
- messageBox("부서코드('"+req_deptcd_key+"')에 대한 종료일자 '"+req_valitodd+"'의 수정이 실패하였습니다. 관리자에게 문의하십시오.", "C");
- }
- }else if(modedetailstatus=="future"){
- fCopyDetail2Send();
- var success = submit("TXZSD00105");
- if(success){
- var req_deptcd_key = model.getValue("/root/main/data/deptcd");
- var selected_row = fFindGridItem(grd_deptlist, grd_deptlist.colRef("deptcd"), req_deptcd_key);
- var dept_status = grd_deptlist.valueMatrix(selected_row, grd_deptlist.colRef("color"));
- if(dept_status=="#fcd2c1"){
- fCopyDetail2DeptGrid(selected_row);
- }
- 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("부서('"+req_deptcd_key+"')의 이력이 수정되었습니다.", "I");
- model.setValue("/root/main/modedetail", "retrived");
- model.setValue("/root/main/label/deptinfo", "부서정보보기")
- model.refresh();
- fInitMainDataControls(true);
- }
-
- }else{
- messageBox("error=> mode_detail:"+mode_detail+", mode_detail_status:"+modedetailstatus, "C");
- return;
- }
- }else if(mode_detail=="reorg"){
- model.removenode("/root/hidden/temp");
- var update_data = grd_deptlist.getUpdateData ('update');
- model.makeValue("/root/send/deptstructure", update_data);
- var bizcd = fGetBizCD();
- model.makeValue("/root/send/bisiness", bizcd);
- model.makeNode("/root/hidden/temp");
- var success = submit("TXZSD00102");
- 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 updated = model.getValue("/root/hidden/temp/resultmsg/updated");
- messageBox(updated+"건의 부서이력이 위치이동 되었습니다.", "I");
- }else{
- messageBox("위치이동, 출력순서변경에 실패하였습니다.", "C");
- }
- }else{
- messageBox("추가, 수정, 위치이동, 출력순서변경만 저장이 가능합니다.", "C");
- }
- ]]>
- </script>
- </button>
- <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|