123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPCVO02800" position="absolute 0 0 612 359" titletext="VOC 고객회신관리" oninit="SPCVO02800_oninit" onload="SPCVO02800_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="VOC 고객회신 정보" class="tit_1" position="absolute 0 0 164 24"/>
- <Shape id="line2" class="line_10" position="absolute 0 24 610 30"/>
- <Shape id="line7" linetype="horizontal" class="line_2" position="absolute 0 51 610 57"/>
- <Shape id="line1" linetype="horizontal" class="line_3" position="absolute 0 324 610 330"/>
- <Static id="caption6" text="고객통보일시" class="cell_1" position="absolute 0 29 105 52" style="padding:0 0 0 0;align:center middle;"/>
- <MaskEdit id="ipt_Notidt" taborder="1" mask="####-##-## ##:##" class="input_essential" position="absolute 109 31 224 50" maskchar=" " type="string" trimtype="both" style="align:left middle;" autoselect="true"/>
- <Static id="caption2" text="고객통보내역" class="cell_1" position="absolute 0 55 105 325" style="padding:0 0 0 0;align:center middle;"/>
- <TextArea id="tar_Noticnts" taborder="2" position="absolute 108 57 608 324" wordwrap="word" autoselect="true"/>
- <Static id="caption18" text="예) 2009-05-01 15:30 처럼 몇 시 몇 분까지 입력하세요." position="absolute 235 34 573 48" style="font:Dotum,9,bold;"/>
- <Button id="btn_close" taborder="3" text="닫기" class="btn4" position="absolute 553 329 609 351" onclick="btn_close_onclick"/>
- <Button id="btn_input" taborder="4" text="저장" class="btn4" position="absolute 495 329 551 351" onclick="btn_input_onclick"/>
- <Button id="btn_rplcustomer" taborder="5" text="고객회신 완료" class="btn4" visible="false" position="absolute 382 329 493 351" onclick="btn_rplcustomer_onclick"/>
- <Static id="cpt_Notice" text="고객회신 완료 버튼을 누르시면 고객회신 상태가 됩니다." class="hand" visible="false" position="absolute 2 331 367 348"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_aprvdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acptdd" type="STRING" size="256"/>
- <Column id="acptseq" type="STRING" size="256"/>
- <Column id="aprvreqdd" type="STRING" size="256"/>
- <Column id="aprvreqnm" type="STRING" size="256"/>
- <Column id="aprvdd" type="STRING" size="256"/>
- <Column id="aprvkindflag" type="STRING" size="256"/>
- <Column id="csteamclntnotidt" type="STRING" size="256"/>
- <Column id="csteamclntnoticnts" type="STRING" size="256"/>
- <Column id="prcsstat" type="STRING" size="256"/>
- <Column id="rgstseq" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="acpviewdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="acptdd"/>
- <Col id="acptseq"/>
- <Col id="aprvreqdd"/>
- <Col id="aprvreqnm"/>
- <Col id="aprvdd"/>
- <Col id="aprvkindflag"/>
- <Col id="csteamclntnotidt"/>
- <Col id="csteamclntnoticnts"/>
- <Col id="prcsstat"/>
- <Col id="rgstseq"/>
- <Col id="pid"/>
- <Col id="acpviewdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_temp_key" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="ipt_Notidt" propid="value" datasetid="ds_main_aprvdata" columnid=""/>
- <BindItem id="item1" compid="tar_Noticnts" propid="value" datasetid="ds_main_aprvdata" columnid="csteamclntnoticnts"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function SPCVO02800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPCVO02800_onload(obj:Form, e:LoadEventInfo)
- {
- try
- {
- ds_main_temp_key.copyData(arg_ds_main_temp_key);
- }
- catch(e){}
-
- var reAcptDD = ds_main_temp_key.getColumn(0, "sndacptdd");
- var reAcptSeq = ds_main_temp_key.getColumn(0, "sndacptseq");
- var reRgstSeq = ds_main_temp_key.getColumn(0, "sndrgstseq");
- // var pid = ds_main_temp_key.getColumn(0, "pid");
- // var acpviewdd = ds_main_temp_key.getColumn(0, "acpviewdd");
-
- if (utlf_isNull(reAcptDD) || utlf_isNull(reAcptSeq)|| utlf_isNull(reRgstSeq))
- {
- var rtn = sysf_messageBox("조회에 필요한 항목이 전달되지", "E007");
- if(rtn == 1)
- {
- this.close();
- }
- }
- else
- {
- var oParam = {};
- oParam.id = "TRCVO01701";
- oParam.service = "vocapp.Voc";
- oParam.method = "reqGetVOCAprvNotiData";
- oParam.inds = "req=ds_main_temp_key";
- oParam.outds = "ds_main_aprvdata=aprvdata";
- oParam.async = false;
- //oParam.callback = "cf_TRCVO01701";
- tranf_submit(oParam);
-
- // ds_main_aprvdata.setColumn(0, "pid", pid);
- // ds_main_aprvdata.setColumn(0, "acpviewdd", acpviewdd);
-
- var rePrcsstat = ds_main_aprvdata.getColumn(0, "prcsstat")
-
- if(( rePrcsstat == "승인요청" ) || ( rePrcsstat == "부서장승인" ))
- {
- btn_rplcustomer.visible = true;
- cpt_Notice.visible = true;
- }
- else
- {
- btn_rplcustomer.visible = false;
- cpt_Notice.visible = false;
- }
- }
- fCheckAuth();
- }
- function fCheckAuth()
- {
- // 권한체크
- if (!frmf_checkAuth("x"))
- {
- btn_rplcustomer.enable = true;
- btn_input.enable = true;
- }
- }
- function btn_rplcustomer_onclick(obj:Button, e:ClickEventInfo)
- {
- var rePrcsstat = ds_main_aprvdata.getColumn(0, "prcsstat");
-
- if(( rePrcsstat == "승인요청" ) || ( rePrcsstat == "부서장승인" ))
- {
- var rtn = sysf_messageBox("고객회신 내용 저장 및 고객회신 처리가 끝나게 됩니다.", "Q003");
- if(rtn == 6)
- {
- arrCompId = new Array("ipt_Notidt");
- if(frmf_isRequiredControls(arrCompId))
- {
- if ( String( ipt_Notidt.value).length > 0 && String(ipt_Notidt.value).length < 12)
- {
- sysf_messageBox("고객통보일시는 2009-05-01 15:30 처럼 날짜와 시간을 함께 ", "C001");
- ipt_Notidt.setFocus();
- }
- else
- {
- var oParam = {};
- oParam.id = "TXCVO01701";
- oParam.service = "vocapp.Voc";
- oParam.method = "reqSetVOCNotiFlag";
- oParam.inds = "req=ds_main_aprvdata";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXCVO01701";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXCVO01701") > -1)
- {
- sysf_messageBox("고객회신 처리가 ", "I002");
- var objArg = new Object();
- objArg.sndacptdd = ds_main_temp_key.getColumn(0, "sndacptdd");
- objArg.sndacptseq = ds_main_temp_key.getColumn(0, "sndacptseq");
- objArg.sndrgstseq = ds_main_temp_key.getColumn(0, "sndrgstseq");
-
- opener.frmf_openForm("SMCVO01900", null, objArg) //.navigate("SMCVO01900", "", "", "", "SMCVO01900", "/root/main/temp", "/root/main/temp");
- this.close();
- }
- }
- }
- }
- }
- else
- {
- sysf_messageBox("승인요청이나 부서장승인 상태가 아니면 고객회신 완료 처리를 ", "E001");
- }
- }
- function cf_TXCVO01701(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function btn_input_onclick(obj:Button, e:ClickEventInfo)
- {
- var reAcptSeq = ds_main_temp_key.getColumn(0, "sndacptseq")
-
- if ( utlf_isNull(reAcptSeq))
- {
- var rtn = sysf_messageBox("저장에 필요한 항목이 전달되지", "E007");
- if(rtn == 1)
- {
- this.close();
- }
- }
- else
- {
- if ( String( ipt_Notidt.value).length > 0 && String(ipt_Notidt.value).length < 12)
- {
- sysf_messageBox("고객통보일시는 2009-05-01 15:30 처럼 날짜와 시간을 함께 ", "C001");
- ipt_Notidt.setFocus();
- }
- else
- {
- var oParam = {};
- oParam.id = "TXCVO01701";
- oParam.service = "vocapp.Voc";
- oParam.method = "reqSetVOCNotiFlag";
- oParam.inds = "req=ds_main_aprvdata";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXCVO01701";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXCVO01701") > -1)
- {
- sysf_messageBox("고객회신 저장이 ", "I002");
- this.close();
- }
- }
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|