SMADC03600_NST영양액관리.xfdl 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADC03600_NST영양액관리" classname="SMADC03600_NST영양액관리" inheritanceid="" position="absolute 0 0 946 685" titletext="New Form" oninit="SMADC03600_oninit" onload="SMADC03600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption13" text="NST관리대상자" onclick="caption13_onclick" class="tit_2" position="absolute 3 11 192 31"/>
  8. <Shape id="line02" class="line_10" position="absolute 1 27 944 33" anchor="left top right" style="border:0 none black ;font:arial,9,bold;"/>
  9. <Grid id="grd_codelist" taborder="4" useinputpanel="false" position="absolute 1 32 944 679" binddataset="ds_nstinfo_codelist" autosizingtype="row" autofitminheight="100" cellsizingtype="row" extendsizetype="row" oncellclick="grd_codelist_oncellclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="23"/>
  14. <Column size="58"/>
  15. <Column size="144"/>
  16. <Column size="59"/>
  17. <Column size="60"/>
  18. <Column size="60"/>
  19. <Column size="60"/>
  20. <Column size="60"/>
  21. <Column size="60"/>
  22. <Column size="60"/>
  23. <Column size="60"/>
  24. <Column size="60"/>
  25. <Column size="60"/>
  26. <Column size="60"/>
  27. <Column size="40"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="47" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="코드"/>
  36. <Cell col="2" text="코드명"/>
  37. <Cell col="3" text="열량&#13;&#10;밀도&#13;&#10;(kcal/ml)"/>
  38. <Cell col="4" text="용량&#13;&#10;(ml)"/>
  39. <Cell col="5" text="열량&#13;&#10;(kcal)"/>
  40. <Cell col="6" text="탄수&#13;&#10;화물&#13;&#10;(g)"/>
  41. <Cell col="7" text="당류&#13;&#10;(g)"/>
  42. <Cell col="8" text="식이&#13;&#10;섬유&#13;&#10;(g)"/>
  43. <Cell col="9" text="단백질&#13;&#10;(g)"/>
  44. <Cell col="10" text="지방&#13;&#10;(g)"/>
  45. <Cell col="11" text="나트륨&#13;&#10;(mg)"/>
  46. <Cell col="12" text="칼륨&#13;&#10;(mg)"/>
  47. <Cell col="13" text="삼투압&#13;&#10;(mOsm&#13;&#10;/kgH2O)"/>
  48. <Cell col="14" text="사용&#13;&#10;여부"/>
  49. </Band>
  50. <Band id="body">
  51. <Cell celltype="head"/>
  52. <Cell col="1" displaytype="combo" edittype="combo" style="align:center middle;padding:3 3 3 3;" text="bind:gubn" wordwrap="word" combodataset="ds_init_codelist" combocodecol="cdid" combodatacol="cdnm" autosizerow="limitmin"/>
  53. <Cell col="2" displaytype="text" edittype="text" style="align:left;" text="bind:cdnm"/>
  54. <Cell col="3" displaytype="number" edittype="normal" style="align:center;" text="bind:mildo" expr="expr:cal/vol"/>
  55. <Cell col="4" displaytype="number" edittype="text" style="align:center;" text="bind:vol"/>
  56. <Cell col="5" displaytype="number" edittype="text" style="align:center;" text="bind:cal"/>
  57. <Cell col="6" displaytype="number" edittype="text" style="align:center;" text="bind:carb"/>
  58. <Cell col="7" displaytype="number" edittype="text" style="align:center;" text="bind:sugar"/>
  59. <Cell col="8" displaytype="number" edittype="text" style="align:center;" text="bind:df"/>
  60. <Cell col="9" displaytype="number" edittype="text" style="align:center;" text="bind:prot"/>
  61. <Cell col="10" displaytype="number" edittype="text" style="align:center;" text="bind:fat"/>
  62. <Cell col="11" displaytype="number" edittype="text" style="align:center;" text="bind:na"/>
  63. <Cell col="12" displaytype="number" edittype="text" style="align:center;" text="bind:k"/>
  64. <Cell col="13" displaytype="number" edittype="text" style="align:center;" text="bind:op"/>
  65. <Cell col="14" displaytype="checkbox" edittype="checkbox" expr="(useyn=='Y') ? '1' : '0'"/>
  66. </Band>
  67. </Format>
  68. </Formats>
  69. </Grid>
  70. <Button id="btn_add" taborder="5" text="행추가" position="absolute 837 8 888 28" onclick="btn_add_onclick" class="btn2"/>
  71. <Button id="btn_save" taborder="6" text="저장" position="absolute 893 7 944 27" onclick="btn_save_onclick" class="btn2"/>
  72. </Layout>
  73. </Layouts>
  74. <Objects>
  75. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  76. <ColumnInfo>
  77. <Column id="fromdd" type="STRING" size="256"/>
  78. <Column id="todd" type="STRING" size="256"/>
  79. <Column id="cdgrupid" type="STRING" size="256"/>
  80. </ColumnInfo>
  81. <Rows>
  82. <Row/>
  83. </Rows>
  84. </Dataset>
  85. <Dataset id="ds_nstinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="cdgrupid" type="STRING" size="256"/>
  88. <Column id="cdid" type="STRING" size="256"/>
  89. <Column id="cdnm" type="STRING" size="256"/>
  90. <Column id="gubn" type="STRING" size="256"/>
  91. <Column id="vol" type="STRING" size="256"/>
  92. <Column id="cal" type="STRING" size="256"/>
  93. <Column id="carb" type="STRING" size="256"/>
  94. <Column id="sugar" type="STRING" size="256"/>
  95. <Column id="df" type="STRING" size="256"/>
  96. <Column id="prot" type="STRING" size="256"/>
  97. <Column id="fat" type="STRING" size="256"/>
  98. <Column id="na" type="STRING" size="256"/>
  99. <Column id="k" type="STRING" size="256"/>
  100. <Column id="op" type="STRING" size="256"/>
  101. <Column id="etc1" type="STRING" size="256"/>
  102. <Column id="etc2" type="STRING" size="256"/>
  103. <Column id="etc3" type="STRING" size="256"/>
  104. <Column id="instcd" type="STRING" size="256"/>
  105. <Column id="mildo" type="STRING" size="256"/>
  106. <Column id="useyn" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. </Dataset>
  109. <Dataset id="ds_init_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="cdid" type="STRING" size="256"/>
  112. <Column id="cdnm" type="STRING" size="256"/>
  113. <Column id="cdgrupid" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. </Dataset>
  116. <Dataset id="ds_send_savereq" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  117. </Objects>
  118. <Bind/>
  119. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  120. include "ast_commonxp::AST.xjs";
  121. include "ast_pharmacybasexp::pharmacycombolist.xjs";
  122. function SMADC03600_onload(obj:Form, e:LoadEventInfo)
  123. {
  124. ds_send_req.setColumn(0, "cdgrupid", "000");
  125. pharmacyGetCodeList([{dsNm: "ds_init_codelist" , cdGrpId: "PN41", sorField: ""}], false , false, "");
  126. fSearch();
  127. }
  128. /** 초기화
  129. */
  130. function SMADC03600_oninit(obj:Form, e:InitEventInfo)
  131. {
  132. frmf_initForm(obj);
  133. //grdf_initGrid(grd_nstlist);
  134. }
  135. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  136. {
  137. fSearch();
  138. }
  139. function fSearch() {
  140. var oParam = {};
  141. oParam.id = "TRADC03601";
  142. oParam.service = "pharmacyconsultapp.TDMMngt";
  143. oParam.method = "reqGetNstCodeList";
  144. oParam.inds = "req=ds_send_req";
  145. oParam.outds = "ds_nstinfo_codelist=info";
  146. oParam.async = false;
  147. //oParam.callback = "cf_TRADC02603";
  148. tranf_submit(oParam);
  149. }
  150. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  151. {
  152. var idx = ds_nstinfo_codelist.addRow();
  153. ds_nstinfo_codelist.setColumn(idx, "cdgrupid", "000");
  154. }
  155. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  156. {
  157. var dsUpdate = grdf_getGridUpdateData(grd_codelist, "all");
  158. grdf_setStatusColumn(dsUpdate, "m");
  159. if(dsUpdate.rowcount == 0){
  160. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  161. }
  162. else {
  163. ds_send_savereq.clear();
  164. ds_send_savereq.copyData(dsUpdate, true);
  165. }
  166. var oParam = {};
  167. oParam.id = "TXADC03601";
  168. oParam.service = "pharmacyconsultapp.TDMMngt";
  169. oParam.method = "reqExeNstCodeList";
  170. oParam.inds = "req=ds_send_savereq";
  171. oParam.outds = "ds_nstinfo_codelist=info";
  172. oParam.async = false;
  173. //oParam.callback = "cf_TRADC02603";
  174. tranf_submit(oParam);
  175. }
  176. function grd_codelist_oncellclick(obj:Grid, e:GridClickEventInfo)
  177. {
  178. var cCol = obj.currentcol;
  179. var cRow = obj.currentrow;
  180. var useyn="";
  181. if(cCol == 14) {
  182. useyn = ds_nstinfo_codelist.getColumn(cRow, "useyn");
  183. if(useyn == "Y") {
  184. ds_nstinfo_codelist.setColumn(cRow, "useyn", "N");
  185. } else {
  186. ds_nstinfo_codelist.setColumn(cRow, "useyn", "Y");
  187. }
  188. } else {
  189. grd_codelist.setFocus();
  190. grd_codelist.setCellPos(cCol);
  191. grd_codelist.showEditor(true);
  192. }
  193. }
  194. ]]></Script>
  195. </Form>
  196. </FDL>