123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMMD06300" position="absolute 0 0 394 659" titletext="기초 임상정보" onload="SPMMD06300_onload">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 19 393 59" id="roundrect3" type="roundrectangle"/>
- <Div position="absolute 0 626 390 656" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 274 4 330 24" id="button7" class="btn4" text="등록" onclick="grp_btn_button7_onclick" anchor="default"/>
- <Button position="absolute 332 4 388 24" id="button3" class="btn4" text="닫기" onclick="grp_btn_button3_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 0 480 393 624" id="grd_selectitemlist" binddataset="ds_main_selectitemlist" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="182"/>
- <Column size="58"/>
- <Column size="35"/>
- <Column size="58"/>
- <Column size="35"/>
- <Column size="80"/>
- <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 text="testitemcd"/>
- <Cell col="1" text="testcd"/>
- <Cell col="2" text="검사항목"/>
- <Cell col="3" colspan="2" text="하한치" taborder="undefined"/>
- <Cell col="5" colspan="2" text="상한치" taborder="undefined"/>
- <Cell col="7" text="단위"/>
- <Cell col="8" text="refseq"/>
- <Cell col="9" text="alertcdflag"/>
- <Cell col="10" text="alertrem"/>
- <Cell col="11" text="alertprecondyn"/>
- <Cell col="12" text="checkyn"/>
- <Cell col="13" text="m"/>
- </Band>
- <Band id="body">
- <Cell text="bind:testitemcd"/>
- <Cell col="1" text="bind:testcd"/>
- <Cell col="2" text="bind:testnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:reflval"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:lvalappflag"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:refhval"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:hvalappflag"/>
- <Cell col="7" text="bind:unitnm"/>
- <Cell col="8" text="bind:refseq"/>
- <Cell col="9" text="bind:alertcdflag"/>
- <Cell col="10" text="bind:alertrem"/>
- <Cell col="11" text="bind:alertprecondyn"/>
- <Cell col="12" text="bind:checkyn"/>
- <Cell col="13" text="bind:m"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 330 29 386 49" id="btn_srch" class="btn1" text="조회" onclick="btn_srch_onclick"/>
- <Static text="검사항목 :" position="absolute 3 30 93 50" id="caption4" class="search_name"/>
- <Static text="선택 기초 임상정보" position="absolute 4 459 146 479" id="caption5" class="tit_2"/>
- <Edit position="absolute 93 30 320 50" id="input3" onkeydown="input3_onkeydown" oneditclick="input3_oneditclick"/>
- <Button position="absolute 285 459 349 479" id="button6" class="btn2" text="항목추가" onclick="button6_onclick"/>
- <Grid position="absolute 0 63 393 453" id="grd_baselist" binddataset="ds_main_codelist" oncellclick="grd_baselist_oncellclick" autofittype="col" oncelldblclick="grd_baselist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="38"/>
- <Column size="298"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="검사항목"/>
- <Cell col="2" text="itemcd"/>
- <Cell col="3" text="depth"/>
- <Cell col="4" text="refseq"/>
- <Cell col="5" text="단위"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:boolflag"/>
- <Cell col="1" text="bind:itemnm"/>
- <Cell col="2" text="bind:itemcd"/>
- <Cell col="3" text="bind:depth"/>
- <Cell col="4" text="bind:refseq"/>
- <Cell col="5" text="bind:unitnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="기초 임상정보" position="absolute 0 0 142 20" id="caption14" class="tit_2"/>
- <Button position="absolute 351 459 393 479" id="button1" class="btn2_letter2" text="삭제" onclick="button1_onclick"/>
- </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="chkinfo" type="STRING" size="256"/>
- <Column id="itemnm" type="STRING" size="256"/>
- <Column id="alertcdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="chkinfo">B</Col>
- <Col id="itemnm"/>
- <Col id="alertcdflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="boolflag" type="STRING"/>
- <Column id="itemnm" type="STRING"/>
- <Column id="itemcd" type="STRING"/>
- <Column id="depth" type="STRING"/>
- <Column id="refseq" type="STRING"/>
- <Column id="unitnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_selectitemlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testitemcd" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="reflval" type="STRING"/>
- <Column id="lvalappflag" type="STRING"/>
- <Column id="refhval" type="STRING"/>
- <Column id="hvalappflag" type="STRING"/>
- <Column id="unitnm" type="STRING"/>
- <Column id="refseq" type="STRING"/>
- <Column id="alertcdflag" type="STRING"/>
- <Column id="alertrem" type="STRING"/>
- <Column id="alertprecondyn" type="STRING"/>
- <Column id="checkyn" type="STRING"/>
- <Column id="m" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="input3" propid="value" datasetid="ds_main_cond" columnid="itemnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-04-03
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-04-03 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var openflag = "";
- function SPMMD06300_onload(obj:Form, e:LoadEventInfo)
- {
- var openflag = opener.ds_main_cond.getColumn(0, "condbutton"); //opener.model.getValue("/root/main/cond/condbutton");
- var alertcdflag = opener.ds_main_cond.getColumn(0, "alertcdflag"); //opener.model.getValue("/root/main/cond/alertcdflag");
- ds_main_codelist.clearData(); //model.removeNodeset("/root/main/codeinfo/codelist");
- ds_main_selectitemlist.clearData(); //model.removeNodeset("/root/main/selectitemlnfo/selectitemlist");
- ds_main_cond.setColumn(0, "alertcdflag", alertcdflag); //model.setValue("/root/main/cond/alertcdflag", alertcdflag);
-
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("btn_srch", "onclick", ev ); //btn_srch.dispatch("DOMActivate");
-
- //model.refresh();
- }
- /**
- * @desc : 단일 진단코드 선택, 그리드 클릭
- * @
- * @param : trgtrow - 현재 클릭한 그리드의 row 위치
- * @return :
- * @---------------------------------------------------
- */
- function fAddDiag(trgtrow){
- var supcd = ds_main_codelist.getColumn(trgtrow, "supcd"); //model.getValue("/root/main/codeinfo/codelist[" + trgtrow + "]/supcd");
- var itemcd = ds_main_codelist.getColumn(trgtrow, "itemcd"); //model.getValue("/root/main/codeinfo/codelist[" + trgtrow + "]/itemcd");
- var itemnm = ds_main_codelist.getColumn(trgtrow, "itemnm"); //model.getValue("/root/main/codeinfo/codelist[" + trgtrow + "]/itemnm");
- var unitnm = ds_main_codelist.getColumn(trgtrow, "unitnm"); //model.getValue("/root/main/codeinfo/codelist[" + trgtrow + "]/unitnm");
- if (utlf_isNull(unitnm)) unitnm = "-";
- var fndrow = ds_main_selectitemlist.findRow("testcd", itemcd); //grd_selectitemlist.findRow(itemcd, 1, 0, "true", "true");
-
- if(fndrow < 0){
- ds_main_selectitemlist.addRow(); // grd_selectitemlist.addRow(false);
- currow = ds_main_selectitemlist.rowposition; // currow = grd_selectitemlist.row;
- ds_main_selectitemlist.setColumn(currow, "testitemcd", "supcd"); // model.makeValue("/root/main/selectitemlnfo/selectitemlist[" + currow + "]/testitemcd" , supcd);
- ds_main_selectitemlist.setColumn(currow, "testcd", "itemcd"); // model.makeValue("/root/main/selectitemlnfo/selectitemlist[" + currow + "]/testcd" , itemcd);
- ds_main_selectitemlist.setColumn(currow, "testnm", "itemnm"); // model.makeValue("/root/main/selectitemlnfo/selectitemlist[" + currow + "]/testnm" , itemnm);
- ds_main_selectitemlist.setColumn(currow, "unitnm", "unitnm"); // model.makeValue("/root/main/selectitemlnfo/selectitemlist[" + currow + "]/unitnm" , unitnm);
- ds_main_selectitemlist.setColumn(currow, "lvalappflag", "U"); // model.makeValue("/root/main/selectitemlnfo/selectitemlist[" + currow + "]/lvalappflag" , "U");
- ds_main_selectitemlist.setColumn(currow, "hvalappflag", "D"); // model.makeValue("/root/main/selectitemlnfo/selectitemlist[" + currow + "]/hvalappflag" , "D");
- }
- //model.refresh();
- }
-
-
- /**
- * @desc : 다수의 진단코드 선택 후, 진단추가버튼 클릭
- * @ : 1. check box에 선택된 진단을 추가
- * @ : 2. ctrl + mouse select로 선택된 진단을 추가
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fAppendDiagCD(){
- var totrow = ds_main_codelist.rowcount; //grd_baselist.rows;
- for(var i = 0; i < totrow; i++){
- var bflag = ds_main_codelist.getColumn(i, "boolflag"); //grd_baselist.valueMatrix(i, grd_baselist.colRef("boolflag"));
- if(bflag == "Y"){
- fAddDiag(i);
- ds_main_codelist.setColumn(i, "boolflag", "N"); //grd_baselist.valueMatrix(i, grd_baselist.colRef("boolflag")) = "N"; //복사한 진단은 check box의 값을 해체
- }
- }
- //grd_selectitemlist.rebuild();
- }
-
-
- /**
- * @desc : 진단코드리스트 전달
- * @
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- function fSendItemCDList(){
- if(frmf_checkOpener()){
- var condbutton = opener.ds_main_cond.getColumn(0, "condbutton"); //opener.model.getValue("/root/main/cond/condbutton");
- var alertcdflag = opener.ds_main_cond.getColumn(0, "alertcdflag"); //opener.model.getValue("/root/main/cond/alertcdflag");
- if (condbutton == "IF") {
- var sRows = ds_main_selectitemlist.rowcount; //grd_selectitemlist.rows;
- var testnm = ds_main_selectitemlist.getColumn(0, "testnm"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/testnm");
- var testitemcd = ds_main_selectitemlist.getColumn(0, "testitemcd"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/testitemcd");
- var testcd = ds_main_selectitemlist.getColumn(0, "testcd"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/testcd");
- var refhval = ds_main_selectitemlist.getColumn(0, "refhval"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/refhval");
- var reflval = ds_main_selectitemlist.getColumn(0, "reflval"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/reflval");
- var alertrem = testnm + " :" + reflval + "~" + refhval;
-
- var hvalappflag = ds_main_selectitemlist.getColumn(0, "hvalappflag"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/hvalappflag");
- var lvalappflag = ds_main_selectitemlist.getColumn(0, "lvalappflag"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/lvalappflag");
- var unitnm = ds_main_selectitemlist.getColumn(0, "unitnm"); //model.getValue("/root/main/selectitemlnfo/selectitemlist/unitnm");
- var alertprecondyn = "Y";
-
- var rtn = "testitemcd▦testcd▦testnm▦hvalappflag▦lvalappflag▦refhval▦reflval▦unitnm▦refseq▦alertcdflag▦alertrem▦alertprecondyn▦checkyn▦m" ;
- rtn += "▩" + testitemcd + "▦" + testcd + "▦" + testnm + "▦" + hvalappflag + "▦" + lvalappflag+ "▦" + refhval + "▦" + reflval + "▦" + unitnm + "▦" + "▦" + alertcdflag + "▦" + alertrem + "▦" + alertprecondyn + "▦" + "▦";
- opener.frmf_setParameter( "SPMMD06100_detlinfo", rtn );
- //}
-
- } else {
- if ( ds_main_selectitemlist.rowcount < "1" ) {
- sysf_messageBox ( "선택된 처방이", "I004" );
- }
- //var rtn1 = getItemNodeListCSV ( model.instances(0).selectNodes( "/root/main/selectitemlnfo/selectitemlist" ));
- var rtn = "testitemcd▦testcd▦testnm▦hvalappflag▦lvalappflag▦refhval▦reflval▦unitnm▦refseq▦alertcdflag▦alertrem▦alertprecondyn▦checkyn▦m" ;
- //var Select_Path = "/root/main/selectitemlnfo/selectitemlist";
-
- for (i = 0; i < ds_main_selectitemlist.rowcount; i ++) {
- var testitemcd = ds_main_selectitemlist.getColumn(i, "testitemcd"); //model.getValue(Select_Path + "[" + i + "]/testitemcd");
- var testcd = ds_main_selectitemlist.getColumn(i, "testcd"); //model.getValue(Select_Path + "[" + i + "]/testcd");
- var testnm = ds_main_selectitemlist.getColumn(i, "testnm"); //model.getValue(Select_Path + "[" + i + "]/testnm");
- var hvalappflag = ds_main_selectitemlist.getColumn(i, "hvalappflag"); //model.getValue(Select_Path + "[" + i + "]/hvalappflag");
- var lvalappflag = ds_main_selectitemlist.getColumn(i, "lvalappflag"); //model.getValue(Select_Path + "[" + i + "]/lvalappflag");
- var refhval = ds_main_selectitemlist.getColumn(i, "refhval"); //model.getValue(Select_Path + "[" + i + "]/refhval");
- var reflval = ds_main_selectitemlist.getColumn(i, "reflval"); //model.getValue(Select_Path + "[" + i + "]/reflval");
- var unitnm = ds_main_selectitemlist.getColumn(i, "unitnm"); //model.getValue(Select_Path + "[" + i + "]/unitnm");
- var refseq = ds_main_selectitemlist.getColumn(i, "refseq"); //model.getValue(Select_Path + "[" + i + "]/refseq");
- var alertrem = ds_main_selectitemlist.getColumn(i, "alertrem"); //model.getValue(Select_Path + "[" + i + "]/alertrem");
- var alertprecondyn = "N"
- var checkyn = ds_main_selectitemlist.getColumn(i, "checkyn"); //model.getValue(Select_Path + "[" + i + "]/checkyn");
- var m = ds_main_selectitemlist.getColumn(i, "m"); //model.getValue(Select_Path + "[" + i + "]/m");
-
- rtn += "▩" + testitemcd + "▦" + testcd + "▦" + testnm + "▦" + hvalappflag + "▦" + lvalappflag+ "▦" + refhval + "▦" + reflval + "▦" + unitnm + "▦" + "▦" + alertcdflag + "▦" + alertrem + "▦" + alertprecondyn + "▦" + "▦";
- }
- opener.frmf_setParameter( "SPMMD06100_detlinfo", rtn );
- }
- close();
- }
- }
-
-
- /**
- * @desc : 진단코드 전달
- * @ :
- * @param :
- * @return :
- * @---------------------------------------------------
- */
- /* 이 함수 사용 안하는 듯...
- function fSendDiag(currow){
- if(frmf_checkOpener()){
- //var nodelist = model.instance1.selectNodes("/root/main/selectiteminfo/selectitemlist[" + currow + "]");
- //var node = nodelist.item(0);
- var nodepath = opener.frmf_getParameter("SPMQP00300_param_nodepath");
-
- if(nodepath == ""){ //opener의 특정 nodepath를 넘겨주지 않은 경우
- //var selectnode = opener.instance1.selectSingleNode("/root/temp/selectitemlist");
- if(selectnode == null){ //opener에 node를 만든다.
- opener.model.makeNode("/root/temp/selectitemlist");
- }
- model.copyNode(opener.root.temp.selectitemlist, node);
-
- }else{ //opener의 특정 nodepath를 넘겨준 경우
- var selectnode = opener.instance1.selectSingleNode(nodepath);
- if(selectnode == null){ //opener에 node를 만든다.
- opener.model.makeNode(nodepath);
- }
- opener.model.copyNode(nodepath, node); //opener에 복사
- }
- opener.javascript.setParameter("SPMQP00300_rtn_useyn", "Y");
-
- }else{
- messageBox("상위 화면이 변경되어 데이터를 전달", "E001");
-
- }
- window.close();
- } */
-
- /* 사용하지 않는 함수 이 화면에서 호출하지 않음
- function getItemNodeListCSV(nodeList) {
- if( nodeList.length == 0 ){
- return;
- }
-
- var sColSep = "▦";
- var sRowSep = "▩";
-
- var rCSV = "";
-
- var childNodeList = nodeList.item(0).childNodes;
- var childNodeCnt = childNodeList.length;
- if( childNodeCnt == 0 ){
- return;
- }
-
- var i, j;
- for( i = 0; i < childNodeCnt - 1; i++) {
- rCSV += childNodeList.item(i).nodeName + sColSep;
- }
- rCSV += childNodeList.item(i).nodeName// + sRowSep;
-
- var node;
- var cnt = 1;
- var selCnt = 0;
- while( node = nodeList.nextNode() ) {
- rCSV += sRowSep;
- childNodeList = node.childNodes;
- for( i = 0; i < childNodeCnt - 1; i++) {
- rCSV += childNodeList.item(i).text + sColSep;
- }
- rCSV += childNodeList.item(i).text;
- selCnt++;
- }
- if ( selCnt == 0 ) {
- return "N"
- } else {
- return rCSV;
- }
- }*/
-
- function grp_btn_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- fSendItemCDList();
- }
- function grp_btn_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- close();
- }
- function btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_reqdata.copyData(ds_main_cond); //model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- var oParam = {};
- oParam.id = "TRMMD06301";
- oParam.service = "cdssmngtapp.ClinicalRuleMngt";
- oParam.method = "reqGetBaseItemList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_codelist=codelist";
- oParam.async = false;
- oParam.callback = "cf_TRMMD06301";
- tranf_submit(oParam);
- //setTree(grd_baselist, grd_baselist.colRef("depth"), grd_baselist.colRef("itemnm"), false);
- //model.refresh();
- }
- function button6_onclick(obj:Button, e:ClickEventInfo)
- {
- fAppendDiagCD();
- }
- function grd_baselist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if ( e.row > -1 ) {
- var currow = ds_main_codelist.rowposition; //grd_baselist.row;
- if(currow > 0){
- var depth = ds_main_codelist.getColumn(currow, "depth"); //model.getValue("/root/main/codeinfo/codelist[" + currow + "]/depth");
- if (depth !="1") {
- fAddDiag(currow);
- }
- }
- }
- //model.refresh();
- }
- function grd_baselist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if ( e.row > -1 ) {
- var grdcol = obj.getCellPos(); //grd_baselist.col
- var currow = ds_main_codelist.rowposition; //grd_baselist.row
- var rows = ds_main_codelist.rowcount; //grd_baselist.rows
- var grdrow = rows - currow;
- var rowno = rows - 1;
- if (grdcol == "0") {
- var boolflag = ds_main_codelist.getColumn(currow, "boolflag"); //model.getValue("/root/main/codeinfo/codelist[" + currow + "]/boolflag");
- if (boolflag == "N" ) {
- ds_main_codelist.setColumn(currow, "boolflag", "N"); //model.setValue("/root/main/codeinfo/codelist[" + currow + "]/boolflag", "N");
- } else {
- ds_main_codelist.setColumn(currow, "boolflag", "Y"); //model.setValue("/root/main/codeinfo/codelist[" + currow + "]/boolflag", "Y");
- }
- var depth = ds_main_codelist.getColumn(currow, "depth"); //model.getValue("/root/main/codeinfo/codelist[" + currow + "]/depth");
- if (depth == "1") {
- if (boolflag =="Y") ds_main_codelist.setColumn(currow, "boolflag", "N"); //model.setValue("/root/main/codeinfo/codelist[" + currow + "]/boolflag", "N");
- for (i = 0 ; i < grdrow ; i ++ ) {
- currow = currow + 1;
- depth = ds_main_codelist.getColumn(currow, "depth"); //model.getValue("/root/main/codeinfo/codelist[" + currow + "]/depth");
- if (depth != "1") {
- if (currow <= rowno) {
- var boolflag = ds_main_codelist.getColumn(currow, "boolflag"); //model.getValue("/root/main/codeinfo/codelist[" + currow + "]/boolflag")
- if (boolflag == "Y") {
- ds_main_codelist.setColumn(currow, "boolflag", "N"); //model.setValue("/root/main/codeinfo/codelist[" + currow + "]/boolflag", "N");
- } else {
- ds_main_codelist.setColumn(currow, "boolflag", "Y"); //model.setValue("/root/main/codeinfo/codelist[" + currow + "]/boolflag", "Y");
- }
- }
- } else if (depth == "1") {
- return;
- }
- }
- }
- }
- }
- //model.refresh();
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var selectedRowList = grdf_getSelectedRows(grd_selectitemlist); //grd_selectitemlist.selectedRows;
-
- if( selectedRowList > 0 ){
- for (var i = selectedRowList - 1; i >= 0; i--) {
- ds_main_selectitemlist.deleteRow(i); //model.removeNodeset("/root/main/selectitemlnfo/selectitemlist[" + grd_selectitemlist.selectedrow(i) + "]");
- }
- //grd_selectitemlist.refresh();
- }
- }
- function input3_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == "13") {
- frmf_inputEnterKey("btn_srch", "DOMActivate");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|