123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPMC04000" position="absolute 0 0 379 259" titletext="감면환자입력" onload="SPPMC04000_onload">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_1" position="absolute 0 24 370 30" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption1" text="감면환자입력" class="tit_2" position="absolute 5 5 120 21"/>
- <Button id="button29" taborder="1" class="icon_search" position="absolute 223 86 236 99" onclick="button29_onclick"/>
- <Static id="caption30" text="감면계정" class="cell_1" position="absolute 0 29 115 52"/>
- <Static id="caption31" text="증명서류접수/일자" class="cell_1" position="absolute 0 159 115 182"/>
- <Static id="caption2" text="직원성명" class="cell_1" position="absolute 0 81 115 104"/>
- <Static id="caption34" text="Remark" class="cell_1" position="absolute 0 185 115 226"/>
- <Static id="caption35" text="직원관계/재직여부" class="cell_1" position="absolute 0 107 115 130"/>
- <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 0 77 370 83"/>
- <Static id="caption26" text="신청서접수여부" class="cell_1" position="absolute 0 133 115 156"/>
- <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 0 103 370 109"/>
- <Shape id="line4" linetype="horizontal" class="line_2" position="absolute 0 129 370 135"/>
- <TextArea id="textarea2" taborder="2" position="absolute 117 187 369 225" wordwrap="char" scrollbars="fixedvert"/>
- <Shape id="line5" linetype="horizontal" class="line_2" position="absolute 0 155 370 161"/>
- <Static id="caption29" text="시작일자/종료일자" class="cell_1" position="absolute 0 55 115 78"/>
- <Shape id="line6" linetype="horizontal" class="line_2" position="absolute 0 181 370 187"/>
- <Shape id="line61" linetype="horizontal" class="line_2" position="absolute 0 51 370 57"/>
- <Button id="button2" taborder="3" text="직원가족사항" class="btn2" position="absolute 283 4 369 23" onclick="button2_onclick"/>
- <Combo id="cmb_disccd" taborder="4" innerdataset="@ds_init_disccd" codecolumn="cd" datacolumn="nm" class="combo_default" position="absolute 147 31 369 50"/>
- <Edit id="ipt_disccd" taborder="5" class="input_default" position="absolute 117 31 145 50" ontextchanged="ipt_disccd_ontextchanged"/>
- <Edit id="output1" taborder="6" readonly="true" position="absolute 244 109 369 128" style="background:URL('theme://images/bg_edit_D.png') stretch 9,9;"/>
- <Radio id="radio1" taborder="7" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 118 134 210 154" index="-1" style="textpadding:0 3 0 3;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Yes</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">No</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Radio id="radio2" taborder="8" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 118 160 210 180" index="-1" style="textpadding:0 3 0 3;">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">Y</Col>
- <Col id="datacolumn">Yes</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">No</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Calendar id="input3" taborder="9" class="input_default" position="absolute 244 161 369 180" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Calendar id="ipt_fromdd" taborder="10" class="input_default" position="absolute 117 57 242 76" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="ipt_todd" taborder="11" class="input_default" position="absolute 244 57 369 76" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
- <Edit id="ipt_empid" taborder="12" class="input_default" position="absolute 117 83 217 102"/>
- <Edit id="opt_empidnm" taborder="13" readonly="true" position="absolute 244 83 369 102" style="background:URL('theme://images/bg_edit_D.png') stretch 9,9;"/>
- <Combo id="cmb_emprela" taborder="14" innerdataset="@ds_init_com_P0016list" codecolumn="cdid" datacolumn="cdnm" class="combo_default" position="absolute 117 109 242 128"/>
- <Button id="btn_confirm" taborder="15" text="확인" class="btn4" position="absolute 257 231 313 253" onclick="btn_confirm_onclick"/>
- <Button id="btn_cancel" taborder="16" text="취소" class="btn4" position="absolute 316 231 372 253" onclick="btn_cancel_onclick"/>
- <Shape id="line88" class="line_6" position="absolute 0 225 370 231"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_h_ptdc_ptdc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptdc_pid" type="STRING" size="256"/>
- <Column id="ptdc_disccd" type="STRING" size="256"/>
- <Column id="ptdc_disccls" type="STRING" size="256"/>
- <Column id="ptdc_todd" type="STRING" size="256"/>
- <Column id="ptdc_seqno" type="STRING" size="256"/>
- <Column id="ptdc_instcd" type="STRING" size="256"/>
- <Column id="ptdc_histstat" type="STRING" size="256"/>
- <Column id="ptdc_fromdd" type="STRING" size="256"/>
- <Column id="ptdc_empid" type="STRING" size="256"/>
- <Column id="ptdc_empidnm" type="STRING" size="256"/>
- <Column id="ptdc_emprela" type="STRING" size="256"/>
- <Column id="ptdc_discappacptyn" type="STRING" size="256"/>
- <Column id="ptdc_profacptyn" type="STRING" size="256"/>
- <Column id="ptdc_profacptdd" type="STRING" size="256"/>
- <Column id="ptdc_remfact" type="STRING" size="256"/>
- <Column id="ptdc_fstrgstrid" type="STRING" size="256"/>
- <Column id="ptdc_fstrgstdt" type="STRING" size="256"/>
- <Column id="ptdc_lastupdtrid" type="STRING" size="256"/>
- <Column id="ptdc_lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="ptdc_pid"/>
- <Col id="ptdc_disccd"/>
- <Col id="ptdc_disccls"/>
- <Col id="ptdc_todd"/>
- <Col id="ptdc_seqno"/>
- <Col id="ptdc_instcd"/>
- <Col id="ptdc_histstat"/>
- <Col id="ptdc_fromdd"/>
- <Col id="ptdc_empid"/>
- <Col id="ptdc_empidnm"/>
- <Col id="ptdc_emprela"/>
- <Col id="ptdc_discappacptyn"/>
- <Col id="ptdc_profacptyn"/>
- <Col id="ptdc_profacptdd"/>
- <Col id="ptdc_remfact"/>
- <Col id="ptdc_fstrgstrid"/>
- <Col id="ptdc_fstrgstdt"/>
- <Col id="ptdc_lastupdtrid"/>
- <Col id="ptdc_lastupdtdt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_com_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_disccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_userpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="param" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="searchitem" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_disccd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_disccd"/>
- <BindItem id="item1" compid="cmb_disccd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_disccd"/>
- <BindItem id="item2" compid="ipt_todd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_todd"/>
- <BindItem id="item3" compid="ipt_fromdd" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_fromdd"/>
- <BindItem id="item4" compid="ipt_empid" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_empid"/>
- <BindItem id="item5" compid="opt_empidnm" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_empidnm"/>
- <BindItem id="item7" compid="cmb_emprela" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_emprela"/>
- <BindItem id="item8" compid="radio1" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_discappacptyn"/>
- <BindItem id="item9" compid="radio2" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_profacptyn"/>
- <BindItem id="item10" compid="input3" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_profacptdd"/>
- <BindItem id="item11" compid="textarea2" propid="value" datasetid="ds_main_h_ptdc_ptdc" columnid="ptdc_remfact"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-11-17
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-11-17 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SPPMC04000_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- //default Set
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_discappacptyn", "N");
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_profacptyn", "N");
- fGetUserInfosSampling();
- //공통코드
- appf_getCodeList([{ dsNm: 'ds_init_com_P0016list', cdGrpId: 'P0016' }]);//직원과의 관계
- var oParam = {};
- oParam.id = "TRPAMCOM01";
- oParam.service = "pamcomnapp.PamComn";
- oParam.method = "reqGetComCD";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_init_disccd=disccd";
- oParam.async = false;
- tranf_submit(oParam);
- //SPPMC04000_PARM : pid▦disccd▦strSend▦strRcv▦
- if (frmf_checkOpener()) {
- opener.frmf_setParameter("SPPMC04000_RTN", "");
- var SPPMC04000_PARM = opener.frmf_getParameter("SPPMC04000_PARM");
- var array_parm = SPPMC04000_PARM.split("▦");
- gPID = utlf_transNullToEmpty(array_parm[0]);
- gDisccd = array_parm[1];
- strSend = array_parm[2];
- strRcv = utlf_transNullToEmpty(array_parm[3]);
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_fromdd", utlf_getCurrentDate());
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_todd", "99991231");
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_discappacptyn", "N");
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_profacptyn", "N");
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_profacptdd", utlf_getCurrentDate());
- //환자번호가 넘어오면, 해당환자의 감면내역 조회
- //환자번호가 없으면, 환자번호가 없는 신규입력
- if (gPID != "" && gPID != " ") {
- //해당환자의 감면내역조회
- }
- opener.frmf_setParameter("SPPMC04000_PARM", "");
- }
- }
- /**
- * ipt_disccd 텍스트 입력 후 이벤트
- * @param {[type]} obj:Edit [description]
- * @param {[type]} e:TextChangedEventInfo [description]
- * @return {[type]} [description]
- */
- function ipt_disccd_ontextchanged(obj:Edit, e:TextChangedEventInfo)
- {
- var msg = e.posttext;
- if(msg.length == 3){
- ds_main_h_ptdc_ptdc.setColumn(0, 'ptdc_disccd', msg);
- }
- }
- /**
- * 직원성명 아이콘 클릭 이벤트
- * @param {[type]} obj:Button [description]
- * @param {[type]} e:ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button29_onclick(obj: Button, e: ClickEventInfo) {
- ds_hidden_userpopupinfo.setColumn(0, "param", "_OneS");
- ds_hidden_userpopupinfo.setColumn(0, "flag", "usernm");
- ds_hidden_userpopupinfo.setColumn(0, "searchitem", "사용자명");
- var retDs = frmf_modal("SPZSU10103", "SPZSU10103", { arg_ds_hidden_userpopupinfo: ds_hidden_userpopupinfo }, "", "", "", "", "", "", "", "", "", "M");
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_empid", retDs.getColumn(0, "userid"));
- ds_main_h_ptdc_ptdc.setColumn(0, "ptdc_empidnm", retDs.getColumn(0, "usernm"));
- }
- /**
- * 확인 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_confirm_onclick(obj: Button, e: ClickEventInfo) {
- //필수사항과 입력타입을 체크한다.
- if (frmf_isRequiredControls(["cmb_disccd", "ipt_fromdd"])) {
- //messageBox("모든 필수값이 입력이","I002")
- } else {
- return;
- }
- if (frmf_checkOpener()) {
- opener.frmf_setParameter("SPPMC04000_RTN", "Y");
- if (strRcv != "" && strRcv != " " && strRcv != "-") {
- opener.objects[strRcv].copyData(ds_main_h_ptdc_ptdc, false);
- }
- this.close();
- }
- }
- /**
- * 취소 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function btn_cancel_onclick(obj: Button, e: ClickEventInfo) {
- if (frmf_checkOpener()) {
- opener.frmf_setParameter("SPPMC04000_RTN", "N");
- this.close();
- }
- }
- /**
- * 직원가족사항 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function button2_onclick(obj: Button, e: ClickEventInfo) {
- frmf_modal("SPPMC03800", "SPPMC03800", "", "", "", "", "", "", "", "", "", "", "M");
- }]]></Script>
- </Form>
- </FDL>
|