SPMMO32900_EDC스케줄조회.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO32900" position="absolute 0 0 711 840" titletext="EDCIS Schedule 당직관리" oninit="SPMMO32900_oninit" onload="SPMMO32900_onload" onclose="SPMMO32900_onclose" ontimer="SPMMO32900_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="응급 의사 CallVisit Schedule 조회" class="tit_1" position="absolute 0 0 250 26"/>
  8. <Static id="cpt_worktitle" text="당직 리스트" class="tit_2" position="absolute 1 77 136 93"/>
  9. <Grid id="grd_workerlist" taborder="1" binddataset="ds_main_workerinfolist" useinputpanel="false" position="absolute 0 95 708 837" autosizingtype="none" autofittype="col" cellsizingtype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="150"/>
  16. <Column size="0"/>
  17. <Column size="110"/>
  18. <Column size="110"/>
  19. <Column size="110"/>
  20. <Column size="110"/>
  21. <Column size="100"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24" band="head"/>
  46. <Row size="24"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell text="일자"/>
  50. <Cell col="1" text="진료과코드"/>
  51. <Cell col="2" text="진료과"/>
  52. <Cell col="3" text="part코드"/>
  53. <Cell col="4" text="part"/>
  54. <Cell col="5" text="1"/>
  55. <Cell col="6" text="2"/>
  56. <Cell col="7" text="3"/>
  57. <Cell col="8" text="스탭"/>
  58. <Cell col="9" text="5"/>
  59. <Cell col="10" text="6"/>
  60. <Cell col="11" text="7"/>
  61. <Cell col="12" text="8"/>
  62. <Cell col="13" text="9"/>
  63. <Cell col="14" text="10"/>
  64. <Cell col="15" text="fromdd"/>
  65. <Cell col="16" text="todd"/>
  66. <Cell col="17" text="grtype"/>
  67. <Cell col="18" text="orddeptcd"/>
  68. <Cell col="19" text="staffid"/>
  69. <Cell col="20" text="drid1"/>
  70. <Cell col="21" text="drid2"/>
  71. <Cell col="22" text="drid3"/>
  72. <Cell col="23" text="drid4"/>
  73. <Cell col="24" text="drid5"/>
  74. <Cell col="25" text="drid6"/>
  75. <Cell col="26" text="drid7"/>
  76. <Cell col="27" text="drid8"/>
  77. <Cell col="28" text="drid9"/>
  78. <Cell col="29" text="drid10"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell text="bind:workdd" mask="yyyy-mm-dd"/>
  82. <Cell col="1" text="bind:orddeptcd"/>
  83. <Cell col="2" style="align:left middle;padding:0 0 0 5;" text="bind:orddeptnm"/>
  84. <Cell col="3" text="bind:deptdetlflag"/>
  85. <Cell col="4" style="align:left;" text="bind:deptdetlnm"/>
  86. <Cell col="5" text="bind:drnm1"/>
  87. <Cell col="6" text="bind:drnm2"/>
  88. <Cell col="7" text="bind:drnm3"/>
  89. <Cell col="8" text="bind:drnm4"/>
  90. <Cell col="9" text="bind:drnm5"/>
  91. <Cell col="10" text="bind:drnm6"/>
  92. <Cell col="11" text="bind:drnm7"/>
  93. <Cell col="12" text="bind:drnm8"/>
  94. <Cell col="13" text="bind:drnm9"/>
  95. <Cell col="14" text="bind:drnm10"/>
  96. <Cell col="15" text="bind:fromdd"/>
  97. <Cell col="16" text="bind:todd"/>
  98. <Cell col="17" text="bind:grtype"/>
  99. <Cell col="18" text="bind:orddeptcd"/>
  100. <Cell col="19" text="bind:staffid"/>
  101. <Cell col="20" text="bind:drid1"/>
  102. <Cell col="21" text="bind:drid2"/>
  103. <Cell col="22" text="bind:drid3"/>
  104. <Cell col="23" text="bind:drid4"/>
  105. <Cell col="24" text="bind:drid5"/>
  106. <Cell col="25" text="bind:drid6"/>
  107. <Cell col="26" text="bind:drid7"/>
  108. <Cell col="27" text="bind:drid8"/>
  109. <Cell col="28" text="bind:drid9"/>
  110. <Cell col="29" text="bind:drid10"/>
  111. </Band>
  112. </Format>
  113. </Formats>
  114. </Grid>
  115. <Edit id="op_staffid" taborder="2" readonly="true" visible="false" position="absolute 167 74 302 93" autoselect="true"/>
  116. <Button id="btn_excel" taborder="5" text="Excel" class="btn7" position="absolute 645 74 706 93" onclick="btn_excel_onclick"/>
  117. <Div id="grp_srch" taborder="6" position="absolute 0 26 708 66" class="div_SA">
  118. <Layouts>
  119. <Layout>
  120. <Shape id="line20" linetype="vertical" class="line_4" position="absolute 614 9 620 32" anchor="default"/>
  121. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 633 9 689 31" anchor="default" onclick="grp_srch_btn_search_onclick"/>
  122. <Static id="caption52" text="조회일자 :" class="search_name" position="absolute 15 12 101 29" anchor="default"/>
  123. <Calendar id="int_outdt" taborder="2" class="input_search" position="absolute 95 11 195 30" anchor="default" autoselect="true"/>
  124. </Layout>
  125. </Layouts>
  126. </Div>
  127. </Layout>
  128. </Layouts>
  129. <Objects>
  130. <Dataset id="ds_main_workerinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="fromdd" type="STRING" size="256" sumtext="당직시작일시"/>
  133. <Column id="todd" type="STRING" size="256" sumtext="당직종료일시"/>
  134. <Column id="grtype" type="STRING" size="256" sumtext="중증분류"/>
  135. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  136. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  137. <Column id="deptdetlflag" type="STRING" size="256" sumtext="부서상세구분"/>
  138. <Column id="deptdetlnm" type="STRING" size="256" sumtext="부서상세구분"/>
  139. <Column id="staffid" type="STRING" size="256" sumtext="스탭아이디"/>
  140. <Column id="drid1" type="STRING" size="256" sumtext="당직의사id1"/>
  141. <Column id="drid2" type="STRING" size="256" sumtext="당직의사id2"/>
  142. <Column id="drid3" type="STRING" size="256" sumtext="당직의사id3"/>
  143. <Column id="drid4" type="STRING" size="256" sumtext="당직의사id4"/>
  144. <Column id="drid5" type="STRING" size="256" sumtext="당직의사id5"/>
  145. <Column id="drid6" type="STRING" size="256" sumtext="당직의사id6"/>
  146. <Column id="drid7" type="STRING" size="256" sumtext="당직의사id7"/>
  147. <Column id="drid8" type="STRING" size="256" sumtext="당직의사id8"/>
  148. <Column id="drid9" type="STRING" size="256" sumtext="당직의사id9"/>
  149. <Column id="drid10" type="STRING" size="256" sumtext="당직의사id10"/>
  150. <Column id="staffnm" type="STRING" size="256" sumtext="staffnm명"/>
  151. <Column id="drnm1" type="STRING" size="256" sumtext="당직의사명1"/>
  152. <Column id="drnm2" type="STRING" size="256" sumtext="당직의사명2"/>
  153. <Column id="drnm3" type="STRING" size="256" sumtext="당직의사명3"/>
  154. <Column id="drnm4" type="STRING" size="256" sumtext="당직의사명4"/>
  155. <Column id="drnm5" type="STRING" size="256" sumtext="당직의사명5"/>
  156. <Column id="drnm6" type="STRING" size="256" sumtext="당직의사명6"/>
  157. <Column id="drnm7" type="STRING" size="256" sumtext="당직의사명7"/>
  158. <Column id="drnm8" type="STRING" size="256" sumtext="당직의사명8"/>
  159. <Column id="drnm9" type="STRING" size="256" sumtext="당직의사명9"/>
  160. <Column id="drnm10" type="STRING" size="256" sumtext="당직의사명10"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="srchdd" type="STRING" size="256"/>
  166. <Column id="orddeptcd" type="STRING" size="256"/>
  167. <Column id="deptpartinfo" type="STRING" size="256"/>
  168. </ColumnInfo>
  169. <Rows>
  170. <Row/>
  171. </Rows>
  172. </Dataset>
  173. <Dataset id="ds_main_titleinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="staffid" type="STRING" size="256"/>
  176. </ColumnInfo>
  177. <Rows>
  178. <Row/>
  179. </Rows>
  180. </Dataset>
  181. <Dataset id="ds_orgscheinfo_workerinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  182. </Objects>
  183. <Bind>
  184. <BindItem id="item0" compid="grp_srch.int_outdt" propid="value" datasetid="ds_cond" columnid="srchdd"/>
  185. </Bind>
  186. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  187. * System Name :
  188. * Job Name :
  189. * Creator :
  190. * Make Date : 2015-01-27
  191. * Description :
  192. *---------------------------------------------------------------------------------------
  193. * Modify Date Modifier Modify Description
  194. *---------------------------------------------------------------------------------------
  195. * 2015-01-27 Live Converter TF->XP
  196. *
  197. *---------------------------------------------------------------------------------------
  198. ****************************************************************************************/
  199. //=======================================================================================
  200. // Lib Include
  201. //---------------------------------------------------------------------------------------
  202. include "com_commonxp::comm_main.xjs";
  203. include "emr_prcpmngtxp::SPMMO30000.xjs";
  204. include "emr_prcpmngtxp::MMOCommon.xjs";
  205. //이전 셀의 행,열 인덱스를 저장하는 변수
  206. var col = 0;
  207. var row = 0;
  208. //=======================================================================================
  209. // Event
  210. //---------------------------------------------------------------------------------------
  211. /****************************************************************************************
  212. * Components : Form
  213. * Components ID : SPMMO32900
  214. * Event : oninit
  215. * Argument : 01.obj : Object Event has occurred
  216. * : 02.e : Event Object
  217. * Description : 화면 처음 초기화시 폼초기화
  218. ****************************************************************************************/
  219. function SPMMO32900_oninit(obj:Form, e:InitEventInfo)
  220. {
  221. frmf_initForm(obj); // 폼 초기화
  222. }
  223. /****************************************************************************************
  224. * Components : Form
  225. * Components ID : SPMMO32900
  226. * Event : onload
  227. * Argument : 01.obj : Object Event has occurred
  228. * : 02.e : Event Object
  229. * Description : 화면 로드시 초기화 함수 실행
  230. ****************************************************************************************/
  231. function SPMMO32900_onload(obj:Form, e:LoadEventInfo)
  232. {
  233. ds_cond.setColumn(0,"srchdd",utlf_getCurrentDate());
  234. var ev = new ClickEventInfo;
  235. //속도개선
  236. this.setTimer(0, 100);
  237. //frmf_inputEnterKey("grp_srch.btn_search", "onclick", ev );
  238. }
  239. /****************************************************************************************
  240. * Components : Form
  241. * Components ID : SPMMO32900
  242. * Event : onclose
  243. * Argument : 01.obj : Object Event has occurred
  244. * : 02.e : Event Object
  245. * Description : 화면 전환시 실행
  246. ****************************************************************************************/
  247. function SPMMO32900_onclose(obj:Form, e:CloseEventInfo)
  248. {
  249. //20090629 dhkim
  250. //당직자를 조회하기 전에 이전 변경내역이 있는지 조회하여 재조회할것인지 여부에 따라 조회를 진행한다.
  251. var isRefresh = isScheduleRefresh(true);
  252. if(isRefresh == "N"){
  253. //grd_grpmaster.row = curRow;
  254. return;
  255. }else{
  256. //this.close();
  257. }
  258. }
  259. /****************************************************************************************
  260. * Components : Button
  261. * Components ID : grp_srch.btn_search
  262. * Event : onclick
  263. * Argument : 01.obj : Object Event has occurred
  264. * : 02.e : Event Object
  265. * Description : 조회버튼 클릭
  266. ****************************************************************************************/
  267. function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo)
  268. {
  269. var oParam = {};
  270. oParam.id = "TRMMO32901";
  271. oParam.service = "prcpmngtapp.ErMngt";
  272. oParam.method = "reqGetEDCISScheduleList";
  273. oParam.inds = "req=ds_cond";
  274. oParam.outds = "ds_main_workerinfolist=workerinfolist";
  275. oParam.async = false;
  276. oParam.callback = "";
  277. tranf_submit(oParam);
  278. }
  279. /****************************************************************************************
  280. * Components : Button
  281. * Components ID : btn_excel
  282. * Event : onclick
  283. * Argument : 01.obj : Object Event has occurred
  284. * : 02.e : Event Object
  285. * Description : 엑셀버튼 클릭
  286. ****************************************************************************************/
  287. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  288. {
  289. if(ds_main_workerinfolist.rowcount > 0) {
  290. var SheetName = ds_cond.getColumn(0,"srchdd");
  291. if(utlf_isNull(SheetName)) SheetName = "Sheet1";
  292. grdf_exportExcel(grd_workerlist,"응급의사 당직 리스트",SheetName);
  293. sysf_messageBox("저장이 ", "I002");
  294. } else {
  295. sysf_messageBox("조회된 데이터가 ", "I004");
  296. }
  297. }
  298. function SPMMO32900_ontimer(obj:Form, e:TimerEventInfo)
  299. {
  300. if (e.timerid == 0) {
  301. this.killTimer(0);
  302. frmf_inputEnterKey("grp_srch.btn_search", "onclick", ev );
  303. }
  304. }
  305. ]]></Script>
  306. </Form>
  307. </FDL>