SMARC00101_당일접수환자조회.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMARC00101" position="absolute 0 0 1201 784" titletext="당일접수환자조회" oninit="SMARC00101_oninit" onload="SMARC00101_onload" ontimer="SMARC00101_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" anchor="left top right" taborder="0" class="div_SA" position="absolute 0 24 1195 104">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1097 9 1103 73" anchor="top right"/>
  11. <Static id="caption9" text="조회일자 :" class="search_name" position="absolute 10 8 104 25"/>
  12. <Static id="caption11" text="진료과 :" class="search_name" position="absolute 358 7 452 24"/>
  13. <Static id="caption5" text="~" class="search_no_b" position="absolute 211 8 223 25"/>
  14. <Static id="caption4" text="진료의사 :" class="search_name" position="absolute 593 7 687 24"/>
  15. <Static id="caption1" text="환자명 :" class="search_name" position="absolute 358 33 452 50"/>
  16. <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 10 33 104 50"/>
  17. <Button id="btn_pat" taborder="1" class="icon_search" position="absolute 208 32 224 48" onclick="group1_btn_pat_onclick"/>
  18. <Calendar id="ipt_fromdd" taborder="2" autoselect="true" autoskip="true" class="input_search" position="absolute 100 6 203 25"/>
  19. <Calendar id="ipt_todd" taborder="3" autoselect="true" class="input_search" position="absolute 228 6 331 25"/>
  20. <Combo id="cmb_orddeptcd" taborder="4" innerdataset="@ds_init_dept_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 438 6 538 25" onitemchanged="group1_cmb_orddeptcd_onitemchanged"/>
  21. <Edit id="ipt_pid" taborder="5" autoselect="true" position="absolute 100 31 203 50"/>
  22. <Edit id="ipt_hngnm" taborder="6" autoselect="true" position="absolute 438 31 538 50"/>
  23. <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 1121 31 1177 53" anchor="top right" onclick="group1_btn_search_onclick"/>
  24. <Static id="caption6" text="의뢰등록여부 :" class="search_name" position="absolute 593 32 705 49"/>
  25. <CheckBox id="checkbox2" taborder="8" text="접수변경/취소" truevalue="Y" position="absolute 845 29 960 49" onclick="group1_checkbox2_onclick"/>
  26. <Combo id="cmb_reqrgstyn" taborder="9" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 700 31 800 50">
  27. <Dataset id="innerdataset">
  28. <ColumnInfo>
  29. <Column id="codecolumn"/>
  30. <Column id="datacolumn"/>
  31. </ColumnInfo>
  32. <Rows>
  33. <Row>
  34. <Col id="codecolumn">A</Col>
  35. <Col id="datacolumn">- 전 체 -</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">Y</Col>
  39. <Col id="datacolumn">등록</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">N</Col>
  43. <Col id="datacolumn">미등록</Col>
  44. </Row>
  45. </Rows>
  46. </Dataset>
  47. </Combo>
  48. <Static id="caption7" text="의뢰서여부 :" class="search_name" position="absolute 845 7 957 24"/>
  49. <Combo id="cmb_rqstflag" taborder="10" innerdataset="@ds_init_rqstflag_P0329" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 950 6 1050 25"/>
  50. <Combo id="cmb_orddrid" taborder="11" innerdataset="@ds_init_doctlist_medispcl" codecolumn="doctid" datacolumn="doctnm" class="combo_search" position="absolute 700 6 800 25"/>
  51. <Static id="caption10" text="초재진구분 :" class="search_name" position="absolute 10 58 122 75"/>
  52. <Static id="caption12" text="Consult의뢰 :" class="search_name" position="absolute 359 57 534 74"/>
  53. <Combo id="cmb_fsexamflag" taborder="12" innerdataset="@ds_init_fsexamflag_P0021" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 115 56 215 75"/>
  54. <Combo id="cmb_rsrvflag" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 474 56 574 75">
  55. <Dataset id="innerdataset">
  56. <ColumnInfo>
  57. <Column id="codecolumn"/>
  58. <Column id="datacolumn"/>
  59. </ColumnInfo>
  60. <Rows>
  61. <Row>
  62. <Col id="codecolumn"/>
  63. <Col id="datacolumn">- 전 체 -</Col>
  64. </Row>
  65. <Row>
  66. <Col id="codecolumn">C</Col>
  67. <Col id="datacolumn">Y</Col>
  68. </Row>
  69. <Row>
  70. <Col id="codecolumn">N</Col>
  71. <Col id="datacolumn">N</Col>
  72. </Row>
  73. </Rows>
  74. </Dataset>
  75. </Combo>
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. <Grid id="pat_list" taborder="1" binddataset="ds_main_list_pat_list" useinputpanel="false" position="absolute 0 146 1195 747" anchor="all" autoenter="select" cellsizingtype="col" oncelldblclick="pat_list_oncelldblclick">
  80. <Formats>
  81. <Format id="default">
  82. <Columns>
  83. <Column size="29" band="left"/>
  84. <Column size="88"/>
  85. <Column size="86"/>
  86. <Column size="90"/>
  87. <Column size="60"/>
  88. <Column size="118"/>
  89. <Column size="65"/>
  90. <Column size="65"/>
  91. <Column size="110"/>
  92. <Column size="110"/>
  93. <Column size="80"/>
  94. <Column size="80"/>
  95. <Column size="100"/>
  96. <Column size="80"/>
  97. <Column size="100"/>
  98. <Column size="122"/>
  99. <Column size="100"/>
  100. <Column size="122"/>
  101. <Column size="0"/>
  102. <Column size="0"/>
  103. <Column size="0"/>
  104. <Column size="0"/>
  105. <Column size="0"/>
  106. <Column size="0"/>
  107. <Column size="0"/>
  108. <Column size="0"/>
  109. <Column size="0"/>
  110. <Column size="0"/>
  111. <Column size="0"/>
  112. <Column size="0"/>
  113. <Column size="0"/>
  114. <Column size="0"/>
  115. <Column size="0"/>
  116. <Column size="0"/>
  117. <Column size="0"/>
  118. </Columns>
  119. <Rows>
  120. <Row size="24" band="head"/>
  121. <Row size="24"/>
  122. </Rows>
  123. <Band id="head">
  124. <Cell/>
  125. <Cell col="1" text="의뢰등록여부"/>
  126. <Cell col="2" text="진료일자"/>
  127. <Cell col="3" text="등록번호"/>
  128. <Cell col="4" text="성별"/>
  129. <Cell col="5" text="환자명"/>
  130. <Cell col="6" colspan="2" text="주민번호" taborder="undefined"/>
  131. <Cell col="8" text="진료과"/>
  132. <Cell col="9" text="진료의사"/>
  133. <Cell col="10" text="접수상태"/>
  134. <Cell col="11" text="의뢰서여부"/>
  135. <Cell col="12" text="초재진여부"/>
  136. <Cell col="13" text="Consult의뢰"/>
  137. <Cell col="14" text="최초등록자"/>
  138. <Cell col="15" text="최초등록일"/>
  139. <Cell col="16" text="최종수정자"/>
  140. <Cell col="17" text="최종수정일"/>
  141. <Cell col="18" text="caption1"/>
  142. <Cell col="19" text="caption2"/>
  143. <Cell col="20" text="caption3"/>
  144. <Cell col="21" text="caption4"/>
  145. <Cell col="22" text="caption5"/>
  146. <Cell col="23" text="caption6"/>
  147. <Cell col="24" text="caption7"/>
  148. <Cell col="25" text="caption8"/>
  149. <Cell col="26" text="caption9"/>
  150. <Cell col="27" text="caption10"/>
  151. <Cell col="28" text="caption11"/>
  152. <Cell col="29" text="caption12"/>
  153. <Cell col="30" text="caption13"/>
  154. <Cell col="31" text="caption14"/>
  155. <Cell col="32" text="caption15"/>
  156. <Cell col="33" text="caption16"/>
  157. <Cell col="34" text="caption17"/>
  158. </Band>
  159. <Band id="body">
  160. <Cell celltype="head" expr="currow+1"/>
  161. <Cell col="1" text="bind:reqrgstyn"/>
  162. <Cell col="2" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
  163. <Cell col="3" text="bind:pid"/>
  164. <Cell col="4" displaytype="combo" style="align:center middle;" text="bind:sex" combodataset="ds_cmb_sex" combocodecol="value" combodatacol="label" enable="false"/>
  165. <Cell col="5" text="bind:hngnm"/>
  166. <Cell col="6" text="bind:rrgstno1"/>
  167. <Cell col="7" text="bind:rrgstno2" mask="#aaaaaa" maskchar="*"/>
  168. <Cell col="8" text="bind:depthngnm"/>
  169. <Cell col="9" text="bind:orddrnm"/>
  170. <Cell col="10" text="bind:histstatnm"/>
  171. <Cell col="11" text="bind:rqstflagnm"/>
  172. <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:fsexamflag" combodataset="ds_init_fsexamflag_P0021" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  173. <Cell col="13" displaytype="combo" style="align:center middle;" text="bind:rsrvflag" combodataset="ds_cmb_rsrvflag" combocodecol="value" combodatacol="label" enable="false"/>
  174. <Cell col="14" text="bind:fstrgstrnm"/>
  175. <Cell col="15" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss" calendardisplaynulltype="nulltext"/>
  176. <Cell col="16" text="bind:lastupdtrnm"/>
  177. <Cell col="17" displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm:ss" calendardisplaynulltype="nulltext"/>
  178. <Cell col="18" text="bind:cretno"/>
  179. <Cell col="19" text="bind:acptseqno"/>
  180. <Cell col="20" text="bind:engnm"/>
  181. <Cell col="21" text="bind:brthdd"/>
  182. <Cell col="22" text="bind:hometel"/>
  183. <Cell col="23" text="bind:mpphontel"/>
  184. <Cell col="24" text="bind:zipcd1"/>
  185. <Cell col="25" text="bind:zipcd2"/>
  186. <Cell col="26" text="bind:detladdr"/>
  187. <Cell col="27" text="bind:forgeryn"/>
  188. <Cell col="28" text="bind:nati"/>
  189. <Cell col="29" text="bind:psptno"/>
  190. <Cell col="30" text="bind:ordtm"/>
  191. <Cell col="31" text="bind:religncd"/>
  192. <Cell col="32" text="bind:orddrid"/>
  193. <Cell col="33" text="bind:orddeptcd"/>
  194. <Cell col="34" text="bind:zipcdseq"/>
  195. </Band>
  196. </Format>
  197. </Formats>
  198. </Grid>
  199. <Shape id="line1" class="line_10" position="absolute 0 141 1195 147" anchor="left top right"/>
  200. <Button id="btn_excel" taborder="2" text="엑셀" class="btn7" position="absolute 1137 119 1195 141" anchor="top right" onclick="btn_excel_onclick"/>
  201. <Static id="caption8" text="당일접수환자 리스트" class="tit_2" position="absolute 0 125 187 141"/>
  202. <Static id="caption2" text="당일접수환자조회" class="tit_1" position="absolute 0 0 163 24"/>
  203. <Button id="btn_allclear" taborder="3" text="초기화" class="btn4" position="absolute 1126 752 1194 774" anchor="right bottom" onclick="btn_allclear_onclick"/>
  204. </Layout>
  205. </Layouts>
  206. <Objects>
  207. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  208. <ColumnInfo>
  209. <Column id="f_date" type="STRING" size="256"/>
  210. <Column id="t_date" type="STRING" size="256"/>
  211. <Column id="orddeptcd" type="STRING" size="256"/>
  212. <Column id="orddrid" type="STRING" size="256"/>
  213. <Column id="hngnm" type="STRING" size="256"/>
  214. <Column id="pid" type="STRING" size="256"/>
  215. <Column id="histstat" type="STRING" size="256"/>
  216. <Column id="reqrgstyn" type="STRING" size="256"/>
  217. <Column id="rqstflag" type="STRING" size="256"/>
  218. <Column id="fsexamflag" type="STRING" size="256"/>
  219. <Column id="rsrvflag" type="STRING" size="256"/>
  220. </ColumnInfo>
  221. <Rows>
  222. <Row>
  223. <Col id="f_date"/>
  224. <Col id="t_date"/>
  225. <Col id="orddeptcd"/>
  226. <Col id="orddrid"/>
  227. <Col id="hngnm"/>
  228. <Col id="pid"/>
  229. <Col id="histstat"/>
  230. <Col id="reqrgstyn"/>
  231. <Col id="rqstflag"/>
  232. <Col id="fsexamflag"/>
  233. <Col id="rsrvflag"/>
  234. </Row>
  235. </Rows>
  236. </Dataset>
  237. <Dataset id="ds_init_fsexamflag_P0021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  238. <Dataset id="ds_init_dept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  239. <Dataset id="ds_init_doctlist_medispcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  240. <Dataset id="ds_init_rqstflag_P0329" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  241. <Dataset id="ds_cmb_sex" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <Column id="value" type="STRING" size="256"/>
  244. <Column id="label" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. <Rows>
  247. <Row>
  248. <Col id="value">M</Col>
  249. <Col id="label">남</Col>
  250. </Row>
  251. <Row>
  252. <Col id="value">F</Col>
  253. <Col id="label">여</Col>
  254. </Row>
  255. </Rows>
  256. </Dataset>
  257. <Dataset id="ds_cmb_rsrvflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  258. <ColumnInfo>
  259. <Column id="label" type="STRING" size="256"/>
  260. <Column id="value" type="STRING" size="256"/>
  261. </ColumnInfo>
  262. <Rows>
  263. <Row>
  264. <Col id="label">Y</Col>
  265. <Col id="value">C</Col>
  266. </Row>
  267. <Row>
  268. <Col id="label">N</Col>
  269. <Col id="value">N</Col>
  270. </Row>
  271. </Rows>
  272. </Dataset>
  273. <Dataset id="ds_main_list_pat_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  274. <ColumnInfo>
  275. <Column id="reqrgstyn" type="STRING" size="256" sumtext="등록상태"/>
  276. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  277. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  278. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  279. <Column id="hngnm" type="STRING" size="256" sumtext="한글성명"/>
  280. <Column id="engnm" type="STRING" size="256" sumtext="영문성명"/>
  281. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  282. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  283. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  284. <Column id="hometel" type="STRING" size="256" sumtext="연락처"/>
  285. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대폰"/>
  286. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
  287. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
  288. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  289. <Column id="forignyn" type="STRING" size="256" sumtext="외국인여부"/>
  290. <Column id="nati" type="STRING" size="256" sumtext="국가"/>
  291. <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
  292. <Column id="religncd" type="STRING" size="256" sumtext="종교"/>
  293. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  294. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사"/>
  295. <Column id="ordtm" type="STRING" size="256" sumtext="진료시간"/>
  296. <Column id="zipcdseq" type="INT" size="256" sumtext="우편번호순서"/>
  297. <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
  298. <Column id="acptseqno" type="INT" size="256" sumtext="등록일련번호"/>
  299. <Column id="depthngnm" type="STRING" size="256" sumtext="진료과"/>
  300. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사"/>
  301. <Column id="histstat" type="STRING" size="256" sumtext="접수상태"/>
  302. <Column id="histstatnm" type="STRING" size="256" sumtext="접수상태명"/>
  303. <Column id="rqstflagnm" type="STRING" size="256" sumtext="의뢰서여부"/>
  304. <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
  305. <Column id="rsrvflag" type="STRING" size="256" sumtext="consult의뢰"/>
  306. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="최초등록자"/>
  307. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최최등록일"/>
  308. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최초수령자"/>
  309. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최초수정일"/>
  310. </ColumnInfo>
  311. </Dataset>
  312. <Dataset id="ds_send_doctor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  313. <ColumnInfo>
  314. <Column id="orddd" type="STRING" size="256"/>
  315. <Column id="orddeptcd" type="STRING" size="256"/>
  316. </ColumnInfo>
  317. </Dataset>
  318. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  319. </Objects>
  320. <Bind>
  321. <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send_search" columnid="f_date"/>
  322. <BindItem id="item1" compid="group1.cmb_fsexamflag" propid="value" datasetid="ds_send_search" columnid="fsexamflag"/>
  323. <BindItem id="item2" compid="group1.ipt_pid" propid="value" datasetid="ds_send_search" columnid="pid"/>
  324. <BindItem id="item3" compid="group1.ipt_todd" propid="value" datasetid="ds_send_search" columnid="t_date"/>
  325. <BindItem id="item4" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_send_search" columnid="orddeptcd"/>
  326. <BindItem id="item5" compid="group1.ipt_hngnm" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
  327. <BindItem id="item6" compid="group1.cmb_rsrvflag" propid="value" datasetid="ds_send_search" columnid="rsrvflag"/>
  328. <BindItem id="item7" compid="group1.cmb_reqrgstyn" propid="value" datasetid="ds_send_search" columnid="reqrgstyn"/>
  329. <BindItem id="item8" compid="group1.cmb_orddrid" propid="value" datasetid="ds_send_search" columnid="orddrid"/>
  330. <BindItem id="item9" compid="group1.checkbox2" propid="value" datasetid="ds_send_search" columnid="histstat"/>
  331. <BindItem id="item10" compid="group1.cmb_rqstflag" propid="value" datasetid="ds_send_search" columnid="rqstflag"/>
  332. </Bind>
  333. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  334. * System Name :
  335. * Job Name :
  336. * Creator :
  337. * Make Date : 2015-11-13
  338. * Description :
  339. *---------------------------------------------------------------------------------------
  340. * Modify Date Modifier Modify Description
  341. *---------------------------------------------------------------------------------------
  342. * 2015-11-13 Live Converter TF->XP
  343. *
  344. *---------------------------------------------------------------------------------------
  345. ****************************************************************************************/
  346. include "com_commonxp::comm_main.xjs";
  347. var arErrorCode = new HashArray();
  348. function SMARC00101_oninit(obj:Form, e:InitEventInfo)
  349. {
  350. frmf_initForm(obj);
  351. }
  352. function SMARC00101_onload(obj:Form, e:LoadEventInfo)
  353. {
  354. grdf_initGrid(pat_list);
  355. fInit();
  356. }
  357. function fInit()
  358. {
  359. // 오늘 날짜로 세팅
  360. var CurrentDate = utlf_getCurrentDate();
  361. ds_send_search.setColumn(0, "f_date", CurrentDate);
  362. ds_send_search.setColumn(0, "t_date", CurrentDate);
  363. // 공통코드 목록 가져오기
  364. var arrParam = [{dsNm: "ds_init_rqstflag_P0329", cdGrpId: "P0329" }
  365. ,{dsNm: "ds_init_fsexamflag_P0021", cdGrpId: "P0021"}];
  366. appf_getCodeList(arrParam, true);
  367. // 진료과
  368. var instcd = sysf_getUserInfo("dutplceinstcd");
  369. var standard_yn = "rcptuseyn";
  370. var ord_deptflag = 'D';
  371. var rslt_ref = "ds_init_dept_dept";
  372. var sort_method = "depthngnm";
  373. sort_field = "depthngnm"
  374. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, "", "", "", "", rslt_ref, false, "");
  375. // 진료과
  376. frmf_addComboItem("group1.cmb_orddeptcd", "- 전 체 -", "", "above");
  377. fDoctSerach();
  378. // 의뢰서여부cmb_rqstflag
  379. frmf_addComboItem("group1.cmb_rqstflag", "", "", "above");
  380. // 초재진 여부
  381. frmf_addComboItem("group1.cmb_fsexamflag", "- 전 체 -", "", "above");
  382. ds_send_search.setColumn(0, "rqstflag", "1");
  383. group1.cmb_reqrgstyn.index = 0;
  384. group1.cmb_fsexamflag.index = 0;
  385. ds_main_list_pat_list.clearData();
  386. }
  387. // 진료의사 조회
  388. function fDoctSerach()
  389. {
  390. // 진료의사
  391. ds_init_doctlist_medispcl.clearData();
  392. ds_send_doctor.clearData();
  393. ds_send_doctor.addRow();
  394. ds_send_doctor.setColumn(0, "orddd", ds_send_search.getColumn(0, "f_date"));
  395. ds_send_doctor.setColumn(0, "orddeptcd", ds_send_search.getColumn(0, "orddeptcd"));
  396. dsf_setDefaultVal(ds_send_doctor, "alllyn:Y");
  397. var oParam = {};
  398. oParam.id = "TRARC01302";
  399. oParam.service = "healcarecoopapp.ReqAgnMngt";
  400. oParam.method = "reqGetDoctList";
  401. oParam.inds = "req=ds_send_doctor";
  402. oParam.outds = "ds_init_doctlist_medispcl=medispcl";
  403. oParam.async = false;
  404. //oParam.callback = "cf_TRARC01302";
  405. tranf_submit(oParam);
  406. group1.cmb_orddrid.index = 0;
  407. }
  408. function group1_btn_pat_onclick(obj:Button, e:ClickEventInfo)
  409. {
  410. fPatPopUp();
  411. }
  412. function fPatPopUp()
  413. {
  414. var objArg = new Object();
  415. if (!utlf_isNull(group1.ipt_pid.text) && String(group1.ipt_pid.text).length> 0)
  416. {
  417. objArg.srchcond = "1";
  418. objArg.autoflag = "Y";
  419. objArg.pid = ds_send_search.getColumn(0, "pid");
  420. }
  421. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "","","","","","","","","","M");
  422. if(ds_patinfolist.rowcount > 0){
  423. ds_send_search.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  424. ds_send_search.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm"));
  425. }
  426. }
  427. function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  428. {
  429. fDoctSerach();
  430. }
  431. function group1_checkbox2_onclick(obj:CheckBox, e:ClickEventInfo)
  432. {
  433. if(obj.value == "Y"){}
  434. else
  435. {
  436. ds_send_search.setColumn(0, "histstat", "");
  437. }
  438. }
  439. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  440. {
  441. if ( !fCheckDate() ) return; //필수 저장여부 체크
  442. fSearch();
  443. }
  444. function fCheckDate()
  445. {
  446. var fromdd = ds_send_search.getColumn(0, "f_date");
  447. var todd = ds_send_search.getColumn(0, "t_date");
  448. var pid = ds_send_search.getColumn(0, "pid");
  449. if (utlf_isNull(pid))
  450. {
  451. if( !utlf_isValidDateTime( fromdd, 'YYYYMMDD') || !utlf_isValidDateTime( todd, 'YYYYMMDD') )
  452. {
  453. sysf_messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  454. return false;
  455. }
  456. if( utlf_getDateInterval(fromdd, todd) > 6 )
  457. {
  458. sysf_messageBox("조회가능한 최대 기간은 1주일입니다. 일자구분에서 날짜를 수정하세요!", "E999", "");
  459. return false;
  460. }
  461. if( utlf_getDateInterval(fromdd, todd) < 0 )
  462. {
  463. sysf_messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  464. return false;
  465. }
  466. // 날짜 계산
  467. var daycnt = utlf_getDateInterval(fromdd, todd);
  468. // 1일이 아닌 경우는 조건을 타야 함
  469. if (daycnt != 0)
  470. {
  471. if (String(group1.ipt_hngnm.text).length > 0 && String(group1.ipt_hngnm.text).length < 2)
  472. {
  473. sysf_messageBox("환자명은 2글자 이상으로 해주십시요!","E999","");
  474. return false;
  475. }
  476. // 진료과 체크
  477. if (utlf_isNull(ds_send_search.getColumn(0, "orddeptcd")))
  478. {
  479. sysf_messageBox("일자구분에서 하루 이상의 기간을 선택했을 경우, 진료과는 조회 필수 조건입니다. 진료과를 입력하세요.", "E999", "");
  480. return false;
  481. }
  482. }
  483. }
  484. return true;
  485. }
  486. function fSearch()
  487. {
  488. var oParam = {};
  489. oParam.id = "TRARC00101";
  490. oParam.service = "healcarecoopapp.ReqMngt";
  491. oParam.method = "reqGetPatientList";
  492. oParam.inds = "req=ds_send_search";
  493. oParam.outds = "ds_main_list_pat_list=pat_list";
  494. oParam.async = false;
  495. //oParam.callback = "cf_TRARC00101";
  496. tranf_submit(oParam);
  497. }
  498. function pat_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  499. {
  500. fReqRgst();
  501. }
  502. function fReqRgst()
  503. {
  504. var mainObj = frmf_getMainViewer();
  505. if (ds_main_list_pat_list.rowcount == 0) return;
  506. if (ds_main_list_pat_list.rowposition < 0) return;
  507. var idxRow = ds_main_list_pat_list.rowposition; //그리드에서 해당 환자 선택
  508. var instcd = sysf_getUserInfo("dutplceinstcd");
  509. var pid = ds_main_list_pat_list.getColumn(idxRow, "pid");
  510. var orddd = ds_main_list_pat_list.getColumn(idxRow, "orddd");
  511. var cretno = ds_main_list_pat_list.getColumn(idxRow, "cretno");
  512. var acptseqno = ds_main_list_pat_list.getColumn(idxRow, "acptseqno");
  513. var histstat = ds_main_list_pat_list.getColumn(idxRow, "histstat");
  514. frmf_clearParameter("pid");
  515. if (histstat == "R")
  516. {
  517. var condparam = "O▦" + pid + "▦" + orddd + "▦" + cretno + "▦" + instcd + "▦" + orddd;
  518. frmf_setParameter("condparam", condparam);
  519. appf_initPatientInfo(condparam);
  520. }
  521. else
  522. {
  523. if(sysf_getGlobalVariable("paminfo").length > 0)
  524. {
  525. appf_delPatientInfos();
  526. }
  527. var pid = frmf_setParameter("pid", pid);
  528. }
  529. var curEmrRecObj = frmf_findPopup("SPARC00100"); //활성화된 진료기록 화면 object loading
  530. if (curEmrRecObj != null)
  531. {
  532. curEmrRecObj.fInit();
  533. }
  534. else
  535. {
  536. frmf_open("SPARC00100", "SPARC00100", "", "","","","","","","","","","M");
  537. }
  538. }
  539. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  540. {
  541. fExcel();
  542. }
  543. function fExcel()
  544. {
  545. if (ds_main_list_pat_list.rowcount == 0) return;
  546. grdf_exportExcel(pat_list, "당일접수환자 리스트", "SheetName", "true", "", "");
  547. }
  548. function btn_allclear_onclick(obj:Button, e:ClickEventInfo)
  549. {
  550. fAllClear();
  551. }
  552. function fAllClear()
  553. {
  554. ds_send_search.clearData();
  555. ds_send_search.addRow();
  556. // 오늘 날짜로 세팅
  557. var CurrentDate = utlf_getCurrentDate();
  558. ds_send_search.setColumn(0, "f_date", CurrentDate);
  559. ds_send_search.setColumn(0, "t_date", CurrentDate);
  560. group1.cmb_reqrgstyn.index = 0;
  561. ds_send_search.setColumn(0, "rqstflag", "1");
  562. fDoctSerach();
  563. ds_main_list_pat_list.clearData();
  564. }
  565. ]]></Script>
  566. </Form>
  567. </FDL>