SMMNS02000_SMS전송.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNS02000" position="absolute 0 0 615 335" titletext="SMS 전송" oninit="SMMNS02000_oninit" onload="SMMNS02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 611 307" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="상용문구 리스트" position="absolute 0 9 118 25" id="caption7" class="tit_2" anchor="default"/>
  11. <TextArea position="absolute 290 30 430 190" align="align:left top;" id="textarea1" autoselect="true" anchor="default" wordwrap="word"/>
  12. <Shape position="absolute 290 301 611 307" linetype="horizontal" id="line4" class="line_3" anchor="default"/>
  13. <Shape position="absolute 0 25 611 31" linetype="horizontal" id="line5" class="line_10" anchor="default"/>
  14. <Grid position="absolute 0 30 285 305" id="grd_baselist" binddataset="ds_main_basecodelist_basecodelistinfo" anchor="default" oncellclick="group3_grd_baselist_oncellclick" extendsizetype="row" autosizingtype="row">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="20" band="left"/>
  19. <Column size="0"/>
  20. <Column size="245"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" text="전송구분"/>
  34. <Cell col="2" text="상세내용"/>
  35. <Cell col="3" text="caption1"/>
  36. <Cell col="4" text="caption2"/>
  37. <Cell col="5" text="caption3"/>
  38. <Cell col="6" text="caption4"/>
  39. <Cell col="7" text="caption5"/>
  40. </Band>
  41. <Band id="body">
  42. <Cell celltype="head"/>
  43. <Cell col="1" text="bind:basetypenm"/>
  44. <Cell col="2" displaytype="text" edittype="textarea" text="bind:typenm" wordwrap="word" editlimit="80" editautoskip="true" autosizerow="limitmin"/>
  45. <Cell col="3" text="bind:basetypecd"/>
  46. <Cell col="4" text="bind:baseclsflag"/>
  47. <Cell col="5" text="bind:supbasetypecd"/>
  48. <Cell col="6" text="bind:cdcls"/>
  49. <Cell col="7" text="bind:orddeptcd"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Button position="absolute 240 5 282 24" id="button6" class="btn2" visible="true" text="저장" anchor="default" onclick="group3_button6_onclick"/>
  55. <Static text="전송 내용" position="absolute 290 9 403 25" align="align:center middle;" id="caption66" class="tit_2" anchor="default"/>
  56. <Shape position="absolute 290 195 611 201" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
  57. <Button position="absolute 580 130 596 146" id="button10" class="icon_clock" text="" anchor="default" onclick="group3_button10_onclick"/>
  58. <Calendar position="absolute 440 130 528 149" id="ipt_rsvdd" class="input_search" autoskip="true" anchor="default"/>
  59. <MaskEdit position="absolute 535 130 574 149" id="ipt_rsvtm" class="input_default" mask="##:##" autoselect="true" type="string" maskchar=" " displaynulltext=" " trimtype="both" anchor="default"/>
  60. <Radio position="absolute 440 80 537 123" id="rdo_dt" columncount="1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_rdo_dt_onitemchanged">
  61. <Dataset id="innerdataset">
  62. <ColumnInfo>
  63. <Column id="codecolumn"/>
  64. <Column id="datacolumn"/>
  65. </ColumnInfo>
  66. <Rows>
  67. <Row>
  68. <Col id="codecolumn">0</Col>
  69. <Col id="datacolumn">즉시전송</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">1</Col>
  73. <Col id="datacolumn">예약일시 전송</Col>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. </Radio>
  78. <Button position="absolute 195 5 237 24" id="button1" class="btn2" visible="true" text="삭제" anchor="default" onclick="group3_button1_onclick"/>
  79. <Grid position="absolute 290 200 611 302" id="grd_manalist" binddataset="ds_main_opatlist_opatlist" anchor="default" oncellclick="group3_grd_manalist_oncellclick" onexpandup="group3_grd_manalist_onexpandup" autoenter="select">
  80. <Formats>
  81. <Format id="default">
  82. <Columns>
  83. <Column size="20" band="left"/>
  84. <Column size="78"/>
  85. <Column size="88"/>
  86. <Column size="134"/>
  87. <Column size="0"/>
  88. </Columns>
  89. <Rows>
  90. <Row size="24" band="head"/>
  91. <Row size="24"/>
  92. </Rows>
  93. <Band id="head">
  94. <Cell/>
  95. <Cell col="1" text="등록번호"/>
  96. <Cell col="2" text="환자명"/>
  97. <Cell col="3" text="HP"/>
  98. <Cell col="4" text="cretno"/>
  99. </Band>
  100. <Band id="body">
  101. <Cell celltype="head" expr="expr:currow + 1"/>
  102. <Cell col="1" displaytype="text" edittype="text" text="bind:pid" expandshow="show"/>
  103. <Cell col="2" text="bind:hngnm"/>
  104. <Cell col="3" displaytype="text" edittype="text" text="bind:mpphontel"/>
  105. <Cell col="4" text="bind:cretno"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Button position="absolute 150 5 192 24" id="button2" class="btn2" visible="true" text="추가" anchor="default" onclick="group3_button2_onclick"/>
  111. <Button position="absolute 553 175 606 194" id="button11" class="btn2" text="행삭제" anchor="default" onclick="group3_button11_onclick"/>
  112. <Button position="absolute 495 175 548 194" id="button3" class="btn2" text="행추가" anchor="default" onclick="group3_button3_onclick"/>
  113. </Layout>
  114. </Layouts>
  115. </Div>
  116. <Div position="absolute 0 305 611 332" id="grp_btn" scrollbars="autoboth">
  117. <Layouts>
  118. <Layout>
  119. <Button position="absolute 555 5 611 27" id="button9" class="btn4" text="취소" onclick="grp_btn_button9_onclick"/>
  120. <Shape position="absolute 0 0 611 6" linetype="horizontal" id="line32" class="line_6"/>
  121. <Button position="absolute 495 5 551 27" id="button4" class="btn4" text="전송" onclick="grp_btn_button4_onclick"/>
  122. </Layout>
  123. </Layouts>
  124. </Div>
  125. </Layout>
  126. </Layouts>
  127. <Objects>
  128. <Dataset id="ds_main_opatlist_opatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="pid" type="STRING"/>
  131. <Column id="hngnm" type="STRING"/>
  132. <Column id="mpphontel" type="STRING"/>
  133. <Column id="cretno" type="STRING"/>
  134. </ColumnInfo>
  135. </Dataset>
  136. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="supbasetypecd" type="STRING" size="256" sumtext="선택한인덱스코드"/>
  139. <Column id="basetypecd" type="STRING" size="256" sumtext="선택한인덱스코드"/>
  140. <Column id="baseclsflag" type="STRING" size="256" sumtext="기준분류코드"/>
  141. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
  142. <Column id="rsrvyn" type="STRING" size="256"/>
  143. <Column id="rsrvdate" type="STRING" size="256"/>
  144. <Column id="rsrvtime" type="STRING" size="256"/>
  145. <Column id="msgparam" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. <Rows>
  148. <Row/>
  149. </Rows>
  150. </Dataset>
  151. <Dataset id="ds_main_basecodelist_basecodelistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  152. <ColumnInfo>
  153. <Column id="basetypecd" type="STRING" size="256" sumtext="기준형태코드"/>
  154. <Column id="baseclsflag" type="STRING" size="256" sumtext="기준분류코드"/>
  155. <Column id="supbasetypecd" type="STRING" size="256" sumtext="분류상위코드"/>
  156. <Column id="cdcls" type="STRING" size="256" sumtext="코드분류"/>
  157. <Column id="typenm" type="STRING" size="256" sumtext="형태명칭"/>
  158. <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
  159. <Column id="basetypenm" type="STRING" size="256" sumtext="기준형태명"/>
  160. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. <Dataset id="ds_send_msgdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  166. <Column id="basetypecd" type="STRING" size="256" sumtext="기준형태코드"/>
  167. <Column id="baseclsflag" type="STRING" size="256" sumtext="기준분류코드"/>
  168. <Column id="supbasetypecd" type="STRING" size="256" sumtext="분류상위코드"/>
  169. <Column id="cdcls" type="STRING" size="256" sumtext="코드분류"/>
  170. <Column id="typenm" type="STRING" size="256" sumtext="형태명칭"/>
  171. <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
  172. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서코드"/>
  173. </ColumnInfo>
  174. </Dataset>
  175. <Dataset id="ds_send_opatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="acptyn" type="STRING" size="256" sumtext="접수구분"/>
  178. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  179. <Column id="ordtm" type="STRING" size="256" sumtext="예약일시"/>
  180. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  181. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  182. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  183. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사"/>
  184. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  185. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  186. </ColumnInfo>
  187. </Dataset>
  188. <Dataset id="ds_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  189. <ColumnInfo>
  190. <Column id="item" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row/>
  194. </Rows>
  195. </Dataset>
  196. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="rsrvyn" type="STRING" size="256"/>
  199. <Column id="rsrvdate" type="STRING" size="256"/>
  200. <Column id="rsrvtime" type="STRING" size="256"/>
  201. <Column id="baseclsflag" type="STRING" size="256"/>
  202. <Column id="supbasetypecd" type="STRING" size="256"/>
  203. <Column id="orddeptcd" type="STRING" size="256"/>
  204. </ColumnInfo>
  205. <Rows>
  206. <Row/>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_temp_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  210. <Dataset id="ds_data_rtn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  211. </Objects>
  212. <Bind>
  213. <BindItem id="item0" compid="group3.textarea1" propid="value" datasetid="ds_item" columnid="item"/>
  214. <BindItem id="item1" compid="group3.rdo_dt" propid="value" datasetid="ds_main_cond" columnid="rsrvyn"/>
  215. <BindItem id="item2" compid="group3.ipt_rsvdd" propid="value" datasetid="ds_main_cond" columnid="rsrvdate"/>
  216. <BindItem id="item3" compid="group3.ipt_rsvtm" propid="value" datasetid="ds_main_cond" columnid="rsrvtime"/>
  217. </Bind>
  218. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  219. * System Name : 경대 의료정보시스템
  220. * Job Name : emr_spclcarexp -> SMMNS02000
  221. * Creator : yjh
  222. * Make Date : 2017-09-18
  223. * Description :
  224. *---------------------------------------------------------------------------------------
  225. * Modify Date Modifier Modify Description
  226. *---------------------------------------------------------------------------------------
  227. * 2017-09-18 yjh TF->XP
  228. *
  229. *---------------------------------------------------------------------------------------
  230. ****************************************************************************************/
  231. //=======================================================================================
  232. // Lib Include
  233. //---------------------------------------------------------------------------------------
  234. include "com_commonxp::comm_main.xjs";
  235. include "emr_spclcarexp::SMMNS02000.xjs";
  236. include "emr_spclcarexp::MNS001.xjs";
  237. //=======================================================================================
  238. // Global Form Variable
  239. //---------------------------------------------------------------------------------------
  240. var arErrorCode = new HashArray();
  241. //=======================================================================================
  242. // Function
  243. //---------------------------------------------------------------------------------------
  244. //=======================================================================================
  245. // Event
  246. //---------------------------------------------------------------------------------------
  247. /****************************************************************************************
  248. * Components : Form
  249. * Components ID : SMMNS02000
  250. * Event : oninit
  251. * Argument : 01.obj : Object Event has occurred
  252. * : 02.e : Event Object
  253. * Description : 화면 처음 초기화시
  254. ****************************************************************************************/
  255. function SMMNS02000_oninit(obj:Form, e:InitEventInfo)
  256. {
  257. frmf_initForm(obj); //폼 초기화
  258. }
  259. /****************************************************************************************
  260. * Components : Form
  261. * Components ID : SMMNS02000
  262. * Event : onload
  263. * Argument : 01.obj : Object Event has occurred
  264. * : 02.e : Event Object
  265. * Description : 화면 로딩 완료시
  266. ****************************************************************************************/
  267. function SMMNS02000_onload(obj:Form, e:LoadEventInfo)
  268. {
  269. ds_main_cond.setColumn(0, "rsrvyn", "0");
  270. grdf_setRowTypeIcon(group3.grd_baselist, 0);
  271. fInitialize();
  272. }
  273. /****************************************************************************************
  274. * Components : Button
  275. * Components ID : button6
  276. * Event : onclick
  277. * Argument : 01.obj : Object Event has occurred
  278. * : 02.e : Event Object
  279. * Description : 저장버튼 클릭시
  280. ****************************************************************************************/
  281. function group3_button6_onclick(obj:Button, e:ClickEventInfo)
  282. {
  283. fSave("I");
  284. }
  285. /****************************************************************************************
  286. * Components : Button
  287. * Components ID : button10
  288. * Event : onclick
  289. * Argument : 01.obj : Object Event has occurred
  290. * : 02.e : Event Object
  291. * Description : 시계버튼 클릭시
  292. ****************************************************************************************/
  293. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  294. {
  295. fAutoSeldt();
  296. }
  297. /****************************************************************************************
  298. * Components : Radio
  299. * Components ID : rdo_dt
  300. * Event : onitemchanged
  301. * Argument : 01.obj : Object Event has occurred
  302. * : 02.e : Event Object
  303. * Description : 라디오 값 변경시
  304. ****************************************************************************************/
  305. function group3_rdo_dt_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  306. {
  307. fAutoSeldt();
  308. }
  309. /****************************************************************************************
  310. * Components : Button
  311. * Components ID : button1
  312. * Event : onclick
  313. * Argument : 01.obj : Object Event has occurred
  314. * : 02.e : Event Object
  315. * Description : 삭제버튼 클릭시
  316. ****************************************************************************************/
  317. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  318. {
  319. fDelete(ds_main_basecodelist_basecodelistinfo.rowposition);
  320. }
  321. /****************************************************************************************
  322. * Components : Grid
  323. * Components ID : grd_manalist
  324. * Event : oncellclick
  325. * Argument : 01.obj : Object Event has occurred
  326. * : 02.e : Event Object
  327. * Description : 그리드 셀 클릭시
  328. ****************************************************************************************/
  329. function group3_grd_manalist_oncellclick(obj:Grid, e:GridClickEventInfo)
  330. {
  331. var iRow = ds_main_basecodelist_basecodelistinfo.rowposition;
  332. if(iRow < 0) return;
  333. ds_item.setColumn(0, "item", ds_main_basecodelist_basecodelistinfo.getColumn(iRow, "typenm"));
  334. }
  335. /****************************************************************************************
  336. * Components : Grid
  337. * Components ID : grd_manalist
  338. * Event : onexpandup
  339. * Argument : 01.obj : Object Event has occurred
  340. * : 02.e : Event Object
  341. * Description : expand버튼 클릭시
  342. ****************************************************************************************/
  343. function group3_grd_manalist_onexpandup(obj:Grid, e:GridMouseEventInfo)
  344. {
  345. var flg = '3';
  346. var xpath = 'ds_main_opatlist_opatlist';
  347. var pNRow = e.row;
  348. //환자조회팝업 호출
  349. fPopPatient(flg, xpath, pNRow);
  350. }
  351. function fsetting(){
  352. }
  353. /****************************************************************************************
  354. * Components : Button
  355. * Components ID : button2
  356. * Event : onclick
  357. * Argument : 01.obj : Object Event has occurred
  358. * : 02.e : Event Object
  359. * Description : 추가버튼 클릭시
  360. ****************************************************************************************/
  361. function group3_button2_onclick(obj:Button, e:ClickEventInfo)
  362. {
  363. fAddRowSave();
  364. }
  365. /****************************************************************************************
  366. * Components : Button
  367. * Components ID : button11
  368. * Event : onclick
  369. * Argument : 01.obj : Object Event has occurred
  370. * : 02.e : Event Object
  371. * Description : 행삭제버튼 클릭시
  372. ****************************************************************************************/
  373. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  374. {
  375. var curRow = ds_main_opatlist_opatlist.rowposition;
  376. if(curRow > -1){
  377. ds_main_opatlist_opatlist.deleteRow(curRow);
  378. }
  379. }
  380. /****************************************************************************************
  381. * Components : Button
  382. * Components ID : button3
  383. * Event : onclick
  384. * Argument : 01.obj : Object Event has occurred
  385. * : 02.e : Event Object
  386. * Description : 행추가버튼 클릭시
  387. ****************************************************************************************/
  388. function group3_button3_onclick(obj:Button, e:ClickEventInfo)
  389. {
  390. ds_main_opatlist_opatlist.addRow();
  391. }
  392. /****************************************************************************************
  393. * Components : Button
  394. * Components ID : button9
  395. * Event : onclick
  396. * Argument : 01.obj : Object Event has occurred
  397. * : 02.e : Event Object
  398. * Description : 취소버튼 클릭시
  399. ****************************************************************************************/
  400. function grp_btn_button9_onclick(obj:Button, e:ClickEventInfo)
  401. {
  402. this.close();
  403. }
  404. /****************************************************************************************
  405. * Components : Button
  406. * Components ID : button4
  407. * Event : onclick
  408. * Argument : 01.obj : Object Event has occurred
  409. * : 02.e : Event Object
  410. * Description : 전송버튼 클릭시
  411. ****************************************************************************************/
  412. function grp_btn_button4_onclick(obj:Button, e:ClickEventInfo)
  413. {
  414. fCallMngtInfo();
  415. }
  416. /****************************************************************************************
  417. * Components : Grid
  418. * Components ID : grd_baselist
  419. * Event : oncellclick
  420. * Argument : 01.obj : Object Event has occurred
  421. * : 02.e : Event Object
  422. * Description : 그리드 셀 클릭시
  423. ****************************************************************************************/
  424. function group3_grd_baselist_oncellclick(obj:Grid, e:GridClickEventInfo)
  425. {
  426. fMoveMsg();
  427. }
  428. ]]></Script>
  429. </Form>
  430. </FDL>