SMABO01600_교육의뢰리스트.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABO01600" position="absolute 0 0 1199 789" titletext="교육 의뢰 리스트" oninit="SMABO01600_oninit" onload="SMABO01600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="교육 의뢰 리스트" class="tit_1" position="absolute 0 0 200 25"/>
  8. <Button id="btn_prt" taborder="1" text="출력" class="btn6" position="absolute 0 26 56 48" onclick="btn_prt_onclick"/>
  9. <Button id="btn_excsave" taborder="2" text="엑셀저장" class="btn7" position="absolute 1114 99 1194 118" anchor="top right" onclick="btn_excsave_onclick"/>
  10. <Static id="caption1" text="교육 의뢰 리스트" class="tit_2" position="absolute 0 102 147 123"/>
  11. <Grid id="grd_edulist" taborder="3" binddataset="ds_main_bmteducreq_bmteducreqlist" useinputpanel="false" position="absolute 0 123 1194 782" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all" onrbuttondown="grd_edulist_onrbuttondown">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="25"/>
  16. <Column size="89"/>
  17. <Column size="58"/>
  18. <Column size="94"/>
  19. <Column size="75"/>
  20. <Column size="66"/>
  21. <Column size="43"/>
  22. <Column size="38"/>
  23. <Column size="76"/>
  24. <Column size="77"/>
  25. <Column size="78"/>
  26. <Column size="86"/>
  27. <Column size="153"/>
  28. <Column size="80"/>
  29. <Column size="76"/>
  30. <Column size="56"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell/>
  38. <Cell col="1" text="UNIT"/>
  39. <Cell col="2" text="병실"/>
  40. <Cell col="3" text="진료과"/>
  41. <Cell col="4" text="등록번호"/>
  42. <Cell col="5" text="환자명"/>
  43. <Cell col="6" text="성별"/>
  44. <Cell col="7" text="나이"/>
  45. <Cell col="8" text="입원일"/>
  46. <Cell col="9" text="퇴원예정일"/>
  47. <Cell col="10" text="의뢰일자"/>
  48. <Cell col="11" text="의뢰자"/>
  49. <Cell col="12" text="교육명"/>
  50. <Cell col="13" text="회신일자"/>
  51. <Cell col="14" text="회신자"/>
  52. <Cell col="15" text="상태"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell celltype="head" expr="currow+1"/>
  56. <Cell col="1" edittype="none" text="bind:wardnm"/>
  57. <Cell col="2" text="bind:roomcd"/>
  58. <Cell col="3" edittype="none" text="bind:deptnm"/>
  59. <Cell col="4" edittype="none" text="bind:pid"/>
  60. <Cell col="5" text="bind:hngnm"/>
  61. <Cell col="6" displaytype="combo" text="bind:sex" combodataset="ds_init_cmbinfo_sex_P0313" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  62. <Cell col="7" text="bind:age"/>
  63. <Cell col="8" displaytype="date" text="bind:indd" calendardisplaynulltype="nulltext"/>
  64. <Cell col="9" displaytype="date" text="bind:dschdclrdt" calendardisplaynulltype="nulltext"/>
  65. <Cell col="10" displaytype="date" text="bind:reqdd" calendardisplaynulltype="nulltext"/>
  66. <Cell col="11" text="bind:requsernm"/>
  67. <Cell col="12" text="bind:formnm"/>
  68. <Cell col="13" displaytype="date" text="bind:repldd" calendardisplaynulltype="nulltext"/>
  69. <Cell col="14" text="bind:recvusernm"/>
  70. <Cell col="15" text="bind:cnststatnm"/>
  71. </Band>
  72. </Format>
  73. </Formats>
  74. </Grid>
  75. <Shape id="line1" class="line_10" position="absolute 0 118 1194 124" anchor="left top right"/>
  76. <Div id="grp_sea" taborder="4" class="div_SA2" position="absolute 0 49 1194 89" anchor="left top right">
  77. <Layouts>
  78. <Layout>
  79. <Static id="caption2" text="기관(의뢰일) :" class="search_name" position="absolute 15 12 127 29" anchor="default"/>
  80. <Static id="caption5" text="~" class="search_no_b" position="absolute 233 13 245 30" anchor="default"/>
  81. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1104 10 1110 32" anchor="top right"/>
  82. <Calendar id="ipt_reqfromdd" taborder="2" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 130 11 230 30" anchor="default"/>
  83. <Calendar id="ipt_reqtodd" taborder="3" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 249 11 349 30" anchor="default"/>
  84. <CheckBox id="checkbox1" taborder="4" class="checkbox_search" position="absolute 364 11 484 31" anchor="default" text="교육한 환자 제외" truevalue="checkbox1" onclick="grp_sea_checkbox1_onclick"/>
  85. <CheckBox id="checkbox2" taborder="5" class="checkbox_search" position="absolute 499 11 619 31" anchor="default" text="퇴원한 환자 제외" truevalue="checkbox1" onclick="grp_sea_checkbox2_onclick"/>
  86. <Button id="btn_sea" taborder="6" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="grp_sea_btn_sea_onclick"/>
  87. <Edit id="output5" taborder="7" readonly="true" class="output" position="absolute 919 11 949 30" anchor="default"/>
  88. <Edit id="output6" taborder="8" readonly="true" class="output" position="absolute 952 11 982 30" anchor="default"/>
  89. <Edit id="ipt_pid" taborder="9" autoselect="true" autoskip="true" class="input_essential" position="absolute 734 11 834 30" anchor="default" onkeyup="grp_sea_ipt_pid_onkeyup"/>
  90. <Edit id="output17" taborder="10" readonly="true" class="output" position="absolute 836 11 916 30" anchor="default"/>
  91. <Static id="caption16" text="등록번호 :" class="search_name" position="absolute 645 12 731 29" anchor="default"/>
  92. <Button id="btn_pid" taborder="11" onclick="grp_sea_btn_pid_onclick" position="absolute 818 14 831 27" anchor="default"/>
  93. </Layout>
  94. </Layouts>
  95. </Div>
  96. <PopupMenu id="pmn_menu1" position="absolute 1215 99 1278 128" innerdataset="@ds_menu" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu1_onmenuclick"/>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="reqfromdd" type="STRING" size="256"/>
  103. <Column id="reqtodd" type="STRING" size="256"/>
  104. <Column id="dschyn" type="STRING" size="256"/>
  105. <Column id="cnststat" type="STRING" size="256"/>
  106. <Column id="pid" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row>
  110. <Col id="reqfromdd"/>
  111. <Col id="reqtodd"/>
  112. <Col id="dschyn"/>
  113. <Col id="cnststat"/>
  114. <Col id="pid"/>
  115. </Row>
  116. </Rows>
  117. </Dataset>
  118. <Dataset id="ds_main_hsctinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  119. <ColumnInfo>
  120. <Column id="hngnm" type="STRING" size="256"/>
  121. <Column id="rrgstno1" type="STRING" size="256"/>
  122. <Column id="age" type="STRING" size="256"/>
  123. <Column id="sex" type="STRING" size="256"/>
  124. <Column id="pid" type="STRING" size="256"/>
  125. <Column id="rrgstno2" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row>
  129. <Col id="hngnm"/>
  130. <Col id="rrgstno1"/>
  131. <Col id="age"/>
  132. <Col id="sex"/>
  133. <Col id="pid"/>
  134. <Col id="rrgstno2"/>
  135. </Row>
  136. </Rows>
  137. </Dataset>
  138. <Dataset id="ds_main_bmteducreq_bmteducreqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="wardnm" type="STRING" size="256" sumtext="병동명"/>
  141. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  142. <Column id="deptnm" type="STRING" size="256" sumtext="진료과명"/>
  143. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  144. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  145. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  146. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  147. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  148. <Column id="dschdclrdt" type="STRING" size="256" sumtext="퇴원예정일"/>
  149. <Column id="reqdd" type="STRING" size="256" sumtext="의뢰일자"/>
  150. <Column id="requsernm" type="STRING" size="256" sumtext="의뢰자명"/>
  151. <Column id="formnm" type="STRING" size="256" sumtext="의뢰명"/>
  152. <Column id="repldd" type="STRING" size="256" sumtext="회신일자"/>
  153. <Column id="recvusernm" type="STRING" size="256" sumtext="회신자명"/>
  154. <Column id="cnststatnm" type="STRING" size="256" sumtext="의뢰상태명"/>
  155. <Column id="cnststat" type="STRING" size="256" sumtext="의뢰상태"/>
  156. <Column id="cretno" type="INT" size="256" sumtext="원무등록번호"/>
  157. <Column id="reqdeptcd" type="STRING" size="256" sumtext="의뢰과코드"/>
  158. <Column id="requserid" type="STRING" size="256" sumtext="의뢰과의사ID"/>
  159. </ColumnInfo>
  160. </Dataset>
  161. <Dataset id="ds_init_cmbinfo_sex_P0313" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="cdnm" type="STRING" size="256"/>
  164. <Column id="cdid" type="STRING" size="256"/>
  165. </ColumnInfo>
  166. </Dataset>
  167. <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  168. <Dataset id="ds_temp_bmtpatientinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  169. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  170. <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  171. <ColumnInfo>
  172. <Column id="label" type="STRING" size="256"/>
  173. <Column id="func" type="STRING" size="256"/>
  174. <Column id="level" type="STRING" size="256"/>
  175. </ColumnInfo>
  176. <Rows>
  177. <Row>
  178. <Col id="func">fOpenPopupConsult</Col>
  179. <Col id="label">타과의뢰</Col>
  180. </Row>
  181. </Rows>
  182. </Dataset>
  183. </Objects>
  184. <Bind>
  185. <BindItem id="item0" compid="grp_sea.ipt_reqfromdd" propid="value" datasetid="ds_send_req" columnid="reqfromdd"/>
  186. <BindItem id="item1" compid="grp_sea.ipt_reqtodd" propid="value" datasetid="ds_send_req" columnid="reqtodd"/>
  187. <BindItem id="item2" compid="grp_sea.checkbox1" propid="value" datasetid="ds_send_req" columnid="dschyn"/>
  188. <BindItem id="item3" compid="grp_sea.checkbox2" propid="value" datasetid="ds_send_req" columnid="cnststat"/>
  189. <BindItem id="item4" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_send_req" columnid="pid"/>
  190. <BindItem id="item5" compid="grp_sea.output17" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="hngnm"/>
  191. <BindItem id="item6" compid="grp_sea.output5" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="age"/>
  192. <BindItem id="item7" compid="grp_sea.output6" propid="value" datasetid="ds_main_hsctinfo_patinfolist" columnid="sex"/>
  193. </Bind>
  194. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  195. * System Name :
  196. * Job Name :
  197. * Creator :
  198. * Make Date : 2015-11-13
  199. * Description :
  200. *---------------------------------------------------------------------------------------
  201. * Modify Date Modifier Modify Description
  202. *---------------------------------------------------------------------------------------
  203. * 2015-11-13 Live Converter TF->XP
  204. *
  205. *---------------------------------------------------------------------------------------
  206. ****************************************************************************************/
  207. include "com_commonxp::comm_main.xjs";
  208. include "ast_hsctxp::bmtcommon.xjs";
  209. function SMABO01600_oninit(obj:Form, e:InitEventInfo)
  210. {
  211. frmf_initForm(obj);
  212. }
  213. function SMABO01600_onload(obj:Form, e:LoadEventInfo)
  214. {
  215. grdf_initGrid(grd_edulist);
  216. var arrParam = [{dsNm: "ds_init_cmbinfo_sex_P0313", cdGrpId: "P0313"}]
  217. appf_getCodeList(arrParam);
  218. var reqfromdd = String(utlf_getCurrentDate()).substr(0,6).toDate().getAddDate(1,"D").getDateFormat("YYYYMMDD");
  219. ds_send_req.setColumn(0, "reqfromdd", reqfromdd);
  220. var reqtodd = String(utlf_getCurrentDate()).substr(0,6) + reqfromdd.toDate().getMonthDay();
  221. ds_send_req.setColumn(0, "reqtodd", reqtodd);
  222. if ( frmf_checkOpener())
  223. {
  224. var param = opener.frmf_getParameter("opener_parameter_id");
  225. if(!utlf_isNull(param))
  226. {
  227. condarray = param.split("▦");
  228. ds_send_req.setColumn(0, "pid", condarray[0]);
  229. return;
  230. }
  231. }
  232. var paminfo = sysf_getGlobalVariable("paminfo");
  233. if (!utlf_isNull(paminfo))
  234. {
  235. ds_temp_paminfo.clearData();
  236. dsf_setCSVToDs("ds_temp_paminfo", paminfo);
  237. var pid = ds_temp_paminfo.getColumn(0, "pid");
  238. ds_send_req.setColumn(0, "pid", pid);
  239. }
  240. else
  241. {
  242. var gv_pid = sysf_getGlobalVariable("gv_pid", "A");
  243. if(!utlf_isNull(gv_pid))
  244. {
  245. ds_send_req.setColumn(0, "pid", gv_pid);
  246. }
  247. }
  248. }
  249. function grp_sea_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  250. {
  251. if(obj.value == "checkbox1")
  252. {
  253. }
  254. else
  255. {
  256. ds_send_req.setColumn(0, "dschyn", "");
  257. }
  258. }
  259. function grp_sea_checkbox2_onclick(obj:CheckBox, e:ClickEventInfo)
  260. {
  261. if(obj.value == "checkbox1")
  262. {
  263. }
  264. else
  265. {
  266. ds_send_req.setColumn(0, "cnststat", "");
  267. }
  268. }
  269. function grp_sea_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  270. {
  271. if(e.keycode == 13)
  272. {
  273. obj.updateToDataset();
  274. grp_sea.btn_sea.click();
  275. }
  276. }
  277. function grp_sea_btn_pid_onclick(obj:Button, e:ClickEventInfo)
  278. {
  279. abofGetBmtPatientSearch("ds_main_hsctinfo_patinfolist", "ds_temp_bmtpatientinfo");
  280. ds_send_req.setColumn(0, "pid", ds_main_hsctinfo_patinfolist.getColumn(0, "pid"));
  281. }
  282. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  283. {
  284. var oParam = {};
  285. oParam.id = "TRABO00001";
  286. oParam.service = "hsctcoordinatorapp.HsctPatient";
  287. oParam.method = "reqGetPatientBaseInfo";
  288. oParam.inds = "req=ds_send_req";
  289. oParam.outds = "ds_main_hsctinfo_patinfolist=patinfolist";
  290. oParam.async = false;
  291. //oParam.callback = "cf_TRABO00001";
  292. tranf_submit(oParam);
  293. var oParam = {};
  294. oParam.id = "TRABO01601";
  295. oParam.service = "hsctcoordinatorapp.HsctPatient";
  296. oParam.method = "reqGetBmtEducReqList";
  297. oParam.inds = "req=ds_send_req";
  298. oParam.outds = "ds_main_bmteducreq_bmteducreqlist=bmteducreqlist";
  299. oParam.async = false;
  300. //oParam.callback = "cf_TRABO01601";
  301. tranf_submit(oParam);
  302. }
  303. function btn_prt_onclick(obj:Button, e:ClickEventInfo)
  304. {
  305. var objDOM = rptf_createDOM();
  306. var objParam = new Object();
  307. rptf_setNodeListToDOM(objDOM, "/root/main/bmteducreq/bmteducreqlist" , ds_main_bmteducreq_bmteducreqlist);
  308. rptf_setNodeListToDOM(objDOM, "/root/send/req" , ds_send_req);
  309. objParam.xml_data_XML1 = objDOM.documentElement.source;
  310. var option = "";
  311. rptf_exeReportPreview30(["RPABO01601"],[objParam], option);
  312. }
  313. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  314. {
  315. grdf_exportExcel(grd_edulist, "교육의뢰리스트", "see", "false");
  316. }
  317. function grd_edulist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  318. {
  319. pmn_menu1.trackPopup(e.screenX,e.screenY);
  320. }
  321. function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  322. {
  323. eval(e.id +"();");
  324. }
  325. function fOpenPopupConsult()
  326. {
  327. var iselectrow = ds_main_bmteducreq_bmteducreqlist.rowposition;
  328. var spid = ds_main_bmteducreq_bmteducreqlist.getColumn(iselectrow, "pid");
  329. var sorddd = ds_main_bmteducreq_bmteducreqlist.getColumn(iselectrow, "indd");
  330. var scretno = ds_main_bmteducreq_bmteducreqlist.getColumn(iselectrow, "cretno");
  331. var sorddeptcd = ds_main_bmteducreq_bmteducreqlist.getColumn(iselectrow, "reqdeptcd");
  332. var srequserid = ds_main_bmteducreq_bmteducreqlist.getColumn(iselectrow, "requserid");
  333. var sflag = spid + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "" + "▦" + "";
  334. frmf_setParameter("SMMMR05000_param_pinfo", sflag);
  335. frmf_modal("SMMMR05000", "SMMMR05000", "", "", "", "", "", "", "", "", "", "", "M");
  336. }]]></Script>
  337. </Form>
  338. </FDL>