123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPC00900" position="absolute 0 0 1198 768" titletext="검사항목조회 화면등록" oninit="SMLPC00900_oninit" onload="SMLPC00900_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="검사항목별 조회화면등록" class="tit_1" position="absolute 0 0 177 25"/>
- <Shape id="line17" linetype="horizontal" class="line_6" position="absolute 0 30 1194 36"/>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1139 11 1195 33" onclick="btn_save_onclick"/>
- <Div id="group1" taborder="2" position="absolute 0 34 1194 69" class="div_SA2">
- <Layouts>
- <Layout>
- <Shape id="line14" linetype="vertical" class="line_4" position="absolute 1105 6 1111 28"/>
- <Static id="caption23" text="작업구분 :" class="search_name" position="absolute 15 9 105 26"/>
- <Combo id="cmb_workflag" taborder="4" innerdataset="ds_init_cmb_workflag" codecolumn="baseflagcd" datacolumn="baseflagnm" class="combo_search" position="absolute 108 8 228 27" onitemchanged="group1_cmb_workflag_onitemchanged"/>
- <Combo id="cmb_workkind" taborder="5" innerdataset="ds_init_cmb_workkind" codecolumn="resncd" datacolumn="resncnts" class="combo_search" position="absolute 943 8 1093 27"/>
- <Static id="caption2" text="작업유형 :" class="search_name" position="absolute 849 9 939 26"/>
- <Button id="btn_sea" taborder="6" text="조회" class="btn1" position="absolute 1123 7 1179 29" onclick="group1_btn_sea_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_settinglist" taborder="3" binddataset="ds_grd_settinglist" useinputpanel="false" position="absolute 0 99 740 766">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="26"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="113"/>
- <Column size="90"/>
- <Column size="150"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="58"/>
- <Column size="80"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <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="검사항목명"/>
- <Cell col="10" text="검사약어"/>
- <Cell col="11" text="관계여부"/>
- <Cell col="12" text="표시순서"/>
- <Cell col="13" text="종료일자"/>
- <Cell col="14" text="등록구분코드"/>
- </Band>
- <Band id="body">
- <Cell/>
- <Cell col="1" text="expr:currow + 1"/>
- <Cell col="2" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="3" text="bind:instcd"/>
- <Cell col="4" text="bind:workflagcd"/>
- <Cell col="5" displaytype="normal" edittype="none" style="align:left middle;" text="bind:workflagnm"/>
- <Cell col="6" text="bind:workkindcd"/>
- <Cell col="7" displaytype="normal" edittype="none" style="align:left middle;" text="bind:workkindnm"/>
- <Cell col="8" displaytype="normal" edittype="none" text="bind:testcd"/>
- <Cell col="9" displaytype="normal" edittype="none" style="align:left middle;" text="bind:testhngnm"/>
- <Cell col="10" text="bind:testhngabbr"/>
- <Cell col="11" displaytype="combo" edittype="combo" text="bind:relaflagcd" combodataset="ds_relaflagcd" combocodecol="value" combodatacol="label"/>
- <Cell col="12" displaytype="text" edittype="text" style="align:center middle;" text="bind:dispseqno"/>
- <Cell col="13" displaytype="date" edittype="date" text="bind:todd" mask="yyyy-mm-dd"/>
- <Cell col="14" text="bind:rgstflagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="검사코드 설정목록" class="tit_2" position="absolute 5 79 136 96"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 95 740 101"/>
- <Static id="caption3" text="검사코드목록" class="tit_2" position="absolute 750 79 881 95"/>
- <Grid id="grd_testcdlist" taborder="4" binddataset="ds_grd_testcdlist" useinputpanel="false" position="absolute 745 99 1195 766" cellsizingtype="none" autosizingtype="none" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="200"/>
- <Column size="115"/>
- </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="검사약칭"/>
- </Band>
- <Band id="body">
- <Cell text="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="2" text="bind:instcd"/>
- <Cell col="3" displaytype="normal" edittype="none" style="align:left middle;" text="bind:testcd"/>
- <Cell col="4" displaytype="normal" edittype="none" style="align:left middle;" text="bind:testnm"/>
- <Cell col="5" displaytype="normal" edittype="none" style="align:left middle;" text="bind:testabbr"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 745 95 1195 101"/>
- <Button id="btn_add" taborder="5" text="추가" class="btn2" position="absolute 1153 74 1196 93" onclick="btn_add_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cmb_workflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="baseflagnm" type="STRING"/>
- <Column id="baseflagcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_workkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resncnts" type="STRING"/>
- <Column id="resncd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_settinglist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="workflagcd" type="STRING"/>
- <Column id="workflagnm" type="STRING"/>
- <Column id="workkindcd" type="STRING"/>
- <Column id="workkindnm" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testhngnm" type="STRING"/>
- <Column id="testhngabbr" type="STRING"/>
- <Column id="relaflagcd" type="STRING"/>
- <Column id="dispseqno" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="rgstflagcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_testcdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="testabbr" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_refflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workflagcd" type="STRING" size="256"/>
- <Column id="workkindcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_resncdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256" sumtext="선택"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="baseflagcd" type="STRING" size="256" sumtext="구분코드"/>
- <Column id="resncd" type="STRING" size="256" sumtext="사유코드"/>
- <Column id="resncnts" type="STRING" size="256" sumtext="사유내용"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_relaflagcd" 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">0</Col>
- </Row>
- <Row>
- <Col id="label">단독검사</Col>
- <Col id="value">1</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group1.cmb_workflag" propid="value" datasetid="ds_hidden_refflag" columnid="workflagcd"/>
- <BindItem id="item1" compid="group1.cmb_workkind" propid="value" datasetid="ds_hidden_refflag" columnid="workkindcd"/>
- </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 "lis_commonxp::LPZ001.xjs";
- function SMLPC00900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grd_settinglist);
- grdf_initGrid(grd_testcdlist);
- grdf_setRowTypeIcon(grd_settinglist, 0);
- }
- function SMLPC00900_onload(obj:Form, e:LoadEventInfo)
- {
- fExeInitialize();
- }
- function fExeInitialize()
- {
- // 전체 검사코드목록 조회
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "delflagcd", val : "0"}
- ,{col : "testflag", val : ""}]);
- //submit("TRLPC00901", false);
- var oParam = {};
- oParam.id = "TRLPC00901";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetTestCodeList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grd_testcdlist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPC00901";
- tranf_submit(oParam);
- //------------------
- // 작업구분목록 조회
- //submit("TRLPZ00104");
- var oParam = {};
- oParam.id = "TRLPZ00104";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetBaseFlagCodeList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_init_cmb_workflag=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00104";
- tranf_submit(oParam);
-
- }
- //조회버튼
- function group1_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetRefData();
- }
- //설정목록 검색 함수
- function fGetRefData()
- {
- // model.removeNodeset("/root/send");
- // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- // model.makeValue("/root/send/workflagcd", model.getValue("/root/hidden/refflag/workflagcd"));
- // model.makeValue("/root/send/workkindcd", model.getValue("/root/hidden/refflag/workkindcd"));
- dsf_createDsRow("ds_temp_search", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "workflagcd", val : ds_hidden_refflag.getColumn(0, "workflagcd")}
- ,{col : "workkindcd", val : ds_hidden_refflag.getColumn(0, "workkindcd")}]);
-
- //submit("TRLPC00902");
- var oParam = {};
- oParam.id = "TRLPC00902";
- oParam.service = "plgybaseinfomngtapp.SetTestCode";
- oParam.method = "reqGetSetTestCodeList";
- oParam.inds = "refData=ds_temp_search";
- oParam.outds = "ds_grd_settinglist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPC00902";
- tranf_submit(oParam);
- }
- function group1_cmb_workflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fGetReasonList()
- }
- function fGetReasonList()
- {
- // model.removeNodeset("/root/send");
- // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- // model.makeValue("/root/send/baseflagcd", "'"+model.getValue("/root/hidden/refflag/workflagcd")+"'");
- dsf_createDsRow("ds_send1", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "baseflagcd", val : "'"+ds_hidden_refflag.getColumn(0, "workflagcd")+"'"}]);
- //submit("TRLPZ00103");
- var oParam = {};
- oParam.id = "TRLPZ00103";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetReasonCodeList";
- oParam.inds = "refData=ds_send1";
- oParam.outds = "ds_init_cmb_workkind=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00103";
- tranf_submit(oParam);
- //ds_resncdlist.filter("resncd='ZZZZ'");
- ds_init_cmb_workkind.filterstr = "resncd !='ZZZZ'";
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeDataAdd();
- }
- function fExeDataAdd()
- {
- var ColNo = 7;
- var iFindRowNo = 0;
- //var TargetNode = "/root/main/settingcnts/settinglist";
- //var SourceNode = "/root/init/testcodecnts/testcodelist";
- var TargetNode = ds_grd_settinglist;
- var SourceNode = ds_grd_testcdlist;
-
- //---------------------------
- // 작업구분/유형 선택여부 검사
- //if (!lpzfExeBfSaveCheck("/root/hidden/refflag/workflagcd", "작업구분을", "C002", "")) return false;
- //if (!lpzfExeBfSaveCheck("/root/hidden/refflag/workkindcd", "작업유형을", "C002", "")) return false;
- var msgcnts = ds_hidden_refflag.getColumn(0, "workflagcd");
- var msgcd = ds_hidden_refflag.getColumn(0, "workkindcd");
-
- if(!lpzfExeBfSaveCheck(msgcnts, "작업구분을", "C002", "")) return false;
- if(!lpzfExeBfSaveCheck(msgcd, "작업유형을", "C002", "")) return false;
-
- for(var iRowNo=0; iRowNo < ds_grd_testcdlist.rowcount; iRowNo++)
- {
- // 선택항목만 추가처리
- if(ds_grd_testcdlist.getColumn(iRowNo, "choi") == 1)
- {
- // 기존 등록자료인지 검사
- iFindRowNo = ds_grd_settinglist.findRow(ds_grd_testcdlist.getColumn(iRowNo, "testcd", 1, ColNo, false, true));
- trace("iFindRowNo="+iFindRowNo);
- if (iFindRowNo < 0)
- {
- //grd_settinglist.additem();
- ds_grd_settinglist.addRow();
- var iRow = ds_grd_settinglist.rowcount-1
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/choi", "true");
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/instcd", model.getValue(SourceNode + "[" + iRowNo + "]/instcd"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/workflagcd", model.getValue("/root/hidden/refflag/workflagcd"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/workflagnm", model.getValue("/root/init/baseflagcd/baseflagcdlist[baseflagcd='" + model.getValue("/root/hidden/refflag/workflagcd") + "']/baseflagnm"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/workkindcd", model.getValue("/root/hidden/refflag/workkindcd"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/workkindnm", model.getValue("/root/init/resncd/resncdlist[resncd='" + model.getValue("/root/hidden/refflag/workkindcd") + "']/resncnts"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/testcd", model.getValue(SourceNode + "[" + iRowNo + "]/testcd"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/testhngnm", model.getValue(SourceNode + "[" + iRowNo + "]/testnm"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/testhngabbr", model.getValue(SourceNode + "[" + iRowNo + "]/testabbr"));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/relaflagcd", "1");
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/dispseqno", (grd_settinglist.rows-1));
- // model.setValue(TargetNode + "[" + (grd_settinglist.rows-1) + "]/rgstflagcd", "0");
- // grd_settinglist.rowStatus((grd_settinglist.rows-1)) = "1"; // 신규로 처리
- ds_grd_settinglist.setColumn(iRow, "choi", 1);
- ds_grd_settinglist.setColumn(iRow, "instcd", ds_grd_testcdlist.getColumn(iRowNo, "instcd"));
- ds_grd_settinglist.setColumn(iRow, "workflagcd", ds_hidden_refflag.getColumn(0, "workflagcd"));
- ds_grd_settinglist.setColumn(iRow, "workflagnm", ds_init_cmb_workflag.getColumn("baseflagcd='"+ds_hidden_refflag.getColumn(0, "workflagcd")+"'", "baseflagnm"));
-
- ds_grd_settinglist.setColumn(iRow, "workkindcd", ds_hidden_refflag.getColumn(0, "workkindcd"));
- ds_grd_settinglist.setColumn(iRow, "workkindnm", ds_init_cmb_workkind.getColumn("resncd='"+ds_hidden_refflag.getColumn(0, "workkindcd")+"'", "resncnts"));
- ds_grd_settinglist.setColumn(iRow, "testcd", ds_grd_testcdlist.getColumn(iRowNo, "testcd"));
- ds_grd_settinglist.setColumn(iRow, "testhngnm", ds_grd_testcdlist.getColumn(iRowNo, "testnm"));
- ds_grd_settinglist.setColumn(iRow, "testhngabbr", ds_grd_testcdlist.getColumn(iRowNo, "testabbr"));
- ds_grd_settinglist.setColumn(iRow, "relaflagcd", "1");
- ds_grd_settinglist.setColumn(iRow, "dispseqno", ds_grd_settinglist.rowcount);
- ds_grd_settinglist.setColumn(iRow, "rgstflagcd", "0");
- }
- else
- {
- //grd_settinglist.select(iFindRowNo, 0, iFindRowNo, grd_settinglist.cols-1) = true;
- return false;
- }
- }
-
- }
- }
- //저장버튼
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeRefData();
- }
- function fExeRefData()
- {
- //if (!lpzfExeBfSaveCheck("/root/hidden/refflag/workflagcd", "작업구분을", "C002", "")) return false;
- if(!lpzfExeBfSaveCheck(ds_hidden_refflag.getColumn(0, "workflagcd"), "작업구분을", "C002", "")) return false;
- if(!lpzfExeBfSaveCheck(ds_hidden_refflag.getColumn(0, "workkindcd"), "작업유형을", "C002", "")) return false;
-
- //--------------------------
- lpzfExeRemakeSendNode(1); // Send Node 삭제 후 재 생성
- //model.setValue("/root/send/data1", grd_settinglist.getUpdateData());
- // ds_send.setColumn(0, "data1", grd_settinglist.updateToDataset());
- //dsf_createDsRow("ds_send_data", [{col : "data1", val : grd_settinglist.getUpdateData()}]);
- //grd_settinglist.up
- //grd_settinglist.updateToDataset();
- //if (submit("TXLPC00901"))
- var oParam = {};
- oParam.id = "TXLPC00901";
- oParam.service = "plgybaseinfomngtapp.SetTestCode";
- oParam.method = "reqExeSetTestCode";
- oParam.inds = "refData=ds_grd_settinglist:I";
- oParam.async = false;
- //oParam.callback = "cf_TXLPC00901";
- tranf_submit(oParam);
-
- sysf_messageBox("저장이", "I002");
-
- //fGetRefData();
- }
- function cf_TXLPC00901(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- trace("!");
- return;
- }
- trace("?");
- sysf_messageBox("저장이", "E009");
- }]]></Script>
- </Form>
- </FDL>
|