12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.4">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMSMP90104_건보연계샘플" classname="SMSMP90104_건보연계샘플" inheritanceid="" position="absolute 0 0 1024 768" titletext="New Form" onload="SMSMP90104_onload">
- <Layouts>
- <Layout>
- <Static id="Static00" text="건보연계샘플" position2="absolute l:23 w:151 t:22 h:27" positiontype="position2"/>
- <Static id="Static02" text="수진자주민번호" position2="absolute l:32 w:110 t:99 h:24" positiontype="position2"/>
- <Static id="Static03" text="수진자성명" position2="absolute l:32 w:110 t:131 h:16" positiontype="position2"/>
- <Static id="Static04" text="서버메시지" position2="absolute l:35 w:88 t:268 h:22" positiontype="position2"/>
- <Static id="Static05" text="서버메세지코드" position2="absolute l:35 w:88 t:233 h:22" positiontype="position2"/>
- <Edit id="et_sujinjaJuminNo" taborder="2" position2="absolute l:136 w:147 t:100 h:23" positiontype="position2" password="true"/>
- <Edit id="et_sujinjaJuminNm" taborder="3" position2="absolute l:136 w:147 t:128 h:23" positiontype="position2"/>
- <Edit id="et_messageCode" taborder="4" position2="absolute l:136 w:147 t:234 h:23" positiontype="position2"/>
- <Edit id="et_message" taborder="5" position2="absolute l:136 w:329 t:269 h:23" positiontype="position2"/>
- <Button id="btn_qualify" taborder="7" text="자격조회" position2="absolute l:305 w:123 t:232 h:28" positiontype="position2" onclick="btn_qualify_onclick"/>
- <Static id="Static01" text="보험증번호" position2="absolute l:35 w:88 t:203 h:22" positiontype="position2"/>
- <Edit id="et_asylmSym" taborder="8" position2="absolute l:136 w:147 t:203 h:23" positiontype="position2"/>
- </Layout>
- </Layouts>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- function SMSMP90104_onload(obj:Form, e:LoadEventInfo)
- {
- et_sujinjaJuminNo.value = "";
- et_sujinjaJuminNm.value = "";
- zehf_Initialize();
- }
- function getCurrentDate()
- {
- var sDate = new Date();
- rtnDate = sDate.getFullYear();
- rtnDate = rtnDate.toString() + (( sDate.getMonth() + 1 > 9 ) ? sDate.getMonth() + 1 : "0" + (sDate.getMonth() + 1));
- rtnDate = rtnDate.toString() + (( sDate.getDate() > 9 ) ? sDate.getDate() : "0" + sDate.getDate()) ;
- return rtnDate;
- }
- function getCurrentTime()
- {
- var sDate = new Date();
- rtnTime = (( sDate.getHours() > 9 ) ? sDate.getHours() : "0" + sDate.getHours());
- rtnTime = rtnTime.toString() + (( sDate.getMinutes() > 9 ) ? sDate.getMinutes() : "0" + sDate.getMinutes());
- rtnTime = rtnTime.toString() + (( sDate.getSeconds() > 9 ) ? sDate.getSeconds() : "0" + sDate.getSeconds());
-
- return rtnTime;
- }
- function btn_qualify_onclick(obj:Button, e:ClickEventInfo)
- {
- if (utlf_isNull(et_sujinjaJuminNo.value))
- {
- sysf_messageBox("수진자 주민번호를 입력하세요", "E999");
- return;
- }
-
- if (utlf_isNull(et_sujinjaJuminNm.value))
- {
- sysf_messageBox("수진자 이름를 입력하세요", "E999");
- return;
- }
-
- zehf_AddParam("sujinjaJuminNo",et_sujinjaJuminNo.value); // 수진자 주민번호
- zehf_AddParam("sujinjaJuminNm",et_sujinjaJuminNm.value); // 수진자 이름
- zehf_AddParam("ykiho","31100767"); // 요양기관기호
- zehf_AddParam("msgType","M1"); // 메세지 타입
-
- zehf_AddParam("operatorJuminNo", sysf_getUserInfo("userid")); // 접수자 고유정보
- zehf_AddParam("clientInfo",sysf_getUserInfo("userid")); // 클라이언트 고유정보
-
- zehf_AddParam("loginId" , "test005"); // 공단포탈 로그인아이디
- zehf_AddParam("password" , "test005"); // 공단포탈 로그인패스워드
- zehf_AddParam("date" , getCurrentDate() + "-" +getCurrentTime()); // 일자
- zehf_AddParam("pgmType" , "2"); // 프로그램 타입
-
-
- zehf_Qualify();
-
- et_messageCode.value = zehf_GetValue("0", "messageCode"); // 서버메세지코드
- et_message.value = zehf_GetValue("0", "message"); // 서버 메세지
- et_asylmSym.value = zehf_GetValue("0", "asylmSym"); // 보험증 번호
-
- // 메모리 Clear
- // 메모리를 Clear하지 않으면, 이전의 데이터가 다시 처리될 수 있으므로
- // 송수신 완료후에는 반드시 이 함수를 실행하여 메모리를 Clear해야 한다.
- zehf_Close();
- }
- ]]></Script>
- </Form>
- </FDL>
|