SMLBD02000_헌혈정도관리.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBD02000" position="absolute 0 0 1196 780" titletext="헌혈정도관리" oninit="SMLBD02000_oninit" onload="SMLBD02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="헌혈 정도관리" class="tit_1" position="absolute 0 0 120 25"/>
  8. <Shape id="line17" linetype="horizontal" class="line_6" position="absolute 0 38 1194 44" style="strokepen:3 solid #9ebed4ff;"/>
  9. <Button id="btn_init" taborder="1" text="초기화" class="btn4" position="absolute 1127 15 1195 37" onclick="btn_init_onclick"/>
  10. <Button id="btn_save" taborder="2" text="전문의확인" class="btn4" position="absolute 1035 15 1127 37" onclick="btn_save_onclick"/>
  11. <Button id="button1" taborder="3" text="책임자확인" class="btn4" position="absolute 943 15 1035 37" onclick="button1_onclick"/>
  12. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 103 1194 109" style="strokepen:3 solid #33bbbbff;"/>
  13. <Button id="button2" taborder="4" text="엑셀" class="btn7" position="absolute 1140 81 1193 100"/>
  14. <Grid id="datagrid1" class="datagrid2" taborder="5" binddataset="ds_datagrid1" useinputpanel="false" position="absolute 0 107 1193 777" autofittype="none">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="25"/>
  19. <Column size="25"/>
  20. <Column size="80"/>
  21. <Column size="120"/>
  22. <Column size="100"/>
  23. <Column size="0"/>
  24. <Column size="80"/>
  25. <Column size="0"/>
  26. <Column size="80"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="100"/>
  30. <Column size="120"/>
  31. <Column size="125"/>
  32. <Column size="134"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="26" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell/>
  40. <Cell col="1"/>
  41. <Cell col="2" text="검사일"/>
  42. <Cell col="3" text="헌혈증 번호"/>
  43. <Cell col="4" text="Collect Vol.(ml)&#10;(10^3/nL)"/>
  44. <Cell col="5" text="3/nL)"/>
  45. <Cell col="6" text="측정 Yield"/>
  46. <Cell col="7" text="PH"/>
  47. <Cell col="8" text="배양"/>
  48. <Cell col="9" text="백혈구수&#10;(10^3/nL)"/>
  49. <Cell col="10" text="3/nL)"/>
  50. <Cell col="11" text="Pheresis &#10;Procedure점검"/>
  51. <Cell col="12" text="혈액관리&#10;책임자확인"/>
  52. <Cell col="13" text="전문의"/>
  53. <Cell col="14" text="전문의확인일시"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell text="expr:currow + 1"/>
  57. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  58. <Cell col="2" displaytype="date" edittype="date" text="bind:prcpdd" mask="yyyy-MM-dd"/>
  59. <Cell col="3" text="bind:natno" mask="99-99-999999"/>
  60. <Cell col="4" text="bind:donvol"/>
  61. <Cell col="5" text="bind:reptrslt"/>
  62. <Cell col="6" text="bind:ph"/>
  63. <Cell col="7" text="bind:cul"/>
  64. <Cell col="8" text="bind:wbc"/>
  65. <Cell col="9" displaytype="combo" edittype="combo" text="bind:dmdeliveyn"/>
  66. <Cell col="10" displaytype="combo" edittype="combo" text="bind:retestyn" enable="false"/>
  67. <Cell col="11" text="bind:readdoctid"/>
  68. <Cell col="12" displaytype="date" edittype="date" text="bind:refdt" mask="yyyy-MM-dd hh:mm:ss"/>
  69. <Cell col="13" text="bind:readdoctid"/>
  70. <Cell col="14" text="bind:refdt"/>
  71. </Band>
  72. </Format>
  73. <Format id="format_copy"/>
  74. </Formats>
  75. </Grid>
  76. <Div id="group2" taborder="6" position="absolute 0 42 1195 77" class="div_SA">
  77. <Layouts>
  78. <Layout>
  79. <Shape id="line11" linetype="vertical" class="line_4" position="absolute 1111 7 1117 29"/>
  80. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1126 7 1182 29" onclick="group2_btn_search_onclick"/>
  81. <Static id="caption7" text="시행일자 :" class="search_name" position="absolute 15 9 101 26"/>
  82. <Calendar id="input8" taborder="2" class="input_s_essential" position="absolute 89 8 193 27"/>
  83. <Calendar id="input9" taborder="3" class="input_s_essential" position="absolute 213 8 319 27"/>
  84. <Static id="caption11" text="~" class="search_n_b" position="absolute 198 9 210 26"/>
  85. <Static id="caption8" text="조회구분 :" class="search_name" position="absolute 415 9 501 26"/>
  86. <Radio id="rdo_1" taborder="4" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 505 9 610 27" onitemchanged="group2_rdo_1_onitemchanged">
  87. <Dataset id="innerdataset">
  88. <ColumnInfo>
  89. <Column id="codecolumn"/>
  90. <Column id="datacolumn"/>
  91. </ColumnInfo>
  92. <Rows>
  93. <Row>
  94. <Col id="codecolumn">2</Col>
  95. <Col id="datacolumn">DGI</Col>
  96. </Row>
  97. <Row>
  98. <Col id="codecolumn">1</Col>
  99. <Col id="datacolumn">HPC</Col>
  100. </Row>
  101. </Rows>
  102. </Dataset>
  103. </Radio>
  104. </Layout>
  105. </Layouts>
  106. </Div>
  107. <Static id="caption1" text="정도관리 상세 내역" class="tit_2" position="absolute 0 85 140 102"/>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="chk" type="STRING"/>
  114. <Column id="prcpdd" type="STRING"/>
  115. <Column id="natno" type="STRING"/>
  116. <Column id="donvol" type="STRING"/>
  117. <Column id="reptrslt" type="STRING"/>
  118. <Column id="ph" type="STRING"/>
  119. <Column id="cul" type="STRING"/>
  120. <Column id="wbc" type="STRING"/>
  121. <Column id="dmdeliveyn" type="STRING"/>
  122. <Column id="retestyn" type="STRING"/>
  123. <Column id="readdoctid" type="STRING"/>
  124. <Column id="refdt" type="STRING"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="fromdd" type="STRING" size="256"/>
  130. <Column id="todd" type="STRING" size="256"/>
  131. <Column id="donflag" type="STRING" size="256"/>
  132. <Column id="cmfmlist" type="STRING" size="256"/>
  133. <Column id="cmfmflag" type="STRING" size="256"/>
  134. </ColumnInfo>
  135. <Rows>
  136. <Row>
  137. <Col id="donflag">2</Col>
  138. </Row>
  139. </Rows>
  140. </Dataset>
  141. </Objects>
  142. <Bind>
  143. <BindItem id="item0" compid="group2.input8" propid="value" datasetid="ds_send" columnid="fromdd"/>
  144. <BindItem id="item1" compid="group2.input9" propid="value" datasetid="ds_send" columnid="todd"/>
  145. <BindItem id="item2" compid="group2.rdo_1" propid="value" datasetid="ds_send" columnid="donflag"/>
  146. </Bind>
  147. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  148. * System Name :
  149. * Job Name :
  150. * Creator :
  151. * Make Date : 2015-05-01
  152. * Description :
  153. *---------------------------------------------------------------------------------------
  154. * Modify Date Modifier Modify Description
  155. *---------------------------------------------------------------------------------------
  156. * 2015-05-01 Live Converter TF->XP
  157. *
  158. *---------------------------------------------------------------------------------------
  159. ****************************************************************************************/
  160. include "com_commonxp::comm_main.xjs";
  161. include "emr_carecomxp::ENRSignEngine.xjs";
  162. function SMLBD02000_oninit(obj:Form, e:InitEventInfo)
  163. {
  164. frmf_initForm(obj);
  165. }
  166. function SMLBD02000_onload(obj:Form, e:LoadEventInfo)
  167. {
  168. grdf_initGrid(datagrid1);
  169. fInit();
  170. }
  171. function fInit()
  172. {
  173. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  174. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  175. }
  176. //조회
  177. function fGetQCList()
  178. {
  179. var oParam = {};
  180. oParam.id = "TRLBD02001";
  181. oParam.service = "donmngtapp.DonRgst";
  182. oParam.method = "reqGetQCList";
  183. oParam.inds = "cond=ds_send";
  184. oParam.outds = "ds_datagrid1=qclist";
  185. oParam.async = false;
  186. //oParam.callback = "cf_TRLBD02001";
  187. tranf_submit(oParam);
  188. fSetGrid();
  189. }
  190. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  191. {
  192. fGetQCList();
  193. }
  194. //조회구분에 따른 그리드 colhidden
  195. function fSetGrid()
  196. {
  197. if(group2.rdo_1.value == 1) //HPC
  198. {
  199. datagrid1.setFormatColProperty(7, "size", 80);
  200. datagrid1.setFormatColProperty(9, "size", 100);
  201. }
  202. else //DGI
  203. {
  204. datagrid1.setFormatColProperty(7, "size", 0);
  205. datagrid1.setFormatColProperty(9, "size", 0);
  206. }
  207. }
  208. function group2_rdo_1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  209. {
  210. fSetGrid();
  211. }
  212. //책임자확인
  213. function button1_onclick(obj:Button, e:ClickEventInfo)
  214. {
  215. fExeCnfm(1);
  216. }
  217. //전문의확인
  218. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  219. {
  220. fExeCnfm(2);
  221. }
  222. //초기화
  223. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  224. {
  225. this.reload();
  226. }
  227. //확인 1:책임자, 2:헌혈실장
  228. function fExeCnfm(pRef)
  229. {
  230. for(i = 0; i < ds_datagrid1.rowcount; i++)
  231. {
  232. if(ds_datagrid1.getColumn(i, "chk") == 1)
  233. {
  234. var arrRow = new Array();
  235. grdf_setStatus(datagrid1 , "U", i);
  236. }
  237. else
  238. {
  239. grdf_setStatus(datagrid1, "", i);
  240. }
  241. }
  242. if(ds_datagrid1.rowcount <= 0)
  243. {
  244. sysf_messageBox("저장할 자료가 존재하지 않아 실행", "E001");
  245. return;
  246. }
  247. //model.setValue("/root/send/cnfmlist", datagrid1.getUpdateData());
  248. ds_send.setColumn(0, "cmfmflag", pRef);
  249. if(pRef == 2)
  250. {
  251. if(Sign.signprocess())
  252. {
  253. }
  254. else
  255. {
  256. alert("인증실패");
  257. return;
  258. }
  259. }
  260. var oParam = {};
  261. oParam.id = "TXLBD02001";
  262. oParam.service = "donmngtapp.DonRgst";
  263. oParam.method = "reqExeQCList";
  264. oParam.inds = "req=ds_datagrid1:U cond=ds_send";
  265. oParam.async = false;
  266. //oParam.callback = "cf_TXLBD02001";
  267. tranf_submit(oParam);
  268. fGetQCList();
  269. }
  270. ]]></Script>
  271. </Form>
  272. </FDL>