12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD12900" position="absolute 0 0 1199 800" titletext="학생번표등록" oninit="SMRPD12900_oninit" onload="SMRPD12900_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="학생번표등록" class="tit_1" position="absolute 0 0 125 25"/>
- <Button id="btn_admin" taborder="1" text="관리자모드" class="btn3" position="absolute 0 26 92 48" onclick="btn_admin_onclick"/>
- <Shape id="line75" class="line_6" position="absolute 0 47 1195 53" anchor="left top right"/>
- <Button id="btn_synY" taborder="2" text="수간호사결재" class="btn4" position="absolute 718 26 822 48" anchor="top right" onclick="btn_synY_onclick"/>
- <Button id="button5" taborder="3" text="출력" class="btn4" position="absolute 661 26 717 48" anchor="top right" onclick="button5_onclick"/>
- <Button id="btn_synN" taborder="4" text="수간호사결재해제" class="btn4" position="absolute 823 26 951 48" anchor="top right" onclick="btn_synN_onclick"/>
- <Button id="btn_mynY" taborder="5" text="최종확인" class="btn4" position="absolute 952 26 1032 48" anchor="top right" onclick="btn_mynY_onclick"/>
- <Button id="btn_mynN" taborder="6" text="최종확인해제" class="btn4" position="absolute 1033 26 1137 48" anchor="top right" onclick="btn_mynN_onclick"/>
- <Button id="btn_save" taborder="7" text="저장" class="btn4" position="absolute 1138 26 1194 48" anchor="top right" onclick="btn_save_onclick"/>
- <Shape id="line1" class="line_10" position="absolute 0 118 1195 124" anchor="left top right"/>
- <Static id="caption9" text="근무 스케줄" class="tit_2" position="absolute 0 102 109 123"/>
- <Div id="group4" taborder="8" class="div_SA2" position="absolute 0 51 1195 91" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption5" text="부서 :" class="search_name" position="absolute 260 11 325 28"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1107 10 1113 28" anchor="top right"/>
- <Static id="caption1" text="근무년월 :" class="search_name" position="absolute 575 11 666 28"/>
- <Calendar id="ipt_dutym" taborder="7" class="input_search" position="absolute 655 10 765 29" mask="yyyy-mm" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group4_ipt_dutym_onchanged" style="align:center middle;"/>
- <Edit id="ipt_dutdeptcd" taborder="8" class="input_s_essential" position="absolute 314 10 399 29" autoselect="true" autoskip="true" onkeydown="group4_ipt_dutdeptcd_onkeydown"/>
- <Edit id="ipt_dutdeptnm" taborder="9" class="input_search" enable="false" position="absolute 423 10 557 29" autoselect="true"/>
- <Button id="btn_dutdept" taborder="10" class="icon_search" position="absolute 404 11 420 27" onclick="group4_btn_dutdept_onclick"/>
- <Button id="btn_search" taborder="11" text="조회" class="btn1" visible="false" position="absolute 1045 9 1101 31" onclick="group4_btn_search_onclick"/>
- <Button id="button1" taborder="12" text="조회" class="btn1" position="absolute 1122 9 1178 31" anchor="top right" onclick="group4_button1_onclick"/>
- <Static id="caption8" text="기관 :" class="search_name" position="absolute 15 11 80 28"/>
- <Combo id="cmb_instcd" taborder="13" position="absolute 65 10 240 29"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_dutcdflag" taborder="9" text="행추가" class="btn2" position="absolute 940 99 993 118" anchor="top right" onclick="btn_dutcdflag_onclick"/>
- <Button id="btn_excsave" taborder="10" text="엑셀저장" class="btn7" position="absolute 859 99 939 118" anchor="top right" onclick="btn_excsave_onclick"/>
- <Button id="btn_delrow" taborder="11" text="행삭제" class="btn2" position="absolute 994 99 1047 118" anchor="top right" onclick="btn_delrow_onclick"/>
- <Grid id="grd_dutschelist" taborder="12" binddataset="ds_main_stusche_stuschelist" useinputpanel="false" position="absolute 0 123 1049 794" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_dutschelist_oncelldblclick" selecttype="multiarea">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22" band="left"/>
- <Column size="130" band="left"/>
- <Column size="140" band="left"/>
- <Column size="90" band="left"/>
- <Column size="90" band="left"/>
- <Column size="80" band="left"/>
- <Column size="60" band="left"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="24"/>
- <Column size="270"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="부서" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="실습의뢰기관" taborder="undefined"/>
- <Cell col="3" colspan="2" text="기간" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="학년/ 과정" taborder="undefined"/>
- <Cell col="6" rowspan="2" text="성명" taborder="undefined"/>
- <Cell col="7" text="1"/>
- <Cell col="8" text="2"/>
- <Cell col="9" text="3"/>
- <Cell col="10" text="4"/>
- <Cell col="11" text="5"/>
- <Cell col="12" text="6"/>
- <Cell col="13" text="7"/>
- <Cell col="14" text="8"/>
- <Cell col="15" text="9"/>
- <Cell col="16" text="10"/>
- <Cell col="17" text="11"/>
- <Cell col="18" text="12"/>
- <Cell col="19" text="13"/>
- <Cell col="20" text="14"/>
- <Cell col="21" text="15"/>
- <Cell col="22" text="16"/>
- <Cell col="23" text="17"/>
- <Cell col="24" text="18"/>
- <Cell col="25" text="19"/>
- <Cell col="26" text="20"/>
- <Cell col="27" text="21"/>
- <Cell col="28" text="22"/>
- <Cell col="29" text="23"/>
- <Cell col="30" text="24"/>
- <Cell col="31" text="25"/>
- <Cell col="32" text="26"/>
- <Cell col="33" text="27"/>
- <Cell col="34" text="28"/>
- <Cell col="35" text="29"/>
- <Cell col="36" text="30"/>
- <Cell col="37" text="31"/>
- <Cell col="38" rowspan="2" text="비고" taborder="undefined"/>
- <Cell col="39"/>
- <Cell col="40"/>
- <Cell col="41"/>
- <Cell col="42"/>
- <Cell col="43"/>
- <Cell col="44"/>
- <Cell col="45"/>
- <Cell col="46"/>
- <Cell col="47"/>
- <Cell col="48"/>
- <Cell col="49"/>
- <Cell col="50"/>
- <Cell row="1" col="3" text="시작일"/>
- <Cell row="1" col="4" text="종료일"/>
- <Cell row="1" col="7" text="월"/>
- <Cell row="1" col="8" text="화"/>
- <Cell row="1" col="9" text="수"/>
- <Cell row="1" col="10" text="목"/>
- <Cell row="1" col="11" text="금"/>
- <Cell row="1" col="12" text="토"/>
- <Cell row="1" col="13" text="일"/>
- <Cell row="1" col="14" text="월"/>
- <Cell row="1" col="15" text="화"/>
- <Cell row="1" col="16" text="수"/>
- <Cell row="1" col="17" text="목"/>
- <Cell row="1" col="18" text="금"/>
- <Cell row="1" col="19" text="토"/>
- <Cell row="1" col="20" text="일"/>
- <Cell row="1" col="21" text="월"/>
- <Cell row="1" col="22" text="화"/>
- <Cell row="1" col="23" text="수"/>
- <Cell row="1" col="24" text="목"/>
- <Cell row="1" col="25" text="금"/>
- <Cell row="1" col="26" text="토"/>
- <Cell row="1" col="27" text="일"/>
- <Cell row="1" col="28" text="월"/>
- <Cell row="1" col="29" text="화"/>
- <Cell row="1" col="30" text="수"/>
- <Cell row="1" col="31" text="목"/>
- <Cell row="1" col="32" text="금"/>
- <Cell row="1" col="33" text="토"/>
- <Cell row="1" col="34" text="일"/>
- <Cell row="1" col="35" text="월"/>
- <Cell row="1" col="36" text="화"/>
- <Cell row="1" col="37" text="수"/>
- <Cell row="1" col="39"/>
- <Cell row="1" col="40"/>
- <Cell row="1" col="41"/>
- <Cell row="1" col="42"/>
- <Cell row="1" col="43"/>
- <Cell row="1" col="44"/>
- <Cell row="1" col="45"/>
- <Cell row="1" col="46"/>
- <Cell row="1" col="47"/>
- <Cell row="1" col="48"/>
- <Cell row="1" col="49"/>
- <Cell row="1" col="50"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'text'" style="align:left middle;padding:2 2 2 2;" text="bind:deptnm" combodisplayrowcount="20"/>
- <Cell col="2" displaytype="combo" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'combo'" style="align:left middle;padding:2 2 2 2;" text="bind:collegename" combodisplayrowcount="20" enable="false"/>
- <Cell col="3" displaytype="date" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'date'" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" displaytype="date" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'date'" text="bind:todd" calendardisplaynulltype="nulltext"/>
- <Cell col="5" displaytype="combo" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'combo'" style="align:center middle;" text="bind:schoolyy" combodataset="ds_cmb_schoolyy" combocodecol="value" combodatacol="label" combodisplayrowcount="20"/>
- <Cell col="6" displaytype="text" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'text'" style="align:center middle;" text="bind:nrname" enable="false"/>
- <Cell col="7" text="bind:day1"/>
- <Cell col="8" text="bind:day2"/>
- <Cell col="9" text="bind:day3"/>
- <Cell col="10" text="bind:day4"/>
- <Cell col="11" text="bind:day5"/>
- <Cell col="12" text="bind:day6"/>
- <Cell col="13" text="bind:day7"/>
- <Cell col="14" text="bind:day8"/>
- <Cell col="15" text="bind:day9"/>
- <Cell col="16" text="bind:day10"/>
- <Cell col="17" text="bind:day11"/>
- <Cell col="18" text="bind:day12"/>
- <Cell col="19" text="bind:day13"/>
- <Cell col="20" text="bind:day14"/>
- <Cell col="21" text="bind:day15"/>
- <Cell col="22" text="bind:day16"/>
- <Cell col="23" text="bind:day17"/>
- <Cell col="24" text="bind:day18"/>
- <Cell col="25" text="bind:day19"/>
- <Cell col="26" text="bind:day20"/>
- <Cell col="27" text="bind:day21"/>
- <Cell col="28" text="bind:day22"/>
- <Cell col="29" text="bind:day23"/>
- <Cell col="30" text="bind:day24"/>
- <Cell col="31" text="bind:day25"/>
- <Cell col="32" text="bind:day26"/>
- <Cell col="33" text="bind:day27"/>
- <Cell col="34" text="bind:day28"/>
- <Cell col="35" text="bind:day29"/>
- <Cell col="36" text="bind:day30"/>
- <Cell col="37" text="bind:day31"/>
- <Cell col="38" displaytype="text" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'text'" text="bind:bigo"/>
- <Cell col="39" text="bind:wardid"/>
- <Cell col="40" text="bind:deptcd"/>
- <Cell col="41" text="bind:scmonth"/>
- <Cell col="42" text="bind:conf_sid"/>
- <Cell col="43" text="bind:conf_syn"/>
- <Cell col="44" text="bind:conf_mid"/>
- <Cell col="45" text="bind:conf_myn"/>
- <Cell col="46" text="bind:modtime"/>
- <Cell col="47" text="bind:flag"/>
- <Cell col="48" text="bind:conf_snm"/>
- <Cell col="49" text="bind:instcd"/>
- <Cell col="50" text="bind:collegenm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_dutcdlist" class="text_center" taborder="13" binddataset="ds_main_dutcd_dutcdlist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 1049 123 1194 794" anchor="top right bottom" oncelldblclick="grd_dutcdlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="35"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="코드" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="근무명" taborder="undefined"/>
- <Cell col="2" text="근무코드명"/>
- <Cell col="3" text="근무시간"/>
- <Cell col="4" text="Day인원"/>
- <Cell col="5" text="Evening인원"/>
- <Cell col="6" text="Night인원"/>
- <Cell row="1" col="2" text="근무코드명"/>
- <Cell row="1" col="3" text="근무시간"/>
- <Cell row="1" col="4" text="Day인원"/>
- <Cell row="1" col="5" text="Evening인원"/>
- <Cell row="1" col="6" text="Night인원"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;padding:2 2 2 2;font:돋움체,9;" text="bind:dutcd"/>
- <Cell col="1" style="align:left middle;padding:2 2 2 2;font:돋움체,9;" text="bind:dutnm"/>
- <Cell col="2" text="bind:dutcdnm"/>
- <Cell col="3" text="bind:duttm"/>
- <Cell col="4" text="bind:daycnt"/>
- <Cell col="5" text="bind:eveningpsnno"/>
- <Cell col="6" text="bind:nigtpsnno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group2" taborder="14" visible="false" position="absolute 15 233 590 779" style="border:2 solid #808080ff ;">
- <Layouts>
- <Layout width="570" height="522">
- <Static id="caption3" text="관리자 화면" class="tit_1" position="absolute 1 1 106 26" anchor="default"/>
- <Grid id="grd_popdeptschlist" taborder="14" binddataset="ds_main_popup_main_deptsche_deptschelist" useinputpanel="false" position="absolute 1 118 569 512" anchor="default" autoenter="select" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="40"/>
- <Column size="297"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="55"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="√"/>
- <Cell col="2" text="병 동 / 부 서"/>
- <Cell col="3" text="근무년월"/>
- <Cell col="4" text="수간호결재"/>
- <Cell col="5" text="최종확인"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'Y' || chkflag == '1' ? 1 : 0"/>
- <Cell col="2" style="align:left middle;padding:2 2 2 2;" text="bind:deptnm"/>
- <Cell col="3" style="align:center middle;" text="bind:scmonth" mask="####-##" maskchar=" "/>
- <Cell col="4" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:conf_syn" expr="expr:conf_syn == 'Y' || conf_syn == '1' ? 1 : 0" enable="false"/>
- <Cell col="5" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:conf_myn" expr="expr:conf_myn == 'Y' || conf_myn == '1' ? 1 : 0" enable="false"/>
- <Cell col="6" text="bind:deptcd"/>
- <Cell col="7" text="bind:confchk"/>
- <Cell col="8" text="bind:instcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 1 113 569 119" anchor="default"/>
- <Static id="caption7" text="병동별 스케쥴" class="tit_2" position="absolute 1 97 110 119" anchor="default"/>
- <Button id="button4" taborder="15" text="종료" class="btn4" position="absolute 513 513 569 535" anchor="default" onclick="group2_button4_onclick"/>
- <Button id="button6" taborder="17" text="전체선택" class="btn2" position="absolute 439 94 503 113" anchor="default" onclick="group2_button6_onclick"/>
- <Button id="button7" taborder="18" text="전체해제" class="btn2" position="absolute 504 94 568 113" anchor="default" onclick="group2_button7_onclick"/>
- <Button id="btn_popmynN" taborder="20" text="취소" class="btn4" position="absolute 513 27 569 49" anchor="default" onclick="group2_btn_popmynN_onclick"/>
- <Button id="btn_popmynY" taborder="21" text="최종확인" class="btn4" position="absolute 432 27 512 49" anchor="default" onclick="group2_btn_popmynY_onclick"/>
- <Button id="btn_popsynN" taborder="22" text="취소" class="btn4" position="absolute 375 27 431 49" anchor="default" onclick="group2_btn_popsynN_onclick"/>
- <Button id="btn_popsynY" taborder="23" text="수간호사결재" class="btn4" position="absolute 270 27 374 49" anchor="default" onclick="group2_btn_popsynY_onclick"/>
- <Button id="btn_schoolprint" taborder="24" text="실습의뢰기관별출력" class="btn4" position="absolute 94 27 234 49" anchor="default" onclick="group2_btn_schoolprint_onclick"/>
- <Button id="btn_deptprint" taborder="25" text="부서별출력" class="btn4" position="absolute 1 27 93 49" anchor="default" onclick="group2_btn_deptprint_onclick"/>
- <Div id="group3" taborder="26" class="div_SA2" position="absolute 1 50 569 90" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="line2" linetype="vertical" class="line_4" position="absolute 492 11 498 29" anchor="default"/>
- <Button id="pop_search" taborder="5" text="조회" class="btn1" position="absolute 505 9 561 31" anchor="default" onclick="group2_group3_pop_search_onclick"/>
- <Radio id="rbo_popflag" taborder="6" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 377 11 487 31" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">부서</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">실습기관</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Calendar id="pop_dutym" taborder="7" class="input_search" position="absolute 288 11 366 30" mask="yyyy-mm" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group2_group3_pop_dutym_onchanged"/>
- <Static id="caption2" text="근무년월 :" class="search_name" position="absolute 206 12 297 29" anchor="default"/>
- <Combo id="cmb_instcdpopup" taborder="8" position="absolute 63 11 203 30" anchor="default"/>
- <Static id="caption10" text="기관 :" class="search_name" position="absolute 5 12 70 29" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
- <ColumnInfo>
- <Column id="dutunitcd" type="STRING" size="256"/>
- <Column id="dutunitnm" type="STRING" size="256"/>
- <Column id="dutym" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dutunitcd"/>
- <Col id="dutunitnm"/>
- <Col id="dutym"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_stusche_stuschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="collegename" type="STRING" size="256" sumtext=""/>
- <Column id="collegenm" type="STRING" size="256" sumtext=""/>
- <Column id="deptcd" type="STRING" size="256" sumtext=""/>
- <Column id="deptnm" type="STRING" size="256" sumtext=""/>
- <Column id="scmonth" type="STRING" size="256" sumtext=""/>
- <Column id="nrname" type="STRING" size="256" sumtext=""/>
- <Column id="day1" type="STRING" size="256" sumtext=""/>
- <Column id="day2" type="STRING" size="256" sumtext=""/>
- <Column id="day3" type="STRING" size="256" sumtext=""/>
- <Column id="day4" type="STRING" size="256" sumtext=""/>
- <Column id="day5" type="STRING" size="256" sumtext=""/>
- <Column id="day6" type="STRING" size="256" sumtext=""/>
- <Column id="day7" type="STRING" size="256" sumtext=""/>
- <Column id="day8" type="STRING" size="256" sumtext=""/>
- <Column id="day9" type="STRING" size="256" sumtext=""/>
- <Column id="day10" type="STRING" size="256" sumtext=""/>
- <Column id="day11" type="STRING" size="256" sumtext=""/>
- <Column id="day12" type="STRING" size="256" sumtext=""/>
- <Column id="day13" type="STRING" size="256" sumtext=""/>
- <Column id="day14" type="STRING" size="256" sumtext=""/>
- <Column id="day15" type="STRING" size="256" sumtext=""/>
- <Column id="day16" type="STRING" size="256" sumtext=""/>
- <Column id="day17" type="STRING" size="256" sumtext=""/>
- <Column id="day18" type="STRING" size="256" sumtext=""/>
- <Column id="day19" type="STRING" size="256" sumtext=""/>
- <Column id="day20" type="STRING" size="256" sumtext=""/>
- <Column id="day21" type="STRING" size="256" sumtext=""/>
- <Column id="day22" type="STRING" size="256" sumtext=""/>
- <Column id="day23" type="STRING" size="256" sumtext=""/>
- <Column id="day24" type="STRING" size="256" sumtext=""/>
- <Column id="day25" type="STRING" size="256" sumtext=""/>
- <Column id="day26" type="STRING" size="256" sumtext=""/>
- <Column id="day27" type="STRING" size="256" sumtext=""/>
- <Column id="day28" type="STRING" size="256" sumtext=""/>
- <Column id="day29" type="STRING" size="256" sumtext=""/>
- <Column id="day30" type="STRING" size="256" sumtext=""/>
- <Column id="day31" type="STRING" size="256" sumtext=""/>
- <Column id="bigo" type="STRING" size="256" sumtext=""/>
- <Column id="conf_sid" type="STRING" size="256" sumtext=""/>
- <Column id="conf_syn" type="STRING" size="256" sumtext=""/>
- <Column id="conf_mid" type="STRING" size="256" sumtext=""/>
- <Column id="conf_myn" type="STRING" size="256" sumtext=""/>
- <Column id="wardid" type="STRING" size="256" sumtext=""/>
- <Column id="flag" type="STRING" size="256" sumtext=""/>
- <Column id="conf_snm" type="STRING" size="256" sumtext=""/>
- <Column id="schoolyy" type="STRING" size="256" sumtext=""/>
- <Column id="fromdd" type="STRING" size="256" sumtext=""/>
- <Column id="todd" type="STRING" size="256" sumtext=""/>
- <Column id="instcd" type="STRING" size="256" sumtext=""/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_dutcd_dutcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_popup_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dutym" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="popflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="popflag">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_popup_main_deptsche_deptschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_popup_main_deptsche_deptschelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="confchk" type="STRING" size="256" sumtext="체크"/>
- <Column id="chkflag" type="STRING" size="256" sumtext="체크"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서"/>
- <Column id="scmonth" type="STRING" size="256" sumtext="년월"/>
- <Column id="conf_syn" type="STRING" size="256" sumtext="수간호결제"/>
- <Column id="conf_myn" type="STRING" size="256" sumtext="최종확인"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_count" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_schoolyy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">1</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">2</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">3</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">4</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">전문간호사</Col>
- <Col id="value">전문간호사</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_week" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_pass" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_popup_print_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="dutym" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="indeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="dutym"/>
- <Col id="flag"/>
- <Col id="indeptcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_popup_print_stusche" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="collegename" type="STRING" size="256" sumtext=""/>
- <Column id="collegenm" type="STRING" size="256" sumtext=""/>
- <Column id="deptcd" type="STRING" size="256" sumtext=""/>
- <Column id="deptnm" type="STRING" size="256" sumtext=""/>
- <Column id="scmonth" type="STRING" size="256" sumtext=""/>
- <Column id="nrname" type="STRING" size="256" sumtext=""/>
- <Column id="day1" type="STRING" size="256" sumtext=""/>
- <Column id="day2" type="STRING" size="256" sumtext=""/>
- <Column id="day3" type="STRING" size="256" sumtext=""/>
- <Column id="day4" type="STRING" size="256" sumtext=""/>
- <Column id="day5" type="STRING" size="256" sumtext=""/>
- <Column id="day6" type="STRING" size="256" sumtext=""/>
- <Column id="day7" type="STRING" size="256" sumtext=""/>
- <Column id="day8" type="STRING" size="256" sumtext=""/>
- <Column id="day9" type="STRING" size="256" sumtext=""/>
- <Column id="day10" type="STRING" size="256" sumtext=""/>
- <Column id="day11" type="STRING" size="256" sumtext=""/>
- <Column id="day12" type="STRING" size="256" sumtext=""/>
- <Column id="day13" type="STRING" size="256" sumtext=""/>
- <Column id="day14" type="STRING" size="256" sumtext=""/>
- <Column id="day15" type="STRING" size="256" sumtext=""/>
- <Column id="day16" type="STRING" size="256" sumtext=""/>
- <Column id="day17" type="STRING" size="256" sumtext=""/>
- <Column id="day18" type="STRING" size="256" sumtext=""/>
- <Column id="day19" type="STRING" size="256" sumtext=""/>
- <Column id="day20" type="STRING" size="256" sumtext=""/>
- <Column id="day21" type="STRING" size="256" sumtext=""/>
- <Column id="day22" type="STRING" size="256" sumtext=""/>
- <Column id="day23" type="STRING" size="256" sumtext=""/>
- <Column id="day24" type="STRING" size="256" sumtext=""/>
- <Column id="day25" type="STRING" size="256" sumtext=""/>
- <Column id="day26" type="STRING" size="256" sumtext=""/>
- <Column id="day27" type="STRING" size="256" sumtext=""/>
- <Column id="day28" type="STRING" size="256" sumtext=""/>
- <Column id="day29" type="STRING" size="256" sumtext=""/>
- <Column id="day30" type="STRING" size="256" sumtext=""/>
- <Column id="day31" type="STRING" size="256" sumtext=""/>
- <Column id="bigo" type="STRING" size="256" sumtext=""/>
- <Column id="conf_sid" type="STRING" size="256" sumtext=""/>
- <Column id="conf_syn" type="STRING" size="256" sumtext=""/>
- <Column id="conf_mid" type="STRING" size="256" sumtext=""/>
- <Column id="conf_myn" type="STRING" size="256" sumtext=""/>
- <Column id="wardid" type="STRING" size="256" sumtext=""/>
- <Column id="flag" type="STRING" size="256" sumtext=""/>
- <Column id="conf_snm" type="STRING" size="256" sumtext=""/>
- <Column id="schoolyy" type="STRING" size="256" sumtext=""/>
- <Column id="fromdd" type="STRING" size="256" sumtext=""/>
- <Column id="todd" type="STRING" size="256" sumtext=""/>
- <Column id="instcd" type="STRING" size="256" sumtext=""/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group4.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
- <BindItem id="item1" compid="group4.ipt_dutdeptcd" propid="value" datasetid="ds_send" columnid="dutunitcd"/>
- <BindItem id="item2" compid="group4.ipt_dutdeptnm" propid="value" datasetid="ds_send" columnid="dutunitnm"/>
- <BindItem id="item3" compid="group4.ipt_dutym" propid="value" datasetid="ds_send" columnid="dutym"/>
- <BindItem id="item4" compid="group2.group3.cmb_instcdpopup" propid="value" datasetid="ds_popup_send" columnid="instcd"/>
- <BindItem id="item5" compid="group2.group3.pop_dutym" propid="value" datasetid="ds_popup_send" columnid="dutym"/>
- <BindItem id="item6" compid="group2.group3.rbo_popflag" propid="value" datasetid="ds_popup_send" columnid="popflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- function SMRPD12900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD12900_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_dutschelist);
- grdf_setRowTypeIcon(grd_dutschelist, 0);
-
- grdf_initGrid(grd_dutcdlist);
-
- grdf_initGrid(group2.grd_popdeptschlist);
- grdf_setRowTypeIcon(group2.grd_popdeptschlist, 0);
-
- misfGridInit(grd_dutschelist);
- misfGridInit(grd_dutcdlist);
- var logindeptcd = sysf_getUserInfo("dutplcecd");
- var logindeptnm = sysf_getUserInfo("dutplcenm");
- var loginid = sysf_getUserInfo("userid");
-
- misfComboInstCdListMulti("group4.cmb_instcd",utlf_getCurrentDate(),"","N");
- misfComboInstCdListMulti("group2.group3.cmb_instcdpopup",utlf_getCurrentDate(),"","N");
- misfGridComboComCdList("R0529",grd_dutschelist,"collegename");
-
- ds_send.setColumn(0, "emplno", sysf_getUserInfo("userid"));
-
- var oParam = {};
- oParam.id = "TRRPD12903";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetNurBossChk";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_count=count";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD12903";
- tranf_submit(oParam);
-
- if(ds_count.getColumn(0, "cnt") == "0")
- {
- btn_synY.enable = false;
- btn_mynY.enable = false;
- btn_admin.visible = false;
- group4.button1.enable = false;
- }
- if(sysf_getUserInfo("userid") == "MIS")
- {
- btn_synY.enable = true;
- btn_mynY.enable = true;
- btn_admin.visible = true;
- group4.button1.enable = true;
- }
-
- ds_send.enableevent = false;
- ds_send.setColumn(0, "dutym", String(utlf_getCurrentDate()).substr(0,6));
- ds_send.setColumn(0, "dutunitcd", logindeptcd);
- ds_send.setColumn(0, "dutunitnm", logindeptnm);
- ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send.enableevent = true;
-
- ds_popup_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- }
- function group4_ipt_dutdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", ds_send.getColumn(0, "instcd"), "instcd" );
-
- if(!utlf_isNull(group4.ipt_dutdeptnm.value))
- {
- btnflag = "0";
- group4.btn_search.click();
- }
- }
- }
- function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "dutunitcd")
- {
- group4.ipt_dutdeptcd.value = e.newvalue;
- group4.ipt_dutdeptcd.setFocus();
-
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", ds_send.getColumn(0, "instcd"), "instcd" );
-
- if(!utlf_isNull(group4.ipt_dutdeptnm.value))
- {
- btnflag = "0";
- group4.btn_search.click();
- }
- }
- }
- function group4_btn_dutdept_onclick(obj:Button, e:ClickEventInfo)
- {
- misfOpenPopUpList("02", group4.ipt_dutdeptcd,"","dutunitcd,dutunitnm", ds_send.getColumn(0, "instcd")+ "," + group4.ipt_dutym.value+"31", "instcd,basedd");
- if(!utlf_isNull(group4.ipt_dutdeptnm.value))
- {
- btnflag = "0";
- group4.btn_search.click();
- }
- }
- function group4_ipt_dutym_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_send.setColumn(0, "dutym", String(obj.value).substr(0,6));
-
- btnflag = "0";
- group4.btn_search.click();
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_count.getColumn(0, "cnt") != "0")
- {
- btn_synY.enable = true;
- btn_mynY.enable = true;
- }
- if(sysf_getUserInfo("userid") == "MIS")
- {
- btn_synY.enable = true;
- btn_mynY.enable = true;
- }
-
- btn_synN.enable = true;
- btn_mynN.enable = true;
- btn_excsave.enable = true;
- btn_dutcdflag.enable = true;
- btn_delrow.enable = true;
-
- misfGridInit(grd_dutschelist);
-
- dutcdlistaddrow();
-
- for(var i = 1; i < 32; i++)
- {
- var dt = ds_send.getColumn(0, "dutym")+i
-
- grd_dutschelist.setCellProperty("Head", parseInt(i+51), "text", dt.toDate().getDayOfWeek("K"));
- }
- var oParam = {};
- oParam.id = "TRRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetStuScheList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_stusche_stuschelist=stuschelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD12901";
- tranf_submit(oParam);
-
- ds_main_stusche_stuschelist.rowposition = -1;
-
- ds_main_stusche_stuschelist.updatecontrol = false;
- if(btnflag == "0")
- {
- for(o = 1 ; o < 4 ; o++)
- {
- var m = ds_main_stusche_stuschelist.addRow();
-
- var dut = "";
- if(o == 1)
- {
- dut = "Day";
- }
- else if(o ==2)
- {
- dut = "Evening";
- }
- else
- {
- dut = "Night";
- }
- ds_main_stusche_stuschelist.setColumn(m, "nrname", dut);
-
- for(j = 7 ; j < 38 ; j++)
- {
- var dsum = 0;
- if(o == 1)
- {
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(ds_main_stusche_stuschelist.getColumn(i, "day"+(j-6)) == "D")
- {
- dsum++;
- }
- }
-
- var col = "day"+(j-6);
- dsf_makeValue(ds_main_stusche_stuschelist, col, "string", dsum, m);
- }
- else if(o == 2)
- {
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(ds_main_stusche_stuschelist.getColumn(i, "day"+(j-6)) == "E")
- {
- dsum++;
- }
- dsf_makeValue(ds_main_stusche_stuschelist, "day"+(j-6), "string", dsum, m);
- }
- }
- else
- {
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(ds_main_stusche_stuschelist.getColumn(i, "day"+(j-6)) == "N")
- {
- dsum++;
- }
- dsf_makeValue(ds_main_stusche_stuschelist, "day"+(j-6), "string", dsum, m);
- }
- }
- }
- }
- ds_main_stusche_stuschelist.setRowType(m, "");
- ds_main_stusche_stuschelist.updatecontrol = true;
-
- for(var i = 0 ; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- var sNrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if( sNrname == 'Day' || sNrname == 'Evening' || sNrname == 'Night' ){
- misfSetGridColor(grd_dutschelist, "all", "#ccffff", "B", i);
- }
- }
-
- if(ds_main_stusche_stuschelist.getColumn(0, "conf_syn") == "Y")
- {
- btn_synY.enable = false;
- }
- else
- {
- btn_synN.enable = false;
- btn_save.enable = true;
- }
-
- if(ds_main_stusche_stuschelist.getColumn(0, "conf_myn") == "Y")
- {
- btn_mynY.enable = false;
- btn_synN.enable = false;
-
- sysf_messageBox("최종확인된 번표이므로 더이상 수정이 불가능합니다.", "E999", "");
- btn_save.enable = false;
- btn_dutcdflag.enable = false;
- btn_delrow.enable = false;
- }
- else
- {
- btn_mynN.enable = false;
- btn_save.enable = true;
- }
-
- if(ds_main_stusche_stuschelist.getColumn(0, "conf_syn") == "Y" && ds_main_stusche_stuschelist.getColumn(0, "conf_myn") == "N")
- {
- sysf_messageBox("수간호사 결재가 완료되어 간호부에 제출된 번표입니다.", "E999", "");
- }
- }
-
- var dutym = ds_send.getColumn(0, "dutym");
-
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(dutym != ds_main_stusche_stuschelist.getColumn(i, "scmonth"))
- {
- ds_main_stusche_stuschelist.updatecontrol = false;
- ds_main_stusche_stuschelist.setColumn(i, "scmonth", dutym);
- ds_main_stusche_stuschelist.updatecontrol = true;
- }
- }
- }
- function group4_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- group4.btn_search.click();
- }
- function dutcdlistaddrow()
- {
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "D", 0);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "Day", 0);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "E", 1);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "Evening", 1);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "N", 2);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "Night", 2);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "OF", 3);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "off", 3);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "C", 4);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "병결", 4);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "F", 5);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "축제/행사/시험", 5);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "A", 6);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "결석", 6);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "JC", 7);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "지각", 7);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "SS", 8);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "스프리트", 8);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "M", 9);
- dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "통상근무", 9);
- }
- function grd_dutschelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var dutcd = "";
- if(6 < e.col && e.col< 38 && !utlf_isNull(ds_main_stusche_stuschelist.getColumn(e.row, "collegename")))
- {
-
- var cell = e.cell;
- var row = e.row;
- var col = e.col
- var colID = obj.getCellProperty("Body", e.cell, "text");
- colID = colID.replace("bind:", "");
-
- ds_main_stusche_stuschelist.setColumn(row, colID, dutcd);
- misfSetGridColor(grd_dutschelist, colID, "#ffcccc", "B", row)
- for(var i = 0 ; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(row == i) continue;
-
- var sNrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if( sNrname == 'Day' || sNrname == 'Evening' || sNrname == 'Night' ){
- misfSetGridColor(grd_dutschelist, colID, "#ccffff", "B", i);
- }
- }
-
- if(ds_main_stusche_stuschelist.getRowType(row) == 1)
- {
- ds_main_stusche_stuschelist.updatecontrol = false;
- ds_main_stusche_stuschelist.setRowType(row, "u");
- ds_main_stusche_stuschelist.updatecontrol = true;
- }
- }
- }
- function grd_dutcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- var dutcd = ds_main_dutcd_dutcdlist.getColumn(e.row, "dutcd");
-
- if(6 < grd_dutschelist.currentcol && grd_dutschelist.currentcol < 38 && !utlf_isNull(ds_main_stusche_stuschelist.getColumn(ds_main_stusche_stuschelist.rowposition, "collegename")))
- {
- for( var k=0 ; k<grd_dutschelist.selectcount ; k++ ){
- var startrow = grd_dutschelist.selectstartrow[k];//grdRows[0];
- var endrow = grd_dutschelist.selectendrow[k];//grdRows[grdRows.length-1];
- var startcol = grd_dutschelist.selectstartcol[k];//grdCells[0];
- var endcol = grd_dutschelist.selectendcol[k];//grdCells[grdCells.length-1];
-
- for(var i = startrow ; i <= endrow; i++)
- {
- for(var j = startcol ; j <= endcol ; j++)
- {
- var colID = grd_dutschelist.getCellProperty("Body", j, "text");
- colID = colID.replace("bind:", "");
- misfSetGridColor(grd_dutschelist, colID, "#ffcccc", "B", i);
-
- ds_main_stusche_stuschelist.setColumn(i, colID, dutcd);
- }
- }
-
- for(var i = 0 ; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(startrow <= i && i <= endrow) continue;
-
- var sNrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if( sNrname == 'Day' || sNrname == 'Evening' || sNrname == 'Night' ){
- misfSetGridColor(grd_dutschelist, "all", "#ccffff", "B", i);
- }
-
- // if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "deptnm")))
- // {
- // misfSetGridColor(grd_dutschelist, "all", "#ccffff", "B", i)
- // }
- // else
- // {
- // misfSetGridColor(grd_dutschelist, "all", "", "B", i)
- // }
- }
- }
- }
- }
- function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- misfSaveExcel(grd_dutschelist);
- }
- function btn_dutcdflag_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(group4.ipt_dutdeptnm.value))
- {
- sysf_messageBox("위에 선택된 부서가 없습니다. 부서를 선택한 후 행추가를 눌러주세요.", "E999", "");
- return;
- }
- var chk = 0;
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(ds_main_stusche_stuschelist.getRowType(i) == 2)
- {
- chk++;
- }
- }
- if(chk == 0)
- {
- sysf_messageBox("행추가를 위해 재조회 합니다.", "I999", "");
- misfGridInit(grd_dutschelist);
- dutcdlistaddrow();
-
- for(var i = 1; i < 32; i++)
- {
- var dt = ds_send.getColumn(0, "dutym")+i
-
- grd_dutschelist.setCellProperty("Head", parseInt(i+51), "text", dt.toDate().getDayOfWeek("K"));
- }
-
- var oParam = {};
- oParam.id = "TRRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetStuScheList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_stusche_stuschelist=stuschelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD12901";
- tranf_submit(oParam);
- }
-
- var addRow = ds_main_stusche_stuschelist.addRow();
- ds_main_stusche_stuschelist.setColumn(addRow, "deptcd", ds_send.getColumn(0, "dutunitcd"));
- ds_main_stusche_stuschelist.setColumn(addRow, "deptnm", ds_send.getColumn(0, "dutunitnm"));
- ds_main_stusche_stuschelist.setColumn(addRow, "scmonth", ds_send.getColumn(0, "dutym"));
- ds_main_stusche_stuschelist.setColumn(addRow, "instcd", ds_send.getColumn(0, "instcd"));
- }
- function btn_delrow_onclick(obj:Button, e:ClickEventInfo)
- {
- var nrname = ds_main_stusche_stuschelist.getColumn(ds_main_stusche_stuschelist.rowposition, "nrname");
-
- if(nrname == "Day" || nrname == "Evening" || nrname == "Night")
- {
- return;
- }
- misfGridIUD(grd_dutschelist, "D");
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
- {
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
-
- btnflag = "0";
- group4.btn_search.click();
-
- ds_week.clearData();
-
- for(i = 1 ; i < 32 ; i++)
- {
- var dt = ds_send.getColumn(0, "dutym")+i;
- dsf_makeValue(ds_week, "week"+i, "string", dt.toDate().getDayOfWeek("K"), 0);
- }
-
- dsf_makeValue(ds_pass, "daytitle", "string", String(ds_send.getColumn(0, "dutym")).substr(0,4)+"년"+String(ds_send.getColumn(0, "dutym")).substr(4,2)+"월", 0);
- dsf_makeValue(ds_pass, "dept", "string", ds_send.getColumn(0, "dutunitnm"), 0);
- dsf_makeValue(ds_pass, "instnm", "string", group4.cmb_instcd.text, 0);
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
- rptf_setNodeListToDOM(objDOM, "/root/main/stusche/stuschelist", ds_main_stusche_stuschelist);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.daytitle = ds_pass.getColumn(0, "daytitle");
- objParam.dept = ds_pass.getColumn(0, "dept");
- objParam.instnm = ds_pass.getColumn(0, "instnm");
-
- var option = "";
- rptf_exeReportPreview30(["RPRPD12901"],[objParam], option, "");
- }
- function btn_synY_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
- {
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
- var req = sysf_messageBox("수간호사결재를 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
-
- if( req == 6 )
- {
- btnflag = "1";
- group4.btn_search.click();
-
- ds_main_stusche_stuschelist.enableevent = false;
- ds_main_stusche_stuschelist.updatecontrol = false;
-
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
- {
- ds_main_stusche_stuschelist.setColumn(i, "flag", "1");
- ds_main_stusche_stuschelist.setColumn(i, "conf_syn", "Y");
- ds_main_stusche_stuschelist.setRowType(i, 4);
- }
-
- grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
-
- ds_main_stusche_stuschelist.updatecontrol = true;
- ds_main_stusche_stuschelist.enableevent = true;
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveStuScheList";
- oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- btnflag = "0";
- group4.btn_search.click();
- }
- else
- {
- return;
- }
- }
- function btn_synN_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
- {
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
- var req = sysf_messageBox("수간호사결재해제를 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
- if( req == 6 )
- {
- btnflag = "2";
- group4.btn_search.click();
-
- ds_main_stusche_stuschelist.enableevent = false;
- ds_main_stusche_stuschelist.updatecontrol = false;
-
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
- {
- ds_main_stusche_stuschelist.setColumn(i, "flag", "2");
- ds_main_stusche_stuschelist.setColumn(i, "conf_syn", "N");
- ds_main_stusche_stuschelist.setRowType(i, 4);
- }
-
- grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
-
- ds_main_stusche_stuschelist.updatecontrol = true;
- ds_main_stusche_stuschelist.enableevent = true;
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveStuScheList";
- oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- btnflag = "0";
- group4.btn_search.click();
- }
- else
- {
- return;
- }
- }
- function btn_mynY_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
- {
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
- if(ds_main_stusche_stuschelist.getColumn(0, "conf_syn") == "N")
- {
- sysf_messageBox("수간호가결재가 되어 있지 않아 최종확인을 할수 없습니다.", "E999", "");
- return;
- }
-
- var req = sysf_messageBox("최종확인을 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
- if( req == 6 )
- {
- btnflag = "3";
- group4.btn_search.click();
-
- ds_main_stusche_stuschelist.enableevent = false;
- ds_main_stusche_stuschelist.updatecontrol = false;
-
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
- {
- ds_main_stusche_stuschelist.setColumn(i, "flag", "3");
- ds_main_stusche_stuschelist.setColumn(i, "conf_myn", "Y");
- ds_main_stusche_stuschelist.setRowType(i, 4);
- }
-
- grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
-
- ds_main_stusche_stuschelist.updatecontrol = true;
- ds_main_stusche_stuschelist.enableevent = true;
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveStuScheList";
- oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- btnflag = "0";
- group4.btn_search.click();
- }
- else
- {
- return;
- }
- }
- function btn_mynN_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
- {
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
- var req = sysf_messageBox("최종확인해제를 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
-
- if( req == 6 )
- {
- btnflag = "4";
- group4.btn_search.click();
-
- ds_main_stusche_stuschelist.enableevent = false;
- ds_main_stusche_stuschelist.updatecontrol = false;
-
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
- {
- ds_main_stusche_stuschelist.setColumn(i, "flag", "4");
- ds_main_stusche_stuschelist.setColumn(i, "conf_myn", "N");
- ds_main_stusche_stuschelist.setRowType(i, 4);
- }
-
- grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
-
- ds_main_stusche_stuschelist.updatecontrol = true;
- ds_main_stusche_stuschelist.enableevent = true;
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveStuScheList";
- oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- btnflag = "0";
- group4.btn_search.click();
- }
- else
- {
- return;
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "deptcd")))
- {
- sysf_messageBox("저장될 행이 없습니다.", "E999", "");
- return;
- }
-
- for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
- {
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "collegename")))
- {
- var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
- {
- sysf_messageBox(parseInt(i+1)+"번째 실습의뢰기관명이 없습니다. 선택하여주십시오.", "E999", "");
- ds_main_stusche_stuschelist.rowposition = i;
-
- grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "collegename"));
- grd_dutschelist.showEditor(true);
-
- return;
- }
- }
-
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "schoolyy")))
- {
- var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
- {
- sysf_messageBox(parseInt(i+1)+"번째 학년/과정이 없습니다. 입력하여주십시오..", "E999", "");
- ds_main_stusche_stuschelist.rowposition = i;
- grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "schoolyy"));
- grd_dutschelist.showEditor(true);
- return;
- }
- }
-
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "nrname")))
- {
- var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
- {
- sysf_messageBox(parseInt(i+1)+"번째 성명이 없습니다. 입력하여주십시오.", "E999", "");
- ds_main_stusche_stuschelist.rowposition = i;
- grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "nrname"));
- grd_dutschelist.showEditor(true);
- return;
- }
- }
-
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "fromdd")))
- {
- var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
- {
- sysf_messageBox(parseInt(i+1)+"번째 기간 시작일이 없습니다. 입력하여주십시오..", "E999", "");
- ds_main_stusche_stuschelist.rowposition = i;
- grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "fromdd"));
- grd_dutschelist.showEditor(true);
- return;
- }
- }
-
- if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "todd")))
- {
- var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
-
- if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
- {
- sysf_messageBox(parseInt(i+1)+"번째 기간 종료일이 없습니다. 입력하여주십시오..", "E999", "");
- ds_main_stusche_stuschelist.rowposition = i;
- grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "todd"));
- grd_dutschelist.showEditor(true);
- return;
- }
- }
- }
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveStuScheList";
- oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- btnflag = "0";
- group4.btn_search.click();
- }
- function btn_admin_onclick(obj:Button, e:ClickEventInfo)
- {
- group2.visible = true;
- misfGridInit(group2.grd_popdeptschlist);
- ds_popup_send.setColumn(0, "dutym", String(utlf_getCurrentDate()).substr(0, 6));
-
- group2.btn_popsynY.enable = true;
- group2.btn_popsynN.enable = true;
- group2.btn_popmynY.enable = true;
- group2.btn_popmynN.enable = true;
- group2.group3.rbo_popflag.value = "1";
- }
- function group2_group3_pop_dutym_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- ds_popup_send.setColumn(0, "dutym", String(obj.value).substr(0,6));
- group2.group3.pop_search.click();
- }
- function group2_group3_pop_search_onclick(obj:Button, e:ClickEventInfo)
- {
- misfGridInit(group2.grd_popdeptschlist);
- var caption = "";
- if(group2.group3.rbo_popflag.value == "1")
- {
- caption = "√^병 동 / 부 서^근무년월^수간호결재^최종확인";
- group2.btn_popsynY.enable = true;
- group2.btn_popsynN.enable = true;
- group2.btn_popmynY.enable = true;
- group2.btn_popmynN.enable = true;
- }
- else
- {
- sysf_messageBox("실습의뢰기관은 수간호사결재,최종확인을 일괄 처리 할 수 없습니다.", "I999", "");
- caption = "√^실습의뢰기관^근무년월^수간호결재^최종확인";
- group2.btn_popsynY.enable = false;
- group2.btn_popsynN.enable = false;
- group2.btn_popmynY.enable = false;
- group2.btn_popmynN.enable = false;
- }
-
- caption = caption.split("^");
-
- for(var i = 0; i < caption.length; i++)
- {
- group2.grd_popdeptschlist.setCellProperty("Head", i+1, "text", caption[i]);
- }
- var oParam = {};
- oParam.id = "TRRPD12903";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDeptScheList";
- oParam.inds = "req=ds_popup_send";
- oParam.outds = "ds_main_popup_main_deptsche_deptschelist=deptschelist";
- oParam.async = false;
- // oParam.callback = "cf_TRRPD12903";
- tranf_submit(oParam);
- }
- function ds_main_popup_main_deptsche_deptschelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chkflag")
- {
- obj.setColumn(e.row, "chkflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
-
- if(e.columnid == "conf_syn")
- {
- obj.setColumn(e.row, "conf_syn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
-
- if(e.columnid == "conf_myn")
- {
- obj.setColumn(e.row, "conf_myn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function group2_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "chkflag", "Y");
- ds_main_popup_main_deptsche_deptschelist.setRowType(i, "u");
- }
- ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
- }
- function group2_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "chkflag", "N");
- ds_main_popup_main_deptsche_deptschelist.setRowType(i, "u");
- }
- ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
- }
- function group2_btn_deptprint_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_popup_print_send.clearData();
- ds_popup_print_send.addRow();
-
- var page = "1";
-
- if(utlf_isNull(ds_main_popup_main_deptsche_deptschelist.getColumn(0, "deptnm")))
- {
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
-
- var pagechk = sysf_messageBox("일괄출력을", "S003", "각각 장마다 출력을");
-
- if(pagechk == "6")
- {
- page = "1";
- }
- else if(pagechk == "7")
- {
- page = "2";
- }
- else
- {
- return;
- }
- var indeptcd = "";
- var deptnum = 0;
-
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- var chkflag = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag");
- var deptcd = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "deptcd");
-
- if(chkflag == "Y")
- {
- if(deptnum == 0)
- {
- indeptcd = "'"+deptcd+"'";
- }
- else if(deptnum > 0)
- {
- indeptcd = indeptcd + ",'"+deptcd+"'";
- }
- deptnum++;
- }
- }
- if(deptnum != 0)
- {
- ds_popup_print_send.setColumn(0, "indeptcd", indeptcd);
- }
- ds_popup_print_send.setColumn(0, "instcd", group2.group3.cmb_instcdpopup.value);
- ds_popup_print_send.setColumn(0, "dutym", ds_popup_send.getColumn(0, "dutym"));
- ds_popup_print_send.setColumn(0, "flag", "dept");
-
- ds_popup_print_stusche.clearData();
-
- var oParam = {};
- oParam.id = "TRRPD12905";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetStuScheDeptPrintList";
- oParam.inds = "req=ds_popup_print_send";
- oParam.outds = "ds_popup_print_stusche=stuschelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD12905";
- tranf_submit(oParam);
-
- ds_week.clearData();
-
- for(i = 1 ; i < 32 ; i++)
- {
- var dt = ds_send.getColumn(0, "dutym")+i;
- dsf_makeValue(ds_week, "week"+i, "string", dt.toDate().getDayOfWeek("K"), 0);
- }
-
- dsf_makeValue(ds_pass, "daytitle", "string", String(ds_popup_send.getColumn(0, "dutym")).substr(0,4)+"년"+String(ds_popup_send.getColumn(0, "dutym")).substr(4,2)+"월", 0);
- dsf_makeValue(ds_pass, "instnm", "string", group2.group3.cmb_instcdpopup.text, 0);
-
- if(page == "1")
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
- rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.daytitle = ds_pass.getColumn(0, "daytitle");
- objParam.instnm = ds_pass.getColumn(0, "instnm");
-
- var option = "";
-
- rptf_exeReportPreview30(["RPRPD12902"],[objParam], option, "");
- }
- else
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
- rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.daytitle = ds_pass.getColumn(0, "daytitle");
- objParam.instnm = ds_pass.getColumn(0, "instnm");
-
- var option = "";
-
- rptf_exeReportPreview30(["RPRPD12903"],[objParam], option, "");
- }
- }
- function group2_btn_schoolprint_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_popup_print_send.clearData();
- ds_popup_print_send.addRow();
-
- var page = "1";
-
- if(utlf_isNull(ds_main_popup_main_deptsche_deptschelist.getColumn(0, "deptnm")))
- {
- sysf_messageBox("조회된 값이 없습니다.", "E999", "");
- return;
- }
-
- var pagechk = sysf_messageBox("일괄출력을", "S003", "각각 장마다 출력을");
-
- if(pagechk == "6")
- {
- page = "1";
- }
- else if(pagechk == "7")
- {
- page = "2";
- }
- else
- {
- return;
- }
- var indeptcd = "";
- var deptnum = 0;
-
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- var chkflag = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag");
- var deptcd = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "deptcd");
-
- if(chkflag == "Y")
- {
- if(deptnum == 0)
- {
- indeptcd = "'"+deptcd+"'";
- }
- else if(deptnum > 0)
- {
- indeptcd = indeptcd + ",'"+deptcd+"'";
- }
- deptnum++;
- }
- }
- if(deptnum != 0)
- {
- ds_popup_print_send.setColumn(0, "indeptcd", indeptcd);
- }
- ds_popup_print_send.setColumn(0, "instcd", group2.group3.cmb_instcdpopup.value);
- ds_popup_print_send.setColumn(0, "dutym", ds_popup_send.getColumn(0, "dutym"));
- ds_popup_print_send.setColumn(0, "flag", "school");
-
- ds_popup_print_stusche.clearData();
-
- var oParam = {};
- oParam.id = "TRRPD12905";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetStuScheDeptPrintList";
- oParam.inds = "req=ds_popup_print_send";
- oParam.outds = "ds_popup_print_stusche=stuschelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD12905";
- tranf_submit(oParam);
-
- ds_week.clearData();
-
- for(i = 1 ; i < 32 ; i++)
- {
- var dt = ds_send.getColumn(0, "dutym")+i;
- dsf_makeValue(ds_week, "week"+i, "string", dt.toDate().getDayOfWeek("K"), 0);
- }
-
- dsf_makeValue(ds_pass, "daytitle", "string", String(ds_popup_send.getColumn(0, "dutym")).substr(0,4)+"년"+String(ds_popup_send.getColumn(0, "dutym")).substr(4,2)+"월", 0);
- dsf_makeValue(ds_pass, "instnm", "string", group2.group3.cmb_instcdpopup.text, 0);
-
- if(page == "1")
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
- rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.daytitle = ds_pass.getColumn(0, "daytitle");
- objParam.instnm = ds_pass.getColumn(0, "instnm");
-
- var option = "";
-
- rptf_exeReportPreview30(["RPRPD12902"],[objParam], option, "");
- }
- else
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
- rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- objParam.daytitle = ds_pass.getColumn(0, "daytitle");
- objParam.instnm = ds_pass.getColumn(0, "instnm");
-
- var option = "";
-
- rptf_exeReportPreview30(["RPRPD12903"],[objParam], option, "");
- }
- }
- function group2_btn_popsynY_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
- {
- sysf_messageBox("선택된 데이터가 없습니다.","I004");
- return;
- }
-
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
- {
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_syn", "Y");
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "1");
- }
- }
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveDeptScheList";
- oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- group2.group3.pop_search.click();
- }
- function group2_btn_popsynN_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
- {
- sysf_messageBox("선택된 데이터가 없습니다.","I004");
- return;
- }
-
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
- {
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_syn", "N");
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "1");
- }
- }
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveDeptScheList";
- oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- group2.group3.pop_search.click();
- }
- function group2_btn_popmynY_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
- {
- sysf_messageBox("선택된 데이터가 없습니다.","I004");
- return;
- }
-
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
- {
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_myn", "Y");
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "2");
- }
- }
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveDeptScheList";
- oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- group2.group3.pop_search.click();
- }
- function group2_btn_popmynN_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
- {
- sysf_messageBox("선택된 데이터가 없습니다.","I004");
- return;
- }
-
- for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
- {
- if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
- {
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_myn", "N");
- ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "2");
- }
- }
-
- var oParam = {};
- oParam.id = "TXRPD12901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveDeptScheList";
- oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
- oParam.outds = "";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD12901";
- tranf_submit(oParam);
-
- group2.group3.pop_search.click();
- }
- function group2_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- group2.visible = false;
- btnflag = "0";
- group4.btn_search.click();
- }
- ]]></Script>
- </Form>
- </FDL>
|