123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLPC02700" position="absolute 0 0 325 425" titletext="New Form" oninit="model1_oninit" class="frm_POP" onload="SPLPC02700_onload">
- <Layouts>
- <Layout>
- <Div id="grp_popup" position="absolute 0 0 321 420" anchor="default" positiontype="position">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_1" position="absolute 0 25 305 25" anchor="default" linetype="horizontal" positiontype="position"/>
- <Grid id="grd_cellscreener" position="absolute 11 69 314 390" anchor="default" positiontype="position" autofittype="col" binddataset="ds_grid_grd_cellscreener">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="127"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="No."/>
- <Cell col="1" text="상태"/>
- <Cell col="2" text="사용자명"/>
- <Cell col="3" text="표시순서"/>
- <Cell col="4" text="baseflagcd"/>
- <Cell col="5" text="resncd"/>
- <Cell col="6" text="instcd"/>
- <Cell col="7" text="삭제구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="image" 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="combo" edittype="combo" text="bind:resncnts" combodataset="ds_grid_grd_screenerlist" combocodecol="userid" combodatacol="usernm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:dispseqno"/>
- <Cell col="4" text="bind:baseflagcd"/>
- <Cell col="5" text="bind:resncd"/>
- <Cell col="6" text="bind:instcd"/>
- <Cell col="7" text="bind:delflagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button3" class="btn2" taborder="20" position="absolute 198 46 254 66" anchor="default" text="행추가" positiontype="position" onclick="grp_popup_button3_onclick"/>
- <Radio id="radio1" visible="true" columncount="2" position="absolute 114 46 195 66" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" positiontype="position" index="0" value="1" onitemchanged="grp_popup_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">1차</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">2차</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Button id="button1" class="btn2" taborder="20" position="absolute 257 46 313 66" anchor="default" text="행삭제" positiontype="position" onclick="grp_popup_button1_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cfm" taborder="1" text="저장" class="btn4" position="absolute 258 393 314 413" positiontype="position" onclick="btn_cfm_onclick"/>
- <Static id="stt_titleText" text="세포스크리너" class="sta_POP_title" position="absolute 12 8 120 28"/>
- <Button id="Button00" taborder="3" class="btn_POP_cls" position="absolute 299 12 313 25" onclick="Button00_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_cellscreener" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="resncnts" type="STRING"/>
- <Column id="dispseqno" type="STRING"/>
- <Column id="baseflagcd" type="STRING"/>
- <Column id="resncd" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="delflagcd" type="STRING"/>
- <Column id="screenflag" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_screenerlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- <Column id="userabbr" type="STRING" size="256"/>
- <Column id="rgstdd" type="STRING" size="256"/>
- <Column id="jobkindcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SPLPC02700_세포스크리너팝업.xfdl
- * Creator :
- * Make Date : 2015-11-12
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-12 DBS Converting Program(TF->XP)
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- var instcd = sysf_getUserInfo("dutplceinstcd");
- var sName = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //초기화
- function lf_exeInitialize(){
- lf_getRefData();
- ds_hidden.copyData(arg_ds_hidden);
- sName = ds_hidden.getColumn(0,"scipflag");
- var scipflag = sName;
-
- //세포 스크리너 or 결과 입력자 구분.
- if( scipflag == "SC") {
- stt_titleText.text = "세포스크리너";
- grp_popup.radio1.visible = true;
- } else if(scipflag == "IP") {
- stt_titleText.text = "결과 입력자";
- grp_popup.radio1.visible = false;
- }
-
- lf_getSepoScrn(scipflag);
- }
- // 사용자명 콤보박스
- function lf_getRefData(){
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "delflagcd", val: "0"}
- , {col: "instcd", val:instcd }]);
- ds_grid_grd_cellscreener.clearData();
- // 서브밋호출
- tranf_submit({
- id: "TRLPC01301"
- , service: "plgybaseinfomngtapp.EmpAbbrCode"
- , method: "reqGetEmpAbbrCodeList"
- , inds : "refData="+sInDsName
- , outds: "ds_grid_grd_screenerlist=rsltlist"
- , async: false
- });
-
- }
- // 조회
- function lf_getSepoScrn(pFlag){
- var sInDsName = dsf_createDsRow("in_ds_search"
- , [{col: "baseflagcd", val: pFlag}
- , {col: "instcd", val: instcd }
- , {col: "screenflag", val: grp_popup.radio1.value}]);
- ds_grid_grd_cellscreener.clearData();
- // 서브밋호출
- tranf_submit({
- id: "TRLPC02701"
- , service: "plgybaseinfomngtapp.EmpAbbrCode"
- , method: "reqGetSepoScrnList"
- , inds : "refData="+sInDsName
- , outds: "ds_grid_grd_cellscreener=rsltlist"
- , async: false
- });
- }
- //행추가
- function lf_addRow(){
- var nRow = ds_grid_grd_cellscreener.addRow();
- var resncd = 0;
- if(grp_popup.radio1.value == "1") { // 1차
- resncd = 1000;
- }else if(grp_popup.radio1.value == "2" ){ // 2차
- resncd = 2000;
- }
- resncd++;
-
- for(var i=0; i<nRow ; i++){
- if(ds_grid_grd_cellscreener.findRow("resncd",resncd,0,nRow) != -1){ // resncd가 존재하면 +1
- resncd++;
- }
- }
-
- ds_grid_grd_cellscreener.setColumn(nRow,"screenflag",grp_popup.radio1.value)
- ds_grid_grd_cellscreener.setColumn(nRow,"baseflagcd",sName);
- ds_grid_grd_cellscreener.setColumn(nRow,"delflagcd","0");
- ds_grid_grd_cellscreener.setColumn(nRow,"resncd",resncd);
- ds_grid_grd_cellscreener.setColumn(nRow,"instcd",instcd);
- }
- //행삭제
- function lf_delRow(){
- var arrPostion = new Array();
- arrPostion[0] = ds_grid_grd_cellscreener.rowposition;
- ds_grid_grd_cellscreener.setColumn(arrPostion,"delflagcd","1");
- grdf_setStatus(grp_popup.grd_cellscreener, "D", arrPostion);
- }
- //저장
- function lf_exeSepoScrn(){
- var arrPostion = new Array();
- for(var iRowNo = 0 ; iRowNo < ds_grid_grd_cellscreener.rowcount ; iRowNo++){
- arrPostion[0] =iRowNo;
- grdf_setStatus(grp_popup.grd_cellscreener, "I", arrPostion);
- }
- // 서브밋호출
- tranf_submit({
- id: "TXLPC02701"
- , service: "plgybaseinfomngtapp.EmpAbbrCode"
- , method: "reqSetSepoScrneenerlist"
- , inds : "refData=ds_grid_grd_cellscreener"
- , callback: "cbf_SPLPC02700"
- , async: false
- });
- }
-
- //콜백함수
- function cbf_SPLPC02700(strSvcID, nErrorCode, strErrorMag){
- if(strSvcID == "TXLPC02701" && nErrorCode==0){
- lf_getSepoScrn(sName);
- sysf_messageBox("","I001","");
- }
- }
-
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SPLPC02700
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPLPC02700_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- lf_exeInitialize();
- grdf_setGridSort(grp_popup.grd_cellscreener);
- }
- /****************************************************************************************
- * Components :
- * Components ID : Button00
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- //닫기
- function Button00_onclick(obj:Button, e:ClickEventInfo)
- {
- close("return value");
- }
- /****************************************************************************************
- * Components :
- * Components ID : grp_popup_radio1
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- //라디오버튼 1차,2차 변경시
- function grp_popup_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- lf_getSepoScrn(sName);
- }
- /****************************************************************************************
- * Components :
- * Components ID : grp_popup_button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- //행추가
- function grp_popup_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_addRow();
- }
- /****************************************************************************************
- * Components :
- * Components ID : grp_popup_button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- //행삭제
- function grp_popup_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_delRow();
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_cfm
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- //저장버튼
- function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_exeSepoScrn();
- }
- ]]></Script>
- </Form>
- </FDL>
|