123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMB02010" position="absolute 0 0 615 441" titletext="원무공통코드관리" oninit="SMPMB02010_oninit" onload="SMPMB02010_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 9 604 436" id="group2" scrollbars="autoboth" taborder="0">
- <Layouts>
- <Layout>
- <Div position="absolute 0 18 599 53" align="align:center top;" id="group3" anchor="default" class="div_SA">
- <Layouts>
- <Layout>
- <Static text="그룹코드 :" position="absolute 11 10 88 27" align="align:center middle;" id="caption2" class="search_name" anchor="default"/>
- <Edit position="absolute 85 8 152 27" id="input3" anchor="default" autoselect="true" enable="false" style=":disabled {align:center middle;}"/>
- <Button position="absolute 528 8 584 28" id="btn_search" class="btn1" text="조회" onclick="group2_group3_btn_search_onclick" anchor="default"/>
- <CheckBox id="checkbox1" taborder="1" text="이력제외" position="absolute 416 7 516 27" anchor="default" onchanged="group2_group3_checkbox1_onchanged" value="true"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 0 86 599 420" id="grd_code" visible="true" binddataset="ds_speccodelist" anchor="default" scrollbars="autoboth" cellsizingtype="both" autoenter="select" cellsizebandtype="allband" cellmovingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24" band="left"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="200"/>
- <Column size="40"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="200"/>
- <Column size="80"/>
- <Column size="150"/>
- <Column size="80"/>
- <Column size="150"/>
- <Column size="1"/>
- <Column size="1"/>
- <Column size="1"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="1"/>
- <Cell col="2" text="2"/>
- <Cell col="3" text="3"/>
- <Cell col="4" text="4"/>
- <Cell col="5" text="5"/>
- <Cell col="6" text="6"/>
- <Cell col="7" text="7"/>
- <Cell col="8" text="최초등록자"/>
- <Cell col="9" text="최초등록일시"/>
- <Cell col="10" text="최종수정자"/>
- <Cell col="11" text="최종수정일시"/>
- <Cell col="12" text="cdgrupid_org"/>
- <Cell col="13" text="cdid_org"/>
- <Cell col="14" text="todd_org"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" displaytype="text" edittype="text" text="bind:cdid" editimemode="alpha" editautoselect="false"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:cdnm" editimemode="hangul"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:detldesc" autosizerow="limitmax" autosizecol="limitmax"/>
- <Cell col="4" displaytype="normal" edittype="normal" style="align:center;" text="bind:dispseq"/>
- <Cell col="5" displaytype="date" edittype="date" style="align:center middle;" text="bind:fromdd" calendardisplaynulltype="none"/>
- <Cell col="6" displaytype="date" edittype="date" style="align:center middle;" text="bind:todd" calendardisplaynulltype="none"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:remark"/>
- <Cell col="8" displaytype="text" edittype="text" style="align:center;" text="bind:fstrgstrnm"/>
- <Cell col="9" displaytype="date" edittype="text" style="align:center;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss"/>
- <Cell col="10" displaytype="text" edittype="text" style="align:center;" text="bind:lastupdtrnm"/>
- <Cell col="11" displaytype="date" edittype="text" style="align:center;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm:ss"/>
- <Cell col="12" text="bind:cdgrupid_org"/>
- <Cell col="13" text="bind:cdid_org"/>
- <Cell col="14" text="bind:todd_org"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 547 60 589 79" id="button4" class="btn2" text="저장" anchor="default" onclick="group2_button4_onclick"/>
- <Static text="상세 코드 조회" position="absolute 0 65 135 81" id="caption9" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 81 599 87" linetype="horizontal" id="line5" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Button position="absolute 491 60 544 79" id="button10" class="btn2" text="행삭제" anchor="default" onclick="group2_button10_onclick"/>
- <Button position="absolute 436 60 489 79" id="button11" class="btn2" text="행추가" anchor="default" onclick="group2_button11_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 1 550 26" id="group1" taborder="1">
- <Layouts>
- <Layout>
- <Static text="원무공통코드관리(공통)" position="absolute 0 0 100 25" id="caption7" class="tit_1" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dd" type="STRING" size="256"/>
- <Column id="groupcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="보험메뉴호출여부"/>
- <Column id="cdgrupnm" type="STRING" size="256" sumtext="그룹명칭"/>
- <Column id="sessuserid" type="STRING" size="256" sumtext="로그인ID"/>
- <Column id="histyn" type="STRING" size="256"/>
- <Column id="exptyn" type="STRING" size="256"/>
- <Column id="sortkey" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_comcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드ID"/>
- <Column id="cdgrupnm" type="STRING" size="256" sumtext="그룹코드명"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="세부코드"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작날자"/>
- <Column id="todd" type="STRING" size="256" sumtext="시작날자"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_speccodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드ID"/>
- <Column id="cdid" type="STRING" size="256" sumtext="코드ID"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="그룹코드명"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="세부코드"/>
- <Column id="dispseq" type="STRING" size="256" sumtext="코드순서"/>
- <Column id="remark" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작날자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료날자"/>
- <Column id="fstrgstrnm" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrnm" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="cdgrupid_org" type="STRING" size="256" sumtext="그룹코드ID_org"/>
- <Column id="cdid_org" type="STRING" size="256" sumtext="코드ID_org"/>
- <Column id="todd_org" type="STRING" size="256" sumtext="종료날자_org"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_updatedata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="상태"/>
- <Column id="cdgrupid" type="STRING" size="256" sumtext="그룹코드ID"/>
- <Column id="cdid" type="STRING" size="256" sumtext="코드ID"/>
- <Column id="cdnm" type="STRING" size="256" sumtext="그룹코드명"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="세부코드"/>
- <Column id="dispseq" type="STRING" size="256" sumtext="코드순서"/>
- <Column id="remark" type="STRING" size="256" sumtext="참고사항"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작날자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료날자"/>
- <Column id="cdgrupid_org" type="STRING" size="256" sumtext="그룹코드ID_org"/>
- <Column id="cdid_org" type="STRING" size="256" sumtext="코드ID_org"/>
- <Column id="todd_org" type="STRING" size="256" sumtext="종료날자_org"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-07-22
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-07-22 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM001.xjs";
- function SMPMB02010_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMPMB02010_onload(obj:Form, e:LoadEventInfo)
- {
- // 메뉴 파라미터 확인
- var param = frmf_getMenuParam();
-
- // 메뉴 파라미터가 존재하지 않는 경우
- if(utlf_isNull(param)) {
-
- // 오프너 파라미터 확인
- if(frmf_checkOpener()) {
- param = opener.frmf_getParameter("SMPMB02010_PARAM");
- }
- }
-
- if(!utlf_isNull(param)) {
-
- // 공통코드 설정
- group2.group3.input3.value = param;
- grdf_setRowTypeIcon(group2.grd_code, 0);
-
- ds_send.setColumn(0, "exptyn", "Y");
-
- // 그룹코드 조회
- fGetCdgrInfo();
-
- // 메뉴 / 오프너 파라미터가 전달되지 않은경우 사용불가처리
- } else {
-
- group2.group3.btn_search.enable = false;
- group2.button11.enable = false;
- group2.button11.enable = false;
- group2.button4.enable = false;
- }
- }
- /**
- * 조회버튼 클릭이벤트
- */
- function group2_group3_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- /**
- 조회성공 시 콜백메서드
- */
- function cf_TRPMB02010(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
-
- ds_speccodelist.addColumn("cdgrupid_org", "string");
- ds_speccodelist.addColumn("cdid_org", "string");
- ds_speccodelist.addColumn("todd_org", "string");
-
-
- for(var i=0; i< ds_speccodelist.rowcount; i++ ){
- var sCdgrupid = ds_speccodelist.getColumn(i, "cdgrupid");
- var sCdid = ds_speccodelist.getColumn(i, "cdid");
- var sTodd = ds_speccodelist.getColumn(i, "todd");
-
- ds_speccodelist.setColumn(i, "cdgrupid_org", sCdgrupid);
- ds_speccodelist.setColumn(i, "cdid_org", sCdid);
- ds_speccodelist.setColumn(i, "todd_org", sTodd);
- }
- ds_speccodelist.applyChange();
- }
- /**
- 행추가버튼 클릭 이벤튼
- */
- function group2_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_comcodelist.rowposition;
- var addRw = ds_speccodelist.addRow();
- var cdgrupid = ds_comcodelist.getColumn(nRow,"cdgrupid")
- ds_speccodelist.setColumn(addRw, "cdgrupid", cdgrupid );
-
- }
- /**
- 저장버튼 클릭 이벤트
- */
- function group2_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- f_save();
- }
- // 저장
- function f_save(){
- var updtdata = grdf_getGridUpdateData(group2.grd_code);
- grdf_setStatusColumn(updtdata,"status");
- if ( updtdata.rowcount == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- if (sysf_messageBox("저장", "S001") == 6)
- {
- ds_send_updatedata2.copyData(updtdata,true);
-
- var oParam = {};
- oParam.id = "TRPMB02001";
- oParam.service = "pambaseinfomngtapp.PamComCode";
- oParam.method = "reqExeSpecCode";
- oParam.inds = "grdSpecDataList=ds_send_updatedata2";
- //oParam.inds = "req=ds_send_updatedata2";
- oParam.outds = "ds_speccodelist=speccodelist";
- oParam.async = false;
- oParam.callback = "cf_TRPMB02010";
- tranf_submit(oParam);
- }
- }
- /**
- 행삭제
- */
- function group2_button10_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_speccodelist.rowposition;
- grdf_setStatus(group2.grd_code, "D", [nRow]);
-
- f_save();
- }
- /**
- * 그룹코드정보 조회
- */
- function fGetCdgrInfo() {
- ds_comcodelist.reset();
- ds_speccodelist.reset();
-
- var groupcd = group2.group3.input3.value;
- var cdgrupid = "";
- var cdgrupnm = "";
- var sessuserid = sysf_getUserInfo("userid");
- var histyn = "";
- if (group2.group3.checkbox1.value==true) {
- histyn = "N";
- } else {
- histyn = "";
- }
-
- ds_send.setColumn(0, "groupcd", groupcd );
- ds_send.setColumn(0, "cdgrupid", cdgrupid );
- ds_send.setColumn(0, "cdgrupnm", cdgrupnm );
- ds_send.setColumn(0, "sessuserid", sessuserid );
- ds_send.setColumn(0, "histyn", histyn );
-
- var oParam = {};
- oParam.id = "TRPMB02000";
- oParam.service = "pambaseinfomngtapp.PamComCode";
- oParam.method = "reqGetGroupCodeInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_comcodelist=comcodelist";
- oParam.async = false;
- tranf_submit(oParam);
-
- if (ds_comcodelist.rowcount < 1) {
- sysf_messageBox("공통코드 조회에 실패하였습닙다.","E999");
- } else {
-
- group1.caption7.text = ds_comcodelist.getColumn(0, "cdgrupnm");
-
- if (ds_comcodelist.getColumn(0, "cdgrupnm").length < 6) {
- group1.caption7.position.width = 80;
- } else if (ds_comcodelist.getColumn(0, "cdgrupnm").length < 11) {
- group1.caption7.position.width = 160;
- } else if (ds_comcodelist.getColumn(0, "cdgrupnm").length < 16) {
- group1.caption7.position.width = 240;
- } else if (ds_comcodelist.getColumn(0, "cdgrupnm").length < 21) {
- group1.caption7.position.width = 320;
- } else {
- group1.caption7.position.width = 600;
- }
-
- var headerText = ds_comcodelist.getColumn(0, "detldesc");
- var headerArr = headerText.split("^");
-
- for (var i = 0; i < headerArr.length; i++) {
- group2.grd_code.setCellProperty("Head", i + 1, "text", headerArr[i]);
- }
-
- // 세부내역 조회
- fSearch();
- }
- }
- function fSearch() {
- ds_send.setColumn(0, "cdgrupid", ds_send.getColumn(0, "groupcd"));
- ds_send.setColumn(0, "sortkey", "dispseq");
-
- var oParam = {};
- oParam.id = "TRPMB02010";
- oParam.service = "pambaseinfomngtapp.PamComCode";
- oParam.method = "reqGetSpecCodeInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_speccodelist=speccodelist";
- oParam.async = false;
- oParam.callback = "cf_TRPMB02010";
- tranf_submit(oParam);
- }
- function group2_group3_checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
- {
- var histyn;
-
- if (obj.value==true) {
- histyn = "N";
- } else {
- histyn = "";
- }
-
- ds_send.setColumn(0, "histyn", histyn);
- }
- ]]></Script>
- </Form>
- </FDL>
|