SPMMO18300_원무키선택.xfdl 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO18300" position="absolute 0 0 240 130" onload="SMMMO04500_onload" titletext="원무키선택" oninit="SMMMO04500_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 98 100 154 122" id="button1" class="btn4" text="확인" onclick="button1_onclick"/>
  8. <Button position="absolute 156 100 212 122" id="button2" class="btn4" text="취소" onclick="button2_onclick"/>
  9. <Static text="원무 접수정보 선택" position="absolute 0 2 220 15" id="caption2" class="tit_2"/>
  10. <Grid position="absolute 0 20 220 95" id="grd_patinfo" binddataset="ds_grd_patinfo" oncellclick="grd_patinfo_oncellclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="61"/>
  15. <Column size="79"/>
  16. <Column size="60"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell text="입원구분"/>
  24. <Cell col="1" text="입원일"/>
  25. <Cell col="2" text="입원시간"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell displaytype="combo" edittype="combo" text="bind:ioflag" combodataset="ds_grd_patinfo_ioflag" combocodecol="value" combodatacol="label"/>
  29. <Cell col="1" text="bind:orddd" mask="####-##-##"/>
  30. <Cell col="2" text="bind:intm" mask="##:##"/>
  31. </Band>
  32. </Format>
  33. </Formats>
  34. </Grid>
  35. </Layout>
  36. </Layouts>
  37. <Objects>
  38. <Dataset id="ds_grd_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  39. <ColumnInfo>
  40. <Column id="ioflag" type="STRING"/>
  41. <Column id="orddd" type="STRING"/>
  42. <Column id="intm" type="STRING"/>
  43. </ColumnInfo>
  44. </Dataset>
  45. <Dataset id="ds_grd_patinfo_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  46. <ColumnInfo>
  47. <Column id="label" type="STRING" size="256"/>
  48. <Column id="value" type="STRING" size="256"/>
  49. </ColumnInfo>
  50. <Rows>
  51. <Row>
  52. <Col id="label">외래</Col>
  53. <Col id="value">O</Col>
  54. </Row>
  55. <Row>
  56. <Col id="label">입원</Col>
  57. <Col id="value">I</Col>
  58. </Row>
  59. <Row>
  60. <Col id="label">DSC</Col>
  61. <Col id="value">D</Col>
  62. </Row>
  63. <Row>
  64. <Col id="label">응급</Col>
  65. <Col id="value">E</Col>
  66. </Row>
  67. </Rows>
  68. </Dataset>
  69. </Objects>
  70. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  71. * System Name :
  72. * Job Name :
  73. * Creator :
  74. * Make Date : 2014-08-29
  75. * Description :
  76. *---------------------------------------------------------------------------------------
  77. * Modify Date Modifier Modify Description
  78. *---------------------------------------------------------------------------------------
  79. * 2014-08-29 Live Converter TF->XP
  80. *
  81. *---------------------------------------------------------------------------------------
  82. ****************************************************************************************/
  83. include "com_commonxp::comm_main.xjs";
  84. function SMMMO04500_oninit(obj:Form, e:InitEventInfo)
  85. {
  86. frmf_initForm(obj);
  87. }
  88. function SMMMO04500_onload(obj:Form, e:LoadEventInfo)
  89. {
  90. opener.frmf_setParameter("SPMMO18300_cretno" , "0");
  91. dsf_copyDs(ds_grd_patinfo,arg_ds_pamkeyinfo,"replace");
  92. }
  93. function button1_onclick(obj:Button, e:ClickEventInfo)
  94. {
  95. var currow = ds_grd_patinfo.rowposition;
  96. var cretno = ds_grd_patinfo.getColumn(currow, "cretno");
  97. opener.frmf_setParameter("SPMMO18300_cretno" , cretno);
  98. close();
  99. }
  100. function button2_onclick(obj:Button, e:ClickEventInfo)
  101. {
  102. opener.frmf_setParameter("SPMMO18300_cretno" , "0");
  103. close();
  104. }
  105. function grd_patinfo_oncellclick(obj:Grid, e:GridClickEventInfo)
  106. {
  107. var currow = ds_grd_patinfo.rowposition;
  108. var cretno = ds_grd_patinfo.getColumn(currow, "cretno");
  109. opener.frmf_setParameter("SPMMO18300_cretno" , cretno);
  110. close();
  111. }
  112. ]]></Script>
  113. </Form>
  114. </FDL>