12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD30800" position="absolute 0 0 1200 812" titletext="전공의 수련 현황표 New" oninit="SMRPD30800_oninit" onload="SMRPD30800_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="전공의 수련현황표 (신)" class="tit_1" position="absolute 0 0 293 23"/>
- <Button id="btn_print" taborder="1" text="수련현황표 출력" class="btn6" position="absolute 810 25 930 47" anchor="top right" onclick="btn_print_onclick"/>
- <Button id="btn_print2" taborder="2" text="과별 당직명단 출력" class="btn6" position="absolute 668 25 803 47" anchor="top right" onclick="btn_print2_onclick"/>
- <Button id="btn_delete" taborder="3" text="삭제" class="btn4" position="absolute 940 25 996 47" anchor="top right" onclick="btn_delete_onclick"/>
- <Button id="btn_save" taborder="4" text="저장" class="btn4" position="absolute 998 25 1054 47" anchor="top right" onclick="btn_save_onclick"/>
- <Button id="btn_send" taborder="5" text="확정" class="btn4" position="absolute 1056 25 1112 47" anchor="top right" onclick="btn_send_onclick"/>
- <Button id="btn_sendCancel" taborder="6" text="확정취소" class="btn4" position="absolute 1114 25 1194 47" anchor="top right" onclick="btn_sendCancel_onclick"/>
- <Shape id="line2" class="line_6" position="absolute 0 46 1194 52" anchor="left top right"/>
- <Div id="grp_sea" taborder="7" class="div_SA2" position="absolute 0 51 1194 91" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1071 8 1077 32" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1094 9 1150 31" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Edit id="opt_deptnm" taborder="7" readonly="true" position="absolute 616 10 806 29" autoselect="true" autoskip="true" class="output"/>
- <Static id="caption1" text="부서코드" class="search_name" position="absolute 450 11 518 28"/>
- <Edit id="ipt_deptcd" taborder="8" class="input_default" position="absolute 521 10 596 29" autoselect="true" autoskip="true" onkeydown="grp_sea_ipt_deptcd_onkeydown"/>
- <Button id="btn_deptcd" taborder="9" class="icon_search" position="absolute 598 11 614 27" onclick="grp_sea_btn_deptcd_onclick"/>
- <Static id="caption9" text="근무년월" class="search_name" position="absolute 279 11 343 28"/>
- <Button id="btn_emplnos" taborder="10" class="icon_search" position="absolute 932 11 948 27" onclick="grp_sea_btn_emplnos_onclick"/>
- <Static id="caption2" text="사번" class="search_name" position="absolute 827 11 875 28"/>
- <Edit id="ipt_emplnos" taborder="11" class="input_default" position="absolute 873 10 929 29" autoselect="true" autoskip="true" onkeydown="grp_sea_ipt_emplnos_onkeydown"/>
- <Edit id="ipt_emplnms" taborder="12" class="input_default" position="absolute 949 10 1055 29" autoselect="true" autoskip="true" onkeydown="grp_sea_ipt_emplnms_onkeydown"/>
- <Calendar id="ipt_ym" taborder="13" class="input_default" position="absolute 351 10 429 29" mask="yyyy-mm" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="grp_sea_ipt_ym_onchanged"/>
- <Combo id="cmb_instcd" taborder="14" class="combo_s_default" enable="false" position="absolute 114 10 256 29" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
- <Static id="caption29" text="기관코드" class="search_name" position="absolute 33 11 109 28"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line3" class="line_10" position="absolute 0 118 370 124" anchor="left top"/>
- <Static id="caption21" text="대상 목록" class="tit_2" position="absolute 0 102 80 124" anchor="left top"/>
- <Grid id="grd_emplist" taborder="8" binddataset="ds_main_emplist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 123 370 677" anchor="left top bottom" oncellclick="grd_emplist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="51"/>
- <Column size="65"/>
- <Column size="45"/>
- <Column size="108"/>
- <Column size="118"/>
- <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" text="직종"/>
- <Cell col="7" text="procstat"/>
- <Cell col="8" text="deptcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow == ds_main_emplist.rowposition ? '▶' : ''"/>
- <Cell col="1" text="bind:emplno"/>
- <Cell col="2" text="bind:emplnm"/>
- <Cell col="3" text="bind:anual"/>
- <Cell col="4" style="align:left middle;padding:2 2 2 2;" text="bind:deptnm"/>
- <Cell col="5" text="bind:procstatnm"/>
- <Cell col="6" text="bind:jobkindnm"/>
- <Cell col="7" text="bind:procstat"/>
- <Cell col="8" text="bind:deptcd"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- <Grid id="grd_dutlist" taborder="9" binddataset="ds_main_dutlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 375 123 1050 677" anchor="all" oncellclick="grd_dutlist_oncellclick" onkeydown="grd_dutlist_onkeydown" selecttype="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24" band="left"/>
- <Column size="32" band="left"/>
- <Column size="32" band="left"/>
- <Column size="114" band="left"/>
- <Column size="114" band="left"/>
- <Column size="56"/>
- <Column size="56"/>
- <Column size="50"/>
- <Column size="56"/>
- <Column size="53"/>
- <Column size="56"/>
- <Column size="56"/>
- <Column size="56"/>
- <Column size="0"/>
- <Column size="56"/>
- <Column size="0"/>
- <Column size="76"/>
- <Column size="0"/>
- <Column size="56"/>
- <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="110"/>
- <Column size="110"/>
- <Column size="110"/>
- <Column size="110"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </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" text="야간수련"/>
- <Cell col="7" text="학회"/>
- <Cell col="8" text="수련시간"/>
- <Cell col="9" text="총시간"/>
- <Cell col="10" text="연속근무"/>
- <Cell col="11" text="당직일수"/>
- <Cell col="12" text="의국장"/>
- <Cell col="13" text="의국장확인"/>
- <Cell col="14" text="임상과장"/>
- <Cell col="15" text="과장승인"/>
- <Cell col="16" text="교육수련"/>
- <Cell col="17" text="교육수련확인"/>
- <Cell col="18" text="수련실장"/>
- <Cell col="19" text="최종승인"/>
- <Cell col="20" text="instcd"/>
- <Cell col="21" text="dutdd"/>
- <Cell col="22" text="emplno"/>
- <Cell col="23" text="holiflag"/>
- <Cell col="24" text="workflag"/>
- <Cell col="25" text="procstat"/>
- <Cell col="26" text="realhrd"/>
- <Cell col="27" text="realhrn"/>
- <Cell col="28" text="주간시작"/>
- <Cell col="29" text="주간종료"/>
- <Cell col="30" text="야간시작"/>
- <Cell col="31" text="야간종료"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:dd"/>
- <Cell col="2" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');color:EXPR(holiflag != '8' ? 'red' : '');color2:EXPR(holiflag != '8' ? 'red' : '');font:EXPR(holiflag != '8' ? 'arial,9,bold' : '');" text="bind:day"/>
- <Cell col="3" displaytype="combo" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');font:arial,9,bold;" text="bind:duttyped" combodataset="ds_init_duttype_codelist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="4" displaytype="combo" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');font:arial,9,bold;" text="bind:duttypen" combodataset="ds_init_duttype_codelist" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="5" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:duthrd"/>
- <Cell col="6" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:duthrn"/>
- <Cell col="7" displaytype="text" edittype="text" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:conftm" editautoselect="true"/>
- <Cell col="8" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:conthr"/>
- <Cell col="9" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:realhr"/>
- <Cell col="10" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');font:arial,9,bold;" text="bind:contrealhr"/>
- <Cell col="11" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:ndcnt"/>
- <Cell col="12" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvpsn1"/>
- <Cell col="13" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvdd1" mask="yyyy-mm-dd"/>
- <Cell col="14" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvpsn2"/>
- <Cell col="15" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvdd2" mask="yyyy-mm-dd"/>
- <Cell col="16" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvpsn3"/>
- <Cell col="17" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvdd3" mask="yyyy-mm-dd"/>
- <Cell col="18" style="align:center middle;background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvpsn4"/>
- <Cell col="19" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:aprvdd4" mask="yyyy-mm-dd"/>
- <Cell col="20" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:instcd"/>
- <Cell col="21" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:dutdd"/>
- <Cell col="22" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:emplno"/>
- <Cell col="23" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:holiflag"/>
- <Cell col="24" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:workflag"/>
- <Cell col="25" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:procstat"/>
- <Cell col="26" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:realhrd"/>
- <Cell col="27" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:realhrn"/>
- <Cell col="28" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:dayfromdd" mask="expr:utlf_isNull(dayfromdd) ? '' : '####-##-## ##:##'"/>
- <Cell col="29" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:daytodd" mask="expr:utlf_isNull(daytodd) ? '' : '####-##-## ##:##'"/>
- <Cell col="30" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:ngtfromdd" mask="expr:utlf_isNull(ngtfromdd) ? '' : '####-##-## ##:##'"/>
- <Cell col="31" style="background:EXPR(holiflag != '8' ? '#faeefa' : '');background2:EXPR(holiflag != '8' ? '#faeefa' : '');" text="bind:ngttodd" mask="expr:utlf_isNull(ngttodd) ? '' : '####-##-## ##:##'"/>
- </Band>
- <Band id="summary">
- <Cell celltype="head"/>
- <Cell col="1" style="align:center middle;background:#ffff99ff;background2:#ffff99ff;" text="합계"/>
- <Cell col="2" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="3" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="4" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="5" style="background:#ffff99ff;background2:#ffff99ff;" expr="expr:getSum('duthrd')"/>
- <Cell col="6" style="background:#ffff99ff;background2:#ffff99ff;" expr="expr:getSum('duthrn')"/>
- <Cell col="7" style="background:#ffff99ff;background2:#ffff99ff;" expr="expr:getSum('conftm')"/>
- <Cell col="8" displaytype="normal" style="background:#ffff99ff;background2:#ffff99ff;" expr="expr:getSum('conthr')"/>
- <Cell col="9" displaytype="normal" style="background:#ffff99ff;background2:#ffff99ff;" expr="expr:getSum('realhr')"/>
- <Cell col="10" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="11" style="background:#ffff99ff;background2:#ffff99ff;" expr="expr:getSum('ndcnt')"/>
- <Cell col="12" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="13" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="14" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="15" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="16" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="17" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="18" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="29" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="30" style="background:#ffff99ff;background2:#ffff99ff;"/>
- <Cell col="31" style="background:#ffff99ff;background2:#ffff99ff;"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 375 118 1050 124" anchor="left top right"/>
- <Static id="caption3" text="개인 수련현황" class="tit_2" position="absolute 375 102 493 124" anchor="left top"/>
- <Static id="caption22" text=" - 야간당직시간 19:00~익일07:00(휴게시간 12:00~03:00, 05:30~06:30)" position="absolute 5 709 849 729" style="color:#993300ff;" anchor="left bottom"/>
- <Static id="caption23" text="※ 처리 절차" position="absolute 5 727 539 747" style="color:#993300ff;" anchor="left bottom"/>
- <Static id="caption24" text=" - 정규수련시간 07:00~19:00(휴게시간 07:30~08:30, 12:30~13:30, 17:30~18:30)" position="absolute 5 694 849 714" style="color:#993300ff;" anchor="left bottom"/>
- <Static id="caption25" text="※ 전공의 복무시간" position="absolute 5 678 849 698" style="color:#993300ff;" anchor="left bottom"/>
- <Static id="caption26" text=" - 인턴: 개인 자료입력 → 교육수련담당 확인,승인 → 교육수련실장 승인" position="absolute 5 742 812 770" style="color:#993300ff;" anchor="left bottom"/>
- <Static id="caption27" text="- 소아알레르기호흡기, 소아청소년내분비, 소아청소년소화기영양, 소아청소년신경, 소아청소년신장, 소아청소년심장, 소아청소년혈액종양, 신생아" position="absolute 20 759 827 787" style="color:#993300ff;" anchor="left bottom"/>
- <Grid id="grd_duttype" taborder="10" binddataset="ds_init_duttype_codelist" useinputpanel="false" position="absolute 1055 123 1197 677" anchor="top right bottom" oncelldblclick="grd_duttype_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="116"/>
- <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"/>
- </Rows>
- <Band id="head">
- <Cell text="근무명"/>
- <Cell col="1" text="근무코드"/>
- <Cell col="2" text="특수코드"/>
- <Cell col="3" text="시작시간"/>
- <Cell col="4" text="종료시간"/>
- <Cell col="5" text="useyn"/>
- </Band>
- <Band id="body">
- <Cell style="align:left middle;font:arial,9,bold;" text="bind:cdnm"/>
- <Cell col="1" text="bind:cdid"/>
- <Cell col="2" text="bind:cntlcd4"/>
- <Cell col="3" text="bind:cntlcd1"/>
- <Cell col="4" text="bind:cntlcd2"/>
- <Cell col="5" text="bind:useyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line_duttype" class="line_10" position="absolute 1055 118 1197 124" anchor="top right"/>
- <Button id="btn_new" taborder="11" text="대상추가" class="btn2" position="absolute 305 99 369 118" anchor="left top" onclick="btn_new_onclick"/>
- <Static id="cap_batchset" text="※ 일괄 처리 - 파견 : Shift + mouseClick - 분만 : Ctrl + mouseClick" position="absolute 884 681 1112 720" style="color:#0000ffff;" anchor="right bottom" visible="false"/>
- <Button id="btn_print3" taborder="12" text="인턴 당직명단 출력" class="btn6" position="absolute 527 25 662 47" anchor="top right" onclick="btn_print3_onclick"/>
- <Button id="btn_admcancel" taborder="13" text="강제승인취소" class="btn5" position="absolute 0 25 90 47" anchor="top right" visible="false" onclick="btn_admcancel_onclick"/>
- <Button id="btn_admconfirm" taborder="14" text="강제승인" class="btn5" visible="false" position="absolute 92 25 157 47" anchor="top right" onclick="btn_admconfirm_onclick"/>
- <Button id="btn_im" taborder="15" text="내과 도움말" class="btn3" visible="false" position="absolute 775 680 870 702" anchor="top right" onclick="btn_im_onclick"/>
- <Button id="btn_excel" taborder="16" text="엑셀다운" class="btn7" position="absolute 978 99 1052 118" anchor="left top" onclick="btn_excel_onclick"/>
- <Static id="caption00" text="- 당직일 출장,휴가,경조 등 발생시 반드시 당직변경 요청(본원/칠곡 전자결재 “전공의 당직변경, 취소신청서“ 양식 제출)" position="absolute 20 782 827 802" anchor="left bottom" style="color:#993300ff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_condition_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="ym" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="powertp" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"/>
- <Col id="ym"/>
- <Col id="deptcd"/>
- <Col id="deptnm"/>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="powertp"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_emplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="emplnm" type="STRING" size="256" sumtext="성명"/>
- <Column id="anual" type="STRING" size="256" sumtext="년차"/>
- <Column id="jobkindnm" type="STRING" size="256" sumtext="직종"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="procstatnm" type="STRING" size="256" sumtext="처리상태"/>
- <Column id="procstat" type="STRING" size="256" sumtext="처리상태"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_dutlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_dutlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="dd" type="STRING" size="256" sumtext="일자"/>
- <Column id="day" type="STRING" size="256" sumtext="요일"/>
- <Column id="holiflag" type="STRING" size="256" sumtext="휴일구분"/>
- <Column id="workflag" type="STRING" size="256" sumtext="작업구분"/>
- <Column id="duttyped" type="STRING" size="256" sumtext="주간"/>
- <Column id="duttypen" type="STRING" size="256" sumtext="야간"/>
- <Column id="duthrd" type="STRING" size="256" sumtext="주간수련"/>
- <Column id="duthrn" type="STRING" size="256" sumtext="야간수련"/>
- <Column id="conthr" type="STRING" size="256" sumtext="연속근무시간"/>
- <Column id="ndcnt" type="STRING" size="256" sumtext="당직일수"/>
- <Column id="procstat" type="STRING" size="256" sumtext="진행상태"/>
- <Column id="aprvpsn1" type="STRING" size="256" sumtext="승인자1"/>
- <Column id="aprvdd1" type="STRING" size="256" sumtext="승인일시1"/>
- <Column id="aprvpsn2" type="STRING" size="256" sumtext="승인자2"/>
- <Column id="aprvdd2" type="STRING" size="256" sumtext="승인일시2"/>
- <Column id="aprvpsn3" type="STRING" size="256" sumtext="승인자3"/>
- <Column id="aprvdd3" type="STRING" size="256" sumtext="승인일시3"/>
- <Column id="aprvpsn4" type="STRING" size="256" sumtext="승인자4"/>
- <Column id="aprvdd4" type="STRING" size="256" sumtext="승인일시4"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="dutdd" type="STRING" size="256" sumtext="근무일자"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="pinstcd" type="STRING" size="256" sumtext="전자결재연동"/>
- <Column id="tranhr" type="STRING" size="256" sumtext="이월연속근무시간"/>
- <Column id="duttypednm" type="STRING" size="256" sumtext="주간"/>
- <Column id="duttypennm" type="STRING" size="256" sumtext="야간"/>
- <Column id="realhrd" type="STRING" size="256"/>
- <Column id="realhrn" type="STRING" size="256"/>
- <Column id="tranrealhr" type="STRING" size="256"/>
- <Column id="colBack9" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_duttype_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cntlcd1" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_powerinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_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="ym" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="powertp" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="worktp" type="STRING" size="256"/>
- <Column id="cntlcd1" type="STRING" size="256"/>
- <Column id="addcode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_dutinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_print2_print2list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256" sumtext="근무일자"/>
- <Column id="day" type="STRING" size="256" sumtext="요일"/>
- <Column id="type" type="STRING" size="256" sumtext="유형"/>
- <Column id="anual" type="STRING" size="256" sumtext="연차"/>
- <Column id="empl" type="STRING" size="256" sumtext="사원"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="jobkindnm" type="STRING" size="256"/>
- <Column id="anual" type="STRING" size="256"/>
- <Column id="ym" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="deptnm"/>
- <Col id="jobkindnm"/>
- <Col id="anual"/>
- <Col id="ym"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_print_dutlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dd" type="STRING" size="256" sumtext="일자"/>
- <Column id="day" type="STRING" size="256" sumtext="요일"/>
- <Column id="holiflag" type="STRING" size="256" sumtext="휴일구분"/>
- <Column id="workflag" type="STRING" size="256" sumtext="작업구분"/>
- <Column id="duttyped" type="STRING" size="256" sumtext="주간"/>
- <Column id="duttypen" type="STRING" size="256" sumtext="야간"/>
- <Column id="duthrd" type="STRING" size="256" sumtext="주간수련"/>
- <Column id="duthrn" type="STRING" size="256" sumtext="야간수련"/>
- <Column id="conthr" type="STRING" size="256" sumtext="연속근무시간"/>
- <Column id="ndcnt" type="STRING" size="256" sumtext="당직일수"/>
- <Column id="procstat" type="STRING" size="256" sumtext="진행상태"/>
- <Column id="aprvpsn1" type="STRING" size="256" sumtext="승인자1"/>
- <Column id="aprvdd1" type="STRING" size="256" sumtext="승인일시1"/>
- <Column id="aprvpsn2" type="STRING" size="256" sumtext="승인자2"/>
- <Column id="aprvdd2" type="STRING" size="256" sumtext="승인일시2"/>
- <Column id="aprvpsn3" type="STRING" size="256" sumtext="승인자3"/>
- <Column id="aprvdd3" type="STRING" size="256" sumtext="승인일시3"/>
- <Column id="aprvpsn4" type="STRING" size="256" sumtext="승인자4"/>
- <Column id="aprvdd4" type="STRING" size="256" sumtext="승인일시4"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="dutdd" type="STRING" size="256" sumtext="근무일자"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="pinstcd" type="STRING" size="256" sumtext="전자결재연동"/>
- <Column id="tranhr" type="STRING" size="256" sumtext="이월연속근무시간"/>
- <Column id="duttypednm" type="STRING" size="256" sumtext="주간"/>
- <Column id="duttypennm" type="STRING" size="256" sumtext="야간"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_print3_printlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="deptcd" type="STRING" size="256" sumtext="근무지"/>
- <Column id="rankseq" type="STRING" size="256" sumtext="출력순서"/>
- <Column id="day01" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day02" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day03" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day04" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day05" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day06" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day07" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day08" type="STRING" size="256" sumtext="근무자"/>
- <Column id="day09" 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="근무자"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_traninfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="tranhr" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256" sumtext="실행건수"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_main_condition" columnid="instcd"/>
- <BindItem id="item1" compid="grp_sea.ipt_ym" propid="value" datasetid="ds_main_condition" columnid="ym"/>
- <BindItem id="item2" compid="grp_sea.ipt_deptcd" propid="value" datasetid="ds_main_condition" columnid="deptcd"/>
- <BindItem id="item3" compid="grp_sea.opt_deptnm" propid="value" datasetid="ds_main_condition" columnid="deptnm"/>
- <BindItem id="item4" compid="grp_sea.ipt_emplnos" propid="value" datasetid="ds_main_condition" columnid="emplno"/>
- <BindItem id="item5" compid="grp_sea.ipt_emplnms" propid="value" datasetid="ds_main_condition" columnid="emplnm"/>
- </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";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- var arErrorCode = new HashArray();
- function SMRPD30800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD30800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_emplist);
-
- grdf_initGrid(grd_dutlist);
- grdf_setRowTypeIcon(grd_dutlist, 0);
-
- grdf_initGrid(grd_duttype);
-
- fOpenForm();
- }
- function fOpenForm()
- {
- misfComboInstCdListMulti("grp_sea.cmb_instcd", utlf_getCurrentDate(),"","N");
- grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
-
- ds_main_emplist.clearData();
- ds_main_dutlist.clearData();
-
- ds_main_condition.setColumn(0, "ym", String(utlf_getCurrentDate()).substr(0, 6));
-
- // var oParam = {};
- // oParam.id = "TRRPD30803";
- // oParam.service = "dligclaznsmngtapp.DutScheMngt";
- // oParam.method = "reqGetDuttypeListNew";
- // oParam.inds = "req=ds_main_condition";
- // oParam.outds = "ds_init_duttype_codelist=codelist";
- // oParam.async = false;
- // //oParam.callback = "cf_TRRPD30803";
- //
- // tranf_submit(oParam);
-
- var sUsrDeptcd = sysf_getUserInfo("dutplcecd");
- fGetCode(sUsrDeptcd);
- if(sUsrDeptcd == "2010000000"){
- frmf_open("SMRPD30801", "SMRPD30801", null, null, 1, 200, 200, 700, 600, null, null, null, "M"); //주메인
- }
-
- var oParam = {};
- oParam.id = "TRRPD30305";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyPowerInfo";
- oParam.inds = "req=ds_main_condition";
- oParam.outds = "ds_main_powerinfo=powerinfo";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30305";
- tranf_submit(oParam);
-
- fGetEmpList();
- }
- function cf_TRRPD30305(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- var powertp = ds_main_powerinfo.getColumn(0, "powertp");
- ds_main_condition.setColumn(0, "powertp", powertp);
-
- if(utlf_isNull(powertp))
- {
- grp_sea.ipt_emplnos.value = sysf_getUserInfo("userid");
- grp_sea.ipt_emplnms.value = sysf_getUserInfo("usernm");
- grp_sea.ipt_emplnos.enable = false;
- grp_sea.btn_emplnos.enable = false;
- grp_sea.ipt_emplnos.enable = false;
-
- btn_new.enable = true;
- btn_delete.enable = true;
- btn_save.enable = true;
-
- btn_send.text = "제출";
- btn_sendCancel.text = "";
-
- btn_sendCancel.enable = false;
- btn_print2.visible = false;
- btn_print3.visible = false;
- }
- else if(powertp == "1")
- {
- grp_sea.ipt_deptcd.value = ds_main_powerinfo.getColumn(0, "deptcd");
- grp_sea.opt_deptnm.value = ds_main_powerinfo.getColumn(0, "deptnm");
-
- grp_sea.ipt_deptcd.enable = false;
- grp_sea.btn_deptcd.enable = false;
-
- btn_new.enable = true;
- btn_delete.enable = true;
- btn_save.enable = true;
- btn_send.text = "확인";
- btn_sendCancel.text = "";
-
- btn_sendCancel.enable = false;
- btn_print3.visible = false;
- }
- else if(powertp == "2")
- {
- grp_sea.ipt_deptcd.value = ds_main_powerinfo.getColumn(0, "deptcd");
- grp_sea.opt_deptnm.value = ds_main_powerinfo.getColumn(0, "deptnm");
-
- grp_sea.ipt_deptcd.enable = false;
- grp_sea.btn_deptcd.enable = false;
-
- btn_new.enable = false;
- btn_delete.enable = false;
- btn_save.enable = false;
-
- btn_send.text = "승인";
- btn_sendCancel.text = "";
- btn_sendCancel.enable = false;
- btn_print3.visible = false;
- }
- else if(powertp == "3")
- {
- btn_new.enable = true;
- btn_delete.enable = true;
- btn_save.enable = true;
- btn_sendCancel.enable = true;
-
- btn_admconfirm.visible = true;
- btn_admcancel.visible = true;
-
- btn_send.text = "확인";
- btn_sendCancel.text = "확인취소";
-
- if(sysf_getUserInfo("dutplceinstcd") == "031")
- {
- grp_sea.cmb_instcd.enable = true;
- }
- cap_batchset.visible = true;
- }
- else if(powertp == "4")
- {
- btn_new.enable = false;
- btn_delete.enable = false;
- btn_save.enable = false;
- btn_send.text = "승인";
- btn_sendCancel.text = "승인취소";
- }
- }
- }
- function fGetEmpList()
- {
- if(String(ds_main_condition.getColumn(0, "ym")).length != 6 )
- {
- sysf_messageBox("근무년월을 정확하게 입력하십시요. ", "E999", "");
- grp_sea.ipt_ym.setFocus();
- return;
- }
-
- grp_sea.ipt_deptcd.value = String(grp_sea.ipt_deptcd.value).getTrim();
- grp_sea.ipt_emplnos.value = String(grp_sea.ipt_emplnos.value).getTrim();
-
- ds_main_emplist.clearData();
- ds_main_dutlist.clearData();
-
- ds_send.copyData(ds_main_condition);
- ds_send.clearData();
- ds_send.addRow();
- ds_send.copyRow(0, ds_main_condition, 0);
-
- if(sysf_getUserInfo("dutplceinstcd") == "032")
- {
- var sDeptcd = grp_sea.ipt_deptcd.value;
-
- if( sDeptcd == "2110500000" || sDeptcd == "2112300000" || sDeptcd == "2112400000" || sDeptcd == "2112500000" ||
- sDeptcd == "2112600000" || sDeptcd == "2112700000" || sDeptcd == "2112800000" || sDeptcd == "2112900000" )
- {
- ds_send.setColumn(0, "deptcd", "2110000000");
- }
- }
-
- var oParam = {};
- oParam.id = "TRRPD30801";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyEmpListNew";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_emplist=emplist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD30801";
- tranf_submit(oParam);
- }
- function fGetCode(sDeptcd)
- {
- if ( sDeptcd == "2010000000"){ // 내과면 모든 코드 보여주기
- dsf_makeValue(ds_send, "cntlcd1", "string", "IM");
- btn_im.visible = true;
- }else if(sDeptcd == "4110200000"){ // 인턴(교육수련실) 이면 EN(응급N수련) 추가 (요청이 많아지면 기준자료 관리 필요)
- dsf_makeValue(ds_send, "addcode", "string", "EN");
- btn_im.visible = false;
- }else{ // 내과가 아니면 내과만 사용하는 코드 삭제해서 보여주기
- ds_send.setColumn(0, "cntlcd1", "");
- btn_im.visible = false;
- }
-
- var oParam = {};
- oParam.id = "TRRPD30803";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDuttypeListNew";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_duttype_codelist=codelist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30803";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TRRPD30803") > -1) {
- dsf_makeValue(ds_send, "cntlcd1", "string", "");
-
- if ( sDeptcd == "2010000000"){ // 내과가 과거에 사용했거나, 공용으로 사용하는 수련(TR) 코드가 내과일때는 보이지 않도록.
- ds_init_duttype_codelist.enableevent = false;
- ds_init_duttype_codelist.updatecontrol = false;
-
- for(var i = 0; i < ds_init_duttype_codelist.rowcount; i++) {
- if(ds_init_duttype_codelist.getColumn(i, "useyn") != "Y" ){
- ds_init_duttype_codelist.deleteRow(i);
- }
- }
-
- ds_init_duttype_codelist.updatecontrol = true;
- ds_init_duttype_codelist.enableevent = true;
- }
- }
- }
- function cf_TRRPD30803(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- function grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- misfGridInit(grd_emplist);
- misfGridInit(grd_dutlist);
-
- if(grp_sea.cmb_instcd.value == sysf_getUserInfo("dutplceinstcd"))
- {
- btn_new.visible = true;
- btn_delete.visible = true;
- btn_save.visible = true;
-
- btn_send.visible = true;
- btn_sendCancel.visible = true;
-
- grd_duttype.visible = true;
- line_duttype.visible = true;
- }
- else
- {
- btn_new.visible = false;
- btn_delete.visible = false;
- btn_save.visible = false;
-
- btn_send.visible = false;
- btn_sendCancel.visible = false;
-
- grd_duttype.visible = false;
- line_duttype.visible = false;
- }
- }
- function grp_sea_ipt_ym_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- var date = String(obj.value).substr(0,6);
- ds_main_condition.setColumn(0, "ym", date);
-
- ds_main_emplist.clearData();
- ds_main_dutlist.clearData();
- ds_main_dutinfo.clearData();
- }
- function ds_main_condition_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "deptcd")
- {
- ds_main_emplist.clearData();
- ds_main_dutlist.clearData();
- ds_main_dutinfo.clearData();
-
- grp_sea.opt_deptnm.value = "";
- grp_sea.ipt_deptcd.value = e.newvalue;
- grp_sea.ipt_deptcd.setFocus();
-
- misfValidationCheck("02", "", "deptcd,deptnm" );
- }
-
- if(e.columnid == "emplno")
- {
- grp_sea.ipt_emplnos.value = e.newvalue;
- grp_sea.ipt_emplnos.setFocus();
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
-
- if(String(e.newvalue).length > 0)
- {
- grp_sea.btn_search.click();
- }
- }
-
- if(e.columnid == "emplnm")
- {
- grp_sea.ipt_emplnms.value = e.newvalue;
- grp_sea.ipt_emplnms.setFocus();
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- if(String(e.newvalue).length > 0)
- {
- grp_sea.btn_search.click();
- }
- }
- }
- function grp_sea_ipt_deptcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var vOrigDeptcd = grp_sea.ipt_deptcd.value;
-
- var recv_list = "deptcd,deptnm";
- misfOpenPopUpList("02", ds_main_condition,"", recv_list) ;
-
- if(vOrigDeptcd != grp_sea.ipt_deptcd.value)
- {
- ds_main_emplist.clearData();
- ds_main_dutinfo.clearData();
- ds_main_dutlist.clearData();
- }
- }
- function grp_sea_ipt_emplnos_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if(!utlf_isNull(obj.value))
- {
- obj.updateToDataset();
- grp_sea.btn_search.click();
- }
- }
- }
- function grp_sea_btn_emplnos_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ds_main_condition, recv_list,"1","N");
- if(String(grp_sea.ipt_emplnos.value.length) > 0)
- {
- grp_sea.btn_search.click();
- }
- }
- function grp_sea_ipt_emplnms_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- if(!utlf_isNull(obj.value))
- {
- obj.updateToDataset();
- grp_sea.btn_search.click();
- }
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetEmpList();
- }
- function grd_emplist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var sDeptcd = ds_main_emplist.getColumn(ds_main_emplist.rowposition, "deptcd");
- fGetCode(sDeptcd); //근무코드 재 설정
-
- fGetDutList();
-
- dsf_setTypeFormat(ds_main_dutlist, "conthr:BIGDECIMAL^realhr:BIGDECIMAL");
- }
- function fGetDutList()
- {
- if(ds_main_emplist.rowposition < 0)
- {
- misfGridInit(grd_dutlist);
- }
- else
- {
- var powertp = ds_main_powerinfo.getColumn(0, "powertp");
- var procstat = ds_main_emplist.getColumn(ds_main_emplist.rowposition, "procstat")
-
- if(utlf_isNull(powertp))
- {
- if(utlf_isNull(procstat) || procstat == "T")
- {
- btn_delete.enable = true;
- btn_save.enable = true;
- btn_send.enable = true;
- }
- else
- {
- btn_delete.enable = false;
- btn_save.enable = false;
- btn_send.enable = false;
- }
- }
- else if(powertp == "1")
- {
- if(utlf_isNull(procstat) || procstat == "T" || procstat == "0")
- {
- btn_delete.enable = true;
- btn_save.enable = true;
- btn_send.enable= true;
- }
- else
- {
- btn_delete.enable = false;
- btn_save.enable = false;
- btn_send.enable = false;
- }
- }
- else if(powertp == "2")
- {
- if(procstat == "1")
- {
- btn_send.enable = true;
- }
- else
- {
- btn_send.enable = false;
- }
- }
- else if(powertp == "3")
- {
- if(utlf_isNull(procstat)|| procstat == "T" || procstat == "0" || procstat == "1" || procstat == "2")
- {
- btn_delete.enable = true;
- btn_save.enable = true;
- btn_send.enable = true;
- btn_sendCancel.enable = false;
- }
- else if(procstat == "3")
- {
- btn_delete.enable = false;
- btn_save.enable = false;
- btn_send.enable = false;
- btn_sendCancel.enable= true;
- }
- else if(procstat == "4")
- {
- btn_delete.enable = false;
- btn_save.enable = false;
- btn_send.enable = false;
- btn_sendCancel.enable = false;
- }
- }
- else if(powertp == "4")
- {
- if(procstat == "3")
- {
- btn_send.enable = true;
- btn_sendCancel.enable = false;
- }
- else
- {
- btn_send.enable = false
- btn_sendCancel.enable = true;
- }
- }
-
- ds_main_dutlist.clearData();
-
- ds_send.clearData();
- dsf_makeValue(ds_send, "instcd", "string", grp_sea.cmb_instcd.value, 0);
- dsf_makeValue(ds_send, "ym", "string", ds_main_condition.getColumn(0, "ym"), 0);
- dsf_makeValue(ds_send, "emplno", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno"), 0);
- dsf_makeValue(ds_send, "deptcd", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "deptcd"), 0);
-
- var oParam = {};
- oParam.id = "TRRPD30802";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyPsnListNew";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_dutlist=dutlist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30802";
- tranf_submit(oParam);
- }
- }
- function cf_TRRPD30802(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- ds_main_dutlist.addColumn("colBack9", "string");
- ds_main_dutlist.addColumn("realhr", "string");
- ds_main_dutlist.addColumn("contrealhr", "string");
-
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- for(var i = 0; i < ds_main_dutlist.rowcount; i++)
- {
- if(ds_main_dutlist.getColumn(i, "workflag") == "I")
- {
- ds_main_dutlist.setRowType(i, "i");
- }
-
- if(ds_main_dutlist.getColumn(i, "holiflag") != "8") {
- ds_main_dutlist.setColumn(i, "colBack9", "#faeefa"); //"#fefee9"; 노랑톤 //"#faeefa"; 분홍톤 //"#fff6ee"; 주황톤
- } else {
- ds_main_dutlist.setColumn(i, "colBack9", "white"); //"#fefee9"; 노랑톤 //"#faeefa"; 분홍톤 //"#fff6ee"; 주황톤
- }
- }
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
-
- fSetContHr();
- grd_duttype.setFocus();
- }
- }
- function fSetContHr()
- {
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- for(var i = 0; i < ds_main_dutlist.rowcount; i++)
- {
- var iTranHr = 0;
- var iTranRealHr = 0;
- var k = 0;
-
- if(ds_main_dutlist.getColumn(i, "duthrd") != 0)
- {
- for( k = i - 1; k >= 0; k--)
- {
- if(ds_main_dutlist.getColumn(k, "duthrn") == 0){
- break;
- }else{
- iTranHr += parseInt(ds_main_dutlist.getColumn(k, "duthrn"));
- iTranRealHr += parseFloat(ds_main_dutlist.getColumn(k, "realhrn"));
- }
-
- if( (ds_main_dutlist.getColumn(k, "duthrd") == 0 || ds_main_dutlist.getColumn(k, "duttyped") == "A5" || ds_main_dutlist.getColumn(k, "duttyped") == "19") &&
- (ds_main_dutlist.getColumn(k, "duttypen") != "ET" && ds_main_dutlist.getColumn(k, "duttypen") != "NT") ){
- break;
- }else if( ds_main_dutlist.getColumn(k, "duttyped") == "18" ){
- iTranHr += parseFloat(ds_main_dutlist.getColumn(k, "duthrd"));
- iTranRealHr += parseFloat(ds_main_dutlist.getColumn(k, "realhrd"));
- break;
- }else if( ds_main_dutlist.getColumn(k, "duttyped") == "NC" && ds_main_dutlist.getColumn(k, "duttypen") != "3C" ){
- break;
- }else if( ds_main_dutlist.getColumn(k, "duttyped") == "T3" ){
- iTranHr += parseFloat(ds_main_dutlist.getColumn(k, "duthrd"));
- iTranRealHr += parseFloat(ds_main_dutlist.getColumn(k, "realhrd"));
- break;
- }else{
- iTranHr += parseInt(ds_main_dutlist.getColumn(k, "duthrd"));
- }
- }
-
- if(k == 0)
- {
- iTranHr += parseInt(ds_main_dutlist.getColumn(0, "tranhr"));
- iTranRealHr += parseFloat(ds_main_dutlist.getColumn(0, "tranrealhr"));
- }
- }
-
- ds_main_dutlist.setColumn(i, "conthr", iTranHr+parseInt(ds_main_dutlist.getColumn(i, "duthrd"))+parseInt(ds_main_dutlist.getColumn(i, "duthrn")));
- ds_main_dutlist.setColumn(i, "realhr", iTranRealHr+parseInt(ds_main_dutlist.getColumn(i, "realhrd"))+parseInt(ds_main_dutlist.getColumn(i, "realhrn")));
-
- if(ds_main_dutlist.getColumn(i, "duttyped") == "18"){
- var sConthr = parseFloat(ds_main_dutlist.getColumn(i, "duthrd")) + parseFloat(ds_main_dutlist.getColumn(i, "duthrn"));
- var sRealthr = parseFloat(ds_main_dutlist.getColumn(i, "realhrd")) + parseFloat(ds_main_dutlist.getColumn(i, "realhrn"));
- }else if(ds_main_dutlist.getColumn(i, "duttyped") == "19"){
- var sConthr = parseFloat(ds_main_dutlist.getColumn(i, "duthrn"));
- var sRealthr = parseFloat(ds_main_dutlist.getColumn(i, "realhrn"));
- }else if(ds_main_dutlist.getColumn(i, "duttyped") == "T3"){
- var sConthr = parseFloat(ds_main_dutlist.getColumn(i, "duthrd")) + parseFloat(ds_main_dutlist.getColumn(i, "duthrn"));
- var sRealthr = parseFloat(ds_main_dutlist.getColumn(i, "realhrd")) + parseFloat(ds_main_dutlist.getColumn(i, "realhrn"));
- }else if(ds_main_dutlist.getColumn(i, "duttyped") == "NC" && ds_main_dutlist.getColumn(i, "duttyped") == "3C"){
- var sConthr = iTranHr + parseFloat(ds_main_dutlist.getColumn(i, "duthrd")) + parseFloat(ds_main_dutlist.getColumn(i, "duthrn"));
- var sRealthr = iTranRealHr + parseFloat(ds_main_dutlist.getColumn(i, "realhrd")) + parseFloat(ds_main_dutlist.getColumn(i, "realhrn"));
- }else if(ds_main_dutlist.getColumn(i, "duttyped") == "NC" && ds_main_dutlist.getColumn(i, "duttyped") != "3C"){
- var sConthr = iTranHr + parseFloat(ds_main_dutlist.getColumn(i, "duthrd"));
- var sRealthr = iTranRealHr + parseFloat(ds_main_dutlist.getColumn(i, "realhrd"));
- }else{
- var sConthr = iTranHr + parseFloat(ds_main_dutlist.getColumn(i, "duthrd")) + parseFloat(ds_main_dutlist.getColumn(i, "duthrn"));
- var sRealthr = iTranRealHr + parseFloat(ds_main_dutlist.getColumn(i, "realhrd")) + parseFloat(ds_main_dutlist.getColumn(i, "realhrn"));
- }
-
- ds_main_dutlist.setColumn(i, "conthr", parseFloat(ds_main_dutlist.getColumn(i, "duthrd")) + parseFloat(ds_main_dutlist.getColumn(i, "duthrn")));
- ds_main_dutlist.setColumn(i, "realhr", parseFloat(ds_main_dutlist.getColumn(i, "realhrd")) + parseFloat(ds_main_dutlist.getColumn(i, "realhrn")) + parseFloat(ds_main_dutlist.getColumn(i, "conftm")));
-
- if ( sRealthr > 16 ){
- ds_main_dutlist.setColumn(i, "contrealhr", sRealthr);
- }else{
- ds_main_dutlist.setColumn(i, "contrealhr", sConthr);
- }
- // if(grd_dutlist.valueMatrix(i, grd_dutlist.colRef("contrealhr")) > 16){
- // grd_dutlist.valueMatrix(i, grd_dutlist.colRef("contrealhr")) = grd_dutlist.valueMatrix(i, grd_dutlist.colRef("realhr"));
- // }else{
- // grd_dutlist.valueMatrix(i, grd_dutlist.colRef("contrealhr")) = grd_dutlist.valueMatrix(i, grd_dutlist.colRef("conthr"));
- // }
-
- if(ds_main_dutlist.getColumn(i, "contrealhr") > 36){
- ds_main_dutlist.setColumn(i, "colBack9", "#ccffcc");
- }else{
- //휴일구분(0:휴일, 4:토요일, 8:평일)이 평일 아닌 경우, 요일컬럼의 Color 를 변경한다.
- if(ds_main_dutlist.getColumn(i, "holiflag") != "8") {
- ds_main_dutlist.setColumn(i, "colBack9", "#faeefa");
- } else {
- ds_main_dutlist.setColumn(i, "colBack9", "#white");
- }
- }
- }
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- }
-
- function ds_main_dutlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "conftm"){
- if(utlf_isNull(obj.getColumn(e.row, "conftm"))){
- obj.setColumn(e.row, "conftm", "0");
- }
- }
-
- fDutHrSet(e.row);
- }
- function fDutHrSet(rowIdx)
- {
- if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "TR"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "9");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "A5"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "4.5");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "6");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "ET" || ds_main_dutlist.getColumn(rowIdx, "duttyped") == "NT"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "7");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "18" || ds_main_dutlist.getColumn(rowIdx, "duttyped") == "19"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "4.5");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "6");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "T1"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "10");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "13");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "T2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "4");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "5");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "NC"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "4");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "5");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "N1"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "4");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "5");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "N2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "4");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "5");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "T3"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "4");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "5");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "T4"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "3");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "4");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "ED"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "9");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "H9"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "9");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttyped") == "C3"){
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "8");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "10");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- }else{
- ds_main_dutlist.setColumn(rowIdx, "duthrd", "0");
- ds_main_dutlist.setColumn(rowIdx, "realhrd", "0");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "0");
- }
-
- if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "ND"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "8");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "ER"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "8");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "EN"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "8");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "ET" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "NT"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "9.5");
- ds_main_dutlist.setColumn(rowIdx+1, "duthrd", "7");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "11");
- ds_main_dutlist.setColumn(rowIdx+1, "realhrd", "12");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "ES" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "NS"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "13");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "19");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "N0" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "A1" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "A2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "7");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "11");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "N0" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "O1" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "O2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "9");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "14");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "NB" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "B1" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "B2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "13");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "19");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "CP" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "C1" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "C2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "9");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", parseInt(ds_main_dutlist.getColumn(rowIdx, "ndcnt")) + 1);
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "14");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "NQ" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "Q1" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "Q2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "12");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "17");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "NR" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "R1" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "R2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "14");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "20");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "NP" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "P1" || ds_main_dutlist.getColumn(rowIdx, "duttypen") == "P2"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "11");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", "1");
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "17");
- }else if(ds_main_dutlist.getColumn(rowIdx, "duttypen") == "3C"){
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "13");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", parseInt(ds_main_dutlist.getColumn(rowIdx, "ndcnt")) + 1);
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "19");
- }else{
- ds_main_dutlist.setColumn(rowIdx, "duthrn", "0");
- ds_main_dutlist.setColumn(rowIdx, "ndcnt", parseInt(ds_main_dutlist.getColumn(rowIdx, "ndcnt")) + 0);
- ds_main_dutlist.setColumn(rowIdx, "realhrn", "0");
- }
-
- fSetContHr();
- }
- function grd_duttype_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_init_duttype_codelist.getColumn(e.row, "useyn") == "N") return;
-
- for(var t = 0; t < ds_init_duttype_codelist.rowcount; t++){
- if(ds_init_duttype_codelist.getColumn(t, "cdid") == "TR"){
- var sTrfromtime = ds_init_duttype_codelist.getColumn(t, "cntlcd1");
- var sTrtotime = ds_init_duttype_codelist.getColumn(t, "cntlcd2");
- break;
- }
- }
-
- if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttyped") || grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttypen"))
- {
- var duttype = ds_init_duttype_codelist.getColumn(e.row, "cdid");
- var holiflag = ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "holiflag");
-
- var sDeptgbn = "A";
- var sDutname = ds_init_duttype_codelist.getColumn(ds_init_duttype_codelist.rowposition, "cdnm");
- var sDaynm = ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "day");
-
- var sFromtime = ds_init_duttype_codelist.getColumn(e.row, "cntlcd1");
- var sTotime = ds_init_duttype_codelist.getColumn(e.row, "cntlcd2");
-
- var sDutdd = ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "dutdd");
-
- var sDeptcd = ds_main_emplist.getColumn(ds_main_emplist.rowposition, "deptcd");
- if ( sDeptcd == "2010000000")
- {
- sDeptgbn = "S";
- }
- else if ( sDeptcd == "4110200000")
- {
- sDeptgbn = "I";
- }
-
- if(holiflag != "8" && (duttype == "18" || duttype == "19"))
- {
- sysf_messageBox("평일에만 연차(AM), 연차(PM) 입력이 가능합니다.", "I999", "");
- return;
- }
-
- if(sDeptgbn == "S")
- {
- // if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttyped") && duttype == "EN")
- // {
- // sysf_messageBox("주간에 ER N수련을 입력할 수 없습니다.", "I999", "");
- // return;
- // }
- //
- // if(duttype == "EN" && sDaynm == "토")
- // {
- // sysf_messageBox( sDutname + " 근무는 '일요일~금요일' 야간에 입력 가능합니다.","I999","");
- // return;
- // }
- //
- // if(duttype == "EN" && (holiflag == "0" && sDaynm == "일"))
- // {
- // if(ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") != "OF")
- // {
- // sysf_messageBox("일요일 오전이 'OFF' 일때만 입력 가능합니다. ","I999","");
- // return;
- // }
- // }
-
- //2018.05.15 내과 수련현황표 새로 만들기.
- // 주간에 당직 입력 불가
- if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("body", "duttyped")
- && (duttype == "N0" ||duttype == "A1" ||duttype == "A2" ||duttype == "NO" ||duttype == "O1" ||duttype == "O2"
- ||duttype == "NB" ||duttype == "B1" ||duttype == "B2" ||duttype == "CP" ||duttype == "C1" ||duttype == "C2"
- ||duttype == "NQ" ||duttype == "Q1" ||duttype == "Q2" ||duttype == "NR" ||duttype == "R1" ||duttype == "R2"
- ||duttype == "NP" ||duttype == "P1" ||duttype == "P2" ||duttype == "EN"
- ||duttype == "3C" )){
- sysf_messageBox("주간에 입력할 수 없는 근무코드 입니다..", "I999", "");
- return;
- }
-
- //야간에 수련 입력 불가
- if (grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("body", "duttypen")
- && (duttype == "T1" ||duttype == "T2" ||duttype == "NC" ||duttype == "N1" ||duttype == "N2"
- ||duttype == "T3" ||duttype == "T4" ||duttype == "ED" ||duttype == "H9"
- ||duttype == "C3" )) {
- sysf_messageBox("야간에 입력할 수 없는 근무코드 입니다.", "I999", "");
- return;
- }
-
- //평일 근무코드, 당직근무일때는 '수련1' 필요, 공휴일전날평일당직일때는 다음날 OFF 혹은 수련4 필요 ( 월말일때 다음 근무 작성안내 메세지)
- if(duttype == "T1" || duttype == "N0" || duttype == "A1" || duttype == "A2" || duttype == "NO" || duttype == "O1" || duttype == "O2" ){
- if(holiflag == "8"){
- }else{
- sysf_messageBox(sDutname + " 근무는 평일에만 입력할 수 있습니다", "I999", "");
- return;
- }
- }
-
- //토요일만 가능
- if(duttype == "T2" || duttype == "NB" || duttype == "B1" || duttype == "B2"){
- if(sDaynm != "토"){
- sysf_messageBox(sDutname + " 근무는 토요일에만 입력가능합니다.", "I999", "");
- return;
- }
- }
-
- //일요일만 가능
- if(duttype == "C3" || duttype == "NC" || duttype == "T3" || duttype == "3C"|| duttype == "CP"){
- if(sDaynm != "일"){
- sysf_messageBox(sDutname + " 근무는 일요일에만 입력가능합니다.", "I999", "");
- return;
- }
-
- if(duttype == "C3" || duttype == "T3"){
- if(ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttypen") != "CP" &&
- ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttypen") != "OF"){
- sysf_messageBox(sDutname + " 근무는 [OFF],[당직(CP)] 근무 이전 주간에만 입력할 수 있습니다", "I999", "");
- return;
- }
- } else if(duttype == "3C"){
- if(ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") != "NC" &&
- ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") != "OF"){
- sysf_messageBox(sDutname + " 근무는 [당직(Ca)],[OFF] 근무 이후에만 입력할 수 있습니다", "I999", "");
- return;
- }
- }
- }
-
- //평일공휴일 근무코드
- if(duttype == "T4" || duttype == "NQ" || duttype == "Q1" || duttype == "Q2" || duttype == "NR" || duttype == "R1" || duttype == "R2" ){
- if(holiflag == "0" && (sDaynm == "월" || sDaynm == "화" || sDaynm == "수" || sDaynm == "목" || sDaynm == "금")){
- }else{
- sysf_messageBox(sDutname + " 근무는 평일공휴일에만 입력할 수 있습니다", "I999", "");
- return;
- }
-
- }
-
- //평일공휴일 근무코드, ( 월말일때 다음 근무 작성안내 메세지)
- if(duttype == "NP" || duttype == "P1" || duttype == "P2" ){
- if(holiflag == "0" && sDaynm == "일"){
- var nextHoliflag = ds_main_dutlist.getColumn(ds_main_dutlist.rowposition+1, "holiflag"); //휴일구분(0:휴일, 4:토요일, 8:평일)
- if(nextHoliflag != "0" && !utlf_isNull(nextHoliflag)){ // 공휴일, 월말일 체크
- sysf_messageBox(sDutname + " 근무는 다음날이 '공휴일'일때만 입력할 수 있습니다", "I999", "");
- return;
- }
- }else{
- sysf_messageBox(sDutname + " 근무는 일요일 야간에만 입력할 수 있습니다", "I999", "");
- return;
- }
- }
- }
-
- if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttyped") && duttype == "ND")
- {
- sysf_messageBox("주간에 당직을 입력할 수 없습니다", "I999", "");
- return;
- }
- else if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttyped") && duttype == "ER")
- {
- sysf_messageBox("주간에 당직(ER)을 입력할 수 없습니다", "I999", "");
- return;
- }
- else if (grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttypen") && duttype == "TR")
- {
- sysf_messageBox("야간에 수련을 입력할 수 없습니다", "I999", "");
- return;
- }
-
- if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttypen") && sDeptgbn == "A" && duttype != "ND" && duttype != "ER" && duttype != "OF" && duttype != "NA")
- {
- sysf_messageBox("야간에는 당직, 당직(ER) 또는 OFF만 입력 가능합니다", "I999", "");
- return;
- }
-
- if (grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("Body", "duttypen") && sDeptgbn == "I" && duttype != "ND" && duttype != "ER" && duttype != "OF" && duttype != "NA" && duttype != "EN")
- {
- sysf_messageBox("야간에는 당직, 당직(ER),ER N수련 또는 OFF만 입력 가능합니다", "I999", "");
- return;
- }
- if(holiflag != "8" && duttype == "ND")
- {
- if(ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") == "OF" || ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") == "NA" || utlf_isNull(ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped")))
- {
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttyped", "TR");
- //주간코드 변경과 동시에 시간도 입력
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "dayfromdd", sDutdd + sTrfromtime);
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "daytodd", sDutdd + sTrtotime);
- }
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttyped", "ND");
-
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setRowType(ds_main_dutlist.rowposition, 4);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- }
- else if(holiflag != "8" && duttype == "ER")
- {
- if(ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") == "OF" || ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") == "NA" || utlf_isNull(ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped")))
- {
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttyped", "TR");
- //주간코드 변경과 동시에 시간도 입력
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "dayfromdd", sDutdd + sTrfromtime);
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "daytodd", sDutdd + sTrtotime);
- }
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttypen", "ER");
-
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setRowType(ds_main_dutlist.rowposition, 4);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- }else if( holiflag != "8" && duttype == "OFF" && //평일이 아닐 때, 당직을 취소하면 |수련|OFF| 가 아닌 |OFF|OFF| set 으로 입력한다.
- ((ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") == "TR" && ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttypen") == "ND") ||
- (ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped") == "TR" && ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttypen") == "ER")) ){
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttyped", "OF");
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttypen", "OF");
-
- //주간코드 변경과 동시에 시간도 입력
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "dayfromdd", sDutdd + "0000");
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "daytodd", sDutdd + "0000");
- //야간코드 변경과 동시에 시간도 입력
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "dayfromdd", sDutdd + "0000");
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "daytodd", sDutdd + "0000");
-
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setRowType(ds_main_dutlist.rowposition, 4);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- } else if(duttype == "NA") { // N/A를 클릭하면 야간 역시 빈칸이 될 수 있게
- var duttyped = ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttyped");
- if (duttyped == "TR" || duttyped == "OF" || utlf_isNull(duttyped)) {
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttyped", "NA");
- //주간코드 변경과 동시에 시간도 입력
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "dayfromdd", sDutdd + "0000");
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "daytodd", sDutdd + "0000");
-
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setRowType(ds_main_dutlist.rowposition, 4);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- }
- var duttypen = ds_main_dutlist.getColumn(ds_main_dutlist.rowposition, "duttypen");
- if (duttypen == "ND" || duttypen == "ER" || duttypen == "OF" || utlf_isNull(duttypen)) {
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttypen", "NA");
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "ngtfromdd", sDutdd + "0000");
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "ngttodd", sDutdd + "0000");
-
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setRowType(ds_main_dutlist.rowposition, 4);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- }
- }
- else
- {
- if(grd_dutlist.currentcol == 3)
- {
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttyped", duttype);
- }
- else
- {
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "duttypen", duttype);
- }
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setRowType(ds_main_dutlist.rowposition, 4);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- }
-
- if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("body", "duttyped")){
- var sDayfromdd = sDutdd + sFromtime;
- var sDaytodd = sDutdd + sTotime;
-
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "dayfromdd", sDayfromdd);
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "daytodd", sDaytodd);
- }else if(grd_dutlist.currentcell == grd_dutlist.getBindCellIndex("body", "duttypen")){
- var sNgtfromdd = sDutdd + sFromtime;
-
- if(parseInt(sFromtime) > parseInt(sTotime)){
- var sNgttodd = ((sDutdd.toDate("YYYYMMDD")).getAddDate(1)).getDateFormat() + sTotime;
- }else{
- var sNgttodd = sDutdd + sTotime;
- }
-
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "ngtfromdd", sNgtfromdd);
- ds_main_dutlist.setColumn(ds_main_dutlist.rowposition, "ngttodd", sNgttodd);
- }
- }
- }
- function btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- if(String(ds_main_condition.getColumn(0, "ym")).length != 6 )
- {
- sysf_messageBox("먼저 근무년월을 정확하게 입력하십시요. ", "I999", "");
- grp_sea.ipt_ym.setFocus();
- return;
- }
-
- if(String(grp_sea.ipt_emplnos.value).length == 0 || String(grp_sea.ipt_emplnms.value).length == 0)
- {
- sysf_messageBox("먼저 사번을 정확하게 입력한 후 대상추가 버튼을 누르세요. ", "I999", "");
- grp_sea.ipt_emplnos.setFocus();
- return;
- }
-
- var irow = ds_main_emplist.addRow();
-
- ds_main_emplist.setColumn(irow, "emplno", grp_sea.ipt_emplnos.value);
- ds_main_emplist.setColumn(irow, "emplnm", grp_sea.ipt_emplnms.value);
-
- fGetDutList();
- }
- function btn_print3_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_dutlist).rowcount;
-
- if(updtdata != 0)
- {
- sysf_messageBox("저장되지 않은 작업 내용이 존재합니다.\n\n먼저 저장 후 출력 처리하십시요. ", "E999", "");
- return;
- }
-
- ds_send.clearData();
- dsf_makeValue(ds_send, "instcd", "string", grp_sea.cmb_instcd.value, 0);
- dsf_makeValue(ds_send, "ym", "string", ds_main_condition.getColumn(0, "ym"), 0);
-
- var oParam = {};
- oParam.id = "TRRPD30806";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetInternNdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_print3_printlist=printlist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30806";
- tranf_submit(oParam);
- }
- function cf_TRRPD30806(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/print3/printlist", ds_print3_printlist);
- rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPRPD30803"],[objParam], option);
- }
- }
- function btn_print2_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_dutlist).rowcount;
-
- if(updtdata != 0 )
- {
- sysf_messageBox("저장되지 않은 작업 내용이 존재합니다.\n\n먼저 저장 후 출력 처리하십시요. ", "E999", "");
- return;
- }
-
- ds_send.clearData();
- dsf_makeValue(ds_send, "instcd", "string", grp_sea.cmb_instcd.value, 0);
- dsf_makeValue(ds_send, "ym", "string", ds_main_condition.getColumn(0, "ym"), 0);
- dsf_makeValue(ds_send, "deptcd", "string", grp_sea.ipt_deptcd.value, 0);
-
- var oParam = {};
- oParam.id = "TRRPD30804";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDeptNdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_print2_print2list=print2list";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30804";
- tranf_submit(oParam);
- }
- function cf_TRRPD30804(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/print2/print2list", ds_print2_print2list);
- rptf_setNodeListToDOM(objDOM, "/root/send", ds_send);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPRPD30802"],[objParam], option);
- }
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_dutlist).rowcount;
-
- if(updtdata != 0)
- {
- sysf_messageBox("저장되지 않은 작업 내용이 존재합니다.\n\n먼저 저장 후 출력 처리하십시요. ", "E999", "");
- return;
- }
-
- ds_print_dutlist.copyData(ds_main_dutlist)
-
- for(var i = 0; i < ds_print_dutlist.rowcount; i++)
- {
- dsf_makeValue(ds_print_dutlist, "duttypednm", "string", ds_init_duttype_codelist.lookup("cdid", ds_main_dutlist.getColumn(i, "duttyped"), "cdnm"), i);
- dsf_makeValue(ds_print_dutlist, "duttypennm", "string", ds_init_duttype_codelist.lookup("cdid", ds_main_dutlist.getColumn(i, "duttypen"), "cdnm"), i);
- }
-
- ds_print.setColumn(0, "emplno", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno"));
- ds_print.setColumn(0, "emplnm", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplnm"));
- ds_print.setColumn(0, "deptnm", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "deptnm"));
- ds_print.setColumn(0, "anual", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "anual"));
- ds_print.setColumn(0, "ym", ds_main_condition.getColumn(0, "ym"));
-
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/main/dutlist", ds_print_dutlist);
- rptf_setNodeListToDOM(objDOM, "/root/print", ds_print);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPRPD30801"],[objParam], option);
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- if (sysf_messageBox( "선택한 대상자의 자료를 삭제하시겠습니까? \n\n※ 단, 전자결재와 연동된 근태일자의 자료는 삭제되지 않습니다.\n삭제후 결과를 다시 한번 확인하고 수정해주십시요. ", "Q999", "") != 6 )
- {
- return;
- }
-
- ds_main_dutlist.updatecontrol = false;
- for(var i = 0; i < ds_main_dutlist.rowcount; i++)
- {
- ds_main_dutlist.setRowType(i, "d");
- }
- ds_main_dutlist.updatecontrol = true;
-
- fClickSaveBtn();
- }
- function fClickSaveBtn()
- {
- ds_send.clearData();
- dsf_makeValue(ds_send, "instcd", "string", grp_sea.cmb_instcd.value, 0);
- dsf_makeValue(ds_send, "ym", "string", ds_main_condition.getColumn(0, "ym"), 0);
- dsf_makeValue(ds_send, "emplno", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno"), 0);
- dsf_makeValue(ds_send, "deptcd", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "deptcd"), 0);
-
- var oParam = {};
- oParam.id = "TXRPD30801";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSavePsnDutyList";
- oParam.inds = "req=ds_send dutlist=ds_main_dutlist:u";
- oParam.async = false;
- oParam.callback = "cf_TXRPD30801";
- tranf_submit(oParam);
- }
- function cf_TXRPD30801(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- fGetEmpList();
- var sEmplno = ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno")
-
- var iRow = ds_main_emplist.findRow("emplno", sEmplno);
-
- if(iRow > -1)
- {
- ds_main_emplist.rowposition = iRow;
-
- fGetDutList();
- }
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickSaveBtn();
- }
- function btn_send_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_dutlist).rowcount;
-
- if(updtdata != 0)
- {
- sysf_messageBox("저장되지 않은 작업 내용이 존재합니다.\n\n먼저 저장 후 " + btn_send.label + " 처리 하십시요. ", "E999", "");
- return;
- }
-
- var powertp = ds_main_condition.getColumn(0, "powertp");
- if(powertp == "4") { //권한유형 4 교육수련실장 : 일괄 승인 및 일괄 승인취소가 되도록 메시지 처리
- if (sysf_messageBox( "대상 전체를 일괄 " + btn_send.text + " 처리 하시겠습니까? ", "Q999", "") != 6 ) return;
- }
- else {
- if (sysf_messageBox( "선택한 대상자의 자료를 " + btn_send.text + " 처리 하시겠습니까? ", "Q999", "") != 6 )
- {
- return;
- }
- }
-
- fClickSendBtn("confirm");
- }
- function fClickSendBtn(pWorktype)
- {
- ds_send.clearData();
- dsf_makeValue(ds_send, "instcd", "string", grp_sea.cmb_instcd.value, 0);
- dsf_makeValue(ds_send, "ym", "string", ds_main_condition.getColumn(0, "ym"), 0);
- dsf_makeValue(ds_send, "powertp", "string", ds_main_condition.getColumn(0, "powertp"), 0);
- dsf_makeValue(ds_send, "worktp", "string", pWorktype, 0);
- dsf_makeValue(ds_send, "emplno", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno"), 0);
- dsf_makeValue(ds_send, "deptcd", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "deptcd"), 0);
-
- var oParam = {};
- oParam.id = "TXRPD30802";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveProcessInfoNew";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD30802";
- tranf_submit(oParam);
- }
- function cf_TXRPD30802(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- fGetEmpList();
-
- var iRow = ds_main_emplist.findRow("emplno", sEmplno);
- var sEmplno = ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno");
- if(iRow > -1)
- {
- ds_main_emplist.rowposition = iRow;
-
- fGetDutList(); //개인 수련 현황 재조회
- }
- }
- }
- function btn_sendCancel_onclick(obj:Button, e:ClickEventInfo)
- {
- var powertp = ds_main_condition.getColumn(0, "powertp");
- if(powertp == "4") { //권한유형 4 교육수련실장 : 일괄 승인 및 일괄 승인취소가 되도록 메시지 처리
- if (sysf_messageBox( "대상 전체를 일괄 " + btn_send.text + " 처리 하시겠습니까? ", "Q999", "") != 6 ) return;
- }
- else {
- if (sysf_messageBox( "선택한 대상자의 자료를 " + btn_sendCancel.text + " 처리 하시겠습니까? ", "Q999", "") != 6 )
- {
- return;
- }
- }
-
- fClickSendBtn("cancel");
- }
- function btn_admcancel_onclick(obj:Button, e:ClickEventInfo)
- {
- var powertp = ds_main_condition.getColumn(0, "powertp");
-
- if(powertp == "3") { //교육수련실 담당자 강제 승인 취소 처리( procstat = 'T')
- if (sysf_messageBox( "대상 전체를 일괄 '강제승인취소' 처리 하시겠습니까? ", "Q999", "") != 6 ) return;
- }
- else {
- return;
- }
-
- fClickAdmSend("admcancel");
- }
- //========================================================================================
- // 교육수련실 담당자 강제승인,승인취소
- //========================================================================================
- function fClickAdmSend(pWorktype) {
-
- ds_send.clearData();
- ds_send.addRow();
- ds_send.setColumn(0, "instcd", grp_sea.cmb_instcd.value);
- ds_send.setColumn(0, "ym", ds_main_condition.getColumn(0, "ym") );
- ds_send.setColumn(0, "powertp", ds_main_condition.getColumn(0, "powertp") );
- ds_send.setColumn(0, "worktp", pWorktype );
- ds_send.setColumn(0, "emplno", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno") );
- ds_send.setColumn(0, "deptcd", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "deptcd") );
-
- //선택했던 사번이 어떤 것인지 저장하는 변수
- var sEmplno = ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno");
-
- var oParam = {};
- oParam.id = "TXRPD30803";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveAdmSend";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_temp_hidden_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD30803";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXRPD30803") > -1) {
- fGetEmpList();//대상 목록 재조회
- //대상목록에서 선택했던 사번 찾기
- var iRow = ds_main_emplist.findRow("emplno", sEmplno);
-
- if(iRow >= 0) {
- ds_main_emplist.rowposition = iRow;
-
- fGetDutList(); //개인 수련 현황 재조회
- }
- }
- }
- function cf_TXRPD30803(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function btn_admconfirm_onclick(obj:Button, e:ClickEventInfo)
- {
- var powertp = ds_main_condition.getColumn(0, "powertp");
-
- if(powertp == "3") { //교육수련실 담당자 강제 승인 취소 처리( procstat = 'T')
- if (sysf_messageBox( "대상 전체를 일괄 '강제승인' 처리 하시겠습니까? ", "Q999", "") != 6 ) return;
- }
- else {
- return;
- }
-
- fClickAdmSend("admconfirm");
- }
- function btn_im_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_open("SMRPD30802", "SMRPD30802", null, null, null, null, null, null, null, null, null, null, "M"); //주메인
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- //그리드에 변경된 자료가 있는지 확인
- var updtdata = grdf_getGridUpdateData(grd_dutlist);
-
- if(!utlf_isNull(updtdata) && updtdata.rowcount > 0 ) { // 변경된 데이터가 있는 경우
- sysf_messageBox("저장되지 않은 작업 내용이 존재합니다.\n\n먼저 저장 후 엑셀다운 처리 하십시요. ", "E999", "");
- return;
- }
-
- //radfSaveExcel(grd_dutlist);
- //misfSaveExcel(grd_dutlist, "전공의 수련대장(개인별)");
- if( grd_dutlist.rowcount > 0 ){
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn1"), "size", 0);
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn2"), "size", 0);
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn3"), "size", 0);
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn4"), "size", 0);
- grdf_exportExcel(grd_dutlist, "save", "savetype", false, "", "user", false);
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn1"), "size", 56);
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn2"), "size", 56);
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn3"), "size", 56);
- grd_dutlist.setFormatColProperty(grd_dutlist.getBindCellIndex("body", "aprvpsn4"), "size", 56);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- return;
- }
- }
- function grd_dutlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0) return;
-
- if(e.col == grd_dutlist.getBindCellIndex("body", "duttyped")) {
-
- //shiftKey 를 누른 채 마우스click을 하면 해당 일자까지 파견을 일괄적으로 입력한다.
- //단, 이전의 최근 파견일자가 있으면 그날 이후부터 마우스click한 날짜까지 파견을 입력한다.
- //주간이 TR, OF 인 경우만 주간data를 파견으로 변경 처리한다.
- if(e.shiftKey == true) {
- if (sysf_messageBox( "해당 일자까지 일괄 파견 처리 하시겠습니까? \n\n - 주간이 수련, OFF인 경우만 파견으로 일괄 변경됩니다. ", "Q999", "") != 6 ) return;
-
- for(var i = ds_main_dutlist.rowposition; i >= 0; i--) {
- var duttype = ds_main_dutlist.getColumn(i, "duttyped"); //선택한 근무코드
- if(duttype == "TR" || duttype == "OF" || duttype == "NA" || utlf_isNull(duttype)) {
-
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setColumn(i, "duttyped", "25"); //25:파견
- ds_main_dutlist.setRowType(i, 4);
- fDutHrSet(i);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- } else if(duttype == "25") { //25:파견
- break;
- }
- }
-
- }
- //controlKey 를 누른 채 마우스click을 하면 해당 일자까지 분만을 일괄적으로 입력한다.
- //단, 이전의 최근 분만일자가 있으면 그날 이후부터 마우스click한 날짜까지 분만을 입력한다.
- //주간이 TR, OF 인 경우만 주간data를 분만으로 변경 처리한다.
- else if(e.ctrlKey == true) {
- if (sysf_messageBox( "해당 일자까지 일괄 분만 처리 하시겠습니까? \n\n - 주간이 수련, OFF인 경우만 분만으로 일괄 변경됩니다. ", "Q999", "") != 6 ) return;
-
- for(var i = ds_main_dutlist.rowposition; i >= 0; i--) {
- var duttype = ds_main_dutlist.getColumn(i, "duttyped"); //선택한 근무코드
- if(duttype == "TR" || duttype == "OF" || duttype == "NA" || utlf_isNull(duttype)) {
- ds_main_dutlist.enableevent = false;
- ds_main_dutlist.updatecontrol = false;
- ds_main_dutlist.setColumn(i, "duttyped", "26"); //26:분만
- ds_main_dutlist.setRowType(i, 4);
- fDutHrSet(i);
- ds_main_dutlist.updatecontrol = true;
- ds_main_dutlist.enableevent = true;
- } else if(duttype == "26") { //26:분만
- break;
- }
- }
-
- }
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|