SMPMI06300_응급실출입증관리.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPMI06300" position="absolute 0 0 1280 1024" titletext="응급실 출입증관리" onload="SMPMI06300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" class="tit_1" position="absolute 0 0 170 13" style="align: middle;" text="응급실 출입증 관리" />
  8. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 10 41 456 44" style="" anchor="default" />
  9. <Static id="caption2" class="cell_1" position="absolute 10 46 90 66" style="" text="환자번호" />
  10. <Static id="caption3" class="cell_1" position="absolute 274 46 354 66" style="" text="성명" />
  11. <Edit id="input1" class="input_essential" taborder="1" position="absolute 92 46 192 65" style="" anchor="default" onkeypress="input1_onkeypress" />
  12. <Edit id="input2" taborder="-1" position="absolute 356 46 456 65" style="background:#eaeaea ;" anchor="default" />
  13. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" taborder="3" position="absolute 746 48 841 68" style="" onitemchanged="radio1_onitemchanged">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" />
  17. <Column id="datacolumn" />
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">1</Col>
  22. <Col id="datacolumn">대여</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">2</Col>
  26. <Col id="datacolumn">반납</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Radio>
  31. <Button id="button1" class="icon_search" taborder="-1" position="absolute 197 47 213 63" style="" text="" onclick="button1_onclick" />
  32. <Static id="caption5" class="tit_2" position="absolute 10 25 100 45" style="" text="인적사항" />
  33. <Static id="caption6" class="tit_2" position="absolute 476 25 566 38" style="" text="출입증정보" />
  34. <Edit id="input4" taborder="2" position="absolute 557 46 657 65" style="" anchor="default" />
  35. <Static id="caption7" class="cell_1" position="absolute 476 46 556 66" style="" text="출입증번호" />
  36. <Static id="caption8" class="cell_1" position="absolute 664 46 744 66" style="" text="구분" />
  37. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 476 41 839 44" style="" anchor="default" />
  38. <Button id="button2" class="btn4_letter2" taborder="4" position="absolute 860 44 916 66" style="background:_gradation URL(../../.._com_commonweb_images_btn4_letter2.gif) ;" text="저장" />
  39. <Button id="button3" class="btn4_letter3" taborder="-1" position="absolute 920 44 988 66" style="background:_gradation URL(../../.._com_commonweb_images_btn4_letter3.gif) ;" text="초기화" onclick="button3_onclick" />
  40. <Grid id="datagrid1" binddataset="ds_main_erpasslist" taborder="-1" position="absolute 10 105 1200 780" style="" oncelldblclick="datagrid1_oncelldblclick">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="100" />
  45. <Column size="110" />
  46. <Column size="100" />
  47. <Column size="84" />
  48. <Column size="75" />
  49. <Column size="80" />
  50. <Column size="179" />
  51. <Column size="80" />
  52. <Column size="81" />
  53. <Column size="100" />
  54. <Column size="80" />
  55. <Column size="100" />
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head" />
  59. <Row size="24" />
  60. </Rows>
  61. <Band id="head">
  62. <Cell text="환자번호" />
  63. <Cell col="1" text="성명" />
  64. <Cell col="2" text="연락처" />
  65. <Cell col="3" text="입원일자" />
  66. <Cell col="4" text="입원위치" />
  67. <Cell col="5" text="입퇴구분" />
  68. <Cell col="6" text="출입증번호" />
  69. <Cell col="7" text="대여상태" />
  70. <Cell col="8" text="대여등록자" />
  71. <Cell col="9" text="대여등록일시" />
  72. <Cell col="10" text="반납등록자" />
  73. <Cell col="11" text="반납등록일시" />
  74. </Band>
  75. <Band id="body">
  76. <Cell text="bind:pid" />
  77. <Cell col="1" text="bind:hngnm" />
  78. <Cell col="2" text="bind:tel" />
  79. <Cell col="3" text="bind:indd" />
  80. <Cell col="4" text="bind:ward" />
  81. <Cell col="5" text="bind:indschacptstat" />
  82. <Cell col="6" text="bind:passno" />
  83. <Cell col="7" text="bind:rentstat" />
  84. <Cell col="8" text="bind:fstrgstrid" />
  85. <Cell col="9" text="bind:fstrgstdt" />
  86. <Cell col="10" text="bind:returnrgstrid" />
  87. <Cell col="11" text="bind:returndt" />
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Static id="caption9" class="tit_2" position="absolute 10 83 167 96" style="" text="출입증 대여현황 리스트" />
  93. <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 10 100 1200 103" style="" anchor="default" />
  94. <Static id="caption10" position="absolute 580 24 845 44" style="font:,11,11pxptpt;color:#ff0000;" text="*반납의 경우에는 출입증번호만 입력하시면 됩니다." />
  95. <cp_checkboxList datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="checkbox1" taborder="-1" position="absolute 221 48 271 63" style="" titletext="CheckBox List" text="checkbox1" scrollbars="none" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="100">
  96. <Dataset id="innerdataset">
  97. <ColumnInfo>
  98. <Column id="codecolumn" />
  99. <Column id="datacolumn" />
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="codecolumn">true</Col>
  104. <Col id="datacolumn">전체</Col>
  105. </Row>
  106. </Rows>
  107. </Dataset>
  108. </cp_checkboxList>
  109. </Layout>
  110. </Layouts>
  111. <Objects>
  112. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  113. <ColumnInfo>
  114. <Column id="pid" type="STRING" size="256" />
  115. <Column id="passno" type="STRING" size="256" />
  116. <Column id="rentstat" type="STRING" size="256" />
  117. <Column id="allflag" type="STRING" size="256" />
  118. </ColumnInfo>
  119. <Rows>
  120. <Row>
  121. <Col id="pid"></Col>
  122. <Col id="passno"></Col>
  123. <Col id="rentstat"></Col>
  124. <Col id="allflag"></Col>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  129. <ColumnInfo>
  130. <Column id="pid" type="STRING" size="256" />
  131. <Column id="passno" type="STRING" size="256" />
  132. <Column id="rentstat" type="STRING" size="256" />
  133. <Column id="erpasslist" type="STRING" size="256" />
  134. <Column id="hngnm" type="STRING" size="256" />
  135. <Column id="allflag" type="STRING" size="256" />
  136. <Column id="result" type="STRING" size="256" />
  137. </ColumnInfo>
  138. </Dataset>
  139. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  140. <ColumnInfo>
  141. <Column id="hidden" type="STRING" size="256" />
  142. </ColumnInfo>
  143. <Rows>
  144. <Row>
  145. <Col id="hidden"></Col>
  146. </Row>
  147. </Rows>
  148. </Dataset>
  149. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  150. <ColumnInfo>
  151. <Column id="autoflag" type="STRING" size="256" />
  152. <Column id="srchcond" type="STRING" size="256" />
  153. <Column id="pid" type="STRING" size="256" />
  154. </ColumnInfo>
  155. </Dataset>
  156. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  157. <ColumnInfo>
  158. <Column id="patinfolist" type="STRING" size="256" />
  159. </ColumnInfo>
  160. <Rows>
  161. <Row>
  162. <Col id="patinfolist"></Col>
  163. </Row>
  164. </Rows>
  165. </Dataset>
  166. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  167. <ColumnInfo>
  168. <Column id="init" type="STRING" size="256" />
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="init"></Col>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. </Objects>
  177. <Bind>
  178. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_main" columnid="pid" />
  179. <BindItem id="item1" compid="input2" propid="value" datasetid="ds_main" columnid="hngnm" />
  180. <BindItem id="item2" compid="radio1" propid="value" datasetid="ds_main" columnid="rentstat" />
  181. <BindItem id="item3" compid="input4" propid="value" datasetid="ds_main" columnid="passno" />
  182. <BindItem id="item4" compid="checkbox1" propid="value" datasetid="ds_main" columnid="allflag" />
  183. </Bind>
  184. <Script type="xscript4.0"><![CDATA[function SMPMI06300_onload(obj:Form, e:LoadEventInfo) {
  185. frmf_initForm(obj);
  186. //grdf_initGrid(grd_XXX);
  187. //grdf_setGridSort(grd_XXX);
  188. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  189. // 화면초기화
  190. fInitializeSMPMI06100();
  191. }
  192. include '../../.._com_commonweb_js_common.js'
  193. include '../../.._com_basiccodeweb_js_ZBC001.js'
  194. include '../../.._com_commonweb_js_dateHelper.js'
  195. include '../../.._com_commonweb_js_utilHelper.js'
  196. include '../../.._com_commonweb_js_tfHelper.js'
  197. include '../../.._com_commonweb_js_stringHelper.js'
  198. include '../../.._pam_opatmngtweb_js_PMOCOM.js'
  199. include '../../.._com_commonweb_js_numericHelper.js'
  200. include '../.._pamcomnweb_js_PAM.js'
  201. include '.._js_SMPMI06300.js'
  202. function fInitializeSMPMI06100() {
  203. // 각 컨트롤 초기화 실시
  204. ds_main.clearData(); ds_main.addRow();
  205. ds_send.clearData(); ds_send.addRow();
  206. ds_source.clearData(); ds_source.addRow();
  207. input1.enable = true;
  208. button1.enable = true;
  209. ds_main.setColumn( 0, "allflag", "");
  210. ds_main.setColumn( 0, "rentstat", "1");
  211. //model.refresh();
  212. input1.setFocus();
  213. }
  214. // header파일 중 SMPMI06300.js 파일 시작
  215. /**
  216. * 환자번호로 환자정보 취득
  217. */
  218. function fGetPatInfo() {
  219. // 검색결과가 단일행일 경우 창닫기
  220. ds_source.setColumn( 0, "autoflag", "Y");
  221. // 환자정보검색
  222. frmf_modal("../../.._pam_commonweb_xrw_SPPMC02500", "SPPMC02500", "ds_source""-"ds_send"", "", "1", "150", "150", "", "", "", "", "", "M");
  223. vcheck_pid = ds_main_patinfo_patinfolist.getColumn(0, "pid");
  224. // 환자번호 취득결과 검증
  225. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  226. //조회내역 체크
  227. sysf_messageBox("존재하지 않는 등록번호", "E008");
  228. input1.setFocus();
  229. return;
  230. } else {
  231. // 화면표시
  232. ds_main.setColumn( 0, "hngnm", ds_main_patinfo_patinfolist.getColumn(0, "hngnm"));
  233. ds_main.setColumn( 0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
  234. //model.refresh();
  235. // 출입증 대여현황 리스트 취득
  236. fGetErPassList();
  237. }
  238. }
  239. /**
  240. * 출입증 대여현황 리스트 취득
  241. */
  242. function fGetErPassList() {
  243. // 검색조건설정
  244. ds_send.setColumn( 0, "pid", ds_main.getColumn(0, "pid"));
  245. ds_send.setColumn( 0, "allflag", ds_main.getColumn(0, "allflag"));
  246. // 로딩창 열기
  247. callLoadingWindow("응급실 출입증 대여현황 리스트 조회중");
  248. // 출입증정보취득
  249. // submit("TRPMI06101");
  250. // 로딩창 닫기
  251. removeLoadingWindow();
  252. }// header파일 중 SMPMI06300.js 파일 끝
  253. function input1_onkeydown(obj:Edit, e:KeyEventInfo) {
  254. // Enter 입력 시
  255. if (event.keyCode == "13") {
  256. // 현재 입력값 노드 반영
  257. obj.updateToDataset();
  258. var vcheck_pid = ds_main.getColumn(0, "pid");
  259. //환자번호 null체크
  260. if (vcheck_pid == null || vcheck_pid == "" || vcheck_pid == " " || vcheck_pid == "-") {
  261. sysf_messageBox("환자번호를 입력해주세요", "E008");
  262. input1.setFocus();
  263. return;
  264. } else {
  265. //환자번호 조건으로 인적정보 조회
  266. ds_source.setColumn( 0, "srchcond", "1");
  267. ds_source.setColumn( 0, "pid", vcheck_pid);
  268. }
  269. // 환자정보검색
  270. fGetPatInfo();
  271. }
  272. }
  273. function radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
  274. ds_main.getColumn(0, "rentstat");
  275. }
  276. function button1_onclick(obj:Button, e:ClickEventInfo) {
  277. // 환자정보검색
  278. fGetPatInfo();
  279. }
  280. function button3_onclick(obj:Button, e:ClickEventInfo) {
  281. fInitializeSMPMI06100();
  282. }
  283. function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  284. // 출입증 대여현황 리스트에서 출입증번호 취득 및 화면설정
  285. ds_main.setColumn( 0, "passno", ds_main_erpasslist.getColumn(datagrid1.row, "passno")));
  286. //model.refresh();
  287. }
  288. function checkbox1_onkillfocus(obj:cp_checkboxList, e:KillFocusEventInfo) {
  289. if (ds_main.getColumn(0, "allflag") == "true") {
  290. input1.enable = false;
  291. button1.enable = false;
  292. // 출입증 대여현황 리스트 취득
  293. fGetErPassList();
  294. } else {
  295. input1.enable = true;
  296. button1.enable = true;
  297. }
  298. }
  299. ]]></Script>
  300. </Form>
  301. </FDL>