123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHA03190" position="absolute 0 0 1206 792" titletext="사전질의코드 관리" oninit="SMAHA03190_oninit" onload="SMAHA03190_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="사전질의코드관리" class="tit_1" position="absolute 0 0 191 25"/>
- <Grid id="grd_answlst" taborder="1" binddataset="ds_main_anslst_item" useinputpanel="false" position="absolute 594 94 1194 426" autoenter="select" cellsizingtype="col" anchor="top right" oncellclick="grd_answlst_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="313"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="최종수정자"/>
- <Cell col="7" text="최종수정일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:inqrcd"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:answcd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:answcnts"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:answengcnts"/>
- <Cell col="5" displaytype="text" edittype="text"/>
- <Cell col="6" text="bind:reminptyn"/>
- <Cell col="7" text="bind:lastupdtrid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Static id="caption3" text="사전질의코드 :" class="search_name" position="absolute 11 12 123 29"/>
- <Edit id="ipt_inqrcnts" taborder="1" class="input_search" position="absolute 435 11 775 30"/>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 10 1110 32" anchor="top right"/>
- <Static id="caption5" text="사전질의내역 :" class="search_name" position="absolute 316 12 435 29"/>
- <Edit id="ipt_inqrcd" taborder="3" class="input_search" position="absolute 130 11 290 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="사전질의코드" class="tit_2" position="absolute 0 73 142 95"/>
- <Shape id="line1" class="line_10" position="absolute 0 89 590 95" anchor="left top right"/>
- <Grid id="grd_inqrlst" taborder="3" binddataset="ds_main_inqrlst_item" useinputpanel="false" position="absolute 0 94 590 761" autoenter="select" cellsizingtype="col" anchor="all" oncellclick="grd_inqrlst_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24" band="left"/>
- <Column size="70" band="left"/>
- <Column size="260" band="left"/>
- <Column size="80"/>
- <Column size="50"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="최종수정일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:inqrcd"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:inqrnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:answcnt"/>
- <Cell col="4" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0"/>
- <Cell col="5" text="bind:lastupdtrid"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:lastupdtdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" text="선택형답안" class="tit_2" position="absolute 594 73 709 95" anchor="top right"/>
- <Shape id="line2" class="line_10" position="absolute 594 89 1194 95" anchor="top right"/>
- <Button id="btn_grddel" taborder="4" text="행삭제" class="btn2" position="absolute 537 67 590 89" anchor="top right" onclick="btn_grddel_onclick"/>
- <Button id="btn_grdadd" taborder="5" text="행추가" class="btn2" position="absolute 482 67 535 89" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Button id="btn_ansadd" taborder="6" text="행추가" class="btn2" position="absolute 1087 67 1140 89" anchor="top right" onclick="btn_ansadd_onclick"/>
- <Button id="btn_ansdel" taborder="7" text="행삭제" class="btn2" position="absolute 1141 67 1194 89" anchor="top right" onclick="btn_ansdel_onclick"/>
- <Grid id="grd_roomlst" taborder="8" binddataset="ds_main_roomlst_item" useinputpanel="false" position="absolute 594 455 1194 761" autoenter="select" autofittype="col" cellsizingtype="col" anchor="top right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="151"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="최종수정일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:inqrcd"/>
- <Cell col="2" text="bind:answcd"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:testroomcd" combodataset="ds_init_room_roomlst_itemroom" combocodecol="testroomcd" combodatacol="testroomnm"/>
- <Cell col="4" text="bind:lastupdtrid"/>
- <Cell col="5" text="bind:lastupdtdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button1" taborder="9" text="행추가" class="btn2" position="absolute 1086 428 1139 450" anchor="top right" onclick="button1_onclick"/>
- <Static id="caption2" text="답안별 통보검사실" class="tit_2" position="absolute 595 434 729 456" anchor="top right"/>
- <Button id="button2" taborder="10" text="행삭제" class="btn2" position="absolute 1140 428 1193 450" anchor="top right" onclick="button2_onclick"/>
- <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 594 450 1194 456" anchor="top right"/>
- <Button id="btn_init" taborder="11" text="초기화" class="btn4" position="absolute 1067 765 1135 787" anchor="right bottom" onclick="btn_init_onclick"/>
- <Button id="btn_save" taborder="12" text="저장" class="btn4" position="absolute 1138 765 1194 787" anchor="right bottom" onclick="btn_save_onclick"/>
- <Button id="btn_print" taborder="13" text="출력" class="btn6" position="absolute 0 765 56 787" anchor="left bottom" visible="false"/>
- </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="srchinqrflag" type="STRING" size="256"/>
- <Column id="srchinqrcd" type="STRING" size="256"/>
- <Column id="srchinqrcnts" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="ansinqrcd" type="STRING" size="256"/>
- <Column id="answcd" type="STRING" size="256"/>
- <Column id="inqrcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchinqrflag"/>
- <Col id="srchinqrcd"/>
- <Col id="srchinqrcnts"/>
- <Col id="srchinstcd"/>
- <Col id="ansinqrcd"/>
- <Col id="answcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_inqrlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_inqrlst_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256" sumtext="사전질의코드"/>
- <Column id="inqrcd" type="STRING" size="256" sumtext="사전질의코드"/>
- <Column id="inqrnm" type="STRING" size="256" sumtext="사전질의명 "/>
- <Column id="answcnt" type="STRING" size="256" sumtext="답안갯수"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="inqrdispseq" type="STRING" size="256" sumtext="사전질의출력순서"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정시간"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_anslst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_roomlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="inqrcd" type="STRING" size="256" sumtext="사전질의코드"/>
- <Column id="answcd" type="STRING" size="256" sumtext="답안코드 "/>
- <Column id="testroomcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정시간"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_room_roomlst_itemroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256" sumtext="선택"/>
- <Column id="testroomcd" type="STRING" size="256" sumtext="검사실코드"/>
- <Column id="testroomnm" type="STRING" size="256" sumtext="검사실명"/>
- <Column id="cnt" type="INT" size="256" sumtext="인원"/>
- <Column id="healexamplacecd" type="STRING" size="256" sumtext="건진장소"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_baseinfo_inqrflaglst_A0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_answflaglst_A0066" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <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 "ast_healexamxp::AHA001.xjs";
- include "ast_healthexambasexp::healcombolist.xjs";
- var arErrorCode = new HashArray();
- function SMAHA03190_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAHA03190_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_inqrlst);
- grdf_setRowTypeIcon(grd_inqrlst, 0);
- grdf_initGrid(grd_answlst);
- grdf_setRowTypeIcon(grd_answlst, 0);
- grdf_initGrid(grd_roomlst);
- grdf_setRowTypeIcon(grd_roomlst, 0);
- grp_sea.btn_search.enable = frmf_checkAuth("R") ;
- btn_save.enable = frmf_checkAuth("X") ;
- btn_print.enable = frmf_checkAuth("P") ;
- fGetInqrFlag();
-
- var oParam = {};
- oParam.id = "TRAHB01502";
- oParam.service = "healexambaseapp.ComCode";
- oParam.method = "reqGetRoomCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_init_room_roomlst_itemroom=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB01502";
- tranf_submit(oParam);
- }
- function fGetInqrFlag()
- {
- ds_init_baseinfo_inqrflaglst_A0106.clearData();
- var arrParam = [{dsNm: "ds_init_baseinfo_inqrflaglst_A0106", cdGrpId: "A0106"}
- ,{dsNm: "ds_init_baseinfo_answflaglst_A0066", cdGrpId: "A0066"}]
- appf_getCodeList(arrParam);
- //submit("TRZBC00101");
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_anslst_item.clearData();
- ds_main_inqrlst_item.clearData();
- fGetInqrlst();
- }
- function fGetInqrlst()
- {
- var selRow = ds_main_inqrlst_item.rowposition;
- ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("posinstcd") );
-
- var oParam = {};
- oParam.id = "TRAHA03191";
- oParam.service = "healthexambaseapp.BfInqr";
- oParam.method = "reqGetBfInqrList";
- oParam.inds = "reqparam=ds_send";
- oParam.outds = "ds_main_inqrlst_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHA03191";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAHA03191") > -1)
- {
- if(selRow > -1)
- {
- fGetInqrAns();
- }
- }
-
- ds_main_inqrlst_item.updatecontrol = false;
- dsf_setFixVal(ds_main_inqrlst_item, "sel:N");
- ds_main_inqrlst_item.updatecontrol = true;
- ds_main_roomlst_item.clearData();
- }
- function cf_TRAHA03191(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fGetInqrAns()
- {
- var tmpinqrflag = ds_send.getColumn(0, "srchinqrflag");
-
- ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("posinstcd"));
- ds_send.setColumn(0, "srchinqrflag", tmpinqrflag);
- ds_send.setColumn(0, "inqrcd", ds_main_inqrlst_item.getColumn(ds_main_inqrlst_item.rowposition, "inqrcd"));
- ds_send.setColumn(0, "ansinqrcd", ds_main_inqrlst_item.getColumn(ds_main_inqrlst_item.rowposition, "inqrcd"));
-
- var oParam = {};
- oParam.id = "TRAHA03192";
- oParam.service = "healthexambaseapp.BfInqr";
- oParam.method = "reqGetBfInqrAnswList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_anslst_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03192";
- tranf_submit(oParam);
- }
- function ds_main_inqrlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "useyn")
- {
- obj.setColumn(e.row, "useyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_inqrlst_item.addRow();
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_inqrlst_item.getRowType(ds_main_inqrlst_item.rowposition) == 2)
- {
- ds_main_inqrlst_item.deleteRow(ds_main_inqrlst_item.rowposition);
- }
- else
- {
- ds_main_inqrlst_item.updatecontrol = false;
- ds_main_inqrlst_item.setRowType(ds_main_inqrlst_item.rowposition, "d");
- ds_main_inqrlst_item.updatecontrol = true;
- }
- }
- function grd_inqrlst_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetInqrAns();
- }
- function grd_answlst_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetInqrAnsRoom();
- }
- function fGetInqrAnsRoom()
- {
- var tmpinqrflag = ds_send.getColumn(0, "srchinqrflag");
-
- ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("posinstcd") );
- ds_send.setColumn(0, "srchinqrflag", tmpinqrflag );
- ds_send.setColumn(0, "ansinqrcd", ds_main_inqrlst_item.getColumn(ds_main_inqrlst_item.rowposition, "inqrcd"));
- ds_send.setColumn(0, "inqrcd", ds_main_inqrlst_item.getColumn(ds_main_inqrlst_item.rowposition, "inqrcd"));
- ds_send.setColumn(0, "answcd", ds_main_anslst_item.getColumn(ds_main_anslst_item.rowposition, "answcd"));
-
- var oParam = {};
- oParam.id = "TRAHA03192";
- oParam.service = "healthexambaseapp.BfInqr";
- oParam.method = "reqGetBfInqrAnswRoomList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_roomlst_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03192";
- tranf_submit(oParam);
- }
- function btn_ansadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var addRow = ds_main_anslst_item.addRow();
- ds_main_anslst_item.setColumn(addRow, "inqrcd", ds_main_inqrlst_item.getColumn(ds_main_inqrlst_item.rowposition, "inqrcd"));
- }
- function btn_ansdel_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_anslst_item.getRowType(ds_main_anslst_item.rowposition) == 2)
- {
- ds_main_anslst_item.deleteRow(ds_main_anslst_item.rowposition);
- }
- else
- {
- ds_main_anslst_item.updatecontrol = false;
- ds_main_anslst_item.setRowType(ds_main_anslst_item.rowposition, "d");
- ds_main_anslst_item.updatecontrol = true;
- }
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var addRow = ds_main_roomlst_item.addRow();
- ds_main_roomlst_item.setColumn(addRow, "inqrcd", ds_main_anslst_item.getColumn(ds_main_anslst_item.rowposition, "inqrcd"));
- ds_main_roomlst_item.setColumn(addRow, "answcd", ds_main_anslst_item.getColumn(ds_main_anslst_item.rowposition, "answcd"));
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_roomlst_item.getRowType(ds_main_roomlst_item.rowposition) == 2)
- {
- ds_main_roomlst_item.deleteRow(ds_main_roomlst_item.rowposition);
- }
- else
- {
- ds_main_roomlst_item.updatecontrol = false;
- ds_main_roomlst_item.setRowType(ds_main_roomlst_item.rowposition, "d");
- ds_main_roomlst_item.updatecontrol = true;
- }
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitInqrLst();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if(fSaveInqrCd())
- {
- fGetInqrlst();
- }
- }
- function fSaveInqrCd()
- {
- if( sysf_messageBox("사전질의코드정보를","Q002") == 6)
- {
- var oParam = {};
- oParam.id = "TXAHA03191";
- oParam.service = "healthexambaseapp.BfInqr";
- oParam.method = "reqExeBfInqrList";
- oParam.inds = "saveinqrcd=ds_main_inqrlst_item:u saveinqrans=ds_main_anslst_item:u saveinqransroom=ds_main_roomlst_item:u";
- oParam.outds = "ds_=item2 ds_=itemjudg";
- oParam.typeStr = "m";
- oParam.async = false;
- //oParam.callback = "cf_TXAHA03191";
- tranf_submit(oParam);
- }
- return;
- }
- ]]></Script>
- </Form>
- </FDL>
|