SMMNI00700_주사실 이름검색.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNI00700" position="absolute 0 0 1195 690" titletext="주사실 이름검색" onload="form_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 10 1195 690" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption10" class="tit_2" position="absolute 0 67 157 87" anchor="default" text="이름 검색 리스트" positiontype="position"/>
  11. <Shape id="line7" class="line_1" position="absolute 0 70 1194 70" anchor="default" linetype="horizontal" positiontype="position"/>
  12. <Grid id="grd_patinfo" class="datagrid2" position="absolute 0 87 1194 677" anchor="all" autofittype="col" binddataset="ds_grid" positiontype="position">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="28"/>
  17. <Column size="110"/>
  18. <Column size="130"/>
  19. <Column size="120"/>
  20. <Column size="160"/>
  21. <Column size="160"/>
  22. <Column size="450"/>
  23. </Columns>
  24. <Rows>
  25. <Row size="22" band="head"/>
  26. <Row size="20"/>
  27. </Rows>
  28. <Band id="head">
  29. <Cell celltype="head"/>
  30. <Cell col="1" text="등록번호"/>
  31. <Cell col="2" text="성명"/>
  32. <Cell col="3" text="S/A"/>
  33. <Cell col="4" text="주민등록번호"/>
  34. <Cell col="5" text="전화번호"/>
  35. <Cell col="6" text="주소"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell celltype="head" text="expr:currow + 1"/>
  39. <Cell col="1" style="align:middle;" text="bind:pid"/>
  40. <Cell col="2" style="align:middle;" text="bind:hngnm"/>
  41. <Cell col="3" style="align:middle;" text="bind:gndrage"/>
  42. <Cell col="4" style="align:middle;" text="bind:rrgstno"/>
  43. <Cell col="5" style="align:middle;" text="bind:mpphontel"/>
  44. <Cell col="6" style="align:left middle;" text="bind:detladdr"/>
  45. </Band>
  46. </Format>
  47. </Formats>
  48. </Grid>
  49. </Layout>
  50. </Layouts>
  51. </Div>
  52. <Static id="caption6" class="tit_1" position="absolute 0 0 129 25" anchor="default" positiontype="position" text="주사실 이름검색"/>
  53. <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1194 67">
  54. <Layouts>
  55. <Layout>
  56. <Button id="button1" taborder="0" text="조회" onlbuttonup="button1_onlbuttonup" class="btn1" position="absolute 1115 10 1171 30" anchor="right" onclick="grp_sea_button1_onclick"/>
  57. <Edit id="ipt_mpphontel" taborder="1" class="input_search" position="absolute 648 10 752 30" anchor="default" onkeydown="grp_sea_ipt_mpphontel_onkeydown" tooltiptext="'-'표기를 해야됩니다." autoselect="true"/>
  58. <Static id="caption2" text="전화번호" class="search_name" position="absolute 574 10 645 30" anchor="default"/>
  59. <Edit id="ipt_brthdd" taborder="2" class="input_search" position="absolute 450 10 550 30" anchor="default" onkeydown="grp_sea_ipt_brthdd_onkeydown" autoselect="true"/>
  60. <Static id="caption3" text="생년월일" class="search_name" position="absolute 377 10 448 30" anchor="default"/>
  61. <Edit id="ipt_hngnm" taborder="3" class="input_search" position="absolute 253 10 353 30" anchor="default" onkeydown="grp_sea_ipt_hngnm_onkeydown" autoselect="true"/>
  62. <Static id="caption1" text="성명" class="search_name" position="absolute 206 10 251 30" anchor="default"/>
  63. <Edit id="ipt_pid" taborder="4" class="input_search" position="absolute 82 10 182 30" anchor="default" onkeydown="grp_sea_ipt_pid_onkeydown" autoselect="true"/>
  64. <Static id="caption9" text="등록번호" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
  65. </Layout>
  66. </Layouts>
  67. </Div>
  68. </Layout>
  69. </Layouts>
  70. <Objects>
  71. <Dataset id="ds_grid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  72. <ColumnInfo>
  73. <Column id="pid" type="STRING" size="256"/>
  74. <Column id="hngnm" type="STRING" size="256"/>
  75. <Column id="gndrage" type="STRING" size="256"/>
  76. <Column id="rrgstno" type="STRING" size="256"/>
  77. <Column id="mpphontel" type="STRING" size="256"/>
  78. <Column id="detladdr" type="STRING" size="256"/>
  79. </ColumnInfo>
  80. </Dataset>
  81. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <Column id="pid" type="STRING" size="256"/>
  84. <Column id="hngnm" type="STRING" size="256"/>
  85. <Column id="brthdd" type="STRING" size="256"/>
  86. <Column id="mpphontel" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row/>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  93. <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  94. </Objects>
  95. <Bind>
  96. <BindItem id="item1" compid="grp_sea.ipt_hngnm" propid="value" datasetid="ds_cond" columnid="hngnm"/>
  97. <BindItem id="item2" compid="grp_sea.ipt_brthdd" propid="value" datasetid="ds_cond" columnid="brthdd"/>
  98. <BindItem id="item3" compid="grp_sea.ipt_mpphontel" propid="value" datasetid="ds_cond" columnid="mpphontel"/>
  99. <BindItem id="item0" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_cond" columnid="pid"/>
  100. </Bind>
  101. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  102. * System Name : KU2.0
  103. * Job Name :
  104. * File Name : SMMNI00700_주사실 이름검색.xfdl
  105. * Creator :
  106. * Make Date : 2016-04-27
  107. *
  108. * Description :
  109. *---------------------------------------------------------------------------------------
  110. * Modify Date Modifier Modify Description
  111. *---------------------------------------------------------------------------------------
  112. *
  113. *---------------------------------------------------------------------------------------
  114. ****************************************************************************************/
  115. //=======================================================================================
  116. // Lib Include
  117. //---------------------------------------------------------------------------------------
  118. //include "emr_injroomxp::SMMNI00700.xjs";
  119. include "com_commonxp::comm_main.xjs";
  120. //=======================================================================================
  121. // Event
  122. //---------------------------------------------------------------------------------------
  123. function form_onload(obj:Form, e:LoadEventInfo){
  124. //폼 초기화 함수
  125. frmf_initForm(obj);
  126. var sPamInfo = sysf_getGlobalVariable("paminfo");
  127. dsf_setCSVToDs("ds_paminfo",sPamInfo);
  128. var pid = ds_paminfo.getColumn(0,"pid");
  129. ds_cond.setColumn(0,"pid", pid);
  130. lf_getPatInfo();
  131. }
  132. //전화번호수정 팝업
  133. function group3_button2_onclick(obj:Button, e:ClickEventInfo)
  134. {
  135. var nCurrow = group3.grd_patinfo.currentrow;
  136. if(nCurrow >= 0 )
  137. {
  138. var nPid = group3.grd_patinfo.getCellValue(nCurrow,0);
  139. if(utlf_isNull(nPid) == false)
  140. {
  141. var objTmp = new Object();
  142. objTmp.pid = nPid;
  143. objTmp.srchcond = "1";
  144. frmf_modal("SPPMO01400","SPPMO01400",{objTmp:objTmp});
  145. lf_getPatInfo();
  146. }
  147. }
  148. }
  149. //조회버튼
  150. function grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  151. {
  152. lf_getPatInfo();
  153. }
  154. //조회
  155. function lf_getPatInfo()
  156. {
  157. grp_sea.ipt_pid.updateToDataset();
  158. grp_sea.ipt_hngnm.updateToDataset();
  159. grp_sea.ipt_brthdd.updateToDataset();
  160. grp_sea.ipt_mpphontel.updateToDataset();
  161. var lgv_nPid = grp_sea.ipt_pid.value;
  162. var lgv_sHngnm = grp_sea.ipt_hngnm.value;
  163. var lgv_nBrthdd = grp_sea.ipt_brthdd.value;
  164. var lgv_nMpphontel = grp_sea.ipt_mpphontel.value;
  165. if(utlf_isNull(lgv_nMpphontel) == true && utlf_isNull(lgv_nBrthdd) == true
  166. && utlf_isNull(lgv_sHngnm) == true && utlf_isNull(lgv_nPid) == true){
  167. sysf_messageBox("등록번호 ,성명 ,생년월일,전화번호 중 한가지는 입력하셔야 합니다.","");
  168. return;
  169. }
  170. if(utlf_isNull(lgv_sHngnm) != true){
  171. if(lgv_sHngnm.length<2){
  172. sysf_messageBox("성명을 최소2자 이상", "C001");
  173. return;
  174. }
  175. }
  176. if(utlf_isNull(lgv_nBrthdd) != true){
  177. if(lgv_nBrthdd.length<6){
  178. sysf_messageBox("생년월일을 최소6자 이상", "C001");
  179. return;
  180. }
  181. }
  182. if(utlf_isNull(lgv_nMpphontel) != true){
  183. if(lgv_nMpphontel.length<6){
  184. sysf_messageBox("전화번호를 최소6자 이상", "C001");
  185. return;
  186. }
  187. }
  188. //입력 데이타셋
  189. ds_temp.copyData(ds_cond);
  190. if(utlf_isNull(lgv_nPid) == true){
  191. ds_temp.setColumn(0,"pid","0");
  192. }
  193. var objParam = new Object();
  194. objParam.id = "TRMNI00701";
  195. objParam.service = "injroomapp.InjRoomPatMngt";
  196. objParam.method = "reqGetPatInfo";
  197. objParam.inds = "refCond=ds_temp";
  198. objParam.outds = "ds_grid=patinfolist";
  199. tranf_submit(objParam);
  200. ds_grid.rowposition = -1;
  201. }
  202. //pid 0채우기
  203. function grp_sea_ipt_pid_canchange(obj:Edit, e:ChangeEventInfo)
  204. {
  205. }
  206. function grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  207. {
  208. if(e.keycode == "13"){
  209. lf_getPatInfo();
  210. }
  211. }
  212. function grp_sea_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  213. {
  214. if(e.keycode == "13"){
  215. lf_getPatInfo();
  216. }
  217. }
  218. function grp_sea_ipt_brthdd_onkeydown(obj:Edit, e:KeyEventInfo)
  219. {
  220. if(e.keycode == "13"){
  221. lf_getPatInfo();
  222. }
  223. }
  224. function grp_sea_ipt_mpphontel_onkeydown(obj:Edit, e:KeyEventInfo)
  225. {
  226. if(e.keycode == "13"){
  227. lf_getPatInfo();
  228. }
  229. }
  230. function grp_sea_ipt_pid_oneditclick(obj:Edit, e:EditClickEventInfo)
  231. {
  232. }
  233. ]]></Script>
  234. </Form>
  235. </FDL>