SPADB60602_약사메모조제시참고사항.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADB60602" position="absolute 0 0 506 334" titletext="약사메모 상용구" oninit="SPADB60602_oninit" onload="SPADB60602_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 505 306" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="약사메모 상용구" position="absolute 0 11 129 27" id="caption1" class="tit_2" anchor="default"/>
  11. <Grid position="absolute 0 32 505 297" id="grd_reflist" binddataset="ds_main_memoinfo" anchor="default" autofittype="col" oncelldblclick="grp_biz_grd_reflist_oncelldblclick" autoenter="none">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="0"/>
  16. <Column size="20"/>
  17. <Column size="462"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="cdid"/>
  25. <Cell col="1"/>
  26. <Cell col="2" text="참고사항"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell text="bind:cdid"/>
  30. <Cell col="1" celltype="head"/>
  31. <Cell col="2" displaytype="text" edittype="text" text="bind:cdnm"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Button position="absolute 337 5 390 27" id="btn_add" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_add_onclick"/>
  37. <Button position="absolute 393 5 446 27" id="btn_del" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_del_onclick"/>
  38. <Button position="absolute 449 5 505 27" id="button2" class="btn4" text="저장" anchor="default" onclick="grp_biz_button2_onclick"/>
  39. <Shape id="line1" class="line_1" position="absolute 0 26 505 32"/>
  40. <Shape id="line00" class="line_1" position="absolute 0 27 505 33"/>
  41. <Shape id="line02" class="line_1" position="absolute 0 28 505 34"/>
  42. </Layout>
  43. </Layouts>
  44. </Div>
  45. <Div position="absolute 0 299 505 326" id="grp_btn" scrollbars="autoboth">
  46. <Layouts>
  47. <Layout>
  48. <Button position="absolute 449 5 505 27" id="btn_cls" class="btn4" text="닫기" anchor="default" onclick="grp_btn_btn_cls_onclick"/>
  49. <Button id="btn_select" taborder="1" text="선택" class="btn4" position="absolute 390 5 446 27" onclick="grp_btn_btn_select_onclick"/>
  50. </Layout>
  51. </Layouts>
  52. </Div>
  53. </Layout>
  54. </Layouts>
  55. <Objects>
  56. <Dataset id="ds_main_memoinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_memoinfo_oncolumnchanged">
  57. <ColumnInfo>
  58. <Column id="cdid" type="STRING"/>
  59. <Column id="cdnm" type="STRING"/>
  60. </ColumnInfo>
  61. </Dataset>
  62. <Dataset id="ds_send_req_requselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  63. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  64. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  65. <ColumnInfo>
  66. <Column id="srchioflag" type="STRING" size="256"/>
  67. </ColumnInfo>
  68. <Rows>
  69. <Row/>
  70. </Rows>
  71. </Dataset>
  72. </Objects>
  73. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  74. * System Name :
  75. * Job Name :
  76. * Creator :
  77. * Make Date : 2015-09-08
  78. * Description :
  79. *---------------------------------------------------------------------------------------
  80. * Modify Date Modifier Modify Description
  81. *---------------------------------------------------------------------------------------
  82. * 2015-09-08 Live Converter TF->XP
  83. *
  84. *---------------------------------------------------------------------------------------
  85. ****************************************************************************************/
  86. //=======================================================================================
  87. // Lib Include
  88. //---------------------------------------------------------------------------------------
  89. include "com_commonxp::comm_main.xjs"
  90. //=======================================================================================
  91. // Event
  92. //---------------------------------------------------------------------------------------
  93. /****************************************************************************************
  94. * Components : Form
  95. * Components ID : SPADB60602
  96. * Event : oninit
  97. * Argument : 01.obj : Object Event has occurred
  98. * : 02.e : Event Object
  99. * Description : 화면 처음 초기화시 폼초기화
  100. ****************************************************************************************/
  101. function SPADB60602_oninit(obj:Form, e:InitEventInfo)
  102. {
  103. frmf_initForm(obj); // 폼 초기화
  104. try{
  105. ds_send_srchinfo.copyData(arg_ds_send_memosrchinfo); //외래처방전 감사 화면에서 넘어온 argument 셋팅(2015.11.11_by.Shaun)
  106. }catch(e){}
  107. }
  108. /****************************************************************************************
  109. * Components : Form
  110. * Components ID : SPADB60602
  111. * Event : onload
  112. * Argument : 01.obj : Object Event has occurred
  113. * : 02.e : Event Object
  114. * Description : 화면 처음 초기화시 폼초기화
  115. ****************************************************************************************/
  116. function SPADB60602_onload(obj:Form, e:LoadEventInfo)
  117. {
  118. grdf_setRowTypeIcon(grp_biz.grd_reflist, 1); // 그리드 상태 표시
  119. var oParam = {};
  120. oParam.id = "TRADB60602";
  121. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  122. oParam.method = "reqGetComnUseList";
  123. oParam.inds = "req=ds_send_memoinfo";
  124. oParam.outds = "ds_main_memoinfo=list";
  125. oParam.async = false;
  126. //oParam.callback = "cf_TRADB60602";
  127. tranf_submit(oParam);
  128. }
  129. /****************************************************************************************
  130. * Components : Grid
  131. * Components ID : grp_biz.grd_reflist
  132. * Event : oncelldblclick
  133. * Argument : 01.obj : Object Event has occurred
  134. * : 02.e : Event Object
  135. * Description : 상용구 더블클릭
  136. ****************************************************************************************/
  137. function grp_biz_grd_reflist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  138. {
  139. // var ioflag = ds_send_srchinfo.getColumn(0,"srchioflag");
  140. if (frmf_checkOpener()) {
  141. var openMemo = "";
  142. openMemo = opener.ds_main_detailinfo_memoinfo.getColumn(0,"memo");
  143. opener.ds_main_detailinfo_memoinfo.setColumn(0,"memo", openMemo + " " + ds_main_memoinfo.getColumn(e.row,"cdnm"));
  144. this.close();
  145. } else {
  146. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  147. }
  148. }
  149. /****************************************************************************************
  150. * Components : Button
  151. * Components ID : grp_biz.btn_add
  152. * Event : onclick
  153. * Argument : 01.obj : Object Event has occurred
  154. * : 02.e : Event Object
  155. * Description : 상용구 행추가
  156. ****************************************************************************************/
  157. function grp_biz_btn_add_onclick(obj:Button, e:ClickEventInfo)
  158. {
  159. ds_main_memoinfo.addRow();
  160. }
  161. /****************************************************************************************
  162. * Components : Button
  163. * Components ID : grp_biz.btn_del
  164. * Event : onclick
  165. * Argument : 01.obj : Object Event has occurred
  166. * : 02.e : Event Object
  167. * Description : 상용구 행삭제
  168. ****************************************************************************************/
  169. function grp_biz_btn_del_onclick(obj:Button, e:ClickEventInfo)
  170. {
  171. var cRow = ds_main_memoinfo.rowposition;
  172. if( ds_main_memoinfo.getRowType(cRow) == 2 ){
  173. ds_main_memoinfo.deleteRow(cRow);
  174. } else {
  175. grdf_setStatus(grp_biz.grd_reflist, "D", [cRow]);
  176. }
  177. }
  178. /****************************************************************************************
  179. * Components : Button
  180. * Components ID : grp_biz.button2
  181. * Event : onclick
  182. * Argument : 01.obj : Object Event has occurred
  183. * : 02.e : Event Object
  184. * Description : 상용구 저장
  185. ****************************************************************************************/
  186. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
  187. {
  188. var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_reflist, "all");
  189. grdf_setStatusColumn(dsUpdate, "m");
  190. ds_send_req_requselist.copyData(dsUpdate,true);
  191. var oParam = {};
  192. oParam.id = "TXADB60602";
  193. oParam.service = "pharmacyprescriptionapp.MpsCheck";
  194. oParam.method = "reqExeComnUseList";
  195. oParam.inds = "requselist=ds_send_req_requselist";
  196. oParam.outds = "ds_main_memoinfo=list";
  197. oParam.async = false;
  198. //oParam.callback = "cf_TXADB60602";
  199. tranf_submit(oParam);
  200. }
  201. /****************************************************************************************
  202. * Components : Button
  203. * Components ID : grp_biz.btn_cls
  204. * Event : onclick
  205. * Argument : 01.obj : Object Event has occurred
  206. * : 02.e : Event Object
  207. * Description : 화면 닫기
  208. ****************************************************************************************/
  209. function grp_btn_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  210. {
  211. this.close();
  212. }
  213. /****************************************************************************************
  214. * Components : Button
  215. * Components ID : grp_biz.btn_select
  216. * Event : onclick
  217. * Argument : 01.obj : Object Event has occurred
  218. * : 02.e : Event Object
  219. * Description : 선택하고 전송후 화면닫기
  220. ****************************************************************************************/
  221. function grp_btn_btn_select_onclick(obj:Button, e:ClickEventInfo)
  222. {
  223. if (frmf_checkOpener()) {
  224. var openMemo = "";
  225. openMemo = opener.ds_main_detailinfo_memoinfo.getColumn(0,"memo");
  226. opener.ds_main_detailinfo_memoinfo.setColumn(0,"memo", openMemo + " " + ds_main_memoinfo.getColumn(ds_main_memoinfo.rowposition,"cdnm"));
  227. // opener.model.refresh();
  228. this.close();
  229. } else {
  230. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  231. }
  232. }
  233. ]]></Script>
  234. </Form>
  235. </FDL>