123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMR03900" position="absolute 0 0 1256 805" titletext="의뢰선택" oninit="SPMMR03900_oninit" onload="SPMMR03900_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 1045 690" id="grup_cnst1" visible="false">
- <Layouts>
- <Layout>
- <Static text="휴진/마감 사유" position="absolute 160 491 417 511" id="caption3" class="tit_2"/>
- <Button position="absolute 575 488 601 508" id="btn_bottom" class="icon_bottom" text="" onclick="grup_cnst1_btn_bottom_onclick"/>
- <Grid position="absolute 160 510 1045 685" id="grd_endresn" binddataset="ds_grd_endresn">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="631"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="날짜"/>
- <Cell col="1" text="휴진/마감 사유"/>
- </Band>
- <Band id="body">
- <Cell displaytype="normal" edittype="none" text="bind:orddd" mask="####-##-##"/>
- <Cell col="1" displaytype="text" edittype="none" text="bind:ordendresnnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 25 158 685" id="grd_deptlist" binddataset="ds_cnstformlist" oncelldblclick="grup_cnst1_grd_deptlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="147"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="text" text="bind:cnstdeptnm" expr="expr:seq == '0' ? cnstdeptnm + '★' : cnstdeptnm"/>
- <Cell col="1" text="bind:cnstdeptcd"/>
- <Cell col="2" text="bind:cnstflag"/>
- <Cell col="3" text="bind:formcd"/>
- <Cell col="4" text="bind:reqdeptno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 160 25 1045 485" align="align:center middle;" id="grd_drschlist" binddataset="ds_grd_drschlist" oncelldblclick="grup_cnst1_grd_drschlist_oncelldblclick" selecttype="multiarea" extendsizetype="row" autosizingtype="row" cellsizingtype="row" scrollpixel="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="90" band="left"/>
- <Column size="515"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- <Cell col="4"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell col="32"/>
- <Cell col="33"/>
- </Band>
- <Band id="body">
- <Cell text="bind:orddrid"/>
- <Cell col="1" text="bind:orddrnm"/>
- <Cell col="2" displaytype="text" style="background:white;background2:white;" text="bind:orddrextnnm"/>
- <Cell col="3" displaytype="text" style="background:white;background2:white;" text="bind:ordfild"/>
- <Cell col="4" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col0"));background2:EXPR(fSetGrdColor("back", currow, "col0"));color:EXPR(fSetGrdColor("font", currow, "col0"));color2:EXPR(fSetGrdColor("font", currow, "col0"));linespace:2;" text="bind:col0" wordwrap="word"/>
- <Cell col="5" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col1"));background2:EXPR(fSetGrdColor("back", currow, "col1"));color:EXPR(fSetGrdColor("font", currow, "col1"));color2:EXPR(fSetGrdColor("font", currow, "col1"));linespace:2;" text="bind:col1" wordwrap="word"/>
- <Cell col="6" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col2"));background2:EXPR(fSetGrdColor("back", currow, "col2"));color:EXPR(fSetGrdColor("font", currow, "col2"));color2:EXPR(fSetGrdColor("font", currow, "col2"));linespace:2;" text="bind:col2" wordwrap="word"/>
- <Cell col="7" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col3"));background2:EXPR(fSetGrdColor("back", currow, "col3"));color:EXPR(fSetGrdColor("font", currow, "col3"));color2:EXPR(fSetGrdColor("font", currow, "col3"));linespace:2;" text="bind:col3" wordwrap="word"/>
- <Cell col="8" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col4"));background2:EXPR(fSetGrdColor("back", currow, "col4"));color:EXPR(fSetGrdColor("font", currow, "col4"));color2:EXPR(fSetGrdColor("font", currow, "col4"));linespace:2;" text="bind:col4" wordwrap="word"/>
- <Cell col="9" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col5"));background2:EXPR(fSetGrdColor("back", currow, "col5"));color:EXPR(fSetGrdColor("font", currow, "col5"));color2:EXPR(fSetGrdColor("font", currow, "col5"));linespace:2;" text="bind:col5" wordwrap="word"/>
- <Cell col="10" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col6"));background2:EXPR(fSetGrdColor("back", currow, "col6"));color:EXPR(fSetGrdColor("font", currow, "col6"));color2:EXPR(fSetGrdColor("font", currow, "col6"));linespace:2;" text="bind:col6" wordwrap="word"/>
- <Cell col="11" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col7"));background2:EXPR(fSetGrdColor("back", currow, "col7"));color:EXPR(fSetGrdColor("font", currow, "col7"));color2:EXPR(fSetGrdColor("font", currow, "col7"));linespace:2;" text="bind:col7" wordwrap="word"/>
- <Cell col="12" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col8"));background2:EXPR(fSetGrdColor("back", currow, "col8"));color:EXPR(fSetGrdColor("font", currow, "col8"));color2:EXPR(fSetGrdColor("font", currow, "col8"));linespace:2;" text="bind:col8" wordwrap="word"/>
- <Cell col="13" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col9"));background2:EXPR(fSetGrdColor("back", currow, "col9"));color:EXPR(fSetGrdColor("font", currow, "col9"));color2:EXPR(fSetGrdColor("font", currow, "col9"));linespace:2;" text="bind:col9" wordwrap="word"/>
- <Cell col="14" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col10"));background2:EXPR(fSetGrdColor("back", currow, "col10"));color:EXPR(fSetGrdColor("font", currow, "col10"));color2:EXPR(fSetGrdColor("font", currow, "col10"));linespace:2;" text="bind:col10" wordwrap="word"/>
- <Cell col="15" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col11"));background2:EXPR(fSetGrdColor("back", currow, "col11"));color:EXPR(fSetGrdColor("font", currow, "col11"));color2:EXPR(fSetGrdColor("font", currow, "col11"));linespace:2;" text="bind:col11" wordwrap="word"/>
- <Cell col="16" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col12"));background2:EXPR(fSetGrdColor("back", currow, "col12"));color:EXPR(fSetGrdColor("font", currow, "col12"));color2:EXPR(fSetGrdColor("font", currow, "col12"));linespace:2;" text="bind:col12" wordwrap="word"/>
- <Cell col="17" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col13"));background2:EXPR(fSetGrdColor("back", currow, "col13"));color:EXPR(fSetGrdColor("font", currow, "col13"));color2:EXPR(fSetGrdColor("font", currow, "col13"));linespace:2;" text="bind:col13" wordwrap="word"/>
- <Cell col="18" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col14"));background2:EXPR(fSetGrdColor("back", currow, "col14"));color:EXPR(fSetGrdColor("font", currow, "col14"));color2:EXPR(fSetGrdColor("font", currow, "col14"));linespace:2;" text="bind:col14" wordwrap="word"/>
- <Cell col="19" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col15"));background2:EXPR(fSetGrdColor("back", currow, "col15"));color:EXPR(fSetGrdColor("font", currow, "col15"));color2:EXPR(fSetGrdColor("font", currow, "col15"));linespace:2;" text="bind:col15" wordwrap="word"/>
- <Cell col="20" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col16"));background2:EXPR(fSetGrdColor("back", currow, "col16"));color:EXPR(fSetGrdColor("font", currow, "col16"));color2:EXPR(fSetGrdColor("font", currow, "col16"));linespace:2;" text="bind:col16" wordwrap="word"/>
- <Cell col="21" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col17"));background2:EXPR(fSetGrdColor("back", currow, "col17"));color:EXPR(fSetGrdColor("font", currow, "col17"));color2:EXPR(fSetGrdColor("font", currow, "col17"));linespace:2;" text="bind:col17" wordwrap="word"/>
- <Cell col="22" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col18"));background2:EXPR(fSetGrdColor("back", currow, "col18"));color:EXPR(fSetGrdColor("font", currow, "col18"));color2:EXPR(fSetGrdColor("font", currow, "col18"));linespace:2;" text="bind:col18" wordwrap="word"/>
- <Cell col="23" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col19"));background2:EXPR(fSetGrdColor("back", currow, "col19"));color:EXPR(fSetGrdColor("font", currow, "col19"));color2:EXPR(fSetGrdColor("font", currow, "col19"));linespace:2;" text="bind:col19" wordwrap="word"/>
- <Cell col="24" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col20"));background2:EXPR(fSetGrdColor("back", currow, "col20"));color:EXPR(fSetGrdColor("font", currow, "col20"));color2:EXPR(fSetGrdColor("font", currow, "col20"));linespace:2;" text="bind:col20" wordwrap="word"/>
- <Cell col="25" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col21"));background2:EXPR(fSetGrdColor("back", currow, "col21"));color:EXPR(fSetGrdColor("font", currow, "col21"));color2:EXPR(fSetGrdColor("font", currow, "col21"));linespace:2;" text="bind:col21" wordwrap="word"/>
- <Cell col="26" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col22"));background2:EXPR(fSetGrdColor("back", currow, "col22"));color:EXPR(fSetGrdColor("font", currow, "col22"));color2:EXPR(fSetGrdColor("font", currow, "col22"));linespace:2;" text="bind:col22" wordwrap="word"/>
- <Cell col="27" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col23"));background2:EXPR(fSetGrdColor("back", currow, "col23"));color:EXPR(fSetGrdColor("font", currow, "col23"));color2:EXPR(fSetGrdColor("font", currow, "col23"));linespace:2;" text="bind:col23" wordwrap="word"/>
- <Cell col="28" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col24"));background2:EXPR(fSetGrdColor("back", currow, "col24"));color:EXPR(fSetGrdColor("font", currow, "col24"));color2:EXPR(fSetGrdColor("font", currow, "col24"));linespace:2;" text="bind:col24" wordwrap="word"/>
- <Cell col="29" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col25"));background2:EXPR(fSetGrdColor("back", currow, "col25"));color:EXPR(fSetGrdColor("font", currow, "col25"));color2:EXPR(fSetGrdColor("font", currow, "col25"));linespace:2;" text="bind:col25" wordwrap="word"/>
- <Cell col="30" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col26"));background2:EXPR(fSetGrdColor("back", currow, "col26"));color:EXPR(fSetGrdColor("font", currow, "col26"));color2:EXPR(fSetGrdColor("font", currow, "col26"));linespace:2;" text="bind:col26" wordwrap="word"/>
- <Cell col="31" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col27"));background2:EXPR(fSetGrdColor("back", currow, "col27"));color:EXPR(fSetGrdColor("font", currow, "col27"));color2:EXPR(fSetGrdColor("font", currow, "col27"));linespace:2;" text="bind:col27" wordwrap="word"/>
- <Cell col="32" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col28"));background2:EXPR(fSetGrdColor("back", currow, "col28"));color:EXPR(fSetGrdColor("font", currow, "col28"));color2:EXPR(fSetGrdColor("font", currow, "col28"));linespace:2;" text="bind:col28" wordwrap="word"/>
- <Cell col="33" style="padding:5 4 5 4;background:EXPR(fSetGrdColor("back", currow, "col29"));background2:EXPR(fSetGrdColor("back", currow, "col29"));color:EXPR(fSetGrdColor("font", currow, "col29"));color2:EXPR(fSetGrdColor("font", currow, "col29"));linespace:2;" text="bind:col29" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 368 3 394 23" id="button102" class="icon_left" text="" onclick="grup_cnst1_button102_onclick" tooltiptext="이전달" tooltiptype="hover"/>
- <Button position="absolute 399 3 425 23" id="button103" class="icon_right" text="" onclick="grup_cnst1_button103_onclick" tooltiptext="다음달" tooltiptype="hover"/>
- <Static text="진료의뢰 수신과, 수신자 선택" position="absolute 5 5 205 25" id="caption1" class="tit_2"/>
- <Radio position="absolute 218 3 313 23" id="rdo_cnstioflag" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grup_cnst1_rdo_cnstioflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">I</Col>
- <Col id="datacolumn">입원</Col>
- </Row>
- <Row>
- <Col id="codecolumn">O</Col>
- <Col id="datacolumn">외래</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button position="absolute 575 660 601 680" id="btn_fold" class="icon_top" visible="false" text="" onclick="grup_cnst1_btn_fold_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 1045 0 1324 690" id="grup_cnst3" visible="false">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 25 278 685" id="grd_cnstlist" binddataset="ds_cnstformlist" oncelldblclick="grup_cnst3_grd_cnstlist_oncelldblclick" autofittype="col" tooltiptype="hover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="167"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24"/>
- </Rows>
- <Band id="body">
- <Cell style="background:white;background2:white;" text="bind:cnstclsnm" suppress="1"/>
- <Cell col="1" displaytype="text" style="background:white;background2:white;" text="bind:formnm" wordwrap="char" tooltiptext="bind:formnm"/>
- <Cell col="2" text="bind:cnstdeptnm"/>
- <Cell col="3" text="bind:cnstdeptcd"/>
- <Cell col="4" text="bind:cnstflag"/>
- <Cell col="5" text="bind:formcd"/>
- <Cell col="6" text="bind:replflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 0 21 275 22" linetype="vertical" id="line2" class="line_1"/>
- <Static text="지원부서의뢰 의뢰항목선택" position="absolute 5 5 196 25" id="caption2" class="tit_2"/>
- <Button position="absolute 233 2 275 22" id="button12" class="btn2" text="선택" onclick="grup_cnst3_button12_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_endresnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
- <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
- <Column id="ampmflag" type="STRING" size="256" sumtext="오전오후구분"/>
- <Column id="ampmflagnm" type="STRING" size="256" sumtext="오전오후구분명"/>
- <Column id="ordendresnnm" type="STRING" size="256" sumtext="휴진사유"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cnstformlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
- <Column id="formnm" type="STRING" size="256" sumtext="서식명칭"/>
- <Column id="cnstdeptcd" type="STRING" size="256" sumtext="컨설트부서코드"/>
- <Column id="cnstdeptnm" type="STRING" size="256" sumtext="컨설트부서명"/>
- <Column id="cnstflag" type="STRING" size="256" sumtext="컨설트구분"/>
- <Column id="cnstclsnm" type="STRING" size="256" sumtext="서식분류명"/>
- <Column id="replflag" type="STRING" size="256" sumtext="회신서식구분"/>
- <Column id="reqdeptno" type="STRING" size="256" sumtext="청구구분번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_drschlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowposchanged="ds_grd_drschlist_onrowposchanged">
- <ColumnInfo>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
- <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
- <Column id="ordfild" type="STRING" size="256" sumtext="진료분야"/>
- <Column id="col0" type="STRING" size="256" sumtext="진료일1"/>
- <Column id="col1" type="STRING" size="256" sumtext="진료일2"/>
- <Column id="col2" type="STRING" size="256" sumtext="진료일3"/>
- <Column id="col3" type="STRING" size="256" sumtext="진료일4"/>
- <Column id="col4" type="STRING" size="256" sumtext="진료일5"/>
- <Column id="col5" type="STRING" size="256" sumtext="진료일6"/>
- <Column id="col6" type="STRING" size="256" sumtext="진료일7"/>
- <Column id="col7" type="STRING" size="256" sumtext="진료일8"/>
- <Column id="col8" type="STRING" size="256" sumtext="진료일9"/>
- <Column id="col9" type="STRING" size="256" sumtext="진료일10"/>
- <Column id="col10" type="STRING" size="256" sumtext="진료일11"/>
- <Column id="col11" type="STRING" size="256" sumtext="진료일12"/>
- <Column id="col12" type="STRING" size="256" sumtext="진료일13"/>
- <Column id="col13" type="STRING" size="256" sumtext="진료일14"/>
- <Column id="col14" type="STRING" size="256" sumtext="진료일15"/>
- <Column id="col15" type="STRING" size="256" sumtext="진료일16"/>
- <Column id="col16" type="STRING" size="256" sumtext="진료일17"/>
- <Column id="col17" type="STRING" size="256" sumtext="진료일18"/>
- <Column id="col18" type="STRING" size="256" sumtext="진료일19"/>
- <Column id="col19" type="STRING" size="256" sumtext="진료일20"/>
- <Column id="col20" type="STRING" size="256" sumtext="진료일21"/>
- <Column id="col21" type="STRING" size="256" sumtext="진료일22"/>
- <Column id="col22" type="STRING" size="256" sumtext="진료일23"/>
- <Column id="col23" type="STRING" size="256" sumtext="진료일24"/>
- <Column id="col24" type="STRING" size="256" sumtext="진료일25"/>
- <Column id="col25" type="STRING" size="256" sumtext="진료일26"/>
- <Column id="col26" type="STRING" size="256" sumtext="진료일27"/>
- <Column id="col27" type="STRING" size="256" sumtext="진료일28"/>
- <Column id="col28" type="STRING" size="256" sumtext="진료일29"/>
- <Column id="col29" type="STRING" size="256" sumtext="진료일30"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnstioflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cnstflag" type="STRING" size="256" sumtext="컨설트구분"/>
- <Column id="ioflag" type="STRING" size="256" sumtext="내원구분"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
- <Column id="cnstioflag" type="STRING" size="256" sumtext="외래입원구분"/>
- <Column id="cnstdeptcd" type="STRING" size="256"/>
- <Column id="cnstdeptnm" type="STRING" size="256"/>
- <Column id="formcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="orddeptcd"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="cnstioflag"/>
- <Col id="cnstdeptcd"/>
- <Col id="cnstdeptnm"/>
- <Col id="formcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_depthrcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_reqsuspend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddrid" type="STRING" size="256" sumtext="수신의"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일시"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_suspendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="spndyn" type="STRING" size="256" sumtext="휴진여부"/>
- <Column id="description" type="STRING" size="256" sumtext="컨설트부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_endresn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
- <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
- <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
- <Column id="ampmflag" type="STRING" size="256" sumtext="오전오후구분"/>
- <Column id="ampmflagnm" type="STRING" size="256" sumtext="오전오후구분명"/>
- <Column id="ordendresnnm" type="STRING" size="256" sumtext="휴진사유"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_drschlist_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
- <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
- <Column id="ordfild" type="STRING" size="256" sumtext="진료분야"/>
- <Column id="col0" type="STRING" size="256" sumtext="진료일1"/>
- <Column id="col1" type="STRING" size="256" sumtext="진료일2"/>
- <Column id="col2" type="STRING" size="256" sumtext="진료일3"/>
- <Column id="col3" type="STRING" size="256" sumtext="진료일4"/>
- <Column id="col4" type="STRING" size="256" sumtext="진료일5"/>
- <Column id="col5" type="STRING" size="256" sumtext="진료일6"/>
- <Column id="col6" type="STRING" size="256" sumtext="진료일7"/>
- <Column id="col7" type="STRING" size="256" sumtext="진료일8"/>
- <Column id="col8" type="STRING" size="256" sumtext="진료일9"/>
- <Column id="col9" type="STRING" size="256" sumtext="진료일10"/>
- <Column id="col10" type="STRING" size="256" sumtext="진료일11"/>
- <Column id="col11" type="STRING" size="256" sumtext="진료일12"/>
- <Column id="col12" type="STRING" size="256" sumtext="진료일13"/>
- <Column id="col13" type="STRING" size="256" sumtext="진료일14"/>
- <Column id="col14" type="STRING" size="256" sumtext="진료일15"/>
- <Column id="col15" type="STRING" size="256" sumtext="진료일16"/>
- <Column id="col16" type="STRING" size="256" sumtext="진료일17"/>
- <Column id="col17" type="STRING" size="256" sumtext="진료일18"/>
- <Column id="col18" type="STRING" size="256" sumtext="진료일19"/>
- <Column id="col19" type="STRING" size="256" sumtext="진료일20"/>
- <Column id="col20" type="STRING" size="256" sumtext="진료일21"/>
- <Column id="col21" type="STRING" size="256" sumtext="진료일22"/>
- <Column id="col22" type="STRING" size="256" sumtext="진료일23"/>
- <Column id="col23" type="STRING" size="256" sumtext="진료일24"/>
- <Column id="col24" type="STRING" size="256" sumtext="진료일25"/>
- <Column id="col25" type="STRING" size="256" sumtext="진료일26"/>
- <Column id="col26" type="STRING" size="256" sumtext="진료일27"/>
- <Column id="col27" type="STRING" size="256" sumtext="진료일28"/>
- <Column id="col28" type="STRING" size="256" sumtext="진료일29"/>
- <Column id="col29" type="STRING" size="256" sumtext="진료일30"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grup_cnst1.rdo_cnstioflag" propid="value" datasetid="ds_init" columnid="cnstioflag"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-10-15
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-10-15 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- var arErrorCode = new HashArray();
- var cnstflag = "";
- var selectedIndex = -1;
- var HEADER_ROW = 0;
- function SPMMR03900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMMR03900_onload(obj:Form, e:LoadEventInfo)
- {
- fInitalize();
-
- }
- function grup_cnst1_rdo_cnstioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
-
- }
- function grup_cnst1_button102_onclick(obj:Button, e:ClickEventInfo)
- {
- fCalMonth("prev");
- }
- function grup_cnst1_button103_onclick(obj:Button, e:ClickEventInfo)
- {
- fCalMonth("next");
- }
- function grup_cnst1_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1) //그리드에서 데이타영역만
- fClickDeptList();
- }
- function grup_cnst1_grd_drschlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fClickSchList(e.row, e.col);
- }
- function ds_grd_drschlist_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
- {
- fClickDrNm(obj.rowposition);
- }
- function grup_cnst3_grd_cnstlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row > -1)
- fClickCnstList(e.row);
- }
- function grup_cnst3_button12_onclick(obj:Button, e:ClickEventInfo)
- {
- fClickCnstList(ds_cnstformlist.rowposition);
- }
- function grup_cnst1_btn_bottom_onclick(obj:Button, e:ClickEventInfo)
- {
- grup_cnst1.grd_drschlist.position.height = 660;
-
- grup_cnst1.btn_fold.visible = true;
- }
- function grup_cnst1_btn_fold_onclick(obj:Button, e:ClickEventInfo)
- {
- grup_cnst1.grd_drschlist.position.height = 460;
-
- grup_cnst1.btn_fold.visible = false;
- }
- /**
- * @desc : 화면초기화
- * @id :
- * @event : xforms-ready
- * @return : void
- * @authur : 박종훈
- */
- function fInitalize()
- {
- cnstflag = opener.frmf_getParameter("MMR05000_cnstflag");
- grup_cnst3.position.x = 0;
- if (cnstflag == "1")
- {
- var ioflag = opener.ds_result_paminfo.getColumn(0, "ioflag");
-
- grup_cnst3.position.width = 0;
- grup_cnst3.position.height = 0;
- grup_cnst1.visible = true;
-
- if (ioflag == "I" || ioflag == "E" || ioflag == "D")
- {
- grup_cnst1.rdo_cnstioflag.visible = true;
- ioflag = "I";
- }
- else
- {
- grup_cnst1.rdo_cnstioflag.visible = false;
- ioflag = "O";
- }
-
- ds_init.setColumn(0, "cnstioflag", ioflag);
-
- parent.position.height = parseInt(grup_cnst1.position.height) + 50;
- parent.position.width = parseInt(grup_cnst1.position.width) + 24;
- }
- else if (cnstflag == "3")
- {
- grup_cnst1.position.width = 0;
- grup_cnst1.position.height = 0;
- grup_cnst3.visible = true;
-
- parent.position.height = parseInt(grup_cnst3.position.height) + 50;
- parent.position.width = parseInt(grup_cnst3.position.width) + 24;
- }
-
- ds_send.setColumn(0, "ioflag", ds_init.getColumn(0, "cnstioflag"));
- ds_send.setColumn(0, "cnstflag", cnstflag);
-
- var oParam = {};
- oParam.id = "TRMMR04902";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetCnstFormList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_cnstformlist=cnstform";
- oParam.async = true;
- oParam.callback = "cf_TRMMR04902";
- tranf_submit(oParam); //컨설트부서조회
-
- lf_gethardcdArrayList(new Array(
- "depthrcd|9902"
- ),
- new Array(
- "ds_depthrcd"
- )
- );
- }
- function cf_TRMMR04902(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- if(opener.opener.frmf_getParameter("opener_kind")=="koryo"){
- var nFindRow = ds_cnstformlist.findRow("cnstdeptcd", "2160000000");
- if( nFindRow > -1 ){
- ds_cnstformlist.rowposition = nFindRow;
- }
-
- fClickDeptList_koryo();
- opener.opener.frmf_clearParameter("opener_kind");
- }
- if( opener.frmf_getParameter("SPMMR03900_excnts") == "click" ){
- var nFindRow = ds_cnstformlist.findRow("cnstdeptcd", "2160000000");
- if( nFindRow > -1 ){
- ds_cnstformlist.rowposition = nFindRow;
- grup_cnst3.grd_cnstlist.vscrollbar.pos = nFindRow;
- }
- }
-
- }
- /**
- * @desc : 부서리스트 선택
- * @id :
- * @event : ondblclick
- * @return : void
- * @authur : 박종훈
- */
- function fClickDeptList()
- {
- selectedIndex = ds_cnstformlist.rowposition;
-
- //var deptcd = model.getValue("/root/main/deptlist/dept[" + grd_deptlist.row + "]deptcd");
- var deptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
- var cnstflag = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstflag");
- var fr_date = new Date();
- var to_date = new Date();
- to_date = to_date.getAddDate(29, "D");
-
- //2009-06-19 오후 8:38:58 강지훈 추가 : 특정과는 진료일정이없어도 모든 진료의를 보여주어야 한다.
-
- //lf_getHardCDList("N", 9902, null, ds_depthrcd);
- var cnstdeptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
- var seledtedDeptcd = ds_depthrcd.lookup("hardcd", cnstdeptcd, "hardcd");
- var cnstioflag = "";
- if(utlf_isNull(seledtedDeptcd)){
- cnstioflag = "O" //진료일정이 있는 의사만 보여준다.
- }
- else{
- cnstioflag = "I" //진료일정이 없는 의사까지 모두 보여준다.
- }
-
- //SR#20190627013 로 대체
- // if( sysf_getUserInfo("dutplceinstcd") == "032" && cnstdeptcd == "2160000000" ){
- // sysf_messageBox("[지원부서의뢰신규] 의 영상의학 의뢰로 진행하셔야 합니다.( 문의:3371 영상의학센터)","I");
- // opener.frmf_setParameter("SPMMR03900_deptnm" , "");
- // opener.frmf_setParameter("SPMMR03900_excnts" , "Y");
- // this.close();
- // }
-
-
- //alert("fr_date:"+fr_date.getDateFormat());
- //alert("to_date:"+to_date.getDateFormat());
- ds_send2.setColumn(0, "orddeptcd", deptcd);
- ds_send2.setColumn(0, "fromdd", fr_date.getDateFormat());
- ds_send2.setColumn(0, "todd", to_date.getDateFormat());
-
- ds_send2.setColumn(0, "cnstdeptcd", cnstdeptcd );
- ds_send2.setColumn(0, "cnstdeptnm", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptnm") );
- ds_send2.setColumn(0, "formcd", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "formcd") );
- ds_send2.setColumn(0, "cnstioflag", cnstioflag);
-
- grup_cnst1.grd_drschlist.enableredraw = false;
-
- var oParam = {};
- oParam.id = "TRMMR03901";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetDrSchList";
- oParam.inds = "req=ds_send2";
- oParam.outds = "ds_grd_drschlist=drschlist ds_endresnlist=endresnlist";
- oParam.async = true;
- oParam.callback = "cf_TRMMR03901";
- tranf_submit(oParam);
- }
- function cf_TRMMR03901(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode > -1) {
- // grup_cnst1.grd_drschlist.setRealRowSize(0, 0);
- // grup_cnst1.grd_drschlist.setRealRowSize(1, 0);
- // grup_cnst1.grd_drschlist.setRealRowSize(2, 0);
- ds_grd_drschlist_header.clearData();
-
- for(var i = 0; i < 3; i++) {
- ds_grd_drschlist_header.addRow();
- ds_grd_drschlist_header.copyRow(i, ds_grd_drschlist, i);
- }
-
- utlf_addLog(ds_grd_drschlist_header.saveXML());
-
- ds_grd_drschlist.deleteRow(2);
- ds_grd_drschlist.deleteRow(1);
- ds_grd_drschlist.deleteRow(0);
- var headerCnt = grup_cnst1.grd_drschlist.getCellCount("Head");
-
- for(var i = 0; i < headerCnt; i++) {
- var colName = lf_getBindCellName(grup_cnst1.grd_drschlist, i);
-
- grup_cnst1.grd_drschlist.setCellProperty("head", i, "text", ds_grd_drschlist_header.getColumn(2, colName));
- }
- }
-
- grup_cnst1.grd_drschlist.enableredraw = true;
- }
- /**
- * @desc : 재활고려서식을 위한 함수
- */
- function fClickDeptList_koryo()
- {
- if(ds_cnstformlist.rowcount > 0) //그리드에서 데이타영역만
- {
- selectedIndex = ds_cnstformlist.rowposition;
-
- //var deptcd = model.getValue("/root/main/deptlist/dept[" + grd_deptlist.row + "]deptcd");
- var deptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
- var cnstflag = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstflag");
- var fr_date = new Date();
- var to_date = new Date();
- to_date = to_date.getAddDate(29, "D");
-
- //2009-06-19 오후 8:38:58 강지훈 추가 : 특정과는 진료일정이없어도 모든 진료의를 보여주어야 한다.
- //lf_getHardCDList("N", 9902, null, ds_depthrcd);
- var cnstdeptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
- var seledtedDeptcd = ds_depthrcd.lookup("hardcd", cnstdeptcd, "hardcd");
- var cnstioflag = "";
- if(utlf_isNull(seledtedDeptcd)){
- cnstioflag = "O" //진료일정이 있는 의사만 보여준다.
- }
- else{
- cnstioflag = "I" //진료일정이 없는 의사까지 모두 보여준다.
- }
-
- //alert("fr_date:"+fr_date.getDateFormat());
- //alert("to_date:"+to_date.getDateFormat());
- ds_send2.setColumn(0, "orddeptcd", deptcd);
- ds_send2.setColumn(0, "fromdd", fr_date.getDateFormat());
- ds_send2.setColumn(0, "todd", to_date.getDateFormat());
-
- ds_send2.setColumn(0, "cnstdeptcd", cnstdeptcd );
- ds_send2.setColumn(0, "cnstdeptnm", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptnm") );
- ds_send2.setColumn(0, "formcd", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "formcd") );
- ds_send2.setColumn(0, "cnstioflag", cnstioflag);
-
- grup_cnst1.grd_drschlist.enableredraw = false;
-
- var oParam = {};
- oParam.id = "TRMMR03901";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetDrSchList";
- oParam.inds = "req=ds_send2";
- oParam.outds = "ds_grd_drschlist=drschlist ds_endresnlist=endresnlist";
- oParam.async = true;
- oParam.callback = "cf_TRMMR03901";
- tranf_submit(oParam);
- }
- }
- /**
- * @desc : 일정별 색상 설정
- * @id :
- * @event : ondblclick
- * @return : void
- * @authur : 박종훈
- */
- function fSetGrdColor(type, currow, text) {
- var color = "default";
-
- if(type == "font") {
- if(currow == HEADER_ROW) {
- var value = lf_getDsValue(ds_grd_drschlist_header, HEADER_ROW, text);
- if (value == "4")
- color = "#3366ff"; //토요일
- else if (value == "8")
- color = "#ff0000"; //일요일
- else
- color = "#4d4d4d";
-
- }
- } else {
- if(currow > HEADER_ROW) {
- var value = lf_getDsValue(ds_grd_drschlist, currow, text);
- if (value == "오전")
- color = "#ffff99";
- else if (value == "오후")
- color = "#ccffff";
- else if (value == "전일")
- color = "#ffcc99";
- else if (value.substr(0, 2) == "휴진")
- color = "#3366ff";
- else if (value == "마감")
- color = "#999999";
- else
- color = "#ffffff";
- } else {
- color = "#ffffff";
- }
- }
- return color;
- }
- /**
- * @desc : 타과의뢰 선택
- * @id :
- * @event : ondblclick
- * @return : void
- * @authur : 박종훈
- */
- function fClickCnstList(row)
- {
- var formcd = ds_cnstformlist.getColumn(row, "formcd");
- var formnm = ds_cnstformlist.getColumn(row, "formnm");
- var deptcd = ds_cnstformlist.getColumn(row, "cnstdeptcd");
- var deptnm = ds_cnstformlist.getColumn(row, "cnstdeptnm");
- var replflag = ds_cnstformlist.getColumn(row, "replflag");
- var cnstflag = "3";
-
- opener.frmf_setParameter("SPMMR03900_formcd" , formcd);
- opener.frmf_setParameter("SPMMR03900_deptcd" , deptcd);
- opener.frmf_setParameter("SPMMR03900_deptnm" , deptnm);
- opener.frmf_setParameter("SPMMR03900_cnstflag" , cnstflag);
-
- opener.frmf_setParameter("SPMMR03900_formnm" , formnm);
- opener.frmf_setParameter("SPMMR03900_replflag" , replflag);
-
- // 컨설트 관련 추가
- //opener.frmf_setParameter("SPMMR03900_mainyn" , "N");
-
- //opener.frmf_fOpenCnstForm(formcd, deptcd, deptnm, "", "", "", cnstflag, formnm, replflag);
- close();
- }
- /**
- * @desc : 다음달, 이전달
- * @id :
- * @event : ondblclick
- * @return : void
- * @authur : 박종훈
- */
- function fCalMonth(tmp)
- {
- var tmp_fr_date = ds_send2.getColumn(0, "fromdd").toDate();
- var tmp_to_date = ds_send2.getColumn(0, "todd").toDate();
- if (tmp == "prev")
- {
- var fr_date = tmp_fr_date.getAddDate(-30, "D");
- var to_date = tmp_to_date.getAddDate(-30, "D");
- }
- else
- {
- var fr_date = tmp_fr_date.getAddDate(30, "D");
- var to_date = tmp_to_date.getAddDate(30, "D");
- }
- ds_send2.setColumn(0, "fromdd", fr_date.getDateFormat());
- ds_send2.setColumn(0, "todd", to_date.getDateFormat());
-
- grup_cnst1.grd_drschlist.enableredraw = false;
-
- var oParam = {};
- oParam.id = "TRMMR03901";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetDrSchList";
- oParam.inds = "req=ds_send2";
- oParam.outds = "ds_grd_drschlist=drschlist ds_endresnlist=endresnlist";
- oParam.async = true;
- oParam.callback = "cf_TRMMR03901";
- tranf_submit(oParam);
- // if(submit("TRMMR03901"))
- // {
- // grd_drschlist.rowheight(1) = 0;
- // fSetGrdColor();
- // }
- }
- /**
- * @desc : 의사 선택(휴진일정 셋팅)
- * @id :
- * @event : ondblclick
- * @return : void
- * @authur : 박종훈
- */
- function fClickDrNm(row)
- {
- if (row > HEADER_ROW) {
-
- var drid = ds_grd_drschlist.getColumn(row, "orddrid");
- var orddrnm = ds_grd_drschlist.getColumn(row, "orddrnm");
- grup_cnst1.caption3.text = orddrnm+" 선생님 휴진/마감 사유";
-
- ds_endresnlist.filter("orddrid == '" + drid + "' && !utlf_isNull(ordendresnnm)");
- ds_grd_endresn.copyData(ds_endresnlist, true);
- ds_endresnlist.filter("");
- ds_grd_endresn.rowposition = -1;
- }
- }
- /**
- * @group :
- * @ver : 2008.06.13
- * @by : snoweye
- * @---------------------------------------------------
- * @type : function
- * @access : private
- * @desc : 의뢰의사를 선택한다.
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fClickSchList(row, col)
- {
- if (!fGetSuspendDiagInfo())
- return;
-
- if (col > 3 && row > HEADER_ROW)
- {
- var drid = ds_grd_drschlist.getColumn(row, "orddrid");
- var cnstflag = "1";
- //2013/01/23 Start 원무팀의 외래 컨설트 hopedd 사용 할 수 있도록 수정
- var orddd = ds_grd_drschlist_header.getColumn(1, lf_getBindCellName(grup_cnst1.grd_drschlist, col)); // var day_rowno = 1;
- //var orddd = getCurrentDate();
- //2012/01/23 End
-
- if (!utlf_isNull(orddd))
- {
- if (orddd < utlf_getCurrentDate())
- {
- sysf_messageBox("과거일로 의뢰할 수", "I004");
- return;
- }
- else
- {
- var deptcd = ds_send2.getColumn(0, "cnstdeptcd");
- var deptnm = ds_send2.getColumn(0, "cnstdeptnm");
- var formcd = ds_send2.getColumn(0, "formcd");
- var reqdeptno = ds_cnstformlist.getColumn(selectedIndex, "reqdeptno");
- var drnm = ds_grd_drschlist.getColumn(row, "orddrnm");
-
- //선택된 진료의 정보를 부모창에 전달한다.
- opener.frmf_setParameter("SPMMR03900_formcd" , formcd);
- opener.frmf_setParameter("SPMMR03900_deptcd" , deptcd);
- opener.frmf_setParameter("SPMMR03900_deptnm" , deptnm);
- opener.frmf_setParameter("SPMMR03900_drid" , drid);
- opener.frmf_setParameter("SPMMR03900_drnm" , drnm);
- opener.frmf_setParameter("SPMMR03900_orddd" , orddd);
- opener.frmf_setParameter("SPMMR03900_cnstflag" , cnstflag);
- opener.frmf_setParameter("SPMMR03900_reqdeptno" , reqdeptno);
- opener.frmf_setParameter("SPMMR03900_cnstioflag", ds_init.getColumn(0, "cnstioflag"));
- // 컨설트 관련 추가
- opener.frmf_setParameter("SPMMR03900_mainyn" , "Y");
-
- close();
- }
- }
- }
- }
- /**
- * 선택한 수신의의 휴진 정보 조회
- */
- function fGetSuspendDiagInfo() {
- ds_reqsuspend.clearData();
- ds_reqsuspend.addRow();
-
- ds_reqsuspend.setColumn(0, "orddeptcd", ds_send2.getColumn(0, "cnstdeptcd"));
- ds_reqsuspend.setColumn(0, "orddrid", ds_grd_drschlist.getColumn(ds_grd_drschlist.rowposition, "orddrid"));
-
- var oParam = {};
- oParam.id = "TRMMR04905";
- oParam.service = "medirecapp.ExtnMediRec";
- oParam.method = "reqGetSuspendDiagInfo";
- oParam.inds = "req=ds_reqsuspend";
- oParam.outds = "ds_suspendinfo=suspendinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMMR04905";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRMMR04905") >= 0){
- if (ds_suspendinfo.getColumn(0, "spndyn") == "Y") {
- var sDrNm = ds_grd_drschlist.getColumn(ds_grd_drschlist.rowposition, "orddrnm");
- if (sysf_messageBox("["+sDrNm+"] 선생님의 휴진정보입니다. \n\n"+
- ds_suspendinfo.getColumn(0, "description")+"\n\n의뢰하시겠습니까?", "Q", "") == 7) {
- return;
- }
- }
- }
- return true;
- }
- function cf_TRMMR04905(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- ]]></Script>
- </Form>
- </FDL>
|