123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="workform" position="absolute 0 0 1256 805" titletext="직종별 바로가기 등록">
- <Layouts>
- <Layout>
- <Static id="caption6" text="직종별 바로가기" class="tit_1" position="absolute 0 0 177 25"/>
- <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1256 67">
- <Layouts>
- <Layout>
- <Static id="caption3" text="직종코드" class="search_name" position="absolute 8 10 82 30"/>
- <Button id="btn_sea" taborder="14" text="조회" onlbuttonup=""btn_sea_onlbuttonup"" class="btn1" position="absolute 1188 10 1244 30" anchor="top right"/>
- <Static id="caption4" text="화면코드" class="search_name" position="absolute 221 10 295 30"/>
- <Combo id="cmb_jobkindcd" taborder="15" class="combo_search" position="absolute 82 10 197 30"/>
- <Edit id="input3" taborder="16" class="input_search" position="absolute 295 10 395 30" imemode="alpha"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="직종별 바로가기" class="tit_2" position="absolute 0 77 129 97"/>
- <Button id="btn_addrow" taborder="2" text="행추가" onlbuttonup="btn_addrow_onlbuttonup" class="btn2" position="absolute 1153 74 1209 94" anchor="top right"/>
- <Button id="btn_delete" taborder="3" text="삭제" onlbuttonup="btn_delete_onlbuttonup" class="btn2" position="absolute 1212 74 1256 94" anchor="top right"/>
- <Grid id="grd_jobkindlist" taborder="4" useinputpanel="false" position="absolute 0 97 1011 782" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="100"/>
- <Column size="130"/>
- <Column size="90"/>
- <Column size="40"/>
- <Column size="60"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="75"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="직종코드"/>
- <Cell col="1" text="바로가기명"/>
- <Cell col="2" text="화면ID"/>
- <Cell col="3" text="순서"/>
- <Cell col="4" text="표시형태"/>
- <Cell col="5"/>
- <Cell col="6" text="파라미터"/>
- <Cell col="7" text="iconcd"/>
- <Cell col="8"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- <Cell col="4" class="text_center"/>
- <Cell col="5" style="align:center middle;"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_save" taborder="5" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 1200 785 1256 805" anchor="right bottom"/>
- <Grid id="grd_iconlist" taborder="6" useinputpanel="false" visible="true" position="absolute 1021 97 1256 782" anchor="top right bottom">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="40"/>
- <Column size="45"/>
- <Column size="50"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="선택"/>
- <Cell col="1" text="아이콘"/>
- <Cell col="2" text="iconcd"/>
- <Cell col="3" text="iconurl"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- <Cell col="4"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : HIT
- * Job Name :
- * File Name : SMZUM01500_직종별바로가기.xfdl
- * Creator :
- * Make Date : 2014-03-04
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-03-04 HIT Converting Program(TF->XP)
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::common.xjs";
- include "com_commonxp::tfHelper.xjs";
- include "com_commonxp::stringHelper.xjs";
- include "com_basiccodexp::ZBC001.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : model1
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-model-construct-done
- ****************************************************************************************//* TF 이벤트 : xforms-model-construct-done
- function model1_(obj:Form, e:)
- {
- zbcfGetCodeList( new Array("R3004", "Z0014"), new Array("/root/init/R3004list", "/root/init/Z0014list") );
- addComboItem( "cmb_jobkindcd" , "전체", "");
- model.removeNodeset("/root/main/jobkindlist/rows");
- submit("TRZUM01502");
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : model1
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function model1_oninit(obj:Form, e:InitEventInfo)
- {
- fCheckAuth();
- fSetGridBackImage(grd_iconlist, 1);
- grd_jobkindlist.dataHeight = 30;
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_search
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_search_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- submit("TRZUM01501");
- fSetGridBackImage(grd_jobkindlist, 6);
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_jobkindlist
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-select
- ****************************************************************************************//* TF 이벤트 : xforms-select
- function grd_jobkindlist_(obj:Grid, e:)
- {
- if(grd_jobkindlist.col == 1){ // 직종선택
- grd_jobkindlist.col = 2;
- grd_jobkindlist.dispatch("onentercell");
- // 불필요한 코드 삭제 - 김기호
- //grd_jobkindlist.editCell();
- }else if(grd_jobkindlist.col == 5){ // 아이콘선택
- //표시형태 선택시 처리
- var icontype = model.getValue("/root/main/jobkindlist/rows["+grd_jobkindlist.row+"]/icontype");
-
- if(icontype == "I"){
- grd_iconlist.visible = true;
- model.setFocus("grd_iconlist");
- }else{
- grd_iconlist.visible = false;
- grd_jobkindlist.col = 6;
- grd_jobkindlist.dispatch("onentercell");
- // 불필요한 코드 삭제 - 김기호
- //grd_jobkindlist.editCell();
- }
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : grd_jobkindlist
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : onendedit
- ****************************************************************************************//* TF 이벤트 : onendedit
- function grd_jobkindlist_(obj:Grid, e:)
- {
- //iconText 입력시
- if( grd_jobkindlist.col == 6 ){
- var row = grd_jobkindlist.row;
-
- var iconText = model.getValue("/root/main/jobkindlist/rows[" + row + "]/icontext");
- if (iconText.getByteLength() > 8) {
- messageBox("한글 4글자, 영문 8글자를 초과", "E001");
- grd_jobkindlist.editCell();
- return;
- }
-
- model.setValue("/root/main/jobkindlist/rows["+row+"]/iconcd", "IDZUM10000");
-
- grd_jobkindlist.cellStyle("background-image", row, 6) = "../../../com/hismainweb/images/IDZUM10000.gif";
- grd_jobkindlist.cellStyle("background-position", row, 6) = "center";
- }
-
- // 김기호 - 버그삭제
- //grd_jobkindlist.col = grd_jobkindlist.col + 1;
- //grd_jobkindlist.dispatch("onentercell");
- //grd_jobkindlist.editCell();
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : grd_jobkindlist
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : onentercell
- ****************************************************************************************//* TF 이벤트 : onentercell
- function grd_jobkindlist_(obj:Grid, e:)
- {
- //화면아이디 입력
- if( grd_jobkindlist.col == 3 ){
- modal("SPZSA20500");
- var row = grd_jobkindlist.row;
- model.setValue("/root/main/jobkindlist/rows["+row+"]/scrncd", getParameter("SPZSA20500_").split("|")[0]);
- grd_jobkindlist.addStatus(row, "update");
- model.refresh();
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : grd_jobkindlist
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : onkeypress
- ****************************************************************************************//* TF 이벤트 : onkeypress
- function grd_jobkindlist_(obj:Grid, e:)
- {
- // enter 를 통해서 입력을 마쳤을 경우만 화면ID 선택창 오픈 - 김기호
- if (grd_jobkindlist.col == 2 && event.keyCode == 13) {
- grd_jobkindlist.col = grd_jobkindlist.col + 1;
- grd_jobkindlist.dispatch("onentercell");
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : btn_addrow
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_addrow_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- grd_jobkindlist.addRow();
- grd_jobkindlist.isReadOnly(grd_jobkindlist.row, 1) = false;
- grd_jobkindlist.col = 1;
- grd_jobkindlist.dispatch("onentercell");
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_iconlist
- * Event :
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : Not Convert : xforms-select
- ****************************************************************************************//* TF 이벤트 : xforms-select
- function grd_iconlist_(obj:Grid, e:)
- {
- if( grd_iconlist.col == 0){
- var row = grd_jobkindlist.row;
- var iconcd = model.getValue("/root/init/iconlist/rows[" +grd_iconlist.row+"]/iconcd");
- var iconurl = model.getValue("/root/init/iconlist/rows[" +grd_iconlist.row+"]/iconurl");
-
- model.setValue("/root/main/jobkindlist/rows["+row+"]/icontext", "");
- model.setValue("/root/main/jobkindlist/rows["+row+"]/iconcd", iconcd);
-
- grd_jobkindlist.cellStyle("background-image", row, 6) = "../../../"+ iconurl;
- grd_jobkindlist.cellStyle("background-position", row, 6) = "center";
-
- model.refresh();
- }
-
- }*/
- /****************************************************************************************
- * Components :
- * Components ID : btn_delete
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_delete_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var row = grd_jobkindlist.row;
- grd_jobkindlist.deleteRow(row);
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_save
- * Event : onlbuttonup
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_save_onlbuttonup(obj:Button, e:MouseEventInfo)
- {
- var updtdata = getGridUpdateData(grd_jobkindlist);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- var jobKindCd = "";
- var itemNm = "";
- var scrnCd = "";
- var seq = "";
- var iconType = "";
- var iconText = "";
- var menuParam = "";
- var iconCd = "";
-
- for( i = grd_jobkindlist.fixedRows; i < grd_jobkindlist.rows ; i++ ) {
- var status = grd_jobkindlist.rowStatus(i);
- if(status != 0){
- jobKindCd = grd_jobkindlist.valueMatrix(i,1);
- itemNm = grd_jobkindlist.valueMatrix(i,2);
- scrnCd = grd_jobkindlist.valueMatrix(i,3);
- seq = grd_jobkindlist.valueMatrix(i,4);
- iconType = grd_jobkindlist.valueMatrix(i,5);
- iconText = grd_jobkindlist.valueMatrix(i,6);
- menuParam = grd_jobkindlist.valueMatrix(i,7);
- iconCd = grd_jobkindlist.valueMatrix(i,8);
-
- if(jobKindCd == ""){
- messageBox("직종코드를","C002");
- grd_jobkindlist.row = i;
- grd_jobkindlist.col = 1;
- grd_jobkindlist.dispatch("onentercell");
- return;
- }
-
- if(itemNm == ""){
- messageBox("바로가기명을","C001");
- grd_jobkindlist.row = i;
- grd_jobkindlist.col = 2;
- grd_jobkindlist.dispatch("onentercell");
- return;
- }
-
- if(scrnCd == ""){
- messageBox("연결할 화면을","C002");
- grd_jobkindlist.row = i;
- grd_jobkindlist.col = 3;
- grd_jobkindlist.dispatch("onentercell");
- return;
- }
-
- if(seq == ""){
- messageBox("표시순서를","C001");
- grd_jobkindlist.row = i;
- grd_jobkindlist.col = 4;
- grd_jobkindlist.dispatch("onentercell");
- return;
- }
-
- if(iconType == ""){
- messageBox("표시형태를","C002");
- grd_jobkindlist.row = i;
- grd_jobkindlist.col = 5;
- grd_jobkindlist.dispatch("onentercell");
- return;
- }
-
- if(iconType == "T" && iconText == "" ){
- messageBox("표시할 텍스트를","C001");
- grd_jobkindlist.row = i;
- grd_jobkindlist.col = 6;
- grd_jobkindlist.dispatch("onentercell");
- grd_jobkindlist.editCell();
- return;
- }
- if(iconType == "I" && (iconCd == "" || iconCd == "IDZUM10000")){
- messageBox("표시할 아이콘을","C002");
- grd_jobkindlist.row = i;
- grd_iconlist.visible = true;
- model.setFocus("grd_iconlist");
- return;
- }
-
- if(menuParam != ""){
- if((isSearchString(menuParam, "<")
- || isSearchString(menuParam, ">")
- || isSearchString(menuParam, "&")
- || isSearchString(menuParam, "'")
- || isSearchString(menuParam, '"') )
- || (menuParam.split("|").length >1 )){
- messageBox("파라미터로 사용", "E001", "(<, >, &, "+ "'"+", "+'"'+",|)");
- return;
- }
- }
- }
-
- //insert시
- if(status == 1){
- model.setValue("/root/main/jobkindlist/rows["+i+"]/oldscrncd", scrncd);
- }
- }
-
- // alert("grid update data = " + grd_shortcutlist.getUpdateData());
- model.setValue("/root/send/jobkindlist", updtdata);
-
- if ( submit("TXZUM01501") ) {
- grd_jobkindlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- }
-
- }
- ]]></Script>
- </Form>
- </FDL>
|