SMZMI00501_메시지전체조회.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMZMI00501" position="absolute 0 0 1256 805" titletext="메시지 전체조회" onload="SMZMI00501_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" position="absolute 0 25 1256 67" style="align:center top;" anchor="left top right" positiontype="position" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption21" class="search_name" position="absolute 8 10 56 30" anchor="default" text="구분" onclick="grp_sea_caption21_onclick" positiontype="position"/>
  11. <Button id="btn_select" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" text="조회" onclick="grp_sea_btn_select_onclick" positiontype="position"/>
  12. <Static id="caption00" text="메시지 타입" class="search_name" position="absolute 254 10 354 30" anchor="default"/>
  13. <Static id="caption01" text="검색어" class="search_name" position="absolute 514 10 575 30" anchor="default"/>
  14. <Edit id="ipt_value" taborder="1" class="input_search" position="absolute 575 10 716 30" lengthunit="utf8" anchor="default" imemode="hangul" onkeyup="grp_sea_ipt_value_onkeyup"/>
  15. <Combo id="cmb_stype" taborder="2" class="combo_s_essential" position="absolute 57 10 230 30" onitemchanged="grp_sea_cmb_bizabbr_onitemchanged" anchor="default" innerdataset="@ds_bizabbr" codecolumn="cdid" datacolumn="cdnm"/>
  16. <Combo id="cmb_srank" taborder="3" class="combo_s_essential" position="absolute 346 10 490 30" innerdataset="@ds_msgtype" codecolumn="cdid" datacolumn="cdnm" anchor="default" onitemchanged="grp_sea_cmb_srank_onitemchanged"/>
  17. <Static id="caption02" text="시작일" class="search_name" position="absolute 740 10 801 30" anchor="default"/>
  18. <Static id="caption03" text="종료일" class="search_name" position="absolute 925 10 986 30" anchor="default"/>
  19. <Calendar id="cp_fromdd" taborder="4" dateformat="yyyy-MM-dd" position="absolute 803 10 903 30"/>
  20. <Calendar id="cp_todd" taborder="5" dateformat="yyyy-MM-dd" position="absolute 987 10 1087 30"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Static id="caption48" class="tit_2" position="absolute 0 77 125 97" anchor="default" positiontype="position" text="메시지 조회 목록"/>
  25. <Shape id="line20" class="line_1" position="absolute 0 70 1194 70" anchor="default" positiontype="position" linetype="horizontal"/>
  26. <Static id="caption6" text="Instant 메시지 관리" class="tit_1" position="absolute 0 0 150 25"/>
  27. <Static id="caption1" text="메시지 내용" class="tit_2" position="absolute 0 637 93 657" anchor="left bottom"/>
  28. <Grid id="grd_msglist" taborder="29" useinputpanel="false" position="absolute 0 97 1256 627" binddataset="ds_msglist" scrollbars="autovert" anchor="all" autosizingtype="none" cellsizingtype="both" autofittype="col">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="63"/>
  33. <Column size="63"/>
  34. <Column size="93"/>
  35. <Column size="65"/>
  36. <Column size="64"/>
  37. <Column size="44"/>
  38. <Column size="397"/>
  39. <Column size="70"/>
  40. <Column size="70"/>
  41. <Column size="122"/>
  42. <Column size="60"/>
  43. <Column size="69"/>
  44. <Column size="75"/>
  45. </Columns>
  46. <Rows>
  47. <Row size="22" band="head"/>
  48. <Row size="20"/>
  49. </Rows>
  50. <Band id="head">
  51. <Cell text="송신자명"/>
  52. <Cell col="1" text="송신자ID"/>
  53. <Cell col="2" text="송신자연락처"/>
  54. <Cell col="3" text="수신자명"/>
  55. <Cell col="4" text="수신자ID"/>
  56. <Cell col="5" text="타입"/>
  57. <Cell col="6" text="메시지내용" edittrimtype="left" autosizecol="default"/>
  58. <Cell col="7" text="환자ID"/>
  59. <Cell col="8" text="환자명"/>
  60. <Cell col="9" text="메시지 전송일"/>
  61. <Cell col="10" text="수신여부"/>
  62. <Cell col="11" text="송신자삭제"/>
  63. <Cell col="12" style="align:left;" text=" 수신자삭제"/>
  64. </Band>
  65. <Band id="body">
  66. <Cell edittype="none" text="bind:trsmrnm" editlengthunit="utf8"/>
  67. <Cell col="1" edittype="none" editfilter="none" text="bind:trsmrid" editacceptsenter="true" editlimitbymask="decimal" editlengthunit="utf8"/>
  68. <Cell col="2" displaytype="normal" edittype="none" editfilter="none" style="align:center;" text="bind:mpphonno" maskchar="_" edittrimtype="none" editlimitbymask="integer" editlengthunit="utf8" suppressalign="first" combodisplaynulltype="none" combodisplay="edit" calendardisplaynulltype="none" tooltiptype="none"/>
  69. <Cell col="3" text="bind:recvrnm"/>
  70. <Cell col="4" text="bind:recvrid"/>
  71. <Cell col="5" text="bind:msgrank"/>
  72. <Cell col="6" style="align:left middle;" text="bind:msgcnts" edittrimtype="none" editscrollbar="none" editdisplay="edit" editlengthunit="utf8" expandsize="0" suppressedit="false" autosizerow="none" autosizecol="none"/>
  73. <Cell col="7" text="bind:pid"/>
  74. <Cell col="8" text="bind:patnm"/>
  75. <Cell col="9" displaytype="date" text="bind:trsmreqdt" mask="yyyy-MM-dd HH:mm:ss" combodisplaynulltext=" " calendardisplaynulltext=" " calendardisplaynulltype="none"/>
  76. <Cell col="10" text="bind:recvcnfmyn"/>
  77. <Cell col="11" text="bind:trsmrdelyn"/>
  78. <Cell col="12" text="bind:recvrdelyn"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Button id="bt_excelsave" taborder="45" text="엑셀저장" onlbuttonup="&quot;btn_excsave_onlbuttonup&quot;" class="btn2" position="absolute 1188 74 1256 94" anchor="top right" onclick="btn_excsave_onclick"/>
  84. <Static id="Static01" position="absolute 0 657 1256 805" class="sta_DA_box" anchor="left right bottom"/>
  85. <Static id="cap_msgcnts07" text="송신자 연락번호" class="cell_1" position="absolute 521 658 621 682" anchor="left bottom"/>
  86. <Static id="cap_msgcnts08" text="송신자명" class="cell_1" position="absolute 1 658 101 682" anchor="left bottom"/>
  87. <Static id="cap_msgcnts09" text="메시지 타입" class="cell_1" position="absolute 1 683 101 707" anchor="left bottom"/>
  88. <Static id="caption00" text="메시지 내용" onclick="caption19_onclick" class="cell_1" position="absolute 1 708 101 779" anchor="left bottom"/>
  89. <Static id="cap_msgcd00" text="수신자명" class="cell_1" position="absolute 781 658 881 682" anchor="left bottom"/>
  90. <Static id="caption02" text="수신자 삭제여부" class="cell_1" position="absolute 625 780 725 804" style="align:left middle;" anchor="left bottom"/>
  91. <Static id="caption03" text="메시지 전송일" onclick="caption10_onclick" class="cell_1" position="absolute 781 683 881 707" style="align:left middle;" anchor="left bottom"/>
  92. <Static id="caption05" text="메시지 수신 여부" class="cell_1" position="absolute 1 780 101 804" style="align:left middle;" anchor="left bottom"/>
  93. <Static id="caption07" text="송신자 삭제여부" class="cell_1" position="absolute 317 780 417 804" style="align:left middle;" anchor="left bottom"/>
  94. <Static id="cap_msgcnts10" text="환자명" class="cell_1" position="absolute 261 683 361 707" anchor="left bottom"/>
  95. <Static id="cap_msgcnts11" text="환자 ID" onclick="cap_msgcnts04_onclick" class="cell_1" position="absolute 521 683 621 707" anchor="left bottom"/>
  96. <Static id="cap_msgcnts12" text="송신자 ID" onclick="cap_msgcnts05_onclick" class="cell_1" position="absolute 261 658 361 682" anchor="left bottom"/>
  97. <Static id="cap_msgcnts13" text="수신자 ID" class="cell_1" position="absolute 985 658 1085 682" anchor="left bottom"/>
  98. <Edit id="ipt_trsmrnm00" taborder="46" readonly="true" lengthunit="utf8" class="input_default" position="absolute 104 660 258 680" style="selectcolor:white;align:center middle;" anchor="left bottom"/>
  99. <Edit id="ipt_msgtype00" taborder="47" readonly="true" lengthunit="utf8" class="input_default" position="absolute 104 685 258 705" style="selectcolor:white;align:center middle;" anchor="left bottom"/>
  100. <Edit id="ipt_mpphonno00" taborder="50" readonly="true" lengthunit="utf8" class="input_default" position="absolute 624 660 778 680" style="selectcolor:white;align:center middle;" anchor="left bottom"/>
  101. <Edit id="ipt_pid00" taborder="51" readonly="true" lengthunit="utf8" class="input_default" position="absolute 624 685 778 705" style="selectcolor:white;align:center middle;" anchor="left bottom"/>
  102. <Edit id="ipt_recvrnm00" taborder="52" readonly="true" lengthunit="utf8" class="input_default" position="absolute 884 660 982 680" style="selectcolor:white;align:center middle;" anchor="left bottom"/>
  103. <Edit id="ipt_recvrid00" taborder="54" readonly="true" lengthunit="utf8" class="input_default" position="absolute 1088 660 1252 680" style="selectcolor:white;align:center middle;" anchor="left right bottom"/>
  104. <TextArea id="tar_msgcnts00" taborder="55" readonly="true" class="input_default" position="absolute 104 710 1252 777" style="selectcolor:white;accessibility:disable all '' ''; :disabled {accessibility:disable all '' '';}" anchor="left right bottom"/>
  105. <Edit id="ipt_recvcnfmyn00" taborder="56" readonly="true" lengthunit="utf8" class="input_default" position="absolute 104 782 314 802" style="selectcolor:white;align:center middle;" anchor="left bottom"/>
  106. <Edit id="ipt_trsmrdelyn00" taborder="57" readonly="true" lengthunit="utf8" class="input_default" position="absolute 420 782 622 802" style="selectcolor:white;align:center middle;" anchor="left bottom"/>
  107. <Edit id="ipt_recvrdelyn00" taborder="58" readonly="true" lengthunit="utf8" class="input_default" position="absolute 728 782 1252 802" style="selectcolor:white;align:center middle;" anchor="left right bottom"/>
  108. <Edit id="ipt_trsmrid" taborder="59" readonly="true" lengthunit="utf8" class="input_default" position="absolute 364 660 518 680" anchor="left bottom" style="selectcolor:white;align:center middle;"/>
  109. <Edit id="ipt_patnm" taborder="60" readonly="true" lengthunit="utf8" class="input_default" position="absolute 364 685 518 705" anchor="left bottom" style="selectcolor:white;align:center middle;"/>
  110. <MaskEdit id="ipt_trsmreqdt" taborder="61" position="absolute 884 685 1252 705" class="input_default" type="string" mask="@@@@-@@-@@ @@:@@:@@" style="align:center middle;" displaynulltext=" " readonly="true" anchor="left right bottom"/>
  111. </Layout>
  112. </Layouts>
  113. <Objects>
  114. <Dataset id="ds_msgtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="cdid" type="STRING" size="256"/>
  117. <Column id="cdnm" type="STRING" size="256"/>
  118. </ColumnInfo>
  119. <Rows>
  120. <Row>
  121. <Col id="cdnm">전체</Col>
  122. <Col id="cdid">0</Col>
  123. </Row>
  124. <Row>
  125. <Col id="cdid">3</Col>
  126. <Col id="cdnm">일반</Col>
  127. </Row>
  128. <Row>
  129. <Col id="cdid">2</Col>
  130. <Col id="cdnm">보험</Col>
  131. </Row>
  132. <Row>
  133. <Col id="cdid">1</Col>
  134. <Col id="cdnm">응급</Col>
  135. </Row>
  136. </Rows>
  137. </Dataset>
  138. <Dataset id="ds_bizabbr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  139. <ColumnInfo>
  140. <Column id="cdid" type="STRING" size="256"/>
  141. <Column id="cdnm" type="STRING" size="256"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row>
  145. <Col id="cdid">all</Col>
  146. <Col id="cdnm">전체</Col>
  147. </Row>
  148. <Row>
  149. <Col id="cdid">trsmrnm</Col>
  150. <Col id="cdnm">송신자명</Col>
  151. </Row>
  152. <Row>
  153. <Col id="cdid">trsmrid</Col>
  154. <Col id="cdnm">송신자ID</Col>
  155. </Row>
  156. <Row>
  157. <Col id="cdid">recvrnm</Col>
  158. <Col id="cdnm">수신자명</Col>
  159. </Row>
  160. <Row>
  161. <Col id="cdid">recvrid</Col>
  162. <Col id="cdnm">수신자ID</Col>
  163. </Row>
  164. <Row>
  165. <Col id="cdid">pnm</Col>
  166. <Col id="cdnm">환자명</Col>
  167. </Row>
  168. <Row>
  169. <Col id="cdid">pid</Col>
  170. <Col id="cdnm">환자ID</Col>
  171. </Row>
  172. </Rows>
  173. </Dataset>
  174. <Dataset id="ds_msglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="trsmrnm" type="STRING" size="256"/>
  177. <Column id="trsmrid" type="STRING" size="256"/>
  178. <Column id="mpphonno" type="STRING" size="256"/>
  179. <Column id="recvrnm" type="STRING" size="256"/>
  180. <Column id="recvrid" type="STRING" size="256"/>
  181. <Column id="msgrank" type="STRING" size="256"/>
  182. <Column id="msgcnts" type="STRING" size="256"/>
  183. <Column id="pid" type="STRING" size="256"/>
  184. <Column id="patnm" type="STRING" size="256"/>
  185. <Column id="trsmreqdt" type="STRING" size="256"/>
  186. <Column id="recvcnfmyn" type="STRING" size="256"/>
  187. <Column id="trsmrdelyn" type="STRING" size="256"/>
  188. <Column id="recvrdelyn" type="STRING" size="256"/>
  189. </ColumnInfo>
  190. </Dataset>
  191. </Objects>
  192. <Bind>
  193. <BindItem id="item13" compid="ipt_trsmrnm00" propid="value" datasetid="ds_msglist" columnid="trsmrnm"/>
  194. <BindItem id="item14" compid="ipt_msgtype00" propid="value" datasetid="ds_msglist" columnid="msgrank"/>
  195. <BindItem id="item17" compid="ipt_mpphonno00" propid="value" datasetid="ds_msglist" columnid="mpphonno"/>
  196. <BindItem id="item18" compid="ipt_pid00" propid="value" datasetid="ds_msglist" columnid="pid"/>
  197. <BindItem id="item19" compid="ipt_recvrnm00" propid="value" datasetid="ds_msglist" columnid="recvrnm"/>
  198. <BindItem id="item21" compid="ipt_recvrid00" propid="value" datasetid="ds_msglist" columnid="recvrid"/>
  199. <BindItem id="item22" compid="tar_msgcnts00" propid="value" datasetid="ds_msglist" columnid="msgcnts"/>
  200. <BindItem id="item23" compid="ipt_recvcnfmyn00" propid="value" datasetid="ds_msglist" columnid="recvcnfmyn"/>
  201. <BindItem id="item24" compid="ipt_trsmrdelyn00" propid="value" datasetid="ds_msglist" columnid="trsmrdelyn"/>
  202. <BindItem id="item25" compid="ipt_recvrdelyn00" propid="value" datasetid="ds_msglist" columnid="recvrdelyn"/>
  203. <BindItem id="item0" compid="ipt_trsmrid" propid="value" datasetid="ds_msglist" columnid="trsmrid"/>
  204. <BindItem id="item1" compid="ipt_patnm" propid="value" datasetid="ds_msglist" columnid="patnm"/>
  205. <BindItem id="item2" compid="ipt_trsmreqdt" propid="value" datasetid="ds_msglist" columnid="trsmreqdt"/>
  206. </Bind>
  207. <Script type="xscript4.0"><![CDATA[/************************************************************************************************
  208. * 파 일 명 : SMZMI00501_메시지전체조회.xfdl
  209. * 작 성 자 : 오은비
  210. * 작 성 일 : 2014.03.06
  211. * 설 명 : 메시지전체조회
  212. * 수 정 자 :
  213. * 수정이력 :
  214. ************************************************************************************************/
  215. include "com_commonxp::comm_main.xjs"
  216. /******************************* Form Variable *************************************************/
  217. /************************************************************************************************
  218. ******************************** Form Event ****************************************************
  219. ************************************************************************************************/
  220. function grp_sea_btn_select_onclick(obj:Button, e:ClickEventInfo)
  221. {
  222. lf_Search();
  223. }
  224. function grp_sea_cmb_bizabbr_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  225. {
  226. grp_sea.ipt_value.setFocus();
  227. grp_sea.ipt_value.setSelect();
  228. }
  229. function grp_sea_cmb_srank_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  230. {
  231. grp_sea.ipt_value.setFocus();
  232. grp_sea.ipt_value.setSelect();
  233. }
  234. function grp_sea_ipt_value_onkeyup(obj:Edit, e:KeyEventInfo)
  235. {
  236. if (e.keycode=='13') {
  237. lf_Search();
  238. }
  239. }
  240. function SMZMI00501_onload(obj:Form, e:LoadEventInfo)
  241. {
  242. frmf_initForm(obj);
  243. lf_init();
  244. }
  245. /************************************************************************************************
  246. Form Function
  247. ************************************************************************************************/
  248. function lf_init()
  249. {
  250. /* 버튼 권한 설정
  251. R : Readonly
  252. X : Read Write
  253. P : Print */
  254. grp_sea.btn_select.enable = frmf_checkAuth("X");
  255. bt_excelsave.enable = frmf_checkAuth("X");
  256. grp_sea.cmb_stype.index = 0;
  257. grp_sea.cmb_srank.index = 0;
  258. //현재날짜설정
  259. grp_sea.cp_todd.value = utlf_getCurrentDate();
  260. grp_sea.cp_fromdd.value = utlf_getRemoveFormatter(utlf_date2Str(utlf_getCurrentDate().toDate("YYYYMMDD").getAddDate(-1)));
  261. }
  262. /********************************************************************************
  263. * 설 명 : 조회 함수.
  264. * argument :
  265. ********************************************************************************/
  266. function lf_Search()
  267. {
  268. if(!lf_CheckDate()) return;
  269. var sInDsName = dsf_createDsRow("ds_search"
  270. ,[{col: "stype" , val: grp_sea.cmb_stype.value }
  271. , {col: "value" , val: grp_sea.ipt_value.value }
  272. , {col: "fromdd", val: grp_sea.cp_fromdd.value }
  273. , {col: "todd" , val: grp_sea.cp_todd.value }
  274. , {col: "srank" , val: grp_sea.cmb_srank.value }]);
  275. ds_msglist.clearData();
  276. tranf_submit({
  277. id: "TRZMI00106"
  278. , service: "instantmsgapp.InstantMsg"
  279. , method: "reqGetWholeMsg"
  280. , inds : "req="+sInDsName
  281. , outds: "ds_msglist=msglist"
  282. , async: true
  283. });
  284. }
  285. /********************************************************************************
  286. * 설 명 : 날짜체크함수
  287. * argument :
  288. ********************************************************************************/
  289. function lf_CheckDate()
  290. {
  291. // todd보다 작은값
  292. if (grp_sea.cp_todd.value < grp_sea.cp_fromdd.value) {
  293. alert("시작일을 종료일보다 크게 입력하였습니다. ");
  294. return false;
  295. }
  296. return true;
  297. }
  298. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  299. {
  300. // 엑셀저장(Grid명,파일명,탭명)
  301. grdf_exportExcel(grd_msglist, "메시지전체조회" , "메시지전체조회");
  302. }
  303. ]]></Script>
  304. </Form>
  305. </FDL>