123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPIC90400" position="absolute 0 0 450 700" titletext="부서 및 의사조회" onload="SMPIC90400_onload">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 12 30 437 85" style="" />
- <Static id="caption6" class="tit_1" position="absolute 0 5 143 20" style="" text="부서코드 및 의사ID 조회" />
- <Static id="caption1" class="search_name" position="absolute 25 60 130 77" style="" text="조회조건 :" />
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_usndept" class="radio_search" position="absolute 25 35 330 60" style="" onitemclick="rdo_usndept_onitemclick">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">actdeptcd</Col>
- <Col id="datacolumn">부서코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">actdeptnm</Col>
- <Col id="datacolumn">부서명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">actprcpdrid</Col>
- <Col id="datacolumn">의사ID</Col>
- </Row>
- <Row>
- <Col id="codecolumn">actprcpdrnm</Col>
- <Col id="datacolumn">의사명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Edit id="ipt_usndept" position="absolute 118 60 265 79" style="" anchor="default" onkeyup="ipt_usndept_onkeyup" />
- <Shape id="line1" class="line_4" linetype="vertical" position="absolute 362 37 365 77" style="" anchor="default" />
- <Button id="btn_usndeptsch" class="btn1_letter2" position="absolute 372 44 428 66" style="background:_gradation URL(../../.._com_commonweb_images_btn1_letter2.gif) ;" text="조회" onclick="btn_usndeptsch_onclick" />
- <Static id="caption2" class="tit_2" position="absolute 5 95 152 108" style="" text="행위재료 검색" />
- <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 7 110 442 113" style="" anchor="default" />
- <Grid id="grd_usndept" binddataset="ds_main_usndept_usndeptlist" position="absolute 11 118 439 630" style="" oncelldblclick="grd_usndept_oncelldblclick" onaftersort="grd_usndept_onaftersort">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="93" />
- <Column size="110" />
- <Column size="101" />
- <Column size="81" />
- <Column size="100" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="부서코드" />
- <Cell col="1" text="부서명" />
- <Cell col="2" text="의사코드" />
- <Cell col="3" text="의사명" />
- <Cell col="4" text="기관코드" />
- </Band>
- <Band id="body">
- <Cell text="bind:actdeptcd" />
- <Cell col="1" text="bind:actdeptnm" />
- <Cell col="2" text="bind:actprcpdrid" />
- <Cell col="3" text="bind:actprcpdrnm" />
- <Cell col="4" text="bind:instcd" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_access" class="btn4_letter2" position="absolute 320 640 376 662" style="background:_gradation URL(../../.._com_commonweb_images_btn4_letter2.gif) ;" text="확인" onclick="btn_access_onclick" />
- <Button id="btn_cancel" class="btn4_letter2" position="absolute 385 640 441 662" style="background:_gradation URL(../../.._com_commonweb_images_btn4_letter2.gif) ;" text="취소" onclick="btn_cancel_onclick" />
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" />
- <Column id="actdeptcd" type="STRING" size="256" />
- <Column id="actdeptnm" type="STRING" size="256" />
- <Column id="actprcpdrid" type="STRING" size="256" />
- <Column id="actprcpdrnm" type="STRING" size="256" />
- <Column id="usndeptch" type="STRING" size="256" />
- <Column id="usndeptip" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="instcd"></Col>
- <Col id="actdeptcd"></Col>
- <Col id="actdeptnm"></Col>
- <Col id="actprcpdrid"></Col>
- <Col id="actprcpdrnm"></Col>
- <Col id="usndeptch"></Col>
- <Col id="usndeptip"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_usndept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256" />
- <Column id="value" type="STRING" size="256" />
- <Column id="label" type="STRING" size="256" />
- <Column id="value" type="STRING" size="256" />
- <Column id="label" type="STRING" size="256" />
- <Column id="value" type="STRING" size="256" />
- <Column id="label" type="STRING" size="256" />
- <Column id="value" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">부서코드</Col>
- <Col id="value">actdeptcd</Col>
- <Col id="label">부서명</Col>
- <Col id="value">actdeptnm</Col>
- <Col id="label">의사코드</Col>
- <Col id="value">actprcpdrid</Col>
- <Col id="label">의사명</Col>
- <Col id="value">actprcpdrnm</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_usndept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="usndeptlist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="usndeptlist"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="rdo_usndept" propid="value" datasetid="ds_send_deptref" columnid="usndeptch" />
- <BindItem id="item1" compid="ipt_usndept" propid="value" datasetid="ds_send_deptref" columnid="usndeptip" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMPIC90400_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- model.setValue(rdo_usndept.attribute("ref"), "actdeptcd");
- ds_main_usndept_usndeptlist.clearData();
- ds_main.copyData(ds_temp_validation);
- // ds_send_deptref.setColumn( 0, "instcd",ds_temp_defalut.getColumn(0, "instcd"));
- //model.refresh();
- }
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_commonweb_js_common.js'
- var vflag = null;
- function rdo_usndept_onitemclick(obj:Radio, e:RadioMouseEventInfo) {
- if(rdo_usndept.value == "actdeptcd") {
- ipt_usndept.attribute("imemode") = "disabled";
- }
- else if (rdo_usndept.value == "actdeptnm") {
- ipt_usndept.attribute("imemode") = "hangul";
- }
- else if (rdo_usndept.value == "actprcpdrnm"){
- ipt_usndept.attribute("imemode") = "hangul";
- }else{
- ipt_usndept.attribute("imemode") = "disabled";
- }
- ds_send_deptref.setColumn( 0, "usndeptip" ,"");
- ipt_usndept.setFocus();
- //model.refresh();
- }
- function ipt_usndept_onkeyup(obj:Edit, e:KeyEventInfo) {
- inputEnterKey("btn_usndeptsch", "DOMActivate");
- }
- function btn_usndeptsch_onclick(obj:Button, e:ClickEventInfo) {
- if(rdo_usndept.value == "actdeptcd") {
- ds_send_deptref.setColumn( 0, "actdeptcd" ,ipt_usndept.value);
- ds_send_deptref.setColumn( 0, "actdeptnm" , "");
- ds_send_deptref.setColumn( 0, "actprcpdrid" , "");
- ds_send_deptref.setColumn( 0, "actprcpdrnm" , "");
- }else if(rdo_usndept.value == "actdeptnm"){
- ds_send_deptref.setColumn( 0, "actdeptnm",ipt_usndept.value);
- ds_send_deptref.setColumn( 0, "actdeptcd" , "");
- ds_send_deptref.setColumn( 0, "actprcpdrid" , "");
- ds_send_deptref.setColumn( 0, "actprcpdrnm" , "");
- }else if(rdo_usndept.value == "actprcpdrid"){
- ds_send_deptref.setColumn( 0, "actprcpdrid" ,ipt_usndept.value);
- ds_send_deptref.setColumn( 0, "actdeptcd" , "");
- ds_send_deptref.setColumn( 0, "actdeptnm" , "");
- ds_send_deptref.setColumn( 0, "actprcpdrnm" , "");
- }else{
- ds_send_deptref.setColumn( 0, "actprcpdrnm",ipt_usndept.value);
- ds_send_deptref.setColumn( 0, "actdeptcd" , "");
- ds_send_deptref.setColumn( 0, "actdeptnm" , "");
- ds_send_deptref.setColumn( 0, "actprcpdrid" , "");
- }
- ds_send_deptref.setColumn( 0, "usndeptch", rdo_usndept.value);
- ds_send_deptref.setColumn( 0, "instcd", sysf_getUserInfo("dutplceinstcd"));
- //
- //model.refresh();
- // submit("TRPIC90401");
- var oParam = {};
- oParam.id = "TRPIC90401";
- oParam.service = "actmatrapp.ActMatrMngt";
- oParam.method = "reqGetUsnDeptList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=usndeptlist";
- oParam.async = false;
- oParam.callback = "cf_TRPIC90401";
- tranf_submit(oParam);
- /*
- function cf_TRPIC90401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPIC90401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPIC90401") > -1
- arErrorCode.pop("TRPIC90401") < 0
- */
- }
- function grd_usndept_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- //if( grd_usndept.isCell(event.target) && grd_usndept.row > grd_usndept.fixedRows )
- //{
- btn_access.dispatch("DOMActivate");
- //}
- }
- function grd_usndept_onaftersort {
- grd_usndept.gridToInstance();
- }
- function btn_access_onclick(obj:Button, e:ClickEventInfo) {
- opener.javascript.frmf_setParameter("actdeptcd",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actdeptcd")));//common.js popup설정(["+grd_usndept.row+"] => 선택한 그리드 행
- opener.javascript.frmf_setParameter("actdeptnm",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actdeptnm")));
- opener.javascript.frmf_setParameter("actprcpdrid",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actprcpdrid")));
- opener.javascript.frmf_setParameter("actprcpdrnm",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actprcpdrnm")));
- model.close();
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
- window.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|