SPLMR90700_배양검사결과입력.xfdl 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLMR90700" position="absolute 0 0 506 615" titletext="배양검사 결과입력" oninit="SPLMR90700_oninit" onload="SPLMR90700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="배양검사 결과입력" class="tit_2" position="absolute 1 4 133 21"/>
  8. <Button id="button9" taborder="1" text="취소" class="btn4" position="absolute 445 588 501 610" onclick="button9_onclick"/>
  9. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 23 500 29"/>
  10. <Button id="btn_cfm" taborder="2" text="확인" class="btn4" position="absolute 389 588 445 610" onclick="btn_cfm_onclick"/>
  11. <Button id="button1" taborder="3" text="Clear" class="btn4" position="absolute 321 588 389 610" onclick="button1_onclick"/>
  12. <Static id="caption5" text="결과예문" class="tit_2" position="absolute 1 40 76 56"/>
  13. <Grid id="datagrid1" taborder="4" binddataset="ds_main_Gram_RsltCode" useinputpanel="false" position="absolute 1 60 501 390" autosizingtype="none" autofittype="col" selecttype="cell" oncellclick="datagrid1_oncellclick">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="99"/>
  18. <Column size="99"/>
  19. <Column size="99"/>
  20. <Column size="99"/>
  21. <Column size="99"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="32"/>
  25. </Rows>
  26. <Band id="body">
  27. <Cell style="background:#eeffffff;background2:#eeffffff;" text="bind:cd1"/>
  28. <Cell col="1" style="background:#eeffffff;background2:#eeffffff;" text="bind:cd2"/>
  29. <Cell col="2" style="background:#eeffffff;background2:#eeffffff;" text="bind:cd3"/>
  30. <Cell col="3" style="background:#eeffffff;background2:#eeffffff;" text="bind:cd4"/>
  31. <Cell col="4" style="background:#eeffffff;background2:#eeffffff;" text="bind:cd5"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Static id="caption1" text="검사결과" class="tit_2" position="absolute 4 399 76 415"/>
  37. <ActiveX id="object2" position="absolute 2 420 503 565" progid="{CC980D81-CB5E-46A3-94F8-6925747F95E4}" useautobitmapcache="1" taborder="5" visible="false"/>
  38. <TextArea id="object1" taborder="6" position="absolute 1 418 503 569" oneditclick="object1_oneditclick" onkeyup="object1_onkeyup" onsetfocus="object1_onsetfocus"/>
  39. </Layout>
  40. </Layouts>
  41. <Objects>
  42. <Dataset id="ds_main_Gram_RsltCode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  43. <ColumnInfo>
  44. <Column id="cd1" type="STRING"/>
  45. <Column id="cd2" type="STRING"/>
  46. <Column id="cd3" type="STRING"/>
  47. <Column id="cd4" type="STRING"/>
  48. <Column id="cd5" type="STRING"/>
  49. </ColumnInfo>
  50. </Dataset>
  51. <Dataset id="ds_LB0109" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  52. <ColumnInfo>
  53. <Column id="cd" type="STRING" size="256"/>
  54. <Column id="nm" type="STRING" size="256"/>
  55. </ColumnInfo>
  56. </Dataset>
  57. <Dataset id="ds_hidden_cultrueParm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  58. <ColumnInfo>
  59. <Column id="testcd" type="STRING" size="256"/>
  60. <Column id="bufParm" type="STRING" size="256"/>
  61. </ColumnInfo>
  62. <Rows>
  63. <Row/>
  64. </Rows>
  65. </Dataset>
  66. </Objects>
  67. <Bind>
  68. <BindItem id="item0" compid="object1" propid="value" datasetid="ds_hidden_cultrueParm" columnid="bufParm"/>
  69. </Bind>
  70. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  71. * System Name :
  72. * Job Name :
  73. * Creator :
  74. * Make Date : 2017-05-22
  75. * Description :
  76. *---------------------------------------------------------------------------------------
  77. * Modify Date Modifier Modify Description
  78. *---------------------------------------------------------------------------------------
  79. * 2017-05-22 Live Converter TF->XP
  80. *
  81. *---------------------------------------------------------------------------------------
  82. ****************************************************************************************/
  83. include "com_commonxp::comm_main.xjs";
  84. include "lis_commonxp::LLZ001.xjs";
  85. var _ContentObject;
  86. var _ContentPos;
  87. function SPLMR90700_oninit(obj:Form, e:InitEventInfo)
  88. {
  89. frmf_initForm(obj);
  90. grdf_initGrid(datagrid1);
  91. }
  92. function SPLMR90700_onload(obj:Form, e:LoadEventInfo)
  93. {
  94. ds_hidden_cultrueParm.copyData(opener.ds_hidden_cultureParm);
  95. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "codeflag", val: "0109|"}]);
  96. var oParam = {};
  97. oParam.id = "TRLZZ00101";
  98. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  99. oParam.method = "reqGetInitCodeInfo";
  100. oParam.inds = "cond=ds_temp_search";
  101. oParam.outds = "ds_LB0109=0109";
  102. oParam.async = false;
  103. //oParam.callback = "cf_TRLZZ00101";
  104. tranf_submit(oParam);
  105. fRsltCodeSet();
  106. }
  107. function fRsltCodeSet()
  108. {
  109. var testcd1 = opener.frmf_getParameter("testcd");
  110. ds_LB0109.filterstr ="etc01 =='" + testcd1 + "' && etc03 =='N' && etc04 == 'Y'";
  111. var n = ds_LB0109.rowcount;
  112. var gridRow = 0;
  113. var seq =0;
  114. ds_main_Gram_RsltCode.addRow();
  115. ds_main_Gram_RsltCode.rowposition = -1;
  116. for(i = 1; i <= n; i++)
  117. {
  118. var cd = ds_LB0109.getColumn(i-1, "cd");
  119. var nm = ds_LB0109.getColumn(i-1, "nm");
  120. seq++;
  121. ds_main_Gram_RsltCode.setColumn(0, "cd"+seq, cd);
  122. if(i%5 == 0 && i !=n)
  123. {
  124. seq = 0;
  125. gridRow++;
  126. ds_main_Gram_RsltCode.addRow();
  127. }
  128. }
  129. }
  130. //clear
  131. function button1_onclick(obj:Button, e:ClickEventInfo)
  132. {
  133. object1.value = "";
  134. }
  135. //확인
  136. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  137. {
  138. fInput();
  139. }
  140. //취소
  141. function button9_onclick(obj:Button, e:ClickEventInfo)
  142. {
  143. this.close();
  144. }
  145. function fInput()
  146. {
  147. ds_hidden_cultrueParm.setColumn(0, "bufParm", object1.value);
  148. opener.ds_hidden_cultureParm.setColumn(0, "bufParm", ds_hidden_cultrueParm.getColumn(0, "bufParm"));
  149. this.close();
  150. }
  151. function datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo)
  152. {
  153. fRsltCodeClick();
  154. }
  155. function fRsltCodeClick()
  156. {
  157. //var testcd1 = model.getvalue("/root/hidden/cultureParm/testcd");
  158. var testcd1 = ds_hidden_cultrueParm.getColumn(0, "testcd");
  159. var row = datagrid1.currentrow;
  160. var col = datagrid1.currentcol;
  161. var code = ds_main_Gram_RsltCode.getColumn(row, col);
  162. ds_LB0109.filterstr = "etc01 == '" + testcd1 + "' && cd == '" + code + "'";
  163. var nm = ds_LB0109.getColumn(0, "nm");
  164. var sExmpCntsD = nm;
  165. var txtSelPos = _ContentPos;
  166. _ContentObject = object1;
  167. var curText = utlf_transNullToEmpty(_ContentObject.text);
  168. var curTextBefore = curText.substr(0, txtSelPos);
  169. var curTextAfter = curText.substr(txtSelPos, curText.length);
  170. var orgBfCaretText = curText.substr(0, _ContentPos)+sExmpCntsD;
  171. _ContentObject.value = curTextAfter + orgBfCaretText;
  172. }
  173. function object1_oneditclick(obj:TextArea, e:EditClickEventInfo)
  174. {
  175. _ContentObject = obj;
  176. _ContentPos = obj.getCaretPos();
  177. }
  178. function object1_onkeyup(obj:TextArea, e:KeyEventInfo)
  179. {
  180. _ContentObject = obj;
  181. _ContentPos = obj.getCaretPos();
  182. }
  183. function object1_onsetfocus(obj:TextArea, e:SetFocusEventInfo)
  184. {
  185. _ContentObject = obj;
  186. _ContentPos = obj.getCaretPos();
  187. }
  188. ]]></Script>
  189. </Form>
  190. </FDL>