SPRNB00100_식수인사조회.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRNB00100" inheritanceid="" position="absolute 0 0 500 350" titletext="식수인사조회" onload="SPRNB00100_onload" oninit="SPRNB00100_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="식수인사조회" class="tit_1" position="absolute 0 0 120 25"/>
  8. <Div id="grp_search" anchor="left top right" taborder="1" class="div_SA2" position="absolute 0 25 500 65">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption4" text="이름 : " class="search_name" position="absolute 10 12 64 29" anchor="default"/>
  12. <Button id="btn_search" taborder="4" text="조회" class="btn1" position="absolute 423 9 479 31" anchor="top right" style="align:center;" onclick="grp_search_btn_search_onclick"/>
  13. <Shape id="line7" linetype="vertical" class="line_4" position="absolute 408 7 411 34" anchor="top right"/>
  14. <Edit id="ipt_usernm_search" taborder="5" maxlength="8" autoselect="true" class="input_essential" position="absolute 64 10 220 30" anchor="default" onkeydown="grp_search_ipt_usernm_search_onkeydown" imemode="hangul"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Grid id="grd_temp" taborder="2" binddataset="ds_fdmastername" useinputpanel="false" position="absolute 0 70 500 300" autofittype="col" oncelldblclick="grd_temp_oncelldblclick">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="100"/>
  23. <Column size="100"/>
  24. <Column size="200"/>
  25. <Column size="100"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell text="ID"/>
  33. <Cell col="1" text="성명"/>
  34. <Cell col="2" text="소속명"/>
  35. <Cell col="3" text="임용일"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell text="bind:id"/>
  39. <Cell col="1" text="bind:name"/>
  40. <Cell col="2" text="bind:departname"/>
  41. <Cell col="3" displaytype="date" text="bind:hiredate" calendardisplaynulltype="none"/>
  42. </Band>
  43. </Format>
  44. </Formats>
  45. </Grid>
  46. <Button id="btn_confirm" taborder="3" text="확인" onclick="btn_confirm_onclick" class="btn4" position="absolute 192 315 248 337"/>
  47. <Button id="btn_cancel" taborder="4" text="취소" onclick="btn_cancel_onclick" class="btn4" position="absolute 252 315 308 337"/>
  48. </Layout>
  49. </Layouts>
  50. <Bind>
  51. <BindItem id="item0" compid="grp_search.ipt_usernm_search" propid="value" datasetid="ds_send" columnid="usernm"/>
  52. </Bind>
  53. <Objects>
  54. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  55. <ColumnInfo>
  56. <Column id="usernm" type="STRING" size="256"/>
  57. <Column id="instcd" type="STRING" size="256"/>
  58. </ColumnInfo>
  59. <Rows>
  60. <Row/>
  61. </Rows>
  62. </Dataset>
  63. <Dataset id="ds_fdmastername" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="id" type="STRING" size="256"/>
  66. <Column id="name" type="STRING" size="256"/>
  67. <Column id="departname" type="STRING" size="256"/>
  68. <Column id="hiredate" type="STRING" size="256"/>
  69. </ColumnInfo>
  70. </Dataset>
  71. </Objects>
  72. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  73. * System Name : 경대 의료정보시스템
  74. * Job Name : mis_sicksuxp -> SPRNB00100
  75. * Creator : yjh
  76. * Make Date : 2018-04-09
  77. * Description :
  78. *---------------------------------------------------------------------------------------
  79. * Modify Date Modifier Modify Description
  80. *---------------------------------------------------------------------------------------
  81. * 2018-04-09 yjh TF->XP
  82. *
  83. *---------------------------------------------------------------------------------------
  84. ****************************************************************************************/
  85. //=======================================================================================
  86. // Lib Include
  87. //---------------------------------------------------------------------------------------
  88. include "com_commonxp::comm_main.xjs";
  89. //=======================================================================================
  90. // Global Form Variable
  91. //---------------------------------------------------------------------------------------
  92. //=======================================================================================
  93. // Function
  94. //---------------------------------------------------------------------------------------
  95. /****************************************************************************************
  96. * Argument : N/A
  97. * Description :
  98. ****************************************************************************************/
  99. //=======================================================================================
  100. // Event
  101. //---------------------------------------------------------------------------------------
  102. /****************************************************************************************
  103. * Components : Form
  104. * Components ID : SPRNB00100
  105. * Event : oninit
  106. * Argument : 01.obj : Object Event has occurred
  107. * : 02.e : Event Object
  108. * Description : 화면 처음 초기화시
  109. ****************************************************************************************/
  110. function SPRNB00100_oninit(obj:Form, e:InitEventInfo)
  111. {
  112. frmf_initForm(obj); //폼 초기화
  113. }
  114. /****************************************************************************************
  115. * Components : Form
  116. * Components ID : SPRNB00100
  117. * Event : onload
  118. * Argument : 01.obj : Object Event has occurred
  119. * : 02.e : Event Object
  120. * Description : 화면 로딩 완료시
  121. ****************************************************************************************/
  122. function SPRNB00100_onload(obj:Form, e:LoadEventInfo)
  123. {
  124. var sInstcd = sysf_getUserInfo("dutplceinstcd");
  125. ds_send.setColumn(0, "instcd", sInstcd);
  126. grp_search.ipt_usernm_search.value = opener.frmf_getParameter("pNM");
  127. grp_search.btn_search.click();
  128. }
  129. /****************************************************************************************
  130. * Components : Edit
  131. * Components ID : ipt_usernm_search
  132. * Event : onkeydown
  133. * Argument : 01.obj : Object Event has occurred
  134. * : 02.e : Event Object
  135. * Description : 조회버튼 클릭시
  136. ****************************************************************************************/
  137. function grp_search_ipt_usernm_search_onkeydown(obj:Edit, e:KeyEventInfo)
  138. {
  139. if( e.keycode == 13 ){
  140. obj.updateToDataset();
  141. grp_search.btn_search.click();
  142. }
  143. }
  144. /****************************************************************************************
  145. * Components : Button
  146. * Components ID : btn_search
  147. * Event : onclick
  148. * Argument : 01.obj : Object Event has occurred
  149. * : 02.e : Event Object
  150. * Description : 조회버튼 클릭시
  151. ****************************************************************************************/
  152. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  153. {
  154. if( utlf_isNull(ds_send.getColumn(0, "usernm")) ){
  155. sysf_messageBox("이름을", "C001");
  156. return;
  157. }
  158. var oParam = {};
  159. oParam.id = "TRRNB00004";
  160. oParam.service = "sicksuapp.SicksuMngt";
  161. oParam.method = "reqGetFmasterName";
  162. oParam.inds = "req=ds_send";
  163. oParam.outds = "ds_fdmastername=fdmastername";
  164. oParam.async = false;
  165. //oParam.callback = "cf_TRRNB00004";
  166. tranf_submit(oParam);
  167. if( ds_fdmastername.rowcount == 1 ){
  168. opener.frmf_setParameter("rtnID", utlf_transNullToEmpty(ds_fdmastername.getColumn(0, "id")));
  169. opener.frmf_setParameter("rtnNM", utlf_transNullToEmpty(ds_fdmastername.getColumn(0, "name")));
  170. this.close();
  171. }
  172. }
  173. /****************************************************************************************
  174. * Components : Grid
  175. * Components ID : grd_temp
  176. * Event : oncelldblclick
  177. * Argument : 01.obj : Object Event has occurred
  178. * : 02.e : Event Object
  179. * Description : 그리드 셀 더블클릭시
  180. ****************************************************************************************/
  181. function grd_temp_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  182. {
  183. opener.frmf_setParameter("rtnID", utlf_transNullToEmpty(ds_fdmastername.getColumn(ds_fdmastername.rowposition, "id")));
  184. opener.frmf_setParameter("rtnNM", utlf_transNullToEmpty(ds_fdmastername.getColumn(ds_fdmastername.rowposition, "name")));
  185. this.close();
  186. }
  187. /****************************************************************************************
  188. * Components : Button
  189. * Components ID : btn_cancel
  190. * Event : onclick
  191. * Argument : 01.obj : Object Event has occurred
  192. * : 02.e : Event Object
  193. * Description : 취소버튼 클릭시
  194. ****************************************************************************************/
  195. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. opener.frmf_setParameter("rtnID", "");
  198. opener.frmf_setParameter("rtnNM", "");
  199. this.close();
  200. }
  201. /****************************************************************************************
  202. * Components : Button
  203. * Components ID : btn_confirm
  204. * Event : onclick
  205. * Argument : 01.obj : Object Event has occurred
  206. * : 02.e : Event Object
  207. * Description : 확인버튼 클릭시
  208. ****************************************************************************************/
  209. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  210. {
  211. opener.frmf_setParameter("rtnID", utlf_transNullToEmpty(ds_fdmastername.getColumn(ds_fdmastername.rowposition, "id")));
  212. opener.frmf_setParameter("rtnNM", utlf_transNullToEmpty(ds_fdmastername.getColumn(ds_fdmastername.rowposition, "name")));
  213. this.close();
  214. }
  215. ]]></Script>
  216. </Form>
  217. </FDL>