123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNR03300" position="absolute 0 0 629 495" titletext="투약시간 관리" oninit="SPMNR03300_oninit" onload="SPMNR03300_onload">
- <Layouts>
- <Layout>
- <Static text="투약시간 관리" position="absolute 1 16 116 32" id="caption22" class="tit_2"/>
- <Static text="시작" position="absolute 275 337 330 360" align="align:center middle;" id="caption13" class="cell_1"/>
- <Static text="Interval 지정" position="absolute 276 316 376 334" id="caption4" class="tit_2"/>
- <Static text="Interval" position="absolute 397 337 452 360" align="align:center middle;" id="caption5" class="cell_1"/>
- <Static text="시간" position="absolute 487 338 517 358" align="align:center middle;" id="caption7"/>
- <Static text="분" position="absolute 572 338 573 358" align="align:center middle;" id="caption8"/>
- <Shape position="absolute 275 357 625 363" linetype="horizontal" id="line5" class="line_3"/>
- <Static text="분" position="absolute 554 338 577 358" align="align:center middle;" id="caption1"/>
- <Grid position="absolute 0 270 270 490" id="grd_mthd" taborder="1" binddataset="ds_main_drugmthdlist_drugmthdlist" autoenter="key" selecttype="multiarea" autosizingtype="none" autofittype="col" ontextchanged="grd_mthd_ontextchanged" onenterdown="grd_mthd_onenterdown" oncelldblclick="grd_mthd_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="40"/>
- <Column size="70"/>
- <Column size="27"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="용법"/>
- <Cell col="1" colspan="2" text="기존" taborder="undefined"/>
- <Cell col="3" colspan="2" text="변경" taborder="undefined"/>
- <Cell col="5" rowspan="2" text="구 분" taborder="undefined"/>
- <Cell row="1" text="용법"/>
- <Cell row="1" col="1" text="Day"/>
- <Cell row="1" col="2" text="기준시간"/>
- <Cell row="1" col="3" text="Day"/>
- <Cell row="1" col="4" text="기준시간"/>
- </Band>
- <Band id="body">
- <Cell displaytype="none" edittype="none" text="bind:mthdcd"/>
- <Cell col="1" edittype="none" text="bind:drugmthdday"/>
- <Cell col="2" edittype="none" text="bind:drugmthdtime" mask="expr:utlf_isNull(drugmthdtime) ? '' : '##:##'"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:center;" text="bind:c_drugmthdday" editautoselect="true"/>
- <Cell col="4" displaytype="text" edittype="mask" style="align:center;" text="bind:c_drugmthdtime" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
- <Cell col="5" text="bind:medrexecflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Edit readonly="true" position="absolute 57 39 104 58" align="align:left middle;" id="opt_tims"/>
- <Edit readonly="true" position="absolute 460 65 628 84" align="align:left middle;" id="opt_mthd" visible="false"/>
- <Edit position="absolute 455 339 485 358" align="align:center middle;" id="ipt_hinterval" class="input_default" taborder="3" autoselect="true" autoskip="true" maxlength="2" style="align:center middle;"/>
- <MaskEdit position="absolute 333 339 393 358" align="align:center middle;" id="ipt_sinterval" class="input_default" taborder="2" mask="##:##" maskchar=" " autoselect="true" type="string" style="align:center middle;" autoskip="true" displaynulltext=" " trimtype="right"/>
- <Edit position="absolute 520 339 550 358" align="align:center middle;" id="ipt_minterval" class="input_default" taborder="4" autoselect="true" maxlength="2" style="align:center middle;"/>
- <Button position="absolute 225 245 267 264" id="btn_save" class="btn5" taborder="7" text="저장" onclick="btn_save_onclick"/>
- <Button position="absolute 580 312 622 331" id="btn_interval" class="btn2" taborder="7" text="반영" onclick="btn_interval_onclick"/>
- <Static text="Interval 지정" position="absolute 276 316 376 332" id="caption3" class="tit_2"/>
- <Shape position="absolute 275 332 625 338" linetype="horizontal" id="line2" class="line_10"/>
- <Button position="absolute 580 245 622 264" id="button1" class="btn2" taborder="7" text="반영" onclick="button1_onclick"/>
- <Shape position="absolute 275 265 625 274" linetype="horizontal" id="line3" class="line_10"/>
- <Combo position="absolute 276 271 581 290" id="cmb_mthd" class="combo_search" taborder="1" innerdataset="@ds_temp_timeinfo_timelist" datacolumn="timenm" codecolumn="timecd"/>
- <Static text="횟수 :" position="absolute 0 37 55 60" align="align:center middle;" id="caption9" class="cell_1"/>
- <Edit readonly="true" position="absolute 280 65 370 84" align="align:left middle;" id="output1" visible="false"/>
- <Shape position="absolute 0 57 625 63" linetype="horizontal" id="line6" class="line_3"/>
- <Shape position="absolute 277 289 625 295" linetype="horizontal" id="line7" class="line_3"/>
- <Shape position="absolute 0 31 625 39" linetype="horizontal" id="line8" class="line_10"/>
- <Edit readonly="true" position="absolute 372 65 457 84" align="align:left middle;" id="out_prcphopedd" visible="false"/>
- <Static text="입원일" position="absolute 105 37 154 60" align="align:center middle;" id="caption10" class="cell_1"/>
- <Edit readonly="true" position="absolute 155 39 245 58" align="align:left middle;" id="out_indd" visible="true"/>
- <Static text="시간대 정보" position="absolute 1 249 101 265" id="caption2" class="tit_2"/>
- <Static text="처방리스트" position="absolute 1 82 101 98" id="caption11" class="tit_2"/>
- <Grid position="absolute 0 103 625 233" id="grd_prcplist" taborder="1" binddataset="ds_hidden_param1_list" selecttype="multiarea" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="93"/>
- <Column size="258"/>
- <Column size="172"/>
- <Column size="77"/>
- </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="처방적용일"/>
- </Band>
- <Band id="body">
- <Cell edittype="none" style="align:left;" text="bind:prcpcd"/>
- <Cell col="1" edittype="none" style="align:left;" text="bind:prcpnm"/>
- <Cell col="2" edittype="none" style="align:left;" text="bind:drugmthdspccd"/>
- <Cell col="3" edittype="none" text="bind:prcphopedd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 267 269 273 491" linetype="vertical" id="line9" class="line_3"/>
- <Static text="공통 지정" position="absolute 276 249 376 265" id="caption12" class="tit_2"/>
- <Shape id="line10" class="line_10" position="absolute 0 97 625 105"/>
- <Shape id="line00" class="line_10" position="absolute -1 264 270 272"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_drugmthdlist_drugmthdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_drugmthdlist_drugmthdlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="mthdcd" type="STRING"/>
- <Column id="drugmthdday" type="STRING"/>
- <Column id="drugmthdtime" type="STRING"/>
- <Column id="c_drugmthdday" type="STRING"/>
- <Column id="c_drugmthdtime" type="STRING"/>
- <Column id="medrexecflag" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_timeinfo_timelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="timenm" type="STRING"/>
- <Column id="timecd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_param1_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="labelprntyn" type="STRING" size="256"/>
- <Column id="prcpkindnm" type="STRING" size="256"/>
- <Column id="aprvstat" type="STRING" size="256"/>
- <Column id="prcpmixno" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="prcpvol" type="STRING" size="256"/>
- <Column id="drprcpetc7" type="STRING" size="256"/>
- <Column id="prcpvolunitflag" type="STRING" size="256"/>
- <Column id="prcpqty" type="STRING" size="256"/>
- <Column id="drprcpetc8" type="STRING" size="256"/>
- <Column id="prcpqtyunitflag" type="STRING" size="256"/>
- <Column id="prcptims" type="STRING" size="256"/>
- <Column id="abbrnm" type="STRING" size="256"/>
- <Column id="drugmthdspccd" type="STRING" size="256"/>
- <Column id="drugtmspec_recalc1" type="STRING" size="256"/>
- <Column id="prcpdelivefact" type="STRING" size="256"/>
- <Column id="orddrnm" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="prcphopedd" type="STRING" size="256"/>
- <Column id="sapnoyn" type="STRING" size="256"/>
- <Column id="engnm" type="STRING" size="256"/>
- <Column id="depth" type="STRING" size="256"/>
- <Column id="execprcpnoarr" type="STRING" size="256"/>
- <Column id="prcphistnoarr" type="STRING" size="256"/>
- <Column id="execuniqnoarr" type="STRING" size="256"/>
- <Column id="dispflag" type="STRING" size="256"/>
- <Column id="drugtmspec_recalc2" type="STRING" size="256"/>
- <Column id="drugtmspeccal" type="STRING" size="256"/>
- <Column id="dispddarray" type="STRING" size="256"/>
- <Column id="disptmarray" type="STRING" size="256"/>
- <Column id="dispflagarray" type="STRING" size="256"/>
- <Column id="dispflaggroup" type="STRING" size="256"/>
- <Column id="todaydrugtimes" type="STRING" size="256"/>
- <Column id="antiastrids" type="STRING" size="256"/>
- <Column id="antiastrnms" type="STRING" size="256"/>
- <Column id="validateyn1" type="STRING" size="256"/>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="tims" type="STRING" size="256"/>
- <Column id="calctims" type="STRING" size="256"/>
- <Column id="spcldrug" type="STRING" size="256"/>
- <Column id="dccomcountyn" type="STRING" size="256"/>
- <Column id="reqflag" type="STRING" size="256"/>
- <Column id="drugtmspec" type="STRING" size="256"/>
- <Column id="drugbasetmspec" type="STRING" size="256"/>
- <Column id="bfprcpequalyn" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="dccountyn" type="STRING" size="256"/>
- <Column id="issdeptcd" type="STRING" size="256"/>
- <Column id="psydept" type="STRING" size="256"/>
- <Column id="prcpgenrflag" type="STRING" size="256"/>
- <Column id="anticheck" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="cretno" type="STRING" size="256"/>
- <Column id="careprnexecflag" type="STRING" size="256"/>
- <Column id="prcphistcd" type="STRING" size="256"/>
- <Column id="orgprcpclscd" type="STRING" size="256"/>
- <Column id="tempdrugtmspeccal" type="STRING" size="256"/>
- <Column id="last" type="STRING" size="256"/>
- <Column id="row" type="STRING" size="256"/>
- <Column id="col" type="STRING" size="256"/>
- <Column id="sLineFlag" type="STRING" size="256"/>
- <Column id="viewroomcd" type="STRING" size="256"/>
- <Column id="soding" type="STRING" size="256"/>
- <Column id="prtprcpclscd" type="STRING" size="256"/>
- <Column id="mthdcd" type="STRING" size="256"/>
- <Column id="todaydrug" type="STRING" size="256"/>
- <Column id="patnm" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- <Column id="sexage" type="STRING" size="256"/>
- <Column id="prtabbrnm" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="astyn" type="STRING" size="256"/>
- <Column id="prcpcdprt" type="STRING" size="256"/>
- <Column id="ast" type="STRING" size="256"/>
- <Column id="disp1" type="STRING" size="256"/>
- <Column id="disp2" type="STRING" size="256"/>
- <Column id="disp3" type="STRING" size="256"/>
- <Column id="execcarestatcd" type="STRING" size="256"/>
- <Column id="issdept" type="STRING" size="256"/>
- <Column id="carertnyn" type="STRING" size="256"/>
- <Column id="drugrateqty" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="orddrid" type="STRING" size="256"/>
- <Column id="rtnstat" type="STRING" size="256"/>
- <Column id="preantiyn" type="STRING" size="256"/>
- <Column id="mthdcnts4" type="STRING" size="256"/>
- <Column id="prcpclscd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="direccd" type="STRING" size="256" sumtext="용법코드 "/>
- <Column id="exectims" type="STRING" size="256" sumtext="처방횟수 "/>
- <Column id="flag" type="STRING" size="256" sumtext="구분 "/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드 "/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="약품코드 "/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata_mthdinfo" 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="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpno" type="STRING" size="256" sumtext="처방번호"/>
- <Column id="prcphistno" type="STRING" size="256" sumtext="처방이력번호"/>
- <Column id="execprcpno" type="STRING" size="256" sumtext="실시처방번호"/>
- <Column id="execprcptims" type="STRING" size="256" sumtext="실시처방횟수"/>
- <Column id="carebasedd" type="STRING" size="256" sumtext="투약기준일자"/>
- <Column id="status" type="STRING" size="256" sumtext="상태값"/>
- <Column id="carebasetm" type="STRING" size="256" sumtext="투약기준시간"/>
- <Column id="carebasetmspec" type="STRING" size="256" sumtext="투약기준시간(Free text)"/>
- <Column id="execprcpuniqno" type="INT" size="256" sumtext="실시처방 유일번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_param2_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="medrexecdd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_drugmthdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="tims" type="STRING" size="256"/>
- <Column id="abbrnm" type="STRING" size="256"/>
- <Column id="s_interval" type="STRING" size="256"/>
- <Column id="h_interval" type="STRING" size="256"/>
- <Column id="m_interval" type="STRING" size="256"/>
- <Column id="change_flag" type="STRING" size="256"/>
- <Column id="drugtmspec" type="STRING" size="256"/>
- <Column id="abbrcd" type="STRING" size="256"/>
- <Column id="prcphopedd" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="calctims" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_mthdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpno" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="prcpcd" type="STRING" size="256"/>
- <Column id="execprcptims" type="STRING" size="256"/>
- <Column id="prcphistno" type="STRING" size="256"/>
- <Column id="execprcpno" type="STRING" size="256"/>
- <Column id="execprcpuniqno" type="STRING" size="256"/>
- <Column id="carebasedd" type="STRING" size="256"/>
- <Column id="carebasetm" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="carebasetmspec" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_tims" propid="value" datasetid="ds_main_drugmthdinfo" columnid="tims"/>
- <BindItem id="item1" compid="out_indd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="indd"/>
- <BindItem id="item2" compid="output1" propid="value" datasetid="ds_main_drugmthdinfo" columnid="abbrcd"/>
- <BindItem id="item3" compid="out_prcphopedd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="prcphopedd"/>
- <BindItem id="item4" compid="opt_mthd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="abbrnm"/>
- <BindItem id="item5" compid="cmb_mthd" propid="value" datasetid="ds_main_drugmthdinfo" columnid="drugtmspec"/>
- <BindItem id="item6" compid="ipt_sinterval" propid="value" datasetid="ds_main_drugmthdinfo" columnid="s_interval"/>
- <BindItem id="item7" compid="ipt_hinterval" propid="value" datasetid="ds_main_drugmthdinfo" columnid="h_interval"/>
- <BindItem id="item8" compid="ipt_minterval" propid="value" datasetid="ds_main_drugmthdinfo" columnid="m_interval"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : 경대 의료정보시스템
- * Job Name : emr_caremedirecxp -> SPMNR03300
- * Creator : yjh
- * Make Date : 2016-05-26
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-26 yjh TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "emr_caremedirecxp::SPMNR03300.xjs"; //yjh : 커밋
- include "emr_carecomxp::CareCom.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNR03300
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시
- ****************************************************************************************/
- function SPMNR03300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMNR03300
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 로딩 완료시
- ****************************************************************************************/
- function SPMNR03300_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize();
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_drugmthdlist_drugmthdlist
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_drugmthdlist_drugmthdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- //----------------------------------------(20080927)
- // Day : -3~3
- // 기준시간 : 0~2400까지
- switch( e.columnid ){
- case "c_drugmthdday" :
- if( e.newvalue < -3 ){
- alert("Day는 -3 ~ 3 일 사이에 변경가능합니다");
- obj.setColumn(e.row, e.col, "-3");
- return;
- }
- if( e.newvalue > 3 ){
- alert("Day는 -3 ~ 3 일 사이에 변경가능합니다");
- obj.setColumn(e.row, e.col, "3");
- return;
- }
-
- break;
-
- case "c_drugmthdtime" :
- if( e.newvalue < 0 ){
- alert("기준시간은 0 ~ 2400 시간 사이에 변경가능합니다");
- obj.setColumn(e.row, e.col, "0001");
- return;
- }
- // if (pGrd.valueMatrix(row,col) = "0000")
- // pGrd.valueMatrix(row,col) = "0001";
- if( e.newvalue > 2400 ){
- alert("기준시간은 0 ~ 2400 시간 사이에 변경가능합니다");
- obj.setColumn(e.row, e.col, "2400");
- return;
- }
-
- break;
-
- default:
- break;
- }
-
- //obj.rowposition = obj.rowposition+1;
- }
- /****************************************************************************************
- * Components : Button
- * 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)
- {
- fSaveDrugmthd();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 반영버튼 클릭시
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fTimeApply();
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_interval
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 반영버튼 클릭시
- ****************************************************************************************/
- function btn_interval_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveInterval();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_mthd
- * Event : ontextchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 텍스트 변경시
- ****************************************************************************************/
- function grd_mthd_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
- {
- switch( e.col ){
- case 4 :
- if( (e.posttext).length == "4" && ds_main_drugmthdlist_drugmthdlist.rowposition < (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
- ds_main_drugmthdlist_drugmthdlist.rowposition = ds_main_drugmthdlist_drugmthdlist.rowposition+1;
- }else if( (e.posttext).length == "4" && ds_main_drugmthdlist_drugmthdlist.rowposition == (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
- obj.setCellPos(e.col);
- obj.showEditor(false);
- }
-
- break;
-
- default :
- break;
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_mthd
- * Event : onenterdown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 그리드 엔터키 입력시
- ****************************************************************************************/
- function grd_mthd_onenterdown(obj:Grid, e:GridEditEventInfo)
- {
- if( ds_main_drugmthdlist_drugmthdlist.rowposition < (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
- ds_main_drugmthdlist_drugmthdlist.rowposition = ds_main_drugmthdlist_drugmthdlist.rowposition+1;
- grd_mthd.setCellPos(e.col);
- grd_mthd.setFocus();
- }else if( ds_main_drugmthdlist_drugmthdlist.rowposition == (ds_main_drugmthdlist_drugmthdlist.rowcount-1) ){
- obj.setCellPos(e.col);
- obj.showEditor(false);
- }
- }
- function grd_mthd_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if( e.col == 3 || e.col == 4 ){
- obj.showEditor(true);
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|