SPMMO33000_중증EDC스케줄조회.xfdl 15 KB

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