123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMQR03300" position="absolute 0 0 830 550" titletext="안전사고통합보고조회 권한관리" oninit="SMMQR03300_oninit" onload="SMMQR03300_onload">
- <Layouts>
- <Layout>
- <Tab position="absolute 0 27 813 532" id="switch1" onchanged="switch1_onchanged">
- <Tabpages>
- <Tabpage text="조회권한" id="case1">
- <Layouts>
- <Layout>
- <Edit readonly="true" position="absolute 323 46 458 65" id="output1" visible="false"/>
- <Edit position="absolute 145 48 215 67" id="input1" visible="false"/>
- <Shape position="absolute 0 38 810 73" id="roundrect1" visible="false" type="roundrectangle"/>
- <Static text="사용자직급 :" position="absolute 225 47 366 64" id="caption1" class="search_name" visible="false"/>
- <Static text="사용자직급조회(ID) :" position="absolute 2 47 143 64" id="caption21" class="search_name" visible="false"/>
- <Div position="absolute 0 441 810 466" id="group4">
- <Layouts>
- <Layout>
- <Button position="absolute 746 1 802 23" id="btn_close" class="btn4" text="닫기" onclick="switch1_case1_group4_btn_close_onclick"/>
- <Button position="absolute 686 1 742 23" id="btn_save" class="btn4" text="저장" onclick="switch1_case1_group4_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 19 812 425" id="group5">
- <Layouts>
- <Layout>
- <Button position="absolute 361 0 414 19" id="btn_add1" class="btn2" text="행추가" onclick="switch1_case1_group5_btn_add1_onclick"/>
- <Button position="absolute 541 0 594 19" id="btn_add2" class="btn2" text="행추가" onclick="switch1_case1_group5_btn_add2_onclick"/>
- <Button position="absolute 695 0 748 19" id="btn_add3" class="btn2" text="행추가" onclick="switch1_case1_group5_btn_add3_onclick"/>
- <Button position="absolute 416 0 469 19" id="btn_del1" class="btn2" text="행삭제" onclick="switch1_case1_group5_btn_del1_onclick"/>
- <Button position="absolute 596 0 649 19" id="btn_del2" class="btn2" text="행삭제" onclick="switch1_case1_group5_btn_del2_onclick"/>
- <Button position="absolute 750 0 803 19" id="btn_del3" class="btn2" text="행삭제"/>
- <Div position="absolute 0 20 470 405" id="group2">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 470 6" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 5 470 385" id="grd_grouplist" binddataset="ds_main_grouplist_grouplist" autofittype="col" oncelldblclick="switch1_case1_group5_group2_grd_grouplist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="126"/>
- <Column size="77"/>
- <Column size="81"/>
- <Column size="81"/>
- <Column size="82"/>
- <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="hardcdno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:trgtcdnm" wordwrap="word"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:left top;padding:5 2 1 2;" text="bind:trgtcdsnm" wordwrap="word" combodataset="ds_init_comcd_R0062" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:left middle;padding:1 2 1 2;" text="bind:hardspec" combodataset="ds_cbo_YN" combocodecol="value" combodatacol="label"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="align:left middle;padding:1 2 1 2;" text="bind:ccode" combodataset="ds_cbo_YN" combocodecol="value" combodatacol="label"/>
- <Cell col="5" style="align:left middle;padding:1 2 1 2;" text="bind:trgtcd"/>
- <Cell col="6" text="bind:hardcdno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 475 205 501 224" id="btn_detail" class="icon_right" text="" onclick="switch1_case1_group5_btn_detail_onclick"/>
- <Grid position="absolute 506 25 651 405" id="grd_deptlist" binddataset="ds_main_deptlist_deptlist" autofittype="col" onexpanddown="switch1_case1_group5_grd_deptlist_onexpanddown" oncelldblclick="switch1_case1_group5_grd_deptlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="120"/>
- <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="trgtcd"/>
- <Cell col="4" text="cdseqno"/>
- <Cell col="5" text="hardcdno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:trgtcdsnm" expandshow="show"/>
- <Cell col="2" text="bind:trgtcdnm"/>
- <Cell col="3" text="bind:trgtcd"/>
- <Cell col="4" text="bind:cdseqno"/>
- <Cell col="5" text="bind:hardcdno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape position="absolute 506 20 806 26" linetype="horizontal" id="line2" class="line_10"/>
- <Grid position="absolute 650 25 805 405" id="grd_ddeptlist" binddataset="ds_main_ddeptlist_ddeptlist" autofittype="col" onexpanddown="switch1_case1_group5_grd_ddeptlist_onexpanddown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="130"/>
- <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="trgtcd"/>
- <Cell col="4" text="cdseqno"/>
- <Cell col="5" text="hardcdno"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:trgtcdsnm" expandshow="show"/>
- <Cell col="2" text="bind:trgtcdnm"/>
- <Cell col="3" text="bind:trgtcd"/>
- <Cell col="4" text="bind:cdseqno"/>
- <Cell col="5" text="bind:hardcdno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage text="SMS대상자" id="case2">
- <Layouts>
- <Layout>
- <Div position="absolute 0 19 805 424" id="group3">
- <Layouts>
- <Layout>
- <Button position="absolute 691 0 744 19" id="button1" class="btn2" text="행추가" anchor="default" onclick="switch1_case2_group3_button1_onclick"/>
- <Button position="absolute 746 0 799 19" id="button4" class="btn2" text="행삭제" anchor="default" onclick="switch1_case2_group3_button4_onclick"/>
- <Div position="absolute 0 20 805 405" id="group6" anchor="default">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 800 6" linetype="horizontal" id="line3" class="line_10" anchor="default"/>
- <Grid position="absolute 0 5 800 379" id="datagridSMS" binddataset="ds_main_SMSlist_SMSlist" anchor="default" onexpanddown="switch1_case2_group3_group6_datagridSMS_onexpanddown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="97"/>
- <Column size="242"/>
- <Column size="116"/>
- <Column size="138"/>
- <Column size="163"/>
- <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="hardcdno"/>
- <Cell col="7" text="caption1"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:trgtcdnm" expandshow="show"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:trgtcdsnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:trgtcd"/>
- <Cell col="4" displaytype="combo" edittype="combo" text="bind:ccode" combodataset="ds_cbo_ccode" combocodecol="value" combodatacol="label"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:hardspec" expandshow="show" enable="false"/>
- <Cell col="6" displaytype="none" edittype="none" text="bind:hardcdno"/>
- <Cell col="7" text="bind:cdseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Static text="* 행추가 시 간호 과장 간호부장의 경우" position="absolute 10 1 665 21" id="caption2" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 423 810 478" id="group7">
- <Layouts>
- <Layout>
- <Button position="absolute 746 4 802 26" id="button2" class="btn4" text="닫기" onclick="switch1_case2_group7_button2_onclick"/>
- <Button position="absolute 686 4 742 26" id="button3" class="btn4" text="저장" onclick="switch1_case2_group7_button3_onclick"/>
- <Static text="※ 행추가 시 간호 과장 간호부장의 경우" position="absolute 10 16 365 36" id="caption3" style="color:red;"/>
- <Static text="- 소속과를 병동간호과장 : 0000000000 / 간호지원과장 : 0000000001 / 특수간호과장 : 0000000002 / 간호부장 : 7777777777로 입력" position="absolute 15 33 729 53" id="caption4"/>
- <Static text="※ 간호부 이외 센터나 외래쪽은 소속부를 기타로 선택" position="absolute 10 0 316 20" id="caption7" style="color:red;"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Static id="caption6" text="안전사고통합보고조회 권한관리" class="tit_1" position="absolute 0 0 365 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_comcd_R0062" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cbo_YN" 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">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_grouplist_grouplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_deptlist_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_ddeptlist_ddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdno" type="STRING" size="256"/>
- <Column id="trgtcd" type="STRING" size="256"/>
- <Column id="grouplist" type="STRING" size="256"/>
- <Column id="deptlist" type="STRING" size="256"/>
- <Column id="ddeptlist" type="STRING" size="256"/>
- <Column id="SMSlist" type="STRING" size="256"/>
- <Column id="userinfo" type="STRING" size="256"/>
- <Column id="dddd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="hardcdno"/>
- <Col id="trgtcd"/>
- <Col id="grouplist"/>
- <Col id="deptlist"/>
- <Col id="ddeptlist"/>
- <Col id="SMSlist"/>
- <Col id="userinfo"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_grouplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_ddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_cbo_ccode" 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">0000000000</Col>
- </Row>
- <Row>
- <Col id="label">간호지원과</Col>
- <Col id="value">0000000001</Col>
- </Row>
- <Row>
- <Col id="label">특수간호과</Col>
- <Col id="value">0000000002</Col>
- </Row>
- <Row>
- <Col id="label">간호과장</Col>
- <Col id="value">7777777777</Col>
- </Row>
- <Row>
- <Col id="label">간호부장</Col>
- <Col id="value">8888888888</Col>
- </Row>
- <Row>
- <Col id="label">관리자</Col>
- <Col id="value">9999999999</Col>
- </Row>
- <Row>
- <Col id="label">기타</Col>
- <Col id="value">1000000000</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_SMSlist_SMSlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_SMSlist_SMSlist_oncolumnchanged"/>
- <Dataset id="ds_send_SMSlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- include "com_commodulexp::SSZFM00701.xjs";
- include "mis_miscommonxp::MIS.xjs";
- include "mis_miscommonxp::RSZ001.xjs";
- var arErrorCode = new HashArray();
- function SMMQR03300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- grdf_setRowTypeIcon(switch1.case1.group5.group2.grd_grouplist, 0);
- grdf_setRowTypeIcon(switch1.case1.group5.grd_ddeptlist, 0);
- grdf_setRowTypeIcon(switch1.case1.group5.grd_deptlist, 0);
-
- //grdf_setGridSort(switch1.case1.group5.group2.grd_grouplist);
- //grdf_setGridSort(switch1.case1.group5.grd_deptlist);
- //grdf_setGridSort(switch1.case1.group5.grd_ddeptlist);
-
- grdf_setGridSort(switch1.case2.group3.group6.datagridSMS);
- }
- function SMMQR03300_onload(obj:Form, e:LoadEventInfo)
- {
- var arrParam = [ {dsNm : "ds_init_comcd_R0062", cdGrpId: "R0062" } ];
- appf_getCodeList(arrParam);
-
- var vInstcd = sysf_getUserInfo("dutplceinstcd");
-
- if(vInstcd != "032"){
- lf_setTabPageVisble(switch1, "case2", false);
- }
-
- forminit();
- }
- function forminit(){
- ds_send.setColumn(0, "hardcdno", "5667");
- //권한그룹조회
- var oParam = {};
- oParam.id = "TRMQR03301";
- oParam.service = "qiapp.SafeAcdList";
- oParam.method = "reqGetGruopList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_grouplist_grouplist=grouplist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_deptlist_deptlist.clearData();
- ds_main_ddeptlist_ddeptlist.clearData();
- }
- function SMSinit(){
- ds_send.setColumn(0, "hardcdno","9952");
-
- //권한그룹조회
- var oParam = {};
- oParam.id = "TRMQR03304";
- oParam.service = "qiapp.SafeAcdList";
- oParam.method = "reqGetSMSList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_SMSlist_SMSlist=SMSlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- //model.copyNode("/root/main/SMSlist", "/root/temp/SMSlist");
- }
- function switch1_case1_group5_btn_add1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_grouplist_grouplist.addRow();
-
- var trgtcd = eval(ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition - 1, "trgtcd"));
- if( ds_main_grouplist_grouplist.rowposition < 1 ){
- trgtcd = 0;
- }
- ds_main_grouplist_grouplist.setColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd", trgtcd+1);
- ds_main_grouplist_grouplist.setColumn(ds_main_grouplist_grouplist.rowposition, "hardcdno", "5667");
- ds_main_deptlist_deptlist.clearData();
- ds_main_ddeptlist_ddeptlist.clearData();
- }
- function switch1_case1_group5_btn_del1_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = ds_main_grouplist_grouplist.rowposition;
- if(cur_row < 0) {
- sysf_messageBox("삭제할 권한그룹 행을","C002");
- return;
- }
-
- ds_main_grouplist_grouplist.enableevent = false;
- ds_main_grouplist_grouplist.updatecontrol = false;
- ds_main_grouplist_grouplist.setRowType(ds_main_grouplist_grouplist.rowposition, 8);
- ds_main_grouplist_grouplist.updatecontrol = true;
- ds_main_grouplist_grouplist.enableevent = true;
- }
- function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
- {
- if(switch1.tabindex == 0){
- switch1.case2.group3.visible = false;
- switch1.case2.group7.visible = false;
- switch1.case1.group4.visible = true;
- switch1.case1.group5.visible = true;
- forminit();
- }else{
- switch1.case2.group3.visible = true;
- switch1.case2.group7.visible = true;
- switch1.case1.group4.visible = false;
- switch1.case1.group5.visible = false;
- SMSinit();
- }
- }
- function switch1_case1_group5_group2_grd_grouplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_send.setColumn(0, "hardcdno","5668");
- ds_send.setColumn(0, "trgtcd", ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd"));
-
- //주과조회
- var oParam = {};
- oParam.id = "TRMQR03302";
- oParam.service = "qiapp.SafeAcdList";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_deptlist_deptlist=deptlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_main_ddeptlist_ddeptlist.clearData();
- }
- function switch1_case1_group5_btn_detail_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send.setColumn(0, "hardcdno","5668");
- ds_send.setColumn(0, "trgtcd", ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd"));
-
- //주과조회
- var oParam = {};
- oParam.id = "TRMQR03302";
- oParam.service = "qiapp.SafeAcdList";
- oParam.method = "reqGetDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_deptlist_deptlist=deptlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function switch1_case1_group5_btn_add2_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = ds_main_grouplist_grouplist.rowposition;
- if(cur_row < 0) {
- sysf_messageBox("추가할 권한그룹 행을","C002");
- return;
- }
- ds_main_ddeptlist_ddeptlist.clearData();
-
- ds_main_deptlist_deptlist.addRow();
- switch1_case1_group5_grd_deptlist_onexpanddown();
- }
- function switch1_case1_group5_grd_deptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- frmf_clearParameter("SPZSA20202_");
-
- var col = switch1.case1.group5.grd_deptlist.currentcol;
-
- var objArg = new Object();
- objArg.SPZSA20202_1 = eval(col);
- var iProperties = frmf_modal("SPZSA20202", "SPZSA20202", objArg);
-
- if(!utlf_isNull(iProperties)){
- var iSplit_Value = utlf_transNullToEmpty(iProperties).split("|");
-
- if(utlf_transNullToEmpty(iSplit_Value).length > 0 && !utlf_isNull(iSplit_Value[0])){
- var iRow = ds_main_deptlist_deptlist.rowposition;
- var iNode = ds_main_deptlist_deptlist;
- var trgtcd = ds_main_grouplist_grouplist.getColumn(ds_main_grouplist_grouplist.rowposition, "trgtcd");
- var cdseqno = eval(ds_main_deptlist_deptlist.getColumn(ds_main_deptlist_deptlist.rowposition - 1, "cdseqno"));
-
- if( ds_main_deptlist_deptlist.rowposition < 1 ){
- cdseqno = eval(0);
- }
- var rsltCdseqno =trgtcd + grdf_getSelectedRows(switch1.case1.group5.grd_deptlist);
-
- if(iSplit_Value[0]=="D"){
- fSetRowValue(iNode, "trgtcdnm", iSplit_Value[1], iRow);
- fSetRowValue(iNode, "trgtcdsnm", iSplit_Value[2], iRow);
- fSetRowValue(iNode, "trgtcd", trgtcd, iRow);
- fSetRowValue(iNode, "cdseqno", rsltCdseqno, iRow);
- //fSetRowValue(iNode, "cdseqno", cdseqno+1, iRow);
- fSetRowValue(iNode, "hardcdno", "5668", iRow);
- }
- }
- }
- }
- function fSetRowValue(node, destinationelement, sourceelement, row) {
- dsf_makeValue(node, destinationelement, "string", sourceelement, row);
- }
- function switch1_case1_group5_btn_del2_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = ds_main_deptlist_deptlist.rowposition;
- if(cur_row < 0) {
- sysf_messageBox("삭제할 주과 행을","C002");
- return;
- }
-
- ds_main_deptlist_deptlist.enableevent = false;
- ds_main_deptlist_deptlist.updatecontrol = false;
- ds_main_deptlist_deptlist.setRowType(ds_main_deptlist_deptlist.rowposition, 8);
- ds_main_deptlist_deptlist.updatecontrol = true;
- ds_main_deptlist_deptlist.enableevent = true;
- }
- function switch1_case1_group5_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- ds_send.setColumn(0, "hardcdno","5669");
- ds_send.setColumn(0, "trgtcd", ds_main_deptlist_deptlist.getColumn(ds_main_deptlist_deptlist.rowposition, "cdseqno"));
-
- //부과부서 조회
- var oParam = {};
- oParam.id = "TRMQR03303";
- oParam.service = "qiapp.SafeAcdList";
- oParam.method = "reqGetDetailDeptList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_ddeptlist_ddeptlist=ddeptlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function switch1_case1_group5_btn_add3_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = ds_main_deptlist_deptlist.rowposition;
- if(cur_row < 0) {
- sysf_messageBox("추가할 주 과의 행을","C002");
- return;
- }
-
- ds_main_ddeptlist_ddeptlist.addRow();
- switch1_case1_group5_grd_ddeptlist_onexpanddown();
- }
- function switch1_case1_group5_grd_ddeptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- var col = switch1.case1.group5.grd_ddeptlist.currentcol;
-
- var objArg = new Object();
- objArg.SPZSA20202_1 = eval(col);
- var iProperties = frmf_modal("SPZSA20202", "SPZSA20202", objArg);
-
- if(!utlf_isNull(iProperties)){
- var iSplit_Value=utlf_transNullToEmpty(iProperties).split("|");
-
- if(utlf_transNullToEmpty(iSplit_Value).length > 0 && !utlf_isNull(iSplit_Value[0])){
- var iRow = ds_main_ddeptlist_ddeptlist.rowposition;
- var iNode = ds_main_ddeptlist_ddeptlist;
- var trgtcd = ds_main_deptlist_deptlist.getColumn(ds_main_deptlist_deptlist.rowposition, "cdseqno");
- var cdseqno = eval(ds_main_ddeptlist_ddeptlist.getColumn(ds_main_ddeptlist_ddeptlist.rowposition - 1, "cdseqno"));
-
- if( ds_main_ddeptlist_ddeptlist.rowposition < 1 ){
- cdseqno = eval(0);
- }
-
- if(iSplit_Value[0]=="D"){
- fSetRowValue(iNode, "trgtcdnm", iSplit_Value[1], iRow);
- fSetRowValue(iNode, "trgtcdsnm", iSplit_Value[2], iRow);
- fSetRowValue(iNode, "trgtcd", trgtcd, iRow);
- fSetRowValue(iNode, "cdseqno", cdseqno+1, iRow);
- fSetRowValue(iNode, "hardcdno", "5669", iRow);
- }
- }
- }
- }
- function switch1_case1_group4_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var updateData = grdf_getGridUpdateData(switch1.case1.group5.group2.grd_grouplist);
- grdf_setStatusColumn(updateData, "m");
- ds_send_grouplist.copyData(updateData, true);
-
- var updateData1 = grdf_getGridUpdateData(switch1.case1.group5.grd_deptlist);
- grdf_setStatusColumn(updateData1, "m");
- ds_send_deptlist.copyData(updateData1, true);
-
- var updateData2 = grdf_getGridUpdateData(switch1.case1.group5.grd_ddeptlist);
- grdf_setStatusColumn(updateData2, "m");
- ds_send_ddeptlist.copyData(updateData2, true);
-
- var oParam = {};
- oParam.id = "TXMQR03301";
- oParam.service = "qiapp.SafeAcdList";
- oParam.method = "reqSetGroupList";
- oParam.inds = "grouplist=ds_send_grouplist deptlist=ds_send_deptlist ddeptlist=ds_send_ddeptlist";
- oParam.outds = "ds_main_grouplist_grouplist=grouplist";
- oParam.async = false;
- oParam.callback = "cf_TXMQR03301";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMQR03301") > -1){
- sysf_messageBox("저장","I002");//완료되었습니다.
-
- ds_main_grouplist_grouplist.clearData();
- ds_main_deptlist_deptlist.clearData();
- ds_main_ddeptlist_ddeptlist.clearData();
- forminit();
- }else{
- sysf_messageBox("저장","E009");//실패하였습니다.
- }
- }
- function cf_TXMQR03301(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function switch1_case2_group3_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_SMSlist_SMSlist.addRow();
- ds_main_SMSlist_SMSlist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "hardcdno", "9952");
- }
- function switch1_case2_group3_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = ds_main_SMSlist_SMSlist.rowposition;
- if(cur_row < 0) {
- sysf_messageBox("삭제할 권한그룹 행을","C002");
- return;
- }
-
- ds_main_SMSlist_SMSlist.enableevent = false;
- ds_main_SMSlist_SMSlist.updatecontrol = false;
- ds_main_SMSlist_SMSlist.setRowType(ds_main_SMSlist_SMSlist.rowposition, 8);
- ds_main_SMSlist_SMSlist.updatecontrol = true;
- ds_main_SMSlist_SMSlist.enableevent = true;
-
- }
- function switch1_case2_group3_group6_datagridSMS_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- if( switch1.case2.group3.group6.datagridSMS.currentcol == switch1.case2.group3.group6.datagridSMS.getBindCellIndex("body", "hardspec") )
- {
- var recv_list = "hardspec";
- misfOpenPopUpList("02", switch1.case2.group3.group6.datagridSMS, "", recv_list, ds_main_SMSlist_SMSlist.getColumn(ds_main_SMSlist_SMSlist.rowposition, "hardspec"));
- }
- else if( datagridSMS.col == datagridSMS.colRef("trgtcdnm") )
- {
- frmf_setParameter("search_condition","김동규");
- frmf_setParameter("resultref","/root/send/userinfo");
- frmf_modal("SPZSU10100","SPZSU10100","", "", "", "","","", "", "", "", "", "M");
-
- var userinfo = ds_send.getColumn(0, "userinfo");
- userinfo = userinfo.split("|");
- if( utlf_isNull(userinfo)){
- return;
- }
-
- var rshid = userinfo[2];
- var rshnm = userinfo[3];
- var deptnm = userinfo[10];
- var deptcd = userinfo[11];
- var trgtmancntcphone = userinfo[18];
- var trgtmancntctel = userinfo[15];
-
- trgtmancntcphone = trgtmancntcphone.replace("-", "");
-
- ds_main_SMSlist_SMSlist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "trgtcdnm", userid);
- ds_main_SMSlist_SMSlist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "trgtcd", trgtmancntcphone);
- }
- }
- function ds_main_SMSlist_SMSlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( switch1.case2.group3.group6.datagridSMS.currentcol == switch1.case2.group3.group6.datagridSMS.getBindCellIndex("body", "ccode") ){
- if(ds_main_SMSlist_SMSlist.getColumn(ds_main_SMSlist_SMSlist.rowposition, "ccode") == "0000000000"){
- ds_main_grouplist_grouplist.setColumn(ds_main_SMSlist_SMSlist.rowposition, "hardspec", "0000000001");
-
- }
- }
- }
- function switch1_case2_group7_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- var updateData = grdf_getGridUpdateData(switch1.case2.group3.group6.datagridSMS);
- grdf_setStatusColumn(updateData, "m");
- ds_send_SMSlist.copyData(updateData, true);
-
- var oParam = {};
- oParam.id = "TXMQR03302";
- oParam.service = "qiapp.SafeAcdList";
- oParam.method = "reqSetSMSList";
- oParam.inds = "SMSlist=ds_send_SMSlist";
- oParam.outds = "ds_main_SMSlist_SMSlist=SMSlist";
- oParam.async = false;
- oParam.callback = "cf_TXMQR03302";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMQR03302") > -1){
- sysf_messageBox("저장","I002");//완료되었습니다.
- ds_main_SMSlist_SMSlist.clearData();
- SMSinit();
- }else{
- sysf_messageBox("저장","E009");//실패하였습니다.
- }
- }
- function cf_TXMQR03302(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function switch1_case2_group7_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function switch1_case1_group4_btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|