123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMZBC00400" position="absolute 0 0 1199 805" titletext="업무규칙 관리" oninit="SMZBC00400_oninit" onload="SMZBC00400_onload">
- <Layouts>
- <Layout>
- <Static id="caption7" text="우편번호 앞자리" class="cell_1" position="absolute 0 631 100 654" anchor="left bottom" style="padding:0 0 0 3;"/>
- <Static id="caption24" text="업무규칙 ID" class="cell_1" position="absolute 0 631 100 654" anchor="left bottom"/>
- <Static id="caption6" text="업무규칙관리" class="tit_1" position="absolute 0 0 189 24"/>
- <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 0 653 1195 659" anchor="left right bottom"/>
- <Div id="group2" taborder="1" class="div_SA2" position="absolute 0 66 1195 106" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" position="absolute 1099 9 1105 31" anchor="top right"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1122 8 1178 30" anchor="top right" onclick="group2_btn_search_onclick"/>
- <Edit id="ipt_search" taborder="2" class="input_search" position="absolute 126 10 276 29"/>
- <Combo id="combo1" taborder="3" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 16 10 116 29" index="0" value="bizid" text="업무규칙ID">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">bizid</Col>
- <Col id="datacolumn">업무규칙ID</Col>
- </Row>
- <Row>
- <Col id="codecolumn">biznm</Col>
- <Col id="datacolumn">업무규칙명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 626 1195 632" anchor="left right bottom"/>
- <Static id="caption20" text="업무규칙 목록" class="tit_2" position="absolute 0 120 118 141"/>
- <Shape id="line8" class="line_10" position="absolute 0 136 1194 142" anchor="left top right"/>
- <Button id="btn_delete" taborder="3" text="삭제" class="btn2" position="absolute 1153 607 1195 626" anchor="right bottom" onclick="btn_delete_onclick"/>
- <Button id="btn_update" taborder="4" text="수정" class="btn2" position="absolute 1110 607 1152 626" anchor="right bottom" onclick="btn_update_onclick"/>
- <Static id="caption22" text="업무규칙 상세설명" class="cell_1" position="absolute 0 657 100 792" anchor="left bottom"/>
- <TextArea id="tar_bizdesc" taborder="5" position="absolute 105 658 1195 791" autoselect="true" anchor="left right bottom"/>
- <Combo id="cmb_delyn" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_essential" position="absolute 503 633 548 652" anchor="left bottom">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Y</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Button id="btn_add" taborder="7" text="추가" class="btn2" position="absolute 1067 607 1109 626" anchor="right bottom" onclick="btn_add_onclick"/>
- <Static id="caption1" text="업무규칙 이름" class="cell_1" position="absolute 195 631 295 654" anchor="left bottom"/>
- <Edit id="ipt_biznm" taborder="8" class="input_essential" position="absolute 300 633 393 652" autoselect="true" anchor="left bottom"/>
- <Static id="caption3" text="삭제여부" class="cell_1" position="absolute 398 631 498 654" anchor="left bottom"/>
- <Edit id="ipt_bizid" taborder="9" class="input_essential" position="absolute 105 633 190 652" autoselect="true" anchor="left bottom"/>
- <Shape id="line7" linetype="vertical" class="line_3" position="absolute 0 788 1194 794"/>
- <Grid id="grd_bizlist" taborder="10" binddataset="ds_main_bizlist_biz" useinputpanel="false" position="absolute 0 141 1194 598" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_bizlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="200"/>
- <Column size="68"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="99"/>
- <Column size="100"/>
- <Column size="150"/>
- <Column size="101"/>
- <Column size="100"/>
- <Column size="150"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="업무규칙ID"/>
- <Cell col="2" text="업무규칙명"/>
- <Cell col="3" text="상세설명"/>
- <Cell col="4" text="삭제여부"/>
- <Cell col="5" text="권한기관코드"/>
- <Cell col="6" text="권한기관명"/>
- <Cell col="7" text="권한부서코드"/>
- <Cell col="8" text="권한부서명"/>
- <Cell col="9" text="최초등록자ID"/>
- <Cell col="10" text="최초등록자이름"/>
- <Cell col="11" text="최초등록일시"/>
- <Cell col="12" text="최종수정자ID"/>
- <Cell col="13" text="최종수정자이름"/>
- <Cell col="14" text="최종수정일시"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" style="align:left middle;padding:2 2 2 2;" text="bind:bizid"/>
- <Cell col="2" style="align:left middle;padding:2 2 2 2;" text="bind:biznm"/>
- <Cell col="3" style="align:left middle;padding:2 2 2 2;" text="bind:detldesc"/>
- <Cell col="4" style="align:left middle;padding:2 2 2 2;" text="bind:delyn"/>
- <Cell col="5" style="align:left middle;padding:2 2 2 2;" text="bind:authinstcd"/>
- <Cell col="6" style="align:left middle;padding:2 2 2 2;" text="bind:authinstnm"/>
- <Cell col="7" style="align:left middle;padding:2 2 2 2;" text="bind:authdeptcd"/>
- <Cell col="8" style="align:left middle;padding:2 2 2 2;" text="bind:authdeptnm"/>
- <Cell col="9" style="align:left middle;padding:2 2 2 2;" text="bind:fstrgstrid"/>
- <Cell col="10" style="align:left middle;padding:2 2 2 2;" text="bind:fstrgstrnm"/>
- <Cell col="11" displaytype="date" style="align:left middle;padding:2 2 2 2;" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="12" style="align:left middle;padding:2 2 2 2;" text="bind:lastupdtrid"/>
- <Cell col="13" style="align:left middle;padding:2 2 2 2;" text="bind:lastupdtrnm"/>
- <Cell col="14" displaytype="date" style="align:left middle;padding:2 2 2 2;" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line14" class="line_6" position="absolute 0 62 1194 68" anchor="left top right"/>
- <Button id="btn_save" taborder="11" text="저장" class="btn4" position="absolute 1067 41 1123 63" anchor="top right" onclick="btn_save_onclick"/>
- <Button id="btn_init" taborder="12" text="초기화" class="btn4" position="absolute 1126 41 1194 63" anchor="top right" onclick="btn_init_onclick"/>
- <Button id="btn_saveexcel" taborder="13" text="엑셀저장" class="btn7" position="absolute 1114 117 1194 136" anchor="top right" onclick="btn_saveexcel_onclick"/>
- <Static id="opt_modellabel" class="tit_2" position="absolute 0 610 342 631" anchor="left bottom"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchcondition" type="STRING" size="256"/>
- <Column id="searchterm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="searchcondition">bizid</Col>
- <Col id="searchterm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_bizlist_biz" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bizid" type="STRING" size="256" sumtext="업무ID"/>
- <Column id="biznm" type="STRING" size="256" sumtext="업무이름"/>
- <Column id="detldesc" type="STRING" size="256" sumtext="업무상세설명"/>
- <Column id="delyn" type="STRING" size="256" sumtext="삭제여부"/>
- <Column id="authinstcd" type="STRING" size="256" sumtext="권한기관코드"/>
- <Column id="authinstnm" type="STRING" size="256" sumtext="권한기관이름"/>
- <Column id="authdeptcd" type="STRING" size="256" sumtext="권한부서코드"/>
- <Column id="authdeptnm" type="STRING" size="256" sumtext="권한부서이름"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자ID"/>
- <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자이름"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자이름"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_mode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="modestatus" type="STRING" size="256"/>
- <Column id="modelabel" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="modestatus"/>
- <Col id="modelabel"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bizid" type="STRING" size="256"/>
- <Column id="biznm" type="STRING" size="256"/>
- <Column id="fstrgstrid" type="STRING" size="256"/>
- <Column id="lastrgstdt" type="STRING" size="256"/>
- <Column id="lastrgstrid" type="STRING" size="256"/>
- <Column id="delyn" type="STRING" size="256"/>
- <Column id="detldesc" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="bizid"/>
- <Col id="biznm"/>
- <Col id="fstrgstrid"/>
- <Col id="lastrgstdt"/>
- <Col id="lastrgstrid"/>
- <Col id="delyn"/>
- <Col id="detldesc"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_modellabel" propid="text" datasetid="ds_main_mode" columnid="modelabel"/>
- <BindItem id="item1" compid="tar_bizdesc" propid="value" datasetid="ds_main_data" columnid="detldesc"/>
- <BindItem id="item2" compid="cmb_delyn" propid="value" datasetid="ds_main_data" columnid="delyn"/>
- <BindItem id="item3" compid="ipt_biznm" propid="value" datasetid="ds_main_data" columnid="biznm"/>
- <BindItem id="item4" compid="ipt_bizid" propid="value" datasetid="ds_main_data" columnid="bizid"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-09-20
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-09-20 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- function SMZBC00400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMZBC00400_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_bizlist);
- grdf_setRowTypeIcon(grd_bizlist, 0);
- ds_main_search.setColumn(0, "searchcondition", "bizid");
- ds_main_search.setColumn(0, "searchterm", "");
-
- fInitMainData(true);
- }
- /****************************************************************************************
- * Function : onclick
- * Description : 조회 버튼 이벤트
- ****************************************************************************************/
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetBizList();
- }
- /****************************************************************************************
- * Function : oncelldblclick
- * Description : 그리드 더블클릭 이벤트
- ****************************************************************************************/
- function grd_bizlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetBiz();
- }
- /****************************************************************************************
- * Function : onclick
- * Description : 엑셀저장 버튼 이벤트
- ****************************************************************************************/
- function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_bizlist, "excel", "Sheet1", "true", "", "");
- }
- /****************************************************************************************
- * Function : onclick
- * Description : 저장 버튼 이벤트
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var result;
- var mode = ds_main_mode.getColumn(0, "modestatus");
- var bizid;
- if(mode=="view")
- {
- sysf_messageBox("조회중인 정보를 저장", 'E001') ;
- return;
- }
- else if(mode=="insert")
- {
- if(!fValidateMainData()) return false;
- bizid = utlf_transNullToEmpty(ds_main_data.getColumn(0, "bizid"));
- var biznm = utlf_transNullToEmpty(ds_main_data.getColumn(0, "biznm"));
-
- result = sysf_messageBox("[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 추가", "S001");
- if( result==7 || result == 2 ) return;
-
- ds_send_data.copyData(ds_main_data);
-
- var oParam = {};
- oParam.id = "TRZBC00112";
- oParam.service = "basiccodeapp.KindCodeAdmin";
- oParam.method = "reqInsBizRule";
- oParam.inds = "req=ds_send_data";
- oParam.async = false;
- //oParam.callback = "cf_TRZBC00112";
- tranf_submit(oParam);
- }
- else if(mode=="update")
- {
- if(!fValidateMainData()) return false;
- bizid = utlf_transNullToEmpty(ds_main_data.getColumn(0, "bizid"));
- var biznm = utlf_transNullToEmpty(ds_main_data.getColumn(0, "biznm"));
- result = sysf_messageBox( "[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 수정", "S001");
- if( result==7 || result == 2 ) return;
- ds_send_data.copyData(ds_main_data);
-
- var oParam = {};
- oParam.id = "TRZBC00113";
- oParam.service = "basiccodeapp.KindCodeAdmin";
- oParam.method = "reqSetBizRule";
- oParam.inds = "req=ds_send_data";
- oParam.async = false;
- //oParam.callback = "cf_TRZBC00113";
- tranf_submit(oParam);
- }
- else if(mode=="delete")
- {
- if(!fValidateMainData()) return false;
- bizid = ds_main_data.getColumn(0, "bizid");
- var biznm = ds_main_data.getColumn(0, "biznm");
- result = sysf_messageBox("[업무규칙 ID : "+bizid+",업무규칙 이름 : "+biznm+"]을 삭제", "S001");
- if( result==7 || result == 2 ) return;
- ds_send_data.copyData(ds_main_data);
- var oParam = {};
- oParam.id = "TRZBC00114";
- oParam.service = "basiccodeapp.KindCodeAdmin";
- oParam.method = "reqDelBizRule";
- oParam.inds = "req=ds_send_data";
- oParam.async = false;
- //oParam.callback = "cf_TRZBC00114";
- tranf_submit(oParam);
- }
- else
- {
- sysf_messageBox('처리 모드를', 'C002');
- return;
- }
- fGetBizList();
-
- if(mode!="delete")
- {
- fFindBiz(bizid);
- fGetBiz();
- }
- else
- {
- fInitMain();
- }
- }
- /****************************************************************************************
- * Function : onclick
- * Description : 초기화 버튼 이벤트
- ****************************************************************************************/
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- this.reload();
- }
- /****************************************************************************************
- * Function : onclick
- * Description : 추가 버튼 이벤트
- ****************************************************************************************/
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- fInitMainData(false);
- ds_main_mode.setColumn(0, "insert");
- ds_main_mode.setColumn(0, "modelabel", "업무규칙 관리>업무규칙 추가");
- ds_main_mode.setColumn(0, "modestatus", "insert");
- ds_main_data.setColumn(0, "delyn", "N");
-
- cmb_delyn.enable = false;
- }
- /****************************************************************************************
- * Function : onclick
- * Description : 수정 버튼 이벤트
- ****************************************************************************************/
- function btn_update_onclick(obj:Button, e:ClickEventInfo)
- {
- var authinstcd = ds_main_bizlist_biz.getColumn(ds_main_bizlist_biz.rowposition, "authinstcd");
- var authdeptcd = ds_main_bizlist_biz.getColumn(ds_main_bizlist_biz.rowposition, "authdeptcd");
- var authrized = fAuthorize(authinstcd, authdeptcd);
- if(authrized)
- {
- fSettBiz();
- }
- else
- {
- var userinfo = fGetUserInfo();
- sysf_messageBox(userinfo+" 는 수정할", "E002") ;
- }
- }
- /****************************************************************************************
- * Function : onclick
- * Description : 삭제 버튼 이벤트
- ****************************************************************************************/
- function btn_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- var authinstcd = ds_main_bizlist_biz.getColumn(ds_main_bizlist_biz.rowposition, "authinstcd");
- var authdeptcd = ds_main_bizlist_biz.getColumn(ds_main_bizlist_biz.rowposition, "authdeptcd");
- var authrized = fAuthorize(authinstcd, authdeptcd);
- if(authrized)
- {
- fDelBiz();
- }
- else
- {
- var userinfo = fGetUserInfo();
- sysf_messageBox(userinfo+" 는 삭제할", "E002") ;
- }
- }
- /****************************************************************************************
- * Function : fInitMainDataControls
- * Description : 컴포넌트 활성화/비활성화 설정
- ****************************************************************************************/
- function fInitMainDataControls(disabled)
- {
- ipt_bizid.enable = !disabled;
- ipt_biznm.enable = !disabled;
- tar_bizdesc.enable = !disabled;
- cmb_delyn.enable = !disabled;
- }
- /****************************************************************************************
- * Function : fGetBizList
- * Description : 조회 함수
- ****************************************************************************************/
- function fGetBizList()
- {
- var searchterm = ds_main_search.getColumn(0, "searchterm");
- if(utlf_isNull(searchterm))
- {
- searchterm = "";
- }
-
- ds_send_data.copyData(ds_main_search);
- ds_send_data.setColumn(0, "searchterm", "%"+searchterm+"%");
- var oParam = {};
- oParam.id = "TRZBC00115";
- oParam.service = "basiccodeapp.KindCodeAdmin";
- oParam.method = "reqGetBizRuleList";
- oParam.inds = "req=ds_send_data";
- oParam.outds = "ds_main_bizlist_biz=biz";
- oParam.async = false;
- //oParam.callback = "cf_TRZBC00115";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Function : fGetBiz
- * Description : 그리드 더블 클릭 시 호출되는 함수
- ****************************************************************************************/
- function fGetBiz()
- {
- var result = fGrid2Main();
- if(result)
- {
- ds_main_mode.setColumn(0, "modelabel", "업무규칙 관리>업무규칙 상세보기");
- ds_main_mode.setColumn(0, "modestatus", "view");
-
- fInitMainDataControls(true);
- }
- else
- {
- sysf_messageBox('대상 업무규칙을', 'C002');
- }
- }
- /****************************************************************************************
- * Function : fGrid2Main
- * Description :
- ****************************************************************************************/
- function fGrid2Main()
- {
- row = ds_main_bizlist_biz.rowposition;
- if(row < 0) return false;
- ds_main_data.copyData(ds_main_bizlist_biz);
- ds_main_data.clearData();
- ds_main_data.copyRow(ds_main_data.addRow(), ds_main_bizlist_biz, row);
- return true;
- }
- /****************************************************************************************
- * Function : fValidateMainData
- * Description : 저장 시 값 체크
- ****************************************************************************************/
- function fValidateMainData()
- {
- var bizid = ds_main_data.getColumn(0, "bizid");
- if( utlf_isNull(bizid))
- {
- sysf_messageBox("업무규칙 ID를" , "C001");
- ipt_bizid.setFocus();
- return false;
- }
- if( String(bizid).length != 5 )
- {
- sysf_messageBox("업무규칙의 길이는 5자리", "E008");
- ipt_bizid.setFocus();
- return false;
- }
-
- var biznm = ds_main_data.getColumn(0, "biznm");
- if( utlf_isNull(biznm))
- {
- sysf_messageBox("업무규칙 이름을", "C001");
- ipt_biznm.setFocus();
- return false;
- }
-
- var delyn = ds_main_data.getColumn(0, "delyn");
- if( utlf_isNull(delyn))
- {
- ds_main_data.setColumn(0, "delyn", "N");
- }
- var bizdesc = ds_main_data.getColumn(0, "detldesc");
- if( utlf_isNull(bizdesc))
- {
- sysf_messageBox("업무규칙 상세설명을", "C001");
- tar_bizdesc.setFocus();
- return false;
- }
- return true;
- }
- /****************************************************************************************
- * Function : fFindBiz
- * Description :
- ****************************************************************************************/
- function fFindBiz(bizid)
- {
- fFindGridItem(grd_bizlist, 1, bizid);
- }
- /****************************************************************************************
- * Function : fInitMain
- * Description :
- ****************************************************************************************/
- function fInitMain()
- {
- ds_main_mode.setColumn(0, "modelabel", "");
- ds_main_mode.setColumn(0, "modestatus", "");
- fInitMainData(true);
- }
- /****************************************************************************************
- * Function : fInitMainData
- * Description :
- ****************************************************************************************/
- function fInitMainData(disabled)
- {
- ds_main_data.setColumn(0, "bizid", "");
- ds_main_data.setColumn(0, "biznm", "");
- ds_main_data.setColumn(0, "detldesc", "");
- ds_main_data.setColumn(0, "delyn", "");
-
- fInitMainDataControls(disabled);
- }
- /****************************************************************************************
- * Function : fSettBiz
- * Description : 수정 이벤트 함수
- ****************************************************************************************/
- function fSettBiz()
- {
- var result = fGrid2Main();
- if(result)
- {
- ds_main_mode.setColumn(0, "modelabel", "업무규칙 관리>업무규칙 수정");
- ds_main_mode.setColumn(0, "modestatus", "update");
-
- fInitMainDataControls(false);
- ipt_bizid.enable = false;
- }
- else
- {
- sysf_messageBox('수정할 대상 업무규칙을', 'C002');
- }
- }
- /****************************************************************************************
- * Function : fDelBiz
- * Description : 삭제 이벤트 함수
- ****************************************************************************************/
- function fDelBiz()
- {
- var result = fGrid2Main();
- if(result)
- {
- ds_main_mode.setColumn(0, "modelabel", "업무규칙 관리>업무규칙 삭제");
- ds_main_mode.setColumn(0, "modestatus", "delete");
-
- fInitMainDataControls(true);
- }
- else
- {
- sysf_messageBox('삭제할 대상 업무규칙을', 'C002');
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|