123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIZ00700" position="absolute 0 0 569 512" titletext="심사메모조회" oninit="model1_oninit" onload="SPPIZ00700_onload">
- <Layouts>
- <Layout>
- <Grid id="grd_memolist" taborder="2" useinputpanel="false" position="absolute 0 79 564 486" autofittype="col" binddataset="ds_grid_grd_memolist" positiontype="position" ondbclick="grd_memolist_ondbclick" oncelldblclick="grd_memolist_oncelldblclick" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="23"/>
- <Column size="535"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell text="메모코드"/>
- <Cell col="1" celltype="head" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="Comment"/>
- </Band>
- <Band id="body">
- <Cell text="bind:memocd"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left top;" text="bind:memo"/>
- <Cell col="3"/>
- <Cell col="4"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group2" taborder="8" class="div_SA" position="absolute 0 27 564 69">
- <Layouts>
- <Layout>
- <Static id="caption18" text="Comment" class="search_name" position="absolute 8 10 99 30" positiontype="position"/>
- <Edit id="ipt_comment" taborder="3" oneditclick="group3_ipt_comment_oneditclick" class="input_comment" position="absolute 89 10 366 30" imemode="hangul" positiontype="position" onkeydown="group2_ipt_comment_onkeydown"/>
- <Button id="btn_srch" taborder="4" text="조회" onclick="btn_srch_onclick" class="btn1" position="absolute 497 10 553 30" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="button42" taborder="10" text="선택" onclick="button42_onclick" onlbuttonup="button42_onlbuttonup" class="btn4" position="absolute 450 488 506 508"/>
- <Static id="caption00" text="심사메모조회" class="tit_1" position="absolute 0 0 177 26"/>
- <Button id="btn_close" taborder="11" text="닫기" class="btn4" position="absolute 508 488 564 508" onclick="btn_close_onclick"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_memolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="memocd" type="STRING"/>
- <Column id="chk" type="STRING"/>
- <Column id="memo" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_temp_grd_memolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="memocd" type="STRING"/>
- <Column id="chk" type="STRING"/>
- <Column id="memo" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- function fInitialize() {
- ds_grid_grd_memolist.clearData();
-
- // 특정 메뉴분류를 지정하지 않고 항을 전달한 경우
- if( utlf_isNull(sMemocls) ) {
- if (sEdiitem1 == "03") { sEdiitem1 = "01"; } // '항'이 투약일경우 '약'
- else if (sEdiitem1 == "04") { sEdiitem1 = "02"; } // '항'이 주사일경우 '주사'
- else if (sEdiitem1 == "08") { sEdiitem1 = "03"; } // '항'이 수술일경우 '처치'
- else if (sEdiitem1 == "09") { sEdiitem1 = "04"; } // '항'이 검사일경우 '검사'
- else if (sEdiitem1 == "") { sEdiitem1 = ""; } // '항'이 없는 경우
- else { sEdiitem1 = "99"; } // 그외는 '기타'
- }
-
- var sInDs = dsf_createDsRow("ds_search"
- , [{col: "memoflag" , val: sMemoflag }
- , {col: "judgrid", type:"STRING", size:256, val:sysf_getUserId() }
- , {col: "memocls" , val: sMemocls }
- , {col: "ediitem1" , val: sEdiitem1 }
- ]);
-
- var oParam = {};
- oParam.id = "TRPIZ00701";
- oParam.service = "insucomapp.JudgCmtRef";
- oParam.method = "reqGetJudgCmtRef";
- oParam.inds = "req="+sInDs;
- oParam.outds = "ds_grid_grd_memolist=selectdata";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grid_grd_memolist.addColumn("chk", "STRING");
- }
-
- function fSetSelectedData(dbclick){
-
- ds_temp_grd_memolist.clearData();
-
- //자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- if( frmf_checkOpener() ) {
- if( dbclick == "N" ){
- var rtnObj = new Dataset();
- ds_grid_grd_memolist.filter("chk==1");
- rtnObj.copyData(ds_grid_grd_memolist, true);
- ds_grid_grd_memolist.filter("");
- this.close(rtnObj);
- }
- else{
- var curRow = grd_memolist.currentrow;
- var rtnObj = new Dataset();
- var nRow = ds_temp_grd_memolist.addRow();
- ds_temp_grd_memolist.setColumn(nRow, "chk", ds_grid_grd_memolist.getColumn(curRow, "chk") );
- ds_temp_grd_memolist.setColumn(nRow, "memocd", ds_grid_grd_memolist.getColumn(curRow, "memocd") );
- ds_temp_grd_memolist.setColumn(nRow, "memo", ds_grid_grd_memolist.getColumn(curRow, "memo") );
- rtnObj.copyData(ds_temp_grd_memolist);
- this.close(rtnObj);
- }
- }
- else {
- sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); //없습니다.
- this.close();
- }
- }
- function SPPIZ00700_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- fInitialize(); // 화면을 초기화한다.
-
- grdf_initGrid(grd_memolist);
- }
- function btn_srch_onclick(obj:Button, e:ClickEventInfo)
- {
- if( !utlf_isNull(group2.ipt_comment.value) ) { // 1글자 이상이면
- // 특정 메뉴분류를 지정하지 않고 항을 전달한 경우
- if( utlf_isNull(sMemocls) ) {
- if (sEdiitem1 == "03") { sEdiitem1 = "01"; } // '항'이 투약일경우 '약'
- else if (sEdiitem1 == "04") { sEdiitem1 = "02"; } // '항'이 주사일경우 '주사'
- else if (sEdiitem1 == "08") { sEdiitem1 = "03"; } // '항'이 수술일경우 '처치'
- else if (sEdiitem1 == "09") { sEdiitem1 = "04"; } // '항'이 검사일경우 '검사'
- else if (sEdiitem1 == "") { sEdiitem1 = ""; } // '항'이 없는 경우
- else { sEdiitem1 = "99"; } // 그외는 '기타'
- }
-
- var sInDs = dsf_createDsRow("ds_search"
- , [{col: "memoflag" , val: sMemoflag }
- , {col: "memocls" , val: sMemocls }
- , {col: "judgrid", type:"STRING", size:256, val:sysf_getUserId() }
- , {col: "ediitem1" , val: sEdiitem1 }
- , {col: "memo" , val: group2.ipt_comment.value }
- ]);
-
- var oParam = {};
- oParam.id = "TRPIZ00702";
- oParam.service = "insucomapp.JudgCmtRef";
- oParam.method = "reqGetJudgMemoRef";
- oParam.inds = "req="+sInDs;
- oParam.outds = "ds_grid_grd_memolist=selectdata";
- oParam.async = false;
- tranf_submit(oParam);
-
- ds_grid_grd_memolist.addColumn("chk", "STRING");
-
- }
- else {
- fInitialize();
- }
-
- }
- function button42_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetSelectedData("N");
- }
- function group2_ipt_comment_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- btn_srch_onclick();
- }
- }
- function grd_memolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fSetSelectedData("Y");
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|