123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD33300" position="absolute 0 0 1200 787" titletext="진료권한신청 검토(임상과장)" oninit="SMRPD33300_oninit" onload="SMRPD33300_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="진료권한신청 검토(책임교수)" class="tit_1" position="absolute 0 0 213 25" anchor="left top"/>
- <Shape id="line2" linetype="horizontal" class="line_6" position="absolute 0 40 1194 46" anchor="left top right"/>
- <Button id="btn_save" taborder="1" text="임시저장" class="btn4" position="absolute 948 19 1028 41" onclick="btn_save_onclick" anchor="top right"/>
- <Button id="btn_review" taborder="2" text="검토완료" class="btn4" position="absolute 1031 19 1111 41" onclick="btn_review_onclick" anchor="top right"/>
- <Button id="btn_approve" taborder="3" text="전자결재" class="btn4" position="absolute 1114 19 1194 41" onclick="btn_approve_onclick" anchor="top right" visible="false"/>
- <Div id="grp_sea" taborder="4" position="absolute 0 43 1194 83" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 686 10 692 32" anchor="top right"/>
- <Button id="btn_search" taborder="9" text="조회" class="btn1" position="absolute 705 11 761 33" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Static id="caption1" text="신청일" class="search_name" position="absolute 296 13 365 30" anchor="left top"/>
- <Combo id="cmb_instcd" taborder="10" class="combo_s_default" enable="false" position="absolute 116 11 274 30" anchor="left top"/>
- <Static id="caption8" text="기관코드" class="search_name" position="absolute 49 13 115 30" anchor="left top"/>
- <Static id="caption9" text="~" position="absolute 455 14 470 29" anchor="left top"/>
- <Calendar id="ipt_appddfrom" taborder="11" position="absolute 349 12 455 31" mask="yyyy-mm-dd" anchor="left top" autoselect="true"/>
- <Calendar id="ipt_appddto" taborder="12" position="absolute 470 12 576 31" mask="yyyy-mm-dd" anchor="left top" autoselect="true"/>
- <CheckBox id="cbx_selflag" taborder="13" class="checkbox_search" visible="false" position="absolute 585 12 680 32" anchor="left top" text="미처리건만"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 117 520 123" anchor="left top right"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 525 117 1192 123" anchor="top right"/>
- <Shape id="line13" linetype="horizontal" class="line_2" position="absolute 525 144 1193 150" anchor="top right"/>
- <Static id="caption21" text="신청서 목록" class="tit_2" position="absolute 2 100 95 116" anchor="left top"/>
- <Static id="caption20" text="진료권한 정의 및 신청서" class="tit_2" position="absolute 527 101 695 117" anchor="top right"/>
- <Grid id="grd_applist" taborder="5" binddataset="ds_main_applist" useinputpanel="false" position="absolute 0 122 520 742" oncellclick="grd_applist_oncellclick" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="45"/>
- <Column size="50"/>
- <Column size="86"/>
- <Column size="71"/>
- <Column size="100"/>
- <Column size="107"/>
- <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="instcd"/>
- <Cell col="8" text="appseq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow == ds_main_applist.rowposition ? '▶' : ''"/>
- <Cell col="1" class="text_center" text="bind:appid"/>
- <Cell col="2" class="text_left" text="bind:appnm"/>
- <Cell col="3" class="text_left" text="bind:jobkindnm"/>
- <Cell col="4" displaytype="date" edittype="none" class="text_center" text="bind:appdd" editautoselect="true" combodisplaynulltype="none" calendardisplaynulltype="none"/>
- <Cell col="5" class="text_left" text="bind:appdeptnm"/>
- <Cell col="6" displaytype="combo" edittype="none" style="align:center;padding:1 2 1 2;" class="text_left" text="bind:procstat" combodataset="ds_choices" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="7" text="bind:instcd"/>
- <Cell col="8" text="bind:appseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cap_matrcd" text="사 번" class="cell_1" position="absolute 525 122 610 145" anchor="top right"/>
- <Static id="cap_matrnm" text="진료과" class="cell_1" position="absolute 525 147 610 170" anchor="top right"/>
- <Shape id="line4" linetype="vertical" class="line_2" position="absolute 686 166 1193 172" anchor="top right"/>
- <Static id="caption7" text="신청일" class="cell_1" position="absolute 1010 122 1095 145" anchor="top right"/>
- <Static id="caption12" text="신청분류" class="cell_1" position="absolute 865 147 950 170" anchor="top right"/>
- <Shape id="line7" linetype="horizontal" class="line_1" position="absolute 525 169 1192 175" anchor="top right"/>
- <Tab id="switch1" taborder="6" tabindex="0" position="absolute 525 207 1193 627" anchor="top right bottom">
- <Tabpages>
- <Tabpage id="case1" text=" 1. CORE PRIVILEGES ">
- <Layouts>
- <Layout>
- <Grid id="grd_authlist1" taborder="1" binddataset="ds_main_appinfo_authlist1" useinputpanel="false" position="absolute 0 32 668 393" oncellclick="switch1_case1_grd_authlist1_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="498"/>
- <Column size="54"/>
- <Column size="54"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="진료권한 목록" taborder="undefined"/>
- <Cell col="2" colspan="2" text="임상과장" taborder="undefined"/>
- <Cell col="4" text="instcd"/>
- <Cell col="5" text="appid"/>
- <Cell col="6" text="appseq"/>
- <Cell col="7" text="authcls"/>
- <Cell col="8" text="authseq"/>
- <Cell row="1" col="2" text="승인"/>
- <Cell row="1" col="3" text="거부"/>
- <Cell row="1" col="4" text="instcd"/>
- <Cell row="1" col="5" text="appid"/>
- <Cell row="1" col="6" text="appseq"/>
- <Cell row="1" col="7" text="authcls"/>
- <Cell row="1" col="8" text="authseq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left top;padding:5 2 1 2;" class="text_left" text="bind:authcnts" wordwrap="word"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:aprvflagy"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:aprvflagn"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" text="bind:appid"/>
- <Cell col="6" text="bind:appseq"/>
- <Cell col="7" text="bind:authcls"/>
- <Cell col="8" text="bind:authseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption11" text="※ 전공의 수련 교과과정 내용을 포괄하여 기본임상권한 내용 명시" position="absolute 1 10 362 30" style="color:#993366ff;"/>
- <Shape id="line6" linetype="horizontal" class="line_10" position="absolute 0 27 668 33"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case2" text=" 2. SPECIAL PRIVILEGES ">
- <Layouts>
- <Layout>
- <Static id="caption3" text="※ 임상과별 수술, 시술 등 전문의 수준의 진료권한(포괄적인 시술명, 세부전공에 따른 신청)" position="absolute 1 10 506 30" style="color:#993366ff;"/>
- <Grid id="grd_authlist2" taborder="1" binddataset="ds_main_appinfo_authlist2" useinputpanel="false" position="absolute 0 32 668 393" oncellclick="switch1_case2_grd_authlist2_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="498"/>
- <Column size="54"/>
- <Column size="54"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="진료권한 목록" taborder="undefined"/>
- <Cell col="2" colspan="2" text="임상과장" taborder="undefined"/>
- <Cell col="4" text="instcd"/>
- <Cell col="5" text="appid"/>
- <Cell col="6" text="appseq"/>
- <Cell col="7" text="authcls"/>
- <Cell col="8" text="authseq"/>
- <Cell row="1" col="2" text="승인"/>
- <Cell row="1" col="3" text="거부"/>
- <Cell row="1" col="4" text="instcd"/>
- <Cell row="1" col="5" text="appid"/>
- <Cell row="1" col="6" text="appseq"/>
- <Cell row="1" col="7" text="authcls"/>
- <Cell row="1" col="8" text="authseq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left top;padding:5 2 1 2;" class="text_left" text="bind:authcnts" wordwrap="word"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:aprvflagy"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:aprvflagn"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" text="bind:appid"/>
- <Cell col="6" text="bind:appseq"/>
- <Cell col="7" text="bind:authcls"/>
- <Cell col="8" text="bind:authseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line8" linetype="horizontal" class="line_10" position="absolute 0 27 668 33"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case3" text=" 3. OTHER SPECIFIC PRIVILEGES REQUESTED ">
- <Layouts>
- <Layout>
- <Shape id="line9" linetype="horizontal" class="line_10" position="absolute 0 27 668 33"/>
- <Static id="caption5" text="※ 기타권한" position="absolute 1 10 74 30" style="color:#993366ff;"/>
- <Grid id="grd_authlist3" taborder="1" binddataset="ds_main_appinfo_authlist3" useinputpanel="false" position="absolute 0 32 668 393" oncellclick="switch1_case3_grd_authlist3_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="498"/>
- <Column size="54"/>
- <Column size="54"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="진료권한 목록" taborder="undefined"/>
- <Cell col="2" colspan="2" text="임상과장" taborder="undefined"/>
- <Cell col="4" text="instcd"/>
- <Cell col="5" text="appid"/>
- <Cell col="6" text="appseq"/>
- <Cell col="7" text="authcls"/>
- <Cell col="8" text="authseq"/>
- <Cell row="1" col="2" text="승인"/>
- <Cell row="1" col="3" text="거부"/>
- <Cell row="1" col="4" text="instcd"/>
- <Cell row="1" col="5" text="appid"/>
- <Cell row="1" col="6" text="appseq"/>
- <Cell row="1" col="7" text="authcls"/>
- <Cell row="1" col="8" text="authseq"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left top;padding:5 2 1 2;" class="text_left" text="bind:authcnts" wordwrap="word"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:aprvflagy"/>
- <Cell col="3" displaytype="checkbox" edittype="checkbox" text="bind:aprvflagn"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" text="bind:appid"/>
- <Cell col="6" text="bind:appseq"/>
- <Cell col="7" text="bind:authcls"/>
- <Cell col="8" text="bind:authseq"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Radio id="rdo_appcls" taborder="7" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_default" enable="false" position="absolute 960 150 1145 170" anchor="top right">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">신규</Col>
- </Row>
- <Row>
- <Col id="codecolumn">R</Col>
- <Col id="datacolumn">갱신</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">추가</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption2" text="검토완료 : 검토완료 처리 후에는 수정이 불가능합니다." position="absolute 21 760 323 780" anchor="left bottom"/>
- <Edit id="ipt_appid" taborder="8" position="absolute 613 123 658 142" anchor="top right" autoselect="true" class="output" readonly="true"/>
- <Static id="caption10" text="직종" class="cell_1" position="absolute 780 122 865 145" anchor="top right"/>
- <Edit id="ipt_appnm" taborder="9" position="absolute 660 123 774 142" anchor="top right" autoselect="true" class="output" readonly="true"/>
- <MaskEdit id="ipt_appdd" taborder="10" mask="yyyy-mm-dd" position="absolute 1098 123 1183 142" anchor="top right" autoselect="true" class="output" readonly="true"/>
- <Edit id="ipt_jobkindnm" taborder="11" position="absolute 868 123 1005 142" anchor="top right" autoselect="true" class="output" readonly="true"/>
- <Edit id="ipt_appdeptnm" taborder="12" position="absolute 613 149 860 168" anchor="top right" autoselect="true" class="output" readonly="true"/>
- <Static id="caption13" text="※ 제출취소 : 신청서 작성자가 신청서를 수정할 수 있는 상태로 되돌립니다." position="absolute 5 745 415 765" anchor="left bottom"/>
- <Static id="caption15" text="조건부 승인 및 승인 불가에 대한 의견" class="cell_1" position="absolute 525 662 620 740" anchor="right bottom"/>
- <Shape id="line10" linetype="horizontal" class="line_2" position="absolute 525 659 1193 665" anchor="right bottom"/>
- <Shape id="line11" linetype="horizontal" class="line_2" position="absolute 525 739 1193 745" anchor="right bottom"/>
- <Shape id="line12" linetype="horizontal" class="line_2" position="absolute 525 632 1193 638" anchor="right bottom"/>
- <Radio id="rdo_commreqyn" taborder="13" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_default" position="absolute 1080 640 1190 660" anchor="right bottom" onitemchanged="rdo_commreqyn_onitemchanged" visible="true">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">상정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">미상정</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption16" text="승인결과" class="cell_1" position="absolute 525 637 620 660" anchor="right bottom"/>
- <Radio id="rdo_aprvrslt" taborder="14" columncount="-1" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_default" enable="false" position="absolute 626 640 1038 660" direction="vertical" anchor="right bottom">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">승인사항 모두 승인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">승인사항 조건부 승인</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">승인불가</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="cp_commreqyn" text="위원회 상정여부" class="cell_1" position="absolute 970 637 1075 660" anchor="right bottom" visible="true"/>
- <TextArea id="ta_aprvopin" taborder="15" position="absolute 624 665 1192 735" anchor="right bottom" wordwrap="word"/>
- <Button id="btn_submitcancel" taborder="16" text="제출취소" class="btn2" position="absolute 1125 94 1189 113" onclick="btn_submitcancel_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_applist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appid" type="STRING"/>
- <Column id="appnm" type="STRING"/>
- <Column id="jobkindnm" type="STRING"/>
- <Column id="appdd" type="STRING"/>
- <Column id="appdeptnm" type="STRING"/>
- <Column id="procstat" type="STRING"/>
- <Column id="eprocstat" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_appinfo_authlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="authcnts" type="STRING"/>
- <Column id="aprvflagy" type="STRING"/>
- <Column id="aprvflagn" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- <Column id="authcls" type="STRING"/>
- <Column id="authseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_appinfo_authlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="authcnts" type="STRING"/>
- <Column id="aprvflagy" type="STRING"/>
- <Column id="aprvflagn" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- <Column id="authcls" type="STRING"/>
- <Column id="authseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_appinfo_authlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="authcnts" type="STRING"/>
- <Column id="aprvflagy" type="STRING"/>
- <Column id="aprvflagn" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- <Column id="authcls" type="STRING"/>
- <Column id="authseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_condition" 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="appddfrom" type="STRING" size="256"/>
- <Column id="appddto" type="STRING" size="256"/>
- <Column id="sppnm" type="STRING" size="256"/>
- <Column id="selflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_appinfo_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="appid" type="STRING" size="256"/>
- <Column id="appnm" type="STRING" size="256"/>
- <Column id="jobkindnm" type="STRING" size="256"/>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="appdept" type="STRING" size="256"/>
- <Column id="appdeptnm" type="STRING" size="256"/>
- <Column id="appcls" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="appseq" type="STRING" size="256"/>
- <Column id="aprvrslt" type="STRING" size="256"/>
- <Column id="commreqyn" type="STRING" size="256"/>
- <Column id="aprvopin" type="STRING" size="256"/>
- <Column id="procstat" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="appid"/>
- <Col id="appnm"/>
- <Col id="jobkindnm"/>
- <Col id="appdd"/>
- <Col id="appdept"/>
- <Col id="appdeptnm"/>
- <Col id="appcls"/>
- <Col id="instcd"/>
- <Col id="appseq"/>
- <Col id="aprvrslt"/>
- <Col id="commreqyn"/>
- <Col id="aprvopin"/>
- <Col id="procstat"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_applist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="appid" type="STRING"/>
- <Column id="appnm" type="STRING"/>
- <Column id="jobkindnm" type="STRING"/>
- <Column id="appdd" type="STRING"/>
- <Column id="appdeptnm" type="STRING"/>
- <Column id="procstat" type="STRING"/>
- <Column id="eprocstat" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_appinfo_detail" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_appinfo_authlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="authcnts" type="STRING"/>
- <Column id="aprvflagy" type="STRING"/>
- <Column id="aprvflagn" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- <Column id="authcls" type="STRING"/>
- <Column id="authseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_appinfo_authlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="authcnts" type="STRING"/>
- <Column id="aprvflagy" type="STRING"/>
- <Column id="aprvflagn" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- <Column id="authcls" type="STRING"/>
- <Column id="authseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_appinfo_authlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="authcnts" type="STRING"/>
- <Column id="aprvflagy" type="STRING"/>
- <Column id="aprvflagn" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="appid" type="STRING"/>
- <Column id="appseq" type="STRING"/>
- <Column id="authcls" type="STRING"/>
- <Column id="authseq" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_choices" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">임시저장</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="value">2</Col>
- <Col id="label">제출완료</Col>
- </Row>
- <Row>
- <Col id="value">4</Col>
- <Col id="label">임상과장 검토완료</Col>
- </Row>
- <Row>
- <Col id="value">6</Col>
- <Col id="label">위원장 검토중</Col>
- </Row>
- <Row>
- <Col id="value">8</Col>
- <Col id="label">처리완료</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_authlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_authlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_authlist3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_choices032" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">임시저장</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="value">2</Col>
- <Col id="label">제출완료</Col>
- </Row>
- <Row>
- <Col id="value">4</Col>
- <Col id="label">검토완료</Col>
- </Row>
- <Row>
- <Col id="value">6</Col>
- <Col id="label">위원장 검토중</Col>
- </Row>
- <Row>
- <Col id="value">8</Col>
- <Col id="label">처리완료</Col>
- </Row>
- <Row>
- <Col id="label">책임교수 검토중</Col>
- <Col id="value">3</Col>
- </Row>
- </Rows>
- </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_appddfrom" propid="value" datasetid="ds_main_condition" columnid="appddfrom"/>
- <BindItem id="item2" compid="grp_sea.ipt_appddto" propid="value" datasetid="ds_main_condition" columnid="appddto"/>
- <BindItem id="item3" compid="grp_sea.cbx_selflag" propid="value" datasetid="ds_main_condition" columnid="selflag"/>
- <BindItem id="item4" compid="ipt_appid" propid="value" datasetid="ds_main_appinfo_detail" columnid="appid"/>
- <BindItem id="item5" compid="ipt_appnm" propid="value" datasetid="ds_main_appinfo_detail" columnid="appnm"/>
- <BindItem id="item6" compid="ipt_appdeptnm" propid="value" datasetid="ds_main_appinfo_detail" columnid="appdeptnm"/>
- <BindItem id="item7" compid="ipt_jobkindnm" propid="value" datasetid="ds_main_appinfo_detail" columnid="jobkindnm"/>
- <BindItem id="item8" compid="ipt_appdd" propid="value" datasetid="ds_main_appinfo_detail" columnid="appdd"/>
- <BindItem id="item9" compid="rdo_appcls" propid="value" datasetid="ds_main_appinfo_detail" columnid="appcls"/>
- <BindItem id="item10" compid="rdo_aprvrslt" propid="value" datasetid="ds_main_appinfo_detail" columnid="aprvrslt"/>
- <BindItem id="item11" compid="rdo_commreqyn" propid="value" datasetid="ds_main_appinfo_detail" columnid="commreqyn"/>
- <BindItem id="item12" compid="ta_aprvopin" propid="value" datasetid="ds_main_appinfo_detail" columnid="aprvopin"/>
- </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_miscommonxp::RAC001.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- function SMRPD33300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMRPD33300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_applist);
- grdf_initGrid(switch1.case1.grd_authlist1);
- grdf_initGrid(switch1.case2.grd_authlist2);
- grdf_initGrid(switch1.case3.grd_authlist3);
-
- // grdf_setRowTypeIcon(grd_applist, 0);
- grdf_setRowTypeIcon(switch1.case1.grd_authlist1, 0);
- grdf_setRowTypeIcon(switch1.case2.grd_authlist2, 0);
- grdf_setRowTypeIcon(switch1.case3.grd_authlist3, 0);
- fOpenForm();
-
- if(grp_sea.cmb_instcd.value == "031"){
- grd_applist.setCellProperty("body", grd_applist.getBindCellIndex("body","procstat"), "combodataset","ds_choices");
- }else{
- grd_applist.setCellProperty("body", grd_applist.getBindCellIndex("body","procstat"), "combodataset","ds_choices032");
- }
- }
- function fOpenForm()
- {
- ds_main_applist.clearData();
- ds_main_appinfo_authlist1.clearData();
- ds_main_appinfo_authlist2.clearData();
- ds_main_appinfo_authlist3.clearData();
-
- //항상 전체가 보이도록 default값을 변경하고, control을 hidden으로 변
- switch1.tabindex = 0;
- //기관 조회
- misfComboInstCdListMulti("grp_sea.cmb_instcd", utlf_getCurrentDate(), "", "N");
- grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd")
-
- //신청일 1개월 설정
- grp_sea.ipt_appddfrom.value = utlf_getCurrentDate().toDate().getAddDate(-30,"D").getDateFormat();
- grp_sea.ipt_appddto.value = utlf_getCurrentDate();
-
- //칠곡병원의 경우, 100% 위원회 상정으로 간다.
- //그래서 control을 hidden으로 한 후, 저장 시에 강제로 "상정"으로 일괄 설정함
- // if(grp_sea.cmb_instcd.value == "032")
- // {
- // cp_commreqyn.visible = false;
- // rdo_commreqyn.visible = false;
- // }
- fGetAppList();// 목록 조회
- }
- // 신청서 목록 조회 함수
- function fGetAppList()
- {
- misfGridInit(grd_applist);
-
- var oParam = {};
- oParam.id = "TRRPD33901";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetAppRespAprvList";
- oParam.inds = "req=ds_main_condition";
- oParam.outds = "ds_main_applist=applist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD33301";
- tranf_submit(oParam);
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetAppList();
- }
- function grd_applist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var cur_row = ds_main_applist.rowposition;
- fGetAppInfo(cur_row);
- }
- var hiddendetail = "";
- // 상세정보 및 진료권한 목록 조회
- function fGetAppInfo(pRow)
- {
- if ( pRow >= 0 )
- {
- ds_send_applist.clearData();
- ds_send_applist.addRow();
- ds_send_applist.copyRow(0, ds_main_applist, pRow);
-
- var oParam = {};
- oParam.id = "TRRPD33302";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetAppAprvInfo";
- oParam.inds = "req=ds_send_applist";
- oParam.outds = "ds_main_appinfo_detail=detail ds_main_appinfo_authlist1=authlist1 ds_main_appinfo_authlist2=authlist2 ds_main_appinfo_authlist3=authlist3";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD33302";
- tranf_submit(oParam);
-
- hiddendetail = ds_main_appinfo_detail.saveXML();
-
- fCopyInstance();
-
- //처리상태에 따른 contol setting
- //처리상태(1:임시저장 2:제출완료 3:책임교수 검토중 4:임상과장 검토완료(=전자결재상신) 6:위원장 검토중 8:처리완료)
-
- if(ds_main_appinfo_detail.getColumn(0, "procstat") == "3")
- {
- switch1.case1.grd_authlist1.setFormatColProperty(2, "size", "54");
- switch1.case1.grd_authlist1.setFormatColProperty(3, "size", "54");
- switch1.case2.grd_authlist2.setFormatColProperty(2, "size", "54");
- switch1.case2.grd_authlist2.setFormatColProperty(3, "size", "54");
- switch1.case3.grd_authlist3.setFormatColProperty(2, "size", "54");
- switch1.case3.grd_authlist3.setFormatColProperty(3, "size", "54");
- rdo_commreqyn.enable = true;
- ta_aprvopin.enable = true;
- }
- else
- {
- switch1.case1.grd_authlist1.setFormatColProperty(2, "size", "0");
- switch1.case1.grd_authlist1.setFormatColProperty(3, "size", "0");
- switch1.case2.grd_authlist2.setFormatColProperty(2, "size", "0");
- switch1.case2.grd_authlist2.setFormatColProperty(3, "size", "0");
- switch1.case3.grd_authlist3.setFormatColProperty(2, "size", "0");
- switch1.case3.grd_authlist3.setFormatColProperty(3, "size", "0");
- rdo_commreqyn.enable = false;
- ta_aprvopin.enable = false;
- }
-
- }
- }
- function fCopyInstance()
- {
- ds_hidden_appinfo_detail.copyData(ds_hidden_appinfo_detail);
- ds_hidden_appinfo_authlist1.copyData(ds_main_appinfo_authlist1);
- ds_hidden_appinfo_authlist2.copyData(ds_main_appinfo_authlist2);
- ds_hidden_appinfo_authlist3.copyData(ds_main_appinfo_authlist3);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickSaveBtn();
- }
- //========================================================================================
- //저장전 유효성 검사
- //========================================================================================
- function fIsValidForSave() {
- var sStatus = ds_main_appinfo_detail.getColumn(0, "status");
-
- //상세내역에 변경된 정보가 있는지 확인
- if(ds_main_appinfo_detail.saveXML() != hiddendetail && sStatus == "-") { // 데이터 수정일 경우
- ds_main_appinfo_detail.setColumn(0, "status","u");
- return true;
- } else if(ds_main_appinfo_detail.saveXML() == hiddendetail && sStatus == "-" ) { //변경된 값이 없을경우
- return true;
- }else if(sStatus == "i") { //데이터 입력일 경우
- return true;
- }else if(sStatus = "d") { //데이터 삭제일 경우
- return true;
- }
- }
- // 저장버튼 클릭시 저장 수행 함수
- function fClickSaveBtn()
- {
- //칠곡병원의 경우, 100% 위원회 상정으로 간다.
- //그래서 control을 hidden으로 한 후, 저장 시에 강제로 "상정"으로 일괄 설정함
- // 칠곡병원 = 본원. 똑같이 수행하도록 수정(2018.06.25)
- // if(grp_sea.cmb_instcd.value == "032")
- // {
- // if(utlf_isNull(rdo_commreqyn.value))
- // {
- // rdo_commreqyn.value = "Y"; //상정요청 여부(Y,N)
- // }
- // }
- if(!fIsValidForSave())//저장전 유효성 검사
- return;
-
- var updateData = grdf_getGridUpdateData(switch1.case1.grd_authlist1);
- grdf_setStatusColumn(updateData, "status");
- ds_send_authlist1.copyData(updateData, true);
-
- var updateData = grdf_getGridUpdateData(switch1.case2.grd_authlist2);
- grdf_setStatusColumn(updateData, "status");
- ds_send_authlist2.copyData(updateData, true);
-
- var updateData = grdf_getGridUpdateData(switch1.case3.grd_authlist3);
- grdf_setStatusColumn(updateData, "status");
- ds_send_authlist3.copyData(updateData, true);
-
- var oParam = {};
- oParam.id = "TXRPD33301";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveAppAprv";
- oParam.inds = "detail=ds_main_appinfo_detail authlist1=ds_send_authlist1 authlist2=ds_send_authlist2 authlist3=ds_send_authlist3";
- oParam.async = false;
- oParam.callback = "cf_TXRPD33301";
- tranf_submit(oParam);
- }
- function cf_TXRPD33301(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- //신청서 목록 재조회
- fGetAppList();
-
- //상세정보 및 진료권한 목록 재조회
- var oParam = {};
- oParam.id = "TRRPD33302";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetAppAprvInfo";
- oParam.inds = "req=ds_main_appinfo_detail";
- oParam.outds = "ds_main_appinfo_detail=detail ds_main_appinfo_authlist1=authlist1 ds_main_appinfo_authlist2=authlist2 ds_main_appinfo_authlist3=authlist3";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD33302";
- tranf_submit(oParam);
-
- hiddendetail = ds_main_appinfo_detail.saveXML();
-
- fCopyInstance();
- }
- }
- function btn_review_onclick(obj:Button, e:ClickEventInfo)
- {
- //전체 권한의 갯수
- var totcnt = ds_main_appinfo_authlist1.rowcount + ds_main_appinfo_authlist2 + ds_hidden_appinfo_authlist3;
- var ycnt = 0; //승인된 권한의 갯수
- var ncnt = 0; //거부된 권한의 갯수
-
- if(totcnt > 0)
- {
- for(var i = 0; i < ds_main_appinfo_authlist1.rowcount; i++)
- {
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist2.rowcount; i++)
- {
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist3.rowcount; i++)
- {
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagy") == "1")
- {
- ncnt++;
- }
- }
-
- if(totcnt != ycnt + ncnt)
- {
- sysf_messageBox("권한 항목 중 승인여부를 등록하지 않은 항목이 존재합니다. \n\n승인여부를 확인하십시요. ", "E999", "");
- return;
- }
- }
-
- //위원회 상정여부가 선택 확인
- //칠곡병원의 경우, 100% 위원회 상정으로 간다.
- //그래서 control을 hidden으로 한 후, 저장 시에 강제로 "상정"으로 일괄 설정함
- //if(cmb_instcd.value != "032" && rdo_commreqyn.value == "") {
- // 칠곡병원 = 본원. 똑같이 수행하도록 수정(2018.06.25)
- if(utlf_isNull(rdo_commreqyn.value)) {
- sysf_messageBox("위원회 상정여부가 선택되지 않았습니다. \n\n상정여부를 선택하십시요. ", "E999", "");
- rdo_commreqyn.setFocus();
- return;
- }
-
- //승인결과가 "모두 승인" 이 아닌 경우엔 의견을 반드시 입력해야 한다.
- if(rdo_aprvrslt.value != "1")
- {
- if(utlf_isNull(ta_aprvopin.value.trim()))
- {
- sysf_messageBox("조건부 승인 및 승인 불가에 대한 의견이 입력되지 않았습니다. \n\n의견을 입력하십시요 ", "E999", "");
- ta_aprvopin.setFocus();
- return;
- }
- }
- //그리드에 변경된 자료가 있는지 확인
- var updtdata1 = grdf_getUpdateRows("switch1.case1.grd_authlist1", "update");
- var updtdata2 = grdf_getUpdateRows("switch1.case2.grd_authlist2", "update");
- var updtdata3 = grdf_getUpdateRows("switch1.case3.grd_authlist3", "update");
-
- // 변경된 데이터가 있는 경우
- if(!utlf_isNull(updtdata1) || !utlf_isNull(updtdata2) || !utlf_isNull(updtdata3))
- {
- sysf_messageBox("저장되지 않은 작업 내용이 존재합니다.\n\n먼저 저장 후 검토완료 처리 하십시요. ", "E999", "");
- return;
- }
- fClickReviewBtn();
- }
- // 검토완료 버튼 클릭시 저장 수행 함수
- function fClickReviewBtn()
- {
- var oParam = {};
- oParam.id = "TXRPD33302";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeReviewApp";
- oParam.inds = "detail=ds_main_appinfo_detail";
- oParam.async = false;
- oParam.callback = "cf_TXRPD33302";
- tranf_submit(oParam);
- }
- function cf_TXRPD33302(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- fGetAppList();//신청서 목록 재조회
- //상세정보 및 진료권한 목록 재조회
- var oParam = {};
- oParam.id = "TRRPD33302";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetAppAprvInfo";
- oParam.inds = "req=ds_main_appinfo_detail";
- oParam.outds = "ds_main_appinfo_detail=detail ds_main_appinfo_authlist1=authlist1 ds_main_appinfo_authlist2=authlist2 ds_main_appinfo_authlist3=authlist3";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD33302";
- tranf_submit(oParam);
-
- hiddendetail = ds_main_appinfo_detail.saveXML();
- fCopyInstance();
- }
- }
- function btn_approve_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_appinfo_detail.getColumn(0, "procstat") < "4")
- {
- sysf_messageBox("검토완료된 신청서만 전자결재 상신이 가능합니다.", "E999", "");
- return;
- }
-
- var pInstcd = ds_main_appinfo_detail.getColumn(0, "instcd");
- var pAppid = ds_main_appinfo_detail.getColumn(0, "appid");
- var pSeq = ds_main_appinfo_detail.getColumn(0, "appseq");
-
- var pmaprefcol = "knuhdomain,instId"; //,approverole
- var pmaprefvalue = "KnuhMisTreatmentAuth," + pInstcd + "-" + pAppid + "-" + pSeq ; //+ pApproverole + "-"
-
- misfMakeElctSanct("treatmentAuthApply", pmaprefcol, pmaprefvalue); //같거나 상위부서인 경우
-
- fGetAppList();//신청서 목록 재조회
- }
- function btn_submitcancel_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickSubmitCancelBtn();
- }
- // 제출취소 버튼 클릭시 저장 수행 함수
- function fClickSubmitCancelBtn()
- {
- var oParam = {};
- oParam.id = "TXRPD33303";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSubmitCancelApp";
- oParam.inds = "detail=ds_main_appinfo_detail";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD33303";
- tranf_submit(oParam);
- fGetAppList();//신청서 목록 재조회
- }
- function switch1_case1_grd_authlist1_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(switch1.case1.grd_authlist1.currentcol == "2")
- {
- if(ds_main_appinfo_authlist1.getColumn(ds_main_appinfo_authlist1.rowposition, "aprvflagy") == "1")
- {
- ds_main_appinfo_authlist1.setColumn(ds_main_appinfo_authlist1.rowposition, "aprvflagn", "0")
- }
- }
- else if(switch1.case1.grd_authlist1.currentcol == "3")
- {
- if(ds_main_appinfo_authlist1.getColumn(ds_main_appinfo_authlist1.rowposition, "aprvflagn") == "1")
- {
- ds_main_appinfo_authlist1.setColumn(ds_main_appinfo_authlist1.rowposition, "aprvflagy", "0")
- }
- }
-
- //전체 권한의 갯수
- var totcnt = ds_main_appinfo_authlist1.rowcount + ds_main_appinfo_authlist2.rowcount + ds_main_appinfo_authlist3.rowcount;
- var ycnt = 0; //승인된 권한의 갯수
- var ncnt = 0; //거부된 권한의 갯수
-
- if(totcnt > 0)
- {
- for(var i =0; i < ds_main_appinfo_authlist1.rowcount; i++)
- {
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist2.rowcount; i++)
- {
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist3.rowcount; i++)
- {
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
-
- if(totcnt == ycnt)
- {
- rdo_aprvrslt.value = 1; //승인결과(1:승인사항 모두승인, 2:승인사항 조건부승인, 3:승인불가)
- }
- else if(totcnt == ncnt)
- {
- rdo_aprvrslt.value = 3;
- }
- else if(ycnt > 0)
- {
- rdo_aprvrslt.value = 2;
- }
- }
- }
- function switch1_case2_grd_authlist2_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if(switch1.case2.grd_authlist2.currentcol == "2")
- {
- if(ds_main_appinfo_authlist2.getColumn(ds_main_appinfo_authlist2.rowposition, "aprvflagy") == "1")
- {
- ds_main_appinfo_authlist2.setColumn(ds_main_appinfo_authlist2.rowposition, "aprvflagn", "0")
- }
- }
- else if(switch1.case2.grd_authlist2.currentcol == "3")
- {
- if(ds_main_appinfo_authlist2.getColumn(ds_main_appinfo_authlist2.rowposition, "aprvflagn") == "1")
- {
- ds_main_appinfo_authlist2.setColumn(ds_main_appinfo_authlist2.rowposition, "aprvflagy", "0")
- }
- }
-
- //전체 권한의 갯수
- var totcnt = ds_main_appinfo_authlist1.rowcount + ds_main_appinfo_authlist2.rowcount + ds_main_appinfo_authlist3.rowcount;
-
- var ycnt = 0; //승인된 권한의 갯수
- var ncnt = 0; //거부된 권한의 갯수
-
- if(totcnt > 0)
- {
- for(var i =0; i < ds_main_appinfo_authlist1.rowcount; i++)
- {
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist2.rowcount; i++)
- {
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist3.rowcount; i++)
- {
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
-
- if(totcnt == ycnt)
- {
- rdo_aprvrslt.value = 1; //승인결과(1:승인사항 모두승인, 2:승인사항 조건부승인, 3:승인불가)
- }
- else if(totcnt == ncnt)
- {
- rdo_aprvrslt.value = 3;
- }
- else if(ycnt > 0)
- {
- rdo_aprvrslt.value = 2;
- }
- }
- }
- function switch1_case3_grd_authlist3_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- //if(grd_authlist3.col == grd_authlist3.colRef("aprvflagy"))
- if(switch1.case3.grd_authlist3.currentcol == "2")
- {
- if(ds_main_appinfo_authlist3.getColumn(ds_main_appinfo_authlist3.rowposition, "aprvflagy") == "1")
- {
- ds_main_appinfo_authlist3.setColumn(ds_main_appinfo_authlist3.rowposition, "aprvflagn", "0")
- }
- }
- else if(switch1.case3.grd_authlist3.currentcol == "3")
- {
- if(ds_main_appinfo_authlist3.getColumn(ds_main_appinfo_authlist3.rowposition, "aprvflagn") == "1")
- {
- ds_main_appinfo_authlist3.setColumn(ds_main_appinfo_authlist3.rowposition, "aprvflagy", "0")
- }
- }
-
- //전체 권한의 갯수
- var totcnt = ds_main_appinfo_authlist1.rowcount + ds_main_appinfo_authlist2.rowcount + ds_main_appinfo_authlist3.rowcount;
-
- var ycnt = 0; //승인된 권한의 갯수
- var ncnt = 0; //거부된 권한의 갯수
-
- if(totcnt > 0)
- {
- for(var i =0; i < ds_main_appinfo_authlist1.rowcount; i++)
- {
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist1.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist2.rowcount; i++)
- {
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist2.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- for(var i = 0; i < ds_main_appinfo_authlist3.rowcount; i++)
- {
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagy") == "1")
- {
- ycnt++;
- }
- if(ds_main_appinfo_authlist3.getColumn(i, "aprvflagn") == "1")
- {
- ncnt++;
- }
- }
- if(totcnt == ycnt)
- {
- rdo_aprvrslt.value = 1; //승인결과(1:승인사항 모두승인, 2:승인사항 조건부승인, 3:승인불가)
- }
- else if(totcnt == ncnt)
- {
- rdo_aprvrslt.value = 3;
- }
- else if(ycnt > 0)
- {
- rdo_aprvrslt.value = 2;
- }
- }
- }
- function rdo_commreqyn_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(rdo_commreqyn.value == "Y") {
- sysf_messageBox("위원회 심의가 필요한 특별한 진료권한이라고 판단되는 경우에만 \n\n상정에 체크하여 주시기 바랍니다. ", "I999", "");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|