123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLF01700" position="absolute 0 0 1226 784" titletext="WorkList그룹관리" onload="SMLLF01700_onload">
- <Layouts>
- <Layout>
- <Div id="grp3" position="absolute 0 25 1226 782" anchor="all" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="caption1" class="tit_2" position="absolute 0 52 132 72" anchor="default" text="WorkList그룹 목록" positiontype="position"/>
- <Static id="caption3" class="tit_2" position="absolute 575 420 647 440" anchor="default" text="검사목록" positiontype="position"/>
- <Div id="group1" position="absolute 0 3 1225 45" anchor="left top right" class="div_SA" positiontype="position">
- <Layouts>
- <Layout>
- <Button id="btn_ref" class="btn1" position="absolute 1161 8 1217 28" anchor="top right" text="조회" onclick="grp3_group1_btn_ref_onclick" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_rowadd" class="btn2" position="absolute 450 49 506 69" anchor="default" text="행추가" onclick="grp3_btn_rowadd_onclick" positiontype="position"/>
- <Button id="btn_divgrupdel" class="btn2" position="absolute 509 49 565 69" anchor="default" text="행삭제" onclick="grp3_btn_divgrupdel_onclick" positiontype="position"/>
- <Static id="caption2" class="tit_2" position="absolute 575 52 685 72" anchor="default" text="선택검사목록" positiontype="position"/>
- <Button id="btn_up" class="icon_top" position="absolute 916 390 942 410" anchor="default" text="" onclick="grp3_btn_up_onclick" positiontype="position"/>
- <Combo id="cmb_tsectcd" class="combo_s_essential" position="absolute 931 417 1129 437" anchor="default" codecolumn="cd" datacolumn="nm" innerdataset="@ds_init_tsectcd" index="-1" onitemchanged="grp3_cmb_tsectcd_onitemchanged" positiontype="position"/>
- <Static id="caption4" class="search_name" position="absolute 658 417 722 437" anchor="default" text="검사분류" positiontype="position"/>
- <Combo id="cmb_sectcd" class="combo_s_essential" position="absolute 730 417 928 437" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" index="-1" onitemchanged="grp3_cmb_sectcd_onitemchanged" positiontype="position"/>
- <Grid id="grd_choitestlist" position="absolute 575 72 1225 380" anchor="left top right" binddataset="ds_grid_grd_choitestlist" extendsizetype="none" autoenter="select" cellsizingtype="col" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="82"/>
- <Column size="175"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="62"/>
- <Column size="57"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="normal" edittype="none" text="상태"/>
- <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="Worklist시작번호"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="image" expr="expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:tclscd"/>
- <Cell col="3" style="align:left;" text="bind:tclsnm"/>
- <Cell col="4"/>
- <Cell col="5" displaytype="normal" edittype="normal" text="bind:divgrupprntnm"/>
- <Cell col="6" edittype="normal" text="bind:divgruplblnm"/>
- <Cell col="7" style="align:center middle;" text="bind:tclskindn"/>
- <Cell col="8" edittype="normal" text="bind:divgrupdispseq"/>
- <Cell col="9" edittype="normal" style="align:left middle;" text="bind:divgrupstartno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_testlist" position="absolute 575 440 1224 757" anchor="all" binddataset="ds_grid_grd_testlist" cellsizingtype="col" positiontype="position" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="26"/>
- <Column size="82"/>
- <Column size="213"/>
- <Column size="76"/>
- <Column size="0"/>
- <Column size="65"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell celltype="head"/>
- <Cell col="1"/>
- <Cell col="2" text="검사코드"/>
- <Cell col="3" text="검사명"/>
- <Cell col="4" text="그룹명"/>
- <Cell col="5" text="그룹코드"/>
- <Cell col="6" text="검사구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:tclscd"/>
- <Cell col="3" style="align:left;" text="bind:tclsnm"/>
- <Cell col="4" text="bind:divgrupnm"/>
- <Cell col="5" text="bind:divgrupcd"/>
- <Cell col="6" style="align:center middle;" text="bind:tclskindn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_divgruplist" position="absolute 0 72 565 757" anchor="left top bottom" onclick="grd_divgruplist_onclick" binddataset="ds_grid_grd_divgruplist" oncellclick="grp3_grd_divgruplist_oncellclick" autoenter="select" positiontype="position">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="57"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="WorkList명(약어)"/>
- <Cell col="6" text="그룹명(출력)"/>
- <Cell col="7" text="그룹명(라벨)"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" displaytype="normal" expr="currow+1"/>
- <Cell col="1" displaytype="image" expr="expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
- <Cell col="2" edittype="normal" text="bind:divgrupcd"/>
- <Cell col="3" edittype="normal" text="bind:divgrupnm"/>
- <Cell col="4" edittype="normal" text="bind:divgrupscrnm"/>
- <Cell col="5"/>
- <Cell col="6" edittype="normal" text="bind:divgrupprntnm"/>
- <Cell col="7" edittype="normal" text="bind:divgruplblnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_choitestdel" class="btn2" position="absolute 1168 49 1224 69" anchor="top right" text="행삭제" onclick="grp3_btn_choitestdel_onclick" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption6" text="WorkList그룹 관리" class="tit_1" position="absolute 0 3 159 28"/>
- <Button id="btn_save" taborder="1" text="저장" onclick="grp4_btn_save_onclick" class="btn4" position="absolute 1096 4 1152 24" anchor="top right"/>
- <Button id="btn_init" taborder="2" text="초기화" onclick="grp4_btn_init_onclick" class="btn4" position="absolute 1155 4 1224 24" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_tsectcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_testlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="divgrupnm" type="STRING"/>
- <Column id="tclskind" type="STRING"/>
- <Column id="tclskindn" type="STRING"/>
- <Column id="divgrupcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_choitestlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="divgrupnm" type="STRING"/>
- <Column id="tclskind" type="STRING"/>
- <Column id="tclskindn" type="STRING"/>
- <Column id="divgrupdispseq" type="STRING"/>
- <Column id="divgrupstartno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_divgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="divgrupcd" type="STRING"/>
- <Column id="divgrupnm" type="STRING"/>
- <Column id="divgrupscrnm" type="STRING"/>
- <Column id="divgrupabbrnm" type="STRING"/>
- <Column id="divgrupprntnm" type="STRING"/>
- <Column id="divgruplblnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="able" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_execute" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="able" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp3.btn_rowadd" propid="enable" datasetid="ds_execute" columnid="able"/>
- <BindItem id="item1" compid="grp3.btn_divgrupdel" propid="enable" datasetid="ds_execute" columnid="able"/>
- <BindItem id="item2" compid="grp3.btn_choitestdel" propid="enable" datasetid="ds_execute" columnid="able"/>
- <BindItem id="item3" compid="grp3.btn_up" propid="enable" datasetid="ds_execute" columnid="able"/>
- <BindItem id="item4" compid="btn_save" propid="enable" datasetid="ds_execute" columnid="able"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SMLLF01700_onload(obj:Form, e:LoadEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
-
- //그리드 Sort
- grdf_setGridSort(grp3.grd_divgruplist);
- grdf_setGridSort(grp3.grd_choitestlist);
- grdf_setGridSort(grp3.grd_testlist);
-
- //초기정보 조회
- lf_setInitData();
-
- ds_init_tsectcd.copyData(ds_init_lb0102);
-
- //콤보박스 index = 0 초기화
- grp3.cmb_sectcd.index = 0;
- grp3.cmb_tsectcd.index = 0;
- //검사목록 조회
- lf_testList();
-
- lf_menumaster();//메뉴권한
- }
- function cbf_SMLLF01700(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- if(strSvcID == "TXLLF01701" && nErrorCode == 0){
- //저장후 자동조회
- lf_getDivGrupList();
- //첫번째행 자동조회
- lf_getChoiTestList();
- }
- }
- function lf_setInitData(){
-
- // 초기정보 조회
- lf_getDbDeptcd("0104|0102|0000|","cbf_SMLLF01700");
- }
- function lf_testList(){
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "lrgcd", val: grp3.cmb_sectcd.value}
- , {col: "mdlcd", val: grp3.cmb_tsectcd.value}
- , {col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
-
- var oParam = {};
- oParam.id = "TRLLF01701";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetTestList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_testlist=getTestList";
- oParam.async = true;
- oParam.callback = "cbf_SMLLF01700";
- tranf_submit(oParam);
- }
- function lf_setLrgCd(){
- var nRow=0;
- var sLrgcd = grp3.cmb_sectcd.value;
- var sMdlcd = "";
- ds_init_tsectcd.clearData();
-
- if(sLrgcd == "00"){
- ds_init_tsectcd.copyData(ds_init_lb0102);
- }else{
- for(var i = 0; i<ds_init_lb0102.rowcount - 1; i++){
- sMdlcd = ds_init_lb0102.getColumn(i, "cd");
- sMdlcd = sMdlcd.substr(0, 1);
- if (sLrgcd==sMdlcd){
- nRow = ds_init_tsectcd.addRow();
- ds_init_tsectcd.copyRow(nRow,ds_init_lb0102,i);
- }
- }
- }
- grp3.cmb_tsectcd.index=0;
- }
- function lf_setChoiTestList(){
- var bfcheck = 0;
- var nRow;
- for(i=0; i< ds_grid_grd_testlist.rowcount; i++){
- var fcheck = ds_grid_grd_testlist.findRow("choi", "1", i, ds_grid_grd_testlist.rowcount+1)
-
- if(fcheck == -1 ) {
- break;
- }
-
- i = fcheck;
-
- var sTclscd = ds_grid_grd_testlist.getColumn(fcheck, "tclscd")
- var iTclscdRow = ds_grid_grd_choitestlist.findRow("tclscd", sTclscd, i, ds_grid_grd_testlist.rowcount+1);
-
- if(!utlf_isNull(ds_grid_grd_testlist.getColumn(fcheck, "divgrupnm"))&&
- ds_grid_grd_testlist.getColumn(fcheck, "divgrupnm") != ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupnm")
- ){
- //이미 W/L그룹이 존재하는 코드입니다. 중복되어 그룹을 설정 할 수 없습니다
- sysf_messageBox("이미 W/L그룹이 존재하는 코드입니다. 중복되어 그룹을 설정 ", "E001", "");
- return;
- } else if(iTclscdRow >= 0) {
- sysf_messageBox("코드 선택이", "E006", "");
- return;
- } else {
- dsf_createDs("ds_temp_testlist"
- , [{col: "tclscd", type: "String"}
- , {col: "tclsnm", type: "String"}
- , {col: "tclskind", type: "String"}]);
- nRow = ds_grid_grd_choitestlist.addRow();
- ds_grid_grd_choitestlist.setColumn(nRow,"tclscd", ds_grid_grd_testlist.getColumn(fcheck,"tclscd"));
- ds_grid_grd_choitestlist.setColumn(nRow,"tclsnm", ds_grid_grd_testlist.getColumn(fcheck,"tclsnm"));
- ds_grid_grd_choitestlist.setColumn(nRow,"tclskind", ds_grid_grd_testlist.getColumn(fcheck,"tclskind"));
- }
- }
- }
- function lf_getDivGrupList(){
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
-
- var oParam = {};
- oParam.id = "TRLLF01702";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetDivGrupList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_divgruplist=getDivGrupList";
- oParam.async = true;
- oParam.callback = "cbf_SMLLF01700";
- tranf_submit(oParam);
- }
- function lf_getChoiTestList(){
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "divgrupcd", val: ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupcd")}
- , {col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
-
- var oParam = {};
- oParam.id = "TRLLF01703";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetChoiTestList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_choitestlist=getChoiTestList";
- oParam.async = true;
- oParam.callback = "cbf_SMLLF01700";
- tranf_submit(oParam);
- }
- function lf_addRow(){
- ds_grid_grd_divgruplist.addRow();
- }
- function lf_delRow(){
- var arrPostion = new Array();
- arrPostion[0] = ds_grid_grd_divgruplist.rowposition;
- if(ds_grid_grd_divgruplist.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
- ds_grid_grd_divgruplist.deleteRow(arrPostion);
- } else {
- grdf_setStatus(grp3.grd_divgruplist, "D", arrPostion);
- }
-
- for(i = 0; i < ds_grid_grd_choitestlist.rowcount; i++){
- arrPostion[0] = i
- if(ds_grid_grd_choitestlist.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
- ds_grid_grd_choitestlist.deleteRow(arrPostion);
- } else {
- grdf_setStatus(grp3.grd_choitestlist, "D", arrPostion);
- }
- }
- }
- function lf_delChoiTestListRow(){
- var arrPostion = new Array();
- arrPostion[0] = ds_grid_grd_choitestlist.rowposition;
- if(ds_grid_grd_choitestlist.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
- ds_grid_grd_choitestlist.deleteRow(arrPostion);
- } else {
- grdf_setStatus(grp3.grd_choitestlist, "D", arrPostion);
- }
- }
- function lf_setInit(){
- //ds 초기화
- ds_grid_grd_divgruplist.clearData();
- ds_grid_grd_choitestlist.clearData();
- ds_init_tsectcd.copyData(ds_init_lb0102);
-
- //콤보박스 index = 0 초기화
- grp3.cmb_sectcd.index = 0;
- grp3.cmb_tsectcd.index = 0;
-
- //검사목록 조회
- lf_testList();
- }
- function lf_validCheck(){
- //선택된 분주의 검사항목 갯수 확인
- if(ds_grid_grd_choitestlist.rowcount < 1){
- sysf_messageBox("선택검사목록이 비어있을 수", "I004", "")
- return;
- }
-
- //그리드 필수 항목 널값체크
- var bChkValue= frmf_chkMdtGrid(grp3.grd_divgruplist,[2,3,4],["그룹코드","그룹명","그룹명(화면)"]);
-
-
- //그리드 선택 항목 '-'자동처리
- if(utlf_isNull(ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupabbrnm"))){
- ds_grid_grd_divgruplist.setColumn(ds_grid_grd_divgruplist.rowposition, "divgrupabbrnm", "-");
- }
- if(utlf_isNull(ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgrupprntnm"))){
- ds_grid_grd_divgruplist.setColumn(ds_grid_grd_divgruplist.rowposition, "divgrupprntnm", "-");
- }
- if(utlf_isNull(ds_grid_grd_divgruplist.getColumn(ds_grid_grd_divgruplist.rowposition, "divgruplblnm"))){
- ds_grid_grd_divgruplist.setColumn(ds_grid_grd_divgruplist.rowposition, "divgruplblnm", "-");
- }
-
- if(bChkValue==true) lf_saveDivGrupList();
- }
- function lf_saveDivGrupList(){
-
- ds_grid_grd_divgruplist.updatecontrol = false;
- var innnnn = ds_grid_grd_divgruplist.setRowType(ds_grid_grd_divgruplist.rowposition, Dataset.ROWTYPE_UPDATE);
- //분주라벨 그룹 정보 등록
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TXLLF01701";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqExeChoiTestList";
- oParam.inds = "cond=ds_grid_grd_divgruplist:U test=ds_grid_grd_choitestlist:U user="+sInDsName
- oParam.async = false;
- oParam.callback = "cbf_SMLLF01700";
- tranf_submit(oParam);
-
- }
- function lf_saveDivGrup(){
- //분주라벨 그룹 정보 등록
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}]);
-
- var oParam = {};
- oParam.id = "TXLLF01702";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqDelDivGrupList";
- oParam.inds = "cond=ds_grid_grd_divgruplist:U user="+sInDsName;
- oParam.async = false;
- oParam.callback = "cbf_SMLLF01700";
- tranf_submit(oParam);
- }
- //진검 사용자별 메뉴권한
- function lf_menumaster(){
- var edit = frmf_checkAuth("X");
- var print = frmf_checkAuth("P");
- var eRow = ds_execute.addRow();
- var pRow = ds_print.addRow();
-
- if(edit == true){
- ds_execute.setColumn(eRow,"able",true);
- }
- if(print == true){
- ds_print.setColumn(pRow,"able",true);
- }
- }
- function grp3_cmb_sectcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
- //시행부서 검사계 초기정보 조회
- lf_setLrgCd();
-
- //검사목록 조회
- lf_testList();
- }
- function grp3_cmb_tsectcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo){
- //검사목록 조회
- lf_testList();
- }
- function grp3_btn_up_onclick(obj:Button, e:ClickEventInfo){
- //선택검사목록
- lf_setChoiTestList();
- }
- function grp3_group1_btn_ref_onclick(obj:Button, e:ClickEventInfo){
- //분주라벨 그룹목록 조회
- lf_getDivGrupList();
- //첫번째행 자동조회
- lf_getChoiTestList();
- }
- function grp3_grd_divgruplist_oncellclick(obj:Grid, e:GridClickEventInfo){
- //선택된 분주라벨 그룹목록 조회
- lf_getChoiTestList();
- }
- function grp3_btn_rowadd_onclick(obj:Button, e:ClickEventInfo){
- //WorklList 그룹목록 행추가
- lf_addRow();
- }
- function grp3_btn_divgrupdel_onclick(obj:Button, e:ClickEventInfo){
- //WorklList 그룹목록 행삭제
- lf_delRow();
- //저장
- lf_saveDivGrup();
- //분주라벨 그룹목록 조회
- lf_getDivGrupList();
- //첫번째행 자동조회
- lf_getChoiTestList();
-
- }
- function grp3_btn_choitestdel_onclick(obj:Button, e:ClickEventInfo){
- //선태검사목록 행삭제
- lf_delChoiTestListRow();
- }
- function grp4_btn_init_onclick(obj:Button, e:ClickEventInfo){
- //화면 초기화
- lf_setInit();
- }
- function grp4_btn_save_onclick(obj:Button, e:ClickEventInfo){
- //저장
- lf_validCheck();
- }
- ]]></Script>
- </Form>
- </FDL>
|