SMADT01103_원외처방일괄출력.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT01103" position="absolute 0 0 885 563" titletext="원외처방전 일괄 출력" onload="SMADT01103_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 64 869 91" id="group4" scrollbars="autoboth" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Calendar id="input6" taborder="0" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 332 -29 432 -10" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Static id="caption19" text="원외처방 일괄출력" class="tit_1" position="absolute 0 0 140 25"/>
  15. <Div id="group3" anchor="all" taborder="1" position="absolute 6 25 879 552">
  16. <Layouts>
  17. <Layout>
  18. <Static id="caption71" text="처방현황" class="tit_2" position="absolute 0 50 144 71" anchor="default"/>
  19. <Shape id="line00" class="line_1" position="absolute 0 66 868 72" anchor="left top right"/>
  20. <Div id="group2" anchor="left top right" taborder="3" class="div_SA" position="absolute 0 0 870 40">
  21. <Layouts>
  22. <Layout>
  23. <Button id="but_tri" taborder="6" text="조회" class="btn1" position="absolute 657 10 713 32" anchor="top right" onclick="group3_group2_but_tri_onclick"/>
  24. <Shape id="line13" linetype="vertical" position="absolute 636 10 642 32" anchor="top right"/>
  25. <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 386 13 476 30" anchor="default"/>
  26. <Static id="caption2" text="조회일자 :" class="search_name" position="absolute 20 13 115 30" anchor="default"/>
  27. <Edit id="input1" taborder="7" onkeydown="group3_group2_input1_onkeydown" class="input_search" position="absolute 481 11 586 30" anchor="default"/>
  28. <Calendar id="input6" taborder="8" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 108 11 208 30" anchor="default"/>
  29. <Calendar id="input00" taborder="10" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 233 11 333 30" anchor="default"/>
  30. <Static id="Static00" text="~" position="absolute 215 12 232 32" anchor="default"/>
  31. <Button id="but_prt" taborder="11" text="출력" class="btn1" position="absolute 729 10 785 32" anchor="top right" onclick="group3_group2_but_prt_onclick"/>
  32. </Layout>
  33. </Layouts>
  34. </Div>
  35. <Grid id="grd_prntlist" taborder="4" binddataset="ds_outdrugview" useinputpanel="false" extendsizetype="row" cellsizingtype="both" oncellclick="group3_grd_prntlist_oncellclick" oncelldblclick="group3_grd_prntlist_oncelldblclick" position="absolute 0 71 864 524" anchor="left top right">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="25" band="left"/>
  40. <Column size="26"/>
  41. <Column size="75"/>
  42. <Column size="96"/>
  43. <Column size="70"/>
  44. <Column size="87"/>
  45. <Column size="127"/>
  46. <Column size="63"/>
  47. <Column size="78"/>
  48. <Column size="83"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="130"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. </Columns>
  59. <Rows>
  60. <Row size="24" band="head"/>
  61. <Row size="24"/>
  62. </Rows>
  63. <Band id="head">
  64. <Cell/>
  65. <Cell col="1" displaytype="checkbox"/>
  66. <Cell col="2" text="등록번호"/>
  67. <Cell col="3" text="처방일자"/>
  68. <Cell col="4" text="투약번호"/>
  69. <Cell col="5" text="투약일자"/>
  70. <Cell col="6" text="진료과"/>
  71. <Cell col="7" text="출력상태"/>
  72. <Cell col="8" text="수납유무"/>
  73. <Cell col="9" text="출력장소"/>
  74. <Cell col="10" text="pid"/>
  75. <Cell col="11" text="orddd"/>
  76. <Cell col="12" text="cretno"/>
  77. <Cell col="13" text="orddeptcd"/>
  78. <Cell col="14" text="prcpgenrflag"/>
  79. <Cell col="15" text="drugdd"/>
  80. <Cell col="16" text="출력시간"/>
  81. <Cell col="17" text="싸인"/>
  82. <Cell col="18" text="싸인"/>
  83. </Band>
  84. <Band id="body">
  85. <Cell celltype="head"/>
  86. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag"/>
  87. <Cell col="2" text="bind:pid"/>
  88. <Cell col="3" text="bind:orddd"/>
  89. <Cell col="4" displaytype="text" style="align:center middle;" text="bind:drugno"/>
  90. <Cell col="5" text="bind:drugdd"/>
  91. <Cell col="6" text="bind:orddeptnm"/>
  92. <Cell col="7" text="bind:prntstat"/>
  93. <Cell col="8" text="bind:rcptyn"/>
  94. <Cell col="9" edittype="none" text="bind:prntplce"/>
  95. <Cell col="10" text="bind:pid"/>
  96. <Cell col="11" text="bind:orddd"/>
  97. <Cell col="12" text="bind:cretno"/>
  98. <Cell col="13" text="bind:orddeptcd"/>
  99. <Cell col="14" text="bind:prcpgenrflag"/>
  100. <Cell col="15" text="bind:drugdd"/>
  101. <Cell col="16" text="bind:prntdt"/>
  102. <Cell col="17" text="bind:elctsignkey"/>
  103. <Cell col="18" text="bind:elctsigncnts"/>
  104. </Band>
  105. </Format>
  106. <Format id="format_copy"/>
  107. </Formats>
  108. </Grid>
  109. <Shape id="line01" class="line_1" position="absolute 0 65 868 71" anchor="left top right"/>
  110. <CheckBox id="ChkB_All" taborder="5" position="absolute 30 75 48 92" truevalue="Y" falsevalue="N" onclick="group3_ChkB_All_onclick"/>
  111. </Layout>
  112. </Layouts>
  113. </Div>
  114. </Layout>
  115. </Layouts>
  116. <Objects>
  117. <Dataset id="ds_tridata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="pid" type="STRING" size="256"/>
  120. <Column id="drugdds" type="STRING" size="256"/>
  121. <Column id="drugdde" type="STRING" size="256"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row/>
  125. </Rows>
  126. </Dataset>
  127. <Dataset id="ds_outdrugview" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="chkflag" type="STRING" size="256"/>
  130. <Column id="pid" type="STRING" size="256"/>
  131. <Column id="orddd" type="STRING" size="256"/>
  132. <Column id="drugdd" type="STRING" size="256"/>
  133. <Column id="cretno" type="STRING" size="256"/>
  134. <Column id="orddeptcd" type="STRING" size="256"/>
  135. <Column id="orddeptnm" type="STRING" size="256"/>
  136. <Column id="drugno" type="STRING" size="256"/>
  137. <Column id="prcpgenrflag" type="STRING" size="256"/>
  138. <Column id="prntdt" type="STRING" size="256"/>
  139. <Column id="rcptyn" type="STRING" size="256"/>
  140. <Column id="prntstat" type="STRING" size="256"/>
  141. <Column id="prntplce" type="STRING" size="256"/>
  142. </ColumnInfo>
  143. <Rows>
  144. <Row/>
  145. </Rows>
  146. </Dataset>
  147. </Objects>
  148. <Bind>
  149. <BindItem id="item0" compid="group3.group2.input6" propid="value" datasetid="ds_tridata" columnid="drugdds"/>
  150. <BindItem id="item1" compid="group3.group2.input00" propid="value" datasetid="ds_tridata" columnid="drugdde"/>
  151. <BindItem id="item2" compid="group3.group2.input1" propid="value" datasetid="ds_tridata" columnid="pid"/>
  152. </Bind>
  153. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  154. * System Name :
  155. * Job Name :
  156. * Creator :
  157. * Make Date : 2015-11-13
  158. * Description :
  159. *---------------------------------------------------------------------------------------
  160. * Modify Date Modifier Modify Description
  161. *---------------------------------------------------------------------------------------
  162. * 2015-11-13 Live Converter TF->XP
  163. *
  164. *---------------------------------------------------------------------------------------
  165. ****************************************************************************************/
  166. //=======================================================================================
  167. // Lib Include
  168. //---------------------------------------------------------------------------------------
  169. include "com_commonxp::comm_main.xjs"
  170. include "emr_prcpmngtxp::MMOCommon.xjs"
  171. //=======================================================================================
  172. // Global Form Variable
  173. //---------------------------------------------------------------------------------------
  174. var arErrorCode = new HashArray();
  175. function SMADT01103_onload(obj:Form, e:LoadEventInfo)
  176. {
  177. frmf_initForm(obj);
  178. grdf_setGridSort(group3.grd_prntlist); // 그리드 소트만
  179. //grdf_setRowTypeIcon(group3.grd_prntlist, 0); // 그리드 상태 표시
  180. ds_tridata.setColumn( 0, "drugdds", utlf_getCurrentDate());
  181. ds_tridata.setColumn( 0, "drugdde", utlf_getCurrentDate());
  182. }
  183. function group3_group2_but_tri_onclick(obj:Button, e:ClickEventInfo)
  184. {
  185. var oParam = {};
  186. oParam.id = "TRADT01109";
  187. oParam.service = "pharmacyprescriptionapp.DrugPrint";
  188. oParam.method = "reqGetOutDrugPrt";
  189. oParam.inds = "req=ds_tridata";
  190. oParam.outds = "ds_outdrugview=prntlist";
  191. oParam.async = false;
  192. //oParam.callback = "cf_TRADT00301";
  193. tranf_submit(oParam);
  194. }
  195. function group3_group2_but_prt_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. for( var i = 0; i < ds_outdrugview.rowcount; i++ ){
  198. var Vchkflag = ds_outdrugview.getColumn(i, "chkflag");
  199. var pid = ds_outdrugview.getColumn(i, "pid");
  200. var orddd = ds_outdrugview.getColumn(i, "orddd");
  201. var drugdd = ds_outdrugview.getColumn(i, "drugdd");
  202. var cretno = ds_outdrugview.getColumn(i, "cretno");
  203. var orddeptcd = ds_outdrugview.getColumn(i, "orddeptcd");
  204. var drugno = ds_outdrugview.getColumn(i, "drugno");
  205. var prcpgenrflag = ds_outdrugview.getColumn(i, "prcpgenrflag");
  206. var mdrugflag = "Y";
  207. var hosoutmpsflag = "";
  208. var reprintyn = "Y" ;
  209. var eprntype = "";
  210. var stocdeptcd = "3240300000";
  211. if(Vchkflag == "1"){
  212. // 20101124_laboru_경북대병원_마약/향정 외래 환자 원외 처방전 출력 여부 조회(R002)
  213. sParam = "drugdd▦drugno▦pid▦orddd▦cretno▦orddeptcd▦prcpgenrflag▦hosoutmpsflag▦reprintyn▦Y▦eprntype▦stocdeptcd▦mdrugflag▩";
  214. sParam += utlf_transNullToEmpty(drugdd) + "▦" +
  215. utlf_transNullToEmpty(drugno) + "▦" +
  216. utlf_transNullToEmpty(pid) + "▦" +
  217. utlf_transNullToEmpty(orddd) + "▦" +
  218. utlf_transNullToEmpty(cretno) + "▦" +
  219. utlf_transNullToEmpty(orddeptcd) + "▦" +
  220. utlf_transNullToEmpty(prcpgenrflag) + "▦" +
  221. utlf_transNullToEmpty(hosoutmpsflag) + "▦" +
  222. utlf_transNullToEmpty(reprintyn) + "▦" +
  223. "Y" + "▦" +
  224. utlf_transNullToEmpty(eprntype) + "▦" +
  225. utlf_transNullToEmpty(stocdeptcd) + "▦" +
  226. utlf_transNullToEmpty(mdrugflag) + "▩";
  227. frmf_setParameter("params", sParam);
  228. frmf_modal("SPADT61101", "SPADT61101", null, 0, 200, 200, null, null, null, null, null, null, "M");
  229. frmf_setParameter("params", "");
  230. }
  231. }
  232. }
  233. function group3_ChkB_All_onclick(obj:CheckBox, e:ClickEventInfo)
  234. {
  235. if(obj.value == "Y") {
  236. for ( var i = 0 ; i < ds_outdrugview.rowcount ; i++ ){
  237. ds_outdrugview.setColumn(i,"chkflag","1");
  238. }
  239. } else {
  240. for ( var i = 0 ; i < ds_outdrugview.rowcount ; i++ ){
  241. ds_outdrugview.setColumn(i,"chkflag","0");
  242. }
  243. }
  244. }
  245. ]]></Script>
  246. </Form>
  247. </FDL>