123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNR02400" position="absolute 0 0 1201 794" titletext="중증도 및 위험 사정 분류도구 관리" oninit="SMMNR02400_oninit" onload="SMMNR02400_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="중증도 및 위험사정 분류도구 관리" class="tit_1" position="absolute 0 0 320 25"/>
- <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="종 류 :" class="search_name" position="absolute 11 11 82 28"/>
- <Radio id="rdo_recflag" taborder="1" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 85 11 335 30" onitemchanged="grp_sea_rdo_recflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">중증도</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">낙상 위험사정</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">욕창 위험사정</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption3" text="분 류 :" class="search_name" position="absolute 361 11 433 28"/>
- <Combo id="cmb_clsflag1" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 427 10 536 29">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">일반병동</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">신생아 ICU</Col>
- </Row>
- <Row>
- <Col id="codecolumn">3</Col>
- <Col id="datacolumn">혈액투석</Col>
- </Row>
- <Row>
- <Col id="codecolumn">4</Col>
- <Col id="datacolumn">중환자실</Col>
- </Row>
- <Row>
- <Col id="codecolumn">5</Col>
- <Col id="datacolumn">정신과병동</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Combo id="cmb_clsflag2" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 427 10 536 29" onitemchanged="grp_sea_cmb_clsflag2_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">Humpty Dumpty Scale</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">Morse Scale</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption4" text="기 준 일 :" class="search_name" position="absolute 559 11 645 28"/>
- <Calendar id="input5" taborder="4" class="input_search" position="absolute 627 10 728 29" autoselect="true" autoskip="true" onchanged="grp_sea_input5_onchanged"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 732 9 738 31" anchor="top right"/>
- <Button id="button1" taborder="5" text="조회" class="btn1" position="absolute 740 9 796 31" anchor="top right" onclick="grp_sea_button1_onclick"/>
- <Button id="button2" taborder="6" text="1차분류추가" class="btn4" position="absolute 799 9 903 31" anchor="top right" onclick="grp_sea_button2_onclick"/>
- <Button id="button7" taborder="7" text="2차분류추가" class="btn4" position="absolute 906 9 1010 31" anchor="top right" onclick="grp_sea_button7_onclick"/>
- <Button id="button8" taborder="8" text="펼침" class="btn4" position="absolute 1013 9 1069 31" anchor="top right" onclick="grp_sea_button8_onclick"/>
- <Button id="button9" taborder="9" text="닫침" class="btn4" position="absolute 1072 9 1128 31" anchor="top right" onclick="grp_sea_button9_onclick"/>
- <Button id="button10" taborder="10" text="저장" class="btn4" position="absolute 1131 9 1187 31" anchor="top right" onclick="grp_sea_button10_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 78 1195 84" anchor="left top right"/>
- <Grid id="grd_detlgrup" taborder="2" binddataset="ds_main_detlgrup_detlgruplist" useinputpanel="false" position="absolute 0 83 1195 791" autoenter="select" autofittype="col" cellsizingtype="both" anchor="all" treeusecheckbox="false" treeuseimage="false" treeinitstatus="expand,all" autosizingtype="row" extendsizetype="row" oncellclick="grd_detlgrup_oncellclick" selecttype="row" cantreestatuschange="grd_detlgrup_cantreestatuschange">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="29"/>
- <Column size="0"/>
- <Column size="67"/>
- <Column size="300"/>
- <Column size="292"/>
- <Column size="42"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="55"/>
- <Column size="62"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <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/>
- <Cell col="1" text="상태"/>
- <Cell col="2" text="분류코드"/>
- <Cell col="3" text="분류도구명"/>
- <Cell col="4" text="설명"/>
- <Cell col="5" text="점수"/>
- <Cell col="6" text="확인Y/N"/>
- <Cell col="7" text="횟수Y/N"/>
- <Cell col="8" text="서술Y/N"/>
- <Cell col="9" text="필수입력"/>
- <Cell col="10" text="정렬순서"/>
- <Cell col="11" text="시작일자"/>
- <Cell col="12" text="종료일자"/>
- <Cell col="13" text="영문이름"/>
- <Cell col="14" text="용도설명"/>
- <Cell col="15" text="부서코드"/>
- <Cell col="16" text="정렬"/>
- <Cell col="17" text="상위코드"/>
- <Cell col="18" text="종료일자"/>
- <Cell col="19" text="depth"/>
- <Cell col="20" text="grupflag"/>
- <Cell col="21" text="분류구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:stat" enable="false"/>
- <Cell col="2" text="bind:clstlcd" enable="false"/>
- <Cell col="3" displaytype="tree" edittype="expr:getRowType(currow) == 2 ? 'text' : 'tree'" style="padding:3 3 3 3;" text="bind:hngnm" expr="expr:String(hngnm).replace('\r\n', ' ')" wordwrap="word" treestartlevel="1" treelevel="bind:depth" autosizerow="limitmin" enable="false"/>
- <Cell col="4" displaytype="text" edittype="text" style="padding:3 3 3 3;" text="bind:desccnts" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="5" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="align:center middle;" text="bind:basepnt" editautoselect="true" enable="false"/>
- <Cell col="6" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none'" style="align:center middle;" text="bind:cnfmyn" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="7" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:timsinptyn" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label"/>
- <Cell col="8" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:cmtinptyn" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label"/>
- <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:inptchkflag" combodataset="ds_cmb_cnfmyn" combocodecol="value" combodatacol="label"/>
- <Cell col="10" displaytype="text" edittype="text" style="align:center middle;" text="bind:sortseq"/>
- <Cell col="11" displaytype="date" edittype="date" text="bind:fromdd" editautoselect="true" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="12" displaytype="date" edittype="date" text="bind:todd" editautoselect="true" calendardisplaynulltype="nulltext"/>
- <Cell col="13" text="bind:engnm"/>
- <Cell col="14" text="bind:desccnts"/>
- <Cell col="15" text="bind:deptcd"/>
- <Cell col="16" text="bind:refseq"/>
- <Cell col="17" text="bind:supcd"/>
- <Cell col="18" text="bind:depth"/>
- <Cell col="19" text="bind:grupflag"/>
- <Cell col="20" text="bind:clsflag"/>
- <Cell col="21" text="bind:recflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="clsflag" type="STRING" size="256"/>
- <Column id="recflag" type="STRING" size="256"/>
- <Column id="prestdt" type="STRING" size="256"/>
- <Column id="lrggrupcd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="clsflag"/>
- <Col id="recflag">1</Col>
- <Col id="prestdt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_detlgrup_detlgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlgrup_detlgruplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="stat" type="STRING" size="256" sumtext="저장속성"/>
- <Column id="clstlcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="hngnm" type="STRING" size="256" sumtext="한글명"/>
- <Column id="engnm" type="STRING" size="256" sumtext="영문명"/>
- <Column id="desccnts" type="STRING" size="256" sumtext="설명내용"/>
- <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="refseq" type="STRING" size="256" sumtext="정렬"/>
- <Column id="supcd" type="STRING" size="256" sumtext="상위코드"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="depth" type="STRING" size="256" sumtext="트리순서"/>
- <Column id="grupflag" type="STRING" size="256" sumtext="그룹구분"/>
- <Column id="clsflag" type="STRING" size="256" sumtext="분류구분"/>
- <Column id="recflag" type="STRING" size="256" sumtext="기록구분"/>
- <Column id="cnfmyn" type="STRING" size="256" sumtext="확인여부"/>
- <Column id="timsinptyn" type="STRING" size="256" sumtext="횟수입력여부"/>
- <Column id="cmtinptyn" type="STRING" size="256" sumtext="서술입력여부"/>
- <Column id="inptchkflag" type="STRING" size="256" sumtext="필수입력여부"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="sortseq" type="STRING" size="256" sumtext="정렬순서"/>
- <Column id="basepnt" type="STRING" size="256" sumtext="점수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_cnfmyn" 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">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_main_detlgrup_detlgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_detlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.input5" propid="value" datasetid="ds_main_cond" columnid="prestdt"/>
- <BindItem id="item1" compid="grp_sea.cmb_clsflag2" propid="value" datasetid="ds_main_cond" columnid="clsflag"/>
- <BindItem id="item2" compid="grp_sea.cmb_clsflag1" propid="value" datasetid="ds_main_cond" columnid="clsflag"/>
- <BindItem id="item3" compid="grp_sea.rdo_recflag" propid="value" datasetid="ds_main_cond" columnid="recflag"/>
- </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 "emr_carerecxp::SerDiag.xjs";
- function SMMNR02400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNR02400_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_detlgrup);
- grdf_setToolTipBind(grd_detlgrup)
- grp_sea.rdo_recflag.value = "1";
- fShowSearchCombo(grp_sea.rdo_recflag.value, 'grp_sea.caption3', 'grp_sea.cmb_clsflag1', 'grp_sea.cmb_clsflag2');
- fSearch();
- }
- function fSearch()
- {
- var iRow = ds_main_detlgrup_detlgruplist.rowposition;
- var clsflag = ds_main_cond.getColumn(0, "clsflag");
- var recflag = ds_main_cond.getColumn(0, "recflag");
- var prestdt = ds_main_cond.getColumn(0, "prestdt");
- if(utlf_isNull(clsflag) || clsflag == '')
- {
- clsflag = '1';
- }
- if(utlf_isNull(recflag) || recflag == '')
- {
- recflag = '1';
- }
- if(utlf_isNull(prestdt) || prestdt == '')
- {
- prestdt = utlf_getCurrentDate();
- }
-
- if(recflag == '2')
- {
- if(clsflag != '1' && clsflag != '2')
- {
- clsflag = '1';
- }
- }
- else if(recflag == '3')
- {
- clsflag = '1';
- }
-
- dsf_makeValue(ds_main_cond, "clsflag", "String", clsflag);
- dsf_makeValue(ds_main_cond, "recflag", "String", recflag);
- dsf_makeValue(ds_main_cond, "prestdt", "String", prestdt);
- dsf_makeValue(ds_main_cond, "supcd", "String", "00000000");
- var oParam = {};
- oParam.id = "TRMNR02404";
- oParam.service = "carerecapp.AsesRec";
- oParam.method = "reqGetDetlGrupList";
- oParam.inds = "refCond=ds_main_cond";
- oParam.outds = "ds_main_detlgrup_detlgruplist=detlgruplist";
- oParam.async = false;
- oParam.callback = "cf_TRMNR02404";
- tranf_submit(oParam);
- ds_main_detlgrup_detlgruplist.rowposition = 0;
- }
- function cf_TRMNR02404(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- ds_hidden_main_detlgrup_detlgruplist.copyData(ds_main_detlgrup_detlgruplist);
- }
- }
- function grd_detlgrup_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- var iRow = ds_main_detlgrup_detlgruplist.rowposition;
-
- if(grd_detlgrup.userdata == 1)
- {
- grd_detlgrup.userdata = 0;
- return;
- }
-
- var row = grd_detlgrup.getTreeRow(iRow);
-
- if(grd_detlgrup.getTreeStatus(row) == 0)
- {
- grd_detlgrup.setTreeStatus(row, true);
- }
- else if(grd_detlgrup.getTreeStatus(row) == 1)
- {
- grd_detlgrup.setTreeStatus(row, false);
- }
-
- grd_detlgrup.userdata = 0;
- countTree = 0;
- }
- function grp_sea_rdo_recflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fShowSearchCombo(obj.value, 'grp_sea.caption3', 'grp_sea.cmb_clsflag1', 'grp_sea.cmb_clsflag2');
- fSearch();
- }
- function grp_sea_cmb_clsflag2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- function grp_sea_input5_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fSearch();
- }
- function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddRowLevelOne();
- }
- function fAddRowLevelOne()
- {
- fSetAddRowValues('1');
- }
- function fSetAddRowValues(levelFlag)
- {
- var clsflag, recflag, depth, clstlcd ;
- var curRow = ds_main_detlgrup_detlgruplist.rowposition;
-
- if(levelFlag == '1')
- {
- clsflag = ds_main_cond.getColumn(0, "clsflag");
- recflag = ds_main_cond.getColumn(0, "recflag");
-
- depth = '1';
- clstlcd = '00000000';
- curRow = ds_main_detlgrup_detlgruplist.addRow();
- }
- else if(levelFlag == '2')
- {
- clstlcd = ds_main_detlgrup_detlgruplist.getColumn(curRow, "clstlcd");
- clsflag = ds_main_detlgrup_detlgruplist.getColumn(curRow, "clsflag");
- recflag = ds_main_detlgrup_detlgruplist.getColumn(curRow, "recflag");
- depth = Number(ds_main_detlgrup_detlgruplist.getColumn(curRow, "depth")) + 1;
- curRow = ds_main_detlgrup_detlgruplist.insertRow(curRow+1);
- }
-
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "hngnm", "");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "stat", "i");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "basepnt", "0");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "cnfmyn", "Y");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "timsinptyn", "N");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "cmtinptyn", "Y");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "inptchkflag", "Y");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "sortseq", "0");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "fromdd", utlf_getCurrentDate());
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "todd", "99991231");
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "recflag", recflag);
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "clsflag", clsflag);
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "supcd", clstlcd);
- ds_main_detlgrup_detlgruplist.setColumn(curRow , "depth", depth);
- return curRow;
- }
- function ds_main_detlgrup_detlgruplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- var curRow = e.row;
- if(obj.getColumn(curRow, "stat") != "i")
- {
- obj.setColumn(curRow , "stat", "u");
- }
- }
- function grp_sea_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddRowLevelTwo();
- }
- function fAddRowLevelTwo()
- {
- var iRow = ds_main_detlgrup_detlgruplist.rowposition;
- var supcd = ds_main_detlgrup_detlgruplist.getColumn(iRow, "supcd");
- var clstlcd = ds_main_detlgrup_detlgruplist.getColumn(iRow, "clstlcd");
-
- if(utlf_isNull(clstlcd))
- {
- clstlcd = "";
- }
- if(iRow < 0 || supcd != "00000000" || (supcd == '00000000' && utlf_isNull(clstlcd)))
- {
- sysf_messageBox("1차 분류항목을 선택하지 않아 2차분류를 추가", "E001");
- return;
- }
-
- var curRow = fSetAddRowValues('2');
- }
- function grp_sea_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- fOpenGroup();
- }
- function fOpenGroup()
- {
- grd_detlgrup.treeinitstatus = "expand,all";
- }
- function grp_sea_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_detlgrup.treeinitstatus = "collapse,all";
- }
- function grp_sea_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
- }
- function fIsValid()
- {
- var saveyn = 0 ;
- var sRowCnt = ds_main_detlgrup_detlgruplist.rowcount;
-
- if(sRowCnt < 0)
- {
- return false;
- }
-
- var fromdd, todd;
- for(var i = 0; i < sRowCnt; i++)
- {
- fromdd = parseInt(ds_main_detlgrup_detlgruplist.getColumn(i, "fromdd"));
- todd = parseInt(ds_main_detlgrup_detlgruplist.getColumn(i, "todd"));
-
- if(utlf_isNull(ds_main_detlgrup_detlgruplist.getColumn(i, "hngnm")))
- {
- sysf_messageBox(parseInt(i+1)+ "번째의 분류도구명을","C001");
- return false;
- }
- if(fromdd > todd)
- {
- sysf_messageBox(parseInt(i+1) + "번째의 시작일자를 종료일자보다 이후날짜로 입력","E001");
- return false;
- }
- if(ds_main_detlgrup_detlgruplist.getColumn(i, "stat") != "-")
- {
- saveyn = 1 ;
- }
- }
- if(saveyn <= 0 )
- {
- return false;
- }
-
- return true;
- }
- function fSave()
- {
- if(fIsValid())
- {
- var update = grdf_getGridUpdateData(grd_detlgrup, "i")
- ds_send_detlgrup.copyData(update);
-
- dsf_makeValue(ds_send, "lrggrupcd", "string" , ds_main_cond.getColumn(0, "lrggrupcd"));
- dsf_makeValue(ds_send, "clsflag", "string" , ds_main_cond.getColumn(0, "clsflag"));
- dsf_makeValue(ds_send, "recflag", "string" , ds_main_cond.getColumn(0, "recflag"));
- dsf_makeValue(ds_send, "todd2", "string" , ds_main_cond.getColumn(0, "todd"));
-
- var oParam = {};
- oParam.id = "TXMNR02402";
- oParam.service = "carerecapp.AsesRec";
- oParam.method = "reqExeDetlGrupInfo";
- oParam.inds = "detlgrup=ds_main_detlgrup_detlgruplist";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMNR02402";
- tranf_submit(oParam);
-
- ds_main_detlgrup_detlgruplist.rowposition = 0;
- }
- }
- function cf_TXMNR02402(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- ds_hidden_main_detlgrup_detlgruplist.copyData(ds_main_detlgrup_detlgruplist);
- fSearch();
- }
- }
- function grd_detlgrup_cantreestatuschange(obj:Grid, e:GridTreeStatusEventInfo)
- {
- obj.userdata = 1;
- }
- ]]></Script>
- </Form>
- </FDL>
|