12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD30300" position="absolute 0 0 1199 805" titletext="전공의 수련 현황표" oninit="SMRPD30300_oninit" onload="SMRPD30300_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="전공의 수련 현황표" class="tit_1" position="absolute 0 0 293 25"/>
- <Shape id="line2" class="line_6" position="absolute 0 46 1194 52" anchor="left top right"/>
- <Button id="btn_excelAll" taborder="1" text="엑셀출력(전체)" class="btn1" visible="false" position="absolute 360 24 476 46" onclick="btn_excelAll_onclick"/>
- <Button id="btn_send" taborder="2" text="확정" class="btn4" position="absolute 1056 25 1112 47" anchor="top right" onclick="btn_send_onclick"/>
- <Button id="btn_sendCancel" taborder="3" text="확정취소" class="btn4" position="absolute 1114 25 1194 47" anchor="top right" onclick="btn_sendCancel_onclick"/>
- <Div id="grp_sea" taborder="4" class="div_SA2" position="absolute 0 50 1194 90" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1077 8 1083 32" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1100 9 1156 31" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Edit id="opt_deptnm" taborder="7" readonly="true" position="absolute 622 10 812 29" autoselect="true" autoskip="true" class="output"/>
- <Static id="caption1" text="부서코드" class="search_name" position="absolute 445 11 521 28"/>
- <Edit id="ipt_deptcd" taborder="8" class="input_default" position="absolute 527 10 602 29" autoselect="true" autoskip="true" onkeyup="grp_sea_ipt_deptcd_onkeyup"/>
- <Button id="btn_deptcd" taborder="9" class="icon_search" position="absolute 604 11 620 27" onclick="grp_sea_btn_deptcd_onclick"/>
- <Static id="caption9" text="근무년월" class="search_name" position="absolute 275 11 356 28"/>
- <Button id="btn_emplnos" taborder="10" class="icon_search" position="absolute 937 12 953 28" onclick="grp_sea_btn_emplnos_onclick"/>
- <Static id="caption2" text="사번" class="search_name" position="absolute 824 11 880 28"/>
- <Edit id="ipt_emplnos" taborder="11" class="input_default" position="absolute 879 10 935 29" autoskip="true" autoselect="true" onkeyup="grp_sea_ipt_emplnos_onkeyup"/>
- <Edit id="ipt_emplnms" taborder="12" class="input_default" position="absolute 955 10 1061 29" autoskip="true" autoselect="true" onkeyup="grp_sea_ipt_emplnms_onkeyup"/>
- <Calendar id="ipt_ym" taborder="13" class="input_default" position="absolute 357 10 435 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 120 10 262 29" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
- <Static id="caption29" text="기관코드" class="search_name" position="absolute 39 11 115 28"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line3" class="line_10" position="absolute 0 116 280 122"/>
- <Static id="caption21" text="대상 목록" class="tit_2" position="absolute 0 100 80 122"/>
- <Button id="btn_excel" taborder="5" text="엑셀출력" class="btn7" position="absolute 768 97 848 116" anchor="top right" onclick="btn_excel_onclick"/>
- <Grid id="grd_emplist" taborder="6" binddataset="ds_main_emplist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 121 280 671" anchor="left top bottom" oncellclick="grd_emplist_oncellclick" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="27"/>
- <Column size="34"/>
- <Column size="41"/>
- <Column size="56"/>
- <Column size="114"/>
- <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="procstat"/>
- <Cell col="6" text="deptcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow == ds_main_emplist.rowposition ? '▶' : ''" displayexpdec="0"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' || chk == '1' ? 1 : 0"/>
- <Cell col="2" text="bind:emplno"/>
- <Cell col="3" text="bind:emplnm"/>
- <Cell col="4" text="bind:procstatnm"/>
- <Cell col="5" text="bind:procstat"/>
- <Cell col="6" text="bind:deptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_dutlist" taborder="7" binddataset="ds_main_dutlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 282 121 1193 486" anchor="all" oncellclick="grd_dutlist_oncellclick" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="34"/>
- <Column size="48"/>
- <Column size="68"/>
- <Column size="30"/>
- <Column size="66"/>
- <Column size="131"/>
- <Column size="78"/>
- <Column size="73"/>
- <Column size="38"/>
- <Column size="73"/>
- <Column size="38"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="178"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="62"/>
- <Column size="0"/>
- <Column size="66"/>
- <Column size="0"/>
- <Column size="88"/>
- <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"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="No."/>
- <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" colspan="2" text="시작일시" taborder="undefined"/>
- <Cell col="10" colspan="2" text="종료일시" taborder="undefined"/>
- <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="교육수련확인"/>
- <Cell col="21" text="교육수련실장"/>
- <Cell col="22" text="최종승인"/>
- <Cell col="23" text="첨부파일경로"/>
- <Cell col="24" text="첨부파일명"/>
- <Cell col="25" text="근무형태코드"/>
- <Cell col="26" text="orgfromdd"/>
- <Cell col="27" text="orgfromtm"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:no"/>
- <Cell col="2" text="bind:emplno"/>
- <Cell col="3" text="bind:emplnm"/>
- <Cell col="4" text="bind:anual"/>
- <Cell col="5" text="bind:jobkindnm"/>
- <Cell col="6" text="bind:deptnm"/>
- <Cell col="7" text="bind:duttypenm"/>
- <Cell col="8" displaytype="date" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
- <Cell col="9" text="bind:fromtm" mask="##:##" maskchar=" "/>
- <Cell col="10" displaytype="date" text="bind:todd" calendardisplaynulltype="nulltext"/>
- <Cell col="11" text="bind:totm" mask="##:##" maskchar=" "/>
- <Cell col="12" text="bind:duttime"/>
- <Cell col="13" text="bind:fileyn"/>
- <Cell col="14" text="bind:cmt"/>
- <Cell col="15" text="bind:aprvpsn1"/>
- <Cell col="16" text="bind:aprvdd1" mask="yyyy-mm-dd"/>
- <Cell col="17" text="bind:aprvpsn2"/>
- <Cell col="18" text="bind:aprvdd2" mask="yyyy-mm-dd"/>
- <Cell col="19" text="bind:aprvpsn3"/>
- <Cell col="20" text="bind:aprvdd3" mask="yyyy-mm-dd"/>
- <Cell col="21" text="bind:aprvpsn4"/>
- <Cell col="22" text="bind:aprvdd4" mask="yyyy-mm-dd"/>
- <Cell col="23" text="bind:filepath"/>
- <Cell col="24" text="bind:filenm"/>
- <Cell col="25" text="bind:duttype"/>
- <Cell col="26" text="bind:orgfromdd"/>
- <Cell col="27" text="bind:orgfromtm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_10" position="absolute 282 116 1193 122" anchor="left top right"/>
- <Static id="caption3" text="개인별 수련 현황" class="tit_2" position="absolute 283 100 409 121"/>
- <Static id="caption14" text="상세내역" class="tit_2" position="absolute 286 510 435 531" anchor="left bottom"/>
- <Button id="btn_new" taborder="8" text="신규" class="btn4" position="absolute 1018 508 1074 530" anchor="right bottom" onclick="btn_new_onclick"/>
- <Button id="btn_delete" taborder="9" text="삭제" class="btn4" position="absolute 1078 508 1134 530" anchor="right bottom" onclick="btn_delete_onclick"/>
- <Button id="btn_save" taborder="10" text="저장" class="btn4" position="absolute 1138 508 1194 530" anchor="right bottom" onclick="btn_save_onclick"/>
- <Static id="caption22" text=" - 인턴 : 개인자료 등록(=임시저장) -> 개인자료 (월단위) 확정 -> 교육수련 담당자 확인 -> 최종승인(교육수련실장)" position="absolute 5 702 849 722" style="color:#ff0000ff;" anchor="left bottom"/>
- <Button id="btn_print1" taborder="11" text="수련대장(개인별)" class="btn2" position="absolute 850 97 958 116" anchor="top right" onclick="btn_print1_onclick"/>
- <Static id="caption23" text="※ 부서, 년차, 직종은 조회하신 근무년월의 마지막 일자를 기준으로 인사발령정보를 참조합니다." position="absolute 5 720 539 740" style="color:#ff0000ff;" anchor="left bottom"/>
- <Static id="caption24" text=" - 레지던트 : 개인자료 등록(=임시저장) -> 개인자료 (월단위) 확정 -> 의국장 확인 -> 부서장 승인 -> 교육수련 담당자 확인 -> 최종승인(교육수련실장)" position="absolute 5 687 849 707" style="color:#ff0000ff;" anchor="left bottom"/>
- <Static id="caption25" text="※ 처리 절차" position="absolute 5 671 849 691" style="color:#ff0000ff;" anchor="left bottom"/>
- <Static id="caption26" text="※ 칠곡 소아청소년 분과 중 하나를 선택 시, 아래 8개 분과 전체가 다 함께 조회됩니다. (본원은 해당되지 않습니다.)" position="absolute 5 735 812 763" style="color:#ff0000ff;" anchor="left bottom"/>
- <Static id="caption27" text="- 소아알레르기호흡기, 소아청소년내분비, 소아청소년소화기영양, 소아청소년신경, 소아청소년신장, 소아청소년심장, 소아청소년혈액종양, 신생아" position="absolute 20 752 827 780" style="color:#ff0000ff;" anchor="left bottom"/>
- <Button id="btn_upload" taborder="12" text="엑셀 Upload" class="btn7" position="absolute 910 508 1014 530" anchor="right bottom" onclick="btn_upload_onclick"/>
- <CheckBox id="cbx_perioduseyn" taborder="13" text="기간" truevalue="Y" position="absolute 962 96 1007 116" anchor="top right" onclick="cbx_perioduseyn_onclick"/>
- <Calendar id="ipt_periodfrom" taborder="14" autoselect="true" autoskip="true" class="input_default" position="absolute 1010 97 1095 116" mask="yyyy-mm-dd" anchor="top right"/>
- <Static id="caption28" text="~" position="absolute 1095 99 1110 114" anchor="top right"/>
- <Calendar id="ipt_periodto" taborder="15" autoselect="true" autoskip="true" class="input_default" position="absolute 1107 97 1192 116" mask="yyyy-mm-dd" anchor="top right"/>
- <Div id="grp_dutinfo" taborder="16" class="div_SA2" position="absolute 283 532 1195 672" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Static id="caption5" text="근태코드" position="absolute 18 36 95 53" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption10" text="근무일시" position="absolute 18 61 95 78" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption11" text="사 번" class="search_s_default" position="absolute 18 11 95 28" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption12" text="비 고" position="absolute 18 86 95 103" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption13" text="첨부파일" position="absolute 18 112 95 129" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption15" text="시" position="absolute 215 61 230 81" anchor="default"/>
- <Static id="caption16" text="분 부터" position="absolute 258 61 300 83" anchor="default"/>
- <Button id="btn_fileup1" taborder="60" text="등록" class="btn2" position="absolute 140 110 182 129" anchor="default" onclick="grp_dutinfo_btn_fileup1_onclick" visible="false"/>
- <Edit id="ipt_updpath" taborder="61" autoselect="true" autoskip="true" visible="false" position="absolute 310 110 410 129" anchor="default"/>
- <Button id="btn_filedown1" taborder="62" text="다운" class="btn2" position="absolute 230 110 272 129" anchor="default" onclick="grp_dutinfo_btn_filedown1_onclick"/>
- <Combo id="cmb_fileyn1" taborder="63" codecolumn="codecolumn" datacolumn="datacolumn" enable="false" position="absolute 95 110 135 129" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_filedel1" taborder="64" text="삭제" class="btn2" position="absolute 185 110 227 129" anchor="default" onclick="grp_dutinfo_btn_filedel1_onclick" visible="false"/>
- <Static id="caption8" text="의 국 장 확 인" position="absolute 553 11 660 28" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption17" text="부 서 장 승 인" position="absolute 553 36 663 53" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption18" text="교육수련담당확인" position="absolute 553 61 659 78" anchor="default" style="font:Dotum,9,bold;"/>
- <Static id="caption19" text="시" position="absolute 424 61 439 81" anchor="default"/>
- <Static id="caption20" text="분 까지" position="absolute 467 61 509 83" anchor="default"/>
- <Edit id="ipt_aprvpsn1" taborder="65" enable="false" position="absolute 665 10 737 29" anchor="default"/>
- <Edit id="ipt_aprvpsn2" taborder="66" enable="false" position="absolute 665 35 737 54" anchor="default"/>
- <Edit id="ipt_aprvpsn3" taborder="67" enable="false" position="absolute 665 60 737 79" anchor="default"/>
- <Edit id="ipt_aprvpsn4" taborder="68" enable="false" position="absolute 665 85 737 104" anchor="default"/>
- <MaskEdit id="ipt_aprvdd1" taborder="69" mask="yyyy-mm-dd" enable="false" visible="false" position="absolute 740 10 835 29" anchor="default"/>
- <MaskEdit id="ipt_aprvdd2" taborder="70" mask="yyyy-mm-dd" enable="false" visible="false" position="absolute 740 35 835 54" anchor="default"/>
- <MaskEdit id="ipt_aprvdd3" taborder="71" mask="yyyy-mm-dd" enable="false" visible="false" position="absolute 740 60 835 79" anchor="default"/>
- <MaskEdit id="ipt_aprvdd4" taborder="72" mask="yyyy-mm-dd" enable="false" visible="false" position="absolute 740 85 835 104" anchor="default"/>
- <Combo id="cmb_duttype" taborder="73" innerdataset="@ds_init_duttype_codelist" codecolumn="cdid" datacolumn="cdnm" class="combo_s_default" position="absolute 95 35 260 54" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="74" autoselect="true" autoskip="true" position="absolute 95 60 185 79" mask="yyyy-mm-dd" anchor="default"/>
- <MaskEdit id="ipt_fromtm1" taborder="75" mask="hh" autoselect="true" autoskip="true" position="absolute 189 60 215 79" anchor="default" onkeyup="grp_dutinfo_ipt_fromtm1_onkeyup"/>
- <MaskEdit id="ipt_fromtm2" taborder="76" mask="nn" enable="false" position="absolute 232 60 258 79" anchor="default"/>
- <Calendar id="ipt_todd" taborder="77" autoselect="true" autoskip="true" position="absolute 304 60 394 79" mask="yyyy-mm-dd" anchor="default"/>
- <MaskEdit id="ipt_totm1" taborder="78" mask="hh" autoselect="true" autoskip="true" position="absolute 398 60 424 79" anchor="default" onkeyup="grp_dutinfo_ipt_totm1_onkeyup"/>
- <MaskEdit id="ipt_totm2" taborder="79" mask="nn" enable="false" position="absolute 441 60 467 79" anchor="default"/>
- <Edit id="ipt_cmt" taborder="80" autoselect="true" autoskip="true" position="absolute 95 85 510 104" anchor="default"/>
- <Button id="btn_emplno" taborder="81" class="icon_search" position="absolute 153 11 169 27" anchor="default" onclick="grp_dutinfo_btn_emplno_onclick"/>
- <Edit id="ipt_emplno" taborder="82" autoselect="true" autoskip="true" class="input_default" position="absolute 95 10 151 29" anchor="default" onkeyup="grp_dutinfo_ipt_emplno_onkeyup"/>
- <Edit id="ipt_emplnm" taborder="83" autoselect="true" autoskip="true" class="input_default" position="absolute 171 10 260 29" anchor="default" onkeyup="grp_dutinfo_ipt_emplnm_onkeyup"/>
- <Static id="caption7" text="최 종 승 인" position="absolute 553 86 659 103" anchor="default" style="font:Dotum,9,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- </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="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="perioduseyn" type="STRING" size="256"/>
- <Column id="periodfrom" type="STRING" size="256"/>
- <Column id="periodto" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ym"/>
- <Col id="deptcd"/>
- <Col id="deptnm"/>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="powertp"/>
- <Col id="perioduseyn"/>
- <Col id="periodfrom"/>
- <Col id="periodto"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_emplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_emplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext="순번"/>
- <Column id="emplno" type="STRING" size="256" sumtext="사번"/>
- <Column id="emplnm" 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">
- <ColumnInfo>
- <Column id="no" type="STRING" size="256" sumtext="순번"/>
- <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="duttype" type="STRING" size="256" sumtext="근무형태"/>
- <Column id="duttypenm" type="STRING" size="256" sumtext="근태명"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="fromtm" type="STRING" size="256" sumtext="시작시간"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="totm" type="STRING" size="256" sumtext="종료시간"/>
- <Column id="duttime" type="STRING" size="256" sumtext="시간"/>
- <Column id="procstat" type="STRING" size="256" sumtext="진행상태"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="fileyn" type="STRING" size="256" sumtext="첨부파일여부"/>
- <Column id="filepath" type="STRING" size="256" sumtext="첨부파일경로"/>
- <Column id="filenm" 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="orgfromdd" type="STRING" size="256" sumtext="성명"/>
- <Column id="orgfromtm" type="STRING" size="256" sumtext="성명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_dutinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_dutinfo_oncolumnchanged">
- <ColumnInfo>
- <Column id="emplno" type="STRING" size="256"/>
- <Column id="emplnm" type="STRING" size="256"/>
- <Column id="anual" type="STRING" size="256"/>
- <Column id="jobkindnm" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="duttypenm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="fromtm" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="totm" type="STRING" size="256"/>
- <Column id="duttime" type="STRING" size="256"/>
- <Column id="fileyn" type="STRING" size="256"/>
- <Column id="cmt" type="STRING" size="256"/>
- <Column id="filepath" type="STRING" size="256"/>
- <Column id="filenm" type="STRING" size="256"/>
- <Column id="duttype" type="STRING" size="256"/>
- <Column id="procstat" type="STRING" size="256"/>
- <Column id="aprvpsn1" type="STRING" size="256"/>
- <Column id="aprvdd1" type="STRING" size="256"/>
- <Column id="aprvpsn2" type="STRING" size="256"/>
- <Column id="aprvdd2" type="STRING" size="256"/>
- <Column id="aprvpsn3" type="STRING" size="256"/>
- <Column id="aprvdd3" type="STRING" size="256"/>
- <Column id="aprvpsn4" type="STRING" size="256"/>
- <Column id="aprvdd4" type="STRING" size="256"/>
- <Column id="orgfromdd" type="STRING" size="256"/>
- <Column id="orgfromtm" type="STRING" size="256"/>
- <Column id="fromtm1" type="STRING" size="256"/>
- <Column id="fromtm2" type="STRING" size="256"/>
- <Column id="totm1" type="STRING" size="256"/>
- <Column id="totm2" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="emplno"/>
- <Col id="emplnm"/>
- <Col id="anual"/>
- <Col id="jobkindnm"/>
- <Col id="deptnm"/>
- <Col id="duttypenm"/>
- <Col id="fromdd"/>
- <Col id="fromtm"/>
- <Col id="todd"/>
- <Col id="totm"/>
- <Col id="duttime"/>
- <Col id="fileyn"/>
- <Col id="cmt"/>
- <Col id="filepath"/>
- <Col id="filenm"/>
- <Col id="duttype"/>
- <Col id="procstat"/>
- <Col id="aprvpsn1"/>
- <Col id="aprvdd1"/>
- <Col id="aprvpsn2"/>
- <Col id="aprvdd2"/>
- <Col id="aprvpsn3"/>
- <Col id="aprvdd3"/>
- <Col id="aprvpsn4"/>
- <Col id="aprvdd4"/>
- <Col id="orgfromdd"/>
- <Col id="orgfromtm"/>
- <Col id="fromtm1"/>
- <Col id="fromtm2"/>
- <Col id="totm1"/>
- <Col id="totm2"/>
- <Col id="status"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="file" 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="cdid" type="STRING" size="256" sumtext="코드"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_powerinfo" 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="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
- <Column id="powertp" type="STRING" size="256" sumtext="권한유형"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_print_prtlist" 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="duttypenm" type="STRING" size="256" sumtext="근태명"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="상세업무기술"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="fromtm" type="STRING" size="256" sumtext="시작시간"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="totm" type="STRING" size="256" sumtext="종료시간"/>
- <Column id="duttime" type="STRING" size="256" sumtext="시간"/>
- <Column id="cmt" type="STRING" size="256" sumtext="비고"/>
- <Column id="day" type="STRING" size="256" sumtext="요일"/>
- <Column id="jugan" type="STRING" size="256" sumtext="주간"/>
- <Column id="dangjik" type="STRING" size="256" sumtext="당직"/>
- <Column id="hyusik" type="STRING" size="256" sumtext="휴식"/>
- <Column id="off" type="STRING" size="256" sumtext="휴일"/>
- <Column id="aprv1" type="STRING" size="256" sumtext="승인자1"/>
- <Column id="aprv2" type="STRING" size="256" sumtext="승인자2"/>
- <Column id="aprv3" type="STRING" size="256" sumtext="승인자3"/>
- <Column id="aprv4" type="STRING" size="256" sumtext="승인자4"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_emplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_delete" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filepath" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_attachfile" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filedata" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_attach" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="filenm" type="STRING" size="256" sumtext="파일명"/>
- <Column id="filedata" type="STRING" size="256" sumtext="파일데이터"/>
- <Column id="filesize" type="STRING" size="256" sumtext="파일크기"/>
- <Column id="filetype" type="STRING" size="256" sumtext="파일종류"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_ym" propid="value" datasetid="ds_main_condition" columnid="ym"/>
- <BindItem id="item1" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_main_condition" columnid="instcd"/>
- <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"/>
- <BindItem id="item6" compid="ipt_periodfrom" propid="value" datasetid="ds_main_condition" columnid="periodfrom"/>
- <BindItem id="item7" compid="ipt_periodto" propid="value" datasetid="ds_main_condition" columnid="periodto"/>
- <BindItem id="item8" compid="cbx_perioduseyn" propid="value" datasetid="ds_main_condition" columnid="perioduseyn"/>
- <BindItem id="item9" compid="grp_dutinfo.ipt_emplno" propid="value" datasetid="ds_main_dutinfo" columnid="emplno"/>
- <BindItem id="item10" compid="grp_dutinfo.ipt_emplnm" propid="value" datasetid="ds_main_dutinfo" columnid="emplnm"/>
- <BindItem id="item11" compid="grp_dutinfo.cmb_duttype" propid="value" datasetid="ds_main_dutinfo" columnid="duttype"/>
- <BindItem id="item12" compid="grp_dutinfo.ipt_fromdd" propid="value" datasetid="ds_main_dutinfo" columnid="fromdd"/>
- <BindItem id="item13" compid="grp_dutinfo.ipt_fromtm1" propid="value" datasetid="ds_main_dutinfo" columnid="fromtm1"/>
- <BindItem id="item14" compid="grp_dutinfo.ipt_fromtm2" propid="value" datasetid="ds_main_dutinfo" columnid="fromtm2"/>
- <BindItem id="item15" compid="grp_dutinfo.ipt_todd" propid="value" datasetid="ds_main_dutinfo" columnid="todd"/>
- <BindItem id="item16" compid="grp_dutinfo.ipt_totm1" propid="value" datasetid="ds_main_dutinfo" columnid="totm1"/>
- <BindItem id="item17" compid="grp_dutinfo.ipt_totm2" propid="value" datasetid="ds_main_dutinfo" columnid="totm2"/>
- <BindItem id="item18" compid="grp_dutinfo.ipt_cmt" propid="value" datasetid="ds_main_dutinfo" columnid="cmt"/>
- <BindItem id="item19" compid="grp_dutinfo.ipt_updpath" propid="value" datasetid="ds_hidden" columnid="file"/>
- <BindItem id="item20" compid="grp_dutinfo.cmb_fileyn1" propid="value" datasetid="ds_main_dutinfo" columnid="fileyn"/>
- <BindItem id="item21" compid="grp_dutinfo.ipt_aprvpsn1" propid="value" datasetid="ds_main_dutinfo" columnid="aprvpsn1"/>
- <BindItem id="item22" compid="grp_dutinfo.ipt_aprvdd1" propid="value" datasetid="ds_main_dutinfo" columnid="aprvdd1"/>
- <BindItem id="item23" compid="grp_dutinfo.ipt_aprvdd2" propid="value" datasetid="ds_main_dutinfo" columnid="aprvdd2"/>
- <BindItem id="item24" compid="grp_dutinfo.ipt_aprvpsn2" propid="value" datasetid="ds_main_dutinfo" columnid="aprvpsn2"/>
- <BindItem id="item25" compid="grp_dutinfo.ipt_aprvpsn3" propid="value" datasetid="ds_main_dutinfo" columnid="aprvpsn3"/>
- <BindItem id="item26" compid="grp_dutinfo.ipt_aprvdd3" propid="value" datasetid="ds_main_dutinfo" columnid="aprvdd3"/>
- <BindItem id="item27" compid="grp_dutinfo.ipt_aprvpsn4" propid="value" datasetid="ds_main_dutinfo" columnid="aprvpsn4"/>
- <BindItem id="item28" compid="grp_dutinfo.ipt_aprvdd4" propid="value" datasetid="ds_main_dutinfo" columnid="aprvdd4"/>
- </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 toggleVal = "Y";
- function SMRPD30300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD30300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_emplist);
- //grdf_setRowTypeIcon(grd_emplist, 0);
-
- grdf_initGrid(grd_dutlist);
- grdf_setRowTypeIcon(grd_dutlist, 0);
-
- var instcd = sysf_getUserInfo("dutplceinstcd");
-
- if(instcd == "031" || instcd == "032")
- {
- btn_send.visible = false;
- btn_sendCancel.visible = false;
- btn_upload.visible = false;
- btn_new.visible = false;
- btn_delete.visible = false;
- btn_save.visible = false;
- grp_dutinfo.btn_fileup1.visible = false;
- grp_dutinfo.btn_filedel1.visible = false;
- }
-
- 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_dutinfo.clearData();
-
- ds_main_condition.setColumn(0, "ym", String(utlf_getCurrentDate()).substr(0,6));
-
- var oParam = {};
- oParam.id = "TRRPD30303";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDuttypeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_duttype_codelist=codelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD30303";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRRPD30305";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyPowerInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_powerinfo=powerinfo";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30305";
- tranf_submit(oParam);
- }
- 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_emplnms.enable = false;
-
- btn_send.text = "확정";
- btn_sendCancel.text = "확정취소";
- }
- 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_send.text = "확인";
- btn_sendCancel.text = "확인취소";
- }
- 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;
- grp_dutinfo.btn_fileup1.enable = false;
- grp_dutinfo.btn_filedel1.enable = false;
-
- btn_send.text = "승인";
- btn_sendCancel.text= "승인취소";
- }
- else if(powertp == "3")
- {
- btn_new.enable = false;
- btn_delete.enable = false;
- btn_save.enable = false;
- grp_dutinfo.btn_fileup1.enable = false;
- grp_dutinfo.btn_filedel1.enable = false;
-
- btn_send.text = "확인";
- btn_sendCancel.text = "확인취소";
- }
- else if(powertp == "4")
- {
- btn_new.enable = false;
- btn_delete.enable = false;
- btn_save.enable = false;
- grp_dutinfo.btn_fileup1.enable = false;
- grp_dutinfo.btn_filedel1.enable = false;
-
- btn_send.text = "승인";
- btn_sendCancel.text = "승인취소";
- }
- grp_dutinfo.ipt_fromtm2.value = "00";
- grp_dutinfo.ipt_totm2.value = "00";
-
- dsf_makeValue(ds_main_dutinfo, "status", "string", "i", 0);
- }
- }
- 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();
- ds_main_dutinfo.addRow();
- }
- 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();
- ds_main_dutinfo.addRow();
-
- grp_sea.opt_deptnm.value = "";
-
- misfValidationCheck("02", "", "deptcd,deptnm" );
- }
-
- if(e.columnid == "emplno")
- {
- grp_sea.ipt_emplnos.setFocus();
- grp_sea.ipt_emplnos.value = e.newvalue;
-
- 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.setFocus();
- grp_sea.ipt_emplnms.value = e.newvalue;
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
-
- if (String(grp_sea.ipt_emplnos.value).length > 0)
- {
- grp_sea.btn_search.click();
- }
- }
- }
- function grp_sea_ipt_deptcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function grp_sea_btn_deptcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var vOrigDeptcd = ds_main_condition.getColumn(0, "deptcd");
-
- var recv_list = "deptcd,deptnm";
- misfOpenPopUpList("02", grp_sea.ipt_deptcd,"", recv_list) ;
-
- if(vOrigDeptcd != grp_sea.ipt_deptcd.value)
- {
- ds_main_emplist.clearData();
- ds_main_dutlist.clearData();
-
- ds_main_dutinfo.clearData();
- ds_main_dutinfo.addRow();
- }
- }
- function grp_sea_ipt_emplnos_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- 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_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
-
- grp_sea.btn_search.click();
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetEmpList();
- }
- 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_main_dutinfo.clearData();
- ds_main_dutinfo.addRow();
-
- ds_send.copyData(ds_main_condition);
- 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 = "TRRPD30301";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyEmpList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_emplist=emplist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD30301";
- tranf_submit(oParam);
-
- ds_main_emplist.rowposition = -1;
- }
- function cbx_perioduseyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == "Y")
- {
- }
- else
- {
- ds_main_condition.setColumn(0, "perioduseyn", "");
- }
- }
- function btn_excelAll_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_excellist, "전공의 수련대장(전체)", "see", false);
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_dutlist, "excel", "see", false);
- }
- function btn_print1_onclick(obj:Button, e:ClickEventInfo)
- {
- if(cbx_perioduseyn.value == "Y")
- {
- ds_send.clearData();
-
- dsf_makeValue(ds_send, "periodfrom", "string", ipt_periodfrom.value, 0);
- dsf_makeValue(ds_send, "periodto", "string", ipt_periodto.value, 0);
- dsf_makeValue(ds_send, "emplno", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno"), 0);
- var oParam = {};
- oParam.id = "TRRPD30306";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyBookPeriodList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_print_prtlist=prtlist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30306";
- tranf_submit(oParam);
- }
- else
- {
- ds_send.clearData();
-
- dsf_makeValue(ds_send, "ym", "string", grp_sea.ipt_ym.value, 0);
- dsf_makeValue(ds_send, "emplno", "string", ds_main_emplist.getColumn(ds_main_emplist.rowposition, "emplno"), 0);
-
- var oParam = {};
- oParam.id = "TRRPD30304";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyBookList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_print_prtlist=prtlist";
- oParam.async = false;
- oParam.callback = "cf_TRRPD30304";
- tranf_submit(oParam);
- }
- }
- function cf_TRRPD30306(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/print/prtlist", ds_print_prtlist);
- rptf_setNodeListToDOM(objDOM, "/root/main/comdition", ds_main_condition);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPRPD30302"],[objParam], option);
- }
- }
- function cf_TRRPD30304(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- var objDOM = rptf_createDOM();
- rptf_setNodeListToDOM(objDOM, "/root/print/prtlist", ds_print_prtlist);
- rptf_setNodeListToDOM(objDOM, "/root/main/comdition", ds_main_condition);
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "";
- rptf_exeReportPreview30(["RPRPD30301"],[objParam], option);
- }
- }
- function btn_send_onclick(obj:Button, e:ClickEventInfo)
- {
- var iCnt = 0;
-
- for(var i = 0; i < ds_main_emplist.rowcount; i++)
- {
- if(ds_main_emplist.getColumn(i, "chk") == "Y")
- {
- iCnt = iCnt + 1;
- break;
- }
- }
- if(iCnt == 0)
- {
- sysf_messageBox( btn_send.text + " 처리 대상자가 선택되지 않았습니다. \n먼저 대상 목록에서 대상자를 선택하십시요. ", "E999", "");
- return;
- }
-
- if (sysf_messageBox( "선택한 대상자의 자료를 " + btn_send.text + " 처리 하시겠습니까? ", "Q999", "") != 6 )
- {
- return;
- }
-
- fClickSendBtn("confirm");
- }
- function btn_sendCancel_onclick(obj:Button, e:ClickEventInfo)
- {
- var iCnt = 0;
-
- for(var i = 0; i < ds_main_emplist.rowcount; i++)
- {
- if(ds_main_emplist.getColumn(i, "chk") == "Y")
- {
- iCnt = iCnt + 1;
- break;
- }
- }
-
- if(iCnt == 0)
- {
- sysf_messageBox( btn_sendCancel.text + " 처리 대상자가 선택되지 않았습니다. \n먼저 대상 목록에서 대상자를 선택하십시요. ", "E999", "");
- return;
- }
-
- if (sysf_messageBox( "선택한 대상자의 자료를 " + btn_sendCancel.text + " 처리 하시겠습니까? ", "Q999", "") != 6 ) return;
-
- fClickSendBtn("cancel");
- }
- function fClickSendBtn(pWorktype)
- {
- ds_send.clearData();
-
- 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);
-
- var update = grdf_getGridUpdateData(grd_emplist);
-
- ds_send_emplist.copyData(update);
-
- var oParam = {};
- oParam.id = "TXRPD30302";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveProcessInfo";
- oParam.inds = "req=ds_send emplist=ds_send_emplist";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD30302";
- tranf_submit(oParam);
- }
- function cf_TXRPD30302(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- fGetEmpList();
- }
- }
- function btn_upload_onclick(obj:Button, e:ClickEventInfo)
- {
- frmf_modal("SMRPD30500", "SMRPD30500", "", "", "", "", "", "", "", "", "", "", "M");
- }
- function btn_new_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_dutinfo.clearData();
- ds_main_dutinfo.addRow();
-
- if(!utlf_isNull(grp_sea.ipt_emplnos.value))
- {
- grp_dutinfo.ipt_emplno.value = grp_sea.ipt_emplnos.value;
- grp_dutinfo.ipt_emplnm.value = grp_sea.ipt_emplnms.value;
- }
- else if(ds_main_dutlist.rowcount > 0)
- {
- grp_dutinfo.ipt_emplno.value = ds_main_dutlist.getColumn(0, "emplno");
- grp_dutinfo.ipt_emplnm.value = ds_main_dutlist.getColumn(0, "emplnm");
- }
- else
- {
- grp_dutinfo.ipt_emplno.value = "";
- grp_dutinfo.ipt_emplnm.value = "";
- }
-
- grp_dutinfo.ipt_fromtm2.value = "00";
- grp_dutinfo.ipt_totm2.value = "00";
-
- dsf_makeValue(ds_main_dutinfo, "status", "string", "i", 0);
-
- grp_dutinfo.ipt_emplno.enable = true;
- grp_dutinfo.ipt_emplnm.enable = true;
- grp_dutinfo.btn_emplno.enable = true;
- }
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_dutinfo.getColumn(0, "emplno")))
- {
- sysf_messageBox("삭제할 자료가 없습니다.", "I999", "");
- return;
- }
- if(grp_dutinfo.ipt_emplno.value != sysf_getUserInfo("userid"))
- {
- sysf_messageBox("사용자 본인의 자료가 아니므로 삭제가 불가합니다.", "E999", "");
- grp_dutinfo.ipt_emplno.setFocus();
- return false;
- }
-
- if (sysf_messageBox("내역을", "Q001") == 6)
- {
- dsf_makeValue(ds_main_dutinfo, "status", "string", "d", 0);
- fClickSaveBtn();
- }
- }
- function fClickSaveBtn()
- {
- ds_main_dutinfo.setColumn(0, "fromtm", grp_dutinfo.ipt_fromtm1.value+""+grp_dutinfo.ipt_fromtm2.value);
- ds_main_dutinfo.setColumn(0, "totm", grp_dutinfo.ipt_totm1.value+""+grp_dutinfo.ipt_totm2.value);
-
- var oParam = {};
- oParam.id = "TXRPD30301";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveDutyInfo";
- oParam.inds = "req=ds_main_dutinfo";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXRPD30301";
- tranf_submit(oParam);
- }
- function cf_TXRPD30301(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- if(ds_main_emplist.rowcount == 0)
- {
- fGetEmpList();
-
- ds_main_emplist.rowposition = 0;
- }
- grd_emplist_oncellclick();
- btn_new.click();
- }
- }
- function grd_emplist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_main_emplist.rowcount == 0)
- {
- return;
- }
-
- if(e.row < 0 && e.col == 1)
- {
- for(var i = 0; i < ds_main_emplist.rowcount; i++)
- {
- ds_main_emplist.setColumn(i, "chk", toggleVal);
- }
-
- if( toggleVal == "Y" )
- {
- toggleVal = "N"
- }
- else
- {
- toggleVal = "Y";
- }
- }
- else if(e.row > -1 && e.col != 1)
- {
- var powertp = ds_main_condition.getColumn(0, "powertp");
-
- if(utlf_isNull(powertp))
- {
- if(ds_main_emplist.getColumn(e.row, "procstat") == "T")
- {
- grp_dutinfo.btn_fileup1.enable = true;
- grp_dutinfo.btn_filedel1.enable = true;
- }
- else
- {
- grp_dutinfo.btn_fileup1.enable = false;
- grp_dutinfo.btn_filedel1.enable = false;
- }
- }
- else if(powertp == "1")
- {
- if(ds_main_emplist.getColumn(e.row, "emplno") == sysf_getUserInfo("userid") && ds_main_emplist.getColumn(e.row, "procstat") == "T")
- {
- grp_dutinfo.btn_fileup1.enable = true;
- grp_dutinfo.btn_filedel1.enable = true;
- }
- else
- {
- grp_dutinfo.btn_fileup1.enable = false;
- grp_dutinfo.btn_filedel1.enable = false;
- }
- }
-
- ds_main_dutlist.clearData();
- ds_main_dutinfo.clearData();
- ds_main_dutinfo.addRow();
-
- ds_send.clearData();
- dsf_makeValue(ds_send, "ym", "string", utlf_transNullToEmpty(String(grp_sea.ipt_ym.value)).substr(0, 6), 0);
- dsf_makeValue(ds_send, "emplno", "string", ds_main_emplist.getColumn(e.row, "emplno"), 0);
-
- var oParam = {};
- oParam.id = "TRRPD30302";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetDutyPsnList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_dutlist=dutlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD30302";
- tranf_submit(oParam);
-
- grp_sea.btn_search.setFocus();
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if(utlf_isNull(ds_main_dutinfo.getColumn(0, "emplno")))
- {
- sysf_messageBox("저장할 자료가 없습니다.", "I999", "");
- return;
- }
-
- if(utlf_isNull(grp_dutinfo.ipt_emplno.value))
- {
- sysf_messageBox("사번이 입력되지 않았습니다.", "E999", "");
- grp_dutinfo.ipt_emplno.setFocus();
- return false;
- }
-
- if(utlf_isNull(grp_dutinfo.ipt_emplnm.value))
- {
- sysf_messageBox("이름이 확인되지 않았습니다.", "E999", "");
- grp_dutinfo.ipt_emplno.setFocus();
- return false;
- }
-
- if(grp_dutinfo.ipt_emplno.value != sysf_getUserInfo("userid"))
- {
- sysf_messageBox("사용자 본인의 자료가 아니므로 저장이 불가합니다.", "E999", "");
- grp_dutinfo.ipt_emplno.setFocus();
- return false;
- }
-
- if(utlf_isNull(grp_dutinfo.cmb_duttype.value))
- {
- sysf_messageBox("근태코드가 선택되지 않았습니다.", "E999", "");
- grp_dutinfo.cmb_duttype.setFocus();
- return false;
- }
-
- if(utlf_isNull(grp_dutinfo.ipt_emplnm.value))
- {
- sysf_messageBox("이름이 확인되지 않았습니다.", "E999", "");
- grp_dutinfo.ipt_emplno.setFocus();
- return false;
- }
-
- if(String(grp_dutinfo.ipt_fromdd.value),length != 8)
- {
- sysf_messageBox("근무시작일자가 정확하지 않습니다.", "E999", "");
- grp_dutinfo.ipt_fromdd.setFocus();
- return false;
- }
-
- if(grp_sea.ipt_ym.value != String(grp_dutinfo.ipt_fromdd.value).substr(0, 6))
- {
- sysf_messageBox("근무시작일자가 조회조건의 근무년월과 일치하지 않습니다. ", "E999", "");
- grp_dutinfo.ipt_fromdd.setFocus();
- return false;
- }
-
- if(utlf_isNull(grp_dutinfo.ipt_fromtm1.value))
- {
- sysf_messageBox("근무시작시간이 입력되지 않습니다.", "E999", "");
- grp_dutinfo.ipt_fromtm1.setFocus();
- return false;
- }
-
- if(String(grp_dutinfo.ipt_todd.value),length != 8)
- {
- sysf_messageBox("근무종료일자가 정확하지 않습니다.", "E999", "");
- grp_dutinfo.ipt_todd.setFocus();
- return false;
- }
-
- if(utlf_isNull(grp_dutinfo.ipt_totm1.value))
- {
- sysf_messageBox("근무종료시간이 입력되지 않습니다.", "E999", "");
- grp_dutinfo.ipt_totm1.setFocus();
- return false;
- }
-
- if(grp_dutinfo.ipt_fromdd.value+grp_dutinfo.ipt_fromtm1.value+grp_dutinfo.ipt_fromtm2.value >= grp_dutinfo.ipt_todd.value + grp_dutinfo.ipt_totm1.value + grp_dutinfo.ipt_totm2.value)
- {
- sysf_messageBox("근무 종료일시가 시작일시보다 작거나 같습니다. \n근무일시를 확인하십시요. ", "E999", "");
- grp_dutinfo.ipt_todd.setFocus();
- return false;
- }
-
- fClickSaveBtn();
- }
- function grp_dutinfo_ipt_emplno_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function ds_main_dutinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "emplno")
- {
- grp_dutinfo.ipt_emplno.setFocus();
- grp_dutinfo.ipt_emplno.value = e.newvalue;
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNO", recv_list);
- }
-
- if(e.columnid == "emplnm")
- {
- grp_dutinfo.ipt_emplnm.setFocus();
- grp_dutinfo.ipt_emplnm.value = e.newvalue;
-
- var recv_list = "emplno,emplnm" ;
- rpbfValidationCheck("EMPLNM", recv_list);
- }
-
- if(e.columnid == "fromtm1")
- {
- grp_dutinfo.ipt_fromtm1.value = String(e.newvalue).getLeftPad(2,"0");
- }
-
- if(e.columnid == "totm1")
- {
- grp_dutinfo.ipt_totm1.value = String(e.newvalue).getLeftPad(2,"0");
- }
- }
- function grp_dutinfo_btn_emplno_onclick(obj:Button, e:ClickEventInfo)
- {
- var recv_list = "emplno,emplnm" ;
- rpbfOpenPopUpList("SPRPB00101", ds_main_dutinfo, recv_list,"1","N");
- }
- function grp_dutinfo_ipt_emplnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function grp_dutinfo_ipt_totm1_onkeyup(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function grp_dutinfo_ipt_fromtm1_onkeyup(obj:MaskEdit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- }
- }
- function grp_dutinfo_btn_fileup1_onclick(obj:Button, e:ClickEventInfo)
- {
- fupload("1");
-
- if(!utlf_isNull(ds_main_filepath.getColumn(0, "filepath")))
- {
- ds_main_dutinfo.setColumn(0, "fileyn", "Y");
-
- grp_dutinfo.btn_filedel1.enable = true;
- grp_dutinfo.btn_filedown1.enable = true;
- }
- }
- function grp_dutinfo_btn_filedel1_onclick(obj:Button, e:ClickEventInfo)
- {
- fdelete("1");
-
- grp_dutinfo.btn_filedel1.enable = false;
- grp_dutinfo.btn_filedown1.enable = false;
- }
- function grp_dutinfo_btn_filedown1_onclick(obj:Button, e:ClickEventInfo)
- {
- if(grp_dutinfo.cmb_fileyn1.value == "Y")
- {
- fdown("1");
- }
- else
- {
- sysf_messageBox("내려받을 첨부 파일이 없습니다.", "E999", "");
- }
- }
- function fupload(flag)
- {
- var files = window.fileDialog("open", ",", false);
- var replacepath = "";
- if ( files.length <= 0 ) return;
-
- model.makeValue(ipt_updpath.attribute("ref") , files); //전체 파일경로 와 이름을 셋팅
- var filename = files.substring(files.lastIndexOf('\\') + 1 , files.length ); //파일이름만 나오게 문자 정리
-
- if(flag == "1")
- {
- ds_main_dutinfo.setColumn(0, "filenm", filename);
- var oParam = {};
- oParam.id = "TXRSC20203";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeSavePurcPrcsPresCondFile";
- oParam.inds = "filepath=ds_ attach=ds_";
- oParam.outds = "ds_main_filepath=filepath";
- oParam.async = false;
- //oParam.callback = "cf_TXRSC20203";
- tranf_submit(oParam);
- if(model.getValue("/root/main/filepath[1]/filepath") != ""){
- model.setValue("/root/main/dutinfo/filepath", model.getValue("/root/main/filepath[1]/filepath"));
- }
- }
- }
- function fdelete(flag)
- {
- if(flag == "1")
- {
- ds_delete.setColumn(0, "filepath", ds_main_dutinfo.getColumn(0, "filepath"));
-
- var oParam = {};
- oParam.id = "TXRSC20204";
- oParam.service = "reqapp.ReqMngt";
- oParam.method = "reqExeDeletePurcPrcsPresCondFile";
- oParam.inds = "req=ds_delete";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXRSC20204";
- tranf_submit(oParam);
- }
- }
- function cf_TXRSC20204(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- ds_main_dutinfo.setColumn(0, "fileyn", "N");
- ds_main_dutinfo.setColumn(0, "filepath", "");
- ds_main_dutinfo.setColumn(0, "filenm", "");
- }
- }
- function fdown(flag)
- {
- var filepath = "";
- var filenm = "";
-
- if(flag == "1")
- {
- filepath = ds_main_dutinfo.getColumn(0, "filepath");
- filenm = ds_main_dutinfo.getColumn(0, "filenm");
- }
-
- var oParam = {};
- oParam.id = "TRRWC03003";
- oParam.service = "paybaseinfomngtapp.PayBaseInfoMngt";
- oParam.method = "reqGetManualAtt";
- oParam.inds = "req=ds_main_dutinfo";
- oParam.outds = "ds_attachfile=attachfile";
- oParam.async = false;
- //oParam.callback = "cf_TRRWC03003";
- tranf_submit(oParam);
-
- var rtn = sysf_messageBox("파일을", "Q004");
-
- if( rtn == 6 )
- {
- var fd = new FileDialog;
- var objVFile = fd.open("FileSave", FileDialog.SAVE, "%MYDOCUMENT%", filenm); // 단일 파일 선택
- if (!utlf_isNull(objVFile))
- {
- var temp = dsf_readFileFromDs(objVFile.fullpath, ds_file_attachfile, 0, "filedata"); // 파일저장
- }
- }
- }
-
- function grd_dutlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(ds_main_dutlist.rowcount == 0)
- {
- return;
- }
-
- ds_main_dutinfo.clearData();
- ds_main_dutinfo.addRow();
-
- ds_main_dutinfo.copyRow(0, ds_main_dutlist, ds_main_dutlist.rowposition);
-
- dsf_makeValue(ds_main_dutinfo, "fromtm1", "string", String(ds_main_dutinfo.getColumn(0, "fromtm")).substr(0,2), 0);
- dsf_makeValue(ds_main_dutinfo, "fromtm2", "string", String(ds_main_dutinfo.getColumn(0, "fromtm")).substr(2,2), 0);
- dsf_makeValue(ds_main_dutinfo, "totm1", "string", String(ds_main_dutinfo.getColumn(0, "totm")).substr(0,2), 0);
- dsf_makeValue(ds_main_dutinfo, "totm2", "string", String(ds_main_dutinfo.getColumn(0, "totm")).substr(2,2), 0);
- dsf_makeValue(ds_main_dutinfo, "status", "string", "u", 0);
- grp_dutinfo.ipt_emplno.enable = false;
- grp_dutinfo.ipt_emplnm.enable = false;
- grp_dutinfo.btn_emplno.enable = false;
-
- grp_sea.btn_search.setFocus();
- }
- function ds_main_emplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "chk" )
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|