SPLMR90600_전일균복사.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLMR90600" position="absolute 0 0 850 691" titletext="전일결과복사" oninit="SPLMR90600_oninit" onload="SPLMR90600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 731 665 787 687" id="button3" class="btn4" visible="true" text="선택" onclick="button3_onclick"/>
  8. <Button position="absolute 790 665 846 687" id="button4" class="btn4" text="닫기" onclick="button4_onclick"/>
  9. <Shape id="line1" class="line_1" position="absolute 3 154 848 160" style="strokepen:3 solid #33bbbbff;"/>
  10. <Static id="caption31" text="검체정보" class="tit_2" position="absolute 8 7 123 23"/>
  11. <Grid id="datagrid1" taborder="1" binddataset="ds_bftestlist" useinputpanel="false" position="absolute 303 28 848 123" oncellclick="datagrid1_oncellclick" cellsizingtype="col" autosizingtype="none" autofittype="col">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="28"/>
  16. <Column size="126"/>
  17. <Column size="232"/>
  18. <Column size="158"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="24" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell/>
  26. <Cell col="1" text="결과일"/>
  27. <Cell col="2" text="검사명"/>
  28. <Cell col="3" text="검사결과"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell displaytype="normal" edittype="none" text="expr:currow + 1"/>
  32. <Cell col="1" text="bind:bflastreptdt" mask="9999-99-99 99:99:99"/>
  33. <Cell col="2" style="align:left middle;" text="bind:tclsscrnnm"/>
  34. <Cell col="3" text="bind:bfreptrslt"/>
  35. </Band>
  36. </Format>
  37. </Formats>
  38. </Grid>
  39. <Shape id="line2" class="line_1" position="absolute 303 24 848 30" style="strokepen:3 solid #33bbbbff;"/>
  40. <Static id="caption2" text="전일 균 결과" class="tit_2" position="absolute 303 8 426 24"/>
  41. <Static id="caption4" text="항생제 결과" class="tit_2" position="absolute 4 136 100 152"/>
  42. <Edit id="output4" taborder="2" readonly="true" position="absolute 96 53 296 72"/>
  43. <Edit id="output5" taborder="3" readonly="true" position="absolute 96 77 296 96"/>
  44. <Shape id="line12" class="line_1" position="absolute 3 24 296 30" style="strokepen:3 solid #33bbbbff;"/>
  45. <Static id="caption1" text="작업번호" class="cell_1" position="absolute 3 100 93 123"/>
  46. <Static id="caption32" text="접수일시" class="cell_1" position="absolute 3 28 93 51"/>
  47. <Static id="caption33" text="검체명" class="cell_1" position="absolute 3 52 93 75"/>
  48. <Shape id="line15" class="line_3" position="absolute 3 120 296 126"/>
  49. <Static id="caption36" text="바코드번호" class="cell_1" position="absolute 3 76 93 99"/>
  50. <Edit id="output1" taborder="4" readonly="true" position="absolute 96 101 296 120"/>
  51. <MaskEdit id="output3" taborder="5" readonly="true" mask="####-##-## ##:##:##" position="absolute 96 29 296 48" style="align:left middle;" type="string"/>
  52. <Grid id="datagrid2" taborder="6" binddataset="ds_datagrid2" useinputpanel="false" position="absolute 3 158 848 658">
  53. <Formats>
  54. <Format id="default">
  55. <Columns>
  56. <Column size="28"/>
  57. <Column size="23"/>
  58. <Column size="100"/>
  59. <Column size="40"/>
  60. <Column size="40"/>
  61. <Column size="40"/>
  62. <Column size="40"/>
  63. <Column size="40"/>
  64. <Column size="40"/>
  65. <Column size="40"/>
  66. <Column size="40"/>
  67. <Column size="40"/>
  68. <Column size="40"/>
  69. <Column size="40"/>
  70. <Column size="40"/>
  71. <Column size="40"/>
  72. <Column size="40"/>
  73. <Column size="40"/>
  74. <Column size="40"/>
  75. <Column size="40"/>
  76. <Column size="40"/>
  77. <Column size="40"/>
  78. <Column size="40"/>
  79. <Column size="40"/>
  80. <Column size="40"/>
  81. <Column size="40"/>
  82. <Column size="40"/>
  83. <Column size="40"/>
  84. <Column size="40"/>
  85. <Column size="40"/>
  86. <Column size="40"/>
  87. <Column size="40"/>
  88. <Column size="40"/>
  89. <Column size="40"/>
  90. </Columns>
  91. <Rows>
  92. <Row size="24" band="head"/>
  93. <Row size="24"/>
  94. </Rows>
  95. <Band id="head">
  96. <Cell/>
  97. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  98. <Cell col="2" text="균"/>
  99. <Cell col="3"/>
  100. <Cell col="4"/>
  101. <Cell col="5"/>
  102. <Cell col="6"/>
  103. <Cell col="7"/>
  104. <Cell col="8"/>
  105. <Cell col="9"/>
  106. <Cell col="10"/>
  107. <Cell col="11"/>
  108. <Cell col="12"/>
  109. <Cell col="13"/>
  110. <Cell col="14"/>
  111. <Cell col="15"/>
  112. <Cell col="16"/>
  113. <Cell col="17"/>
  114. <Cell col="18"/>
  115. <Cell col="19"/>
  116. <Cell col="20"/>
  117. <Cell col="21"/>
  118. <Cell col="22"/>
  119. <Cell col="23"/>
  120. <Cell col="24"/>
  121. <Cell col="25"/>
  122. <Cell col="26"/>
  123. <Cell col="27"/>
  124. <Cell col="28"/>
  125. <Cell col="29"/>
  126. <Cell col="30"/>
  127. <Cell col="31"/>
  128. <Cell col="32"/>
  129. <Cell col="33"/>
  130. </Band>
  131. <Band id="body">
  132. <Cell expr="expr:currow + 1"/>
  133. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  134. <Cell col="2" style="align:left middle;" text="bind:bacscrnnm"/>
  135. <Cell col="3"/>
  136. <Cell col="4"/>
  137. <Cell col="5"/>
  138. <Cell col="6"/>
  139. <Cell col="7"/>
  140. <Cell col="8"/>
  141. <Cell col="9"/>
  142. <Cell col="10"/>
  143. <Cell col="11"/>
  144. <Cell col="12"/>
  145. <Cell col="13"/>
  146. <Cell col="14"/>
  147. <Cell col="15"/>
  148. <Cell col="16"/>
  149. <Cell col="17"/>
  150. <Cell col="18"/>
  151. <Cell col="19"/>
  152. <Cell col="20"/>
  153. <Cell col="21"/>
  154. <Cell col="22"/>
  155. <Cell col="23"/>
  156. <Cell col="24"/>
  157. <Cell col="25"/>
  158. <Cell col="26"/>
  159. <Cell col="27"/>
  160. <Cell col="28"/>
  161. <Cell col="29"/>
  162. <Cell col="30"/>
  163. <Cell col="31"/>
  164. <Cell col="32"/>
  165. <Cell col="33"/>
  166. </Band>
  167. </Format>
  168. <Format id="format_copy"/>
  169. </Formats>
  170. </Grid>
  171. </Layout>
  172. </Layouts>
  173. <Objects>
  174. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="bflastreptdt" type="STRING"/>
  177. <Column id="tclsscrnnm" type="STRING"/>
  178. <Column id="bfreptrslt" type="STRING"/>
  179. </ColumnInfo>
  180. </Dataset>
  181. <Dataset id="ds_datagrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="chk" type="STRING"/>
  184. </ColumnInfo>
  185. </Dataset>
  186. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  187. <Dataset id="ds_bftestlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="bcno" type="STRING" size="256" sumtext="검체번호"/>
  190. <Column id="bfbcno" type="STRING" size="256" sumtext="이전검체번호"/>
  191. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  192. <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
  193. <Column id="bfinptrslt" type="STRING" size="256" sumtext="이전입력결과"/>
  194. <Column id="bfreptrslt" type="STRING" size="256" sumtext="이전보고결과"/>
  195. <Column id="bflastreptdt" type="STRING" size="256" sumtext="이전보고일시"/>
  196. <Column id="bfworkno" type="STRING" size="256" sumtext="이전작업번호"/>
  197. <Column id="tclsscrnnm" type="STRING" size="256" sumtext="검사명"/>
  198. <Column id="spcscrnnm" type="STRING" size="256"/>
  199. </ColumnInfo>
  200. </Dataset>
  201. <Dataset id="ds_rsltlist_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  202. <Dataset id="ds_rsltlist_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  203. </Objects>
  204. <Bind>
  205. <BindItem id="item0" compid="output3" propid="value" datasetid="ds_send_data1" columnid="spcacptdt"/>
  206. <BindItem id="item1" compid="output4" propid="value" datasetid="ds_send_data1" columnid="spcscrnnm"/>
  207. <BindItem id="item2" compid="output5" propid="value" datasetid="ds_send_data1" columnid="bcno"/>
  208. <BindItem id="item3" compid="output1" propid="value" datasetid="ds_send_data1" columnid="workno"/>
  209. </Bind>
  210. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  211. * System Name :
  212. * Job Name :
  213. * Creator :
  214. * Make Date : 2015-05-01
  215. * Description :
  216. *---------------------------------------------------------------------------------------
  217. * Modify Date Modifier Modify Description
  218. *---------------------------------------------------------------------------------------
  219. * 2015-05-01 Live Converter TF->XP
  220. *
  221. *---------------------------------------------------------------------------------------
  222. ****************************************************************************************/
  223. include "com_commonxp::comm_main.xjs";
  224. include "lis_commonxp::LLZ001.xjs";
  225. function SPLMR90600_oninit(obj:Form, e:InitEventInfo)
  226. {
  227. frmf_initForm(obj);
  228. ds_send_data1.copyData(ds_hidden_bfsltparm);
  229. }
  230. function SPLMR90600_onload(obj:Form, e:LoadEventInfo)
  231. {
  232. grdf_initGrid(datagrid1);
  233. grdf_initGrid(datagrid2);
  234. fInit();
  235. }
  236. function fInit()
  237. {
  238. // datagrid1.removeRow();
  239. //model.copyNode("/root/send/data1" , "/root/hidden/bfsltparm");
  240. //submit("TRLMR90601");
  241. var oParam = {};
  242. oParam.id = "TRLMR90601";
  243. oParam.service = "rsltmngtapp.RsltMngt";
  244. oParam.method = "reqGetMicroBFRsltRef";
  245. oParam.inds = "cond=ds_send_data1";
  246. oParam.outds = "ds_bftestlist=bftestlist";
  247. oParam.async = false;
  248. //oParam.callback = "cf_TRLMR90601";
  249. tranf_submit(oParam);
  250. var cols = datagrid2.getCellCount("Head");
  251. var rows = datagrid2.rowcount;
  252. for( var i = 0; i < cols; i++ )
  253. {
  254. datagrid2.setFormatColProperty(i, "size", 0);
  255. }
  256. }
  257. function datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo)
  258. {
  259. fAntimicRef();
  260. finfomation();
  261. }
  262. function finfomation()
  263. {
  264. var row = ds_bftestlist.rowposition;
  265. ds_send_data1.setColumn(0, "spcacptdt", ds_bftestlist.getColumn(row, "bflastreptdt"));
  266. ds_send_data1.setColumn(0, "spcscrnnm", ds_bftestlist.getColumn(row, "spcscrnnm"));
  267. ds_send_data1.setColumn(0, "workno", ds_bftestlist.getColumn(row, "bfworkno"));
  268. ds_send_data1.setColumn(0, "bcno", ds_bftestlist.getColumn(row, "bfbcno"));
  269. }
  270. function fAntimicRef()
  271. {
  272. // datagrid2.deleteContentsRow("Head",0);
  273. // datagrid2.deleteContentsRow("Body",0);
  274. var r = ds_bftestlist.rowposition;
  275. //model.makeNode("/root/main/rsltlist/row");
  276. //model.copyNode("/root/send/data2" , "/root/main/bftestlist["+datagrid1.row+"]");
  277. //submit("TRLMR90602", false);
  278. dsf_createDsRow("ds_send_data2", [{col : "testcd", val : ds_bftestlist.getColumn(r, "testcd")}
  279. ,{col : "spccd", val : ds_bftestlist.getColumn(r, "spccd")}
  280. ,{col : "bcno", val : ds_bftestlist.getColumn(r, "bfbcno")}]);
  281. var oParam = {};
  282. oParam.id = "TRLMR90602";
  283. oParam.service = "rsltmngtapp.RsltMngt";
  284. oParam.method = "reqGetMicroBFRsltRef2";
  285. oParam.inds = "cond=ds_send_data2";
  286. oParam.outds = "ds_datagrid2=row ds_rsltlist_header=header";
  287. oParam.async = false;
  288. //oParam.callback = "cf_TRLMR90602";
  289. tranf_submit(oParam);
  290. var gridCaption = ds_rsltlist_header.getColumn(0, "caption");
  291. //if(gridCaption == "") return;
  292. if(utlf_isNull(gridCaption)) return;
  293. //ref 정보
  294. //var gridColRef = model.getValue("/root/hidden/temp/rsltlist/header/colref");
  295. //var gridColRefArray = gridColRef.split("^");
  296. //var gridColType = model.getValue("/root/hidden/temp/rsltlist/header/type");
  297. var gridColRef = ds_rsltlist_header.getColumn(0, "colref");
  298. var gridColRefArray = gridColRef.split("^");
  299. var gridColType = ds_rsltlist_header.getColumn(0, "type");
  300. var gridColTypeArray = gridColType.split("^");
  301. var gridColCap = ds_rsltlist_header.getColumn(0, "caption");
  302. var gridColCapArray = gridColCap.split("^");
  303. for( var i = 3; i <= gridColCapArray.length; i++ )
  304. {
  305. //datagrid2.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; ", false);
  306. datagrid2.setCellProperty("Head", i, "text", gridColCapArray[i-1]);
  307. datagrid2.setFormatColProperty( i, "size", 70);
  308. datagrid2.setCellProperty("body", i, "text", "bind:"+gridColRefArray[i-1]);
  309. }
  310. datagrid2.setFormatColProperty( 0, "size", 22);
  311. datagrid2.setFormatColProperty( 1, "size", 22);
  312. datagrid2.setFormatColProperty( 2, "size", 150);
  313. }
  314. //선택
  315. function button3_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. fSelect_Click();
  318. }
  319. // 선택버튼 클릭
  320. function fSelect_Click()
  321. {
  322. var bcno = ds_bftestlist.getColumn(ds_bftestlist.rowposition, "bfbcno");
  323. var testcd = ds_bftestlist.getColumn(ds_bftestlist.rowposition, "testcd");
  324. var strRef = bcno + "/" + testcd + "/" + testcd + "/";
  325. var bacTF = false;
  326. for(i = 0; i < ds_datagrid2.rowcount; i++)
  327. {
  328. if(ds_datagrid2.getColumn(i, "chk") == 1)
  329. {
  330. strRef = strRef + ds_datagrid2.getColumn(i, "bacseqno") + "@";
  331. bacTF = true;
  332. }
  333. }
  334. strRef = strRef + "/";
  335. for(i = 0; i < ds_datagrid2.rowcount; i++)
  336. {
  337. if(ds_datagrid2.getColumn(i, "chk") == "1")
  338. {
  339. strRef = strRef + ds_datagrid2.getColumn(i, "baccd") + "@";
  340. bacTF = true;
  341. }
  342. }
  343. if(bacTF)
  344. {
  345. trace("strRef="+strRef);
  346. opener.frmf_setParameter(ds_hidden_bfsltparm.setColumn(0, "bacrslt", strRef));
  347. }
  348. this.close(); // 폼 종료
  349. }
  350. //닫기
  351. function button4_onclick(obj:Button, e:ClickEventInfo)
  352. {
  353. this.close();
  354. }
  355. ]]></Script>
  356. </Form>
  357. </FDL>