123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPCHI01300" position="absolute 0 0 461 393" titletext="건진 후 내원부서설정" oninit="SPCHI01300_oninit" onload="SPCHI01300_onload">
- <Layouts>
- <Layout>
- <Div id="group1" taborder="8" position="absolute 0 0 460 40" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption1" text="부서검색 :" class="search_name" position="absolute 16 11 109 28"/>
- <Combo id="cmb_orddept" taborder="1" innerdataset="ds_init_basecdlist_orddeptlist_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 108 10 238 29" onitemchanged="group1_cmb_orddept_onitemchanged"/>
- <Shape id="line1" linetype="vertical" class="line_4" position="absolute 360 9 366 31"/>
- <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 378 9 434 31"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption2" text="건진 후 내원 확인할 진료과(부서) 목록 설정" class="tit_2" position="absolute 0 49 330 70"/>
- <Button id="btn_adddept" taborder="3" text="행추가" class="btn2" position="absolute 353 46 406 65" onclick="btn_adddept_onclick"/>
- <Button id="btn_deldept" taborder="4" text="행삭제" class="btn2" position="absolute 407 46 460 65" onclick="btn_deldept_onclick"/>
- <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 65 460 71"/>
- <Grid id="grd_deptlist" taborder="5" binddataset="ds_main_deptlist" useinputpanel="false" position="absolute 0 70 460 365" autoenter="select" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="150"/>
- <Column size="150"/>
- <Column size="110"/>
- </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"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="combo" edittype="expr:getRowType(currow) == 2 ? 'combo' : 'none' " style="padding:0 0 0 3;" text="bind:orddeptcd" combodataset="ds_init_basecdlist_orddeptlist_dept" combocodecol="deptcd" combodatacol="depthngnm" combodisplayrowcount="100" enable="false"/>
- <Cell col="2" displaytype="date" class="text_center" text="bind:usdt" mask="yyyy-MM-dd hh:mm:ss" maskchar=" " calendardisplaynulltype="nulltext"/>
- <Cell col="3" class="text_center" text="bind:fstrgstrid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_save" taborder="6" text="저장" class="btn4" position="absolute 344 368 400 390" onclick="btn_save_onclick"/>
- <Button id="btn_cancel" taborder="7" text="취소" class="btn4" position="absolute 403 368 459 390" onclick="btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_basecdlist_orddeptlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="usdt" type="STRING" size="256" sumtext="시작일시"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="등록자ID"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddept" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.cmb_orddept" propid="value" datasetid="ds_send_srch" columnid="orddept"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function SPCHI01300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPCHI01300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_deptlist);
- grdf_setRowTypeIcon(grd_deptlist, 0);
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "ds_init_basecdlist_orddeptlist_dept";
- appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, "", "", "", "", "", rslt_ref, false, "")
-
- fCheckAuth();
- ds_main_deptlist.clearData();
-
- var oParam = {};
- oParam.id = "TRCHI01301";
- oParam.service = "healexammngtapp.HealExamTrgt";
- oParam.method = "reqGetFuDeptList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_deptlist=deptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRCHI01301";
- tranf_submit(oParam);
- }
- function fCheckAuth()
- {
- // 권한체크
- if (!frmf_checkAuth("r"))
- {
- group1.btn_search.enable = false;
- }
- if (!frmf_checkAuth("x"))
- {
- btn_save.enable = false;
- btn_adddept.enable = false;
- btn_deldept.enable = false;
- }
- }
- function group1_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var oParam = {};
- oParam.id = "TRCHI01301";
- oParam.service = "healexammngtapp.HealExamTrgt";
- oParam.method = "reqGetFuDeptList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_deptlist=deptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRCHI01301";
- tranf_submit(oParam);
- }
- function btn_adddept_onclick(obj:Button, e:ClickEventInfo)
- {
- grd_deptlist.setFocus();
- var addRow = ds_main_deptlist.addRow();
- ds_main_deptlist.setColumn(addRow, "usdt", utlf_getCurrentDate()+utlf_getCurrentTime());
- ds_main_deptlist.setColumn(addRow, "fstrgstrid", sysf_getUserId());
- grd_deptlist.setCellPos(1);
- grd_deptlist.showEditor(true);
- }
- function btn_deldept_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteSelectedRows(grd_deptlist);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveDeptList();
- }
- function fCheckDeptList()
- {
- for (var i = 0; i < ds_main_deptlist.rowcount; i++)
- {
- if (ds_main_deptlist.getRowType(i) == 2)
- {
- if (utlf_isNull(ds_main_deptlist.getColumn(i, "orddeptcd")))
- {
- sysf_messageBox("진료과를","C002");
- ds_main_deptlist.rowposition = i;
- grd_deptlist.setCellPos(1)
- grd_deptlist.showEditor(true);
- return false;
- }
- }
- }
- return true;
- }
- function fSaveDeptList()
- {
- if(!fCheckDeptList()) return;
-
- var grid = grd_deptlist;
- var updt_list = grdf_getGridUpdateData(grid);
- if (updt_list.rowcount != 0)
- {
- var oParam = {};
- oParam.id = "TXCHI01301";
- oParam.service = "healexammngtapp.HealExamTrgt";
- oParam.method = "reqExeFuDeptList";
- oParam.inds = "deptlist=ds_main_deptlist:u";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXCHI01301";
- tranf_submit(oParam);
- }
- }
- function cf_TXCHI01301(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- else
- {
- ds_main_deptlist.applyChange();
- ds_send_srch.setColumn(0, "orddept", "");
- var oParam = {};
- oParam.id = "TRCHI01301";
- oParam.service = "healexammngtapp.HealExamTrgt";
- oParam.method = "reqGetFuDeptList";
- oParam.inds = "req=ds_send_srch";
- oParam.outds = "ds_main_deptlist=deptlist";
- oParam.async = false;
- //oParam.callback = "cf_TRCHI01301";
- tranf_submit(oParam);
- }
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|