SMSMP90104_건보연계샘플.xfdl 4.4 KB

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