123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHB00700" position="absolute 0 0 1204 781" titletext="결과 예문 관리" oninit="SMAHB00700_oninit" onload="SMAHB00700_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="결과예문관리 & 추후관리예문" class="tit_1" position="absolute 0 0 255 25"/>
- <Static id="caption1" text="예문작성란" class="tit_2" position="absolute 715 75 801 97" anchor="top right"/>
- <Shape id="line10" linetype="horizontal" class="line_3" position="absolute 715 743 1194 749" anchor="top right"/>
- <Shape id="line1" class="line_10" position="absolute 715 91 1194 97" anchor="top right"/>
- <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 715 118 1194 124" anchor="top right"/>
- <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 715 144 1194 150" anchor="top right"/>
- <Static id="caption7" text="예문코드" class="cell_1" position="absolute 715 122 794 145" anchor="top right"/>
- <Static id="caption3" text="예문내역" class="tit_2" position="absolute 0 75 106 97"/>
- <Shape id="line4" class="line_10" position="absolute 0 91 710 97" anchor="left top right"/>
- <Shape id="line5" linetype="vertical" class="line_2" position="absolute 715 163 1194 169" anchor="top right"/>
- <Shape id="line8" linetype="vertical" class="line_2" position="absolute 715 291 1194 297" anchor="top right"/>
- <Edit id="ipt_exmpcd" taborder="1" class="input_essential" position="absolute 797 125 1195 144" autoselect="true" autoskip="true" anchor="top right" onkeyup="ipt_exmpcd_onkeyup"/>
- <TextArea id="tar_hangcnts" taborder="2" position="absolute 796 149 1195 739" autoselect="true" autoskip="true" wordwrap="word" anchor="top right"/>
- <Div id="grp_search" anchor="left top right" taborder="3" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Static id="caption21" text="예문코드 :" class="search_name" position="absolute 291 12 369 29"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1122 9 1178 31" anchor="top right" onclick="grp_search_btn_search_onclick"/>
- <Shape id="line18" linetype="vertical" class="line_4" position="absolute 1101 9 1107 31" anchor="top right"/>
- <Edit id="ipt_examcnts" taborder="2" autoselect="true" autoskip="true" class="input_search" position="absolute 750 11 1040 30" onkeydown="grp_search_ipt_examcnts_onkeydown"/>
- <Edit id="ipt_examcd" taborder="3" autoselect="true" autoskip="true" class="input_search" position="absolute 380 11 545 30" onkeydown="grp_search_ipt_examcd_onkeydown"/>
- <Static id="caption22" text="예문내용 :" class="search_name" position="absolute 660 11 738 28"/>
- <Combo id="cmb_srchhealexamflag" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 75 12 190 31">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">결과예문</Col>
- </Row>
- <Row>
- <Col id="codecolumn">B</Col>
- <Col id="datacolumn">추후관리예문</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Static id="caption12" text="구분 :" class="search_name" position="absolute 11 13 73 30"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="예문내용" class="cell_1" position="absolute 715 148 794 738" anchor="top right"/>
- <Grid id="grd_rexm" taborder="4" binddataset="ds_main_rsltexmpcdlst_item" useinputpanel="false" position="absolute 0 96 710 746" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_rexm_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20"/>
- <Column size="30"/>
- <Column size="78"/>
- <Column size="448"/>
- <Column size="64"/>
- <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:afseq"/>
- <Cell col="2" style="align:left middle;padding:3 0 0 3;" text="bind:rsltexmpcd"/>
- <Cell col="3" style="align:left top;padding:3 0 0 3;" text="bind:rsltexmpcnts" wordwrap="word"/>
- <Cell col="4" style="align:left middle;padding:3 0 0 3;" text="bind:lastupdtrid"/>
- <Cell col="5" style="align:left middle;padding:3 0 0 3;" text="bind:lastupdtdt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption4" text="정렬순서" class="cell_1" position="absolute 715 96 794 119" anchor="top right"/>
- <Edit id="ipt_afseq" taborder="5" class="input_essential" position="absolute 798 98 1195 117" autoselect="true" autoskip="true" anchor="top right" onkeyup="ipt_afseq_onkeyup"/>
- <Button id="btn_print" taborder="6" text="출력" class="btn6" position="absolute 0 752 56 774" anchor="left bottom" onclick="btn_print_onclick" visible="false"/>
- <Button id="btn_save" taborder="7" text="저장" class="btn4" position="absolute 1007 752 1063 774" anchor="right bottom" onclick="btn_save_onclick"/>
- <Button id="btn_del" taborder="8" text="삭제" class="btn4" position="absolute 1067 752 1123 774" anchor="right bottom" onclick="btn_del_onclick"/>
- <Button id="btn_clear" taborder="9" text="초기화" class="btn4" position="absolute 1126 752 1194 774" anchor="right bottom" onclick="btn_clear_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="srchrsltexmpcd" type="STRING" size="256"/>
- <Column id="srchrsltexmpcnts" type="STRING" size="256"/>
- <Column id="srchratype" type="STRING" size="256"/>
- <Column id="save" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchrsltexmpcd"/>
- <Col id="srchrsltexmpcnts"/>
- <Col id="srchratype"/>
- <Col id="save"/>
- <Col id="srchinstcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_rsltexmpcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rsltexmpcdlst_item_oncolumnchanged">
- <ColumnInfo>
- <!-- 소견선택화면에서 사용하기 위해 SEL추가 BY 손주연 2007-08-11 -->
- <Column id="sel" type="STRING" size="256" sumtext="선택구분"/>
- <Column id="afseq" type="STRING" size="256" sumtext="순서"/>
- <Column id="rsltexmpcd" type="STRING" size="256" sumtext="결과예문코드"/>
- <Column id="rsltexmpcnts" 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_rsltexmpcntslst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="afseq" type="STRING" size="256" sumtext="결과예문코드"/>
- <Column id="rsltexmpcd" type="STRING" size="256" sumtext="결과예문코드"/>
- <Column id="rsltexmpcnts" type="STRING" size="256" sumtext="결과예문내용"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rsltexmpcnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_search.cmb_srchhealexamflag" propid="value" datasetid="ds_send" columnid="srchratype"/>
- <BindItem id="item1" compid="grp_search.ipt_examcd" propid="value" datasetid="ds_send" columnid="srchrsltexmpcd"/>
- <BindItem id="item2" compid="grp_search.ipt_examcnts" propid="value" datasetid="ds_send" columnid="srchrsltexmpcnts"/>
- <BindItem id="item3" compid="ipt_afseq" propid="value" datasetid="ds_main_rsltexmpcntslst_item" columnid="afseq"/>
- <BindItem id="item4" compid="ipt_exmpcd" propid="value" datasetid="ds_main_rsltexmpcntslst_item" columnid="rsltexmpcd"/>
- <BindItem id="item5" compid="tar_hangcnts" propid="value" datasetid="ds_main_rsltexmpcntslst_item" columnid="rsltexmpcnts"/>
- </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 "ast_healexamxp::AHA001.xjs";
- include "ast_healthexambasexp::healcombolist.xjs";
- function SMAHB00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAHB00700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_rexm);
- grdf_setRowTypeIcon(grd_rexm, 0);
-
- grp_search.btn_search.enable = frmf_checkAuth("R");
- btn_save.enable = frmf_checkAuth("X");
- btn_clear.enable = frmf_checkAuth("X");
- btn_print.enable = frmf_checkAuth("P");
- }
- function grp_search_ipt_examcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_search.btn_search.click();
- }
- }
- function grp_search_ipt_examcnts_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_search.btn_search.click();
- }
- }
- function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetRexmCdList();
- }
- function fGetRexmCdList()
- {
- fInit(false);
- if(utlf_isNull(ds_send.getColumn(0, "srchratype")))
- {
- sysf_messageBox("구분을","C002");
- ipt_afseq.setFocus();
- }
- ds_send.setColumn(0, "srchinstcd",sysf_getUserInfo("dutplceinstcd"));
- var oParam = {};
- oParam.id = "TRAHB00701";
- oParam.service = "healexambaseapp.RexmCode";
- oParam.method = "reqGetRexmCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsltexmpcdlst_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB00701";
- tranf_submit(oParam);
- }
- function fInit(vInput)
- {
- ipt_exmpcd.enable = true;
- if( vInput == false )
- {
- ds_main_rsltexmpcntslst_item.clearData();
- ds_main_rsltexmpcntslst_item.addRow();
- }
- ds_main.setColumn(0, "rsltexmpcnts","");
- ipt_afseq.setFocus();
- }
- function grd_rexm_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetRexmCnts(false);
- }
- function fGetRexmCnts(bCopy)
- {
- var idx = ds_main_rsltexmpcdlst_item.rowposition;
- if( idx < 0) return ;
- ipt_exmpcd.enable = bCopy ;
- ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
- ds_send.setColumn(0, "srchrsltexmpcd", ds_main_rsltexmpcdlst_item.getColumn(idx, "rsltexmpcd"));
-
- var oParam = {};
- oParam.id = "TRAHB00702";
- oParam.service = "healexambaseapp.RexmCode";
- oParam.method = "reqGetRexmCnts";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_rsltexmpcntslst_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB00702";
- tranf_submit(oParam);
- ds_send.setColumn(0, "srchrsltexmpcd", "");
-
- if(bCopy == true )
- {
- ds_main.setColumn(0, "rsltexmpcnts","");
- ipt_exmpcd.setFocus();
- }
- }
- function ipt_afseq_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- ipt_exmpcd.setFocus();
- }
- }
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- fInit(false);
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveRexmCd(true);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveRexmCd(false);
- }
- function fSaveRexmCd(vDel)
- {
- if(vDel == true )
- {
- if (sysf_messageBox("정보를","Q001") !=6 ) return ;
- }
- else
- {
- if (sysf_messageBox("정보를","Q002") !=6 ) return ;
- }
-
- ds_send_save.copyData(ds_main_rsltexmpcntslst_item);
-
- if( ipt_exmpcd.enable == false)
- {
- if(vDel == false )
- {
- dsf_makeValue(ds_send_save, "mode", "string", "u");
- }
- else
- {
- dsf_makeValue(ds_send_save, "mode", "string", "d");
- }
- }
- else
- {
- dsf_makeValue(ds_send_save, "mode", "string", "i");
- }
- dsf_makeValue(ds_send_save, "srchinstcd", "string", sysf_getUserInfo("dutplceinstcd"));
- dsf_makeValue(ds_send_save, "srchratype", "string", ds_send.getColumn(0, "srchratype"));
-
- var oParam = {};
- oParam.id = "TXAHB00701";
- oParam.service = "healexambaseapp.RexmCode";
- oParam.method = "reqExeRexmCode";
- oParam.inds = "req=ds_send_save";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHB00701";
- tranf_submit(oParam);
- }
- function cf_TXAHB00701(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- fGetRexmCdList();
- }
- }
- function btn_print_onclick(obj:Button, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|