123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHA03130" position="absolute 0 0 1196 765" titletext="Untitle" oninit="SMAHA03130_oninit" onload="SMAHA03130_onload">
- <Layouts>
- <Layout>
- <Tab id="switch1" anchor="all" taborder="1" tabindex="0" position="absolute 0 67 1195 732" onchanged="switch1_onchanged">
- <Tabpages>
- <Tabpage id="case_dr" text="의사정보관리">
- <Layouts>
- <Layout>
- <Grid id="grd_dr" taborder="1" binddataset="ds_main_drlist_item" useinputpanel="false" position="absolute 0 0 1195 638" autofittype="col" cellsizingtype="col" anchor="all" selecttype="multirow" autoenter="key" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="0"/>
- <Column size="190"/>
- <Column size="190"/>
- <Column size="190"/>
- <Column size="190"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <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="상담의여부"/>
- <Cell col="10" text="건진구분key"/>
- <Cell col="11" 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" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdetlflag" editautoselect="true" editautoskip="true" combodataset="ds_init_baseinfo_healexamdetlflaglst_item" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:drid" editautoselect="true" editautoskip="true"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:drnm" editautoselect="true" editautoskip="true"/>
- <Cell col="5" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:drlicnsno" editautoselect="true" editautoskip="true"/>
- <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0"/>
- <Cell col="7" displaytype="checkbox" edittype="checkbox" text="bind:meddryn" expr="expr:meddryn == 'Y' ? 1 : 0"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:judgdryn" expr="expr:judgdryn == 'Y' ? 1 : 0"/>
- <Cell col="9" displaytype="checkbox" edittype="checkbox" text="bind:cnstdryn" expr="expr:cnstdryn == 'Y' ? 1 : 0"/>
- <Cell col="10" text="bind:healexamflagkey"/>
- <Cell col="11" text="bind:healexamdetlflagkey"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_asso" text="기관정보관리">
- <Layouts>
- <Layout>
- <Grid id="grd_asso" taborder="1" binddataset="ds_main_assolist_item" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 0 1195 638" anchor="all" onexpanddown="switch1_case_asso_grd_asso_onexpanddown" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <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" colspan="2" text="우편번호" taborder="undefined"/>
- <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" style="align:left middle;padding:0 0 0 3;" text="bind:assocd"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:assonm"/>
- <Cell col="3" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:telno"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:faxno"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:zipcd1"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:zipcd2" expandshow="show"/>
- <Cell col="7" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:detladdr"/>
- <Cell col="8" text="bind:zipcdseq1"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption6" text="의사 및 기관정보관리" class="tit_1" position="absolute 0 0 214 25"/>
- <Button id="btn_grddel" taborder="2" text="행삭제" class="btn2" position="absolute 1142 67 1195 89" anchor="top right" onclick="btn_grddel_onclick"/>
- <Button id="btn_grdadd" taborder="3" text="행추가" class="btn2" position="absolute 1087 67 1140 89" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="4" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Static id="caption2" text="구분 :" class="search_name" position="absolute 16 12 80 29"/>
- <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="-1" rowcount="-1" innerdataset="ds_init_baseinfo_assocd_A0114" codecolumn="cdid" datacolumn="cdnm" class="radio_search" position="absolute 79 10 913 30" onitemchanged="grp_sea_rdo_asso_onitemchanged" style="textpadding:0 30 0 3;"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_print" taborder="5" text="출력" class="btn6" position="absolute 0 737 56 759" anchor="left bottom"/>
- <Button id="button8" taborder="6" text="화면이동" class="btn3" position="absolute 59 737 139 759" anchor="left bottom" onclick="button8_onclick" visible="false"/>
- <Button id="btn_save" taborder="7" text="저장" class="btn4" position="absolute 1138 737 1194 759" anchor="right bottom" onclick="btn_save_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="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_main_assolist_item" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="assocd" type="STRING" size="256" sumtext="조합코드"/>
- <Column id="assonm" type="STRING" size="256" sumtext="조합명"/>
- <Column id="telno" type="STRING" size="256" sumtext="전화번호"/>
- <Column id="faxno" type="STRING" size="256" sumtext="Fax번호"/>
- <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
- <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
- <Column id="addr1" type="STRING" size="256" sumtext="주소"/>
- <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
- <Column id="zipcdseq" type="STRING" size="256" sumtext="우편번호seq"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_drlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_drlist_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="healexamflag" type="STRING" size="256" sumtext="의사ID"/>
- <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진구분"/>
- <Column id="drid" type="STRING" size="256" sumtext="건진상세구분"/>
- <Column id="drnm" type="STRING" size="256" sumtext="의사명"/>
- <Column id="drlicnsno" type="STRING" size="256" sumtext="면허번호"/>
- <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="cnstdryn" type="STRING" size="256" sumtext="결과상담의여부"/>
- <Column id="judgdryn" type="STRING" size="256" sumtext="판정의여부"/>
- <Column id="meddryn" type="STRING" size="256" sumtext="진찰의여부"/>
- <Column id="healexamflagkey" type="STRING" size="256" sumtext="건진구분key"/>
- <Column id="healexamdetlflagkey" type="STRING" size="256" sumtext="건진상세구분key"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_baseinfo_healexamdetlflaglst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_assocd_A0114" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_chealexamdetlflaglst_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_baseinfo_ghealexamdetlflaglst_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <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_sea.rdo_asso" propid="value" datasetid="ds_send" columnid="srchassoflag"/>
- </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 SMAHA03130_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAHA03130_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(switch1.case_asso.grd_asso);
- grdf_setRowTypeIcon(switch1.case_asso.grd_asso, 0);
- grdf_initGrid(switch1.case_dr.grd_dr);
- grdf_setRowTypeIcon(switch1.case_dr.grd_dr, 0);
- grp_sea.btn_search.enable = frmf_checkAuth("R");
- btn_save.enable = frmf_checkAuth("X");
- btn_print.enable = frmf_checkAuth("P");
-
- fGetBaseInfo();
-
- frmf_inputEnterKey("grp_sea.rdo_asso", "onitemchanged", new ItemChangeEventInfo );
- }
- function fGetBaseInfo()
- {
- var arrParam = [{dsNm: "ds_init_baseinfo_assocd_A0114", cdGrpId: "A0114"}
- ,{dsNm: "ds_init_baseinfo_healexamflaglst_A0068", cdGrpId: "A0068"}
- ,{dsNm: "ds_init_baseinfo_chealexamdetlflaglst_A0069", cdGrpId: "A0069"}
- ,{dsNm: "ds_init_baseinfo_ghealexamdetlflaglst_A0070", cdGrpId: "A0070"}]
- appf_getCodeList(arrParam);
-
- grp_sea.rdo_asso.innerdataset = "ds_init_baseinfo_assocd_A0114";
- grp_sea.rdo_asso.codecolumn = "cdid";
- grp_sea.rdo_asso.datacolumn = "cdnm";
-
- //submit("TRZBC00101");
- ds_init_baseinfo_healexamdetlflaglst_item.copyData(ds_init_baseinfo_chealexamdetlflaglst_A0069);
- ds_init_baseinfo_healexamdetlflaglst_item.appendData(ds_init_baseinfo_ghealexamdetlflaglst_A0070)
- }
- 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")
- {
- switch1.tabindex = 0;
- }
- else
- {
- switch1.tabindex = 1;
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- if (switch1.tabindex == 0 )
- {
- fGetDrLst();
- }
- else
- {
- fGetAssoLst();
- }
- }
- function fGetAssoLst()
- {
- ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd") );
-
- var oParam = {};
- oParam.id = "TRAHB01401";
- oParam.service = "healthexambaseapp.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);
- }
- function fGetDrLst()
- {
- ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd") );
- var oParam = {};
- oParam.id = "TRAHA03132";
- oParam.service = "healthexambaseapp.AssoCode";
- oParam.method = "reqGetDrList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_drlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAHA03132";
- tranf_submit(oParam);
- }
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- grp_sea.btn_search.click();
- }
- function ds_main_drlist_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "useyn")
- {
- obj.setColumn(e.row, "useyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if(e.columnid == "meddryn")
- {
- obj.setColumn(e.row, "meddryn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if(e.columnid == "judgdryn")
- {
- obj.setColumn(e.row, "judgdryn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- if(e.columnid == "cnstdryn")
- {
- obj.setColumn(e.row, "cnstdryn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
-
- if(e.columnid == "healexamdetlflag")
- {
- var healexamdetl = e.newvalue;
- obj.setColumn(e.row, "healexamflag", String(healexamdetl).substr(0,1));
- }
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- if (switch1.tabindex == 0)
- {
- ds_main_drlist_item.addRow();
- }
- else
- {
- ds_main_assolist_item.addRow();
- }
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var grid = null;
- if(switch1.tabindex == 0)
- {
- grid = switch1.case_dr.grd_dr
- }
- else
- {
- grid = switch1.case_asso.grd_asso
- }
-
- var rows = grdf_getSelectedRows(grid);
- for(var i = 0; i < rows.length; i++)
- {
- var m_row = rows[i];
-
- if(this.objects[grid.binddataset].getRowType(m_row) == 2)
- {
- this.objects[grid.binddataset].deleteRow(m_row);
- }
- else
- {
- this.objects[grid.binddataset].updatecontrol = false;
- this.objects[grid.binddataset].setRowType(m_row, "d");
- this.objects[grid.binddataset].updatecontrol = true;
- }
- }
- }
- function switch1_case_asso_grd_asso_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- var idx = e.row;
-
- var retValue = appf_getZipCodeList("combination");
-
- ds_main_assolist_item.setColumn(idx, "zipcd1", retValue.zipcdhead);
- ds_main_assolist_item.setColumn(idx, "zipcd2", retValue.zipcdfoot);
- ds_main_assolist_item.setColumn(idx, "zipcdseq", retValue.seqno);
- ds_main_assolist_item.setColumn(idx, "detladdr", retValue.address);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (switch1.tabindex == 1)
- {
- fSaveAssoCd();
- }
- else
- {
- fSaveDr();
- sysf_messageBox("저장 ", "I002");
- }
- grp_sea.btn_search.click();
- }
- function fSaveAssoCd()
- {
- if( sysf_messageBox("조합코드정보를","Q002") == 6)
- {
- var tmp = ds_send.getColumn(0, "srchassoflag")
-
- var update = grdf_getGridUpdateData(switch1.case_asso.grd_asso);
- grdf_setStatusColumn(update, "m");
-
- ds_send_save.copyData(update, true);
-
- dsf_makeValue(ds_send_save, "assoflag", "string", tmp);
- dsf_makeValue(ds_send_save, "instcd", "string", sysf_getUserInfo("posinstcd"));
- dsf_makeValue(ds_send_save, "userid", "string", sysf_getUserInfo("userid"));
-
- var oParam = {};
- oParam.id = "TXAHB01401";
- oParam.service = "healthexambaseapp.AssoCode";
- oParam.method = "reqExeAssoCode";
- oParam.inds = "req=ds_send_save";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHB01401";
- tranf_submit(oParam);
- }
- }
- function cf_TXAHB01401(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- fGetAssoLst();
- }
- }
- function fSaveDr()
- {
- if( sysf_messageBox("판정의 정보를","Q002") == 6)
- {
- var updategrid = grdf_getGridUpdateData(switch1.case_dr.grd_dr);
- grdf_setStatusColumn(updategrid, "m");
-
- ds_send_save.copyData(updategrid, true);
-
- dsf_makeValue(ds_send_save, "instcd", "string", sysf_getUserInfo("posinstcd"));
- dsf_makeValue(ds_send_save, "userid", "string", sysf_getUserInfo("userid"));
-
- var oParam = {};
- oParam.id = "TXAHA31302";
- oParam.service = "healthexambaseapp.AssoCode";
- oParam.method = "reqExeDr";
- oParam.inds = "req=ds_send_save";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXAHA31302";
- tranf_submit(oParam);
- }
- }
- function cf_TXAHA31302(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- fGetDrLst();
- }
- }]]></Script>
- </Form>
- </FDL>
|