SPLBT90200_특수혈액간호부전송.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLBT90200" position="absolute 0 0 1123 768" titletext="특수혈액 간호부전송" oninit="SPLBT90200_oninit" onload="SPLBT90200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_trsm" taborder="1" text="간호부전송" class="btn4" position="absolute 957 2 1049 24" onclick="btn_trsm_onclick"/>
  8. <Button id="btn_clear" taborder="2" text="초기화" class="btn4" position="absolute 1051 2 1119 24" onclick="btn_clear_onclick"/>
  9. <Static id="caption6" text="LRSDP 간호부전송" class="tit_1" position="absolute 0 0 199 25"/>
  10. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 85 1120 91"/>
  11. <Static id="caption5" text="처방 목록" class="tit_2" position="absolute 1 69 79 85"/>
  12. <Div id="group2" taborder="3" position="absolute 0 25 1122 60" class="div_SA">
  13. <Layouts>
  14. <Layout>
  15. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 357 7 363 29" anchor="default"/>
  16. <Static id="caption4" text="등록번호 :" class="search_name" position="absolute 11 9 102 26" anchor="default"/>
  17. <Button id="btn_pid" taborder="1" text="조회" class="btn1" position="absolute 375 7 431 29" anchor="default" onclick="group2_btn_pid_onclick"/>
  18. <Edit id="ipt_pid" taborder="2" class="input_button" position="absolute 100 9 200 28" anchor="default" onkeyup="group2_ipt_pid_onkeyup"/>
  19. <CheckBox id="chk_trsmgbn" taborder="3" position="absolute 230 10 330 30" anchor="default" text="전송완료 포함" truevalue="Y" falsevalue="N" value="0" onchanged="group2_chk_trsmgbn_onchanged"/>
  20. <Button id="btn_search" taborder="4" position="absolute 182 11 198 26" style="background:skyblue;" onclick="group2_btn_search_onclick"/>
  21. </Layout>
  22. </Layouts>
  23. </Div>
  24. <Grid id="grd_spclblodlist" class="datagrid2" taborder="4" binddataset="ds_main_spclblodlist_getspclblodlist" useinputpanel="false" position="absolute 0 90 1120 765">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25"/>
  29. <Column size="25"/>
  30. <Column size="60"/>
  31. <Column size="80"/>
  32. <Column size="70"/>
  33. <Column size="60"/>
  34. <Column size="70"/>
  35. <Column size="30"/>
  36. <Column size="50"/>
  37. <Column size="30"/>
  38. <Column size="85"/>
  39. <Column size="102"/>
  40. <Column size="102"/>
  41. <Column size="0"/>
  42. <Column size="102"/>
  43. <Column size="51"/>
  44. <Column size="102"/>
  45. <Column size="60"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. </Columns>
  50. <Rows>
  51. <Row size="26" band="head"/>
  52. <Row size="24"/>
  53. </Rows>
  54. <Band id="head">
  55. <Cell/>
  56. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  57. <Cell col="2" text="전송여부"/>
  58. <Cell col="3" text="등록번호"/>
  59. <Cell col="4" text="환자명"/>
  60. <Cell col="5" text="처방"/>
  61. <Cell col="6" text="Type"/>
  62. <Cell col="7" text="I"/>
  63. <Cell col="8" text="수량"/>
  64. <Cell col="9" text="E"/>
  65. <Cell col="10" text="처방부서"/>
  66. <Cell col="11" text="예약일시"/>
  67. <Cell col="12" text="접수일시"/>
  68. <Cell col="13" text="특수혈액&#10;신청여부"/>
  69. <Cell col="14" text="간호부&#10;전송일시"/>
  70. <Cell col="15" text="간호부&#10;전송자"/>
  71. <Cell col="16" text="재접수일시"/>
  72. <Cell col="17" text="재접수자"/>
  73. <Cell col="18" text="성분제제코드"/>
  74. <Cell col="19" text="접수번호"/>
  75. <Cell col="20" text="prcpgenrflag"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell celltype="head" text="expr:currow + 1"/>
  79. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  80. <Cell col="2" text="bind:trsmyn"/>
  81. <Cell col="3" text="bind:pid"/>
  82. <Cell col="4" text="bind:patnm"/>
  83. <Cell col="5" text="bind:tclsscrnnm"/>
  84. <Cell col="6" text="bind:btype"/>
  85. <Cell col="7" text="bind:iryn"/>
  86. <Cell col="8" text="bind:reqty"/>
  87. <Cell col="9" text="bind:prcperflag"/>
  88. <Cell col="10" text="bind:orddeptnm"/>
  89. <Cell col="11" displaytype="date" text="bind:prcphopedt" mask="yyyy-MM-dd hh:mm"/>
  90. <Cell col="12" displaytype="date" text="bind:tnsreqacptdt" mask="yyyy-MM-dd hh:mm"/>
  91. <Cell col="13" text="bind:spclblodreqyn"/>
  92. <Cell col="14" displaytype="date" text="bind:trsmdt" mask="yyyy-MM-dd hh:mm"/>
  93. <Cell col="15" text="bind:trsmnm"/>
  94. <Cell col="16" displaytype="date" text="bind:nurstrsmdt" mask="yyyy-MM-dd hh:mm"/>
  95. <Cell col="17" text="bind:nurstrsmnm"/>
  96. <Cell col="18" text="bind:blodcomcd"/>
  97. <Cell col="19" text="bind:tnsreqacptno"/>
  98. <Cell col="20" text="bind:prcpgenrflag"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. </Layout>
  104. </Layouts>
  105. <Objects>
  106. <Dataset id="ds_main_spclblodlist_getspclblodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="chk" type="STRING"/>
  109. <Column id="trsmyn" type="STRING"/>
  110. <Column id="pid" type="STRING"/>
  111. <Column id="patnm" type="STRING"/>
  112. <Column id="tclsscrnnm" type="STRING"/>
  113. <Column id="btype" type="STRING"/>
  114. <Column id="iryn" type="STRING"/>
  115. <Column id="reqty" type="STRING"/>
  116. <Column id="prcperflag" type="STRING"/>
  117. <Column id="orddeptnm" type="STRING"/>
  118. <Column id="prcphopedt" type="STRING"/>
  119. <Column id="tnsreqacptdt" type="STRING"/>
  120. <Column id="spclblodreqyn" type="STRING"/>
  121. <Column id="trsmdt" type="STRING"/>
  122. <Column id="trsmnm" type="STRING"/>
  123. <Column id="nurstrsmdt" type="STRING"/>
  124. <Column id="nurstrsmnm" type="STRING"/>
  125. <Column id="blodcomcd" type="STRING"/>
  126. <Column id="tnsreqacptno" type="STRING"/>
  127. <Column id="prcpgenrflag" type="STRING"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="codeflag" type="STRING" size="256"/>
  133. <Column id="trsmgbn" type="STRING" size="256"/>
  134. <Column id="grddata" type="STRING" size="256"/>
  135. <Column id="pid" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row/>
  139. </Rows>
  140. </Dataset>
  141. <Dataset id="ds_init_1101" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  144. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  145. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  146. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  147. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  148. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  149. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  150. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  151. </ColumnInfo>
  152. </Dataset>
  153. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="trsmgbn" type="STRING" size="256"/>
  156. <Column id="pid" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row/>
  160. </Rows>
  161. </Dataset>
  162. </Objects>
  163. <Bind>
  164. <BindItem id="item0" compid="group2.ipt_pid" propid="value" datasetid="ds_hidden_ref" columnid="pid"/>
  165. <BindItem id="item1" compid="group2.chk_trsmgbn" propid="value" datasetid="ds_hidden_ref" columnid="trsmgbn"/>
  166. </Bind>
  167. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  168. * System Name :
  169. * Job Name :
  170. * Creator :
  171. * Make Date : 2015-05-01
  172. * Description :
  173. *---------------------------------------------------------------------------------------
  174. * Modify Date Modifier Modify Description
  175. *---------------------------------------------------------------------------------------
  176. * 2015-05-01 Live Converter TF->XP
  177. *
  178. *---------------------------------------------------------------------------------------
  179. ****************************************************************************************/
  180. include "com_commonxp::comm_main.xjs";
  181. function SPLBT90200_oninit(obj:Form, e:InitEventInfo)
  182. {
  183. frmf_initForm(obj);
  184. }
  185. function SPLBT90200_onload(obj:Form, e:LoadEventInfo)
  186. {
  187. grdf_initGrid(grd_spclblodlist);
  188. finit();
  189. }
  190. // 초기값
  191. function finit()
  192. {
  193. ds_send.setColumn(0, "codeflag", "1101|");
  194. var oParam = {};
  195. oParam.id = "TRLZZ00101";
  196. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  197. oParam.method = "reqGetInitCodeInfo";
  198. oParam.inds = "cond=ds_send";
  199. oParam.outds = "ds_init_1101=1101";
  200. oParam.async = false;
  201. //oParam.callback = "cf_TRLZZ00101";
  202. tranf_submit(oParam);
  203. //등록번호 초기화 및 포커스
  204. group2.ipt_pid.setFocus();
  205. ds_hidden_ref.setColumn(0, "pid", "");
  206. btn_trsm.enable = true;
  207. ds_main_spclblodlist_getspclblodlist.clearData();
  208. fGetSpclBlodList();
  209. }
  210. //조회
  211. function fGetSpclBlodList()
  212. {
  213. ds_main_spclblodlist_getspclblodlist.clearData();
  214. ds_send.setColumn(0, "pid", ds_hidden_ref.getColumn(0, "pid"));
  215. ds_send.setColumn(0, "trsmgbn", ds_hidden_ref.getColumn(0, "trsmgbn"))
  216. var oParam = {};
  217. oParam.id = "TRLBT90201";
  218. oParam.service = "transfusionmngtapp.PseuDeliveryRgst";
  219. oParam.method = "reqGetSpclBlodList";
  220. oParam.inds = "cond=ds_send";
  221. oParam.outds = "ds_main_spclblodlist_getspclblodlist=getspclblodlist";
  222. oParam.async = false;
  223. //oParam.callback = "cf_TRLBT90201";
  224. tranf_submit(oParam);
  225. }
  226. //조회버튼
  227. function group2_btn_pid_onclick(obj:Button, e:ClickEventInfo)
  228. {
  229. fGetSpclBlodList();
  230. }
  231. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  232. {
  233. fGridSetting(group2.chk_trsmgbn.value);
  234. fGetSpclBlodList();
  235. }
  236. //전송완료포함 체크하면 간호부전송 버튼 disabled
  237. function fGridSetting(param)
  238. {
  239. if(param == "Y")
  240. {
  241. btn_trsm.enable = false;
  242. grd_spclblodlist.setFormatColProperty(1, "size", "0");
  243. }
  244. else
  245. {
  246. btn_trsm.enable = true;
  247. grd_spclblodlist.setFormatColProperty(1, "size", "25");
  248. }
  249. }
  250. //간호부전송 버튼
  251. function btn_trsm_onclick(obj:Button, e:ClickEventInfo)
  252. {
  253. fSpclNursTrsmSave();
  254. }
  255. //간호부전송
  256. function fSpclNursTrsmSave()
  257. {
  258. var cnt = ds_main_spclblodlist_getspclblodlist.rowcount;
  259. var TF = false;
  260. for(iRow = 0; iRow < cnt; iRow++)
  261. {
  262. if(ds_main_spclblodlist_getspclblodlist.getColumn(iRow, "chk") == "Y")
  263. {
  264. var arrPostion = new Array();
  265. arrPostion[0] = ds_main_spclblodlist_getspclblodlist.rowposition;
  266. grdf_setStatus(grd_spclblodlist, "I", arrPostion);
  267. TF = true;
  268. }
  269. }
  270. if(TF)
  271. {
  272. var oParam = {};
  273. oParam.id = "TXLBT90201";
  274. oParam.service = "transfusionmngtapp.PseuDeliveryRgst";
  275. oParam.method = "reqSetSpclNursTrsm";
  276. oParam.inds = "data=ds_main_spclblodlist_getspclblodlist:I";
  277. oParam.async = false;
  278. //oParam.callback = "cf_TXLBT90201";
  279. tranf_submit(oParam);
  280. fGetSpclBlodList();
  281. }
  282. else
  283. {
  284. sysf_messageBox("간호부 전송 할 내역이 없습니다." , "I");
  285. return;
  286. }
  287. }
  288. function group2_chk_trsmgbn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  289. {
  290. fGridSetting(group2.chk_trsmgbn.value);
  291. fGetSpclBlodList();
  292. }
  293. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  294. {
  295. finit();
  296. }
  297. function group2_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  298. {
  299. if(e.keycode == 13)
  300. {
  301. fGridSetting(group2.chk_trsmgbn.value);
  302. fGetSpclBlodList();
  303. }
  304. }
  305. ]]></Script>
  306. </Form>
  307. </FDL>