123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPAHR00410" position="absolute 0 0 537 495" titletext="통합판정소견예문" oninit="SPAHR00410_oninit" onload="SPAHR00410_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 536 460" id="group3" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 535 40" align="align:center top;" id="group2" class="div_SA2" anchor="default">
- <Layouts>
- <Layout>
- <Edit position="absolute 230 11 420 30" id="ipt_rsltexmpnm" class="input_search" onkeydown="group3_group2_ipt_rsltexmpnm_onkeydown" anchor="default"/>
- <Edit position="absolute 65 11 155 30" id="ipt_rsltexmpcd" class="input_search" onkeydown="group3_group2_ipt_rsltexmpcd_onkeydown" anchor="default"/>
- <Shape position="absolute 442 9 448 31" linetype="vertical" id="line13" anchor="default"/>
- <Static text="내용 :" position="absolute 170 12 235 29" id="caption1" class="search_name" anchor="default"/>
- <Static text="코드 :" position="absolute 6 12 70 29" id="caption2" class="search_name" anchor="default"/>
- <Button position="absolute 461 9 517 31" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape position="absolute 0 40 535 46" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
- <Grid position="absolute 0 45 535 455" id="grd_judgexmp" binddataset="ds_main_judgexmpcdlst_item" oncelldblclick="group3_grd_judgexmp_oncelldblclick" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="28"/>
- <Column size="65"/>
- <Column size="150"/>
- <Column size="248"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="V"/>
- <Cell col="2" text="소견코드"/>
- <Cell col="3" text="한글소견"/>
- <Cell col="4" text="한글판정소견"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' || sel == '1' ? '1' : '0'"/>
- <Cell col="2" text="bind:judgexmpcd"/>
- <Cell col="3" style="align:left top;padding:5 2 1 2;" text="bind:judghangshrtcnts" wordwrap="word"/>
- <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:judghangcnts" wordwrap="word"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 461 535 488" id="grp_btn" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Button position="absolute 418 5 474 27" id="btn_confirm" class="btn4" text="확인" onclick="grp_btn_btn_confirm_onclick"/>
- <Button position="absolute 477 5 533 27" id="btn_cancel" class="btn4" text="취소" onclick="grp_btn_btn_cancel_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_judgexmpcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_judgexmpcdlst_item_oncolumnchanged">
- <ColumnInfo>
- <Column id="sel" type="STRING" size="256"/>
- <Column id="judgexmpcd" type="STRING" size="256"/>
- <Column id="judghangshrtcnts" type="STRING" size="256"/>
- <Column id="judghangcnts" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="sel"/>
- <Col id="judgexmpcd"/>
- <Col id="judghangshrtcnts"/>
- <Col id="judghangcnts"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchjudgexmpcd" type="STRING" size="256"/>
- <Column id="srchjudgexmpcnts" type="STRING" size="256"/>
- <Column id="srchinstcd" type="STRING" size="256"/>
- <Column id="srchhealexamflag" type="STRING" size="256"/>
- <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
- <Column id="srchjudgeexmpcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchjudgexmpcd"/>
- <Col id="srchjudgexmpcnts"/>
- <Col id="srchinstcd"/>
- <Col id="srchhealexamflag"/>
- <Col id="srchhealexamdetlflag"/>
- <Col id="srchjudgeexmpcd"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.group2.ipt_rsltexmpcd" propid="value" datasetid="ds_send" columnid="srchjudgexmpcd"/>
- <BindItem id="item1" compid="group3.group2.ipt_rsltexmpnm" propid="value" datasetid="ds_send" columnid="srchjudgexmpcnts"/>
- </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 "ast_healexamxp::AHA001.xjs";
- include "pam_pamcomnxp::PAM.xjs";
- include "ast_healthexambasexp::healcombolist.xjs";
- include "ast_healthexamrsrvacptxp::AHA.xjs"
- var arErrorCode = new HashArray();
- function SPAHR00410_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); //폼 초기화
- }
- function SPAHR00410_onload(obj:Form, e:LoadEventInfo)
- {
- fInit();
- }
- function fInit(){
- ds_main_judgexmpcdlst_item.clearData();
-
- if( frmf_checkOpener() ){
- ds_send.setColumn(0, "srchhealexamdetlflag" , opener.frmf_getParameter("SPAHR00400_PARAM8"));
- ds_send.setColumn(0, "srchjudgexmpcd" , opener.frmf_getParameter("SPAHR00410_PARAM5"));
- ds_send.setColumn(0, "srchjudgexmpcnts" , opener.frmf_getParameter("SPAHR00410_PARAM6"));
- ds_send.setColumn(0, "srchhealexamflag" , opener.frmf_getParameter("SPAHR00410_PARAM7"));
- ds_send.setColumn(0, "srchjudgeexmpcd" , opener.frmf_getParameter("SPAHR00410_PARAM9"));
- }
- fGetRsltExmpList();
- }
- /**
- * 결과예문(소견) 조회
- */
- function fGetRsltExmpList(){
- ds_main_judgexmpcdlst_item.clearData();
- ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
-
- var oParam = {};
- oParam.id = "TRAHB00806";
- oParam.service = "healexambaseapp.CmtCode";
- oParam.method = "reqGetNewCmtCdList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_judgexmpcdlst_item=item";
- oParam.async = false;
- tranf_submit(oParam);
-
- if(utlf_isNull(ds_main_judgexmpcdlst_item.getColumnInfo("sel"))){
- ds_main_judgexmpcdlst_item.addColumn("sel", "string");
- }
- }
- function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetRsltExmpList();
- }
- function group3_group2_ipt_rsltexmpnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- function group3_group2_ipt_rsltexmpcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13){
- obj.updateToDataset();
- group3.group2.btn_search.click();
- }
- }
- function group3_grd_judgexmp_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- //그리드의 셀 이외의 곳을 클릭하면 종료한다.
- if(e.row < 0 || e.row < 0) return false;
- // 그리드의 헤더부분을 클릭하면 종료한다.
-
- var vMulti = opener.frmf_getParameter("SPAHR00410_PARAM1");// 다중선택여부(Y/N)
- if( vMulti == "N" ){
- fSetData();
- this.close();
- }else {
- var sel = ds_main_judgexmpcdlst_item.getColumn(ds_main_judgexmpcdlst_item.rowposition, "sel");
-
- if(sel == "Y") {
- ds_main_judgexmpcdlst_item.enableevent = false;
- ds_main_judgexmpcdlst_item.updatecontrol = false;
- ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "N");
- ds_main_judgexmpcdlst_item.updatecontrol = true;
- ds_main_judgexmpcdlst_item.enableevent = true;
- } else {
- ds_main_judgexmpcdlst_item.enableevent = false;
- ds_main_judgexmpcdlst_item.updatecontrol = false;
- ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "Y");
- ds_main_judgexmpcdlst_item.updatecontrol = true;
- ds_main_judgexmpcdlst_item.enableevent = true;
-
- fSetData();
- this.close();
- }
- }
- }
- /**
- * 선택 결과문구 set
- */
- function fSetData(){
- if(frmf_checkOpener()){
- var vDestNodeSet:Dataset;
- vDestNodeSet = eval("opener." + opener.frmf_getParameter("SPAHR00410_PARAM2")); //목적노드Set
- var vDestNodeCd = opener.frmf_getParameter("SPAHR00410_PARAM3"); //코드 목적노드
- var vDestNodeNm = opener.frmf_getParameter("SPAHR00410_PARAM4"); //내용 목적노드
- var vMulti = opener.frmf_getParameter("SPAHR00410_PARAM1");// 다중선택여부(Y/N)
- if( vMulti == "N" ){
- var idx = ds_main_judgexmpcdlst_item.rowposition;
- if( idx < 0) return ;
- vDestNodeSet.setColumn(0, vDestNodeCd , ds_main_judgexmpcdlst_item.getColumn(idx, "judgexmpcd"));
- vDestNodeSet.setColumn(0, vDestNodeNm , ds_main_judgexmpcdlst_item.getColumn(idx, "judghangcnts"));
- }
- else {
- ds_main_judgexmpcdlst_item.filter("sel == 'Y'");
- vDestNodeSet.copyData(ds_main_judgexmpcdlst_item, true);
- ds_main_judgexmpcdlst_item.filter("");
- }
- var FormId = opener.frmf_getMainFormScreenID();// 호출한 DIV 중 최상위 DIV ID
- if(FormId == "SMAHR02405"){
- var mainObj = frmf_getMainViewer();
- dsf_makeValue(mainObj.ds_temp, "okflag", "string", "ok");
- }else{
- dsf_makeValue(opener.ds_temp, "okflag", "string", "ok");
- }
- }
- }
- function ds_main_judgexmpcdlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(group3.grd_judgexmp.currentcol == group3.grd_judgexmp.getBindCellIndex("body", "sel")){
- if(ds_main_judgexmpcdlst_item.getColumn(ds_main_judgexmpcdlst_item.rowposition, "sel") == "Y"
- || ds_main_judgexmpcdlst_item.getColumn(ds_main_judgexmpcdlst_item.rowposition, "sel") == "1"){
- ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "Y");
- }else{
- ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "N");
- }
- }
- }
- function grp_btn_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetData();
- this.close();
- }
- function grp_btn_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|