123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMND02800" position="absolute 0 0 230 220" titletext="병원달력" onload="SMMND02800_onload">
- <Layouts>
- <Layout>
- <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 0 230 210" style="">
- <Layouts>
- <Layout>
- <Static id="caption1" position="absolute 109 10 129 29" style="font:,,bold;align: middle;" text="년"/>
- <Static id="caption2" position="absolute 167 10 187 29" style="font:,,bold;align: middle;" text="월"/>
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo1" class="combo_default" position="absolute 53 10 108 29" style="" onitemclick="grp_biz_combo1_onitemclick" onitemchanged="grp_biz_combo1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">2000</Col>
- <Col id="datacolumn">2000</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2001</Col>
- <Col id="datacolumn">2001</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2002</Col>
- <Col id="datacolumn">2002</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2003</Col>
- <Col id="datacolumn">2003</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2004</Col>
- <Col id="datacolumn">2004</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2005</Col>
- <Col id="datacolumn">2005</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2006</Col>
- <Col id="datacolumn">2006</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2007</Col>
- <Col id="datacolumn">2007</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2008</Col>
- <Col id="datacolumn">2008</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2009</Col>
- <Col id="datacolumn">2009</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2010</Col>
- <Col id="datacolumn">2010</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2011</Col>
- <Col id="datacolumn">2011</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2012</Col>
- <Col id="datacolumn">2012</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2013</Col>
- <Col id="datacolumn">2013</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2014</Col>
- <Col id="datacolumn">2014</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2015</Col>
- <Col id="datacolumn">2015</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2016</Col>
- <Col id="datacolumn">2016</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2017</Col>
- <Col id="datacolumn">2017</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2018</Col>
- <Col id="datacolumn">2018</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="combo2" class="combo_default" position="absolute 126 10 166 29" style="" onitemclick="grp_biz_combo2_onitemclick" onitemchanged="grp_biz_combo2_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">01</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">02</Col>
- </Row>
- <Row>
- <Col id="codecolumn">03</Col>
- <Col id="datacolumn">03</Col>
- </Row>
- <Row>
- <Col id="codecolumn">04</Col>
- <Col id="datacolumn">04</Col>
- </Row>
- <Row>
- <Col id="codecolumn">05</Col>
- <Col id="datacolumn">05</Col>
- </Row>
- <Row>
- <Col id="codecolumn">06</Col>
- <Col id="datacolumn">06</Col>
- </Row>
- <Row>
- <Col id="codecolumn">07</Col>
- <Col id="datacolumn">07</Col>
- </Row>
- <Row>
- <Col id="codecolumn">08</Col>
- <Col id="datacolumn">08</Col>
- </Row>
- <Row>
- <Col id="codecolumn">09</Col>
- <Col id="datacolumn">09</Col>
- </Row>
- <Row>
- <Col id="codecolumn">10</Col>
- <Col id="datacolumn">10</Col>
- </Row>
- <Row>
- <Col id="codecolumn">11</Col>
- <Col id="datacolumn">11</Col>
- </Row>
- <Row>
- <Col id="codecolumn">12</Col>
- <Col id="datacolumn">12</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Grid id="datagrid1" binddataset="ds_main_cal_weeks" position="absolute 10 39 220 209" style="" oncellclick="grp_biz_datagrid1_oncellclick" oncelldblclick="grp_biz_datagrid1_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="30"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일"/>
- <Cell col="1" text="월"/>
- <Cell col="2" text="화"/>
- <Cell col="3" text="수"/>
- <Cell col="4" text="목"/>
- <Cell col="5" text="금"/>
- <Cell col="6" text="토"/>
- </Band>
- <Band id="body">
- <Cell text="bind:sun"/>
- <Cell col="1" text="bind:mon"/>
- <Cell col="2" text="bind:tue"/>
- <Cell col="3" text="bind:wed"/>
- <Cell col="4" text="bind:thu"/>
- <Cell col="5" text="bind:fri"/>
- <Cell col="6" text="bind:sat"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button55" class="icon_pre_year" position="absolute 15 12 31 28" style="" text="" onclick="grp_biz_button55_onclick"/>
- <Button id="button56" class="icon_next_year" position="absolute 202 12 218 28" style="" text="" onclick="grp_biz_button56_onclick"/>
- <Button id="button57" class="icon_pre_month" position="absolute 34 12 50 28" style="" text="" onclick="grp_biz_button57_onclick"/>
- <Button id="button58" class="icon_next_month" position="absolute 183 12 199 28" style="" text="" onclick="grp_biz_button58_onclick"/>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 10 34 222 37" style="" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_datelist_dateinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="getdate1" type="STRING" size="256"/>
- <Column id="getdate2" type="STRING" size="256"/>
- <Column id="getdate3" type="STRING" size="256"/>
- <Column id="getdate4" type="STRING" size="256"/>
- <Column id="getdate5" type="STRING" size="256"/>
- <Column id="getdate6" type="STRING" size="256"/>
- <Column id="getdate7" type="STRING" size="256"/>
- <Column id="getdate8" type="STRING" size="256"/>
- <Column id="getdate9" type="STRING" size="256"/>
- <Column id="getdate10" type="STRING" size="256"/>
- <Column id="getdate11" type="STRING" size="256"/>
- <Column id="getdate12" type="STRING" size="256"/>
- <Column id="getdate13" type="STRING" size="256"/>
- <Column id="getdate14" type="STRING" size="256"/>
- <Column id="getdate15" type="STRING" size="256"/>
- <Column id="getdate16" type="STRING" size="256"/>
- <Column id="getdate17" type="STRING" size="256"/>
- <Column id="getdate18" type="STRING" size="256"/>
- <Column id="getdate19" type="STRING" size="256"/>
- <Column id="getdate20" type="STRING" size="256"/>
- <Column id="getdate21" type="STRING" size="256"/>
- <Column id="getdate22" type="STRING" size="256"/>
- <Column id="getdate23" type="STRING" size="256"/>
- <Column id="getdate24" type="STRING" size="256"/>
- <Column id="getdate25" type="STRING" size="256"/>
- <Column id="getdate26" type="STRING" size="256"/>
- <Column id="getdate27" type="STRING" size="256"/>
- <Column id="getdate28" type="STRING" size="256"/>
- <Column id="getdate29" type="STRING" size="256"/>
- <Column id="getdate30" type="STRING" size="256"/>
- <Column id="getdate31" type="STRING" size="256"/>
- <Column id="focus1" type="STRING" size="256"/>
- <Column id="focus2" type="STRING" size="256"/>
- <Column id="focus3" type="STRING" size="256"/>
- <Column id="focus4" type="STRING" size="256"/>
- <Column id="focus5" type="STRING" size="256"/>
- <Column id="focus6" type="STRING" size="256"/>
- <Column id="focus7" type="STRING" size="256"/>
- <Column id="focus8" type="STRING" size="256"/>
- <Column id="focus9" type="STRING" size="256"/>
- <Column id="focus10" type="STRING" size="256"/>
- <Column id="focus11" type="STRING" size="256"/>
- <Column id="focus12" type="STRING" size="256"/>
- <Column id="focus13" type="STRING" size="256"/>
- <Column id="focus14" type="STRING" size="256"/>
- <Column id="focus15" type="STRING" size="256"/>
- <Column id="focus16" type="STRING" size="256"/>
- <Column id="focus17" type="STRING" size="256"/>
- <Column id="focus18" type="STRING" size="256"/>
- <Column id="focus19" type="STRING" size="256"/>
- <Column id="focus20" type="STRING" size="256"/>
- <Column id="focus21" type="STRING" size="256"/>
- <Column id="focus22" type="STRING" size="256"/>
- <Column id="focus23" type="STRING" size="256"/>
- <Column id="focus24" type="STRING" size="256"/>
- <Column id="focus25" type="STRING" size="256"/>
- <Column id="focus26" type="STRING" size="256"/>
- <Column id="focus27" type="STRING" size="256"/>
- <Column id="focus28" type="STRING" size="256"/>
- <Column id="focus29" type="STRING" size="256"/>
- <Column id="focus30" type="STRING" size="256"/>
- <Column id="focus31" type="STRING" size="256"/>
- <Column id="startfocus" type="STRING" size="256"/>
- <Column id="endfocus" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="getdate1"/>
- <Col id="getdate2"/>
- <Col id="getdate3"/>
- <Col id="getdate4"/>
- <Col id="getdate5"/>
- <Col id="getdate6"/>
- <Col id="getdate7"/>
- <Col id="getdate8"/>
- <Col id="getdate9"/>
- <Col id="getdate10"/>
- <Col id="getdate11"/>
- <Col id="getdate12"/>
- <Col id="getdate13"/>
- <Col id="getdate14"/>
- <Col id="getdate15"/>
- <Col id="getdate16"/>
- <Col id="getdate17"/>
- <Col id="getdate18"/>
- <Col id="getdate19"/>
- <Col id="getdate20"/>
- <Col id="getdate21"/>
- <Col id="getdate22"/>
- <Col id="getdate23"/>
- <Col id="getdate24"/>
- <Col id="getdate25"/>
- <Col id="getdate26"/>
- <Col id="getdate27"/>
- <Col id="getdate28"/>
- <Col id="getdate29"/>
- <Col id="getdate30"/>
- <Col id="getdate31"/>
- <Col id="focus1"/>
- <Col id="focus2"/>
- <Col id="focus3"/>
- <Col id="focus4"/>
- <Col id="focus5"/>
- <Col id="focus6"/>
- <Col id="focus7"/>
- <Col id="focus8"/>
- <Col id="focus9"/>
- <Col id="focus10"/>
- <Col id="focus11"/>
- <Col id="focus12"/>
- <Col id="focus13"/>
- <Col id="focus14"/>
- <Col id="focus15"/>
- <Col id="focus16"/>
- <Col id="focus17"/>
- <Col id="focus18"/>
- <Col id="focus19"/>
- <Col id="focus20"/>
- <Col id="focus21"/>
- <Col id="focus22"/>
- <Col id="focus23"/>
- <Col id="focus24"/>
- <Col id="focus25"/>
- <Col id="focus26"/>
- <Col id="focus27"/>
- <Col id="focus28"/>
- <Col id="focus29"/>
- <Col id="focus30"/>
- <Col id="focus31"/>
- <Col id="startfocus"/>
- <Col id="endfocus"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cal_weeks" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- <Column id="sun" type="STRING" size="256"/>
- <Column id="mon" type="STRING" size="256"/>
- <Column id="tue" type="STRING" size="256"/>
- <Column id="wed" type="STRING" size="256"/>
- <Column id="thu" type="STRING" size="256"/>
- <Column id="fri" type="STRING" size="256"/>
- <Column id="sat" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sun"/>
- <Col id="mon"/>
- <Col id="tue"/>
- <Col id="wed"/>
- <Col id="thu"/>
- <Col id="fri"/>
- <Col id="sat"/>
- </Row>
- <Row>
- <Col id="sun"/>
- <Col id="mon"/>
- <Col id="tue"/>
- <Col id="wed"/>
- <Col id="thu"/>
- <Col id="fri"/>
- <Col id="sat"/>
- </Row>
- <Row>
- <Col id="sun"/>
- <Col id="mon"/>
- <Col id="tue"/>
- <Col id="wed"/>
- <Col id="thu"/>
- <Col id="fri"/>
- <Col id="sat"/>
- </Row>
- <Row>
- <Col id="sun"/>
- <Col id="mon"/>
- <Col id="tue"/>
- <Col id="wed"/>
- <Col id="thu"/>
- <Col id="fri"/>
- <Col id="sat"/>
- </Row>
- <Row>
- <Col id="sun"/>
- <Col id="mon"/>
- <Col id="tue"/>
- <Col id="wed"/>
- <Col id="thu"/>
- <Col id="fri"/>
- <Col id="sat"/>
- </Row>
- <Row>
- <Col id="sun"/>
- <Col id="mon"/>
- <Col id="tue"/>
- <Col id="wed"/>
- <Col id="thu"/>
- <Col id="fri"/>
- <Col id="sat"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="year" type="STRING" size="256"/>
- <Column id="month" type="STRING" size="256"/>
- <Column id="selecteddd" type="STRING" size="256"/>
- </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_main_datelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_cal" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_result" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="caldata" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="caldata"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.combo1" propid="value" datasetid="ds_main" columnid="year"/>
- <BindItem id="item1" compid="grp_biz.combo2" propid="value" datasetid="ds_main" columnid="month"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- function SMMND02800_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(this.grp_biz.datagrid1);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInitStyle();
- fInitControl();
- fCreateCalendar();
- //fInitCellColor(1,2);
- fSelGetDate();
- //fGetDate('20070402','20070410');
- }
- //전체 달력에서 지정된 기간의 일자의 위치를 검색한다.
- function fGetDate(rsrvdd1,rsrvdd2){
- var dd = ds_send.getColumn(0, "date"); //해당 년,월
- alert(dd);
- var iValuedd, focusdd;
- for(var i=1;i<7;i++){
- for(var j=0;j<7;j++){
- //if(dd != ""){
- if(grp_biz.datagrid1.textmatrix(i,j)<10){
- iValuedd = "0" + grp_biz.datagrid1.textmatrix(i,j); //셀의 일자
- }else{
- iValuedd = grp_biz.datagrid1.textmatrix(i,j);
- }
- focusdd = i +" "+j; alert(dd+iValuedd);
- if((dd+iValuedd) == rsrvdd1){
- dsf_makeValue( ds_main_datelist_dateinfo, "startfocus", "string", focusdd); //예약시작시점의 위치값을 startdate에 넣어줌.
- }
- if((dd+iValuedd) == rsrvdd2){
- dsf_makeValue( ds_main_datelist_dateinfo, "endfocus", "string", focusdd); //예약종료시점의 위치값을 enddate에 넣어줌.
- }
- //}
- }
- }
- }
- //지정된 일자(cell색지정된 일자)를 리턴해준다.
- function fSelGetDate(i,j){
- var d=1; //getdate인덱스
- var dd = ds_send.getColumn(0, "date"); //해당 년,월
- var iValue, focus; //datagrid1의 값
- for(var i=1;i<7;i++){
- for(var j=0;j<7;j++){
- if(grp_biz.datagrid1.cellStyle("background-color", i, j) == "#cc99ff" ){
- if(grp_biz.datagrid1.textmatrix(i,j)<10){
- iValue = "0" + grp_biz.datagrid1.textmatrix(i,j); //색상 지정된 셀의 일자
- }else{
- iValue = grp_biz.datagrid1.textmatrix(i,j);
- }
- focus = i +" "+ j; //색상 지정된 셀의 위치값
- dsf_makeValue( ds_main_datelist_dateinfo, "getdate", "string", +d, dd+iValue); //색상 지정된 셀의 일자를 getdate에 넣어줌.
- dsf_makeValue( ds_main_datelist_dateinfo, "focus", "string", +d, focus); //색상 지정된 셀의 위치값을 focus에 넣어줌.
- d++;
- }
- }
- }
- }
- //지정된 일자에 해당하는 cell에 색상을 표시한다.
- function fInitCellColor(iRow,iCol){
- grp_biz.datagrid1.cellStyle("background-color", iRow, iCol) = "#cc99ff";
- }
- // 화면 open시 화면 스타일 초기화 기능을 수행한다.
- function fInitStyle() {
- //cell style
- // grp_biz.datagrid1.cellStyle("border-bottom-style",1 , 0, 1, 6) = "hidden";
- //grp_biz.datagrid1.cellStyle("background-color",2 , 0, 2, 6) = "#ffffff";
- // grp_biz.datagrid1.cellStyle("border-bottom-style",3 , 0, 3, 6) = "hidden";
- //grp_biz.datagrid1.cellStyle("background-color",4 , 0, 4, 6) = "#ffffff";
- // grp_biz.datagrid1.cellStyle("border-bottom-style",5 , 0, 5, 6) = "hidden";
- //grp_biz.datagrid1.cellStyle("background-color",6 , 0, 6, 6) = "#ffffff";
- // grp_biz.datagrid1.cellStyle("border-bottom-style",7 , 0, 7, 6) = "hidden";
- //grp_biz.datagrid1.cellStyle("background-color",8 , 0, 8, 6) = "#ffffff";
- // grp_biz.datagrid1.cellStyle("border-bottom-style",9 , 0, 9, 6) = "hidden";
- //grp_biz.datagrid1.cellStyle("background-color",10 , 0, 10, 6) = "#ffffff";
- // grp_biz.datagrid1.cellStyle("border-bottom-style",11 , 0, 11, 6) = "hidden";
- //grp_biz.datagrid1.cellStyle("background-color",12 , 0, 12, 6) = "#ffffff";
- //font style
- grp_biz.datagrid1.cellStyle("color",1 , 0, 6, 0) = "#ff0000";
- grp_biz.datagrid1.cellStyle("color",1 , 6, 6, 6) = "#0000ff";
- /*
- grp_biz.datagrid1.cellStyle("font-size",1 , 0, 1, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",3 , 0, 2, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",5 , 0, 3, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",7 , 0, 4, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",9 , 0, 5, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",11 , 0, 6, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",13 , 0, 13, 6) = "12px";
- //grp_biz.datagrid1.cellStyle("font-weight",0 , 0, 12, 6) = "bold";
- //grp_biz.datagrid1.cellStyle("font-family",1 , 0, 12, 6) = "가는각진제목체";
- */
- grp_biz.datagrid1.cellStyle("font-size",1 , 0, 1, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",2 , 0, 2, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",3 , 0, 3, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",4 , 0, 4, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",5 , 0, 5, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",6 , 0, 6, 6) = "12px";
- grp_biz.datagrid1.cellStyle("font-size",7 , 0, 7, 6) = "12px";
- }
- //화면 컨트롤 초기화
- function fInitControl()
- {
- //서버 일자로 처리
- today = new Date();
- var isYear, isMonth, ls_day;
- isYear = (today.getYear()).toString();
- isMonth = (today.getMonth() + 1).toString();
- //1~9월까지 숫자 앞에 0을 붙여준다. ex) 1 -> 01
- if ((isMonth.toString()).length == 1) isMonth = ("0".concat(isMonth.toString()));
- thisMonth = isYear.concat(isMonth);
- if (thisMonth < '200001')
- {
- ds_main.setColumn( 0, "year","2000");
- ds_main.setColumn( 0, "month","01");
- //model.refresh();
- }
- else
- {
- ds_main.setColumn( 0, "year",isYear);
- ds_main.setColumn( 0, "month",isMonth);
- //model.refresh();
- }
- }
- //해당 일자의 병원 일정 정보를 얻어 온다
- function fGetHospitalCalendar()
- {
- //ds_send.setColumn( 0, "mode", "reqGetHospitalCalendar"); //Action Method
- var dd = (ds_main.getColumn(0, "year")).concat(ds_main.getColumn(0, "month"));
- ds_send.setColumn( 0, "date",dd);
- //alert( ds_send.getColumn(0, "date") );
- // if (submit("TRPMB01001") == true) return true;
- var oParam = {};
- oParam.id = "TRPMB01001";
- oParam.service = "pambaseinfomngtapp.OrdSche";
- oParam.method = "reqGetHospitalCalendar";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_=caldata";
- oParam.async = false;
- oParam.callback = "cf_TRPMB01001";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRPMB01001") > -1) return true;
- else return false;
- }
- function cf_TRPMB01001(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //얻어 온 일정을 달력에 실제로 표시해 주는 함수
- function fCreateCalendar()
- {
- //TFclearNodeValue("ds_main_cal");
- //서버로 자료 요청
- if ( fGetHospitalCalendar() != true ){
- alert(" line 222 : 데이터를 가져오지 못했습니다.");
- //에러로 인한 초기화면으로 세팅
- fInitControl();
- //fCreateCalendar();
- return false;
- }else{
- //달력 폰트 색 설정
- grp_biz.datagrid1.cellStyle("color",1 , 0, 12, 6) = "#000000";
- grp_biz.datagrid1.cellStyle("color",1 , 0, 12, 0) = "#ff0000";
- grp_biz.datagrid1.cellStyle("color",1 , 6, 12, 6) = "#0000ff";
- //var cntDate = TFNodeDataCount("ds_main_result");
- var buff;
- var cnt = 1;
- var position = 1;
- //토요일( dutflag = 4 ) 위치를 찾아서 달력을 표시한다.
- while(position < 8){
- buff = ds_main_result_caldata.getColumn(position, "dutflag"));
- if(buff == "4" ) break;
- else position++;
- }
- // 달력에 날짜 쓰기~
- cnt = cnt + position - 7;
- for( var row = 1; row< 7; row = row+1){ //grid title 때문에 +1
- for( var col = 0; col < 7; col++){
- if( cnt > 0 && cnt <= 31){
- if( ds_main_result_caldata.getColumn(cnt, "basedd")) != "" ){
- grp_biz.datagrid1.textmatrix( row, col ) = cnt;
- buff = ds_main_result_caldata.getColumn(cnt, "holiflag"));
- //휴일 빨간색으로 표시
- if( buff == "1") grp_biz.datagrid1.cellStyle("color", row, col, row, col) = "#ff0000";
- //else grp_biz.datagrid1.cellStyle("color", row, col, row + 1, col) = "#000000"
- }else grp_biz.datagrid1.textmatrix( row, col ) = "";
- }else grp_biz.datagrid1.textmatrix( row, col ) = "";
- cnt++;
- }
- }
- //공휴일 이름을 표시한다.
- /* cnt = 1;
- cnt = cnt + position -7;
- for( var row = 2; row< 13; row = row+2){ //grid title 때문에 +1
- for( var col = 0; col < 7; col++){
- if( cnt > 0 && cnt <= 31 ) grp_biz.datagrid1.textmatrix( row, col ) = ds_main_result_caldata.getColumn(cnt, "holinm"));
- else grp_biz.datagrid1.textmatrix( row, col ) = "";
- cnt++;
- }
- }*/
- }
- }
- function grp_biz_combo1_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- //fCreateCalendar();
- }
- function grp_biz_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- fCreateCalendar();
- }
- function grp_biz_combo2_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- //fCreateCalendar();
- }
- function grp_biz_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- fCreateCalendar();
- }
- function grp_biz_datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo) {
- /* var //지정된 일자(cell색지정된 일자)를 리턴해준다.Cells = grp_biz.datagrid1.selectedCells;
- for (var i=0; i<selectedCells.length; i++)
- {
- var cell = grp_biz.datagrid1.selectedCells.item(i);
- if (cell)
- {
- var row = cell.row;
- var col = cell.col;
- check = row%2;
- //alert( "row : " + cell.row + " / col : " + cell.col);
- if( check == 0 ){
- //선택된 필드의 색상을 바꿔준다.
- grp_biz.datagrid1.cellStyle("background-color",1 , 0, 12, 6) = "#ffffff";
- grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
- row = row - 1;
- grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
- //선택된 날짜 정보를 인스턴스값에 넣어준다.
- var days = grp_biz.datagrid1.textmatrix( row, col );
- if( days != "" ){
- if( days.length == 1 ) days = "0" + days;
- var dd = ( (ds_main.getColumn(0, "year")).concat(ds_main.getColumn(0, "month")) ).concat(days);
- ds_main.setColumn( 0, "selecteddd", dd);
- }
- }else{
- //선택된 날짜 정보를 인스턴스값에 넣어준다.
- var days = grp_biz.datagrid1.textmatrix( row, col );
- if( days != "" ){
- if( days.length == 1 ) days = "0" + days;
- var dd = ( (ds_main.getColumn(0, "year")).concat(ds_main.getColumn(0, "month")) ).concat(days);
- ds_main.setColumn( 0, "selecteddd", dd);
- }
- //선택된 필드의 색상을 바꿔준다.
- grp_biz.datagrid1.cellStyle("background-color",1 , 0, 12, 6) = "#ffffff";
- grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
- row = row + 1;
- grp_biz.datagrid1.cellStyle("background-color", row , col) = "#cc99ff";
- }
- //model.refresh();
- }
- }*/
- }
- function grp_biz_datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- var selectedCells = grp_biz.datagrid1.selectedCells;
- for (var i=0; i<selectedCells.length; i++)
- {
- var cell = grp_biz.datagrid1.selectedCells.item(i);
- if (cell)
- {
- var row = cell.row;
- var col = cell.col;
- check = row%2;
- //alert( "row : " + cell.row + " / col : " + cell.col);
- if( check == 0 ){
- //row = row + 1;
- var msg = grp_biz.datagrid1.textmatrix( row, col );
- if( msg == "") alert(" no message");
- else alert(msg);
- }else{
- row = row + 1;
- var msg = grp_biz.datagrid1.textmatrix( row, col );
- if( msg == "") alert(" no message");
- else alert(msg);
- }
- }
- }
- }
- function grp_biz_button55_onclick(obj:Button, e:ClickEventInfo) {
- grp_biz.combo1.select(grp_biz.combo1.focusIndex -1);
- //fCreateCalendar();
- }
- function grp_biz_button56_onclick(obj:Button, e:ClickEventInfo) {
- grp_biz.combo1.select(grp_biz.combo1.focusIndex +1);
- //fCreateCalendar();
- }
- function grp_biz_button57_onclick(obj:Button, e:ClickEventInfo) {
- grp_biz.combo2.select(grp_biz.combo2.focusIndex -1);
- //fCreateCalendar();
- }
- function grp_biz_button58_onclick(obj:Button, e:ClickEventInfo) {
- grp_biz.combo2.select(grp_biz.combo2.focusIndex +1);
- //fCreateCalendar();
- }
- ]]></Script>
- </Form>
- </FDL>
|