123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMABO02000" position="absolute 0 0 1200 789" titletext="타기관채취스케쥴" oninit="SMABO02000_oninit" onload="SMABO02000_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="타기관 채취 스케쥴" class="tit_1" position="absolute 0 0 200 23"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1014 1 1070 21" anchor="top right" onclick="btn_save_onclick"/>
- <Button id="btn_del" taborder="2" text="삭제" class="btn4" position="absolute 1073 1 1129 21" anchor="top right" onclick="btn_del_onclick"/>
- <Button id="button1" taborder="3" text="초기화" class="btn4" position="absolute 1132 1 1200 21" anchor="top right" onclick="button1_onclick"/>
- <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1038 573 1091 592" anchor="right bottom"/>
- <Button id="btn_grddel" taborder="5" text="행삭제" class="btn2" position="absolute 1070 557 1123 576" anchor="right bottom"/>
- <Button id="btn_memosave" taborder="6" text="저장" class="btn5" position="absolute 1126 557 1168 576" anchor="right bottom"/>
- <Static id="caption1" text="월별 스케쥴" class="tit_2" position="absolute 0 64 100 85"/>
- <Shape id="line1" class="line_10" position="absolute 0 81 885 87" anchor="left top right"/>
- <Div id="grp_sea" taborder="7" class="div_SA" position="absolute 0 23 1200 58" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1112 7 1118 29" anchor="top right"/>
- <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 1131 7 1187 29" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Edit id="input21" taborder="8" class="input_default" enable="false" position="absolute 1004 254 1106 275" anchor="right bottom"/>
- <Shape id="line15" class="line_10" position="absolute 890 81 1200 87" anchor="top right"/>
- <Static id="caption4" text="스케쥴 관리" class="tit_2" position="absolute 890 207 990 228" anchor="right bottom"/>
- <Shape id="line2" class="line_10" position="absolute 890 224 1200 230" anchor="right bottom"/>
- <Edit id="input2" taborder="9" class="input_essential" position="absolute 1004 230 1090 251" autoselect="true" anchor="right bottom"/>
- <Button id="button33" taborder="10" class="icon_search" position="absolute 1093 230 1109 246" anchor="right bottom" onclick="button33_onclick"/>
- <Shape id="line4" class="line_2" position="absolute 890 250 1200 256" anchor="right bottom"/>
- <Shape id="line5" class="line_2" position="absolute 890 274 1200 280" anchor="right bottom"/>
- <Shape id="line6" class="line_2" position="absolute 890 322 1200 328" anchor="right bottom"/>
- <TextArea id="textarea1" taborder="11" position="absolute 1004 326 1200 495" autoselect="true" wordwrap="word" anchor="right bottom"/>
- <Div id="grp_calendar" taborder="12" class="div_SA" position="absolute 0 86 885 126" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="button31" taborder="7" class="icon_pre_year" position="absolute 340 12 356 28" onclick="grp_calendar_button31_onclick" anchor="default"/>
- <Button id="button32" taborder="8" class="icon_next_year" position="absolute 515 12 531 28" anchor="default" onclick="grp_calendar_button32_onclick"/>
- <Button id="btn_premonth" taborder="9" class="icon_pre_month" position="absolute 359 12 375 28" anchor="default" onclick="grp_calendar_btn_premonth_onclick"/>
- <Button id="button34" taborder="10" class="icon_next_month" position="absolute 496 12 512 28" anchor="default" onclick="grp_calendar_button34_onclick"/>
- <Edit id="opt_year" taborder="11" readonly="true" class="calendar_output" position="absolute 382 11 420 30" style="border:1 none #3576aeff ;color:black;font:Dotum,9,bold;" anchor="default"/>
- <Edit id="opt_month" taborder="12" readonly="true" class="calendar_output" position="absolute 441 11 471 30" style="border:1 none #3576aeff ;color:black;align:right middle;font:Dotum,9,bold;" anchor="default"/>
- <Static id="caption2" text="년" class="calendar_output" position="absolute 416 11 436 30" style="color:black;font:Dotum,9,bold;" anchor="default"/>
- <Static id="caption3" text="월" class="calendar_output" position="absolute 466 11 486 30" style="color:black;font:Dotum,9,bold;" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Combo id="combo7" taborder="14" innerdataset="@ds_init_cmbinfo_boneassocd_A0164" class="combo_default" position="absolute 1004 278 1200 299" anchor="right bottom" value="null" datacolumn="hsctmdlnm" codecolumn="hsctmdlcd"/>
- <Edit id="input10" taborder="15" class="input_default" enable="false" position="absolute 1173 254 1200 275" anchor="right bottom"/>
- <Combo id="combo10" taborder="16" innerdataset="@ds_init_cmbinfo_sex_P0313" codecolumn="cdid" datacolumn="cdnm" class="combo_default" enable="false" position="absolute 1108 254 1171 275" anchor="right bottom"/>
- <Calendar id="ipt_trnptschedd" taborder="17" class="input_default" position="absolute 1004 302 1200 323" dateformat="yyyy-MM-dd" autoselect="true" anchor="right bottom"/>
- <Shape id="line3" class="line_2" position="absolute 890 298 1200 304" anchor="right bottom"/>
- <Static id="caption13" text="이식예정일" class="cell_1" position="absolute 890 301 1001 324" anchor="right bottom"/>
- <Static id="caption7" text="등록번호" class="cell_1" position="absolute 890 229 1001 252" anchor="right bottom"/>
- <Static id="caption16" text="비고" class="cell_1" position="absolute 890 325 1001 495" anchor="right bottom"/>
- <Static id="caption8" text="협회" class="cell_1" position="absolute 890 277 1001 300" anchor="right bottom"/>
- <Static id="caption18" text="공여자명" class="cell_1" position="absolute 890 253 1001 276" anchor="right bottom"/>
- <Static id="cap_seldate" class="tit_2" position="absolute 890 64 1096 85" mask="yyyy-mm-dd" anchor="top right" text="스케쥴"/>
- <Grid id="grd_patientlist" taborder="18" binddataset="ds_main_patientlist_patientlist" useinputpanel="false" position="absolute 890 86 1200 201" autofittype="col" cellsizingtype="col" anchor="top right bottom" oncellclick="grd_patientlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="120"/>
- <Column size="120"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="등록번호"/>
- <Cell col="2" text="공여자명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="normal" edittype="none" text="bind:pid"/>
- <Cell col="2" displaytype="normal" edittype="none" text="bind:hngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption5" text="memo" class="tit_2" position="absolute 889 501 989 523" anchor="right bottom"/>
- <Shape id="line7" class="line_10" position="absolute 889 518 1200 524" anchor="right bottom"/>
- <Grid id="grd_memo" taborder="19" binddataset="ds_main_trnptdairymemo_trnptdairymemo" useinputpanel="false" position="absolute 889 524 1200 789" autofittype="col" cellsizingtype="col" anchor="right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="80"/>
- <Column size="172"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="등록일자"/>
- <Cell col="2" text="메모"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="date" edittype="none" text="bind:memoiptdt" calendardisplaynulltype="nulltext"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:memocnts"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_calendar" class="gridcalendar" taborder="20" binddataset="ds_hidden_calendar_weeklist_list" useinputpanel="false" selecttype="cell" autofittype="col,allrow" oncellclick="grd_calendar_oncellclick" position="absolute 0 125 885 789" anchor="all" onclick="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="61"/>
- <Column size="61"/>
- <Column size="61"/>
- <Column size="61"/>
- <Column size="61"/>
- <Column size="61"/>
- <Column size="61"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <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 rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
- <Cell style="color:crimson;color2:crimson;font:arial,9,bold;selectcolor:BIND(sun_hui);selectfont:arial,9,bold;" class="color_sun" text="bind:sun" taborder="undefined"/>
- <Cell row="1" style="color:crimson;color2:crimson;" text="bind:sun_memo" wordwrap="word"/>
- </Cell>
- <Cell col="1" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
- <Cell style="color:BIND(mon_hui);color2:BIND(mon_hui);font:arial,9,bold;selectcolor:BIND(mon_hui);selectfont:arial,9,bold;" text="bind:mon" taborder="undefined"/>
- <Cell row="1" text="bind:mon_memo" wordwrap="word"/>
- </Cell>
- <Cell col="2" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
- <Cell style="color:BIND(tue_hui);color2:BIND(tue_hui);font:arial,9,bold;selectcolor:BIND(thu_hui);selectfont:arial,9,bold;" text="bind:tue" taborder="undefined"/>
- <Cell row="1" text="bind:tue_memo" wordwrap="word"/>
- </Cell>
- <Cell col="3" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
- <Cell style="color:BIND(wed_hui);color2:BIND(wed_hui);font:arial,9,bold;selectcolor:BIND(wed_hui);selectfont:arial,9,bold;" text="bind:wed" taborder="undefined"/>
- <Cell row="1" text="bind:wed_memo" wordwrap="word"/>
- </Cell>
- <Cell col="4" rowspan="2" style="background:0;selectbackground:#daa7d9ff;" taborder="undefined">
- <Cell style="background:0;color:BIND(thu_hui);color2:BIND(thu_hui);font:arial,9,bold;selectcolor:BIND(thu_hui);selectfont:arial,9,bold;" text="bind:thu" taborder="undefined"/>
- <Cell row="1" text="bind:thu_memo" wordwrap="word"/>
- </Cell>
- <Cell col="5" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
- <Cell style="color:BIND(fri_hui);color2:BIND(fri_hui);font:arial,9,bold;selectcolor:BIND(fri_hui);selectfont:arial,9,bold;" text="bind:fri" taborder="undefined"/>
- <Cell row="1" text="bind:fri_memo" wordwrap="word"/>
- </Cell>
- <Cell col="6" rowspan="2" style="selectbackground:#daa7d9ff;" taborder="undefined">
- <Cell style="color:dodgerblue;color2:dodgerblue;font:arial,9,bold;selectcolor:BIND(sat_hui);selectfont:arial,9,bold;" class="color_sat" text="bind:sat" taborder="undefined"/>
- <Cell row="1" style="color:dodgerblue;color2:dodgerblue;" text="bind:sat_memo" wordwrap="word"/>
- </Cell>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_momeadd" taborder="21" text="행추가" onclick="btn_momeadd_onclick" class="btn2" position="absolute 1050 497 1103 517" anchor="right bottom"/>
- <Button id="btn_memodelete" taborder="22" text="행삭제" onclick="btn_memodelete_onclick" class="btn2" position="absolute 1104 497 1157 517" anchor="right bottom"/>
- <Button id="btn_memosave00" taborder="23" text="저장" onclick="btn_memosave_onclick" class="btn2" position="absolute 1158 497 1200 517" anchor="right bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="year" type="STRING" size="256"/>
- <Column id="month" type="STRING" size="256"/>
- <Column id="dd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_grdcellcolor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="calrow" type="INT" size="256"/>
- <Column id="calcol" type="INT" size="256"/>
- <Column id="bfcalcol" type="INT" size="256"/>
- <Column id="bfcalrow" type="INT" size="256"/>
- <Column id="color" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_calendar_weeklist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sun" type="STRING"/>
- <Column id="mon" type="STRING"/>
- <Column id="tue" type="STRING"/>
- <Column id="wed" type="STRING"/>
- <Column id="thu" type="STRING"/>
- <Column id="fri" type="STRING"/>
- <Column id="sat" type="STRING"/>
- <Column id="sun_memo" type="STRING"/>
- <Column id="mon_memo" type="STRING"/>
- <Column id="tue_memo" type="STRING"/>
- <Column id="wed_memo" type="STRING"/>
- <Column id="thu_memo" type="STRING"/>
- <Column id="fri_memo" type="STRING"/>
- <Column id="sat_memo" type="STRING"/>
- <Column id="sun_hui" type="STRING" size="256"/>
- <Column id="mon_hui" type="STRING" size="256"/>
- <Column id="tue_hui" type="STRING" size="256"/>
- <Column id="wed_hui" type="STRING" size="256"/>
- <Column id="thu_hui" type="STRING" size="256"/>
- <Column id="fri_hui" type="STRING" size="256"/>
- <Column id="sat_hui" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmbinfo_sex_P0313" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_patientlist_patientlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="boneassocd" type="STRING" size="256"/>
- <Column id="trnptscherem" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="boneassocd"/>
- <Col id="trnptscherem"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patientscheinfo_patientscheinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="sex" type="STRING" size="256"/>
- <Column id="age" type="STRING" size="256"/>
- <Column id="boneassocd" type="STRING" size="256"/>
- <Column id="trnptschedd" type="STRING" size="256"/>
- <Column id="trnptscherem" type="STRING" size="256"/>
- <Column id="updttrnptschedd" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="sex"/>
- <Col id="age"/>
- <Col id="boneassocd"/>
- <Col id="trnptschedd"/>
- <Col id="trnptscherem"/>
- <Col id="updttrnptschedd"/>
- <Col id="flag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="trnptschedd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="trnptschedd"/>
- <Col id="pid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_templist_calendarlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="trnptschedd" type="STRING" size="256" sumtext="이식예정일"/>
- <Column id="boneassocd" type="STRING" size="256" sumtext="협회코드"/>
- <Column id="boneassonm" type="STRING" size="256" sumtext="협회명"/>
- <Column id="trnptscherem" type="STRING" size="256" sumtext="비고"/>
- <Column id="updttrnptschedd" type="STRING" size="256" sumtext="이식예정일"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_trnptdairymemo_trnptdairymemo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="popupendflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_cmbinfo_boneassocd_A0164" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hsctmdlnm" type="STRING" size="256"/>
- <Column id="hsctmdlcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="input2" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="pid"/>
- <BindItem id="item1" compid="input21" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="hngnm"/>
- <BindItem id="item2" compid="combo10" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="sex"/>
- <BindItem id="item3" compid="input10" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="age"/>
- <BindItem id="item4" compid="combo7" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="boneassocd"/>
- <BindItem id="item5" compid="ipt_trnptschedd" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="trnptschedd"/>
- <BindItem id="item6" compid="textarea1" propid="value" datasetid="ds_main_patientscheinfo_patientscheinfo" columnid="trnptscherem"/>
- <BindItem id="item7" compid="grp_calendar.opt_year" propid="value" datasetid="ds_hidden_calendar" columnid="year"/>
- <BindItem id="item8" compid="grp_calendar.opt_month" propid="value" datasetid="ds_hidden_calendar" columnid="month"/>
- </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 "ast_hsctxp::bmtcommon.xjs";
- function SMABO02000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMABO02000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_patientlist);
- grdf_initGrid(grd_memo);
-
- initCalendar();
- setCurrentDate();
-
- var arrParam = [{dsNm: "ds_init_cmbinfo_sex_P0313", cdGrpId: "P0313"}]
- appf_getCodeList(arrParam);
-
- var arrParam2 = [{dsNm: "ds_init_cmbinfo_boneassocd_A0164", cdGrpId: "A0164"}];
- aboGetCodeList(arrParam2);
-
- ds_init_cmbinfo_boneassocd_A0164.insertRow(0);
-
- fGetMonthRecipientList();
-
- btn_save.enable = frmf_checkAuth("X");
- btn_del.enable = frmf_checkAuth("X");
-
- var oParam = {};
- oParam.id = "TRABO02004";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqGetBmtOutDailyMemo";
- oParam.inds = "srchinfo=ds_send_srchinfo";
- oParam.outds = "ds_main_trnptdairymemo_trnptdairymemo=trnptdairymemo";
- oParam.async = false;
- //oParam.callback = "cf_TRABO02004";
- tranf_submit(oParam);
- }
- function initCalendar()
- {
- var curDate = utlf_getCurrentDate().toDate();
-
- ds_hidden_calendar.setColumn(0, "year", curDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", curDate.getDateFormat('MM'));
- ds_hidden_calendar.setColumn(0, "dd", curDate.getDateFormat('DD'));
- setCalendar(curDate);
- }
- function setCurrentDate()
- {
- var curDate = utlf_getCurrentDate().substr(6,2); //오늘날짜
- var curWeek = utlf_getCurrentDate().toDate().getDayOfWeek("E").toLowerCase(); //오늘요일
- if (curDate < 10)
- {
- curDate= curDate.substr(1,1);
- }
- if (curWeek == "sun")
- {
- ds_hidden_grdcellcolor.setColumn(0, "calcol", "0");
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "0");
- }
- else if (curWeek == "mon")
- {
- ds_hidden_grdcellcolor.setColumn(0, "calcol", "1");
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "1");
- }
- else if (curWeek == "tue")
- {
- ds_hidden_grdcellcolor.setColumn(0, "calcol", "2");
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "2");
- }
- else if (curWeek == "wed")
- {
- ds_hidden_grdcellcolor.setColumn(0, "calcol", "3");
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "3");
- }
- else if (curWeek == "thu")
- {
- ds_hidden_grdcellcolor.setColumn(0, "calcol", "4");
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "4");
- }
- else if (curWeek == "fri")
- {
- ds_hidden_grdcellcolor.setColumn(0, "calcol", "5");
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "5");
- }
- else if (curWeek == "sat")
- {
- ds_hidden_grdcellcolor.setColumn(0, "calcol", "6");
- ds_hidden_grdcellcolor.setColumn(0, "bfcalcol", "6");
- }
-
- for (var i = 0 ; i <ds_hidden_calendar_weeklist_list.rowcount; i++ )
- {
- if(ds_hidden_calendar_weeklist_list.getColumn(i, curWeek) == curDate)
- {
- ds_hidden_grdcellcolor.setColumn(0, "calrow", i);
- ds_hidden_grdcellcolor.setColumn(0, "bfcalrow", i);
- }
- }
-
- ds_hidden_grdcellcolor.setColumn(0, "color", "1");
-
- setCellColor(grd_calendar);
- }
- function setCalendar(dateObj)
- {
- ds_hidden_calendar_weeklist_list.clearData();
- dateObj.setDate(1);
-
- var startDay = dateObj.getDay();
- var days = dateObj.getMonthDay();
- var rows = Math.ceil( ( startDay + days ) / 7 );
-
- for ( var i = 0; i < rows; i++ )
- {
- ds_hidden_calendar_weeklist_list.addRow();
-
- }
- var rowIndex = 0;
- var colIndex = startDay;
- var dutflag = "";
-
- for ( var i = 1; i <= days; i++ )
- {
- ds_hidden_calendar_weeklist_list.setColumn(rowIndex, colIndex, i);
-
- colIndex++;
-
- if ( colIndex == 7 )
- {
- colIndex = 0;
- rowIndex++;
- }
- }
- }
- function fGetMonthRecipientList()
- {
- ds_main_patientlist_patientlist.clearData();
- ds_main_patientscheinfo_patientscheinfo.clearData();
- ds_main_patientscheinfo_patientscheinfo.addRow();
-
- var sRsrvMon = ds_hidden_calendar.getColumn(0, "year")+ds_hidden_calendar.getColumn(0, "month")
- ds_send_srchinfo.setColumn(0, "trnptschedd", sRsrvMon+"%");
-
- var oParam = {};
- oParam.id = "TRABO02001";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqGetBmtOutMonthSchedule";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_temp_templist_calendarlist=calendarlist";
- oParam.async = false;
- //oParam.callback = "cf_TRABO02001";
- tranf_submit(oParam);
- sNode = ds_temp_templist_calendarlist.rowcount;
- if(sNode != 0)
- {
- var dd = null ;
- var iCol = null;
- var iRow = null;
- var firstDay = (sRsrvMon+ "01").toDate().getDay();
-
- for( var i = 0 ; i < ds_temp_templist_calendarlist.rowcount; i++)
- {
- dd = ds_temp_templist_calendarlist.getColumn(i, "trnptschedd")
- dd = dd.substr(6,2);
- iCol = ( sRsrvMon + dd).toDate().getDay();
- iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
- ds_hidden_calendar_weeklist_list.setColumn(iRow, iCol + 7, "");
- }
- for(var i = 0; i < ds_temp_templist_calendarlist.rowcount; i++)
- {
- dd = ds_temp_templist_calendarlist.getColumn(i, "trnptschedd");
- dd = dd.substr(6,2);
- iCol = ( sRsrvMon + dd).toDate().getDay();
-
- iRow = Math.ceil( ( firstDay + Number(dd) ) / 7 );
- if(utlf_isNull(ds_hidden_calendar_weeklist_list.getColumn(iRow , iCol+7)))
- {
- ds_hidden_calendar_weeklist_list.setColumn(iRow-1, iCol + 7, ds_temp_templist_calendarlist.getColumn(i, "hngnm")+" "+ ds_temp_templist_calendarlist.getColumn(i, "boneassonm") + " "+ ds_temp_templist_calendarlist.getColumn(i, "trnptscherem"));
- }
- else
- {
- ds_hidden_calendar_weeklist_list.setColumn(iRow-1, iCol + 7, ds_hidden_calendar_weeklist_list.getColumn(iRow, iCol+7)+"\n"+ ds_temp_templist_calendarlist.getColumn(i, "hngnm")+ " "+ds_temp_templist_calendarlist.getColumn(i, "boneassonm")+" " + ds_temp_templist_calendarlist.getColumn(i, "trnptscherem"));
- }
- }
- }
- }
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetMonthRecipientList();
- }
- function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var seldate = fGetCalendarDate(grd_calendar);
- if (seldate.length == 9)
- {
- return
- }
-
- fGetPatientList();
- }
- function setCellColor(gridObj)
- {
- var calRow = 0; //현재선택
- var calCol = 0; //현재선택
- var bfcalRow = 0; //전에 선택
- var bfcalCol = 0; //전에 선택
-
- calRow = Number(ds_hidden_grdcellcolor.getColumn(0, "calrow"));
- calCol = Number(ds_hidden_grdcellcolor.getColumn(0, "calcol"));
-
- bfcalRow = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalrow"));
- bfcalCol = Number(ds_hidden_grdcellcolor.getColumn(0, "bfcalcol"));
-
- ds_hidden_calendar_weeklist_list.clearSelect();
- ds_hidden_calendar_weeklist_list.selectRow(bfcalRow);
- ds_hidden_calendar_weeklist_list.rowposition = bfcalRow;
- this.grd_calendar.setCellPos(bfcalCol);
- }
- function fGetCalendarDate(grdObj)
- {
- var cal_row = grdObj.currentrow;
- var cal_col = grdObj.currentcol;
-
- if( cal_col > 6)
- {
- cal_col -= 7;
- }
- var rsrvdd = "";
-
- if( cal_row >= 0 )
- {
- var dd = ds_hidden_calendar_weeklist_list.getColumn(cal_row, cal_col);
-
- if( dd.length < 2 )
- {
- dd = "0" + dd;
- }
- rsrvdd = ds_hidden_calendar.getColumn(0, "year")+ds_hidden_calendar.getColumn(0, "month")+dd ;
- }
- return rsrvdd;
- }
- function fGetPatientList()
- {
- var seldate = fGetCalendarDate(grd_calendar);
-
- ds_send_srchinfo.setColumn(0, "trnptschedd", seldate);
- ds_send_srchinfo.setColumn(0, "pid", "");
-
- ds_main_patientlist_patientlist.clearData();
- ds_main_patientscheinfo_patientscheinfo.clearData();
- ds_main_patientscheinfo_patientscheinfo.addRow();
-
- var oParam = {};
- oParam.id = "TRABO02002";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqGetBmtOutDailySchedule";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_main_patientlist_patientlist=patientlist";
- oParam.async = false;
- //oParam.callback = "cf_TRABO02002";
- tranf_submit(oParam);
-
- cap_seldate.text = String(seldate).substr(0,4)+"-"+String(seldate).substr(4,2)+"-"+String(seldate).substr(6,2) +" "+"스케쥴";
- }
- function grp_calendar_button31_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'Y');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
-
- setCalendar(isDate);
- }
- function grp_calendar_button32_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'Y');
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
- setCalendar(isDate);
- }
- function grp_calendar_btn_premonth_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-1,'M');
- fGetCalendar(isDate.getDateFormat('MM'));
- }
- function grp_calendar_button34_onclick(obj:Button, e:ClickEventInfo)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(1,'M');
- fGetCalendar(isDate.getDateFormat('MM'));
- }
- function fGetCalendar(arg)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
-
- if(ds_hidden_calendar.getColumn(0, "month") < arg)
- {
- var num = arg- isMonth ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(+num,'M');
- }
-
- if(ds_hidden_calendar.getColumn(0, "month") > arg)
- {
- var num = isMonth - arg ;
- var isDate = (isYear+isMonth+1).toDate().getAddDate(-num,'M');
- }
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
- setCalendar(isDate);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(ds_main_patientscheinfo_patientscheinfo.getColumn(0, "trnptschedd")))
- {
- sysf_messageBox("이식예정일은 반드시 선택해야 합니다", "E999", "");
- return false;
- }
- if (utlf_isNull(ds_main_patientscheinfo_patientscheinfo.getColumn(0, "pid")))
- {
- sysf_messageBox("등록번호는 반드시 선택해야 합니다. ", "E999", "");
- return false;
- }
-
- var oParam = {};
- oParam.id = "TXABO02001";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqExeBmtOutSchedule";
- oParam.inds = "patientscheinfo=ds_main_patientscheinfo_patientscheinfo";
- oParam.outds = "ds_=item";
- oParam.async = false;
- //oParam.callback = "cf_TXABO02001";
- tranf_submit(oParam);
-
- fGetMonthRecipientList();
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "flag", "D");
-
- if(!utlf_isNull(ds_main_patientscheinfo_patientscheinfo.getColumn(0, "pid")))
- {
- var oParam = {};
- oParam.id = "TXABO02001";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqExeBmtOutSchedule";
- oParam.inds = "patientscheinfo=ds_main_patientscheinfo_patientscheinfo";
- oParam.outds = "ds_=item";
- oParam.async = false;
- //oParam.callback = "cf_TXABO02001";
- tranf_submit(oParam);
- ds_main_patientscheinfo_patientscheinfo.clearData();
- ds_main_patientscheinfo_patientscheinfo.addRow();
- }
- setCalendarDate(0, 'M');
- }
- function setCalendarDate(flagValue, flagMonthYear)
- {
- var isMonth = ds_hidden_calendar.getColumn(0, "month");
- var isYear = ds_hidden_calendar.getColumn(0, "year");
- var isDate = (isYear+isMonth+1).toDate().getAddDate(flagValue, flagMonthYear);
- ds_hidden_calendar.setColumn(0, "year", isDate.getDateFormat('YYYY'));
- ds_hidden_calendar.setColumn(0, "month", isDate.getDateFormat('MM'));
- setCalendar(isDate);
- fGetMonthRecipientList();
- }
- function fGetSelectPatientInfo()
- {
- var idx = ds_main_patientlist_patientlist.rowposition;
-
- if(idx < 0)
- {
- sysf_messageBox("환자를 선택하세요","E999");
- return;
- }
-
- var vPid = ds_main_patientlist_patientlist.getColumn(idx, "pid");
-
- if(utlf_isNull(vPid))
- {
- sysf_messageBox("환자를 선택하세요","E999");
- return ;
- }
- ds_send_srchinfo.setColumn(0, "pid", vPid);
- ds_send_srchinfo.setColumn(0, "trnptschedd", ds_main_patientlist_patientlist.getColumn(idx, "trnptschedd"));
- var oParam = {};
- oParam.id = "TRABO02003";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqGetBmtOutMngtSchedule";
- oParam.inds = "req=ds_send_srchinfo";
- oParam.outds = "ds_main_patientscheinfo_patientscheinfo=patientscheinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRABO02003";
- tranf_submit(oParam);
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "flag", "U");
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "updttrnptschedd", ds_main_patientscheinfo_patientscheinfo.getColumn(0, "trnptschedd"));
- }
- function grd_patientlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetSelectPatientInfo();
- }
- function button33_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "flag", "I");
-
- frmf_modal("SPPMC02500", "SPPMC02500", "", "", "", "", "", "", "", "", "", "", "M");
-
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "sex", ds_patinfolist.getColumn(0, "sex"));
- ds_main_patientscheinfo_patientscheinfo.setColumn(0, "age", ds_patinfolist.getColumn(0, "age"));
- }
- function btn_momeadd_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_trnptdairymemo_trnptdairymemo.getColumn(ds_main_trnptdairymemo_trnptdairymemo.rowcount-1, "memoiptdt") != (utlf_getCurrentDate()+utlf_getCurrentTime()))
- {
- var row = ds_main_trnptdairymemo_trnptdairymemo.addRow();
- ds_main_trnptdairymemo_trnptdairymemo.setColumn(row, "memoiptdt", (utlf_getCurrentDate()+utlf_getCurrentTime()));
- }
- else
- {
- }
- }
- function btn_memodelete_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_trnptdairymemo_trnptdairymemo.deleteRow(ds_main_trnptdairymemo_trnptdairymemo.rowposition);
- }
- function btn_memosave_onclick(obj:Button, e:ClickEventInfo)
- {
- var oParam = {};
- oParam.id = "TRABO02002";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqExeBmtOutDailyMemo";
- oParam.inds = "req=ds_main_trnptdairymemo_trnptdairymemo:U";
- oParam.outds = "ds_=item";
- oParam.typeStr = "m";
- oParam.async = false;
- //oParam.callback = "cf_TRABO02002";
- tranf_submit(oParam);
- var oParam = {};
- oParam.id = "TRABO02004";
- oParam.service = "hsctcoordinatorapp.HsctSchedule";
- oParam.method = "reqGetBmtOutDailyMemo";
- oParam.inds = "srchinfo=ds_send_srchinfo";
- oParam.outds = "ds_main_trnptdairymemo_trnptdairymemo=trnptdairymemo";
- oParam.async = false;
- //oParam.callback = "cf_TRABO02004";
- tranf_submit(oParam);
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- initCalendar();
- }
- ]]></Script>
- </Form>
- </FDL>
|