123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAEA02308" position="absolute 0 0 595 484" titletext="투여방법코드관리" oninit="model1_oninit" onload="SPAEA02308_onload">
- <Layouts>
- <Layout>
- <Div id="roundrect1" anchor="left top right" taborder="0" applystyletype="apply" style="align:center top;transformation:0,0 ;" scrollbars="none" class="div_SA" position="absolute 0 26 591 68" type="roundrectangle" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="caption1" text="등록번호" class="search_name" position="absolute -2 195 72 215" anchor="default" positiontype="position"/>
- <Edit id="ipt_pid" taborder="57" class="input_search" position="absolute 71 195 171 215" anchor="default"/>
- <Edit id="opt_pathngnm" taborder="58" readonly="true" class="output_fix" position="absolute 197 195 297 215" anchor="default"/>
- <Button id="button61" taborder="59" onlbuttonup=""button61_onlbuttonup"" class="icon_search" position="absolute 172 195 192 215" anchor="default"/>
- <Button id="btn_sea" taborder="60" text="조회" onlbuttonup=""btn_sea_onlbuttonup"" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
- <Static id="caption5" text="적용일자" class="search_name" position="absolute 321 195 395 215" anchor="default"/>
- <Calendar id="ipt_startrsrvdd" taborder="61" class="input_default" position="absolute 394 195 494 215" style="align:center middle;" anchor="default"/>
- <Calendar id="ipt_endrsrvdd" taborder="62" class="input_default" position="absolute 510 195 610 215" style="align:center middle;" anchor="default"/>
- <Static id="caption00" text="~" position="absolute 491 127 507 147" style="align:center;" anchor="default"/>
- <Static id="caption2" text="코드" onclick="grp_biz_grp_sea_caption2_onclick" class="search_name" position2="absolute l:8 w:48 t:11 h:20" positiontype="position2"/>
- <Edit id="ipt_basecd" taborder="63" class="input_search" position="absolute 56 10 191 30" anchor="default" imemode="hangul" onkeydown="roundrect1_ipt_basecd_onkeydown" positiontype="position"/>
- <Static id="caption3" text="코드명" class="search_name" position="absolute 215 11 276 31" anchor="default" positiontype="position"/>
- <Edit id="ipt_basecdnm" taborder="64" class="input_search" position="absolute 276 10 411 30" anchor="default" imemode="hangul" onkeydown="roundrect1_ipt_basecdnm_onkeydown" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_bodypart" taborder="1" useinputpanel="false" position="absolute 0 99 591 451" anchor="all" binddataset="ds_grid_grd_bodypart" positiontype="position" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="35"/>
- <Column size="113"/>
- <Column size="183"/>
- <Column size="230"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </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" style="align:center middle;"/>
- <Cell col="1" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:sortno" editlimit="4" editlengthunit="utf8"/>
- <Cell col="2" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecd" editlimit="8" editlengthunit="utf8"/>
- <Cell col="3" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecdflagdesc" editlimit="100" editlengthunit="utf8"/>
- <Cell col="4" displaytype="text" edittype="text" style="padding:0 5 0 5;" 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 76 125 96" positiontype="position"/>
- <Button id="btn_grdadd" taborder="2" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 397 73 453 93" anchor="top right" positiontype="position" onclick="btn_grdadd_onclick"/>
- <Button id="btn_grddel" taborder="3" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" class="btn2" position="absolute 456 73 512 93" anchor="top right" positiontype="position" onclick="btn_grddel_onclick"/>
- <Button id="btn_excsave" taborder="4" text="엑셀저장" onlbuttonup="btn_excsave_onlbuttonup" class="btn7" position="absolute 515 73 591 93" anchor="top right" positiontype="position" onclick="btn_excsave_onclick"/>
- <Button id="btn_save" taborder="5" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 463 456 519 476" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
- <Button id="btn_clear" taborder="6" text="초기화" onlbuttonup="btn_clear_onlbuttonup" class="btn4" position="absolute 522 456 591 476" anchor="right bottom" positiontype="position" onclick="btn_clear_onclick"/>
- <Button id="btn_sea" taborder="8" text="조회" onlbuttonup=""btn_sea_onlbuttonup"" class="btn1" position="absolute 528 37 584 57" anchor="top right" positiontype="position" onclick="btn_sea_onclick"/>
- <Static id="caption19" text="투여방법코드관리" class="tit_1" position="absolute 0 0 160 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="seq" type="STRING" size="256"/>
- <Column id="basecdold" 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="basecd" type="STRING" size="256"/>
- <Column id="basecdnm" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SPAEA02308_투여방법코드관리(핵의학체내).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_TRAEA02308(){
-
- ds_send.setColumn(0,"basecd", roundrect1.ipt_basecd.value);
- ds_send.setColumn(0,"basecdnm",roundrect1.ipt_basecdnm.value);
- ds_send.setColumn(0,"basecdflag","P");
- ds_send.setColumn(0,"basesuppdeptcd",suppdeptcd);
-
- var objParam = new Object();
- objParam.id = "TRAEA02308";
- objParam.service = "examcurebaseapp.NmedCodeMngt";
- objParam.method = "reqGetNmedCodeList";
- objParam.inds = "req=ds_send";
- objParam.outds ="ds_grid_grd_bodypart=list";
- objParam.callback = "cbf_TRAEA02308";
- tranf_submit(objParam);
- }
- function cbf_TRAEA02308(){
- for(var i = 0 ; i< ds_grid_grd_bodypart.rowcount ;i++){
-
- ds_grid_grd_bodypart.setColumn(i,"basesuppdeptcd",suppdeptcd);
- ds_grid_grd_bodypart.setColumn(i,"basecdflag","P");
- }
- ds_grid_grd_bodypart.applyChange();
- }
- //저장
- function submit_TXAEA02308(){
- var objParam = new Object();
- objParam.id = "TXAEA02308";
- objParam.service = "examcurebaseapp.NmedCodeMngt";
- objParam.method = "reqExeNmedCodeList";
- objParam.inds = "req=ds_grid_grd_bodypart:U";
- objParam.typeStr = "m";
- tranf_submit(objParam);
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPAEA02308
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPAEA02308_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
-
- lf_aezfSetSuppDeptcd();
-
- roundrect1.ipt_basecd.setFocus();
-
- //상태표시
- grdf_setRowTypeIcon(grd_bodypart,0);
- btn_sea.click();
- }
- /****************************************************************************************
- * 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_TRAEA02308();
- }
- /****************************************************************************************
- * 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, "투여방법코드관리(핵의학체내)", "sheet1");
- }
- /****************************************************************************************
- * 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)
- {
- dsf_deleteSelectedRows(grd_bodypart, true);
- }
- /****************************************************************************************
- * 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(ds_grid_grd_bodypart.rowposition,"basesuppdeptcd",suppdeptcd);
- ds_grid_grd_bodypart.setColumn(ds_grid_grd_bodypart.rowposition,"basecdflag","P");
- }
- /****************************************************************************************
- * 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) {
- ds_grid_grd_bodypart.clearData();
- }
- roundrect1.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)
- {
- if ( sysf_messageBox("", "Q002") == 6 ) {
- var update = grdf_getGridUpdateData(grd_bodypart,"all");
- var tmpbasecd;
- for(var i = 0; i < ds_grid_grd_bodypart.rowcount; i++){
- if(utlf_isNull(ds_grid_grd_bodypart.getColumn(i, "basecd"))){
- sysf_messageBox("투여방법코드 항목은", "I003");
- return;
- }else{
- tmpbasecd = ds_grid_grd_bodypart.getColumn(i, "basecd");
- }
-
- for(var j=0; j<ds_grid_grd_bodypart.rowcount; j++){
- if(tmpbasecd == ds_grid_grd_bodypart.getColumn(j,"basecd") && i!=j){
- sysf_messageBox("중복된 코드값이 존재합니다.","E999");
- return;
- }
- }
- }
-
- if (update.rowcount ==0) {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- roundrect1.ipt_basecd.setFocus();
- }
- else {
- submit_TXAEA02308();
- }
- submit_TRAEA02308();
-
- ds_send.setColumn(0,"basecd","");
- ds_send.setColumn(0,"basecdnm","");
- }
-
- }
- //닫기
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- //코드 edit에서 엔터 누를시 조회
- function roundrect1_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- btn_sea.click();
- }
- }
- //코드명 edit에서 엔터 누를시 조회
- function roundrect1_ipt_basecdnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- btn_sea.click();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|