123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMQP03600" position="absolute 0 0 1256 805" titletext="Untitle" oninit="SPMQP03600_oninit" onload="SPMQP03600_onload">
- <Layouts>
- <Layout>
- <Radio position="absolute 435 398 720 456" id="rdo_limalertgrde" columncount="1" rowcount="3" innerdataset="ds_init_M0507" datacolumn="cdnm" codecolumn="cdid"/>
- <Shape position="absolute 348 217 724 220" linetype="horizontal" id="line9" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <Shape position="absolute 349 393 720 399" linetype="horizontal" id="line12" class="line_2"/>
- <Static text="설정" position="absolute 348 220 433 260" id="cap_limstepsetupflag" class="cell_1"/>
- <Radio position="absolute 435 373 580 392" id="rdo_limtimes" taborder="10" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">1회</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">2회</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">3회</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Shape position="absolute 349 341 720 347" linetype="horizontal" id="line14" class="line_2"/>
- <Combo position="absolute 514 220 724 239" id="cmb_limstepno" enable="false" taborder="1" innerdataset="@ds_init_stepinfo" datacolumn="stepnm" codecolumn="stepno" onitemchanged="cmb_limstepno_onitemchanged"/>
- <Static text="제한시간 리스트" position="absolute 0 4 165 17" id="caption12" class="tit_2"/>
- <Grid position="absolute 0 0 725 172" id="grd_limittmlist" binddataset="ds_main_limlist" autofittype="col" oncelldblclick="grd_limittmlist_oncelldblclick" onrbuttondown="grd_limittmlist_onrbuttondown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="139"/>
- <Column size="0"/>
- <Column size="382"/>
- <Column size="145"/>
- <Column size="39"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="스텝명"/>
- <Cell col="1" text="기준시점(코드)"/>
- <Cell col="2" text="기준시점"/>
- <Cell col="3" text="알람방법"/>
- <Cell col="4" text="설정"/>
- </Band>
- <Band id="body">
- <Cell text="bind:stepnm"/>
- <Cell col="1" displaytype="combo" edittype="combo" text="bind:alertstndpntnflag" combodataset="ds_init_M0511" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" text="bind:title"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:alertgrde" combodataset="ds_init_M0507" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:stepsetupflag" combodataset="ds_cmb_stepsetupflag" combocodecol="value" combodatacol="label"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 0 217 345 457" id="grd_limittmlistdetl" binddataset="ds_main_limdetaillist" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="34"/>
- <Column size="293"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="처방명"/>
- <Cell col="2" text="caption1"/>
- <Cell col="3" text="caption2"/>
- <Cell col="4" text="caption3"/>
- <Cell col="5" text="caption4"/>
- </Band>
- <Band id="body">
- <Cell text="bind:checkyn" edittype="checkbox" displaytype="checkbox"/>
- <Cell col="1" text="bind:prcpnm"/>
- <Cell col="2" text="bind:prcpcd"/>
- <Cell col="3" text="bind:setcdno"/>
- <Cell col="4" text="bind:settypecd"/>
- <Cell col="5" text="bind:setno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="설정완료" position="absolute 348 345 433 368" id="cap_limtm" class="cell_1"/>
- <Radio position="absolute 435 265 725 341" id="rdo_limalertstndpntnflag" taborder="11" columncount="1" rowcount="3" innerdataset="ds_init_M0511" datacolumn="cdnm" codecolumn="cdid" onitemchanged="rdo_limalertstndpntnflag_onitemchanged"/>
- <Static text="알람횟수" position="absolute 349 371 434 394" id="cap_limtimes" class="cell_1"/>
- <Shape position="absolute 349 454 720 460" linetype="horizontal" id="line4" class="line_2"/>
- <Radio position="absolute 435 347 715 366" id="rdo_limtm" taborder="12" columncount="2" innerdataset="ds_init_M0512" datacolumn="cdnm" codecolumn="cdid" onitemchanged="rdo_limtm_onitemchanged"/>
- <Static text="모니터링 상세내역" position="absolute 350 199 492 215" id="caption28" class="tit_2"/>
- <Static text="알람방법" position="absolute 349 397 434 455" id="cap_limalertgrde" class="cell_1"/>
- <Static text="제한시간 리스트" position="absolute 0 199 165 216" id="caption29" class="tit_2"/>
- <Static text="기준시점" position="absolute 348 263 433 342" id="cap_limalertstndpntnflag" class="cell_1"/>
- <Shape position="absolute 349 367 720 373" linetype="horizontal" id="line6" class="line_2"/>
- <Shape position="absolute 348 259 720 265" linetype="horizontal" id="line7" class="line_2"/>
- <Button position="absolute 558 306 574 322" id="btn_alerttrgtdetl" class="icon_search" text="" onclick="btn_alerttrgtdetl_onclick"/>
- <Edit position="absolute 580 303 725 322" id="ipt_alerttrgtdetl" enable="false" taborder="8"/>
- <Radio position="absolute 435 220 515 261" id="rdo_limstepsetupflag" taborder="9" columncount="1" rowcount="3" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="rdo_limstepsetupflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">S</Col>
- <Col id="datacolumn">STEP 선택</Col>
- </Row>
- <Row>
- <Col id="codecolumn">U</Col>
- <Col id="datacolumn">해제</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit position="absolute 643 347 698 366" id="ipt_limtmunithh"/>
- <Edit position="absolute 478 347 533 366" id="ipt_limtmunitmm"/>
- <Button position="absolute 682 196 724 215" id="btn_addlimattr" class="btn2" text="신규" onclick="btn_addlimattr_onclick"/>
- <Button position="absolute 302 196 344 215" id="btn_addlimdetaillist" class="btn2" text="추가" onclick="btn_addlimdetaillist_onclick"/>
- <Static text="알람간격" position="absolute 580 371 665 394" id="cap_limtermtm" class="cell_1"/>
- <MaskEdit position="absolute 667 373 702 392" id="ipt_limtermtm" mask="###"/>
- <Static text="분" position="absolute 703 374 718 394" id="caption2"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_limlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="stepnm" type="STRING"/>
- <Column id="alertstndpntnflag" type="STRING"/>
- <Column id="title" type="STRING"/>
- <Column id="alertgrde" type="STRING"/>
- <Column id="stepsetupflag" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_limdetaillist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="checkyn" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="prcpcd" type="STRING"/>
- <Column id="setcdno" type="STRING"/>
- <Column id="settypecd" type="STRING"/>
- <Column id="setno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_stepsetupflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">STEP 선택</Col>
- <Col id="value">S</Col>
- </Row>
- <Row>
- <Col id="label">해제</Col>
- <Col id="value">U</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_limheaderinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_limheaderinfo_oncolumnchanged">
- <ColumnInfo>
- <Column id="cpgno" type="STRING" size="256"/>
- <Column id="cpghistseq" type="STRING" size="256"/>
- <Column id="limno" type="STRING" size="256"/>
- <Column id="limhistno" type="STRING" size="256"/>
- <Column id="stepsetupflag" type="STRING" size="256"/>
- <Column id="stepno" type="STRING" size="256"/>
- <Column id="alertstndpntnflag" type="STRING" size="256"/>
- <Column id="alerttrgtno" type="STRING" size="256"/>
- <Column id="alerttrgtdetlno" type="STRING" size="256"/>
- <Column id="alerttrgtdetlcnts" type="STRING" size="256"/>
- <Column id="prcpstatcd" type="STRING" size="256"/>
- <Column id="limhh" type="STRING" size="256"/>
- <Column id="limmm" type="STRING" size="256"/>
- <Column id="limtm" type="STRING" size="256"/>
- <Column id="limtmunitflag" type="STRING" size="256"/>
- <Column id="alertcnt" type="STRING" size="256"/>
- <Column id="limtermtm" type="STRING" size="256"/>
- <Column id="alertgrde" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cpgno"/>
- <Col id="cpghistseq"/>
- <Col id="limno"/>
- <Col id="limhistno"/>
- <Col id="stepsetupflag">U</Col>
- <Col id="stepno"/>
- <Col id="alertstndpntnflag"/>
- <Col id="alerttrgtno"/>
- <Col id="alerttrgtdetlno"/>
- <Col id="alerttrgtdetlcnts"/>
- <Col id="prcpstatcd"/>
- <Col id="limhh"/>
- <Col id="limmm"/>
- <Col id="limtm"/>
- <Col id="limtmunitflag"/>
- <Col id="alertcnt"/>
- <Col id="limtermtm"/>
- <Col id="alertgrde"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_limtmunitmm" propid="value" datasetid="ds_main_limheaderinfo" columnid="limmm"/>
- <BindItem id="item1" compid="ipt_limtmunithh" propid="value" datasetid="ds_main_limheaderinfo" columnid="limhh"/>
- <BindItem id="item2" compid="rdo_limstepsetupflag" propid="value" datasetid="ds_main_limheaderinfo" columnid="stepsetupflag"/>
- <BindItem id="item3" compid="cmb_limstepno" propid="value" datasetid="ds_main_limheaderinfo" columnid="stepno"/>
- <BindItem id="item4" compid="rdo_limalertstndpntnflag" propid="value" datasetid="ds_main_limheaderinfo" columnid="alertstndpntnflag"/>
- <BindItem id="item5" compid="ipt_alerttrgtdetl" propid="value" datasetid="ds_main_limheaderinfo" columnid="alerttrgtdetlcnts"/>
- <BindItem id="item6" compid="rdo_limtm" propid="value" datasetid="ds_main_limheaderinfo" columnid="limtmunitflag"/>
- <BindItem id="item7" compid="rdo_limtimes" propid="value" datasetid="ds_main_limheaderinfo" columnid="alertcnt"/>
- <BindItem id="item8" compid="rdo_limalertgrde" propid="value" datasetid="ds_main_limheaderinfo" columnid="alertgrde"/>
- <BindItem id="item9" compid="ipt_limtermtm" propid="value" datasetid="ds_main_limheaderinfo" columnid="limtermtm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-03-12
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-03-12 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs"
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMQP03600
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPMQP03600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SPMQP03600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면오픈시 폼load이후 실행
- ****************************************************************************************/
- function SPMQP03600_onload(obj:Form, e:LoadEventInfo)
- {
- limInit();
- fSelStepLimtInfo();
- frmf_createPopupMenu("Popuplimpoplist"
- ,"fPopupMenu"
- ,[{id: "D", level: "0", title: "삭제"}] //항목추가
- );
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_limittmlist
- * Event : oncelldblclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 제한시간 더블클릭하여 속성 상세조회
- ****************************************************************************************/
- function grd_limittmlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fSelLimtInfo();
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_limittmlist
- * Event : onrbuttondown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 마우스 우클릭으로 팝업메뉴 띄움
- ****************************************************************************************/
- function grd_limittmlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row > -1) Popuplimpoplist.trackPopup(e.screenX,e.screenY);
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_addlimdetaillist
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 제한시간 리스트 추가버튼 클릭
- ****************************************************************************************/
- function btn_addlimdetaillist_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetLimDetailList("T");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_addlimattr
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 모니터링 상세내역 신규버튼 클릭
- ****************************************************************************************/
- function btn_addlimattr_onclick(obj:Button, e:ClickEventInfo)
- {
- var iRow = objects[grd_limittmlist.binddataset].rowposition;
- if(iRow > -1){
- // grd_limittmlist.isselected(iRow) = false;
- // grd_limittmlist.row = -1;
- objects[grd_limittmlist.binddataset].rowposition = -1;
- }
- // model.resetInstanceNode("/root/main/limheaderinfo");
- // model.removeNodeset("/root/main/limdetaillist/limdetailinfo");
- ds_main_limheaderinfo.clearData();
- ds_main_limdetaillist.clearData();
- ds_main_limheaderinfo.addRow();
- ds_main_limheaderinfo.setColumn(0,"cpgno" , ds_init_cpginfo.getColumn(0,"cpgno"));
- ds_main_limheaderinfo.setColumn(0,"cpghistseq" , ds_init_cpginfo.getColumn(0,"cpghistseq"));
- ds_main_limheaderinfo.setColumn(0,"stepsetupflag", "U");
- fSetupControls();
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_limstepsetupflag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 설정 라디오버튼 선택
- ****************************************************************************************/
- function rdo_limstepsetupflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSetupControls("stepsetupflag");
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : cmb_limstepno
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 설정 Step 콤보 선택
- ****************************************************************************************/
- function cmb_limstepno_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetLimDetailList("T");
- var keyNo = ds_main_limheaderinfo.getColumn(0,"limno");
- if( !utlf_isNull(keyNo) ){
- frmf_setParameter("SPMQP00300_before_stepno", ds_main_limlist.getColumn(objects[grd_limittmlist.binddataset].rowposition,"stepno"));
- }else{
- frmf_setParameter("SPMQP00300_before_stepno", "0");
- }
- frmf_setParameter("SPMQP00300_after_stepno", cmb_limstepno.value);
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_limalertstndpntnflag
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기준시점 라디오 버튼 선택
- ****************************************************************************************/
- function rdo_limalertstndpntnflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSetupControls("alertstndpntnflag");
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_alerttrgtdetl
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 기준시점 돋보기 버튼 클릭
- ****************************************************************************************/
- function btn_alerttrgtdetl_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetLimDetailList("F");
- }
- /****************************************************************************************
- * Components : Radio
- * Components ID : rdo_limtm
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 설정완료 라디오 버튼 선택
- ****************************************************************************************/
- function rdo_limtm_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSetupControls("limtmunitflag");
- }
- /****************************************************************************************
- * Components : Dataset
- * Components ID : ds_main_limheaderinfo
- * Event : oncolumnchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 설정완료등 데이터셋 값 변경시
- ****************************************************************************************/
- function ds_main_limheaderinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "limmm") obj.setColumn(0,"limtm",e.newvalue);
- if(e.columnid == "limhh") obj.setColumn(0,"limtm",e.newvalue);
- if(e.columnid == "limtermtm") {
- var totalM = "";
- var inputTerm = ds_main_limheaderinfo.getColumn(0,"limtermtm");
-
- if( utlf_isNull(inputTerm) ) return;
-
- if( utlf_isNull(ds_main_limheaderinfo.getColumn(0,"limtmunitflag")) ) {
- sysf_messageBox ( "알람 설정 단위(시간/분)를 먼저", "C001" );
- return;
- }else if( ds_main_limheaderinfo.getColumn(0,"limtmunitflag") == "M" ){
- var mm = ds_main_limheaderinfo.getColumn(0,"limmm");
- if( utlf_isNull(mm) ){
- sysf_messageBox ( "설정 시간(분)을 먼저", "C001" );
- return;
- }
- totalM = parseInt(mm);
- }else{
- var hh = ds_main_limheaderinfo.getColumn(0,"limhh");
- if( utlf_isNull( hh) ){
- sysf_messageBox ( "설정 시간을 먼저", "C001" );
- return;
- }
- totalM = parseInt( hh) * 60;
- }
-
- if( parseInt(inputTerm) >= totalM ){
- sysf_messageBox ( "알람 설정 시간(분)을", "E003" );
- ds_main_limheaderinfo.setColumn(0,"limtermtm", "");
- // ipt_limtermtm.refresh();
- }
- }
- }
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Function : limInit
- * Description : 화면 초기화
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function limInit() {
- ds_main_limheaderinfo.setColumn(0,"cpgno" , ds_init_cpginfo.getColumn(0,"cpgno")); // SPMQP00300_CPG속성관리
- ds_main_limheaderinfo.setColumn(0,"cpghistseq" , ds_init_cpginfo.getColumn(0,"cpghistseq")); // SPMQP00300_CPG속성관리
-
- var oParam = {};
- oParam.id = "TRMQP03601";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqGetLimTimeList";
- oParam.inds = "req=ds_main_limheaderinfo"; //ds_init_cpginfo
- oParam.outds = "ds_main_limlist=liminfo";
- oParam.async = false;
- oParam.callback = "cf_TRMQP03601";
- tranf_submit(oParam);
- // submit("TRMQP03601", true);
- }
- /****************************************************************************************
- * Function : cf_TRMQP03601
- * Description : TRMQP03601 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TRMQP03601(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setDefaultVal(ds_main_limlist, "status:-");
- }
- /****************************************************************************************
- * Function : fSelStepLimtInfo
- * Description : CPG일 경우만 수행되는 부분으로, 특정 스텝에 해당되는 특정 슬립 정보 조회
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fSelStepLimtInfo(){
- var stepNo = this.getOwnerFrame().form.opener.frmf_getParameter("stepattadmin");
- var no = 0;
- if( !utlf_isNull(stepNo) ){
- var Nodes = ds_main_limlist; // instance1.selectNodes("/root/main/limlist/liminfo");
- for( var i = 0; i < ds_main_limlist.rowcount; i++ ){
- // var node = Nodes.item(i);
- var limtStepNode = ds_main_limlist.getColumn(i,"stepno");
- if( !utlf_isNull(limtStepNode) && limtStepNode == stepNo ){
- // no = i + 1;
- // grd_limittmlist.select(no, 1) = true;
- // grd_limittmlist.row = grd_limittmlist.selectedRow(0);
- fSelLimtInfo();
- return;
- }
- }
- }
- }
- /****************************************************************************************
- * Function : fSelLimtInfo
- * Description : 제한시간 속성 상세 정보 조회
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fSelLimtInfo(){
- var iRow = objects[grd_limittmlist.binddataset].rowposition;
-
- if ( iRow > -1 ) {
- var limno = ds_main_limlist.getColumn(iRow,"limno");
- var limhistno = ds_main_limlist.getColumn(iRow,"limhistno");
-
- //copyNodeListType("/root/main/limheaderinfo", "/root/main/limlist/liminfo[" + iRow + "]", "replace", model, model);
- // model.copyNode("/root/main/limheaderinfo", "/root/main/limlist/liminfo[" + iRow + "]");
- ds_main_limheaderinfo.copyRow(0,"ds_main_limlist",iRow);
-
- var oParam = {};
- oParam.id = "TRMQP03602";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqGetStepLimTimeList";
- oParam.inds = "req=ds_main_limheaderinfo";
- oParam.outds = "ds_main_limdetaillist=limdetailinfo";
- oParam.async = false;
- oParam.callback = "cf_TRMQP03602";
- tranf_submit(oParam);
- // if( submit("TRMQP03602", true) ){
- // fSetupControls();
- // }
- }
- }
- /****************************************************************************************
- * Function : cf_TRMQP03602
- * Description : TRMQP03602 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TRMQP03602(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- fSetupControls();
- }
- /****************************************************************************************
- * Function : fSetupControls
- * Description : case에 따라 각 컨트롤의 속성 설정 변경
- * Argument : setupFlag
- * return type :
- * Creator :
- ****************************************************************************************/
- function fSetupControls( setupFlag ){
- if( utlf_isNull(setupFlag) ) var allSetupYN = "Y";
- else var allSetupYN = "N";
-
- if( allSetupYN == "Y" || setupFlag == "alertstndpntnflag" ){
- var alertstndpntnflag = ds_main_limheaderinfo.getColumn(0,"alertstndpntnflag");
- if( alertstndpntnflag == "3" ){
- btn_alerttrgtdetl.enable = true;
- ipt_alerttrgtdetl.enable = true;
- }else{
- btn_alerttrgtdetl.enable = false;
- ipt_alerttrgtdetl.enable = false;
- ds_main_limheaderinfo.setColumn(0,"alerttrgtdetlcnts", "");
- // ipt_alerttrgtdetl.refresh();
- }
- }
-
- if( allSetupYN == "Y" || setupFlag == "stepsetupflag" ){
- var stepsetupflag = ds_main_limheaderinfo.getColumn(0,"stepsetupflag");
- if (stepsetupflag == "S") {
- cmb_limstepno.enable = true;
- } else {
- cmb_limstepno.enable = false;
- }
- }
-
- if( allSetupYN == "Y" || setupFlag == "limtmunitflag" ){
- var limtmunitflag = ds_main_limheaderinfo.getColumn(0,"limtmunitflag");
- if( limtmunitflag == "H" ){
- ipt_limtmunithh.enable = true;
- ipt_limtmunitmm.enable = false;
- ipt_limtmunithh.setFocus();
- }else{
- ipt_limtmunithh.enable = false;
- ipt_limtmunitmm.enable = true;
- ipt_limtmunitmm.setFocus();
- }
- }
-
- if( allSetupYN == "Y" || setupFlag == "limtm" ){
- var limhh = ds_main_limheaderinfo.getColumn(0,"limhh");
- var limmm = ds_main_limheaderinfo.getColumn(0,"limmm");
- if(limhh == "0"){
- ipt_limtmunithh.enable = false;
- ipt_limtmunitmm.enable = true;
- }
- if(limmm == "0" ){
- ipt_limtmunithh.enable = true;
- ipt_limtmunitmm.enable = false;
- }
- }
- }
- /****************************************************************************************
- * Function : fPopupMenu
- * Description : 우클릭 메뉴 선택시 함수 실행
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fPopupMenu(obj:PopupMenu, e:MenuClickEventInfo) {
- if(e.id == "D") {
- fDelLimTime();
- }
- }
- /****************************************************************************************
- * Function : fDelLimTime
- * Description : 제한시간리스트 삭제
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fDelLimTime() {
- var tmpstr = "limno▦limhistno▩";
- // var rows = objcets[grd_limittmlist.binddataset].rowcount;
- var selectedRows = grdf_getSelectedRows(grd_limittmlist);
- for (var i = 0; i < selectedRows.length; i++ ) {
- var limno = ds_main_limlist.getColumn(selectedRows[i],"limno");
- var limhistno = ds_main_limlist.getColumn(selectedRows[i],"limhistno");
- tmpstr += limno + "▦" + limhistno+ "▩";
- }
- // model.makeValue("/root/send/savedata/limtimelist" , tmpstr);
- dsf_setCSVToDs("ds_send_savedata_limtimelist",tmpstr);
-
- var oParam = {};
- oParam.id = "TXMQP03601";
- oParam.service = "prcpbaseapp.CpMngt";
- oParam.method = "reqDelLimTimeList";
- oParam.inds = "req=ds_send_savedata_limtimelist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMQP03601";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMQP03601") < 0) return false;
- this.getOwnerFrame().form.opener.fInitAttList();
- limInit() ;
- }
- /****************************************************************************************
- * Function : cf_TXMQP03601
- * Description : TXMQP03601 콜백함수
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function cf_TXMQP03601(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Function : fGetLimDetailList
- * Description :
- * Argument :
- * return type :
- * Creator :
- ****************************************************************************************/
- function fGetLimDetailList( popFlag ){
- // popFlag : From (기준시점 대상) ~To(Action이 행해져야하는 대상)
- if( utlf_isNull(popFlag) ) popFlag = "T";
-
- if( popFlag == "T" && ( ds_main_limheaderinfo.getColumn(0,"stepsetupflag") == "U" || utlf_isNull(ds_main_limheaderinfo.getColumn(0,"stepno")) ) ){
- //모니터링 정보 없음
- return;
- }
-
- //제한시간리스트 재조회
- var leftPos = this.position.left - (500+8);
- if( leftPos < 0 ) leftPos = this.position.left + (745+8);
- var topPos = this.position.top;
- // var coord = getRelativeCoordinate( leftPos, topPos );
- // var mon = coord[0];
- var mon = (sysf_getCurrentMonitorNumber()==1) ? 2 : 1;
- frmf_setParameter("SPMQP03600_stepno" , ds_main_limheaderinfo.getColumn(0,"stepno"));
- frmf_setParameter("SPMQP03600_stepnm" , cmb_limstepno.text);
- frmf_setParameter("SPMQP03600_getflag", popFlag);
- // modal("SPMQP03100", mon, leftPos, topPos ); //status▦checkyn▦stepno▦settypecd▦setno▦setcdno▦prcpcd▦prcpnm▦
- frmf_modal("SPMQP03100", "SPMQP03100", "", "", mon,leftPos,topPos, "", "", "", "", "", "M");
-
- var prcpListCVS = frmf_getParameter( "SPMQP03600_prcplist" );
-
- if( utlf_isNull(prcpListCVS) ) return;
-
- if( popFlag == "T" ){
- //설정 구분 자동 선택
- if( ds_main_limheaderinfo.getColumn(0,"stepsetupflag") == "U" ){
- ds_main_limheaderinfo.setColumn(0,"stepsetupflag", "S");
- // rdo_limstepsetupflag.refresh();
- }
-
- // model.removeNodeset("/root/main/limdetaillist/limdetailinfo");
- ds_main_limdetaillist.clearData();
-
- var prcpList = prcpListCVS.split("▩");
- var iPrcpList = "";
-
- for( var i=1; i<prcpList.length; i++ ){
- iPrcpList = prcpList[i].split("▦");
-
- dsf_makeValue(ds_main_limdetaillist,"m" ,"string",iPrcpList[0],i);
- dsf_makeValue(ds_main_limdetaillist,"checkyn" ,"string",iPrcpList[1],i);
- dsf_makeValue(ds_main_limdetaillist,"istepno" ,"string",iPrcpList[2],i);
- dsf_makeValue(ds_main_limdetaillist,"settypecd","string",iPrcpList[3],i);
- dsf_makeValue(ds_main_limdetaillist,"setno" ,"string",iPrcpList[4],i);
- dsf_makeValue(ds_main_limdetaillist,"setcdno" ,"string",iPrcpList[5],i);
- dsf_makeValue(ds_main_limdetaillist,"prcpcd" ,"string",iPrcpList[6],i);
- dsf_makeValue(ds_main_limdetaillist,"prcpnm" ,"string",iPrcpList[7],i);
- }
- // grd_limittmlistdetl.refresh();
- }else if( popFlag == "F" ){
- var prcpList = prcpListCVS.split("▩");
- var iPrcpList = prcpList[1].split("▦");
-
- ds_main_limheaderinfo.setColumn(0,"alerttrgtno" , iPrcpList[2]); //istepno
- ds_main_limheaderinfo.setColumn(0,"alerttrgtdetlno" , iPrcpList[5]); //setcdno
- ds_main_limheaderinfo.setColumn(0,"alerttrgtdetlcnts", iPrcpList[8] + "(" + iPrcpList[7] + ")");
- // ipt_alerttrgtdetl.refresh();
- }
-
- frmf_clearParameter("SPMQP03600_stepno");
- frmf_clearParameter("SPMQP03600_stepnm");
- frmf_clearParameter("SPMQP03600_getflag");
- frmf_clearParameter("SPMQP03600_prcplist");
- }
- function fAddLimTmList() {
- dsf_copyDs(ds_main_limdetaillist,ds_temp_limdetailinfo,"after");
- ds_main_limheaderinfo.setColumn(0,"cpgno" , opener.ds_main_cond.getColumn(0,"cpgno"));
- ds_main_limheaderinfo.setColumn(0,"cpghistseq" , opener.ds_main_cond.getColumn(0,"cpghistseq"));
- ds_main_limheaderinfo.setColumn(0,"limno" , "");
- ds_main_limheaderinfo.setColumn(0,"limhistno" , "");
-
- //설정된 스텝번호를 파라메터로 셋팅해서 outline의 아이콘 불이 들어오도록 (2009.04.14)
- frmf_setParameter("SPMQP00300_before_stepno", "0");
- frmf_setParameter("SPMQP00300_after_stepno" , ds_main_limheaderinfo.getColumn(0,"stepno"));
- }
- ]]></Script>
- </Form>
- </FDL>
|