123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHA03170" position="absolute 0 0 1201 796" titletext="예약인원관리" oninit="SMAHA03170_oninit" onload="SMAHA03170_onload">
- <Layouts>
- <Layout>
- <Static id="caption19" text="예약인원관리" class="tit_1" position="absolute 0 0 218 25"/>
- <Div id="grp_sea" taborder="1" position="absolute 0 25 1195 65" anchor="left top right" class="div_SA">
- <Layouts>
- <Layout>
- <Static id="caption2" text="건진상세구분 :" class="search_name" position="absolute 15 10 127 27" anchor="default"/>
- <Combo id="cmb_healexamdetlflag" taborder="1" innerdataset="@ds_init_baseinfo_healexamdetlflag_A0069" codecolumn="cdid" datacolumn="cdnm" class="combo_default" position="absolute 133 10 345 29" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Calendar id="ipt_fromdate" taborder="2" class="input_s_essential" position="absolute 963 77 1066 96" autoselect="true" autoskip="true"/>
- <Grid id="datagrid2" taborder="3" binddataset="ds_main_rsrvddinfo_rsrvddlist" useinputpanel="false" position="absolute 882 135 1195 757" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="121"/>
- <Column size="61"/>
- <Column size="71"/>
- <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="caption1"/>
- <Cell col="5" text="caption2"/>
- <Cell col="6" text="caption3"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="date" edittype="date" text="bind:rsrvdd" calendardisplaynulltype="nulltext" enable="false"/>
- <Cell col="2" text="bind:yoil"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:maxallcnt" editautoselect="true"/>
- <Cell col="4" text="bind:testcd"/>
- <Cell col="5" text="bind:testroomcd"/>
- <Cell col="6" text="bind:healexamdetlflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="4" text="생성" class="btn4" position="absolute 1128 102 1184 124" onclick="button1_onclick"/>
- <Grid id="grd_roomlst" taborder="5" binddataset="ds_main_excuroom_excuroomlist" useinputpanel="false" position="absolute 0 100 275 757" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left top bottom" oncellclick="grd_roomlst_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="67"/>
- <Column size="167"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="검사실코드"/>
- <Cell col="2" text="검사실명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:testroomcd"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:testroomnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption21" text="기준일자 :" class="search_name" position="absolute 883 78 974 95"/>
- <Button id="btn_grddel" taborder="6" text="행삭제" class="btn2" position="absolute 763 80 816 99" onclick="btn_grddel_onclick"/>
- <Static id="caption23" text="~" position="absolute 1072 78 1087 98"/>
- <Calendar id="input1" taborder="7" class="input_s_essential" position="absolute 1087 77 1190 96" autoselect="true" autoskip="true"/>
- <Button id="btn_save" taborder="8" text="저장" class="btn4" position="absolute 818 77 874 99" onclick="btn_save_onclick"/>
- <Button id="btn_grdadd" taborder="9" text="행추가" class="btn2" position="absolute 708 80 761 99" onclick="btn_grdadd_onclick"/>
- <Grid id="datagrid1" taborder="10" binddataset="ds_main_testcode_testcodelist" useinputpanel="false" position="absolute 280 100 875 757" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left top bottom" onexpanddown="datagrid1_onexpanddown" oncellclick="datagrid1_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="40"/>
- <Column size="120"/>
- <Column size="326"/>
- <Column size="64"/>
- <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="caption1"/>
- <Cell col="6" text="caption2"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:chk == 'Y' ? 1 : 0"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:testcd" expandshow="show" enable="false"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:testnm"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:center middle;" text="bind:maxallcnt" editautoselect="true"/>
- <Cell col="5" text="bind:testroomcd"/>
- <Cell col="6" text="bind:healexamdetlflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_sea" taborder="11" text="조회" class="btn1" visible="false" position="absolute 1065 102 1121 124" onclick="btn_sea_onclick"/>
- <Static id="caption1" text="검사실 :" class="tit_2" position="absolute 281 80 352 102"/>
- <Edit id="input2" taborder="12" enable="false" position="absolute 350 77 395 96"/>
- <Edit id="input3" taborder="13" enable="false" position="absolute 397 77 592 96"/>
- <Button id="button2" taborder="14" text="저장" class="btn4" position="absolute 1139 760 1195 782" anchor="right bottom" onclick="button2_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="healexamdetlflag" type="STRING" size="256"/>
- <Column id="srchfromdd" type="STRING" size="256"/>
- <Column id="srchtodd" type="STRING" size="256"/>
- <Column id="otestroomcd" type="STRING" size="256"/>
- <Column id="otestroomnm" type="STRING" size="256"/>
- <Column id="testcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="healexamdetlflag"/>
- <Col id="srchfromdd"/>
- <Col id="srchtodd"/>
- <Col id="otestroomcd"/>
- <Col id="otestroomnm"/>
- <Col id="testcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_excuroom_excuroomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testroomcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="testroomnm" type="STRING" size="256" sumtext="검사실명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_testcode_testcodelist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_testcode_testcodelist_oncolumnchanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext="선택"/>
- <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="testnm" type="STRING" size="256" sumtext="검사명"/>
- <Column id="maxallcnt" type="INT" size="256" sumtext="인원"/>
- <Column id="testroomcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_rsrvddinfo_rsrvddlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자"/>
- <Column id="yoil" type="STRING" size="256" sumtext="요일"/>
- <Column id="maxallcnt" type="STRING" size="256" sumtext="인원"/>
- <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="testroomcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_baseinfo_healexamdetlflag_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo1_healexamdetlflag_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_senddata_execdata_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_senddata1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="testroomcd" type="STRING" size="256"/>
- <Column id="testroomnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="testroomcd"/>
- <Col id="testroomnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_senddata_execdata1_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_senddata_execdata2_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_test" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_healexamdetlflag" propid="value" datasetid="ds_send" columnid="healexamdetlflag"/>
- <BindItem id="item1" compid="input2" propid="value" datasetid="ds_send" columnid="otestroomcd"/>
- <BindItem id="item2" compid="input3" propid="value" datasetid="ds_send" columnid="otestroomnm"/>
- <BindItem id="item3" compid="ipt_fromdate" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
- <BindItem id="item4" compid="input1" propid="value" datasetid="ds_send" columnid="srchtodd"/>
- </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";
- var arErrorCode = new HashArray();
- function SMAHA03170_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAHA03170_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_roomlst);
- grdf_initGrid(datagrid1);
- grdf_initGrid(datagrid2);
-
- var arrParam = [{dsNm: "ds_init_baseinfo_healexamdetlflag_A0069", cdGrpId: "A0069"}
- ,{dsNm: "ds_init_baseinfo1_healexamdetlflag_A0070", cdGrpId: "A0070"}]
- appf_getCodeList(arrParam);
-
- ds_init_baseinfo_healexamdetlflag_A0069.appendData(ds_init_baseinfo1_healexamdetlflag_A0070);
- ds_send.setColumn(0, "srchfromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchtodd", utlf_getCurrentDate().toDate().getAddDate(3,"M").getDateFormat("YYYYMMDD"));
-
- grp_sea.cmb_healexamdetlflag.index = 0;
-
- ds_send.addColumn("basesuppdeptcd", "string");
-
- var oParam = {};
- oParam.id = "TRAHA03171";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqGetExcuRoomList";
- oParam.inds = "reqparam=ds_send";
- oParam.outds = "ds_main_excuroom_excuroomlist=excuroomlist";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03171";
- tranf_submit(oParam);
- }
- var datasetTemp = "";
- function readfunc()
- {
- ds_send.setColumn(0, "otestroomcd", ds_main_excuroom_excuroomlist.getColumn(ds_main_excuroom_excuroomlist.rowposition, "testroomcd"));
- ds_send.setColumn(0, "otestroomnm", ds_main_excuroom_excuroomlist.getColumn(ds_main_excuroom_excuroomlist.rowposition, "testroomnm"));
-
- ds_main_testcode_testcodelist.clearData();
- ds_main_rsrvddinfo_rsrvddlist.clearData();
-
- if (!utlf_isNull(ds_send.getColumn(0, "otestroomcd")))
- {
- var oParam = {};
- oParam.id = "TRAHA03172";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqGetTestCodeList";
- oParam.inds = "reqparam=ds_send";
- oParam.outds = "ds_main_testcode_testcodelist=testcodelist";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03172";
- tranf_submit(oParam);
-
- datasetTemp = ds_main_testcode_testcodelist.saveXML();
- }
- }
- function grd_roomlst_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- readfunc();
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(ds_send.getColumn(0, "healexamdetlflag")))
- {
- sysf_messageBox("건진상세구분을 선택한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
- if (utlf_isNull(ds_send.getColumn(0, "otestroomcd")))
- {
- sysf_messageBox("검사실코드를 선택한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
-
- var irow = ds_main_testcode_testcodelist.addRow();
- ds_main_testcode_testcodelist.setColumn(irow, "healexamdetlflag", ds_send.getColumn(0, "healexamdetlflag"));
- ds_main_testcode_testcodelist.setColumn(irow, "testroomcd", ds_send.getColumn(0, "otestroomcd"));
-
- datagrid1.setFocus();
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_testcode_testcodelist.deleteRow(ds_main_testcode_testcodelist.rowposition);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveData();
- }
- function datacheck()
- {
- var scdid1 = "";
- var scdid2 = "";
- for (var i = 0; i < ds_main_testcode_testcodelist.rowcount; i ++)
- {
- if (utlf_isNull(ds_main_testcode_testcodelist.getColumn(i, "testcd")))
- {
- sysf_messageBox("검사코드는 필수 선택항목입니다.", "E999", "");
- return false;
- }
- if (utlf_isNull(ds_main_testcode_testcodelist.getColumn(i, "maxallcnt")))
- {
- sysf_messageBox("인원은 필수 입력항목입니다.", "E999", "");
- return false;
- }
- scdid1 = ds_main_testcode_testcodelist.getColumn(i, "testcd");
- var k = i + 1;
- for (var j = k; j < ds_main_testcode_testcodelist.rowcount; j++)
- {
- scdid2 = ds_main_testcode_testcodelist.getColumn(j, "testcd");
- if (i != j)
- {
- if (scdid1 == scdid2)
- {
- sysf_messageBox(parseInt(j+1) + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- return true;
- }
- function fSaveData()
- {
- if (datacheck() == false)
- {
- return;
- }
-
- if(datasetTemp != ds_main_testcode_testcodelist.saveXML())
- {
- ds_main_testcode_testcodelist.enableevent = false;
- ds_main_testcode_testcodelist.updatecontrol = false;
- dsf_setDefaultVal(ds_main_testcode_testcodelist, "maxallcnt:0");
- ds_main_testcode_testcodelist.updatecontrol = true;
- ds_main_testcode_testcodelist.enableevent = true;
- var oParam = {};
- oParam.id = "TXAHA03171";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqExeTestRoomList";
- oParam.inds = "codelist=ds_main_testcode_testcodelist:A";
- oParam.outds = "ds_=item";
- oParam.typeStr = "m";
- oParam.async = false;
- oParam.callback = "cf_TXAHA03171";
- tranf_submit(oParam);
- }
- }
- function cf_TXAHA03171(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- readfunc();
- }
- }
- function ds_main_testcode_testcodelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "chk")
- {
- obj.setColumn(e.row, "chk", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function datagrid1_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- ds_senddata1.setColumn(0, "testroomcd", ds_send.getColumn(0, "otestroomcd"));
- ds_senddata1.setColumn(0, "testroomnm", ds_send.getColumn(0, "otestroomnm"));
-
- ds_main_testcode_testcodelist.setColumn(ds_main_testcode_testcodelist.rowposition, "chk", "Y");
-
- // model.property("testcd") = "/root/main/testcode/testcodelist[" + datagrid1.row + "]/testcd";
- // model.property("testnm") = "/root/main/testcode/testcodelist[" + datagrid1.row + "]/testnm";
- var objArg = new Object();
- objArg.arg_ds_popdata = ds_senddata1;
- objArg.testcd = "ds_main_testcode_testcodelist/ds_main_testcode_testcodelist.rowposition/testcd";
- objArg.testnm = "ds_main_testcode_testcodelist/ds_main_testcode_testcodelist.rowposition/testnm";
- frmf_modal("SPAHA05010", "SPAHA05010", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- readfunc1();
- }
- function readfunc1()
- {
- ds_main_rsrvddinfo_rsrvddlist.clearData();
-
- var status = ds_main_testcode_testcodelist.getRowType(ds_main_testcode_testcodelist.rowposition);
- if (status == 1)
- {
- ds_send.setColumn(0, "testcd", ds_main_testcode_testcodelist.getColumn(ds_main_testcode_testcodelist.rowposition, "testcd"));
-
- var oParam = {};
- oParam.id = "TRAHA03173";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqGetRsrvddList";
- oParam.inds = "reqparam=ds_send";
- oParam.outds = "ds_main_rsrvddinfo_rsrvddlist=rsrvddlist";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03173";
- tranf_submit(oParam);
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var sfromdd = ds_send.getColumn(0, "srchfromdd");
- var stodd = ds_send.getColumn(0, "srchtodd");
- var smaxmm = sfromdd.toDate().getAddDate(5,"M").getDateFormat("YYYYMMDD");
- if (stodd > smaxmm)
- {
- sysf_messageBox("최대로 6개월 단위로 생성할 수 있습니다.", "E999", "");
- return;
- }
- if (datacheck() == false)
- {
- return;
- }
- var sw = "N";
- var update = grdf_getGridUpdateData(datagrid1);
- ds_senddata_execdata_codelist.clearData();
- if (ds_senddata_execdata_codelist.rowcount != 0)
- {
- sw = "Y";
- grdf_setStatusColumn(update, "m");
- ds_senddata_execdata_codelist.copyData(update, true);
- dsf_setDefaultVal(ds_senddata_execdata_codelist, "maxallcnt:0");
- var oParam = {};
- oParam.id = "TXAHA03171";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqExeTestRoomList";
- oParam.inds = "codelist=ds_senddata_execdata_codelist";
- oParam.outds = "ds_=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAHA03171";
- tranf_submit(oParam);
- }
- fSaveData1();
- if (sw == "Y")
- {
- grd_roomlst_oncellclick();
- }
- }
- function fSaveData1()
- {
- for (var i = 0; i < ds_main_testcode_testcodelist.rowcount; i++)
- {
- dsf_makeValue(ds_main_testcode_testcodelist, "srchfromdd", "string", ds_send.getColumn(0, "srchfromdd"), i);
- dsf_makeValue(ds_main_testcode_testcodelist, "srchtodd", "string", ds_send.getColumn(0, "srchtodd"), i);
- }
-
- ds_senddata_execdata1_codelist.clearData();
- ds_main_testcode_testcodelist.filterstr = "chk == 'Y'";
- ds_senddata_execdata1_codelist.copyData(ds_main_testcode_testcodelist, true)
- ds_main_testcode_testcodelist.filterstr = "";
- dsf_setDefaultVal(ds_senddata_execdata1_codelist, "maxallcnt:0");
- var oParam = {};
- oParam.id = "TXAHA03172";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqExeRsrvddCreList";
- oParam.inds = "codelist=ds_senddata_execdata1_codelist";
- oParam.outds = "ds_=item";
- oParam.async = false;
- //oParam.callback = "cf_TXAHA03172";
- tranf_submit(oParam);
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveData2();
- }
- function fSaveData2()
- {
- var irow = ds_main_testcode_testcodelist.rowposition;
- var update = grdf_getGridUpdateData(datagrid2);
- ds_senddata_execdata2_codelist.copyData(update);
- dsf_setDefaultVal(ds_senddata_execdata2_codelist, "maxallcnt:0");
- var oParam = {};
- oParam.id = "TXAHA03173";
- oParam.service = "healthexambaseapp.ComCode";
- oParam.method = "reqSetRsrvddCreList";
- oParam.inds = "codelist=ds_senddata_execdata2_codelist";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHA03173";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXAHA03173") > -1)
- {
- ds_main_testcode_testcodelist.rowposition = irow;
- readfunc1();
- }
- }
- function cf_TXAHA03173(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }]]></Script>
- </Form>
- </FDL>
|