SPMMO05700_마취과스케줄담당관리.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO05700" position="absolute 0 0 463 490" titletext="스케줄 담당관리" oninit="SPMMO05700_oninit" onload="SPMMO05700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="1" position="absolute 0 422 459 482" class="div_SA2"/>
  8. <Static text="※변경 사항은 익일 적용됩니다." position="absolute 152 401 357 421" id="caption7" anchor="left bottom"/>
  9. <Static text="마취과 스케줄 담당관리" position="absolute 0 0 171 25" id="caption6" class="tit_1" anchor="left top"/>
  10. <Shape position="absolute 0 65 460 71" linetype="horizontal" id="line2" class="line_10" anchor="left top right"/>
  11. <Static text="스케줄 담당 요일변경" position="absolute 0 27 159 43" align="align:center middle;" id="caption18" class="tit_2" anchor="left top"/>
  12. <Static text="스케줄 정규 시간변경" position="absolute 0 403 148 419" align="align:center middle;" id="caption1" class="tit_2" anchor="left bottom"/>
  13. <Static text="시작시간" position="absolute 11 430 96 447" id="caption11" class="search_name" anchor="left bottom"/>
  14. <Static text="종료시간" position="absolute 11 458 96 475" id="caption2" class="search_name" anchor="left bottom"/>
  15. <Button position="absolute 130 456 140 465" id="button5" class="icon_up" text="" onclick="button5_onclick" anchor="left bottom"/>
  16. <Static text="~" position="absolute 147 457 167 477" align="align:center middle;" id="caption4" anchor="left bottom"/>
  17. <Button position="absolute 130 466 140 475" id="button8" class="icon_down" text="" onclick="button8_onclick" anchor="left bottom"/>
  18. <MaskEdit position="absolute 84 456 129 475" id="input2" mask="##" anchor="left bottom" maskchar=" " type="string" trimtype="both" style="align:center middle;" autoselect="true"/>
  19. <Button position="absolute 210 456 220 465" id="button2" class="icon_up" text="" onclick="button2_onclick" anchor="left bottom"/>
  20. <Button position="absolute 210 466 220 475" id="button3" class="icon_down" text="" onclick="button3_onclick" anchor="left bottom"/>
  21. <MaskEdit position="absolute 164 456 209 475" id="input4" mask="##" anchor="left bottom" maskchar=" " type="string" trimtype="both" style="align:center middle;" autoselect="true"/>
  22. <Button position="absolute 210 428 220 437" id="button4" class="icon_up" text="" onclick="button4_onclick" anchor="left bottom"/>
  23. <Button position="absolute 210 438 220 447" id="button6" class="icon_down" text="" onclick="button6_onclick" anchor="left bottom"/>
  24. <Button position="absolute 130 428 140 437" id="button7" class="icon_up" text="" onclick="button7_onclick" anchor="left bottom"/>
  25. <Button position="absolute 130 438 140 447" id="button9" class="icon_down" text="" onclick="button9_onclick" anchor="left bottom"/>
  26. <Static text="~" position="absolute 147 429 167 449" align="align:center middle;" id="caption3" anchor="left bottom"/>
  27. <MaskEdit position="absolute 84 428 129 447" id="input1" mask="##" anchor="left bottom" maskchar=" " type="string" trimtype="both" style="align:center middle;" autoselect="true"/>
  28. <MaskEdit position="absolute 164 428 209 447" id="input3" mask="##" anchor="left bottom" type="string" trimtype="both" maskchar=" " style="align:center middle;" autoselect="true"/>
  29. <Button position="absolute 397 443 453 465" id="btn_req" class="btn4" text="저장" onclick="btn_req_onclick" anchor="right bottom"/>
  30. <Shape position="absolute 383 426 389 477" linetype="vertical" id="line3" anchor="right bottom"/>
  31. <Edit position="absolute 69 46 199 65" id="input5" onkeyup="input5_onkeyup" anchor="left top" autoselect="true"/>
  32. <Combo position="absolute 0 46 67 65" id="combo1" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="nm" text="성명" anchor="left top">
  33. <Dataset id="innerdataset">
  34. <ColumnInfo>
  35. <Column id="codecolumn"/>
  36. <Column id="datacolumn"/>
  37. </ColumnInfo>
  38. <Rows>
  39. <Row>
  40. <Col id="codecolumn">id</Col>
  41. <Col id="datacolumn">사번</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">nm</Col>
  45. <Col id="datacolumn">성명</Col>
  46. </Row>
  47. </Rows>
  48. </Dataset>
  49. </Combo>
  50. <Grid position="absolute 0 70 460 396" id="grd_chrgschedwlist" binddataset="ds_main_chrgschedwlist_chrgschedwlist" anchor="all" autoenter="select" cellsizingtype="col">
  51. <Formats>
  52. <Format id="default">
  53. <Columns>
  54. <Column size="46"/>
  55. <Column size="91"/>
  56. <Column size="110"/>
  57. <Column size="157"/>
  58. <Column size="50"/>
  59. <Column size="0"/>
  60. </Columns>
  61. <Rows>
  62. <Row size="24" band="head"/>
  63. <Row size="24"/>
  64. </Rows>
  65. <Band id="head">
  66. <Cell/>
  67. <Cell col="1" text="사번"/>
  68. <Cell col="2" text="성명"/>
  69. <Cell col="3" text="비퍼번호"/>
  70. <Cell col="4" text="요일"/>
  71. <Cell col="5" text="caption1"/>
  72. </Band>
  73. <Band id="body">
  74. <Cell displaytype="combo" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label" enable="false"/>
  75. <Cell col="1" text="bind:orddrid"/>
  76. <Cell col="2" text="bind:hngnm"/>
  77. <Cell col="3" displaytype="text" edittype="text" text="bind:beepno"/>
  78. <Cell col="4" displaytype="combo" edittype="combo" text="bind:chrgdwflag" combodataset="ds_cmb_chrgdwflag" combocodecol="value" combodatacol="label"/>
  79. <Cell col="5" text="bind:orgchrgdwflag"/>
  80. </Band>
  81. </Format>
  82. </Formats>
  83. </Grid>
  84. <Div position="absolute 250 70 447 385" id="group1" style="background:white;border:1 solid #808080ff ;">
  85. <Layouts>
  86. <Layout>
  87. <Grid position="absolute 6 19 192 291" id="grd_anstdrlist" visible="true" binddataset="ds_main_userlist_usercombo" anchor="default" selecttype="multirow" autoenter="select" cellsizingtype="col" oncelldblclick="group1_grd_anstdrlist_oncelldblclick">
  88. <Formats>
  89. <Format id="default">
  90. <Columns>
  91. <Column size="85"/>
  92. <Column size="89"/>
  93. <Column size="10"/>
  94. <Column size="10"/>
  95. </Columns>
  96. <Rows>
  97. <Row size="24" band="head"/>
  98. <Row size="24"/>
  99. </Rows>
  100. <Band id="head">
  101. <Cell text="의사ID"/>
  102. <Cell col="1" text="의사명"/>
  103. <Cell col="2" text="caption1"/>
  104. <Cell col="3" text="caption2"/>
  105. </Band>
  106. <Band id="body">
  107. <Cell style="align:left middle;" text="bind:userid"/>
  108. <Cell col="1" style="align:left middle;" text="bind:usernm"/>
  109. <Cell col="2" text="bind:mpphonno"/>
  110. <Cell col="3" text="bind:refseq"/>
  111. </Band>
  112. </Format>
  113. </Formats>
  114. </Grid>
  115. <Static text="마취의사 리스트" position="absolute 6 2 124 17" align="align:center middle;" id="caption5" class="tit_2" anchor="default"/>
  116. <Button position="absolute 106 292 148 311" id="btn_rgst" class="btn2" text="등록" anchor="default" onclick="group1_btn_rgst_onclick"/>
  117. <Button position="absolute 150 292 192 311" id="btn_close" class="btn2" text="닫기" anchor="default" onclick="group1_btn_close_onclick"/>
  118. </Layout>
  119. </Layouts>
  120. </Div>
  121. <Button position="absolute 326 46 368 65" id="btn_add" class="btn2" text="추가" onclick="btn_add_onclick" anchor="top right"/>
  122. <Button position="absolute 416 46 458 65" id="btn_save" class="btn5" text="저장" onclick="btn_save_onclick" anchor="top right"/>
  123. <Button position="absolute 204 46 246 65" id="btn_srch" class="btn2" visible="true" text="검색" onclick="btn_srch_onclick" anchor="left top"/>
  124. <Button position="absolute 371 46 413 65" id="button1" class="btn2" text="삭제" onclick="button1_onclick" anchor="top right"/>
  125. </Layout>
  126. </Layouts>
  127. <Objects>
  128. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="srchcond" type="STRING" size="256"/>
  131. <Column id="srchdata" type="STRING" size="256"/>
  132. </ColumnInfo>
  133. <Rows>
  134. <Row>
  135. <Col id="srchcond">nm</Col>
  136. <Col id="srchdata"/>
  137. </Row>
  138. </Rows>
  139. </Dataset>
  140. <Dataset id="ds_main_chrgschedwlist_chrgschedwlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_chrgschedwlist_chrgschedwlist_oncolumnchanged">
  141. <ColumnInfo>
  142. <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
  143. <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
  144. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  145. <Column id="beepno" type="STRING" size="256" sumtext="비퍼번호"/>
  146. <Column id="chrgdwflag" type="STRING" size="256" sumtext="담당요일구분"/>
  147. <Column id="chrgdwflag" type="STRING" size="256" sumtext="update할담당요일구분"/>
  148. </ColumnInfo>
  149. </Dataset>
  150. <Dataset id="ds_cmb_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="label" type="STRING" size="256"/>
  153. <Column id="value" type="STRING" size="256"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row>
  157. <Col id="label"/>
  158. <Col id="value"/>
  159. </Row>
  160. <Row>
  161. <Col id="label">신규</Col>
  162. <Col id="value">i</Col>
  163. </Row>
  164. <Row>
  165. <Col id="label">수정</Col>
  166. <Col id="value">u</Col>
  167. </Row>
  168. <Row>
  169. <Col id="label">삭제</Col>
  170. <Col id="value">d</Col>
  171. </Row>
  172. </Rows>
  173. </Dataset>
  174. <Dataset id="ds_cmb_chrgdwflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="label" type="STRING" size="256"/>
  177. <Column id="value" type="STRING" size="256"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row>
  181. <Col id="label">일</Col>
  182. <Col id="value">1</Col>
  183. </Row>
  184. <Row>
  185. <Col id="label">월</Col>
  186. <Col id="value">2</Col>
  187. </Row>
  188. <Row>
  189. <Col id="label">화</Col>
  190. <Col id="value">3</Col>
  191. </Row>
  192. <Row>
  193. <Col id="label">수</Col>
  194. <Col id="value">4</Col>
  195. </Row>
  196. <Row>
  197. <Col id="label">목</Col>
  198. <Col id="value">5</Col>
  199. </Row>
  200. <Row>
  201. <Col id="label">금</Col>
  202. <Col id="value">6</Col>
  203. </Row>
  204. <Row>
  205. <Col id="label">토</Col>
  206. <Col id="value">7</Col>
  207. </Row>
  208. </Rows>
  209. </Dataset>
  210. <Dataset id="ds_main_userlist_usercombo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  211. <Dataset id="ds_main_scheregtimelist_scheregtimelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  212. <ColumnInfo>
  213. <Column id="regfromtm" type="STRING" size="256"/>
  214. <Column id="regendtm" type="STRING" size="256"/>
  215. <Column id="irregfromtm" type="STRING" size="256"/>
  216. <Column id="irregendtm" type="STRING" size="256"/>
  217. </ColumnInfo>
  218. <Rows>
  219. <Row>
  220. <Col id="regfromtm"/>
  221. <Col id="regendtm"/>
  222. <Col id="irregfromtm"/>
  223. <Col id="irregendtm"/>
  224. </Row>
  225. </Rows>
  226. </Dataset>
  227. <Dataset id="ds_init_hardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  228. <Dataset id="ds_init_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  229. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  230. <Dataset id="ds_init_regltminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  231. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  232. </Objects>
  233. <Bind>
  234. <BindItem id="item0" compid="combo1" propid="value" datasetid="ds_main_cond" columnid="srchcond"/>
  235. <BindItem id="item1" compid="input5" propid="value" datasetid="ds_main_cond" columnid="srchdata"/>
  236. <BindItem id="item2" compid="input1" propid="value" datasetid="ds_main_scheregtimelist_scheregtimelist" columnid="regfromtm"/>
  237. <BindItem id="item3" compid="input3" propid="value" datasetid="ds_main_scheregtimelist_scheregtimelist" columnid="regendtm"/>
  238. <BindItem id="item4" compid="input2" propid="value" datasetid="ds_main_scheregtimelist_scheregtimelist" columnid="irregfromtm"/>
  239. <BindItem id="item5" compid="input4" propid="value" datasetid="ds_main_scheregtimelist_scheregtimelist" columnid="irregendtm"/>
  240. </Bind>
  241. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  242. * System Name :
  243. * Job Name :
  244. * Creator :
  245. * Make Date : 2017-09-07
  246. * Description :
  247. *---------------------------------------------------------------------------------------
  248. * Modify Date Modifier Modify Description
  249. *---------------------------------------------------------------------------------------
  250. * 2017-09-07 Live Converter TF->XP
  251. *
  252. *---------------------------------------------------------------------------------------
  253. ****************************************************************************************/
  254. include "com_commonxp::comm_main.xjs";
  255. include "emr_prcpmngtxp::MMO001.xjs";
  256. include "emr_prcpmngtxp::SPMMO05700.xjs";
  257. include "emr_prcpmngtxp::SPMMB00600.xjs";
  258. var startfromtm = "";
  259. var starttotm = "";
  260. var endfromtm = "";
  261. var endtotm = "";
  262. var startfromtmVal = "";
  263. var starttotmVal = "";
  264. var endfromtmVal = "";
  265. var endtotmVal = "";
  266. var arErrorCode = new HashArray();
  267. function SPMMO05700_oninit(obj:Form, e:InitEventInfo)
  268. {
  269. frmf_initForm(obj);
  270. }
  271. function SPMMO05700_onload(obj:Form, e:LoadEventInfo)
  272. {
  273. grdf_initGrid(grd_chrgschedwlist);
  274. grdf_initGrid(group1.grd_anstdrlist);
  275. fInitialize_SPMMO05700();
  276. group1.visible = false;
  277. }
  278. function input5_onkeyup(obj:Edit, e:KeyEventInfo)
  279. {
  280. if(e.keycode == 13)
  281. {
  282. obj.updateToDataset();
  283. fGetOpScheSrchList();
  284. }
  285. }
  286. //검색
  287. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  288. {
  289. fGetOpScheSrchList();
  290. }
  291. //추가
  292. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  293. {
  294. fClkBtnAdd();
  295. }
  296. //삭제
  297. function button1_onclick(obj:Button, e:ClickEventInfo)
  298. {
  299. fClkBtnDel(grd_chrgschedwlist);
  300. }
  301. //저장
  302. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  303. {
  304. fSaveChrgScheDWList();
  305. }
  306. function ds_main_chrgschedwlist_chrgschedwlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  307. {
  308. if(e.columnid == "chrgdwflag")
  309. {
  310. fChngChrgScheDWList();
  311. }
  312. }
  313. function group1_grd_anstdrlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  314. {
  315. //grid double click도 추가버튼 클릭 기능과 동일함
  316. fClkBtnAdd();
  317. }
  318. //등록
  319. function group1_btn_rgst_onclick(obj:Button, e:ClickEventInfo)
  320. {
  321. fClkBtnRgst();
  322. }
  323. //닫기
  324. function group1_btn_close_onclick(obj:Button, e:ClickEventInfo)
  325. {
  326. fClkBtnClose();
  327. }
  328. //시작시간up
  329. function button7_onclick(obj:Button, e:ClickEventInfo)
  330. {
  331. fSetUpFromTm();
  332. }
  333. //시작시간down
  334. function button9_onclick(obj:Button, e:ClickEventInfo)
  335. {
  336. fSetDownFromTm();
  337. }
  338. //시작시간up
  339. function button4_onclick(obj:Button, e:ClickEventInfo)
  340. {
  341. fSetUpToTm();
  342. }
  343. //시작시간down
  344. function button6_onclick(obj:Button, e:ClickEventInfo)
  345. {
  346. fSetDownToTm();
  347. }
  348. //종료시간up
  349. function button5_onclick(obj:Button, e:ClickEventInfo)
  350. {
  351. fSetUpToTm();
  352. }
  353. //종료시간down
  354. function button8_onclick(obj:Button, e:ClickEventInfo)
  355. {
  356. fSetDownToTm();
  357. }
  358. //종료시간up
  359. function button2_onclick(obj:Button, e:ClickEventInfo)
  360. {
  361. fSetUpFromTm();
  362. }
  363. //종료시간down
  364. function button3_onclick(obj:Button, e:ClickEventInfo)
  365. {
  366. fSetDownFromTm();
  367. }
  368. //저장
  369. function btn_req_onclick(obj:Button, e:ClickEventInfo)
  370. {
  371. fSaveOpScheRegTimeList();
  372. }
  373. ]]></Script>
  374. </Form>
  375. </FDL>