SPLMR90500_GRAM결과입력.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLMR90500" position="absolute 0 0 724 614" titletext="Gram Stain 결과입력" oninit="SPLMR90500_oninit" onload="SPLMR90500_onload">
  5. <Layouts>
  6. <Layout>
  7. <TextArea id="object3" taborder="13" position="absolute 1 427 720 578" oneditclick="object1_oneditclick" onkeyup="object1_onkeyup" wordwrap="both" onsetfocus="object1_onsetfocus" ondragleave="object1_ondragleave" ondrag="object1_ondrag" visible="false"/>
  8. <Static id="caption2" text="Gram Stain 결과입력" class="tit_2" position="absolute 1 11 164 27"/>
  9. <Button id="button9" taborder="1" text="취소" class="btn4" position="absolute 661 590 717 612" onclick="button9_onclick"/>
  10. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 27 720 33"/>
  11. <Static id="caption4" text="Sputum Grade" class="cell_1" position="absolute 0 31 105 54"/>
  12. <Shape id="line4" linetype="horizontal" class="line_3" position="absolute 0 53 720 59"/>
  13. <Button id="btn_cfm" taborder="2" text="확인" class="btn4" position="absolute 605 590 661 612" onclick="btn_cfm_onclick"/>
  14. <Button id="button1" taborder="3" text="Clear" class="btn4" position="absolute 537 590 605 612" onclick="button1_onclick"/>
  15. <Static id="caption5" text="결과예문" class="tit_2" position="absolute 1 60 75 76"/>
  16. <Button id="button2" taborder="4" text="1" class="btn2" position="absolute 108 33 150 52" onclick="button2_onclick"/>
  17. <Button id="button3" taborder="5" text="2" class="btn2" position="absolute 151 33 193 52" onclick="button3_onclick"/>
  18. <Button id="button4" taborder="6" text="3" class="btn2" position="absolute 194 33 236 52" onclick="button4_onclick"/>
  19. <Button id="button5" taborder="7" text="4" class="btn2" position="absolute 237 33 279 52" onclick="button5_onclick"/>
  20. <Button id="button6" taborder="8" text="5" class="btn2" position="absolute 280 33 322 52" onclick="button6_onclick"/>
  21. <Button id="button7" taborder="9" text="6" class="btn2" position="absolute 323 33 365 52" onclick="button7_onclick"/>
  22. <Button id="button8" taborder="10" text="7" class="btn2" position="absolute 366 33 408 52" onclick="button8_onclick"/>
  23. <Grid id="grd_RsltCode" taborder="11" binddataset="ds_grd_RsltCode" useinputpanel="false" position="absolute 0 80 720 390" autofittype="col" cellsizingtype="none" selecttype="cell" oncellclick="grd_RsltCode_oncellclick">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="99"/>
  28. <Column size="99"/>
  29. <Column size="99"/>
  30. <Column size="99"/>
  31. <Column size="99"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="32"/>
  37. </Rows>
  38. <Band id="body">
  39. <Cell style="align:left middle;background:#eeffffff;background2:#eeffffff;font:Dotum,14,bold;" text="bind:cd1"/>
  40. <Cell col="1" style="align:left middle;background:#eeffffff;background2:#eeffffff;font:Dotum,14,bold;" text="bind:cd2"/>
  41. <Cell col="2" style="align:left middle;background:#eeffffff;background2:#eeffffff;font:Dotum,14,bold;" text="bind:cd3"/>
  42. <Cell col="3" style="align:left middle;background:#eeffffff;background2:#eeffffff;font:Dotum,14,bold;" text="bind:cd4"/>
  43. <Cell col="4" style="align:left middle;background:#eeffffff;background2:#eeffffff;font:Dotum,14,bold;" text="bind:cd5"/>
  44. <Cell col="5" style="align:left middle;background:#eeffffff;background2:#eeffffff;font:Dotum,14,bold;" text="bind:cd6"/>
  45. <Cell col="6" style="align:left middle;background:#eeffffff;background2:#eeffffff;font:Dotum,14,bold;" text="bind:cd7"/>
  46. </Band>
  47. </Format>
  48. </Formats>
  49. </Grid>
  50. <Static id="caption1" text="검사결과" class="tit_2" position="absolute 4 410 80 429"/>
  51. <ActiveX id="object1" position="absolute 0 430 721 570" progid="{CC980D81-CB5E-46A3-94F8-6925747F95E4}" useautobitmapcache="1" taborder="12" visible="true"/>
  52. </Layout>
  53. </Layouts>
  54. <Objects>
  55. <Dataset id="ds_grd_RsltCode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  56. <ColumnInfo>
  57. <Column id="cd1" type="STRING"/>
  58. <Column id="cd2" type="STRING"/>
  59. <Column id="cd3" type="STRING"/>
  60. <Column id="cd4" type="STRING"/>
  61. <Column id="cd5" type="STRING"/>
  62. <Column id="cd6" type="STRING"/>
  63. <Column id="cd7" type="STRING"/>
  64. </ColumnInfo>
  65. </Dataset>
  66. <Dataset id="ds_hidden_GRAMParm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  67. <ColumnInfo>
  68. <Column id="bufParm" type="STRING" size="256"/>
  69. </ColumnInfo>
  70. <Rows>
  71. <Row/>
  72. </Rows>
  73. </Dataset>
  74. <Dataset id="ds_LB0109" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  75. <ColumnInfo>
  76. <Column id="cd" type="STRING" size="256"/>
  77. <Column id="nm" type="STRING" size="256"/>
  78. </ColumnInfo>
  79. </Dataset>
  80. </Objects>
  81. <Bind>
  82. <BindItem id="item0" compid="object3" propid="value" datasetid="ds_hidden_GRAMParm" columnid="bufParm"/>
  83. </Bind>
  84. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  85. * System Name :
  86. * Job Name :
  87. * Creator :
  88. * Make Date : 2015-05-01
  89. * Description :
  90. *---------------------------------------------------------------------------------------
  91. * Modify Date Modifier Modify Description
  92. *---------------------------------------------------------------------------------------
  93. * 2015-05-01 Live Converter TF->XP
  94. *
  95. *---------------------------------------------------------------------------------------
  96. ****************************************************************************************/
  97. include "com_commonxp::comm_main.xjs";
  98. include "lis_commonxp::LLZ001.xjs";
  99. var _ContentObject;
  100. var _ContentPos;
  101. function SPLMR90500_oninit(obj:Form, e:InitEventInfo)
  102. {
  103. frmf_initForm(obj);
  104. grdf_initGrid(grd_RsltCode);
  105. }
  106. function SPLMR90500_onload(obj:Form, e:LoadEventInfo)
  107. {
  108. ds_hidden_GRAMParm.setColumn(0, "bufParm", opener.frmf_getParameter("bufParm"));
  109. if( !utlf_isNull(opener.frmf_getParameter("bufParm")))
  110. {
  111. object1.SetString(opener.frmf_getParameter("bufParm"));
  112. }
  113. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "codeflag", val: "0109|"}]);
  114. var oParam = {};
  115. oParam.id = "TRLZZ00101";
  116. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  117. oParam.method = "reqGetInitCodeInfo";
  118. oParam.inds = "cond=ds_temp_search";
  119. oParam.outds = "ds_LB0109=0109";
  120. oParam.async = false;
  121. //oParam.callback = "cf_TRLZZ00101";
  122. tranf_submit(oParam);
  123. fRsltCodeSet();
  124. }
  125. function fRsltCodeSet()
  126. {
  127. var testcd1 = "LMR100";
  128. ds_LB0109.filterstr = "etc01 == '" + testcd1 + "'";
  129. var n = ds_LB0109.rowcount;
  130. var gridRow = 0;
  131. var seq =0;
  132. ds_grd_RsltCode.addRow();
  133. for(i = 1; i <= n; i++)
  134. {
  135. var cd = ds_LB0109.getColumn(i-1, "cd");
  136. var nm = ds_LB0109.getColumn(i-1, "nm");
  137. seq++;
  138. ds_grd_RsltCode.setColumn(gridRow, "cd"+seq, cd);
  139. if(i%7 == 0 && i !=n)
  140. {
  141. seq = 0;
  142. gridRow++;
  143. ds_grd_RsltCode.addRow();
  144. }
  145. }
  146. object1.setFocus();
  147. }
  148. function button2_onclick(obj:Button, e:ClickEventInfo)
  149. {
  150. fSputumInput("1");
  151. }
  152. function button3_onclick(obj:Button, e:ClickEventInfo)
  153. {
  154. fSputumInput("2");
  155. }
  156. function button4_onclick(obj:Button, e:ClickEventInfo)
  157. {
  158. fSputumInput("3");
  159. }
  160. function button5_onclick(obj:Button, e:ClickEventInfo)
  161. {
  162. fSputumInput("4");
  163. }
  164. function button6_onclick(obj:Button, e:ClickEventInfo)
  165. {
  166. fSputumInput("5");
  167. }
  168. function button7_onclick(obj:Button, e:ClickEventInfo)
  169. {
  170. fSputumInput("6");
  171. }
  172. function button8_onclick(obj:Button, e:ClickEventInfo)
  173. {
  174. fSputumInput("7");
  175. }
  176. function fSputumInput(code)
  177. {
  178. var testcd2 = "LMR10001";
  179. ds_LB0109.filterstr = "";
  180. ds_LB0109.filterstr = "etc01 == '" + testcd2 + "' && cd == '" + code + "'";
  181. var nm = ds_LB0109.getColumn(0, "nm");
  182. nm = utlf_transNullToEmpty(nm);
  183. object1.PutInString(nm);
  184. // if(utlf_isNull(nm))
  185. // {
  186. // nm = " ";
  187. // }
  188. //
  189. // var sExmpCntsD = nm;
  190. // var txtSelPos = _ContentPos;
  191. //
  192. // var curText = utlf_transNullToEmpty(_ContentObject.text);
  193. //
  194. // var curTextBefore = curText.substr(0, txtSelPos);
  195. //
  196. // var curTextAfter = curText.substr(txtSelPos, curText.length);
  197. //
  198. // var orgBfCaretText = curText.substr(0, _ContentPos)+sExmpCntsD;
  199. //
  200. // _ContentObject.value = curTextAfter + orgBfCaretText;
  201. }
  202. function object1_oneditclick(obj:TextArea, e:EditClickEventInfo)
  203. {
  204. _ContentObject = obj;
  205. _ContentPos = obj.getCaretPos();
  206. trace("_ContentPos= " + _ContentPos);
  207. }
  208. function object1_onkeyup(obj:TextArea, e:KeyEventInfo)
  209. {
  210. _ContentObject = obj;
  211. _ContentPos = obj.getCaretPos();
  212. }
  213. function object1_onsetfocus(obj:TextArea, e:SetFocusEventInfo)
  214. {
  215. _ContentObject = obj;
  216. _ContentPos = obj.getCaretPos();
  217. }
  218. function grd_RsltCode_oncellclick(obj:Grid, e:GridClickEventInfo)
  219. {
  220. //trace("text = " + object1.getSelectedText());
  221. //trace("pos = " + object1.getCaretPos());
  222. fRsltCodeClick();
  223. }
  224. function fRsltCodeClick()
  225. {
  226. var testcd1 = "LMR100";
  227. var row = grd_RsltCode.currentrow;
  228. var col = grd_RsltCode.currentcol;
  229. var code = ds_grd_RsltCode.getColumn(row, col);
  230. ds_LB0109.filterstr = "etc01 == '" + testcd1 + "' && cd == '" + code + "'";
  231. var nm = ds_LB0109.getColumn(0, "nm");
  232. var sExmpCntsD = nm;
  233. var txtSelPos = _ContentPos;
  234. object1.PutInString(nm);
  235. // trace("sExmpCntsD =>>>>>>>>>>>>>>>>>>> " + sExmpCntsD);
  236. //
  237. // var curText = utlf_transNullToEmpty(_ContentObject.text);
  238. // var curTextBefore = curText.substr(0, txtSelPos);
  239. //
  240. // trace("curTextBefore= " + curTextBefore);
  241. //
  242. // var curTextAfter = curText.substr(txtSelPos, curText.length);
  243. // var orgBfCaretText = curText.substr(0, _ContentPos)+sExmpCntsD;
  244. // trace("orgBfCaretText = " + orgBfCaretText);
  245. //
  246. // _ContentObject.value = curTextAfter + orgBfCaretText;
  247. }
  248. function button1_onclick(obj:Button, e:ClickEventInfo)
  249. {
  250. object1.value = "";
  251. }
  252. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  253. {
  254. fInput();
  255. }
  256. function fInput()
  257. {
  258. ds_hidden_GRAMParm.setColumn(0, "bufParm", object1.GetString());
  259. opener.ds_hidden_GRAMParm.setColumn(0, "bufParm", ds_hidden_GRAMParm.getColumn(0, "bufParm"));
  260. this.close();
  261. }
  262. function button9_onclick(obj:Button, e:ClickEventInfo)
  263. {
  264. this.close();
  265. }
  266. ]]></Script>
  267. </Form>
  268. </FDL>