123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMRPD33100" position="absolute 0 0 1198 771" titletext="진료권한신청 사용자 권한 관리" oninit="SMRPD33100_oninit" onload="SMRPD33100_onload">
- <Layouts>
- <Layout>
- <Static text="진료권한신청 사용자 권한 관리" position="absolute 0 0 227 25" id="caption1" class="tit_1" onclick="caption1_onclick" anchor="left top"/>
- <Static text="※ 임상과장 권한을 등록하는 경우에는 권한 부서를 등록해 주십시요." position="absolute 0 745 485 765" id="caption3" style="color:red;" anchor="left bottom"/>
- <Shape id="line2" linetype="horizontal" class="line_6" position="absolute 0 38 1195 44" anchor="left top right"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1139 17 1195 39" anchor="top right" onclick="btn_save_onclick"/>
- <Div id="grp_sea" taborder="2" position="absolute 0 41 1195 81" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout>
- <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 305 9 361 31" anchor="left top" onclick="grp_sea_btn_search_onclick"/>
- <Shape id="line3" linetype="vertical" position="absolute 287 9 293 31" anchor="left top"/>
- <Combo id="cmb_instcd" taborder="1" class="combo_s_default" enable="false" position="absolute 130 11 272 30" anchor="left top"/>
- <Static id="caption2" text="기관코드" class="search_name" position="absolute 49 12 125 29" anchor="left top"/>
- <Radio id="Radio00" taborder="2" columncount="0" rowcount="0" position="absolute 809 13 1002 33" codecolumn="codecolumn" datacolumn="datacolumn" direction="vertical" value="A" index="-1" onitemchanged="grp_sea_Radio00_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">임상과장</Col>
- </Row>
- <Row>
- <Col id="codecolumn">B</Col>
- <Col id="datacolumn">책임교수</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="Tab00" taborder="4" tabindex="0" scrollbars="autoboth" position="absolute 1 86 1192 737" tabposition="bottom">
- <Tabpages>
- <Tabpage id="tabpage1" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static id="caption4" text="사용자 권한 정보" class="tit_2" position="absolute 1 8 124 24" anchor="left top"/>
- <Shape id="line7" class="line_10" position="absolute 0 25 1187 31" anchor="left top right"/>
- <Grid id="datagrid1" taborder="1" binddataset="ds_main_codeinfo_codelist" autoenter="select" useinputpanel="false" onexpandup="datagrid1_onexpandup" ontextchanged="datagrid1_ontextchanged" position="absolute 0 31 1187 611" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="82"/>
- <Column size="104"/>
- <Column size="106"/>
- <Column size="108"/>
- <Column size="218"/>
- <Column size="0"/>
- <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="부서명"/>
- <Cell col="6" text="instcd"/>
- <Cell col="7" text="grupcdid"/>
- <Cell col="8" text="cdid"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="align:center;" text="bind:emplno" editautoselect="true" expandshow="show" enable="false"/>
- <Cell col="2" text="bind:emplnm" editautoselect="true"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="padding:1 2 1 2;" text="bind:cntlcd1" combodataset="ds_cntlcd1" combocodecol="value" combodatacol="label"/>
- <Cell col="4" displaytype="normal" edittype="text" text="bind:buseocode" expandshow="show"/>
- <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:deptnm" wordwrap="word" editautoselect="true"/>
- <Cell col="6" text="bind:instcd"/>
- <Cell col="7" text="bind:grupcdid"/>
- <Cell col="8" text="bind:cdid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_grdadd" taborder="2" text="행추가" onclick="btn_grdadd_onclick" class="btn2" position="absolute 1077 7 1130 26" anchor="top right"/>
- <Button id="btn_grddel" taborder="3" text="행삭제" onclick="btn_grddel_onclick" class="btn2" position="absolute 1133 7 1186 26" anchor="top right"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="tabpage2">
- <Layouts>
- <Layout>
- <Static id="caption4" text="사용자 권한 정보(책임교수)" class="tit_2" position="absolute 1 8 215 24" anchor="left top"/>
- <Button id="btn_grdadd2" taborder="1" text="행추가" class="btn2" position="absolute 1077 7 1130 26" anchor="top right" onclick="Tab00_tabpage2_btn_grdadd2_onclick"/>
- <Button id="btn_grddel2" taborder="2" text="행삭제" class="btn2" position="absolute 1133 7 1186 26" anchor="top right" onclick="Tab00_tabpage2_btn_grddel2_onclick"/>
- <Shape id="line7" class="line_10" position="absolute 0 25 675 31" anchor="left top right"/>
- <Grid id="datagrid2" taborder="3" binddataset="ds_main_codeinfo_codelist2" autoenter="select" useinputpanel="false" ontextchanged="datagrid1_ontextchanged" position="absolute 1 31 674 611" anchor="all" oncellclick="Tab00_tabpage2_datagrid2_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="82"/>
- <Column size="104"/>
- <Column size="106"/>
- <Column size="108"/>
- <Column size="218"/>
- <Column size="0"/>
- <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="부서명"/>
- <Cell col="6" text="instcd"/>
- <Cell col="7" text="grupcdid"/>
- <Cell col="8" text="cdid"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="align:center;" text="bind:emplno" editautoselect="true" expandshow="hide" enable="false"/>
- <Cell col="2" text="bind:emplnm" editautoselect="true"/>
- <Cell col="3" displaytype="combo" edittype="none" style="padding:1 2 1 2;" text="bind:cntlcd1" combodataset="ds_cntlcd2" combocodecol="value" combodatacol="label" combodisplay="edit"/>
- <Cell col="4" displaytype="normal" edittype="none" text="bind:buseocode" expandshow="hide"/>
- <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:deptnm" wordwrap="word" editautoselect="true"/>
- <Cell col="6" text="bind:instcd"/>
- <Cell col="7" text="bind:grupcdid"/>
- <Cell col="8" text="bind:cdid"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line00" class="line_10" position="absolute 728 25 1187 31" anchor="left top right"/>
- <Grid id="datagrid3" taborder="4" binddataset="ds_main_detail_info" autoenter="select" useinputpanel="false" ontextchanged="datagrid1_ontextchanged" position="absolute 727 31 1188 611" anchor="all" onexpandup="Tab00_tabpage2_datagrid3_onexpandup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="82"/>
- <Column size="104"/>
- <Column size="218"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="instcd"/>
- <Cell col="5" text="grupcdid"/>
- <Cell col="6" text="cdid"/>
- <Cell col="7" text="부서코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" style="align:center;" text="bind:emplno" editautoselect="true" expandshow="show" enable="false"/>
- <Cell col="2" text="bind:emplnm" editautoselect="true"/>
- <Cell col="3" style="padding:5 2 1 2;" text="bind:dutplcedeptnm" wordwrap="word" editautoselect="true"/>
- <Cell col="4" text="bind:instcd"/>
- <Cell col="5" text="bind:grupcdid"/>
- <Cell col="6" text="bind:cdid"/>
- <Cell col="7" text="bind:dutplcedeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="emplno" type="STRING"/>
- <Column id="emplnm" type="STRING"/>
- <Column id="cntlcd1" type="STRING"/>
- <Column id="buseocode" type="STRING"/>
- <Column id="deptnm" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="grupcdid" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="grupcdid" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="grupcdid">R0023</Col>
- <Col id="gubun">A</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="count" type="STRING" size="256" sumtext="실행건수"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cntlcd1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">임상과장</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">위원장</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_senddata_execdata_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cntlcd2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">센터장</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">위원장</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">책임교수</Col>
- <Col id="value">5</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_codeinfo_codelist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="emplno" type="STRING"/>
- <Column id="emplnm" type="STRING"/>
- <Column id="cntlcd1" type="STRING"/>
- <Column id="buseocode" type="STRING"/>
- <Column id="deptnm" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="grupcdid" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_reqdetldata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="emplno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_detail_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="emplno" type="STRING"/>
- <Column id="emplnm" type="STRING"/>
- <Column id="cntlcd1" type="STRING"/>
- <Column id="buseocode" type="STRING"/>
- <Column id="deptnm" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="grupcdid" type="STRING"/>
- <Column id="cdid" type="STRING"/>
- <Column id="dutplcedeptcd" type="STRING" size="256"/>
- <Column id="dutplcedeptnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_senddata_execdata_codelistdetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send_reqdata" columnid="instcd"/>
- <BindItem id="item1" compid="grp_sea.Radio00" propid="value" datasetid="ds_send_reqdata" columnid="gubun"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-06-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_humtrafactmngtxp::RPB001.xjs";
- function SMRPD33100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(Tab00.tabpage1.datagrid1); //그리드 Sorting 기능 추가
- grdf_setRowTypeIcon(Tab00.tabpage1.datagrid1, 0);
- grdf_setRowTypeIcon(Tab00.tabpage2.datagrid3, 0);
- }
- function SMRPD33100_onload(obj:Form, e:LoadEventInfo)
- {
- misfComboInstCdListMulti("grp_sea.cmb_instcd", utlf_getCurrentDate(),"","N");
- grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
- //trace(grp_sea.cmb_instcd.value);
- if(grp_sea.cmb_instcd.value == "031"){
- Tab00.tabpage1.datagrid1.setCellProperty("body", Tab00.tabpage1.datagrid1.getBindCellIndex("body","cntlcd1"), "combodataset","ds_cntlcd1");
- }else{
- Tab00.tabpage1.datagrid1.setCellProperty("body", Tab00.tabpage1.datagrid1.getBindCellIndex("body","cntlcd1"), "combodataset","ds_cntlcd2");
- }
-
- grp_sea.btn_search.click();
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- readfunc();
- }
- function readfunc()
- {
- if(grp_sea.Radio00.value == "A"){
- misfGridInit(Tab00.tabpage1.datagrid1);
-
- var oParam = {};
- oParam.id = "TRRPD33101";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetAuthPowerList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_codeinfo_codelist=codelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD33101";
- tranf_submit(oParam);
- }else if(grp_sea.Radio00.value == "B"){
- var sRowPosition = ds_main_codeinfo_codelist2.rowposition;
- misfGridInit(Tab00.tabpage2.datagrid3);
-
- var oParam = {};
- oParam.id = "TRRPD33101";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetAuthPowerList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_codeinfo_codelist2=codelist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD33101";
- tranf_submit(oParam);
-
- if(sRowPosition >= 0 ){
- ds_main_codeinfo_codelist2.selectRow(sRowPosition);
- fReadDetail();
- }
- }
- }
- //행추가
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_codeinfo_codelist.addRow();
- var irow = ds_main_codeinfo_codelist.rowposition
- ds_main_codeinfo_codelist.setColumn(irow, "instcd", grp_sea.cmb_instcd.value);
- ds_main_codeinfo_codelist.setColumn(irow, "grupcdid", ds_send_reqdata.getColumn(0, "grupcdid"));
- }
- //행삭제
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- var deptrow = ds_main_codeinfo_codelist.rowposition;
- var arrPostion = new Array();
- arrPostion[0] = deptrow;
- var status = ds_main_codeinfo_codelist.getRowType(arrPostion)
- if(status == 1)
- {
- grdf_setStatus(Tab00.tabpage1.datagrid1, "D", arrPostion);
- }
- else if(status == 2)
- {
- ds_main_codeinfo_codelist.deleteRow(deptrow);
- }
- else if(status == 4)
- {
- ds_main_codeinfo_codelist.deleteRow(deptrow);
- }
- else if(status == 8)
- {
- grdf_setStatus(Tab00.tabpage1.datagrid1, "", arrPostion);
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- if (datacheck() == false)
- {
- return;
- }
-
- ExecData();
- }
- function datacheck()
- {
- var scdid1 = "";
- var scdid2 = "";
-
- if(grp_sea.Radio00.value == "A"){
-
- for(var i = 0; i < ds_main_codeinfo_codelist.rowcount; i++)
- {
- if( utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "emplno")))
- {
- sysf_messageBox("사원번호는 필수 입력 항목입니다.", "E999", "");
- return false;
- }
- if( utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "cntlcd1")))
- {
- sysf_messageBox("허용권한은 필수 입력 항목입니다.", "E999", "");
- return false;
- }
-
- if(ds_main_codeinfo_codelist.getColumn(i, "cntlcd1") == "1") //1:임상과장
- {
- if( utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "buseocode")))
- {
- sysf_messageBox("임상과장 권한은 부서가 필수 입력 항목입니다.", "E999", "");
- return false;
- }
- }
- }
- return true;
-
- }else if(grp_sea.Radio00.value == "B"){
-
- for(var i = 0; i < ds_main_detail_info.rowcount; i++)
- {
- if( utlf_isNull(ds_main_detail_info.getColumn(i, "emplno")))
- {
- sysf_messageBox("사원번호는 필수 입력 항목입니다.", "E999", "");
- return false;
- }
- if( utlf_isNull(ds_main_detail_info.getColumn(i, "dutplcedeptcd")))
- {
- sysf_messageBox("부서는 필수 입력 항목입니다.", "E999", "");
- return false;
- }
- if( utlf_isNull(ds_main_detail_info.getColumn(i, "cntlcd1")))
- {
- sysf_messageBox("책임교수가 지정(선택)되지 않았습니다.", "E999", "");
- return false;
- }
- }
- return true;
- }
- }
- function ExecData()
- {
- if(grp_sea.Radio00.value == "A"){
-
- var update = grdf_getGridUpdateData(Tab00.tabpage1.datagrid1);
- grdf_setStatusColumn(update, "status");
- ds_senddata_execdata_codelist.copyData(update, true);
-
- var oParam = {};
- oParam.id = "TXRPD33101";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveAuthPowerList";
- oParam.inds = "codelist=ds_senddata_execdata_codelist";
- oParam.outds = "ds_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD33101";
- tranf_submit(oParam);
- }else if(grp_sea.Radio00.value == "B"){
-
- var update = grdf_getGridUpdateData(Tab00.tabpage2.datagrid3);
- grdf_setStatusColumn(update, "status");
- ds_senddata_execdata_codelistdetl.copyData(update, true);
-
- var oParam = {};
- oParam.id = "TXRPD33102";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqExeSaveAuthPowerListDetl";
- oParam.inds = "codelist=ds_senddata_execdata_codelistdetl";
- oParam.outds = "ds_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TXRPD33101";
- tranf_submit(oParam);
-
- }
-
- readfunc();
- }
- function datagrid1_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col == 1)
- {
- var recv_list = "emplno,emplnm";
- rpbfOpenPopUpList("SPRPB00101", Tab00.tabpage1.datagrid1, recv_list,"","N");
- }
- else if(e.col == 4)
- {
- misfOpenPopUpList("02", Tab00.tabpage1.datagrid1, "", "buseocode,deptnm");
- }
- }
- function datagrid1_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
- {
- if(e.col == 3)
- {
- var cd = ds_main_codeinfo_codelist.getColumn(ds_main_codeinfo_codelist.rowposition, "cntlcd1");
-
- if(cd != "1") //권한이 임상과장(1)이 아니면 권한부서와 부서명을 지운다.
- {
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "buseocode", "");
- ds_main_codeinfo_codelist.setColumn(ds_main_codeinfo_codelist.rowposition, "deptnm", "");
- }
- }
- }
- function fReadDetail(){
- misfGridInit(Tab00.tabpage2.datagrid3);
-
- var sEmplno = ds_main_codeinfo_codelist2.getColumn(ds_main_codeinfo_codelist2.rowposition, "emplno");
- ds_send_reqdetldata.setColumn(0, "emplno", sEmplno);
- ds_send_reqdetldata.setColumn(0, "instcd", grp_sea.cmb_instcd.value);
- var oParam = {};
- oParam.id = "TRRPD33102";
- oParam.service = "dligclaznsmngtapp.DutScheMngt";
- oParam.method = "reqGetAuthPowerDetailList";
- oParam.inds = "req=ds_send_reqdetldata";
- oParam.outds = "ds_main_detail_info=detlist";
- oParam.async = false;
- //oParam.callback = "cf_TRRPD33102";
- tranf_submit(oParam);
- }
- //detail 행추가
- function Tab00_tabpage2_btn_grdadd2_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_detail_info.addRow();
- var irow = ds_main_detail_info.rowposition
- var sEmplno = ds_main_codeinfo_codelist2.getColumn(ds_main_codeinfo_codelist2.rowposition, "emplno");
-
- ds_main_detail_info.setColumn(irow, "instcd", grp_sea.cmb_instcd.value);
- ds_main_detail_info.setColumn(irow, "grupcdid", "R0033");
- ds_main_detail_info.setColumn(irow, "cntlcd1", sEmplno);
- }
- //detail 행삭제
- function Tab00_tabpage2_btn_grddel2_onclick(obj:Button, e:ClickEventInfo)
- {
- var deptrow = ds_main_detail_info.rowposition;
- var arrPostion = new Array();
- arrPostion[0] = deptrow;
- var status = ds_main_detail_info.getRowType(arrPostion)
-
- if(status == 1)
- {
- grdf_setStatus(Tab00.tabpage2.datagrid3, "D", arrPostion);
- }
- else if(status == 2)
- {
- ds_main_detail_info.deleteRow(deptrow);
- }
- else if(status == 4)
- {
- ds_main_detail_info.deleteRow(deptrow);
- }
- else if(status == 8)
- {
- grdf_setStatus(Tab00.tabpage2.datagrid3, "", arrPostion);
- }
- }
- function Tab00_tabpage2_datagrid3_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col == 1)
- {
- var recv_list = "emplno,emplnm,dutplcedeptcd,dutplcedeptnm";
- rpbfOpenPopUpList("SPRPB00101", Tab00.tabpage2.datagrid3, recv_list,"","N");
- }
- else if(e.col == 4)
- {
- misfOpenPopUpList("02", Tab00.tabpage2.datagrid3, "", "buseocode,deptnm");
- }
- }
- function grp_sea_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- if(ds_send_reqdata.getColumn(0, "gubun") == "A"){
- Tab00.tabindex = 0;
- }else if(ds_send_reqdata.getColumn(0, "gubun") == "B"){
- Tab00.tabindex = 1;
- }
-
- readfunc();
- }
- function Tab00_tabpage2_datagrid2_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fReadDetail();
- }
- function grp_sea_Radio00_onitemclick(obj:Radio, e:RadioMouseEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|