123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292 |
- <?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>
- <cond_cal>
- <year/>
- <month/>
- </cond_cal>
- <cond_rgstngdt>
- <rgstflagcd/>
- <ngdtfromdd/>
- <ngdttodd/>
- <ngdtdwcd/>
- </cond_rgstngdt>
- <cond_refngdt>
- <conslrid/>
- <ngdt_refyear/>
- <ngdt_refmonth>A</ngdt_refmonth>
- <ngdt_refyymm/>
- <ngdt_refflag/>
- </cond_refngdt>
- <cond_refyy>
- <conslrid/>
- <yy_refyear/>
- <yy_refmonth>A</yy_refmonth>
- <yy_refyymm/>
- </cond_refyy>
- <conslrlist>
- <conslrlistinfo>
- <chk/>
- <conslrid/>
- <conslrnm/>
- <mpphontel/>
- <depttel/>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <scheflagcd/>
- <schecntscd/>
- <cost/>
- <diplyn/>
- <plcenm/>
- <rem/>
- <clscntscd/>
- <status/>
- </conslrlistinfo>
- </conslrlist>
- <cal>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- <weeks>
- <sun/>
- <mon/>
- <tue/>
- <wed/>
- <thu/>
- <fri/>
- <sat/>
- </weeks>
- </cal>
- <caldatalist>
- <caldatainfo>
- <basedd/>
- <dutflag/>
- <day/>
- <dw/>
- <weekno/>
- <rgst_conslrnm/>
- <rgst_conslrid/>
- </caldatainfo>
- </caldatalist>
- <ngdtschelist>
- <ngdtschelistinfo>
- <chk/>
- <ngdtddday/>
- <rem/>
- <conslrid/>
- <ngdtdd/>
- <seqno/>
- <status/>
- </ngdtschelistinfo>
- </ngdtschelist>
- <yyschelist>
- <yyschelistinfo>
- <chk/>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <scheflagcd/>
- <schecntscd/>
- <clscntscd/>
- <cost/>
- <diplyn/>
- <plcenm/>
- <rem/>
- <conslrid/>
- <scheflagcd_a/>
- <seqno/>
- <status/>
- </yyschelistinfo>
- </yyschelist>
- <rptngdtdd>
- <rptngdtddinfo>
- <ngdtdd/>
- </rptngdtddinfo>
- </rptngdtdd>
- <ngdtschergst>
- <ngdtschergstinfo>
- <conslrid/>
- <conslrnm/>
- <ngdtdd/>
- <rem/>
- <status/>
- </ngdtschergstinfo>
- </ngdtschergst>
- <yyschergst>
- <yyschergstinfo>
- <conslrid/>
- <conslrnm/>
- <mpphontel/>
- <depttel/>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <scheflagcd/>
- <schecntscd/>
- <cost/>
- <diplyn/>
- <plcenm/>
- <rem/>
- <clscntscd/>
- <status/>
- </yyschergstinfo>
- </yyschergst>
- <yyschecnts>
- <yyschecntsinfo>
- <fromdd/>
- <todd/>
- <fromtm/>
- <totm/>
- <scheflagcd/>
- <schecntscd/>
- <cost/>
- <diplyn>N</diplyn>
- <plcenm/>
- <rem/>
- <clscntscd>2</clscntscd>
- </yyschecntsinfo>
- </yyschecnts>
- </main>
- <send>
- <reqdata_calendar>
- <date/>
- </reqdata_calendar>
- <reqdata/>
- <savedata/>
- <combodata/>
- </send>
- <init>
- <combolist>
- <ngdtsche>
- <ngdtscheyear/>
- </ngdtsche>
- <yysche>
- <yyscheyear/>
- </yysche>
- <ngdtschelistinfo>
- <chk/>
- <ngdtddday/>
- <rem/>
- <conslrid/>
- <ngdtdd/>
- <seqno/>
- <status/>
- </ngdtschelistinfo>
- <yyschelistinfo>
- <chk/>
- <fromdd/>
- <todd/>
- <scheflagcd/>
- <schecntscd/>
- <cost/>
- <diplyn/>
- <plcenm/>
- <rem/>
- <conslrid/>
- <scheflagcd_a/>
- <seqno/>
- <status/>
- </yyschelistinfo>
- </combolist>
- <comcodelist>
- <ngdtdwcd_cmblist/>
- <scheflag_cmblist/>
- <schecnts_cmblist/>
- <schecnts_kindcmblist/>
- </comcodelist>
- <calyear/>
- </init>
- <hidden>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- //달력스타일 초기화
- fInitCalendarStyle();
- //달력 오늘날짜로 셋팅
- fInitCalendarYM();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- model.refresh();
- ]]>
- </script>
- <submission id="TRAYA00101" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/conslrlist"/>
- <submission id="TRAYA00102" ref="/root/send/reqdata_calendar" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/caldatalist"/>
- <submission id="TRAYA00103" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/ngdtschelist"/>
- <submission id="TRAYA00104" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/yyschelist"/>
- <submission id="TRAYA00105" ref="/root/send/combodata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/init/combolist"/>
- <submission id="TRAYA00106" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rptngdtdd"/>
- <submission id="TXAYA00101" ref="/root/send/savedata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TXAYA00102" ref="/root/send/savedata" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
- <submission id="TRZBC00105" method="post" mediatype="application/x-www-form-urlencoded"/>
- <submission id="TRZBC00101" method="post" mediatype="application/x-www-form-urlencoded" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- //화면 오픈시
- function fInit() {
- swt_sche.selectedIndex = 0;
- //그리드 초기화
- model.removeNodeset("/root/main/conslrlist/conslrlistinfo");
- model.removeNodeset("/root/main/ngdtschelist/ngdtschelistinfo");
- model.removeNodeset("/root/main/yyschelist/yyschelistinfo");
- model.removeNodeset("/root/main/ngdtschergst/ngdtschergstinfo");
- model.removeNodeset("/root/main/yyschergst/yyschergstinfo");
-
- // 달력 년도 셋팅
- for (i = 0; i < 20; i++)
- {
- var currentdate = getCurrentDate().substr(0, 4);
-
- var label = parseInt(currentdate) + (-10 + i);
- var value = parseInt(currentdate) + (-10 + i);
- //alert(label)
- addComboItem("cmb_year", label, value, "after");
- }
-
- //그리드 체크박스 설정
- grd_conslrlist.fixedcellcheckbox(0,1) = true;
- grd_ngdtschelist.fixedcellcheckbox(0,1) = true;
- //grd_yyschelist.fixedcellcheckbox(0,1) = true;
-
- //일반등록모드 설정
- model.setValue("/root/main/cond_rgstngdt/rgstflagcd", 'G');
- ipt_ngdtfromdd.disabled = true;
- ipt_ngdttodd.disabled = true;
- cmb_ngdtdwcd.disabled = true;
- btn_select.visible = false;
-
- //model.refresh();
-
- //원목자리스트 조회
- model.makeValue("/root/send/reqdata/joblncd", "B");
- submit("TRAYA00101", false);
-
- //연간일정구분 , 연간일정내용 콤보리스트 조회
- zbcfGetCodeList(new Array("P0033", "A0217", "A0218"), new Array("/root/init/comcodelist/ngdtdwcd_cmblist", "/root/init/comcodelist/scheflag_cmblist", "/root/init/comcodelist/schecnts_cmblist"), true, new Array("cdid", "cdid", "cdid"));
- //연간일정내용 인스턴스에 flag 생성
- var schecntsCnt = getNodesetCnt(model1, "/root/init/comcodelist/schecnts_cmblist/A0218"); //달력 노드갯수
- for (var i = 1; i <= schecntsCnt; i++) {
- var schecntscd = model.getValue("/root/init/comcodelist/schecnts_cmblist/A0218[" + i + "]/cdid");
- var schecntsflag = schecntscd.substr(0,1);
- model.makeNode("/root/init/comcodelist/schecnts_cmblist/A0218[" + i + "]/flag");
-
- if ( schecntsflag == 'A' ) {
- model.setValue("/root/init/comcodelist/schecnts_cmblist/A0218[" + i + "]/flag", 'A');
- } else if ( schecntsflag == 'B' ) {
- model.setValue("/root/init/comcodelist/schecnts_cmblist/A0218[" + i + "]/flag", 'B');
- } else if ( schecntsflag == 'C' ) {
- model.setValue("/root/init/comcodelist/schecnts_cmblist/A0218[" + i + "]/flag", 'C');
- } else if ( schecntsflag == 'D' ) {
- model.setValue("/root/init/comcodelist/schecnts_cmblist/A0218[" + i + "]/flag", 'D');
- } else if ( schecntsflag == 'Z' ) {
- model.setValue("/root/init/comcodelist/schecnts_cmblist/A0218[" + i + "]/flag", 'Z');
- }
- }
- //model.refresh();
-
- // 20071117 현재달로 셋팅되도록 요청됨
- var currentmonth = getCurrentDate().substr(5, 2);
- //model.setValue("/root/main/cond_refngdt/ngdt_refmonth", 'A'); //조회 후 '전체'조회되므로 세팅
- model.setValue("/root/main/cond_refngdt/ngdt_refmonth", currentmonth); //조회 후 '전체'조회되므로 세팅
-
- model.refresh();
- }
-
- //달력스타일 초기화
- function fInitCalendarStyle() {
- //height
- grd_calendar.dataHeight = 64;
- //font style
- grd_calendar.allStyle("all", "font-size") = "15px";
- //달력 기본색 지정
- grd_calendar.allStyle("all", "background-color") = "#ffffff"; //흰색
- }
-
- //달력 오늘날짜로 셋팅
- function fInitCalendarYM() {
- var CurrentDate = getCurrentDate();
- var sYear = CurrentDate.substr(0,4);
- var sMonth = CurrentDate.substr(4,2);
- model.setValue("/root/main/cond_cal/year", sYear);
- model.setValue("/root/main/cond_cal/month", sMonth);
- //model.refresh();
- }
-
- //달력정보 및 일자별 담당원목자를 달력에 표시
- function fSetCalendar() {
- //서버로 자료 요청
- //달력조회
- if ( fGetHospitalCalendar() != true ){
- messageBox("병원일정 데이터를 가져올 수", "I004");
- //에러로 인한 초기화면으로 세팅
- //달력 오늘날짜로 셋팅
- fInitCalendarYM();
- //fCreateCalendar();
- return;
- } else {
- model.resetInstanceNode("/root/main/cal");
- }
-
- var oldday = 0;
- var newday = 0;
- var selDataCnt = getNodesetCnt(model1, "/root/main/caldatalist/caldatainfo");
- for ( i = 1; i <= selDataCnt; i++) {
- var row = model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/weekno");
- var col = eval(model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/dw"));
- var dutflag = model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/dutflag");
- newday = model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day");
-
- if ( dutflag == "4"){ //토요일인 경우, 파란색 설정
- grd_calendar.cellStyle("color", row, col, row, col) = "#0000ff";
- } else if ( dutflag == '8') { //휴일인 경우, 빨간색 설정
- grd_calendar.cellStyle("color", row, col, row, col) = "#ff0000";
- } else { //그 이외는 검정색(평일 : 0)
- grd_calendar.cellStyle("color", row, col, row, col) = "#000000";
- }
-
- var conslrnm = model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm");
- /*
- if (conslrnm != "") {
- grd_calendar.cellStyle("background-color", row, col, row, col) = "#ffffcc"; //노란색
- } else {
- grd_calendar.cellStyle("background-color", row, col, row, col) = "#ffffff"; //흰색
- }
- */
-
- switch (col) {
- case 0:
- if (oldday == newday) {
- model.setValue("/root/main/cal/weeks[" + row + "]/sun", model.getValue("/root/main/cal/weeks[" + row + "]/sun") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- } else {
- model.setValue("/root/main/cal/weeks[" + row + "]/sun", model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- }
- break;
-
- case 1:
- if (oldday == newday) {
- model.setValue("/root/main/cal/weeks[" + row + "]/mon", model.getValue("/root/main/cal/weeks[" + row + "]/mon") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- } else {
- model.setValue("/root/main/cal/weeks[" + row + "]/mon", model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- }
- break;
-
- case 2:
- if (oldday == newday) {
- model.setValue("/root/main/cal/weeks[" + row + "]/tue", model.getValue("/root/main/cal/weeks[" + row + "]/tue") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- } else {
- model.setValue("/root/main/cal/weeks[" + row + "]/tue", model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- }
- break;
-
- case 3:
- if (oldday == newday) {
- model.setValue("/root/main/cal/weeks[" + row + "]/wed", model.getValue("/root/main/cal/weeks[" + row + "]/wed") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- } else {
- model.setValue("/root/main/cal/weeks[" + row + "]/wed", model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- }
- break;
-
- case 4:
- if (oldday == newday) {
- model.setValue("/root/main/cal/weeks[" + row + "]/thu", model.getValue("/root/main/cal/weeks[" + row + "]/thu") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- } else {
- model.setValue("/root/main/cal/weeks[" + row + "]/thu", model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- }
- break;
-
- case 5:
- if (oldday == newday) {
- model.setValue("/root/main/cal/weeks[" + row + "]/fri", model.getValue("/root/main/cal/weeks[" + row + "]/fri") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- } else {
- model.setValue("/root/main/cal/weeks[" + row + "]/fri", model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- }
- break;
-
- case 6:
- if (oldday == newday) {
- model.setValue("/root/main/cal/weeks[" + row + "]/sat", model.getValue("/root/main/cal/weeks[" + row + "]/sat") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- } else {
- model.setValue("/root/main/cal/weeks[" + row + "]/sat", model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/day") + "\n" + " " + model.getValue("/root/main/caldatalist/caldatainfo[" + i + "]/rgst_conslrnm"));
- }
- break;
- }
- oldday = newday;
- }
- //model.refresh();
- }
-
- //달력조회
- function fGetHospitalCalendar() {
- var sYear = model.getValue("/root/main/cond_cal/year");
- var sMonth = model.getValue("/root/main/cond_cal/month");
- model.setValue("/root/send/reqdata_calendar/date", sYear.concat(sMonth));
- model.removeNodeset("/root/main/caldatalist/caldatainfo");
- //model.refresh();
-
- if (submit("TRAYA00102", false) == true) {
- return true;
- } else {
- return false;
- }
- }
-
- //이전 달 조회 클릭
- function fBfMonthRef() {
- var sYear = model.getValue("/root/main/cond_cal/year");
- var sMonth = model.getValue("/root/main/cond_cal/month");
- var BfMonth;
-
- if (sMonth.substr(0,1) == "0") { //10월 이전인 경우, 앞자리 0을 제거
- BfMonth = sMonth.substr(1,1);
- }else{ //10월 이후인 경우
- BfMonth = eval(sMonth);
- }
- BfMonth--;
-
- if (BfMonth < 1) { // 1월 이전을 선택한 경우, 년도를 바꿈
- sMonth = "12";
- sYear--;
- } else if (BfMonth < 10) { // 10월 이전을 선택한 경우, 월 앞에 0을 붙인다.
- sMonth = "0".concat(BfMonth);
- } else {
- sMonth = BfMonth;
- }
- model.setValue("/root/main/cond_cal/year", sYear);
- model.setValue("/root/main/cond_cal/month", sMonth);
- //model.refresh();
-
- }
-
- //다음 달 조회 클릭
- function fAfMonthRef() {
- var sYear = model.getValue("/root/main/cond_cal/year");
- var sMonth = model.getValue("/root/main/cond_cal/month");
- var BfMonth;
-
- if (sMonth.substr(0,1) == "0") { //10월 이전인 경우, 앞자리 0을 제거
- BfMonth = sMonth.substr(1,1);
- }else{ //10월 이후인 경우
- BfMonth = eval(sMonth);
- }
- BfMonth++;
-
- if (BfMonth > 12) { // 12월 이후를 선택한 경우, 년도를 바꿈
- sMonth = "01";
- sYear++;
- } else if (BfMonth < 10) { // 10월 이전을 선택한 경우, 월 앞에 0을 붙인다.
- sMonth = "0".concat(BfMonth);
- } else {
- sMonth = BfMonth;
- }
- model.setValue("/root/main/cond_cal/year", sYear);
- model.setValue("/root/main/cond_cal/month", sMonth);
- //model.refresh();
- }
-
- //이전 년도 조회 클릭
- function fBfYearRef() {
- var sYear = model.getValue("/root/main/cond_cal/year");
- sYear--;
- model.setValue("/root/main/cond_cal/year", sYear);
- //model.refresh();
- }
-
- //다음 년도 조회 클릭
- function fAfYearRef() {
- var sYear = model.getValue("/root/main/cond_cal/year");
- sYear++;
- model.setValue("/root/main/cond_cal/year", sYear);
- //model.refresh();
- }
-
- //등록구분 선택(일반/반복일정)
- function fSelectRgstFlag() {
- var rgstflagcd = model.getValue("/root/main/cond_rgstngdt/rgstflagcd");
- if (model.getValue("/root/main/ngdtschergst/ngdtschergstinfo/conslrid") != "") {
- messageBox("선택한 일정을 저장 후", "C002");
- if (rgstflagcd == 'G') { //일반
- model.setValue("/root/main/cond_rgstngdt/rgstflagcd", 'R');
- } else if (rgstflagcd == 'R') { //반복일정
- model.setValue("/root/main/cond_rgstngdt/rgstflagcd", 'G');
- }
- rdo_rgstflagcd.refresh();
- return;
- } else {
- if (rgstflagcd == 'G') { //일반
- ipt_ngdtfromdd.disabled = true;
- ipt_ngdttodd.disabled = true;
- cmb_ngdtdwcd.disabled = true;
- btn_select.visible = false;
-
- } else if (rgstflagcd == 'R') { //반복일정
- ipt_ngdtfromdd.disabled = false;
- ipt_ngdttodd.disabled = false;
- cmb_ngdtdwcd.disabled = false;
- btn_select.visible = true;
- }
- }
- }
-
- //원목자 리스트 선택여부 확인
- function fChkConslrList() {
- var totRow = grd_conslrlist.rows;
- for ( var i = 1; i < totRow; i++) {
- var chkFlag = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- if (chkFlag == "true") {
- return true;
- }
- }
- }
-
- //달력 날짜 클릭시
- function fSelectedDate() {
- if (model.getValue("/root/main/cond_rgstngdt/rgstflagcd") == 'R') {
- messageBox("반복일정 상태에서는 선택","E001");
- return;
- //원목자 리스트 선택여부 확인
- } else if ( fChkConslrList() != true) {
- messageBox("당직일정을 등록할 원목자를 ","C002");
- return;
-
- } else {
- var iRow = grd_calendar.row;
- var iCol = grd_calendar.col;
- if (iRow < 1 ) return;
-
- var selectedCells = grd_calendar.selectedCells;
- var cell = grd_calendar.selectedCells.item(0);
-
- //일자 선택시 당직일정 등록리스트 추가
- var dataarray = grd_calendar.valueMatrix(cell.row, cell.col).split("\n"); //일
- var dd = model.getValue("/root/main/caldatalist/caldatainfo[day='" + dataarray[0] + "']/basedd"); //년월일
- var rgdtConslrCnt = getNodesetCnt(model1, "/root/main/caldatalist/caldatainfo"); //달력 노드갯수
- var rgdtChkCnt = getNodesetCnt(model1, "/root/main/conslrlist/conslrlistinfo[chk='" + "true" + "']/chk"); //원목자리스트의 체크된 갯수
- var rgdtScherddCnt = getNodesetCnt(model1, "/root/main/ngdtschergst/ngdtschergstinfo[ngdtdd='" + dd + "']/conslrid"); //당직일정 등록리스트의 같은 당직일 원목자수 노드갯수
-
- var rgdtConslrddCnt = 0; //달력의 해당날짜별 원목자 수 노드갯수
- for (var j = 1; j <= rgdtConslrCnt; j++) {
- if(model.getValue("/root/main/caldatalist/caldatainfo["+ j +"]/basedd") == dd ){
- if ((model.getValue("/root/main/caldatalist/caldatainfo["+ j +"]/rgst_conslrnm") == "")) {
- rgdtConslrddCnt = 0;
- } else {
- rgdtConslrddCnt = getNodesetCnt(model1, "/root/main/caldatalist/caldatainfo[basedd='" + dd + "']/rgst_conslrnm");
- }
- }
- }
-
- //선택한 일자에 색 지정
- var focusColor = grd_calendar.cellStyle("background-color", iRow, iCol, iRow, iCol);
- if ((focusColor == '#ffffff' || focusColor == '#ffffcc' ) && dd != "") { //흰색 or 노란색
- for ( var i = 1; i < grd_conslrlist.rows; i++) {
- var chkFlag = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/chk");
- if (chkFlag == "true") {
- var conslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrid");
- var selectedCalConslr = getNodesetCnt(model1, "/root/main/caldatalist/caldatainfo[rgst_conslrid='" + conslrid + "' and basedd ='" + dd + "']/rgst_conslrid"); //해당 날짜의 해당 원목자 유무(존재:1, 존재안함:0)
-
- /*
- //한 날짜에 두명 이상 입력시
- if (rgdtConslrddCnt + rgdtChkCnt >2) {
- messageBox("두명 이상 입력", "E001");
- return;
-
- }
- */
-
- //이름 중복입력시
- if (selectedCalConslr != 0 ) {
- messageBox("당직자가 ", "E006");
- return;
- }
- }
- }
- grd_calendar.cellstyle("background-color", iRow, iCol, iRow, iCol) = '#ff99cc'; //분홍색
- //당직일정 등록리스트로 해당자 이동
- for ( var i = 1; i < grd_conslrlist.rows; i++) {
- var chkFlag = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/chk");
- var idxRow = grd_ngdtrgstlist.rows;
- if (chkFlag == "true") {
- var getColor = grd_calendar.cellStyle("background-color", iRow, iCol, iRow, iCol);
- if (getColor == '#ff99cc'){ //분홍색일 경우 등록 추가
- grd_ngdtrgstlist.addrow(false);
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ idxRow +"]/conslrid", model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrid"));
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ idxRow +"]/conslrnm", model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrnm"));
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ idxRow +"]/ngdtdd", dd);
- }
- }
- grd_ngdtrgstlist.rebuild();
- }
-
- } else if (focusColor == '#ff99cc') { //분홍색
- for ( var i = 1; i < grd_conslrlist.rows; i++) {
- var chkFlag = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/chk");
- var idxRow = grd_ngdtrgstlist.rows;
- if (chkFlag == "true") {
- var conslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrid");
- var selectedrgstConslr = getNodesetCnt(model1, "/root/main/ngdtschergst/ngdtschergstinfo[conslrid='" + conslrid + "' and ngdtdd ='" + dd + "']/conslrid"); //해당 날짜의 해당 원목자 유무(존재:1, 존재안함:0) - 등록리스트
- var rgstdifferConslr = getNodesetCnt(model1, "/root/main/ngdtschergst/ngdtschergstinfo[conslrid!='" + conslrid + "' and ngdtdd ='" + dd + "']/conslrid"); //해당 날짜의 다른 아이디 원목자 유무(존재:1, 존재안함:0) - 등록리스트
-
- if (model.getValue("/root/main/caldatalist/caldatainfo[basedd='" + dd + "']/rgst_conslrid") == "") {
- if (model.getValue("/root/main/ngdtschergst/ngdtschergstinfo[conslrid='" + conslrid + "' and ngdtdd ='" + dd + "']/conslrid") != ""){
- if (rgstdifferConslr == 0) {
- grd_calendar.cellstyle("background-color", iRow, iCol, iRow, iCol) = '#ffffff'; //흰색
- } else {
- grd_calendar.cellstyle("background-color", iRow, iCol, iRow, iCol) = '#ff99cc'; //분홍색
- }
- model.removeNodeset("/root/main/ngdtschergst/ngdtschergstinfo[conslrid='" + conslrid + "' and ngdtdd ='" + dd + "']");
- } else {
- grd_calendar.cellstyle("background-color", iRow, iCol, iRow, iCol) = '#ff99cc'; //분홍색
-
- /*
- //한 날짜에 두명 이상 입력시
- if ( rgdtConslrddCnt + rgdtChkCnt + rgdtScherddCnt > 2) {
- messageBox("두명 이상 입력", "E001");
- return;
- }
- */
- grd_ngdtrgstlist.addrow(false);
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ idxRow +"]/conslrid", model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrid"));
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ idxRow +"]/conslrnm", model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrnm"));
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ idxRow +"]/ngdtdd", dd);
- }
-
- } else { //해당일에 한명이 등록되어 있는 경우
- if (model.getValue("/root/main/ngdtschergst/ngdtschergstinfo[conslrid='" + conslrid + "' and ngdtdd ='" + dd + "']/conslrid") == conslrid ) {
- grd_calendar.cellstyle("background-color", iRow, iCol, iRow, iCol) = '#ffffcc'; //노란색
- model.removeNodeset("/root/main/ngdtschergst/ngdtschergstinfo[conslrid='" + conslrid + "' and ngdtdd ='" + dd + "']");
- } else {
- /*
- if (rgdtConslrddCnt + rgdtChkCnt + rgdtScherddCnt >2) {
- messageBox("두명 이상 입력", "E001");
- return;
- }
- */
- }
- }
- }
- grd_ngdtrgstlist.rebuild();
- }
- }
- }
- }
-
- //반복일정 선택시 당직일정 그리드로 이동
- function fRptSche() {
- //원목자 리스트 선택여부 확인
- if ( fChkConslrList() != true) {
- messageBox("당직일정을 등록할 원목자를 ","C002");
- return false;
- } else {
- var conslrchkCnt = getNodesetCnt(model1, "/root/main/conslrlist/conslrlistinfo[chk='" + "true" + "']"); //노드갯수구함
-
- /*
- if (conslrchkCnt > 2) {
- messageBox("두명 이상 입력", "E001");
- return;
- }
- */
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond_rgstngdt");
-
- // reqGetRptScheInfo
- // getRptScheInfo
- // 해당요일의 날짜 조회(ex)-월요일에 해당하는 날짜 조회
- if (submit("TRAYA00106", false)) {
- for ( var i = 1; i < grd_conslrlist.rows; i++) {
- var chkConslr = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/chk");
- var conslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrid");
- var rptngdtddCnt = getNodesetCnt(model1, "/root/main/rptngdtdd/rptngdtddinfo"); //노드갯수구함
- var ngdtlistCnt = getNodesetCnt(model1, "/root/main/ngdtschergst/ngdtschergstinfo"); //노드갯수구함
- var ngdt_array = new Array();
-
- if (chkConslr == "true") {
- for ( var j = 1; j < rptngdtddCnt+1; j++) {
- var chkYN = "N";
- // 기존등록사항 체크
- for (var k = 1; k < grd_ngdtrgstlist.rows; k++)
- {
- var oldconslrid = model.getValue("/root/main/ngdtschergst/ngdtschergstinfo[" + k + "]/conslrid");
- var oldngdtdd = model.getValue("/root/main/ngdtschergst/ngdtschergstinfo[" + k + "]/ngdtdd");
-
- if (oldconslrid == conslrid && oldngdtdd == model.getValue("/root/main/rptngdtdd/rptngdtddinfo["+ j +"]/ngdtdd"))
- {
- chkYN = "Y";
- break;
- }
- }
- //alert(chkYN);
- if (chkYN == "N")
- {
- grd_ngdtrgstlist.addrow(false);
- ngdtlistCnt++;
- ngdt_array[j] = model.getValue("/root/main/rptngdtdd/rptngdtddinfo["+ j +"]/ngdtdd");
- // alert(ngdt_array[j]);
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ ngdtlistCnt +"]/conslrid", model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrid"));
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ ngdtlistCnt +"]/conslrnm", model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrnm"));
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo["+ ngdtlistCnt +"]/ngdtdd", ngdt_array[j]);
- }
-
- }
- }
- }
- grd_ngdtrgstlist.rebuild();
- }
- }
- }
-
- //원목자 리스트 선택시 연간일정 등록 리스트로 이동
- function fSelectedConslrList() {
- var idxRow = grd_conslrlist.row;
- var idxCol = grd_conslrlist.col;
-
- if (idxRow < 1 && idxCol != 1) return;
-
- // 해드 체크박스를 선택한 경우
- if (idxRow == 0 && idxCol == 1)
- {
- for (i=1; i < grd_conslrlist.rows; i++)
- {
- if (idxCol == 1 && swt_sche.selectedIndex == 1) { //체크박스 선택할 경우 연간일정 등록의 해당 원목자 리스트로 이동
- var chkFlag = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/chk");
- var selConslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + i + "]/conslrid");
- var chkRow = grd_yyschergstlist.findRow(selConslrid, 1, 1, false, false); //없을 경우 -1, 해당될 경우 해당 row idx 반환
- var selConslrCnt = getNodesetCnt(model1, "/root/main/yyschergst/yyschergstinfo");
- if (chkFlag == "true" && chkRow == -1) {
- model.makeNode("/root/main/yyschergst/yyschergstinfo["+ (selConslrCnt + 1) +"]");
- model.copyNode("/root/main/yyschergst/yyschergstinfo["+ (selConslrCnt + 1) +"]", "/root/main/conslrlist/conslrlistinfo[" + i + "]");
- grd_yyschergstlist.rebuild();
- } else if (chkFlag == "false") {
- model.removeNodeset("/root/main/yyschergst/yyschergstinfo[" + chkRow + "]");
- grd_yyschergstlist.rebuild();
- //model.refresh();
- }
- }
- }
- }
- else if (idxRow > 0)
- {
- if (idxCol == 1 && swt_sche.selectedIndex == 1) { //체크박스 선택할 경우 연간일정 등록의 해당 원목자 리스트로 이동
- var chkFlag = model.getValue("/root/main/conslrlist/conslrlistinfo[" + idxRow + "]/chk");
- var selConslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + idxRow + "]/conslrid");
- var chkRow = grd_yyschergstlist.findRow(selConslrid, 1, 1, false, false); //없을 경우 -1, 해당될 경우 해당 row idx 반환
- var selConslrCnt = getNodesetCnt(model1, "/root/main/yyschergst/yyschergstinfo");
- if (chkFlag == "true" && chkRow == -1) {
- model.makeNode("/root/main/yyschergst/yyschergstinfo["+ (selConslrCnt + 1) +"]");
- model.copyNode("/root/main/yyschergst/yyschergstinfo["+ (selConslrCnt + 1) +"]", "/root/main/conslrlist/conslrlistinfo[" + idxRow + "]");
- grd_yyschergstlist.rebuild();
- } else if (chkFlag == "false") {
- model.removeNodeset("/root/main/yyschergst/yyschergstinfo[" + chkRow + "]");
- //model.refresh();
- }
- } else if (idxCol > 1) { //그리드 선택할 경우 당직일정 조회, 연간일정 조회
- //해당 원목자의 등록된 당직년도, 일정년도 콤보리스트, 일정리스트 조회
- fRefCombo_ListInfo();
- //당직일정, 연간일정 그리드 복사
- fCopyData();
- //연간일정 조회시 구분에 따른 내용콤보 셋팅
- fScheCntsRef();
- }
- }
- }
-
- //해당 원목자의 등록된 당직년도, 일정년도 콤보리스트, 일정리스트 조회
- function fRefCombo_ListInfo() {
- var idxRow = grd_conslrlist.row;
- var selectConslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + idxRow + "]/conslrid");
-
- model.removeNodeset("/root/init/combolist/ngdtschelistinfo");
- model.removeNodeset("/root/init/combolist/yyschelistinfo");
-
- model.removeNodeset("/root/send/combodata");
- model.makeNode("/root/send/combodata");
- model.makeNode("/root/send/combodata/conslrid");
- // 원목자 ID
- model.setValue("/root/send/combodata/conslrid", selectConslrid);
- // 당직년도, 연간년도, 당직일정리스트, 연간일정 리스트 조회
- if (submit("TRAYA00105", false)) {
- model.resetInstanceNode("/root/main/cond_refngdt/ngdt_refyear");
- model.resetInstanceNode("/root/main/cond_refyy/yy_refyear");
-
- model.setValue("/root/main/cond_refngdt/ngdt_refyear", model.getValue("/root/init/combolist/ngdtsche/ngdtscheyear"));
- model.setValue("/root/main/cond_refyy/yy_refyear", model.getValue("/root/init/combolist/yysche/yyscheyear"));
-
- model.removeNodeset("/root/main/ngdtschelist");
- model.makeNode("/root/main/ngdtschelist");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo/chk");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo/ngdtddday");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo/rem");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo/conslrid");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo/ngdtdd");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo/seqno");
- model.makeNode("/root/main/ngdtschelist/ngdtschelistinfo/status");
-
- model.removeNodeset("/root/main/yyschelist");
- model.makeNode("/root/main/yyschelist");
- model.makeNode("/root/main/yyschelist/yyschelistinfo");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/chk");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/fromdd");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/todd");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/scheflagcd");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/schecntscd");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/clscntscd");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/cost");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/diplyn");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/plcenm");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/rem");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/conslrid");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/scheflagcd_a");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/seqno");
- model.makeNode("/root/main/yyschelist/yyschelistinfo/status");
-
- /* var setNgdtlist = model.instances(0).selectNodes("/root/init/combolist/ngdtschelistinfo");
- var getNgdtlist = model.instances(0).selectSingleNode("/root/main/ngdtschelist/ngdtschelistinfo");
-
- for ( var i = 0; i < setNgdtlist.length; i++ ){
- getNgdtlist.appendChild(setNgdtlist.item(i).cloneNode(true));
- }
- */
-
- var getNgdtlistCnt = getNodesetCnt(model1, "/root/init/combolist/ngdtschelistinfo");
- var getYYlistCnt = getNodesetCnt(model1, "/root/init/combolist/yyschelistinfo");
- var ngdt_idx = 1;
- var yy_idx = 1;
-
- /*
- for (var i = 1; i <= getNgdtlistCnt; i++) {
- copyNodesetType("/root/main/ngdtschelist/ngdtschelistinfo[" + ngdt_idx + "]", "/root/init/combolist/ngdtschelistinfo[" + i + "]", "after");
- ngdt_idx++;
- }
- for (var i = 1; i <= getYYlistCnt; i++) {
- copyNodesetType("/root/main/yyschelist/yyschelistinfo[" + yy_idx + "]", "/root/init/combolist/yyschelistinfo[" + i + "]", "after");
- yy_idx++;
- }
- model.removenode("/root/main/ngdtschelist/ngdtschelistinfo");
- model.removenode("/root/main/yyschelist/yyschelistinfo");
- */
-
- // 20071117 현재달로 셋팅되도록 요청됨
- var currentmonth = getCurrentDate().substr(4, 2);
- var currentyear = getCurrentDate().substr(0, 4);
- //alert(getCurrentDate());
- //alert(currentmonth);
- //model.setValue("/root/main/cond_refngdt/ngdt_refmonth", 'A'); //조회 후 '전체'조회되므로 세팅
- model.setValue("/root/main/cond_refngdt/ngdt_refmonth", currentmonth); //조회 후 '전체'조회되므로 세팅
- model.setValue("/root/main/cond_refngdt/ngdt_refyear", currentyear); //조회 후 '전체'조회되므로 세팅
-
-
- // 당직일정조회
- fNgdtScheListRef();
-
- // 연간일정 월에 전체
- model.setValue("/root/main/cond_refyy/yy_refmonth", 'A');
- // 20071130 연간일정 해당월로 셋팅되도록 요청함
- model.setValue("/root/main/cond_refyy/yy_refyear",currentyear);
-
- //해당 원목자의 연간일정 조회
- fYYScheListRef();
-
- //model.refresh();
- }
- }
-
- //노드 갯수 구함
- function getNodesetCnt(srchModel, path) {
- var insXml = srchModel.instances(0);
- var nodeList = insXml.selectNodes(path);
- return nodeList.length;
- }
-
- //당직일정, 연간일정 그리드 복사
- function fCopyData() {
- //당직일정 조회그리드 복사
- model.removeNodeset("/root/temp/main/ngdtschelist");
- model.makeNode("/root/temp/main/ngdtschelist");
- model.copyNode("/root/temp/main/ngdtschelist","/root/main/ngdtschelist");
-
- //연간일정 조회그리드 복사
- model.removeNodeset("/root/temp/main/yyschelist");
- model.makeNode("/root/temp/main/yyschelist");
- model.copyNode("/root/temp/main/yyschelist","/root/main/yyschelist");
- }
-
- //해당 원목자의 당직일정 조회
- function fNgdtScheListRef() {
- // 헤더 체크박스 초기화
- grd_ngdtschelist.fixedcellischeck(0, 1) = false;
-
- var idxRow = grd_conslrlist.row;
- var selectConslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + idxRow + "]/conslrid");
- var ngdt_sYear = model.getValue("/root/main/cond_refngdt/ngdt_refyear");
- var ngdt_sMonth = model.getValue("/root/main/cond_refngdt/ngdt_refmonth");
-
- if (ngdt_sMonth != 'A') {
- model.setValue("/root/main/cond_refngdt/ngdt_refyymm", ngdt_sYear.concat(ngdt_sMonth));
- }
- model.setValue("/root/main/cond_refngdt/conslrid", selectConslrid);
- model.setValue("/root/main/cond_refngdt/ngdt_refflag", 'C'); //해당 원목자 조회 flag
- //model.refresh();
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata","/root/main/cond_refngdt");
-
- // getNgdtScheListInfo
- submit("TRAYA00103", false);
- //당직일정, 연간일정 그리드 복사
- fCopyData();
- }
- // 년도 및 월 선택될때마다 구분에 따른 내용 유형코드 셋팅
-
- //해당 원목자의 연간일정 조회
- function fYYScheListRef() {
- var idxRow = grd_conslrlist.row;
- var selectConslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + idxRow + "]/conslrid");
- var yy_sYear = model.getValue("/root/main/cond_refyy/yy_refyear");
- var yy_sMonth = model.getValue("/root/main/cond_refyy/yy_refmonth");
-
- if (yy_sMonth != 'A') {
- model.setValue("/root/main/cond_refyy/yy_refyymm", yy_sYear.concat(yy_sMonth));
- }
- model.setValue("/root/main/cond_refyy/conslrid", selectConslrid);
- //model.refresh();
-
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata","/root/main/cond_refyy");
- // reqGetYYScheListInfo
- // getYYScheListInfo
- submit("TRAYA00104", false);
- grd_yyschelist.rebuild();
- //당직일정, 연간일정 그리드 복사
- fCopyData();
- }
-
- //당직일정 조회 그리드에서 해당 당직일 선택
- function fSelNgdtSche() {
- var idxRow = grd_ngdtschelist.row;
- var idxCol = grd_ngdtschelist.col;
- if (idxRow < 1 || idxCol < 2) return;
- }
-
- //당직일정 등록부분의 저장버튼 클릭시
- function fSaveNgdtSche() {
- var totRow = grd_ngdtrgstlist.rows;
-
- if (totRow <= 1)
- {
- messageBox("저장할 내역이", "I004");
- return;
-
- }
-
- for (var i = 1; i < totRow; i++) {
- model.setValue("/root/main/ngdtschergst/ngdtschergstinfo[" + i + "]/status", "i");
- }
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.setValue("/root/send/savedata", grd_ngdtrgstlist.getUpdateDataAll("i"));
-
- //model.refresh();
-
- // reqExeNgdtScheInfo
- if (submit("TXAYA00101", false)) {
- //당직일정 등록 초기화
- fResetNgdt();
- fRefCombo_ListInfo();
-
- /*
- var ngdt_refyear = model.getValue("/root/main/cond_refngdt/ngdt_refyear");
- if (ngdt_refyear != "") {
- //해당 원목자의 당직일정 조회
- fNgdtScheListRef();
- } else {
- //해당 원목자의 등록된 당직년도, 일정년도 콤보리스트, 일정리스트 조회
- fRefCombo_ListInfo();
- }
- */
- }
- }
-
- //당직일정 그리드 값 변경시 체크 알림
- function fChkNgdtSche() {
- var idxRow = grd_ngdtschelist.row;
- var idxCol = grd_ngdtschelist.col;
- if (idxRow < 1 || idxCol < 1) return;
-
- var totRow = grd_ngdtschelist.rows;
- if (idxCol >1) {
- for (var i = 1; i < totRow; i++) {
- var chkFlag = model.getValue("/root/main/ngdtschelist/ngdtschelistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- if (instance1.selectSingleNode("/root/main/ngdtschelist/ngdtschelistinfo["+ i +"]").xml != instance1.selectSingleNode("/root/temp/main/ngdtschelist/ngdtschelistinfo["+ i +"]").xml) {
- if (chkFlag == "false") {
- messageBox("수정할 당직일을 ","C002");
- return;
- }
- }
- }
- }
- }
-
- //당직일정 조회부분의 저장(수정)버튼 클릭시
- function fUpdtNgdtSche() {
- var totRow = grd_ngdtschelist.rows;
- var chkYN = "";
- for (var i = 1; i < totRow; i++) {
- var chkFlag = model.getValue("/root/main/ngdtschelist/ngdtschelistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- if (chkFlag == "true"){
- model.setValue("/root/main/ngdtschelist/ngdtschelistinfo[" + i + "]/status", "u");
- chkYN = "Y";
- }
- }
- if ( chkYN == "") {
- //messageBox("변경된 데이터가 ","I004");
- //messageBox("저장할 당직일자를 ","C002");
- messageBox("선택한 당직일자가", "I004");
- return;
- }
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.setValue("/root/send/savedata", grd_ngdtschelist.getUpdateDataAll("u"));
- //model.refresh();
-
- if (submit("TXAYA00101", false)){
- //해당 원목자의 당직일정 조회
- fNgdtScheListRef();
- //당직일정, 연간일정 그리드 복사
- fCopyData();
- }
- }
-
- //당직일정 조회부분의 삭제버튼 클릭시
- function fDelNgdtSche() {
- var totRow = grd_ngdtschelist.rows;
- var chkYN = "";
- for (var i = 1; i < totRow; i++) {
- var chkFlag = model.getValue("/root/main/ngdtschelist/ngdtschelistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- if (chkFlag == "true"){
- model.setValue("/root/main/ngdtschelist/ngdtschelistinfo[" + i + "]/status", "d");
- chkYN = "Y";
- }
- }
- if ( chkYN == "") {
- //messageBox("삭제할 당직일자를 ","C002");
- messageBox("선택한 당직일자가", "I004");
- return;
- }
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- var btn = messageBox("선택한 당직일자를 ", "Q001");
- if (btn == '6') {
- model.setValue("/root/send/savedata", grd_ngdtschelist.getUpdateDataAll("d"));
- //model.refresh();
- if (submit("TXAYA00101", false)) {
- //해당 원목자의 당직일정 조회
- fNgdtScheListRef();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- //당직일정, 연간일정 그리드 복사
- fCopyData();
- }
- } else if (btn == '7') {
- return;
- }
- }
-
- //당직일정 등록 초기화
- function fResetNgdt() {
- model.resetInstanceNode("/root/main/cond_rgstngdt/ngdtfromdd")
- model.resetInstanceNode("/root/main/cond_rgstngdt/ngdttodd");
- model.resetInstanceNode("/root/main/cond_rgstngdt/ngdtdwcd");
- model.removeNodeset("/root/main/ngdtschergst/ngdtschergstinfo");
-
- grd_calendar.cellStyle("background-color",1 , 0, 6, 6) = "#ffffff"; //흰색
- //model.refresh();
-
- // 원목자 리스트 초기화
- fResetConslrList();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar(); //달력 재조회
- }
-
- //연간일정 조회 그리드에서 해당 일정 선택
- function fSelYYSche() {
- var idxRow = grd_yyschelist.row;
- var idxCol = grd_yyschelist.col;
- if (idxRow < 1 || idxCol < 2) return;
- }
-
- //연간일정 등록부분의 저장버튼 클릭시
- function fSaveYYSche() {
- var totRow = grd_yyschergstlist.rows;
-
- if (totRow <= 1)
- {
- messageBox("연간일정을 등록할 원목자를 ","C002");
- return;
- }
-
- for (var i = 1; i < totRow; i++) {
- //alert(model.getValue("/root/main/yyschecnts/yyschecntsinfo/fromdd"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/fromdd", model.getValue("/root/main/yyschecnts/yyschecntsinfo/fromdd"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/todd", model.getValue("/root/main/yyschecnts/yyschecntsinfo/todd"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/scheflagcd", model.getValue("/root/main/yyschecnts/yyschecntsinfo/scheflagcd"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/schecntscd", model.getValue("/root/main/yyschecnts/yyschecntsinfo/schecntscd"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/cost", model.getValue("/root/main/yyschecnts/yyschecntsinfo/cost"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/diplyn", model.getValue("/root/main/yyschecnts/yyschecntsinfo/diplyn"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/plcenm", model.getValue("/root/main/yyschecnts/yyschecntsinfo/plcenm"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/rem", model.getValue("/root/main/yyschecnts/yyschecntsinfo/rem"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/clscntscd", model.getValue("/root/main/yyschecnts/yyschecntsinfo/clscntscd"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/fromtm", model.getValue("/root/main/yyschecnts/yyschecntsinfo/fromtm")); // 시작시간 종료시간 추가 (2009.11.23 hhm)
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/totm", model.getValue("/root/main/yyschecnts/yyschecntsinfo/totm"));
- model.setValue("/root/main/yyschergst/yyschergstinfo[" + i + "]/status", "i");
- //model.refresh();
- }
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.setValue("/root/send/savedata", grd_yyschergstlist.getUpdateDataAll("i"));
- //model.refresh();
- if (submit("TXAYA00102", false)) {
- //연간일정 등록 초기화
- fResetYY();
- fRefCombo_ListInfo();
-
- /*
- var yy_refyear = model.getValue("/root/main/cond_refyy/yy_refyear");
- if (yy_refyear != "") {
- //해당 원목자의 연간일정 조회
- fYYScheListRef();
- } else {
- //해당 원목자의 등록된 당직년도, 일정년도 콤보리스트, 일정리스트 조회
- fRefCombo_ListInfo();
- }
- */
- }
- }
-
- //연간일정 그리드 값 변경시 체크 알림
- function fChkYYSche() {
- var idxRow = grd_yyschelist.row;
- var idxCol = grd_yyschelist.col;
- if (idxRow < 1 || idxCol < 1) return;
-
- var totRow = grd_yyschelist.rows;
- if (idxCol >1) {
- for (var i = 1; i < totRow; i++) {
- var chkFlag = model.getValue("/root/main/yyschelist/yyschelistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- if (instance1.selectSingleNode("/root/main/yyschelist/yyschelistinfo["+ i +"]").xml != instance1.selectSingleNode("/root/temp/main/yyschelist/yyschelistinfo["+ i +"]").xml) {
- if (chkFlag == "false") {
- messageBox("수정할 일정을 ","C002");
- return;
- }
- }
- }
- }
- }
-
- //연간일정 조회부분의 저장(수정)버튼 클릭시
- function fUpdtYYSche() {
- var totRow = grd_yyschelist.rows;
- var chkYN = "";
- for (var i = 1; i < totRow; i++) {
- var chkFlag = model.getValue("/root/main/yyschelist/yyschelistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- if (chkFlag == "true"){
- model.setValue("/root/main/yyschelist/yyschelistinfo[" + i + "]/status", "u");
- chkYN = "Y";
- }
- }
- if ( chkYN == "") {
- //messageBox("변경된 데이터가 ","I004");
- messageBox("선택한 연간일정이", "I004");
- return;
- }
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.setValue("/root/send/savedata", grd_yyschelist.getUpdateDataAll("u"));
- //model.refresh();
- if (submit("TXAYA00102", false)) {
- //해당 원목자의 연간일정 조회
- fYYScheListRef();
- grd_conslrlist.dispatch("onclick");
- //당직일정, 연간일정 그리드 복사
- //fCopyData();
- }
- }
-
- //연간일정 조회부분의 삭제버튼 클릭시
- function fDelYYSche() {
- var totRow = grd_yyschelist.rows;
- var chkYN = "";
- for (var i = 1; i < totRow; i++) {
- var chkFlag = model.getValue("/root/main/yyschelist/yyschelistinfo[" + i + "]/chk"); //체크되었을 때 true를 반환함
- if (chkFlag == "true"){
- model.setValue("/root/main/yyschelist/yyschelistinfo[" + i + "]/status", "d");
- chkYN = "Y";
- }
- }
- if ( chkYN == "") {
- //messageBox("삭제할 일정을 ","C002");
- messageBox("선택한 연간일정이", "I004");
- return;
- }
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
-
- var btn = messageBox("선택한 일정을 ", "Q001");
- if (btn == '6') {
- model.setValue("/root/send/savedata", grd_yyschelist.getUpdateDataAll("d"));
- //model.refresh();
- if (submit("TXAYA00102", false)) {
- //해당 원목자의 연간일정 조회
- fYYScheListRef();
- //당직일정, 연간일정 그리드 복사
- fCopyData();
- }
- } else if (btn == '7') {
- return;
- }
- }
-
- //연간일정 등록 초기화
- function fResetYY() {
- model.removeNodeset("/root/main/yyschergst/yyschergstinfo");
- model.resetInstanceNode("/root/main/yyschecnts/yyschecntsinfo");
-
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/yyschecnts/yyschecntsinfo/fromdd", CurrentDate);
- model.setValue("/root/main/yyschecnts/yyschecntsinfo/todd", CurrentDate);
-
- cmb_scheflag.select(0);
- model.setValue("/root/main/yyschecnts/yyschecntsinfo/clscntscd", "2");
- model.setValue("/root/main/yyschecnts/yyschecntsinfo/diplyn", "N");
-
- //model.refresh();
-
- //원목자리스트 초기화
- fResetConslrList();
- }
-
- //연간일정구분 콤보 변경에 따른 내용콤보 셋팅
- function fScheflagChgRef() {
- /* scheflagcd
- A : 휴가
- B : 영성교육
- C : 자기계발교육
- D : 직무교육
- Z : 기타
-
- schecntscd
- A01 : 휴가
- B01 : 연수
- B02 : 재수련
- B03 : 피정
- C01 Case Study
- C02 : 팀워크샵
- C03 : 연계부서교육
- D01 : 직무교육
- Z01 : 기타
- */
- var scheflagcd = model.getValue("/root/main/yyschecnts/yyschecntsinfo/scheflagcd");
- var bizid; //업무규칙
-
- if (scheflagcd == 'A') {
- bizid = "A0002";
- } else if (scheflagcd == 'B') {
- bizid = "A0003";
- } else if (scheflagcd == 'C') {
- bizid = "A0004";
- } else if (scheflagcd == 'D') {
- bizid = "A0005";
- } else if (scheflagcd == 'Z') {
- bizid = "A0006";
- }
-
- // 초기화
- model.removeNodeset("/root/init/comcodelist/schecnts_kindcmblist");
- model.makeNode("/root/init/comcodelist/schecnts_kindcmblist");
-
- zbcfGetKindCodeList(
- new Array(bizid), //업무규칙
- new Array("A0218"), //코드군
- new Array("/root/init/comcodelist/schecnts_kindcmblist"), //노드
- true, //minimum : true TRZBC00105
- new Array("cdid"), //sorting 항목
- new Array("asc")
- );
- // zbcfGetKindCodeList(new Array("A0018"), new Array("A0507"),new Array("/root/hidden/init/comcd3"),true,'','');
- zbcfGetKindCodeList(
- new Array(bizid), //업무규칙
- new Array("A0218"), //코드군
- new Array("/root/init/comcodelist/schecnts_cmblist"), //노드
- true, //minimum : true TRZBC00105
- new Array("cdid"), //sorting 항목
- new Array("asc")
- );
-
- if (scheflagcd == 'A') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0002A0218";
-
- } else if (scheflagcd == 'B') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0003A0218";
-
- } else if (scheflagcd == 'C') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0004A0218";
-
- } else if (scheflagcd == 'D') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0005A0218";
-
- } else if (scheflagcd == 'Z') {
- cmb_schecnts.choices.itemset.attribute("nodeset") = "/root/init/comcodelist/schecnts_kindcmblist/A0006A0218";
- }
- cmb_schecnts.refresh();
- cmb_schecnts.select(0);
- }
-
- //당직일정등록 탭 선택시
- function fNgdtScheInfo() {
- var saveinfo = model.getValue("/root/main/yyschergst/yyschergstinfo/conslrid");
- if (saveinfo != "") {
- var saveYN = messageBox("저장하지 않은 내용이 있습니다!", "Q003");
- if(saveYN == 6) { //예
- model.toggle("case_ngdtsche");
- //연간일정 등록 초기화
- fResetYY();
- }else if (saveYN == 7) { //아니오
- btn_yyrgst.dispatch("onclick");
- return;
- }
- } else {
- if ( swt_sche.selectedIndex == 1) {
- // 원목자 리스트 초기화
- fResetConslrList();
- }
- model.toggle("case_ngdtsche");
- }
- }
-
- //연간일정등록 탭 선택시
- function fYYScheInfo() {
- var saveinfo = model.getValue("/root/main/ngdtschergst/ngdtschergstinfo/conslrid");
- if (saveinfo != "") {
- var saveYN = messageBox("저장하지 않은 내용이 있습니다!", "Q003");
- if(saveYN == 6) { //예
- model.toggle("case_yysche");
- //당직일정 등록 초기화
- fResetNgdt();
-
- //연간일정 등록 초기화
- fResetYY();
- }else if (saveYN == 7) { //아니오
- btn_ngdtrgst.dispatch("onclick");
- return;
- }
- } else {
- if ( swt_sche.selectedIndex == 0 ) {
- //원목자리스트 초기화
- fResetConslrList();
- //연간일정 등록 초기화
- fResetYY();
- }
-
- model.toggle("case_yysche");
- }
- }
-
- //원목자리스트 초기화
- function fResetConslrList() {
- grd_conslrlist.fixedcellischeck(0, 1) = false;
- for (var i = 1; i < grd_conslrlist.rows; i++) {
- model.resetInstanceNode("/root/main/conslrlist/conslrlistinfo[" + i + "]/chk");
- }
-
- //model.refresh();
- }
-
- //연간일정 조회시 구분에 따른 내용콤보 셋팅
- function fScheCntsRef() {
- for ( i = 1; i < grd_yyschelist.rows; i++) {
- var idx_scheflagcd = model.getValue("/root/main/yyschelist/yyschelistinfo[" + i + "]/scheflagcd");
- if( idx_scheflagcd == "A" ) {
- grd_yyschelist.cellComboNodeset(i,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='A']";
-
- } else if (idx_scheflagcd == "B" ) {
- grd_yyschelist.cellComboNodeset(i,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='B']";
-
- } else if( idx_scheflagcd == "C" ) {
- grd_yyschelist.cellComboNodeset(i,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='C']";
-
- } else if( idx_scheflagcd == "D" ) {
- grd_yyschelist.cellComboNodeset(i,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='D']";
-
- } else if( idx_scheflagcd == "Z" ) {
- grd_yyschelist.cellComboNodeset(i,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='Z']";
- }
- }
- }
-
- //연간일정구분 그리드 콤보 변경에 따른 내용콤보 셋팅
- function fScheflagChgRef_Grd() {
- /* scheflagcd
- A : 휴가
- B : 영성교육
- C : 자기계발교육
- D : 직무교육
- Z : 기타
- */
- if( grd_yyschelist.col == 4 ) {
- if( grd_yyschelist.valueMatrix(grd_yyschelist.row,4) == "A" ) {
- grd_yyschelist.cellComboNodeset(grd_yyschelist.row,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='A']";
-
- } else if( grd_yyschelist.valueMatrix(grd_yyschelist.row,4) == "B" ) {
- grd_yyschelist.cellComboNodeset(grd_yyschelist.row,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='B']";
-
- } else if( grd_yyschelist.valueMatrix(grd_yyschelist.row,4) == "C" ) {
- grd_yyschelist.cellComboNodeset(grd_yyschelist.row,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='C']";
- } else if( grd_yyschelist.valueMatrix(grd_yyschelist.row,4) == "D" ) {
- grd_yyschelist.cellComboNodeset(grd_yyschelist.row,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='D']";
- } else if( grd_yyschelist.valueMatrix(grd_yyschelist.row,4) == "Z" ) {
- grd_yyschelist.cellComboNodeset(grd_yyschelist.row,5) = "/root/init/comcodelist/schecnts_cmblist/A0218[flag='Z']";
- }
- model.refresh();
- }
- }
-
-
- // 당직일정조회 entercell
- function fEntCelNgdtSche()
- {
- if (grd_ngdtschelist.colType(grd_ngdtschelist.col) == "input")
- grd_ngdtschelist.editCell();
- }
-
- // 연간일정조회 entercell
- function fEntCelYYSche()
- {
- if (grd_yyschelist.colType(grd_yyschelist.col) == "input")
- grd_yyschelist.editCell();
- }
-
- // 당일일정 등록 entercell
- function fEntCelNgdtRgst()
- {
- if (grd_ngdtrgstlist.colType(grd_ngdtrgstlist.col) == "input")
- grd_ngdtrgstlist.editCell();
-
- }
-
- // 연간일정조회 Popup
- function fAYA00300()
- {
- modal("SMAYA00300",1,100,100);
- //modal("SMAYA00300",null,null,null, "SMAYA00300", "/root/actsource", "/root/main/actsource");
- }
-
- // 당직일정현황조회 popup
- function fAYA00200()
- {
- modal("SMAYA00200",1,100,100);
- //modal("SMAYA00200",null,null,null, "SMAYA00200", "/root/actsource", "/root/main/actsource");
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1388;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:742px; ">
- <line id="line12" class="line_1" style="x1:0px; y1:27px; x2:315px; y2:27px; "/>
- <datagrid id="grd_conslrlist" nodeset="/root/main/conslrlist/conslrlistinfo" caption="^사번^원목자명^핸드폰번호^부서전화" colwidth="30, 58, 59, 76, 66" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:0px; top:32px; width:315px; height:450px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="conslrid" style="text-align:center; "/>
- <col ref="conslrnm" style="text-align:center; "/>
- <col ref="mpphontel"/>
- <col ref="depttel"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //원목자 리스트 선택시 연간일정 등록 리스트로 이동
- fSelectedConslrList();
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:4px; top:494px; width:108px; height:13px; ">당직일정 조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:510px; x2:315px; y2:510px; "/>
- <datagrid id="grd_ngdtschelist" nodeset="/root/main/ngdtschelist/ngdtschelistinfo" autoresize="true" caption="^당직일^참고사항^원목자아이디^당직일자(key)^일련번호^상태" colwidth="30, 100, 119, 40, 100, 40, 40" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:515px; width:315px; height:225px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="ngdtddday"/>
- <col ref="rem" type="input" imemode="hangul" maxlength="30"/>
- <col ref="conslrid" visibility="hidden"/>
- <col ref="ngdtdd" visibility="hidden"/>
- <col ref="seqno" visibility="hidden">
- <![CDATA[ngdtschelistinfo]]>
- </col>
- <col ref="status" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //당직일정 조회 그리드에서 해당 당직일 선택
- fSelNgdtSche();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //당직일정 그리드 값 변경시 체크 알림
- //fChkNgdtSche();
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- fEntCelNgdtSche();
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="tit_2" style="left:5px; top:11px; width:145px; height:13px; ">원목자 리스트</caption>
- <button id="button90" class="btn5_letter2" style="left:228px; top:490px; width:49px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //당직일정 조회부분의 저장(수정)버튼 클릭시
- fUpdtNgdtSche();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter2" style="left:273px; top:490px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelNgdtSche();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_ngdtrgst" class="btn_sw" group="tab" selected="true" style="left:320px; top:5px; width:88px; height:22px; ">
- <caption>당직일정등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNgdtScheInfo();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_yyrgst" class="btn_sw" group="tab" style="left:408px; top:5px; width:88px; height:22px; ">
- <caption>연간일정등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fYYScheInfo();
- model.refresh();
- ]]>
- </script>
- </button>
- <switch id="swt_sche" class="sw_box" style="left:320px; top:25px; width:869px; height:458px; border-style:solid; ">
- <case id="case_ngdtsche">
- <line id="line3" class="line_1" style="x1:584px; y1:94px; x2:865px; y2:94px; "/>
- <button id="button9" class="btn5_letter2" style="left:767px; top:74px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //당직일정 등록부분의 저장버튼 클릭시
- fSaveNgdtSche();
- model.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_calendar" nodeset="/root/main/cal/weeks" allowselection="true" allowuserresize="false" backcoloralternate="transparent" caption="일^월^화^수^목^금^토" colwidth="82, 82, 82, 82, 82, 82, 82" defaultrows="7" focuscolor="transparent" frozencols="1" selectionmode="free" rowsep="|" colsep="^" style="left:2px; top:43px; width:577px; height:411px; ">
- <col ref="sun" style="vertical-align:top; "/>
- <col ref="mon" style="vertical-align:top; "/>
- <col ref="tue" style="vertical-align:top; "/>
- <col ref="wed" style="vertical-align:top; "/>
- <col ref="thu" style="vertical-align:top; "/>
- <col ref="fri" style="vertical-align:top; "/>
- <col ref="sat" style="vertical-align:top; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //달력 날짜 클릭시
- fSelectedDate();
- ]]>
- </script>
- </datagrid>
- <select1 id="rdo_rgstflagcd" ref="/root/main/cond_rgstngdt/rgstflagcd" class="radio_search" overflow="visible" appearance="full" rows="1" cols="2" cellspacing="10" style="left:672px; top:5px; width:140px; height:19px; border-style:none; ">
- <choices>
- <item>
- <label>일반</label>
- <value>G</value>
- </item>
- <item>
- <label>반복일정</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //등록구분 선택(일반/반복일정)
- fSelectRgstFlag();
- ]]>
- </script>
- </select1>
- <input id="ipt_ngdtfromdd" ref="/root/main/cond_rgstngdt/ngdtfromdd" class="input_default" inputtype="date" style="left:672px; top:26px; width:90px; height:19px; "/>
- <input id="ipt_ngdttodd" ref="/root/main/cond_rgstngdt/ngdttodd" class="input_default" inputtype="date" style="left:775px; top:26px; width:90px; height:19px; "/>
- <select1 id="cmb_ngdtdwcd" ref="/root/main/cond_rgstngdt/ngdtdwcd" class="combo_default" appearance="minimal" style="left:672px; top:49px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/ngdtdwcd_cmblist/P0033">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_no_b" style="left:762px; top:26px; width:17px; height:17px; ">~</caption>
- <caption id="caption7" class="tit_2" style="left:588px; top:78px; width:118px; height:14px; ">당직일정 등록</caption>
- <datagrid id="grd_ngdtrgstlist" nodeset="/root/main/ngdtschergst/ngdtschergstinfo" autoresize="true" caption="사번^원목자명^당직일^참고사항^상태" colwidth="56, 61, 69, 68, 40" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:584px; top:99px; width:281px; height:355px; ">
- <col ref="conslrid"/>
- <col ref="conslrnm"/>
- <col ref="ngdtdd" format="yyyy-mm-dd"/>
- <col ref="rem" type="input" imemode="hangul" maxlength="30"/>
- <col ref="status" visibility="hidden"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- fEntCelNgdtRgst();
-
- ]]>
- </script>
- </datagrid>
- <group id="grp_calendar" style="left:2px; top:2px; width:579px; height:40px; ">
- <shape id="rectangle1" class="calendar_header" appearance="rectangle" style="left:0px; top:0px; width:577px; height:40px; "/>
- <button id="btn_afmonth" class="icon_next_month" style="left:373px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //다음 달 조회 클릭
- fAfMonthRef();
- //달력스타일 초기화
- fInitCalendarStyle();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_bfmonth" class="icon_pre_month" style="left:186px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //이전 달 조회 클릭
- fBfMonthRef();
- //달력스타일 초기화
- fInitCalendarStyle();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_bfyear" class="icon_pre_year" style="left:167px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //이전 년도 조회 클릭
- fBfYearRef();
- //달력스타일 초기화
- fInitCalendarStyle();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_afyear" class="icon_next_year" style="left:392px; top:14px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //다음 년도 조회 클릭
- fAfYearRef();
- //달력스타일 초기화
- fInitCalendarStyle();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_year" ref="/root/main/cond_cal/year" class="combo_default" appearance="minimal" style="left:210px; top:12px; width:70px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/calyear">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //달력스타일 초기화
- fInitCalendarStyle();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_month" ref="/root/main/cond_cal/month" class="combo_default" appearance="minimal" style="left:307px; top:12px; width:44px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>1</label>
- <value>01</value>
- </item>
- <item>
- <label>2</label>
- <value>02</value>
- </item>
- <item>
- <label>3</label>
- <value>03</value>
- </item>
- <item>
- <label>4</label>
- <value>04</value>
- </item>
- <item>
- <label>5</label>
- <value>05</value>
- </item>
- <item>
- <label>6</label>
- <value>06</value>
- </item>
- <item>
- <label>7</label>
- <value>07</value>
- </item>
- <item>
- <label>8</label>
- <value>08</value>
- </item>
- <item>
- <label>9</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //달력스타일 초기화
- fInitCalendarStyle();
- //달력정보 및 일자별 담당원목자를 달력에 표시
- fSetCalendar();
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption16" class="calendar_output" style="left:282px; top:12px; width:20px; height:19px; ">년</caption>
- <caption id="caption17" class="calendar_output" style="left:351px; top:12px; width:20px; height:19px; ">월</caption>
- </group>
- <caption id="caption8" class="cell_1" style="left:584px; top:2px; width:85px; height:68px; vertical-align:middle; ">등록구분</caption>
- <line id="line8" class="line_3" style="x1:584px; y1:71px; x2:865px; y2:71px; "/>
- <button id="btn_select" class="btn2_letter2" style="left:823px; top:4px; width:42px; height:19px; ">
- <caption>선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //반복일정 선택시 당직일정 그리드로 이동
- fRptSche();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button91" class="btn5_letter3" style="left:812px; top:74px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //당직일정 등록 초기화
- fResetNgdt();
- grd_ngdtrgstlist.rebuild();
- model.refresh();
- ]]>
- </script>
- </button>
- </case>
- <case id="case_yysche" selected="true">
- <line id="line13" class="line_2" style="x1:446px; y1:77px; x2:864px; y2:77px; "/>
- <caption id="caption21" class="cell_1" style="left:657px; top:79px; width:85px; height:23px; vertical-align:middle; ">내용</caption>
- <caption id="caption22" class="cell_1" style="left:657px; top:30px; width:85px; height:23px; vertical-align:middle; ">종료일</caption>
- <line id="line14" class="line_3" style="x1:446px; y1:199px; x2:865px; y2:199px; "/>
- <caption id="caption23" class="cell_1" style="left:446px; top:152px; width:85px; height:23px; vertical-align:middle; ">장소</caption>
- <select1 id="cmb_schecnts" ref="/root/main/yyschecnts/yyschecntsinfo/schecntscd" class="combo_default" appearance="minimal" style="left:745px; top:80px; width:120px; height:19px; ">
- <choices>
- <itemset>
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_scheflag" ref="/root/main/yyschecnts/yyschecntsinfo/scheflagcd" class="combo_default" appearance="minimal" style="left:534px; top:80px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comcodelist/scheflag_cmblist/A0217">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fScheflagChgRef();
- ]]>
- </script>
- </select1>
- <caption id="caption24" class="cell_1" style="left:446px; top:30px; width:85px; height:23px; vertical-align:middle; ">시작일</caption>
- <line id="line16" class="line_2" style="x1:446px; y1:126px; x2:864px; y2:126px; "/>
- <line id="line17" class="line_2" style="x1:446px; y1:174px; x2:864px; y2:174px; "/>
- <caption id="caption25" class="cell_1" style="left:446px; top:79px; width:85px; height:23px; vertical-align:middle; ">구분</caption>
- <input id="ipt_yyschetodd" ref="/root/main/yyschecnts/yyschecntsinfo/todd" class="input_default" inputtype="date" style="left:745px; top:32px; width:120px; height:19px; "/>
- <caption id="caption26" class="cell_1" style="left:657px; top:128px; width:85px; height:23px; vertical-align:middle; ">수료증여부</caption>
- <line id="line18" class="line_2" style="x1:446px; y1:150px; x2:864px; y2:150px; "/>
- <caption id="caption27" class="cell_1" style="left:446px; top:176px; width:85px; height:23px; vertical-align:middle; ">비고</caption>
- <caption id="caption28" class="cell_1" style="left:446px; top:128px; width:85px; height:23px; vertical-align:middle; ">비용</caption>
- <input id="ipt_yyschefromdd" ref="/root/main/yyschecnts/yyschecntsinfo/fromdd" class="input_default" inputtype="date" style="left:534px; top:32px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var fromdd = model.getValue("/root/main/yyschecnts/yyschecntsinfo/fromdd");
- model.setValue("/root/main/yyschecnts/yyschecntsinfo/todd", fromdd);
- ipt_yyschetodd.refresh();
- ]]>
- </script>
- </input>
- <line id="line19" class="line_1" style="x1:446px; y1:25px; x2:865px; y2:25px; "/>
- <datagrid id="grd_yyschergstlist" nodeset="/root/main/yyschergst/yyschergstinfo" caption="사번^원목자명^핸드폰번호^부서전화^시작일^종료일^시작시간^종료시간^일정구분코드^일정내용코드^비용^수료증여부^장소^비고^분류내용^상태" colwidth="93, 100, 127, 90, 40, 40, 31, 34, 40, 40, 40, 40, 40, 40, 40, 40" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" style="left:4px; top:30px; width:437px; height:425px; ">
- <col ref="conslrid"/>
- <col ref="conslrnm"/>
- <col ref="mpphontel"/>
- <col ref="depttel"/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <col ref="fromtm" visibility="hidden"/>
- <col ref="totm" visibility="hidden"/>
- <col ref="scheflagcd" visibility="hidden"/>
- <col ref="schecntscd" visibility="hidden"/>
- <col ref="cost" visibility="hidden"/>
- <col ref="diplyn" visibility="hidden"/>
- <col ref="plcenm" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="clscntscd" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- </datagrid>
- <button id="button11" class="btn5_letter2" style="left:767px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveYYSche();
- model.refresh();
-
- ]]>
- </script>
- </button>
- <line id="line20" class="line_1" style="x1:4px; y1:25px; x2:441px; y2:25px; "/>
- <caption id="caption29" class="tit_2" style="left:9px; top:11px; width:145px; height:14px; ">선택한 원목자 리스트</caption>
- <caption id="caption30" class="tit_2" style="left:450px; top:11px; width:145px; height:13px; ">연간일정 등록</caption>
- <caption id="caption9" style="left:638px; top:135px; width:15px; height:15px; ">원</caption>
- <button id="button1" class="btn5_letter3" style="left:812px; top:5px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //연간일정 등록 초기화
- fResetYY();
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption5" class="cell_1" style="left:447px; top:104px; width:85px; height:23px; vertical-align:middle; ">분류내용</caption>
- <line id="line4" class="line_2" style="x1:446px; y1:103px; x2:864px; y2:103px; "/>
- <select1 id="rdo_clscntscd" ref="/root/main/yyschecnts/yyschecntsinfo/clscntscd" overflow="visible" appearance="full" cols="2" style="left:535px; top:105px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>팀</label>
- <value>1</value>
- </item>
- <item>
- <label>개별</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_cost" ref="/root/main/yyschecnts/yyschecntsinfo/cost" class="input_default" maxlength="9" format="#,###" style="left:534px; top:130px; width:100px; height:19px; "/>
- <select1 id="cmb_diplyn" ref="/root/main/yyschecnts/yyschecntsinfo/diplyn" class="combo_default" appearance="minimal" style="left:745px; top:130px; width:65px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_plcenm" ref="/root/main/yyschecnts/yyschecntsinfo/plcenm" class="input_default" imemode="hangul" maxlength="33" style="left:534px; top:153px; width:331px; height:19px; "/>
- <input id="ipt_rem" ref="/root/main/yyschecnts/yyschecntsinfo/rem" class="input_default" imemode="hangul" maxlength="30" style="left:534px; top:178px; width:331px; height:19px; "/>
- <caption id="caption10" class="cell_1" style="left:446px; top:54px; width:85px; height:23px; vertical-align:middle; ">시작시간</caption>
- <caption id="caption12" class="cell_1" style="left:657px; top:54px; width:85px; height:23px; vertical-align:middle; ">종료시간</caption>
- <input id="ipt_fromtm" ref="/root/main/yyschecnts/yyschecntsinfo/fromtm" class="input_default" maxlength="9" format="hh:nn" style="left:534px; top:56px; width:120px; height:19px; "/>
- <input id="ipt_totm" ref="/root/main/yyschecnts/yyschecntsinfo/totm" class="input_default" maxlength="9" format="hh:nn" style="left:745px; top:55px; width:120px; height:19px; "/>
- </case>
- </switch>
- <datagrid id="grd_yyschelist" nodeset="/root/main/yyschelist/yyschelistinfo" autoresize="true" caption="^시작일^종료일^시작시간^종료시간^구분^내용^분류내용^비용^수료증 여부^장소^비고^원목자아이디^구분코드_a^일련번호^상태" colwidth="30, 95, 95, 60, 60, 105, 100, 60, 70, 70, 115, 99, 40, 40, 40, 40" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:320px; top:515px; width:874px; height:225px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate"/>
- <col ref="fromtm" type="input" format="hh:nn"/>
- <col ref="totm" type="input" format="hh:nn"/>
- <col ref="scheflagcd" type="combo" disabled="true">
- <choices>
- <itemset nodeset="/root/init/comcodelist/scheflag_cmblist/A0217">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="schecntscd" type="combo">
- <choices>
- <itemset nodeset="/root/init/comcodelist/schecnts_cmblist/A0218">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="clscntscd" type="combo">
- <choices>
- <item>
- <label>팀</label>
- <value>1</value>
- </item>
- <item>
- <label>개별</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="cost" type="input" maxlength="9" style="text-align:right; "/>
- <col ref="diplyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="plcenm" type="input" imemode="hangul" maxlength="33"/>
- <col ref="rem" type="input" imemode="hangul" maxlength="30" allowuserresize="true"/>
- <col ref="conslrid" visibility="hidden"/>
- <col ref="scheflagcd_a" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //fChkYYSche();
-
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelYYSche();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //연간일정구분 그리드 콤보 변경에 따른 내용콤보 셋팅
- fScheflagChgRef_Grd();
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- fEntCelYYSche();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:320px; y1:510px; x2:1194px; y2:510px; "/>
- <caption id="caption2" class="tit_2" style="left:325px; top:496px; width:160px; height:13px; ">연간일정 조회</caption>
- <button id="button3" class="btn5_letter2" style="left:1107px; top:490px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUpdtYYSche();
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" style="left:1152px; top:490px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelYYSche();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_yyyear" ref="/root/main/cond_refyy/yy_refyear" class="combo_default" appearance="minimal" style="left:994px; top:490px; width:56px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combolist/yysche">
- <label ref="yyscheyear"/>
- <value ref="yyscheyear"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당 원목자의 연간일정 조회
- fYYScheListRef();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ngdtmonth" ref="/root/main/cond_refngdt/ngdt_refmonth" class="combo_default" appearance="minimal" style="left:174px; top:490px; width:51px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>1월</label>
- <value>01</value>
- </item>
- <item>
- <label>2월</label>
- <value>02</value>
- </item>
- <item>
- <label>3월</label>
- <value>03</value>
- </item>
- <item>
- <label>4월</label>
- <value>04</value>
- </item>
- <item>
- <label>5월</label>
- <value>05</value>
- </item>
- <item>
- <label>6월</label>
- <value>06</value>
- </item>
- <item>
- <label>7월</label>
- <value>07</value>
- </item>
- <item>
- <label>8월</label>
- <value>08</value>
- </item>
- <item>
- <label>9월</label>
- <value>09</value>
- </item>
- <item>
- <label>10월</label>
- <value>10</value>
- </item>
- <item>
- <label>11월</label>
- <value>11</value>
- </item>
- <item>
- <label>12월</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당 원목자의 당직일정 조회
- fNgdtScheListRef();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ngdtyear" ref="/root/main/cond_refngdt/ngdt_refyear" class="combo_default" appearance="minimal" style="left:115px; top:490px; width:56px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/combolist/ngdtsche">
- <label ref="ngdtscheyear"/>
- <value ref="ngdtscheyear"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당 원목자의 당직일정 조회
- fNgdtScheListRef();
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_yymonth" ref="/root/main/cond_refyy/yy_refmonth" class="combo_default" appearance="minimal" style="left:1053px; top:490px; width:51px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>1월</label>
- <value>01</value>
- </item>
- <item>
- <label>2월</label>
- <value>02</value>
- </item>
- <item>
- <label>3월</label>
- <value>03</value>
- </item>
- <item>
- <label>4월</label>
- <value>04</value>
- </item>
- <item>
- <label>5월</label>
- <value>05</value>
- </item>
- <item>
- <label>6월</label>
- <value>06</value>
- </item>
- <item>
- <label>7월</label>
- <value>07</value>
- </item>
- <item>
- <label>8월</label>
- <value>08</value>
- </item>
- <item>
- <label>9월</label>
- <value>09</value>
- </item>
- <item>
- <label>10월</label>
- <value>10</value>
- </item>
- <item>
- <label>11월</label>
- <value>11</value>
- </item>
- <item>
- <label>12월</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //해당 원목자의 연간일정 조회
-
- fYYScheListRef();
- fScheCntsRef();
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_AYA00300" class="btn3_letter6" style="left:1085px; top:3px; width:104px; height:22px; ">
- <caption>연간일정조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAYA00300();
- ]]>
- </script>
- </button>
- <button id="button83" class="btn3_letter8" style="left:955px; top:3px; width:128px; height:22px; ">
- <caption>당직일정현황조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAYA00200();
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">당직 및 연간일정등록관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|