123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLQF00500" position="absolute 0 0 1256 805" titletext="QC물질 레벨관리" onload="SMLQF00500_onload" oninit="SMLQF00500_oninit">
- <Layouts>
- <Layout>
- <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" position="absolute 0 26 1255 70" class="div_SA2">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Static id="caption1" class="tit_2" position="absolute 0 77 134 97" anchor="default" positiontype="position" text="레벨코드 목록"/>
- <Button id="button3" class="btn1" position="absolute 1120 37 1176 59" anchor="top right" positiontype="position" text="조회" onclick="button3_onclick"/>
- <Grid id="grd_levllist" position="absolute 0 97 1256 805" anchor="all" positiontype="position" binddataset="ds_grid_grd_levllist" autoenter="select" autofittype="col" enable="true" readonly="false">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="150"/>
- <Column size="300"/>
- <Column size="233"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell style="align:center middle;"/>
- <Cell col="1" text="레벨코드"/>
- <Cell col="2" text="레벨명"/>
- <Cell col="3" text="OnCall레벨코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" displaytype="image" style="align:center;" 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="1" displaytype="text" edittype="expr:getRowType(currow)==2 ? 'text':'none'" text="bind:levlcd" editlimit="2"/>
- <Cell col="2" displaytype="text" edittype="readonly" text="bind:levlnm" editlimit="50"/>
- <Cell col="3" text="bind:oclevlcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_addrow" class="btn2" position="absolute 1200 74 1256 94" anchor="top right" positiontype="position" text="행추가" onclick="btn_addrow_onclick"/>
- <Button id="btn_init" class="btn1" position="absolute 1179 37 1248 59" anchor="top right" positiontype="position" text="초기화" onclick="btn_init_onclick"/>
- <Button id="btn_save" class="btn4" position="absolute 1198 2 1254 24" anchor="top right" positiontype="position" text="저장" onclick="btn_save_onclick"/>
- <Static id="caption6" class="tit_1" position="absolute 0 0 151 25" anchor="default" positiontype="position" text="QC물질레벨관리"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_levllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onvaluechanged="ds_grid_grd_levllist_onvaluechanged">
- <ColumnInfo>
- <Column id="chk" type="STRING" size="256" sumtext="ck"/>
- <Column id="levlcd" type="STRING" size="256" sumtext="레벨코드"/>
- <Column id="levlnm" type="STRING" size="256" sumtext="레벨명"/>
- <Column id="oclevlcd" type="STRING" size="256" sumtext="OnCall레벨코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <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";
- function lf_setInit() {
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "codeflag", val: "0000|"}]);
-
- ds_init_lb0000.clearData();
-
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_init_lb0000==0000";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
-
- lf_getLevel();
- }
- function lf_getLevel() {
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "userdeptcd", val: ds_init_lb0000.getColumn(0,"nm") }]);
-
- ds_grid_grd_levllist.clearData();
-
- var oParam = {};
- oParam.id = "TRLQF00501";
- oParam.service = "grademngtbasemngtapp.LevelMngt";
- oParam.method = "reqGetLevel";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_grd_levllist=getLevel";
- oParam.async = false;
- //oParam.callback = "cf_TRLQF00501";
- tranf_submit(oParam);
- }
-
- function lf_checkNull(){
- lf_insLevel();
- }
- function lf_insLevel() {
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "userdeptcd", val: ds_init_lb0000.getColumn(0,"nm") }]);
- var oParam = {};
- oParam.id = "TXLQF00501";
- oParam.service = "grademngtbasemngtapp.LevelMngt";
- oParam.method = "reqExeLevel";
- oParam.inds = "grid=ds_grid_grd_levllist:U cond="+sInDsName;
- oParam.async = false;
- oParam.callback = "cf_TXLQF00501";
- tranf_submit(oParam);
- }
- function cf_TXLQF00501(strSvcID, nErrorCode, strErrorMag){
- if(strSvcID == "TXLQF00501" && nErrorCode==0){
- sysf_messageBox("","I001","");
- }
- lf_getLevel();
- }
- function lf_checkLevlCode(pLevlCode){
- var sLevlCd ="";
-
- for(var i=0; i < ds_grid_grd_levllist.rowcount; i++){
- sLevlCd = ds_grid_grd_levllist.getColumn(i,"levlcd");
- if(ds_grid_grd_levllist.getRowType(i) != Dataset.ROWTYPE_INSERT){
- if(pLevlCode == sLevlCd){
- sysf_messageBox("코드가 존재합니다.확인해주세요.","I","");
- return false;
- }
- }
- }
- return true;
- }
- function SMLQF00500_onload(obj:Form, e:LoadEventInfo)
- {
- lf_setInit();
- }
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_getLevel();
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_setInit();
- }
- function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_grd_levllist.addRow();
- grd_levllist.setFocus();
- ds_grid_grd_levllist.rowposition = ds_grid_grd_levllist.rowcount-1;
- var nCellIdx=grd_levllist.getBindCellIndex("body","levlcd");
- grd_levllist.setCellPos(nCellIdx);
- grd_levllist.showEditor(true);
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_checkNull();
- }
- function ds_grid_grd_levllist_onvaluechanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(grd_levllist.getCellPos()!= grd_levllist.getBindCellIndex("body","levlcd")) return;
-
- var nRowNum = obj.rowposition;
- if(obj.getRowType(nRowNum) != Dataset.ROWTYPE_INSERT) return;
- var sLevlCd =obj.getColumn(nRowNum,"levlcd");
- if(utlf_isNull(sLevlCd)) return;
- if(lf_checkLevlCode(sLevlCd)==false){
- obj.setColumn(nRowNum,"levlcd","");
- grd_levllist.setFocus();
- obj.rowposition= nRowNum;
- var nCellIdx=grd_levllist.getBindCellIndex("body","levlcd");
- grd_levllist.setCellPos(nCellIdx);
- grd_levllist.showEditor(true);
- }
- }
- function SMLQF00500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- ]]></Script>
- </Form>
- </FDL>
|