123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB00500" position="absolute 0 0 1256 805" titletext="부서별 메모관리" onload="SMAEB00500_onload" onclose="SMAEB00500_onclose">
- <Layouts>
- <Layout>
- <Static id="caption6" text="부서별 메모관리" class="tit_1" position="absolute 0 0 196 25" positiontype="position"/>
- <Edit id="input1" taborder="7" class="input_search" visible="false" position="absolute 811 74 911 94" imemode="hangul" positiontype="position"/>
- <Static id="caption3" text="메모" class="tit_2" position="absolute 571 77 653 97" positiontype="position"/>
- <Static id="caption2" text="일별 현황" class="tit_2" position="absolute 0 77 82 97" positiontype="position"/>
- <TextArea id="tar_memo" taborder="15" position="absolute 572 97 1256 400" anchor="left top right" imemode="hangul" positiontype="position" maxlength="900" lengthunit="utf8" wordwrap="word"/>
- <Grid id="grd_deptmemolist" taborder="16" useinputpanel="false" position="absolute 0 427 1256 782" anchor="all" autofittype="col" binddataset="ds_grid_deptmemo" positiontype="position" ondbclick="grd_deptmemolist_ondbclick" oncellclick="grd_deptmemolist_oncellclick" oncelldblclick="grd_deptmemolist_oncelldblclick" autosizingtype="row" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="120"/>
- <Column size="1041"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="일자"/>
- <Cell col="1" text="메모기록일시"/>
- <Cell col="2" text="내용"/>
- </Band>
- <Band id="body">
- <Cell style="align:center middle;" text="bind:memodt" mask="####-##-##" autosizerow="limitmin"/>
- <Cell col="1" style="align:center middle;" text="bind:lastupdtdt" autosizerow="limitmin"/>
- <Cell col="2" displaytype="text" edittype="none" text="bind:memorem" autosizerow="limitmin"/>
- <Cell col="3"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption22" text="메모내역" class="tit_2" position="absolute 0 407 84 427" positiontype="position"/>
- <Static id="caption1" text="* 메모 저장시 꼭 달력에서 일자선택후 메모입력하고 저장버튼 누르십시오!" position="absolute 728 785 1147 805" anchor="right bottom" positiontype="position"/>
- <Button id="btn_save" taborder="17" text="저장" class="btn4" position="absolute 1200 785 1256 805" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="23" applystyletype="apply" style="align:center top;transformation:0,0 ;" scrollbars="none" class="div_SA" position="absolute 0 26 1256 68" type="roundrectangle" positiontype="position">
- <Layouts>
- <Layout width="1256" height="42">
- <Combo id="cmb_excuroom" taborder="154" class="combo_default" position="absolute 626 11 751 31" anchor="default" innerdataset="@ds_init_initexecroom" codecolumn="basecd" datacolumn="basecdflagdesc" onitemchanged="grp_sea_cmb_excuroom_onitemchanged" positiontype="position"/>
- <Static id="caption12" text="검사/치료실" class="search_name" position="absolute 526 10 626 30" anchor="default" positiontype="position"/>
- <Combo id="cmb_deptcd" taborder="155" position="absolute 384 10 502 30" anchor="default" enable="false" innerdataset="@ds_init_suppdept" codecolumn="suppdeptcd" datacolumn="depthngnm" positiontype="position"/>
- <Static id="caption10" text="지원부서" class="search_name" position="absolute 310 11 384 31" anchor="default" positiontype="position"/>
- <Calendar id="ipt_date2" taborder="156" class="input_search" position="absolute 186 10 286 30" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" autoselect="true"/>
- <Calendar id="ipt_date1" taborder="157" class="input_search" position="absolute 66 10 166 30" anchor="default" positiontype="position" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Static id="caption02" text="~" position="absolute 170 11 186 31" style="align:center middle;" anchor="default"/>
- <Static id="caption4" text="일자" class="search_name" position="absolute 8 11 56 31" anchor="default" positiontype="position"/>
- <Button id="btn_sea" taborder="158" text="조회" class="btn1" position="absolute 1189 10 1245 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_execl" taborder="48" text="엑셀" position="absolute 1204 74 1256 94" anchor="top right" class="btn7" positiontype="position" onclick="btn_execl_onclick"/>
- <Div id="CalDiv" taborder="49" position="absolute 0 97 562 400">
- <Layouts>
- <Layout>
- <Grid id="grd_calendar" class="gridcalendar" taborder="16" binddataset="ds_grid_grd_calendar" useinputpanel="false" selecttype="cell" autofittype="col" oncellclick="grd_calendar_oncellclick" position="absolute 0 45 562 303" onclick="grd_calendar_onclick" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="23"/>
- <Row size="23"/>
- </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">
- <Cell style="color:crimson;color2:crimson;" class="color_sun" text="bind:sun"/>
- <Cell row="1" text="bind:sun_memo"/>
- </Cell>
- <Cell col="1" rowspan="2">
- <Cell style="background: ;" text="bind:mon"/>
- <Cell row="1" style="background: ;" text="bind:mon_memo"/>
- </Cell>
- <Cell col="2" rowspan="2">
- <Cell style="color:EXPR(tue_holi==1?'crimson':'black');color2:EXPR(tue_holi==1?'crimson':'black');" text="bind:tue"/>
- <Cell row="1" text="bind:tue_memo"/>
- </Cell>
- <Cell col="3" rowspan="2" style="background2: ;">
- <Cell style="color:EXPR(wed_holi==1?'crimson':'black');color2:EXPR(wed_holi==1?'crimson':'black');" text="bind:wed"/>
- <Cell row="1" text="bind:wed_memo"/>
- </Cell>
- <Cell col="4" rowspan="2" style="background2: ;">
- <Cell style="color:EXPR(thu_holi==1?'crimson':'black');color2:EXPR(thu_holi==1?'crimson':'black');" text="bind:thu"/>
- <Cell row="1" text="bind:thu_memo"/>
- </Cell>
- <Cell col="5" rowspan="2">
- <Cell style="color:EXPR(fri_holi==1?'crimson':'black');color2:EXPR(fri_holi==1?'crimson':'black');" text="bind:fri"/>
- <Cell row="1" text="bind:fri_memo"/>
- </Cell>
- <Cell col="6" rowspan="2">
- <Cell style="color:EXPR(sat_holi==1?'crimson':'blue');color2:EXPR(sat_holi==1?'crimson':'blue');" class="color_sat" text="bind:sat"/>
- <Cell row="1" text="bind:sat_memo"/>
- </Cell>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_calendar" taborder="17" class="div_SA" position="absolute 0 1 562 43" anchor="default"/>
- <Button id="btn_nextyear" taborder="18" onclick="clickCalButton" onlbuttonup="btn_nextyear_onlbuttonup" class="icon_next_year" position="absolute 352 12 368 32" anchor="default"/>
- <Button id="btn_nextmonth" taborder="19" onclick="clickCalButton" onlbuttonup="btn_nextmonth_onlbuttonup" class="icon_next_month" position="absolute 334 12 350 32" anchor="default"/>
- <Static id="caption18" text="월" class="calendar_output" position="absolute 315 12 335 32" anchor="default" style="color:black;"/>
- <Edit id="opt_month" taborder="20" readonly="true" class="calendar_output" position="absolute 282 12 312 32" anchor="default"/>
- <Static id="caption15" text="년" class="calendar_output" position="absolute 263 12 283 32" anchor="default" style="color:black;"/>
- <Edit id="opt_year" taborder="21" readonly="true" class="calendar_output" position="absolute 226 12 260 32" anchor="default"/>
- <Button id="btn_premonth" taborder="22" onclick="clickCalButton" onlbuttonup="btn_premonth_onlbuttonup" class="icon_pre_month" position="absolute 202 12 218 32" anchor="default"/>
- <Button id="btn_preyear" taborder="23" onclick="clickCalButton" class="icon_pre_year" position="absolute 184 12 200 32" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_deptmemo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="memodt" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- <Column id="memorem" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cond_reqparam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="rbasecdflag" type="STRING" size="256"/>
- <Column id="ebasecdflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="initflag" type="STRING" size="256"/>
- <Column id="alladdyn" type="STRING" size="256"/>
- <Column id="grupcdid" type="STRING" size="256"/>
- <Column id="screenflag" type="STRING" size="256"/>
- <Column id="baseinfoflag" type="STRING" size="256"/>
- <Column id="screen" type="STRING" size="256"/>
- <Column id="memodt1" type="STRING" size="256"/>
- <Column id="memodt2" type="STRING" size="256"/>
- <Column id="memorem" type="STRING" size="256"/>
- <Column id="excuroomcd" type="STRING" size="256"/>
- <Column id="svflag" type="STRING" size="256"/>
- <Column id="grddatadt1" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="searchDate" type="STRING" size="256"/>
- <Column id="searchmm" type="STRING" size="256"/>
- <Column id="memodt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basesuppdeptcd"/>
- <Col id="rbasecdflag"/>
- <Col id="ebasecdflag"/>
- <Col id="instcd"/>
- <Col id="initflag"/>
- <Col id="alladdyn"/>
- <Col id="grupcdid"/>
- <Col id="screenflag"/>
- <Col id="baseinfoflag"/>
- <Col id="screen"/>
- <Col id="memodt1"/>
- <Col id="memodt2"/>
- <Col id="memorem"/>
- <Col id="excuroomcd"/>
- <Col id="svflag"/>
- <Col id="grddatadt1"/>
- <Col id="flag"/>
- <Col id="searchDate"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_initexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecdcnts"/>
- <Column id="basecdcnts2"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_listexcuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecdcnts"/>
- <Column id="basecdcnts2"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initexcuroomgrp2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecdcnts"/>
- <Column id="basecdcnts2"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd"/>
- <Column id="basecdflagdesc"/>
- <Column id="excuposseqcd"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initexecrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd"/>
- <Column id="basecdflagdesc"/>
- <Column id="equaluserid"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initexecrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd"/>
- <Column id="basecdflagdesc"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initexecrid3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd"/>
- <Column id="basecdflagdesc"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initexecrid4" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd"/>
- <Column id="basecdflagdesc"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initexecward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="wardroomcdid"/>
- <Column id="wardroomcdnm"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="suppdeptcd"/>
- <Column id="depthngnm"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initsystgrd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecdcnts"/>
- <Column id="basecdcnts2"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initsystmdl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecdcnts"/>
- <Column id="basecdcnts2"/>
- <Column id="cntlcd1"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_prcpexecdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpexecdeptcd"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_calendar" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sun" type="STRING" size="0"/>
- <Column id="mon" type="STRING" size="0"/>
- <Column id="tue" type="STRING" size="0"/>
- <Column id="wed" type="STRING" size="0"/>
- <Column id="thu" type="STRING" size="0"/>
- <Column id="fri" type="STRING" size="0"/>
- <Column id="sat" type="STRING" size="0"/>
- <Column id="sun_memo" type="STRING" size="0"/>
- <Column id="mon_memo" type="STRING" size="0"/>
- <Column id="tue_memo" type="STRING" size="0"/>
- <Column id="wed_memo" type="STRING" size="0"/>
- <Column id="thu_memo" type="STRING" size="0"/>
- <Column id="fri_memo" type="STRING" size="0"/>
- <Column id="sat_memo" type="STRING" size="0"/>
- <Column id="sun_dut" type="STRING" size="256"/>
- <Column id="mon_dut" type="STRING" size="256"/>
- <Column id="tue_dut" type="STRING" size="256"/>
- <Column id="wed_dut" type="STRING" size="256"/>
- <Column id="thu_dut" type="STRING" size="256"/>
- <Column id="fri_dut" type="STRING" size="256"/>
- <Column id="sat_dut" type="STRING" size="256"/>
- <Column id="sun_holi" type="STRING" size="256"/>
- <Column id="mon_holi" type="STRING" size="256"/>
- <Column id="tue_holi" type="STRING" size="256"/>
- <Column id="wed_holi" type="STRING" size="256"/>
- <Column id="thu_holi" type="STRING" size="256"/>
- <Column id="fri_holi" type="STRING" size="256"/>
- <Column id="sat_holi" type="STRING" size="256"/>
- <Column id="sun_bgc" type="STRING" size="256"/>
- <Column id="mon_bgc" type="STRING" size="256"/>
- <Column id="tue_bgc" type="STRING" size="256"/>
- <Column id="wed_bgc" type="STRING" size="256"/>
- <Column id="thu_bgc" type="STRING" size="256"/>
- <Column id="fri_bgc" type="STRING" size="256"/>
- <Column id="sat_bgc" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_deptmemocnt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="memodt" type="STRING" size="256"/>
- <Column id="cnt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_initsystchief" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_deptcd" propid="value" datasetid="ds_cond_reqparam" columnid="basesuppdeptcd"/>
- <BindItem id="item1" compid="grp_sea.cmb_excuroom" propid="value" datasetid="ds_cond_reqparam" columnid="excuroomcd"/>
- <BindItem id="item2" compid="input1" propid="value" datasetid="ds_cond_reqparam" columnid="svflag"/>
- <BindItem id="item3" compid="grp_sea.ipt_date1" propid="value" datasetid="ds_cond_reqparam" columnid="memodt1"/>
- <BindItem id="item4" compid="grp_sea.ipt_date2" propid="value" datasetid="ds_cond_reqparam" columnid="memodt2"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name :
- * Creator :
- * Make Date : 2016-04-04
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- var lv_chk = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /* @group : 부서별 메모관리
- * @ver : 2007.08.09
- * @by : 임헤정
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택한 날짜로 memodt1,memodt2 세팅
- */
- function getRsrvPossTm(gridObj)
- {
- var yyyy = getSelectCalDate().substr(0, 4);
- var mm = getSelectCalDate().substr(4, 2);
- var dd = getSelectCalDate().substr(6, 2);
-
- if (utlf_getStringLength(dd) == 1) {
- dd = "0" + dd;
- }
-
- var yyyymmdd = yyyy+mm+dd;
-
- ds_cond_reqparam.setColumn(0, "searchDate",yyyymmdd);
- ds_cond_reqparam.setColumn(0, "memodt1",yyyymmdd);
- ds_cond_reqparam.setColumn(0, "memodt2",yyyymmdd);
- }
-
-
- /* @group : 부서별 메모관리
- * @ver : 2013.01.08
- * @by : 이경노
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 상황별 조회방식 변경
- */
- function funcInputDataCheck(chk)
- {
- tar_memo.value = "";
- ds_cond_reqparam.setColumn(0, "flag" , "A");
- ds_cond_reqparam.setColumn(0, "svflag" , "cal");
- ds_cond_reqparam.setColumn(0, "searchDate","");
- ds_cond_reqparam.setColumn(0, "basesuppdeptcd", suppdeptcd);
- ds_cond_reqparam.setColumn(0,"searchmm",CalDiv.opt_year.value+""+CalDiv.opt_month.value);
-
- if(chk == 'cal')
- {
- ds_cond_reqparam.setColumn(0, "flag" , "B");
- getRsrvPossTm(grd_deptmemolist);
- }
- // if(utlf_isNull(ds_cond_reqparam.getColumn(0, "excuroomcd")) == true)
- // {
- // sysf_messageBox("검사/치료실을 선택하십시오.","I999");
- // return;
- // }
- var oParam = {};
- oParam.id = "TRAEB00501";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqGetDeptMemoCodeList";
- oParam.inds = "req=ds_cond_reqparam";
- oParam.outds = "ds_grid_deptmemo=deptmemo";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00501";
- tranf_submit(oParam);
-
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMAEB00500
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMAEB00500_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- aezGetCalendar();
- lf_aezfSetSuppDeptcd();
- //부서정보 가져오기
- lv_chk = "";
- ds_cond_reqparam.clearData();
- ds_cond_reqparam.addRow();
- ds_cond_reqparam.setColumn(0, "basesuppdeptcd", suppdeptcd);
- ds_cond_reqparam.setColumn(0, "rbasecdflag", "R");
- ds_cond_reqparam.setColumn(0, "ebasecdflag", "E");
- ds_cond_reqparam.setColumn(0, "initflag", "1");
-
- //검사실코드 갖고오기
- var oParam = {};
- oParam.id = "TRAEA01301";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetInitExamCureRoomGrpCodeList";
- oParam.inds = "reqparam=ds_cond_reqparam";
- oParam.outds = "ds_init_initexcuroomgrp=initexcuroomgrp ds_init_initexcuroomgrp2=initexcuroomgrp2 ds_init_initexecroom=initexcuroom ds_init_initexecrid1=initexecrid ds_init_initexecrid2=initexecrid ds_init_initexecrid3=initexecrid ds_init_initexecrid4=initexecrid ds_init_initexecward=initexcuward ds_init_suppdept=suppdept ds_init_initsystgrd=initsystgrd ds_init_initsystmdl=initsystmdl ds_=initsystchief";
- oParam.async = false;
- oParam.callback = "cf_TRAEA01301";
- tranf_submit(oParam);
- grp_sea.ipt_date1.value = utlf_getCurrentDate();
- grp_sea.ipt_date2.value = utlf_getCurrentDate();
- funcInputDataCheck();
- }
- function cf_TRAEA01301(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0){
- if(ds_init_suppdept.findRow("suppdeptcd", suppdeptcd) < 0)
- {
- ds_cond_reqparam.setColumn(0, "basesuppdeptcd", "");
- }
- }
- }
- function cf_TRAEB00501(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0){
-
- if(lv_chk =='cal')
- {
- return;
- }
-
- for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
- ds_grid_calendarAST.setColumn(j,"memo1","");
- ds_grid_calendarAST.setColumn(j,"memo2","");
- }
-
- if(ds_grid_deptmemocnt.rowcount!=0){
- for(var i=0; i<ds_grid_deptmemocnt.rowcount; i++){
- for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
- //trace(ds_grid_deptmemocnt.getColumn(i,"memodt"));
- //trace(ds_grid_calendarAST.getColumn(j,"basedd"));
- if(ds_grid_deptmemocnt.getColumn(i,"memodt")==ds_grid_calendarAST.getColumn(j,"basedd")){
- //trace("@@@@@@@@@@@@@@@@@@@");
- ds_grid_calendarAST.setColumn(j,"memo1",ds_grid_deptmemocnt.getColumn(i,"cnt"));
- ds_grid_calendarAST.setColumn(j,"memo2","");
- }
- }
- }
- }else{
- for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
- ds_grid_calendarAST.setColumn(j,"memo1","");
- ds_grid_calendarAST.setColumn(j,"memo2","");
- }
- }
- for(var j=0; j<ds_grid_calendarAST.rowcount; j++){
- if(utlf_isNull(ds_grid_calendarAST.getColumn(j,"memo1"))){
- ds_grid_calendarAST.setColumn(j,"memo1","");
- ds_grid_calendarAST.setColumn(j,"memo2","");
- }
- }
-
- setCalMemo("ds_grid_calendarAST","memo1","","memo2");
-
- }else{
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_calendar
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_calendar_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lv_chk = "cal"
- funcInputDataCheck('cal');
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- lv_chk = "";
- funcInputDataCheck();
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_deptmemolist
- * Event : oncelldblclick(
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_deptmemolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_cond_reqparam.setColumn(0, "svflag" , "grd");
- // model.setValue("/root/main/insmemo/insmemolist", model.getValue("/root/main/deptmemolist/deptmemo["+grd_deptmemolist.row+"]/memorem"));
- tar_memo.value = ds_grid_deptmemo.getColumn(ds_grid_deptmemo.rowposition, "memorem");
- ds_cond_reqparam.setColumn(0, "grddatadt1", ds_grid_deptmemo.getColumn(ds_grid_deptmemo.rowposition, "memodt").substr(0, 8));
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_execl
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_execl_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_deptmemolist, "부서별메모관리_" + grp_sea.cmb_deptcd.text + "_" + grp_sea.cmb_excuroom.text , "메모목록");
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_cond_reqparam.getColumn(0, "svflag") == "grd")
- {
- ds_cond_reqparam.setColumn(0, "memorem", tar_memo.value);
- }
- else if(ds_cond_reqparam.getColumn(0, "svflag") == "cal")
- {
- var strValue = utlf_transNullToEmpty(ds_grid_deptmemo.getColumn(ds_grid_deptmemo.getRowCount() - 1, "memorem"));
-
- if(strValue == "")
- {
- strValue += tar_memo.value;
- }
- else
- {
- strValue += "\n" + tar_memo.value;
- }
- if(strValue.getByteLength() > 600)
- {
- sysf_messageBox("기존메모내용과 추가된 메모내용의 합이 900(byte)를", "E003");
- return;
- }
- ds_cond_reqparam.setColumn(0, "memorem", strValue);
- }
- ds_cond_reqparam.setColumn(0, "memodt", ds_cond_reqparam.getColumn(0,"memodt1"));
- var oParam = {};
- oParam.id = "TXAEB00501";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqExeDeptMemoCodeList";
- oParam.inds = "req=ds_cond_reqparam";
- oParam.outds = "ds_data_item=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB00501";
- tranf_submit(oParam);
-
- }
- function cf_TXAEB00501(strSvcID, nErrorCode, strErrorMsg){
- //에러 처리
- if(nErrorCode == 0){
- tar_memo.value = "";
- var oParam = {};
- oParam.id = "TRAEB00501";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqGetDeptMemoCodeList";
- oParam.inds = "req=ds_cond_reqparam";
- oParam.outds = "ds_grid_deptmemo=deptmemo";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00501";
- tranf_submit(oParam);
-
-
- }else{
- }
- }
- function grp_sea_cmb_excuroom_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- grp_sea.btn_sea.click();
- }
- function aezSetCalMemo(){
-
- }
- function clickCalButton(obj:Button, e:ClickEventInfo)
- {
- var button = obj.class;
-
- if(button=="icon_pre_year"){
- eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)-1;
- aezGetCalendar(null,"Y");
-
-
- }else if(button=="icon_pre_month"){
- if(eval(aezCalpath).opt_month.value=="01"){
- eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)-1;
- eval(aezCalpath).opt_month.value = "12";
- }else{
- var getMonth = eval(eval(aezCalpath).opt_month.value)-1;
- var month = getMonth>9? getMonth:"0"+getMonth;
- eval(aezCalpath).opt_month.value = month;
- }
- aezGetCalendar(null,"Y");
-
-
- }else if(button=="icon_next_month"){
- if(eval(aezCalpath).opt_month.value=="12"){
- eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)+1;
- eval(aezCalpath).opt_month.value = "01";
- }else{
- var getMonth = eval(eval(aezCalpath).opt_month.value)+1;
- var month = getMonth>9? getMonth:"0"+getMonth;
- eval(aezCalpath).opt_month.value = month;
- }
- aezGetCalendar(null,"Y");
-
- }else{
- eval(aezCalpath).opt_year.value = eval(eval(aezCalpath).opt_year.value)+1;
- aezGetCalendar(null,"Y");
-
- }
-
- grp_sea.ipt_date1.value = ds_grid_calendarAST.getColumn(0, "basedd");
- grp_sea.ipt_date2.value = ds_grid_calendarAST.getColumn(ds_grid_calendarAST.rowcount -1, "basedd");
-
- grp_sea.btn_sea.click();
- }
- function SMAEB00500_onclose(obj:Form, e:CloseEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|