123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB04300" position="absolute 0 0 1199 787" titletext="검사 선/후 관게 기준관리" oninit="SMAEB04300_oninit" onload="SMAEB04300_onload">
- <Layouts>
- <Layout>
- <Div id="group2" taborder="1" class="div_SA" position="absolute 0 22 1195 62" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption2" text="검사코드 :" class="search_name" position="absolute 15 12 101 29"/>
- <Edit id="ipt_srchexamcurecd" taborder="1" class="input_search" position="absolute 105 11 240 30" autoselect="true" tooltiptext="검사코드12자리입력가능" tooltiptype="inplace,mouseleave" onkeyup="group2_ipt_srchexamcurecd_onkeyup"/>
- <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 1126 9 1182 31" anchor="top right" onclick="group2_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 88 245 94" linetype="horizontal" id="line2" class="line_10"/>
- <Button position="absolute 876 66 929 88" id="btn_grddel" class="btn2" visible="false" text="행삭제" anchor="top right" onclick="btn_grddel_onclick"/>
- <Grid position="absolute 0 93 245 758" id="grd_grupcdlist" binddataset="ds_main_grupcdlist_item" autoenter="select" cellsizingtype="col" oncellclick="grd_grupcdlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="36" band="left"/>
- <Column size="0"/>
- <Column size="175"/>
- <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="비고"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="none" edittype="none" text="bind:grupcd"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 2;" text="bind:grupcdnm"/>
- <Cell col="3" text="bind:grupcdrem"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid position="absolute 250 93 1195 758" id="grd_detlcdlist" binddataset="ds_main_detlcdlist_item" anchor="all" cellsizingtype="col" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="28"/>
- <Column size="63"/>
- <Column size="0"/>
- <Column size="107"/>
- <Column size="0"/>
- <Column size="320"/>
- <Column size="53"/>
- <Column size="329"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <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="지원부서"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'Y' || check == '1' ? 1 : 0"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:right middle;" text="bind:sortno"/>
- <Cell col="3" text="bind:partgrupcd"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:partcd"/>
- <Cell col="5" text="bind:partdetlcd"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
- <Cell col="7" displaytype="text" edittype="text" style="align:right middle;" text="bind:excutm"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:basecdcnts"/>
- <Cell col="9" text="bind:suppdeptcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="검사 선/후 관계 그룹" position="absolute 0 72 146 94" id="caption1" class="tit_2"/>
- <Shape position="absolute 250 88 1195 94" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
- <Static text="검사 선/후 관계 코드" position="absolute 250 72 396 94" id="caption3" class="tit_2"/>
- <Button position="absolute 986 66 1113 88" id="btn_selcalcscorcd" class="btn2" text="검사코드조회및추가" anchor="top right" onclick="btn_selcalcscorcd_onclick"/>
- <Button position="absolute 931 66 984 88" id="btn_grdadd" class="btn2" text="행추가" anchor="top right" onclick="btn_grdadd_onclick"/>
- <Button position="absolute 1115 66 1195 88" id="button12" class="btn7" text="엑셀저장" anchor="top right" onclick="button12_onclick"/>
- <Div position="absolute 370 288 968 451" id="group1" visible="false" style="border:1 solid #808080ff ;">
- <Layouts>
- <Layout>
- <Grid position="absolute 3 3 593 128" id="grd_codelist" binddataset="ds_tmp_examcurecdlist_item" anchor="default" autoenter="select" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="108"/>
- <Column size="320"/>
- <Column size="158"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="검사코드"/>
- <Cell col="1" text="검사명"/>
- <Cell col="2" text="수행부서"/>
- <Cell col="3" text="메시지"/>
- </Band>
- <Band id="body">
- <Cell text="bind:excucd"/>
- <Cell col="1" text="bind:excucdnm"/>
- <Cell col="2" displaytype="combo" edittype="combo" text="bind:prcpexecdeptcd" combodataset="ds_init_dept_info_initprcpexecdeptcd" combocodecol="prcpexecdeptcdid" combodatacol="prcpexecdeptcdnm" enable="false"/>
- <Cell col="3" text="bind:excurem"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 537 133 593 155" id="button26" class="btn4" text="닫기" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption19" text="검사 선/후 관게 기준관리" class="tit_1" position="absolute 0 0 218 24"/>
- <Shape id="line32" class="line_6" position="absolute 0 758 1195 764" anchor="left right bottom"/>
- <Button id="button1" taborder="2" text="저장" class="btn4" position="absolute 1019 762 1075 784" anchor="right bottom" onclick="button1_onclick"/>
- <Button id="button2" taborder="3" text="삭제" class="btn4" position="absolute 1079 762 1135 784" anchor="right bottom" onclick="button2_onclick"/>
- <Button id="btn_close" taborder="4" text="닫기" class="btn4" position="absolute 1139 762 1195 784" anchor="right bottom" onclick="btn_close_onclick"/>
- </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="partcd" type="STRING" size="256"/>
- <Column id="partgrupcd" type="STRING" size="256"/>
- <Column id="partdetlcd" type="STRING" size="256"/>
- <Column id="basecdflag" type="STRING" size="256"/>
- <Column id="basesuppdeptcd" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="partdetlcd">-</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_grupcdlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="grupcd" type="STRING" size="256" sumtext="그룹코드"/>
- <Column id="grupcdnm" type="STRING" size="256" sumtext="그룹코드명"/>
- <Column id="grupcdrem" type="STRING" size="256" sumtext="그룹코드비고"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_detlcdlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlcdlist_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="suppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="partgrupcd" type="STRING" size="256" sumtext="대분류코드"/>
- <Column id="partcd" type="STRING" size="256" sumtext="중분류코드"/>
- <Column id="partdetlcd" type="STRING" size="256" sumtext="소분류코드"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="코드설명"/>
- <Column id="basecdcnts" type="STRING" size="256" sumtext="상세내용"/>
- <Column id="excutm" type="STRING" size="256" sumtext="소요시간"/>
- <Column id="sortno" type="STRING" size="256" sumtext="정렬번호"/>
- <Column id="choi1" type="STRING" size="256" sumtext="선택코드1"/>
- <Column id="choi2" type="STRING" size="256" sumtext="선택코드2"/>
- <Column id="choi3" type="STRING" size="256" sumtext="선택코드3"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_tmp_examcurecdlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_dept_info_initprcpexecdeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_srchexamcurecd" propid="value" datasetid="ds_send" columnid="partcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- include "ast_commonxp::AST.xjs";
- var gSuppdeptcd = "";
- var arErrorCode = new HashArray();
- function SMAEB04300_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMAEB04300_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_grupcdlist);
- grdf_initGrid(grd_detlcdlist);
-
- lf_aezfSetSuppDeptcd();
- gSuppdeptcd = suppdeptcd;
- ds_send.setColumn(0, "basesuppdeptcd", gSuppdeptcd);
-
- ds_main_grupcdlist_item.clearData();
- ds_main_detlcdlist_item.clearData();
-
- var oParam = {};
- oParam.id = "TRAEB00205";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetPrcpExecDeptCdList";
- oParam.inds = "req=";
- oParam.outds = "ds_init_dept_info_initprcpexecdeptcd=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB00205";
- tranf_submit(oParam); // 수행부서 코드 가져오기
-
- dsf_setFixVal(ds_send, "basecdflag:G");
-
- var oParam = {};
- oParam.id = "TRAEB04101";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqGetExamPrityGrupList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_grupcdlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB04101";
- tranf_submit(oParam);
- }
- function group2_ipt_srchexamcurecd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- group2.btn_sea.click();
- }
- }
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fnGetMainList();
- }
- function fnGetMainList()
- {
- dsf_setFixVal(ds_send, "basecdflag:G");
-
- var oParam = {};
- oParam.id = "TRAEB04101";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqGetExamPrityGrupList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_grupcdlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB04101";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRAEB04101") > -1)
- {
- ds_main_detlcdlist_item.clearData();
- }
- }
- function cf_TRAEB04101(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function grd_grupcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- if (e.row < 0)
- {
- return false;
- }
-
- var rownum = e.row;
- ds_send.setColumn(0, "partgrupcd", ds_main_grupcdlist_item.getColumn(rownum, "grupcd"));
- ds_send.setColumn(0, "suppdeptcd", ds_send.getColumn(0, "basesuppdeptcd"));
- var oParam = {};
- oParam.id = "TRAEB04303";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqGetPartDetlClsCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_detlcdlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB04303";
- tranf_submit(oParam);
-
- ds_main_detlcdlist_item.updatecontrol = false;
- dsf_setFixVal(ds_main_detlcdlist_item, "check:N");
- ds_main_detlcdlist_item.updatecontrol = true;
- }
- function ds_main_detlcdlist_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "check")
- {
- obj.setColumn(e.row, "check", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
- }
- }
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_deleteSelectedRows(grd_detlcdlist, true);
- }
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
- {
- var grupcd = ds_main_grupcdlist_item.getColumn(ds_main_grupcdlist_item.rowposition, "grupcd");
-
- if (!utlf_isNull(grupcd))
- {
- var addRow = ds_main_detlcdlist_item.addRow();
- dsf_makeValue(ds_main_detlcdlist_item, "m", "string", "i", addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "sortno", "string", "0", addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "partgrupcd", "string", grupcd, addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "partcd", "string", "", addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "partdetlcd", "string", "-", addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "basecdflagdesc", "string", "", addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "excutm", "int", 0, addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "basecdcnts", "int", "", addRow);
- dsf_makeValue(ds_main_detlcdlist_item, "suppdeptcd", "int", "", addRow);
- }
- else
- {
- alert("검사 그룹을 선택해 주십시요!");
- }
- }
- function btn_selcalcscorcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var grupcd = ds_main_grupcdlist_item.getColumn(ds_main_grupcdlist_item.rowposition, "grupcd");
- if (!utlf_isNull(grupcd))
- {
- frmf_modal("SPAEB00500", "SPAEB00500", "", "", "", "", "", "", "", "", "", "", "M");
- }
- else
- {
- sysf_messageBox("검사 선/후 관계 그룹을", "C002");
- }
- }
- function button12_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_detlcdlist, "excel", "Sheet1", "true", "", "");
- }
- function fNullValidation(pDataset, pCol, pMsg)
- {
- var cntnull = pDataset.getCaseCount(pCol+"== null || "+pCol+"== undefined");
-
- if(cntnull > 0)
- {
- sysf_messageBox(pMsg , "C001");
- return false;
- }
- return true;
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- // if(!astfNullValidation(ds_main_detlcdlist_item, "sortno", "우선순위를")) return false;
- // if(!astfNullValidation(ds_main_detlcdlist_item, "partcd", "검사코드를")) return false;
- // if(!astfNullValidation(ds_main_detlcdlist_item, "excutm", "검사 간격을")) return false;
- // astfNullValidation 함수 sortno, excutm 컬럼은 null 값 체크가 안되는 관계로 새로 함수 만듬
- if(!fNullValidation(ds_main_detlcdlist_item, "sortno", "우선순위를")) return false;
- if(!fNullValidation(ds_main_detlcdlist_item, "partcd", "검사코드를")) return false;
- if(!fNullValidation(ds_main_detlcdlist_item, "excutm", "검사 간격을")) return false;
-
- var suppdeptcd = "";
-
- for (var i = 0; i < ds_main_detlcdlist_item.rowcount; i++)
- {
- suppdeptcd = ds_main_detlcdlist_item.getColumn(i, "suppdeptcd");
- if (utlf_isNull(suppdeptcd))
- {
- ds_main_detlcdlist_item.setColumn(i, "suppdeptcd", ds_send.getColumn(0, "suppdeptcd"));
- ds_main_detlcdlist_item.updatecontrol = false;
- ds_main_detlcdlist_item.setRowType(i, "i");
- ds_main_detlcdlist_item.updatecontrol = true;
- }
- }
-
- if ( sysf_messageBox("","Q002")==6 )
- {
- var update = grdf_getGridUpdateData(grd_detlcdlist).rowcount;
- if(update == 0)
- {
- sysf_messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
- }
- else
- {
- var oParam = {};
- oParam.id = "TXAEB04301";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqExePartDetlClsCode";
- oParam.inds = "req=ds_main_detlcdlist_item";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB04301";
- tranf_submit(oParam);
- }
- }
- }
- function cf_TXAEB04301(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0) return;
- var oParam = {};
- oParam.id = "TRAEB04303";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqGetPartDetlClsCodeList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_detlcdlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB04303";
- tranf_submit(oParam);
-
- ds_main_detlcdlist_item.updatecontrol = false;
- dsf_setFixVal(ds_main_detlcdlist_item, "check:N");
- ds_main_detlcdlist_item.updatecontrol = true;
- }
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- if ( sysf_messageBox("","Q001")==6 )
- {
- var nodeList = ds_main_detlcdlist_item.getCaseCount("check == Y");
-
- if ( nodeList > 0)
- {
- sysf_messageBox("삭제할 검사코드을 선택해 주십시오.","I999");
- return "0";
- }
-
- var loop = ds_main_detlcdlist_item.rowcount;
- var loopcnt = 0;
- var check = "";
- var suppdeptcd = "";
-
- for (var i = 0; i < loop; i++)
- {
- check = ds_main_detlcdlist_item.getColumn(i, "check");
- suppdeptcd = ds_main_detlcdlist_item.getColumn(i, "suppdeptcd");
- if ( check == "Y" && !utlf_isNull(suppdeptcd))
- {
- ds_main_detlcdlist_item.updatecontrol = false;
- ds_main_detlcdlist_item.setRowType(i, "d");
- ds_main_detlcdlist_item.updatecontrol = true;
- loopcnt++;
- }
- }
- var updategrid = grdf_getGridUpdateData(grd_detlcdlist);
- grdf_setStatusColumn(updategrid, "m");
- ds_send_req.copyData(updategrid, true);
- var oParam = {};
- oParam.id = "TXAEB04301";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqExePartDetlClsCode";
- oParam.inds = "req=ds_send_req";
- oParam.outds = "ds_=item";
- oParam.async = false;
- oParam.callback = "cf_TXAEB04301";
- tranf_submit(oParam);
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|