SMMNO03100_외래초진예약조회.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNO03100" position="absolute 0 0 1206 763" titletext="외래 초진 예약 조회" oninit="SMMNO03100_oninit" onload="SMMNO03100_onload" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 4 1195 29" id="group1" scrollbars="none">
  8. <Layouts>
  9. <Layout>
  10. <Static text="외래 초진 예약 조회" position="absolute 0 0 154 25" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 757 1195 784" id="grp_btn" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Edit readonly="true" position="absolute 5 4 40 23" align="align:right middle;" id="opt_cnt"/>
  18. <Static text="건이 조회되었습니다" position="absolute 45 4 175 24" align="align:center middle;" id="caption10"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Div position="absolute 0 13 1195 755" id="group5" class="datagrid2" scrollbars="none">
  23. <Layouts>
  24. <Layout>
  25. <Shape position="absolute 1 52 1195 58" linetype="vertical" id="line1" class="line_1"/>
  26. <Grid position="absolute 1 85 1195 740" id="grd_OutRsrvPatList" class="datagrid2" binddataset="ds_grd_OutRsrvPatList">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="79"/>
  31. <Column size="53"/>
  32. <Column size="77"/>
  33. <Column size="78"/>
  34. <Column size="41"/>
  35. <Column size="107"/>
  36. <Column size="53"/>
  37. <Column size="109"/>
  38. <Column size="100"/>
  39. <Column size="59"/>
  40. <Column size="52"/>
  41. <Column size="70"/>
  42. <Column size="32"/>
  43. <Column size="82"/>
  44. <Column size="100"/>
  45. <Column size="105"/>
  46. <Column size="106"/>
  47. <Column size="340"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. </Columns>
  51. <Rows>
  52. <Row size="36" band="head"/>
  53. <Row size="24"/>
  54. </Rows>
  55. <Band id="head">
  56. <Cell text="진료일"/>
  57. <Cell col="1" text="예약&#10;시간"/>
  58. <Cell col="2" text="등록번호"/>
  59. <Cell col="3" text="환자명"/>
  60. <Cell col="4" text="S/A"/>
  61. <Cell col="5" text="주민번호"/>
  62. <Cell col="6" text="센터"/>
  63. <Cell col="7" text="진료과"/>
  64. <Cell col="8" text="하위부서"/>
  65. <Cell col="9" text="진료의"/>
  66. <Cell col="10" text="초진"/>
  67. <Cell col="11" text="예약&#10;구분"/>
  68. <Cell col="12" text="수납"/>
  69. <Cell col="13" text="보험유형"/>
  70. <Cell col="14" text="Remark"/>
  71. <Cell col="15" text="전화번호1"/>
  72. <Cell col="16" text="전화번호2"/>
  73. <Cell col="17" text="주소"/>
  74. <Cell col="18" text="remfact"/>
  75. <Cell col="19" text="orddeptcd"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
  79. <Cell col="1" text="bind:ordtm" mask="@@:@@"/>
  80. <Cell col="2" style="align:left;" text="bind:pid"/>
  81. <Cell col="3" style="align:left;" text="bind:patnm"/>
  82. <Cell col="4" text="bind:sexage"/>
  83. <Cell col="5" text="bind:rrgstno"/>
  84. <Cell col="6" text="bind:centcdnm"/>
  85. <Cell col="7" style="align:left;" text="bind:orddeptnm"/>
  86. <Cell col="8" text="bind:subdeptcdnm"/>
  87. <Cell col="9" text="bind:usernm"/>
  88. <Cell col="10" text="bind:fsexamflag"/>
  89. <Cell col="11" text="bind:rsrvflag"/>
  90. <Cell col="12" text="bind:calcyn"/>
  91. <Cell col="13" style="align:left;" text="bind:insukind"/>
  92. <Cell col="14" style="align:left;" text="bind:remfact"/>
  93. <Cell col="15" text="bind:hometel"/>
  94. <Cell col="16" text="bind:mpphontel"/>
  95. <Cell col="17" style="align:left;" text="bind:addr"/>
  96. <Cell col="18" text="bind:remfact"/>
  97. <Cell col="19" text="bind:orddeptcd"/>
  98. </Band>
  99. </Format>
  100. </Formats>
  101. </Grid>
  102. <Div position="absolute 0 16 1195 76" align="align:center top;" id="grp_sea" class="div_SA">
  103. <Layouts>
  104. <Layout>
  105. <Static text="진료일자 :" position="absolute 16 10 92 27" id="caption3" class="search_name" anchor="default"/>
  106. <Static text="진료과 :" position="absolute 396 10 455 27" id="caption2" class="search_name" anchor="default"/>
  107. <Static text="진료의 :" position="absolute 661 10 720 27" id="caption4" class="search_name" anchor="default"/>
  108. <Combo position="absolute 725 9 890 28" id="cmb_orddr" class="combo_s_essential" enable="false" taborder="4" innerdataset="ds_init_cmb_orddr" datacolumn="userdepthngnm" codecolumn="userid" anchor="default" onitemchanged="group5_grp_sea_cmb_orddr_onitemchanged" index="-1"/>
  109. <Combo position="absolute 460 9 615 28" id="cmb_orddept" class="combo_s_essential" taborder="3" innerdataset="ds_init_cmb_orddept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onitemchanged="group5_grp_sea_cmb_orddept_onitemchanged"/>
  110. <Button position="absolute 1129 19 1185 41" id="btn_ref" class="btn1" taborder="8" text="조회" anchor="default" onclick="group5_grp_sea_btn_ref_onclick"/>
  111. <Shape position="absolute 1117 9 1123 51" linetype="vertical" id="line11" class="line_4" anchor="default"/>
  112. <Button position="absolute 98 11 111 26" id="button1" class="icon_pre" text="" anchor="default" onclick="group5_grp_sea_button1_onclick"/>
  113. <Calendar position="absolute 113 9 213 28" id="ipt_ordfromdd" class="input_s_essential" taborder="1" anchor="default" onchanged="group5_grp_sea_ipt_ordfromdd_onchanged"/>
  114. <Static text="~" position="absolute 215 10 230 30" id="caption1" anchor="default"/>
  115. <Calendar position="absolute 229 9 329 28" id="ipt_ordtodd" class="input_s_essential" taborder="2" anchor="default"/>
  116. <Button position="absolute 332 11 345 26" id="button10" class="icon_next" text="" anchor="default" onclick="group5_grp_sea_button10_onclick"/>
  117. <Static text="예약경로 :" position="absolute 730 36 810 53" id="caption5" class="search_name" anchor="default"/>
  118. <Static text="환자명 :" position="absolute 237 36 296 53" id="caption7" class="search_name" anchor="default"/>
  119. <Edit position="absolute 302 35 402 54" id="input1" class="input_search" taborder="5" anchor="default" onkeyup="group5_grp_sea_input1_onkeyup"/>
  120. <Static text="주민번호 :" position="absolute 418 36 489 53" id="caption8" class="search_name" anchor="default"/>
  121. <Edit position="absolute 495 35 595 54" id="input2" class="input_search" taborder="6" anchor="default"/>
  122. <Edit position="absolute 600 35 700 54" id="input3" class="input_search" taborder="7" anchor="default"/>
  123. <Combo position="absolute 810 35 930 54" id="cbo_rsrvflag" class="combo_s_essential" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" value="0" text="전체" index="0">
  124. <Dataset id="innerdataset">
  125. <ColumnInfo>
  126. <Column id="codecolumn"/>
  127. <Column id="datacolumn"/>
  128. </ColumnInfo>
  129. <Rows>
  130. <Row>
  131. <Col id="codecolumn">0</Col>
  132. <Col id="datacolumn">전체</Col>
  133. </Row>
  134. <Row>
  135. <Col id="codecolumn">2</Col>
  136. <Col id="datacolumn">전화예약</Col>
  137. </Row>
  138. <Row>
  139. <Col id="codecolumn">1</Col>
  140. <Col id="datacolumn">협력예약</Col>
  141. </Row>
  142. <Row>
  143. <Col id="codecolumn">9</Col>
  144. <Col id="datacolumn">과예약</Col>
  145. </Row>
  146. <Row>
  147. <Col id="codecolumn">5</Col>
  148. <Col id="datacolumn">인터넷예약</Col>
  149. </Row>
  150. <Row>
  151. <Col id="codecolumn">K</Col>
  152. <Col id="datacolumn">병동예약</Col>
  153. </Row>
  154. <Row>
  155. <Col id="codecolumn">C</Col>
  156. <Col id="datacolumn">의뢰</Col>
  157. </Row>
  158. <Row>
  159. <Col id="codecolumn">-</Col>
  160. <Col id="datacolumn">당일접수</Col>
  161. </Row>
  162. </Rows>
  163. </Dataset>
  164. </Combo>
  165. <Edit position="absolute 96 35 196 54" id="input4" class="input_search" taborder="5" anchor="default" onkeyup="group5_grp_sea_input4_onkeyup"/>
  166. <Static text="등록번호 :" position="absolute 16 36 87 53" id="caption9" class="search_name" anchor="default"/>
  167. <Button position="absolute 200 37 216 53" id="btn_pid" class="icon_search" text="" anchor="default" onclick="group5_grp_sea_btn_pid_onclick"/>
  168. </Layout>
  169. </Layouts>
  170. </Div>
  171. <Button position="absolute 945 44 998 63" id="button4" class="btn2" text="초기화" onclick="group5_button4_onclick"/>
  172. </Layout>
  173. </Layouts>
  174. </Div>
  175. </Layout>
  176. </Layouts>
  177. <Objects>
  178. <Dataset id="ds_grd_OutRsrvPatList" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  179. <ColumnInfo>
  180. <Column id="orddd" type="STRING"/>
  181. <Column id="ordtm" type="STRING"/>
  182. <Column id="pid" type="STRING"/>
  183. <Column id="patnm" type="STRING"/>
  184. <Column id="sexage" type="STRING"/>
  185. <Column id="rrgstno" type="STRING"/>
  186. <Column id="centcdnm" type="STRING"/>
  187. <Column id="orddeptnm" type="STRING"/>
  188. <Column id="subdeptcdnm" type="STRING"/>
  189. <Column id="usernm" type="STRING"/>
  190. <Column id="fsexamflag" type="STRING"/>
  191. <Column id="rsrvflag" type="STRING"/>
  192. <Column id="calcyn" type="STRING"/>
  193. <Column id="insukind" type="STRING"/>
  194. <Column id="remfact" type="STRING"/>
  195. <Column id="hometel" type="STRING"/>
  196. <Column id="mpphontel" type="STRING"/>
  197. <Column id="addr" type="STRING"/>
  198. <Column id="remfact" type="STRING"/>
  199. <Column id="orddeptcd" type="STRING"/>
  200. </ColumnInfo>
  201. </Dataset>
  202. <Dataset id="ds_init_cmb_orddr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  203. <ColumnInfo>
  204. <Column id="userdepthngnm" type="STRING"/>
  205. <Column id="userid" type="STRING"/>
  206. </ColumnInfo>
  207. </Dataset>
  208. <Dataset id="ds_init_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="depthngnm" type="STRING"/>
  211. <Column id="deptcd" type="STRING"/>
  212. </ColumnInfo>
  213. </Dataset>
  214. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="ordfromdd" type="STRING" size="256"/>
  217. <Column id="ordtodd" type="STRING" size="256"/>
  218. <Column id="orddeptcd" type="STRING" size="256"/>
  219. <Column id="orddr" type="STRING" size="256"/>
  220. <Column id="pid" type="STRING" size="256"/>
  221. <Column id="patnm" type="STRING" size="256"/>
  222. <Column id="rrgstno1" type="STRING" size="256"/>
  223. <Column id="rrgstno2" type="STRING" size="256"/>
  224. <Column id="rsrvflag" type="STRING" size="256"/>
  225. <Column id="prntusge" type="STRING" size="256"/>
  226. <Column id="orddeptnm" type="STRING" size="256"/>
  227. <Column id="orddrnm" type="STRING" size="256"/>
  228. <Column id="cnt" type="STRING" size="256"/>
  229. <Column id="ordclsdeptflag" type="STRING" size="256"/>
  230. <Column id="supdeptcd" type="STRING" size="256"/>
  231. </ColumnInfo>
  232. <Rows>
  233. <Row>
  234. <Col id="ordfromdd"/>
  235. <Col id="ordtodd"/>
  236. <Col id="orddeptcd"/>
  237. <Col id="orddr"/>
  238. <Col id="pid"/>
  239. <Col id="patnm"/>
  240. <Col id="rrgstno1"/>
  241. <Col id="rrgstno2"/>
  242. <Col id="rsrvflag"/>
  243. <Col id="prntusge"/>
  244. <Col id="orddeptnm"/>
  245. <Col id="orddrnm"/>
  246. <Col id="cnt">0</Col>
  247. <Col id="ordclsdeptflag"/>
  248. <Col id="supdeptcd"/>
  249. </Row>
  250. </Rows>
  251. </Dataset>
  252. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  253. <ColumnInfo>
  254. <Column id="popupendflag" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row/>
  258. </Rows>
  259. </Dataset>
  260. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="pid" type="STRING" size="256"/>
  263. <Column id="hngnm" type="STRING" size="256"/>
  264. <Column id="rrgstno1" type="STRING" size="256"/>
  265. <Column id="rrgstno2" type="STRING" size="256"/>
  266. </ColumnInfo>
  267. <Rows>
  268. <Row/>
  269. </Rows>
  270. </Dataset>
  271. </Objects>
  272. <Bind>
  273. <BindItem id="item0" compid="group5.grp_sea.ipt_ordfromdd" propid="value" datasetid="ds_cond" columnid="ordfromdd"/>
  274. <BindItem id="item1" compid="group5.grp_sea.ipt_ordtodd" propid="value" datasetid="ds_cond" columnid="ordtodd"/>
  275. <BindItem id="item2" compid="group5.grp_sea.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  276. <BindItem id="item3" compid="group5.grp_sea.cmb_orddr" propid="value" datasetid="ds_cond" columnid="orddr"/>
  277. <BindItem id="item4" compid="group5.grp_sea.input4" propid="value" datasetid="ds_cond" columnid="pid"/>
  278. <BindItem id="item5" compid="group5.grp_sea.input1" propid="value" datasetid="ds_cond" columnid="patnm"/>
  279. <BindItem id="item6" compid="group5.grp_sea.input2" propid="value" datasetid="ds_cond" columnid="rrgstno1"/>
  280. <BindItem id="item7" compid="group5.grp_sea.input3" propid="value" datasetid="ds_cond" columnid="rrgstno2"/>
  281. <BindItem id="item8" compid="group5.grp_sea.cbo_rsrvflag" propid="value" datasetid="ds_cond" columnid="rsrvflag"/>
  282. </Bind>
  283. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  284. * System Name :
  285. * Job Name :
  286. * Creator :
  287. * Make Date : 2015-11-13
  288. * Description :
  289. *---------------------------------------------------------------------------------------
  290. * Modify Date Modifier Modify Description
  291. *---------------------------------------------------------------------------------------
  292. * 2015-11-13 Live Converter TF->XP
  293. *
  294. *---------------------------------------------------------------------------------------
  295. ****************************************************************************************/
  296. include "com_commonxp::comm_main.xjs";
  297. include "emr_carecomxp::CareCom.xjs";
  298. include "com_departmentcodexp::ZSD001.xjs";
  299. var MDdeptcd = "";
  300. function lf_BtnRefClicked(){
  301. ds_grd_OutRsrvPatList.clearData();
  302. var sorddept = ds_cond.getColumn(0,"orddeptcd");
  303. var sorddr = ds_cond.getColumn(0,"orddr");
  304. var sRsrvFlag = ds_cond.getColumn(0,"rsrvflag");
  305. var sRrgstno2 = ds_cond.getColumn(0,"rrgstno2");
  306. var sTempRsrvYn = "";
  307. if(sRsrvFlag == "0" || sRsrvFlag == "2" || sRsrvFlag == "5"){ //예약구분이 전체, 전화예약, 인터넷예약일경우 temp테이블도 조회
  308. sTempRsrvYn = "Y";
  309. }else{
  310. sTempRsrvYn = "N";
  311. }
  312. //var sOrdfromDD = model.getValue("/root/main/cond/ordfromdd");
  313. //var sOrdtoDD = model.getValue("/root/main/cond/ordtodd");
  314. if(utlf_isNull(group5.grp_sea.cmb_orddept.value)) {
  315. sysf_messageBox("진료과를 선택하지 ","E007");
  316. return;
  317. }
  318. //진료의 확인추가(진료의선택하지않아도 전체의사조회됨)-20090910-kys
  319. if(utlf_isNull(group5.grp_sea.cmb_orddr.value)) {
  320. sysf_messageBox("진료의를 선택하지 ","E007");
  321. return;
  322. }
  323. if(utlf_isNull(ds_cond.getColumn(0,"rsrvflag"))) {
  324. sysf_messageBox("예약경로를 선택하지 ","E007");
  325. return;
  326. }
  327. dsf_createDs("ds_send_req");
  328. dsf_copyDs(ds_send_req,ds_cond,"replace");
  329. if(utlf_transNullToEmpty(sRrgstno2).substr(1,1) == "*"){ //2번째주민번호2번째자리가 *일경우(조회창으로 환자검색한경우) 2번째주민번호 제외
  330. dsf_makeValue(ds_send_req,"rrgstno2", "string","");
  331. }
  332. dsf_makeValue(ds_send_req,"temprsrvyn","string", sTempRsrvYn);
  333. //model.makeValue("/root/send/req/ordtodd", sOrdtoDD);
  334. var oParam = {};
  335. oParam.id = "TRMNO03101";
  336. oParam.service = "outcareapp.OutCareMngt";
  337. oParam.method = "reqGetOutFstRsrvPatList";
  338. oParam.inds = "req=ds_send_req";
  339. oParam.outds = "ds_grd_OutRsrvPatList=outrsrvpatinfo";
  340. oParam.async = false;
  341. oParam.callback = "cf_TRMNO03101";
  342. tranf_submit(oParam);
  343. ds_cond.setColumn(0,"orddrnm", group5.grp_sea.cmb_orddr.text);
  344. }
  345. function cf_TRMNO03101(sSvcId, nErrorCode, sErrorMsg) {
  346. if(nErrorCode < 0) return;
  347. ds_cond.setColumn(0,"cnt", ds_grd_OutRsrvPatList.rowcount-1);
  348. }
  349. function lf_DeptDoctSearch(typegubn){
  350. group5.grp_sea.cmb_orddr.enable = true;
  351. ds_grd_OutRsrvPatList.clearData();
  352. var sordclsdeptflag = ds_init_cmb_orddept.lookup("deptcd",ds_cond.getColumn(0,"orddeptcd"),"ordclsdeptflag"); // 센터/대표/분과/서브 구분
  353. var ssupdeptcd = ds_init_cmb_orddept.lookup("deptcd",ds_cond.getColumn(0,"orddeptcd"),"supdeptcd"); // 상위부서코드
  354. var sorddeptkind = ds_init_cmb_orddept.lookup("deptcd",ds_cond.getColumn(0,"orddeptcd"),"orddeptkind"); // 센터/대표 구분
  355. var sorddeptflag = "";
  356. if (sorddeptkind == "C") { // 센터이면
  357. sorddeptflag = "C";
  358. //} else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
  359. // sorddeptflag = "A";
  360. } else { // 그외에 기타과
  361. sorddeptflag = "etc";
  362. }
  363. ds_cond.setColumn(0,"ordclsdeptflag",sorddeptflag);
  364. ds_cond.setColumn(0,"supdeptcd",ssupdeptcd);
  365. dsf_createDsRow("ds_send_reqdata" , [
  366. {col: "orddd", val:ds_cond.getColumn(0,"ordfromdd")}
  367. ,{col: "orddeptcd", val:ds_cond.getColumn(0,"orddeptcd")}
  368. ,{col: "prcpspecflag", val:""}
  369. ,{col: "ordclsdeptflag", val:sorddeptflag}
  370. ,{col: "supdeptcd", val:ssupdeptcd}
  371. ,{col: "MDdeptcd", val:MDdeptcd}
  372. ]);
  373. var oParam = {};
  374. oParam.id = "TRMNO00104";
  375. oParam.service = "outcareapp.OutCareMngt";
  376. oParam.method = "reqGetDrId";
  377. oParam.inds = "reqdrid=ds_send_reqdata";
  378. oParam.outds = "ds_init_cmb_orddr=orddr";
  379. oParam.async = false;
  380. //oParam.callback = "cf_TRMNO00104";
  381. tranf_submit(oParam); // 의사리스트 조회
  382. if(ds_init_cmb_orddr.rowcount > 0){
  383. // for(var i = 0; i < grd_OutRsrvPatList.cols;i++) {
  384. // grd_OutRsrvPatList.colsort(i) = "asc";
  385. // }
  386. dsf_addDsItem( ds_init_cmb_orddr, "userid","userdepthngnm", "전체의사", "00000000", "above");
  387. group5.grp_sea.cmb_orddr.index = 1;
  388. } else {
  389. dsf_addDsItem( ds_init_cmb_orddr, "userid","userdepthngnm", "전체의사", "00000000", "above");
  390. //cmb_orddr.select(0);
  391. }
  392. ds_cond.setColumn(0,"orddeptnm", group5.grp_sea.cmb_orddept.text);
  393. }
  394. function SMMNO03100_oninit(obj:Form, e:InitEventInfo)
  395. {
  396. frmf_initForm(obj);
  397. }
  398. function SMMNO03100_onload(obj:Form, e:LoadEventInfo)
  399. {
  400. ds_grd_OutRsrvPatList.clearData();
  401. grdf_initGrid(group5.grd_OutRsrvPatList);
  402. var instcd = sysf_getUserInfo("dutplceinstcd");
  403. var standard_yn = "rcptuseyn";
  404. var ord_deptflag = 'X';
  405. //var rslt_ref = "/root/init/orddept";
  406. var sort_field = "depthngnm";
  407. var sort_method = "asc";
  408. var dt = utlf_getCurrentDate();
  409. //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
  410. ds_cond.setColumn(0,"ordfromdd", dt);
  411. ds_cond.setColumn(0,"ordtodd", dt);
  412. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  413. zsdfGetCareOutOrderDepartmentList(instcd, "ds_init_cmb_orddept", dt);
  414. dsf_addDsItem( ds_init_cmb_orddept, "deptcd","depthngnm", "전체진료과", "0000000000", "above");
  415. ds_cond.setColumn(0,"orddeptcd","");
  416. // 공통코드 스크립트 호출
  417. //zbcfGetCodeList( new Array("Z0008"), new Array("/root/init/comcd"));
  418. var dutplcecd = sysf_getUserInfo("dutplcecd"); // 근무지부서코드
  419. var suporddeptcd = sysf_getUserInfo("ordsupdeptcd");
  420. if (!utlf_isNull(dutplcecd)) {
  421. ds_cond.setColumn(0,"orddeptcd", dutplcecd); // 근무지부서코드
  422. lf_DeptDoctSearch(); // 의사리스트조회
  423. }
  424. group5.grp_sea.cbo_rsrvflag.index = 0; //라디오버튼 선택
  425. }
  426. function group5_grp_sea_cmb_orddr_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  427. {
  428. lf_BtnRefClicked();
  429. }
  430. function group5_grp_sea_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  431. {
  432. lf_DeptDoctSearch();
  433. }
  434. function group5_grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  435. {
  436. lf_BtnRefClicked();
  437. }
  438. function group5_grp_sea_button1_onclick(obj:Button, e:ClickEventInfo)
  439. {
  440. var oraDate = group5.grp_sea.ipt_ordfromdd.value.toDate().getAddDate(-1,"D");
  441. group5.grp_sea.ipt_ordfromdd.value = oraDate.getDateFormat();
  442. group5.grp_sea.ipt_ordtodd.value = oraDate.getDateFormat();
  443. lf_DeptDoctSearch(); //진료일자 변경시 진료의 재조회
  444. }
  445. function group5_grp_sea_ipt_ordfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  446. {
  447. lf_DeptDoctSearch();
  448. }
  449. function group5_grp_sea_button10_onclick(obj:Button, e:ClickEventInfo)
  450. {
  451. var oraDate = group5.grp_sea.ipt_ordfromdd.value.toDate().getAddDate(1,"D");
  452. group5.grp_sea.ipt_ordfromdd.value = oraDate.getDateFormat();
  453. group5.grp_sea.ipt_ordtodd.value = oraDate.getDateFormat();
  454. lf_DeptDoctSearch(); //진료일자 변경시 진료의 재조회
  455. }
  456. function group5_grp_sea_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  457. {
  458. if(e.keycode == 13)
  459. {
  460. obj.updateToDataset();
  461. lf_BtnRefClicked();
  462. }
  463. }
  464. function group5_grp_sea_input4_onkeyup(obj:Edit, e:KeyEventInfo)
  465. {
  466. if(e.keycode == 13)
  467. {
  468. obj.updateToDataset();
  469. lf_BtnRefClicked();
  470. }
  471. }
  472. function group5_grp_sea_btn_pid_onclick(obj:Button, e:ClickEventInfo)
  473. {
  474. // 원본 modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/main/cond");
  475. // 외래간호환자조회로 변경_20090218(ByJA)
  476. var objArg = new Object();
  477. objArg.arg_ds_cond = ds_cond;
  478. frmf_modal("SPMNO02400","SPMNO02400",objArg, "","1", "150", "150", "", "", "", "", "", "M");
  479. //환자번호 copy
  480. var popupendflag = ds_main.getColumn(0,"popupendflag");
  481. if (popupendflag == "ok"){
  482. ds_cond.setColumn(0,"pid", ds_patinfolist.getColumn(0,"pid"));
  483. ds_cond.setColumn(0,"patnm", ds_patinfolist.getColumn(0,"hngnm"));
  484. ds_cond.setColumn(0,"rrgstno1", ds_patinfolist.getColumn(0,"rrgstno1"));
  485. ds_cond.setColumn(0,"rrgstno2", ds_patinfolist.getColumn(0,"rrgstno2"));
  486. }
  487. }
  488. function group5_button4_onclick(obj:Button, e:ClickEventInfo)
  489. {
  490. group5.grp_sea.input4.value = ""; //등록번호
  491. group5.grp_sea.input1.value = ""; //환자명
  492. group5.grp_sea.input2.value = ""; //주민번호1
  493. group5.grp_sea.input3.value = ""; //주민번호2
  494. }
  495. ]]></Script>
  496. </Form>
  497. </FDL>