123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHB01400" position="absolute 0 0 1196 776" titletext="Untitle" onload="SMAHB01400_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="기관 및 판정의 관리" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="grp_btn" taborder="1" position="absolute 0 746 1195 773" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button id="button8" taborder="4" text="화면이동" class="btn3" position="absolute 59 5 139 27" anchor="default" visible="false"/>
- <Button id="btn_print" taborder="5" text="출력" class="btn6" position="absolute 0 5 56 27" anchor="default" visible="false"/>
- <Button id="btn_save" taborder="6" text="저장" class="btn4" position="absolute 1138 5 1194 27" anchor="right" onclick="grp_btn_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_sea" taborder="2" position="absolute 0 25 1194 65" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="구분 :" class="search_name" position="absolute 16 12 80 29" anchor="default"/>
- <Button id="btn_search" taborder="3" 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"/>
- <Radio id="rdo_asso" taborder="4" columncount="7" rowcount="1" innerdataset="ds_init_A0114" codecolumn="cdid" datacolumn="cdnm" class="radio_search" position="absolute 79 11 1025 31" anchor="default" onitemchanged="grp_sea_rdo_asso_onitemchanged"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="switch1" taborder="5" tabindex="0" position="absolute 0 82 1194 747" class="tab_Normal" anchor="all">
- <Tabpages>
- <Tabpage id="case_asso" text="기관관리" style="anchor:default;margin:0 0 0 0;">
- <Layouts>
- <Layout>
- <Grid id="grd_asso" taborder="1" binddataset="ds_main_assolist_item" useinputpanel="false" position="absolute 0 0 1194 653" autoenter="key" anchor="all" selecttype="multirow" onexpandup="switch1_case_asso_grd_asso_onexpandup" onmousemove="switch1_case_asso_grd_asso_onmousemove">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="122"/>
- <Column size="121"/>
- <Column size="67"/>
- <Column size="73"/>
- <Column size="543"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" text="코드 " taborder="undefined"/>
- <Cell col="2" rowspan="2" text="명칭" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="전화번호" taborder="undefined"/>
- <Cell col="4" rowspan="2" text="팩스번호" taborder="undefined"/>
- <Cell col="5" colspan="3" text="주소" taborder="undefined"/>
- <Cell col="8" text="기타"/>
- <Cell row="1" col="5" text="우편번호"/>
- <Cell row="1" col="6" text="우편번호"/>
- <Cell row="1" col="7" text="상세주소"/>
- <Cell row="1" col="8" text="기타"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:assocd" editautoselect="true"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:assonm" editautoselect="true"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:telno" editautoselect="true"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:faxno" editautoselect="true"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:zipcd1" editautoselect="true"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:zipcd2" editautoselect="true" expandshow="show"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:detladdr" editautoselect="true"/>
- <Cell col="8" text="bind:zipcdseq1"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_dr" text="판정의관리" style="anchor:default;margin:0 0 0 0;">
- <Layouts>
- <Layout>
- <Grid id="grd_dr" taborder="1" binddataset="ds_main_drlist_item" useinputpanel="false" position="absolute 0 0 1194 653" cellclickbound="cell" autoenter="key" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="200"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="120"/>
- <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="의사ID"/>
- <Cell col="4" text="의사명"/>
- <Cell col="5" text="의사면허번호"/>
- <Cell col="6" text="적용여부"/>
- <Cell col="7" text="판정의여부"/>
- <Cell col="8" text="결과상담의여부"/>
- <Cell col="9" text="건진구분KEY"/>
- <Cell col="10" text="건진상세구분KEY"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="combo" text="bind:healexamflag"/>
- <Cell col="2" displaytype="combo" edittype="combo" text="bind:healexamdetlflag" combodataset="ds_init_baseinfo_healexamdetlflaglst_item" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:drid"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:drnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:drlicnsno"/>
- <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:(useyn=="Y"||useyn==1)?1:0"/>
- <Cell col="7" displaytype="checkbox" edittype="checkbox" text="bind:judgdryn" expr="expr:(judgdryn=="Y"||judgdryn==1)?1:0"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:cnstdryn" expr="expr:(cnstdryn=="Y"||cnstdryn==1)?1:0"/>
- <Cell col="9" text="bind:healexamflagkey"/>
- <Cell col="10" text="bind:healexamdetlflagkey"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Div id="grp_tabbtn" anchor="left top right" taborder="7" position="absolute 0 67 1194 95">
- <Layouts>
- <Layout>
- <Button id="btn_asso" taborder="37" text="기관관리" class="btn_tab" position="absolute 0 0 84 24" anchor="default" onclick="grp_tabbtn_btn_asso_onclick"/>
- <Button id="btn_jgdr" taborder="38" text="판정의관리" class="btn_tab" position="absolute 85 0 169 24" anchor="default" onclick="grp_tabbtn_btn_jgdr_onclick"/>
- <Shape id="line01" position="absolute 0 22 1194 28" anchor="left top right" style="strokepen:3 solid #07a693ff;background:transparent;"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_grddel" taborder="3" text="행삭제" class="btn2" position="absolute 1141 67 1194 89" anchor="top right" onclick="btn_grddel_onclick"/>
- <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1086 67 1139 89" anchor="top right" onclick="btn_grdadd_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_temp_addr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="zipcd1" type="STRING" size="256"/>
- <Column id="zipcd2" type="STRING" size="256"/>
- <Column id="addr" type="STRING" size="256"/>
- <Column id="zipcdseq" type="STRING" size="256"/>
- </ColumnInfo>
- </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_case_mode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="case_mode" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="case_mode"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="saveasso" type="STRING" size="256"/>
- <Column id="assoflag" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="saveasso"/>
- <Col id="assoflag"/>
- <Col id="instcd"/>
- <Col id="userid"/>
- </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="srchassoflag" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchassoflag">01</Col>
- <Col id="srchinstcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_baseinfo_healexamdetlflaglst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_A0114" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_assolist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="assocd" type="STRING" size="256"/>
- <Column id="assonm" type="STRING" size="256"/>
- <Column id="telno" type="STRING" size="256"/>
- <Column id="faxno" type="STRING" size="256"/>
- <Column id="zipcd1" type="STRING" size="256"/>
- <Column id="zipcd2" type="STRING" size="256"/>
- <Column id="detladdr" type="STRING" size="256"/>
- <Column id="zipcdseq" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="assocd"/>
- <Col id="assonm"/>
- <Col id="telno"/>
- <Col id="faxno"/>
- <Col id="zipcd1"/>
- <Col id="zipcd2"/>
- <Col id="detladdr"/>
- <Col id="zipcdseq"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_drlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_drlist_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="healexamflag" type="STRING" size="256"/>
- <Column id="healexamdetlflag" type="STRING" size="256"/>
- <Column id="drid" type="STRING" size="256"/>
- <Column id="drnm" type="STRING" size="256"/>
- <Column id="drlicnsno" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="judgdryn" type="STRING" size="256"/>
- <Column id="cnstdryn" type="STRING" size="256"/>
- <Column id="healexamflagkey" type="STRING" size="256"/>
- <Column id="healexamdetlflagkey" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="healexamflag"/>
- <Col id="healexamdetlflag"/>
- <Col id="drid"/>
- <Col id="drnm"/>
- <Col id="drlicnsno"/>
- <Col id="useyn"/>
- <Col id="judgdryn"/>
- <Col id="cnstdryn"/>
- <Col id="healexamflagkey"/>
- <Col id="healexamdetlflagkey"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_save_savedrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_send_save_saveasso" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.rdo_asso" propid="value" datasetid="ds_send" columnid="srchassoflag"/>
- </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_commonxp::AST.xjs";
- //include "com_zipcodexp::ZBP001.xjs";
- //include "ast_healexamxp::AHA001.xjs";
- //include "ast_healexamxp::healexam.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 기초코드 조회
- ****************************************************************************************/
- function fGetBaseInfo(){
- // 건진기관구분
- var arrParam = [{dsNm: "ds_init_A0068", cdGrpId: "A0068"}
- ,{dsNm: "ds_init_A0069", cdGrpId: "A0069"}
- ,{dsNm: "ds_init_A0070", cdGrpId: "A0070"}
- ,{dsNm: "ds_init_A0114", cdGrpId: "A0114"}
- ];
- appf_getCodeList(arrParam);
- ds_init_baseinfo_healexamdetlflaglst_item.copyData(ds_init_A0069);
- dsf_copyDs(ds_init_baseinfo_healexamdetlflaglst_item, ds_init_A0070, "after");
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 기관관리 조회
- ****************************************************************************************/
- function fGetAssoLst(){
- ds_send.setColumn( 0, "srchinstcd", sysf_getUserInfo("dutplceinstcd") );
- var oParam = {};
- oParam.id = "TRAHB01401";
- oParam.service = "healexambaseapp.AssoCode";
- oParam.method = "reqGetAssoCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_assolist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB01401";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 판정의 조회
- ****************************************************************************************/
- function fGetDrLst(){
- ds_send.setColumn( 0, "srchinstcd", sysf_getUserInfo("dutplceinstcd") );
- var oParam = {};
- oParam.id = "TRAHB01402";
- oParam.service = "healexambaseapp.AssoCode";
- oParam.method = "reqGetDrList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_drlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHB01402";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 기관정보 저장
- ****************************************************************************************/
- function fSaveAssoCd() {
- if( sysf_messageBox("조합코드정보를","Q002") == 6){
- var dsUpdate = grdf_getGridUpdateData(switch1.case_asso.grd_asso, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_save_saveasso.copyData(dsUpdate, true);
- dsf_makeValue(ds_send_save_saveasso, "assoflag", "string", ds_send.getColumn(0, "srchassoflag"));
- dsf_makeValue(ds_send_save_saveasso, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
- dsf_makeValue(ds_send_save_saveasso, "userid", "string", sysf_getUserInfo("userid"));
- var oParam = {};
- oParam.id = "TXAHB01401";
- oParam.service = "healexambaseapp.AssoCode";
- oParam.method = "reqExeAssoCode";
- oParam.inds = "req=ds_send_save_saveasso";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHB01401";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXAHB01401") > -1){
- sysf_messageBox("저장 ", "I002");
- fGetAssoLst();
- }
- }
- }
- function cf_TXAHB01401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 판정의정보 저장
- ****************************************************************************************/
- function fSaveDr() {
- if( sysf_messageBox("판정의 정보를","Q002") == 6){
- var dsUpdate = grdf_getGridUpdateData(switch1.case_dr.grd_dr, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_save_savedrlist.copyData(dsUpdate, true);
- dsf_makeValue(ds_send_save_savedrlist, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
- dsf_makeValue(ds_send_save_savedrlist, "userid", "string", sysf_getUserInfo("userid"));
- var oParam = {};
- oParam.id = "TXAHB01402";
- oParam.service = "healexambaseapp.AssoCode";
- oParam.method = "reqExeDr";
- oParam.inds = "req=ds_send_save_savedrlist";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHB01402";
- tranf_submit(oParam);
-
- if (arErrorCode.pop("TXAHB01402") > -1){
- sysf_messageBox("저장 ", "I002");
- fGetDrLst();
- }
- }
- }
- function cf_TXAHB01402(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAHB01400_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(switch1.case_asso.grd_asso, 0);
- grdf_setRowTypeIcon(switch1.case_dr.grd_dr, 0);
- //화면권한추가
- grp_sea.btn_search.enable = frmf_checkAuth("R");
- grp_btn.btn_save.enable = frmf_checkAuth("X");
- grp_btn.btn_print.enable = frmf_checkAuth("P");
- fGetBaseInfo();
- ds_main_assolist_item.clearData();
- ds_main_drlist_item.clearData();
- frmf_inputEnterKey("grp_sea.rdo_asso", "onitemchanged", new ItemChangeEventInfo);
- // grp_tabbtn.btn_asso.class = "btn_tab_S";
- // switch1.tabindex = 0;
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- if (switch1.tabindex == 0 ){
- fGetAssoLst();
- }else{
- fGetDrLst();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행삭제
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- var objGrd = null;
- if (switch1.tabindex == 0 ){
- objGrd = switch1.case_asso.grd_asso;
- }else {
- objGrd = switch1.case_dr.grd_dr;
- }
-
- var selectedRows = grdf_getSelectedRows(objGrd);
- for (var i = selectedRows.length-1; i >= 0; i--){
- if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
- objects[objGrd.binddataset].deleteRow(selectedRows[i]);
- }else{
- grdf_setStatus(objGrd, "D", [selectedRows[i]]);
- }
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 행추가
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- if (switch1.tabindex == 0 ){
- ds_main_assolist_item.addRow();
- }else {
- ds_main_drlist_item.addRow();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 저장
- ****************************************************************************************/
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- if (switch1.tabindex == 0 ){
- fSaveAssoCd();
- } else {
- fSaveDr();
- }
- }
- /****************************************************************************************
- * Components : Radio
- * Description : 구분선택
- ****************************************************************************************/
- function grp_sea_rdo_asso_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if (ds_main_assolist_item.rowcount > 0) {
- ds_main_assolist_item.clearData();
- }
- var idx = obj.value;
- if(idx == "01") {
- misfVisibleTab(grp_tabbtn);
- grp_tabbtn.btn_jgdr.click();
- } else {
- misfHiddenTab(grp_tabbtn, "1");
- grp_tabbtn.btn_asso.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 탭버튼 선택
- ****************************************************************************************/
- function grp_tabbtn_btn_asso_onclick(obj:Button, e:ClickEventInfo)
- {
- misfTabBtnChange(grp_tabbtn, obj);
- switch1.tabindex = 0;
- grp_sea.btn_search.click();
- }
- function grp_tabbtn_btn_jgdr_onclick(obj:Button, e:ClickEventInfo)
- {
- misfTabBtnChange(grp_tabbtn, obj);
- switch1.tabindex = 1;
- grp_sea.btn_search.click();
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 우편번호 검색
- ****************************************************************************************/
- function switch1_case_asso_grd_asso_onmousemove(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.row < 0) return;
- if(e.col == obj.getBindCellIndex("body","zipcd2")) obj.autoenter = "select";
- else obj.autoenter = "key";
- }
- function switch1_case_asso_grd_asso_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col == obj.getBindCellIndex("body","zipcd2")) {
- var idx = obj.currentrow;
- var sZipcd = appf_getZipCodeList();
-
- if( !utlf_isNull(sZipcd) ){
- ds_main_assolist_item.setColumn(idx, "zipcd1", sZipcd.zipcdhead);
- ds_main_assolist_item.setColumn(idx, "zipcd2", sZipcd.zipcdfoot);
- ds_main_assolist_item.setColumn(idx, "detladdr", sZipcd.address);
- ds_main_assolist_item.setColumn(idx, "zipcdseq", sZipcd.seqno);
- }
- }
- }
- /****************************************************************************************
- * Components : Dataset
- * Description : 판정의 정보 변경시
- ****************************************************************************************/
- function ds_main_drlist_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "healexamdetlflag") {
- var healexamdetl = e.newvalue;
- obj.setColumn(e.row, "healexamflag", healexamdetl.substr(0,1));
- }
-
- if(e.columnid=="useyn" || e.columnid=="judgdryn" || e.columnid=="cnstdryn") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|