123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNE05900" position="absolute 0 0 1100 890" titletext="스케줄 관리 (응급실 당직 전문의)" onload="SMMNE05900_onload">
- <Layouts>
- <Layout>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 72 1080 862" style="align:center ;">
- <Layouts>
- <Layout>
- <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 0 0 1080 3" style="" anchor="default"/>
- <Grid id="grd_workerlist" binddataset="ds_main_workerinfo" position="absolute 0 5 1080 790" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="90"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="23"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" text="일자" taborder="undefined"/>
- <Cell col="1" text="진료과1" taborder="undefined"/>
- <Cell col="2" text="진료과1" taborder="undefined"/>
- <Cell col="3" text="진료과2" taborder="undefined"/>
- <Cell col="4" text="진료과2" taborder="undefined"/>
- <Cell col="5" text="진료과3" taborder="undefined"/>
- <Cell col="6" text="진료과3" taborder="undefined"/>
- <Cell col="7" text="진료과4" taborder="undefined"/>
- <Cell col="8" text="진료과4" taborder="undefined"/>
- <Cell col="9" text="진료과5" taborder="undefined"/>
- <Cell col="10" text="진료과5" taborder="undefined"/>
- <Cell col="11" text="진료과6" taborder="undefined"/>
- <Cell col="12" text="진료과6" taborder="undefined"/>
- <Cell col="13" text="진료과7" taborder="undefined"/>
- <Cell col="14" text="진료과7" taborder="undefined"/>
- <Cell col="15" text="진료과8" taborder="undefined"/>
- <Cell col="16" text="진료과8" taborder="undefined"/>
- <Cell col="17" text="진료과9" taborder="undefined"/>
- <Cell col="18" text="진료과9" taborder="undefined"/>
- <Cell col="19" text="진료과10" taborder="undefined"/>
- <Cell col="20" text="진료과10" taborder="undefined"/>
- <Cell col="21" text="진료과11" taborder="undefined"/>
- <Cell col="22" text="진료과11" taborder="undefined"/>
- <Cell col="23" text="진료과12" taborder="undefined"/>
- <Cell col="24" text="진료과12" taborder="undefined"/>
- <Cell col="25" text="진료과13" taborder="undefined"/>
- <Cell col="26" text="진료과13" taborder="undefined"/>
- <Cell col="27" text="진료과14" taborder="undefined"/>
- <Cell col="28" text="진료과14" taborder="undefined"/>
- <Cell col="29" text="진료과15" taborder="undefined"/>
- <Cell col="30" text="진료과15" taborder="undefined"/>
- <Cell col="31" text="진료과16" taborder="undefined"/>
- <Cell col="32" text="진료과16" taborder="undefined"/>
- <Cell col="33" text="진료과17" taborder="undefined"/>
- <Cell col="34" text="진료과17" taborder="undefined"/>
- <Cell col="35" text="진료과18" taborder="undefined"/>
- <Cell col="36" text="진료과18" taborder="undefined"/>
- <Cell col="37" text="진료과19" taborder="undefined"/>
- <Cell col="38" text="진료과19" taborder="undefined"/>
- <Cell col="39" text="진료과20" taborder="undefined"/>
- <Cell col="40" text="진료과20" taborder="undefined"/>
- <Cell col="41" text="진료과21" taborder="undefined"/>
- <Cell col="42" text="진료과21" taborder="undefined"/>
- <Cell col="43" text="진료과22" taborder="undefined"/>
- <Cell col="44" text="진료과22" taborder="undefined"/>
- <Cell col="45" text="진료과23" taborder="undefined"/>
- <Cell col="46" text="진료과23" taborder="undefined"/>
- <Cell col="47" text="일자"/>
- <Cell col="48" text="의사"/>
- <Cell col="49" text="연락처"/>
- <Cell col="50" text="의사"/>
- <Cell col="51" text="연락처"/>
- <Cell col="52" text="의사"/>
- <Cell col="53" text="연락처"/>
- <Cell col="54" text="의사"/>
- <Cell col="55" text="연락처"/>
- <Cell col="56" text="의사"/>
- <Cell col="57" text="연락처"/>
- <Cell col="58" text="의사"/>
- <Cell col="59" text="연락처"/>
- <Cell col="60" text="의사"/>
- <Cell col="61" text="연락처"/>
- <Cell col="62" text="의사"/>
- <Cell col="63" text="연락처"/>
- <Cell col="64" text="의사"/>
- <Cell col="65" text="연락처"/>
- <Cell col="66" text="의사"/>
- <Cell col="67" text="연락처"/>
- <Cell col="68" text="의사"/>
- <Cell col="69" text="연락처"/>
- <Cell col="70" text="의사"/>
- <Cell col="71" text="연락처"/>
- <Cell col="72" text="의사"/>
- <Cell col="73" text="연락처"/>
- <Cell col="74" text="의사"/>
- <Cell col="75" text="연락처"/>
- <Cell col="76" text="의사"/>
- <Cell col="77" text="연락처"/>
- <Cell col="78" text="의사"/>
- <Cell col="79" text="연락처"/>
- <Cell col="80" text="의사"/>
- <Cell col="81" text="연락처"/>
- <Cell col="82" text="의사"/>
- <Cell col="83" text="연락처"/>
- <Cell col="84" text="의사"/>
- <Cell col="85" text="연락처"/>
- <Cell col="86" text="의사"/>
- <Cell col="87" text="연락처"/>
- <Cell col="88" text="의사"/>
- <Cell col="89" text="연락처"/>
- <Cell col="90" text="의사"/>
- <Cell col="91" text="연락처"/>
- <Cell col="92" text="의사"/>
- <Cell col="93" text="연락처"/>
- <Cell row="1" col="1" text="의사"/>
- <Cell row="1" col="2" text="연락처"/>
- <Cell row="1" col="3" text="의사"/>
- <Cell row="1" col="4" text="연락처"/>
- <Cell row="1" col="5" text="의사"/>
- <Cell row="1" col="6" text="연락처"/>
- <Cell row="1" col="7" text="의사"/>
- <Cell row="1" col="8" text="연락처"/>
- <Cell row="1" col="9" text="의사"/>
- <Cell row="1" col="10" text="연락처"/>
- <Cell row="1" col="11" text="의사"/>
- <Cell row="1" col="12" text="연락처"/>
- <Cell row="1" col="13" text="의사"/>
- <Cell row="1" col="14" text="연락처"/>
- <Cell row="1" col="15" text="의사"/>
- <Cell row="1" col="16" text="연락처"/>
- <Cell row="1" col="17" text="의사"/>
- <Cell row="1" col="18" text="연락처"/>
- <Cell row="1" col="19" text="의사"/>
- <Cell row="1" col="20" text="연락처"/>
- <Cell row="1" col="21" text="의사"/>
- <Cell row="1" col="22" text="연락처"/>
- <Cell row="1" col="23" text="의사"/>
- <Cell row="1" col="24" text="연락처"/>
- <Cell row="1" col="25" text="의사"/>
- <Cell row="1" col="26" text="연락처"/>
- <Cell row="1" col="27" text="의사"/>
- <Cell row="1" col="28" text="연락처"/>
- <Cell row="1" col="29" text="의사"/>
- <Cell row="1" col="30" text="연락처"/>
- <Cell row="1" col="31" text="의사"/>
- <Cell row="1" col="32" text="연락처"/>
- <Cell row="1" col="33" text="의사"/>
- <Cell row="1" col="34" text="연락처"/>
- <Cell row="1" col="35" text="의사"/>
- <Cell row="1" col="36" text="연락처"/>
- <Cell row="1" col="37" text="의사"/>
- <Cell row="1" col="38" text="연락처"/>
- <Cell row="1" col="39" text="의사"/>
- <Cell row="1" col="40" text="연락처"/>
- <Cell row="1" col="41" text="의사"/>
- <Cell row="1" col="42" text="연락처"/>
- <Cell row="1" col="43" text="의사"/>
- <Cell row="1" col="44" text="연락처"/>
- <Cell row="1" col="45" text="의사"/>
- <Cell row="1" col="46" text="연락처"/>
- </Band>
- <Band id="body">
- <Cell text="bind:workdd"/>
- <Cell col="1" text="bind:dr1"/>
- <Cell col="2" text="bind:no1"/>
- <Cell col="3" text="bind:dr2"/>
- <Cell col="4" text="bind:no2"/>
- <Cell col="5" text="bind:dr3"/>
- <Cell col="6" text="bind:no3"/>
- <Cell col="7" text="bind:dr4"/>
- <Cell col="8" text="bind:no4"/>
- <Cell col="9" text="bind:dr5"/>
- <Cell col="10" text="bind:no5"/>
- <Cell col="11" text="bind:dr6"/>
- <Cell col="12" text="bind:no6"/>
- <Cell col="13" text="bind:dr7"/>
- <Cell col="14" text="bind:no7"/>
- <Cell col="15" text="bind:dr8"/>
- <Cell col="16" text="bind:no8"/>
- <Cell col="17" text="bind:dr9"/>
- <Cell col="18" text="bind:no9"/>
- <Cell col="19" text="bind:dr10"/>
- <Cell col="20" text="bind:no10"/>
- <Cell col="21" text="bind:dr11"/>
- <Cell col="22" text="bind:no11"/>
- <Cell col="23" text="bind:dr12"/>
- <Cell col="24" text="bind:no12"/>
- <Cell col="25" text="bind:dr13"/>
- <Cell col="26" text="bind:no13"/>
- <Cell col="27" text="bind:dr14"/>
- <Cell col="28" text="bind:no14"/>
- <Cell col="29" text="bind:dr15"/>
- <Cell col="30" text="bind:no15"/>
- <Cell col="31" text="bind:dr16"/>
- <Cell col="32" text="bind:no16"/>
- <Cell col="33" text="bind:dr17"/>
- <Cell col="34" text="bind:no17"/>
- <Cell col="35" text="bind:dr18"/>
- <Cell col="36" text="bind:no18"/>
- <Cell col="37" text="bind:dr19"/>
- <Cell col="38" text="bind:no19"/>
- <Cell col="39" text="bind:dr20"/>
- <Cell col="40" text="bind:no20"/>
- <Cell col="41" text="bind:dr21"/>
- <Cell col="42" text="bind:no21"/>
- <Cell col="43" text="bind:dr22"/>
- <Cell col="44" text="bind:no22"/>
- <Cell col="45" text="bind:dr23"/>
- <Cell col="46" text="bind:no23"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" class="tit_1" position="absolute 0 0 224 21" style="" text="기간별 응급실 당직 전문의 조회"/>
- <Div id="group4" position="absolute 1 20 1081 70" style="align: top;" onkillfocus="group4_onkillfocus">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 3 1080 47" style=""/>
- <Button id="btn_search" class="btn1" taborder="3" position="absolute 935 15 991 37" style="" text="조회" onclick="group4_btn_search_onclick"/>
- <Shape id="line1" linetype="vertical" position="absolute 923 9 926 38" style="border:1 solid #ffe4bb #ffe4bb;" anchor="default"/>
- <Button id="button3" class="btn7" taborder="3" position="absolute 995 15 1063 37" style="" text="EXCEL" onclick="group4_button3_onclick"/>
- <Button id="btn_bfyear" class="icon_pre_year" position="absolute 90 17 106 33" style="" text="" onclick="group4_btn_bfyear_onclick"/>
- <Button id="btn_bfmonth" class="icon_pre_month" position="absolute 108 17 124 33" style="" text="" onclick="group4_btn_bfmonth_onclick"/>
- <Button id="btn_afmonth" class="icon_next_month" position="absolute 217 17 233 33" style="" text="" onclick="group4_btn_afmonth_onclick"/>
- <Button id="btn_afyear" class="icon_next_year" position="absolute 235 17 251 33" style="" text="" onclick="group4_btn_afyear_onclick"/>
- <Static id="caption4" class="search_name" position="absolute 5 14 80 31" style="" text="당직년월 :" onclick="group4_caption4_onclick"/>
- <Calendar id="ipt_srchym" taborder="4" autoselect="true" dateformat="yyyy-MM" position="absolute 129 15 212 35" style="align:center middle;" value="null" editformat="yyyy-MM"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sdate" type="STRING" size="256"/>
- <Column id="edate" type="STRING" size="256"/>
- <Column id="gbn" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="srchym" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sdate"/>
- <Col id="edate"/>
- <Col id="gbn">E</Col>
- <Col id="drid"/>
- <Col id="srchym"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="send" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_workerinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="workerinfolist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="workerinfolist"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="send" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item10" compid="group4.ipt_srchym" propid="value" datasetid="ds_cond" columnid="srchym"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_carecomxp::CareCom.xjs";
- function SMMNE05900_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInit();
- }
- function fInit() {
- var curym = utlf_getCurrentDate().substring(0, 6);
- dsf_makeValue( ds_cond, "srchym", "string", curym);
- }
- function fGetDrList() {
- var srchym = ds_cond.getColumn(0, "srchym");
- var sSdate = srchym.substring(0, 6) + "01";
- var sEdate = utlf_getLastDate(sSdate);
- //var sEdate = srchym + getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6));
- ds_cond.setColumn( 0, "sdate", sSdate);
- ds_cond.setColumn( 0, "edate", sEdate);
- var sGbn = ds_cond.getColumn(0, "gbn");
-
- //trace("sSdate:"+sSdate+"/"+sEdate);
- ds_send_info.clearData();
- dsf_makeValue( ds_send_info, "sdate", "string", sSdate);
- dsf_makeValue( ds_send_info, "edate", "string", sEdate);
- dsf_makeValue( ds_send_info, "gbn", "string", sGbn);
- //submit("TRMNE05901");
-
- var oParam = {};
- oParam.id = "TRMNE05901";
- oParam.service = "ercareapp.ERPatMngt";
- oParam.method = "reqGetErDrlistForDate";
- oParam.inds = "req=ds_send_info";
- oParam.outds = "ds_main_workerinfo=workerinfolist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNE05901";
- tranf_submit(oParam);
- // function cf_TRMNE05901(sSvcId, nErrorCode, sErrorMsg) {
- // if(nErrorCode < 0) return;
- // }
- var j = 1;
- var col = "dept";
- for (var i = 1; i <= 23; i++) {
- col = "dept" + String(i);
- var sTitle = ds_main_workerinfo.getColumn(0, col);
- group3.grd_workerlist.setCellProperty("Head", j, "text", sTitle);
- j = j + 2;
- }
- }
- /**
- * _desc : 이전 년버튼 클릭시 - 전년도+월로 세팅
- * _
- * _param :
- * _return :
- * _author : dhkim 20090610
- * _---------------------------------------------------
- */
- function fClkBfYear(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
- yyear--;
- srchym = yyear + mmont;
- ds_cond.setColumn( 0, "srchym", srchym);
- //model.refresh();
- }
- /**
- * _desc : 다음 년버튼 클릭시 - 다음년도+월로 세팅
- * _
- * _param :
- * _return :
- * _author : dhkim 20090610
- * _---------------------------------------------------
- */
- function fClkAfYear(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
- yyear++;
- srchym = yyear + mmont;
- ds_cond.setColumn( 0, "srchym", srchym);
- //model.refresh();
- }
- /**
- * _desc : 이전 달버튼 클릭시 - 년도+전월 세팅
- * _
- * _param :
- * _return :
- * _author : dhkim 20090610
- * _---------------------------------------------------
- */
- function fClkBfMonth(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
- mmont = mmont.toDate('MM').getAddDate(-1, "M").getDateFormat('MM');
- if(mmont == '12'){
- yyear--;
- }
- srchym = yyear + mmont;
- ds_cond.setColumn( 0, "srchym", srchym);
- //model.refresh();
- }
- /**
- * _desc : 다음 달버튼 클릭시 - 년도+다음월 세팅
- * _
- * _param :
- * _return :
- * _author : dhkim 20090610
- * _---------------------------------------------------
- */
- function fClkAfMonth(srchym){
- var yyear = srchym.substring(0, 4);
- var mmont = srchym.substring(4, 6);
- mmont = mmont.toDate('MM').getAddDate(+1, "M").getDateFormat('MM');
- if(mmont == '01'){
- yyear++;
- }
- srchym = yyear + mmont;
- ds_cond.setColumn( 0, "srchym", srchym);
- //model.refresh();
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetDrList();
- }
- function group4_onkillfocus(obj:Div, e:KillFocusEventInfo) {
- fInit();
- }
- function group4_button3_onclick(obj:Button, e:ClickEventInfo) {
-
- grdf_exportExcel(group3.grd_workerlist, "기간별응급당직전문의","Sheet1", true, "" , 'user' , false);
-
- }
- function group4_btn_bfyear_onclick(obj:Button, e:ClickEventInfo) {
- fClkBfYear(ds_cond.getColumn(0, "srchym"));
- }
- function group4_btn_bfmonth_onclick(obj:Button, e:ClickEventInfo) {
- fClkBfMonth(ds_cond.getColumn(0, "srchym"));
- }
- function group4_btn_afmonth_onclick(obj:Button, e:ClickEventInfo) {
- fClkAfMonth(ds_cond.getColumn(0, "srchym"));
- }
- function group4_btn_afyear_onclick(obj:Button, e:ClickEventInfo) {
- fClkAfYear(ds_cond.getColumn(0, "srchym"));
- }
- ]]></Script>
- </Form>
- </FDL>
|