123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAHR00700" position="absolute 0 0 520 578" titletext="코드조회" onload="SPAHR00700_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 518 550" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 518 40" align="align:center top;" id="group2" class="div_SA2">
- <Layouts>
- <Layout>
- <Static text="검색명 :" position="absolute 15 12 77 29" id="caption2" class="search_name" anchor="default"/>
- <Shape position="absolute 426 9 432 31" linetype="vertical" id="line13" anchor="default"/>
- <Edit position="absolute 85 11 401 30" id="ipt_excucd" class="input_search" anchor="default" onkeyup="group3_group2_ipt_excucd_onkeyup"/>
- <Button position="absolute 445 9 501 31" id="btn_sea" class="btn1" text="조회" anchor="default" onclick="group3_group2_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Static text="코드조회" position="absolute 0 48 103 65" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 64 518 70" id="line1" class="line_10"/>
- <Grid position="absolute 0 69 518 550" id="grd_excucd" binddataset="ds_main_excucdlist_item" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="58"/>
- <Column size="124"/>
- <Column size="316"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="코드"/>
- <Cell col="2" text="코드명칭"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check=="Y"||check==1)?1:0"/>
- <Cell col="1" style="align:left middle;padding:0 0 0 3;" text="bind:excucd"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:excucdnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 549 518 576" id="group1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 401 5 457 27" id="btn_cfm" class="btn4" text="확인" anchor="default" onclick="group1_btn_cfm_onclick"/>
- <Button position="absolute 460 5 516 27" id="btn_cls" class="btn4" text="닫기" anchor="default" onclick="group1_btn_cls_onclick"/>
- <Button position="absolute 342 5 398 27" id="button1" class="btn4" visible="false" text="취소" anchor="default" onclick="group1_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_excucdlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_excucdlist_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="excucd" type="STRING" size="256"/>
- <Column id="excucdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="check"/>
- <Col id="excucd"/>
- <Col id="excucdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="srchexcucd" type="STRING" size="256"/>
- <Column id="tmplcdflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchexcucd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instance1" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instance1"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="degnitemlevlcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_excucd" propid="value" datasetid="ds_send" columnid="srchexcucd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 조회
- ****************************************************************************************/
- function call_TRAHR00701() {
- var oParam = {};
- oParam.id = "TRAHR00701";
- oParam.service = "healexamrsltjudgapp.TestProgrs";
- oParam.method = "reqGetHealGubnList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_excucdlist_item=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHR00701";
- tranf_submit(oParam);
- }
- function cf_TRAHR00701(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- ds_main_excucdlist_item.updatecontrol = false;
- dsf_setFixVal(ds_main_excucdlist_item, "check:N");
- ds_main_excucdlist_item.updatecontrol = true;
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPAHR00700_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- grdf_setGridSort(group3.grd_excucd);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
-
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- ds_send_globalinstance.setColumn(0, "instance1", frmf_getParameter("AST_DEPTCD"));
-
- try{
- ds_init.copyData(arg_ds_init);
- }catch(e){}
- call_TRAHR00701();
- if(arErrorCode.pop("TRAHR00701") > -1) {
- var vFlag = utlf_transNullToEmpty(ds_init.getColumn(0, "degnitemlevlcd")).split("^");
- if(vFlag.length > 0) {
- for(var i=0; i < ds_main_excucdlist_item.rowcount; i++) {
- var vExcucd = ds_main_excucdlist_item.getColumn( i , "excucd");
- for(var j=0; j < vFlag.length; j++) {
- if(vExcucd == vFlag[j]) {
- ds_main_excucdlist_item.setColumn( i , "check", "Y");
- }
- }
- }
- }
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 검색명 입력 후 조회
- ****************************************************************************************/
- function group3_group2_ipt_excucd_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group3.group2.btn_sea.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group3_group2_btn_sea_onclick(obj:Button, e:ClickEventInfo) {
- call_TRAHR00701();
- ds_send.setColumn( 0, "srchexcucd", "");
- group3.group2.ipt_excucd.setFocus();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인
- ****************************************************************************************/
- function group1_btn_cfm_onclick(obj:Button, e:ClickEventInfo) {
- if ( ds_main_excucdlist_item.rowposition < 0 ) return;
- var openerid = opener.frmf_getScreenID();
- var check = "";
- var loopcnt = 0;
- var loop = ds_main_excucdlist_item.rowcount;
- var str_temp = "";
- var str_temp2 = "";
- var str_check = "";
- for( var i = 0 ; i < loop ; i++ ) {
- check = ds_main_excucdlist_item.getColumn(i, "check");
- if ( check == "Y" ) {
- str_temp += ds_main_excucdlist_item.getColumn(i, "excucd");
- str_temp2 += ds_main_excucdlist_item.getColumn(i, "excucdnm");
- str_temp = str_temp + "^"
- str_temp2 = str_temp2 + "^"
- }
- loopcnt++;
- }
- if ( loopcnt == 0 ) {
- sysf_messageBox("코드를 선택해 주십시오.","I999");
- return "0";
- }
-
- switch (openerid) {
- case "SMAHB00100" : // 검사코드관리
- var checkrow = opener.ds_main_testcdlst_item1.rowposition;
- opener.ds_main_testcdlst_item1.setColumn( checkrow , "degnitemlevlcd", str_temp);
- break;
- case "SMAHA03010" : // 검사코드관리
- var checkrow = opener.ds_main_testcdlst_item1.rowposition;
- opener.ds_main_testcdlst_item1.setColumn( checkrow , "degnitemlevlcd", str_temp);
- break;
- }
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 취소
- ****************************************************************************************/
- function group1_button1_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 체크박스 설정
- ****************************************************************************************/
- function ds_main_excucdlist_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="check") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 닫기
- ****************************************************************************************/
- function group1_btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|