123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEA02312" position="absolute 0 0 606 526" titletext="주사부위코드관리" oninit="model1_oninit" onload="SPAEA02312_onload">
- <Layouts>
- <Layout>
- <Div id="Div00" taborder="1" class="div_SA" anchor="default" position="absolute 0 27 604 70">
- <Layouts>
- <Layout>
- <Static id="caption2" text="코드" class="search_name" position="absolute 8 10 73 30" anchor="default" positiontype="position"/>
- <Edit id="ipt_basecd" taborder="4" class="input_search" position="absolute 57 10 192 30" anchor="default" imemode="hangul" positiontype="position"/>
- <Static id="caption3" text="코드명" class="search_name" position="absolute 217 10 297 30" anchor="default" positiontype="position"/>
- <Edit id="ipt_basecdnm" taborder="5" class="input_search" position="absolute 277 10 412 30" anchor="default" imemode="hangul" positiontype="position"/>
- <Button id="btn_sea" taborder="6" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 536 11 592 31" anchor="default" positiontype="position" onclick="btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_bodypart" taborder="2" useinputpanel="false" position="absolute 0 100 601 500" autofittype="col" binddataset="ds_grid_grd_bodypart" positiontype="position" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="35"/>
- <Column size="113"/>
- <Column size="183"/>
- <Column size="233"/>
- <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="주사부위코드명"/>
- <Cell col="4" text="비고"/>
- <Cell col="5" text="basecdflag"/>
- <Cell col="6" text="basesuppdeptcd"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="number" edittype="text" editfilter="number" style="align:left middle;" text="bind:sortno" editlimit="4" editlimitbymask="decimal" editlengthunit="utf8"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editlimit="8" editlengthunit="utf8"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editlimit="100" editlengthunit="utf8"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editlimit="1000" editlengthunit="utf8"/>
- <Cell col="5" text="bind:basecdflag"/>
- <Cell col="6" text="bind:basesuppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="주사부위코드관리" class="tit_2" position="absolute 0 80 125 100" positiontype="position"/>
- <Button id="btn_grdadd" taborder="3" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 409 77 465 97" positiontype="position" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="4" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" class="btn2" position="absolute 467 77 523 97" positiontype="position" onclick="btn_grddel_onclick"/>
- <Button id="btn_excsave" taborder="5" text="엑셀저장" onlbuttonup="btn_excsave_onlbuttonup" class="btn7" position="absolute 525 77 601 97" positiontype="position" onclick="btn_excsave_onclick"/>
- <Button id="btn_save" taborder="6" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 475 503 531 523" positiontype="position" onclick="btn_save_onclick"/>
- <Button id="btn_clear" taborder="7" text="초기화" onlbuttonup="btn_clear_onlbuttonup" class="btn4" position="absolute 532 503 601 523" positiontype="position" onclick="btn_clear_onclick"/>
- <Static id="caption19" text="주사부위코드관리" class="tit_1" position="absolute 0 0 207 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno" type="STRING"/>
- <Column id="basecd" type="STRING"/>
- <Column id="basecdflagdesc" type="STRING"/>
- <Column id="basecdcnts" type="STRING"/>
- <Column id="basecdflag" type="STRING"/>
- <Column id="basesuppdeptcd" type="STRING"/>
- <Column id="basecdold" type="STRING" size="256"/>
- <Column id="seq" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SPAEA02312_주사부위코드관리(핵의학체내).xfdl
- * Creator :
- * Make Date : 2016.06.15
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- function submit_TRAEA02312(){
- ds_send.setColumn(0,"basesuppdeptcd",suppdeptcd);
- ds_send.setColumn(0,"basecdflag","L");
- ds_send.setColumn(0,"basecd",Div00.ipt_basecd.value);
- ds_send.setColumn(0,"basecdnm",Div00.ipt_basecdnm.value);
-
- var objParam = new Object();
- objParam.id = "TRAEA02312";
- objParam.service = "examcurebaseapp.NmedCodeMngt";
- objParam.method = "reqGetNmedCodeList";
- objParam.inds = "req=ds_send";
- objParam.outds ="ds_grid_grd_bodypart=list";
-
- tranf_submit(objParam);
- }
- function submit_TXAEA02312(){
-
- for(var i=0; i<ds_grid_grd_bodypart.rowcount; i++){
- ds_grid_grd_bodypart.setColumn(i,"basecdflag","L");
- ds_grid_grd_bodypart.setColumn(i,"basesuppdeptcd",suppdeptcd);
- if(ds_grid_grd_bodypart.getColumn(i,"basecd")==null || ds_grid_grd_bodypart.getColumn(i,"basecd")==""){
- ds_grid_grd_bodypart.applyChange();
- sysf_messageBox("주사부위 코드는 필수 입력값 입니다.", "I999");
- return;
- }
- }
-
- var objParam = new Object();
- objParam.id = "TXAEA02312";
- objParam.service = "examcurebaseapp.NmedCodeMngt";
- objParam.method = "reqExeNmedCodeList";
- objParam.inds = "req=ds_grid_grd_bodypart:U";
- objParam.typeStr = "m";
- objParam.callback = "cbf_TXAEA02312";
-
- tranf_submit(objParam);
- }
- function cbf_TXAEA02312(strSvcID, nErrorCode, strErrorMsg){
-
- //에러 처리
- if(nErrorCode == 0){
- submit_TRAEA02312();
- }else{
- astErrorMsg(strErrorMsg);
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPAEA02312
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPAEA02312_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_aezfSetSuppDeptcd();
-
- grdf_setRowTypeIcon(grd_bodypart,0);
-
- Div00.ipt_basecd.setFocus();
- submit_TRAEA02312();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- submit_TRAEA02312();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_excsave
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_bodypart, "주사부위코드관리", "주사부위코드관리"); //파일 다이얼로그로 저장위치 저장
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_grddel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- //ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basecdflag","L");
- //ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basesuppdeptcd",suppdeptcd);
- dsf_deleteSelectedRows(grd_bodypart, true); //현재row 데이터 삭제설정(true:실제데이터 삭제, false:상태만변경)
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_grdadd
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_bodypart.addRow();
- ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"suppdeptcd",suppdeptcd);
- ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basecdflag","L");
- ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"sortno",ds_grid_grd_bodypart.rowcount+1);
- ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basecdcnts","-");
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_clear
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("초기화하시겠습니까?", "Q") == 6) {
- this.reload();
- }
- ipt_basecd.setFocus();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- submit_TXAEA02312();
- }
- ]]></Script>
- </Form>
- </FDL>
|