SMADT20400_NSTCodeMaster.xfdl 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADT20400" position="absolute 0 0 1195 729" titletext="TPNCodeMaster 관리" oninit="SMADT20400_oninit" onload="SMADT20400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="TPNCodeMaster" class="tit_1" position="absolute 0 0 149 25"/>
  8. <Shape id="line8" class="line_2" position="absolute 1 560 1194 566" anchor="left bottom"/>
  9. <Static id="caption60" text="비고" class="cell_1" position="absolute 439 700 548 723" anchor="left bottom"/>
  10. <Shape id="line9" class="line_2" position="absolute 1 586 1194 592" anchor="left bottom"/>
  11. <Static id="caption50" text="%" position="absolute 1042 462 1062 482" anchor="left bottom"/>
  12. <Static id="caption61" text="약가(원/P)" class="cell_1" position="absolute 817 647 926 670" anchor="left bottom"/>
  13. <Static id="caption40" text="mEq" position="absolute 660 539 695 559" anchor="left bottom"/>
  14. <Static id="caption51" text="ml" position="absolute 1173 462 1193 482" anchor="left bottom"/>
  15. <Shape id="line10" class="line_2" position="absolute 1 534 1194 540" anchor="left bottom"/>
  16. <Static id="caption52" text="%" position="absolute 1042 487 1062 507" anchor="left bottom"/>
  17. <Static id="caption41" text="ml" position="absolute 661 566 696 586" anchor="left bottom"/>
  18. <Static id="caption30" text="KCal" position="absolute 288 592 323 612" anchor="left bottom"/>
  19. <Static id="caption42" text="Lipid" class="cell_1" position="absolute 820 460 930 483" anchor="left bottom"/>
  20. <Static id="caption53" text="mEq" position="absolute 1041 513 1076 533" anchor="left bottom"/>
  21. <Static id="caption31" text="g" position="absolute 420 487 440 507" anchor="left bottom"/>
  22. <Shape id="line12" class="line_3" position="absolute -1 613 1192 619" anchor="left bottom"/>
  23. <Static id="caption43" text="Mg" class="cell_1" position="absolute 820 538 929 561" anchor="left bottom"/>
  24. <Static id="caption54" text="ml" position="absolute 1041 566 1076 586" anchor="left bottom"/>
  25. <Static id="caption32" text="TPN구분" class="cell_1" position="absolute 691 431 758 454" anchor="left bottom"/>
  26. <Static id="caption21" text="Amino Acid" class="cell_1" position="absolute 440 460 550 483" anchor="left bottom"/>
  27. <Static id="caption10" text="제품성상" class="cell_1" position="absolute 0 673 67 696" anchor="left bottom"/>
  28. <Shape id="line13" class="line_3" position="absolute -1 642 1192 648" anchor="left bottom"/>
  29. <Static id="caption1" text="성인/소아" class="cell_1" position="absolute 0 432 67 455" anchor="left bottom"/>
  30. <Static id="caption44" text="FURV" class="cell_1" position="absolute 820 564 929 587" anchor="left bottom"/>
  31. <Static id="caption55" text="KCal" position="absolute 931 592 966 612" anchor="left bottom"/>
  32. <Static id="caption33" text="적용일자" class="cell_1" position="absolute 691 407 758 430" anchor="left bottom"/>
  33. <Static id="caption22" text="Ca" class="cell_1" position="absolute 440 538 549 561" anchor="left bottom"/>
  34. <Static id="caption11" text="제약회사" class="cell_1" position="absolute 0 700 67 723" anchor="left bottom"/>
  35. <Shape id="line14" class="line_2" position="absolute 1 669 1194 675" anchor="left bottom"/>
  36. <Static id="caption2" text="혼합 전" class="cell_1" position="absolute 0 460 67 483" anchor="left bottom"/>
  37. <Button id="button61" taborder="1" class="icon_search" position="absolute 289 411 305 427" onclick="button61_onclick" anchor="left bottom"/>
  38. <Static id="caption45" text="Tt.Calories" class="cell_1" position="absolute 705 590 814 613" anchor="left bottom"/>
  39. <Static id="caption34" text="규격" class="cell_1" position="absolute 902 432 1032 455" anchor="left bottom"/>
  40. <Static id="caption56" text=":" position="absolute 433 621 439 641" anchor="left bottom"/>
  41. <Static id="caption23" text="Multi-vit" class="cell_1" position="absolute 440 564 549 587" anchor="left bottom"/>
  42. <Static id="caption12" text="NPC" class="cell_1" position="absolute 70 590 174 613" anchor="left bottom"/>
  43. <Static id="caption3" text="혼합 후" class="cell_1" position="absolute 0 486 67 509" anchor="left bottom"/>
  44. <Static id="caption35" text="g" position="absolute 793 487 813 507" anchor="left bottom"/>
  45. <Static id="caption46" text="Lipid" class="cell_1" position="absolute 820 486 930 509" anchor="left bottom"/>
  46. <Static id="caption57" text=":" position="absolute 295 622 301 642" anchor="left bottom"/>
  47. <Static id="caption24" text="%" position="absolute 289 462 309 482" anchor="left bottom"/>
  48. <Static id="caption13" text="관리대장" class="cell_1" position="absolute 351 432 418 455" anchor="left bottom"/>
  49. <Shape id="line16" class="line_2" position="absolute 1 695 1194 701" anchor="left bottom"/>
  50. <Static id="caption4" text="Dexttrose" class="cell_1" position="absolute 70 486 175 509" anchor="left bottom"/>
  51. <Static id="caption36" text="%" position="absolute 662 462 682 482" anchor="left bottom"/>
  52. <Static id="caption47" text="Cl" class="cell_1" position="absolute 820 512 929 535" anchor="left bottom"/>
  53. <Shape id="line17" class="line_3" position="absolute -1 722 1192 728" anchor="left bottom"/>
  54. <Static id="caption58" text="안정성" class="cell_1" position="absolute 439 647 548 670" anchor="left bottom"/>
  55. <Static id="caption25" text="ml" position="absolute 420 462 440 482" anchor="left bottom"/>
  56. <Static id="caption5" text="Na" class="cell_1" position="absolute 70 512 174 535" anchor="left bottom"/>
  57. <Static id="caption14" text="처방코드" class="cell_1" position="absolute 0 406 67 429" anchor="left bottom"/>
  58. <Static id="caption37" text="ml" position="absolute 793 462 813 482" anchor="left bottom"/>
  59. <Static id="caption48" text="mEq" position="absolute 1040 539 1075 559" anchor="left bottom"/>
  60. <Static id="caption59" text="Remark" class="cell_1" position="absolute 439 673 548 696" anchor="left bottom"/>
  61. <Static id="caption26" text="%" position="absolute 289 487 309 507" anchor="left bottom"/>
  62. <Static id="caption15" text="Dexttrose" class="cell_1" position="absolute 70 460 175 483" anchor="left bottom"/>
  63. <Shape id="line2" class="line_2" position="absolute 1 482 1194 488" anchor="left bottom"/>
  64. <Static id="caption38" text="%" position="absolute 662 487 682 507" anchor="left bottom"/>
  65. <Static id="caption49" text="g" position="absolute 1173 487 1193 507" anchor="left bottom"/>
  66. <Static id="caption27" text="mEq" position="absolute 288 513 323 533" anchor="left bottom"/>
  67. <Static id="caption16" text="NPC : N" class="cell_1" position="absolute 440 590 549 613" anchor="left bottom"/>
  68. <Static id="caption7" text="Phosphate" class="cell_1" position="absolute 70 538 174 561" anchor="left bottom"/>
  69. <Shape id="line3" class="line_2" position="absolute 1 428 1194 434" anchor="left bottom"/>
  70. <Static id="caption39" text="mEq" position="absolute 661 513 696 533" anchor="left bottom"/>
  71. <Static id="caption28" text="mmol" position="absolute 287 539 322 559" anchor="left bottom"/>
  72. <Static id="caption17" text="Amino Acid" class="cell_1" position="absolute 440 486 550 509" anchor="left bottom"/>
  73. <Static id="caption8" text="Heparin" class="cell_1" position="absolute 70 564 174 587" anchor="left bottom"/>
  74. <Shape id="line4" class="line_3" position="absolute 0 453 1189 463" anchor="left bottom"/>
  75. <Static id="caption29" text="ml" position="absolute 288 566 323 586" anchor="left bottom"/>
  76. <Static id="caption18" text="K" class="cell_1" position="absolute 440 512 549 535" anchor="left bottom"/>
  77. <Static id="caption9" text="투여경로" class="cell_1" position="absolute 0 647 67 670" anchor="left bottom"/>
  78. <Static id="caption19" text="Dextrose : Protein : Lipid" class="cell_1" position="absolute 0 619 158 642" anchor="left bottom"/>
  79. <Shape id="line6" class="line_3" position="absolute 1 401 1188 409" anchor="left bottom"/>
  80. <Shape id="line7" class="line_2" position="absolute 1 508 1194 514" anchor="left bottom"/>
  81. <Static id="caption20" text="~" position="absolute 891 409 911 429" anchor="left bottom"/>
  82. <Edit id="output3" taborder="2" readonly="true" position="absolute 71 702 431 721" anchor="left bottom" class="output"/>
  83. <Edit id="output4" taborder="3" readonly="true" position="absolute 930 649 1190 668" anchor="left bottom" class="output"/>
  84. <Edit id="ipt_drugcd" taborder="4" class="input_essential" position="absolute 70 409 285 428" anchor="left bottom"/>
  85. <Edit id="opt_ordnm" taborder="5" readonly="true" class="output" position="absolute 313 409 685 428" anchor="left bottom"/>
  86. <Calendar id="ipt_fromdd" taborder="6" class="input_essential" position="absolute 760 409 890 428" anchor="left bottom"/>
  87. <Calendar id="ipt_todd" taborder="7" class="input_essential" position="absolute 910 409 1040 428" anchor="left bottom"/>
  88. <Combo id="cmb_tpnkind" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_essential" position="absolute 70 433 345 452" anchor="left bottom">
  89. <Dataset id="innerdataset">
  90. <ColumnInfo>
  91. <Column id="codecolumn"/>
  92. <Column id="datacolumn"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="codecolumn">A</Col>
  97. <Col id="datacolumn">성인</Col>
  98. </Row>
  99. <Row>
  100. <Col id="codecolumn">C</Col>
  101. <Col id="datacolumn">소아</Col>
  102. </Row>
  103. </Rows>
  104. </Dataset>
  105. </Combo>
  106. <Combo id="cmb_marketflag" taborder="9" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_essential" position="absolute 421 434 685 453" anchor="left bottom">
  107. <Dataset id="innerdataset">
  108. <ColumnInfo>
  109. <Column id="codecolumn"/>
  110. <Column id="datacolumn"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="codecolumn">1</Col>
  115. <Col id="datacolumn">원내</Col>
  116. </Row>
  117. <Row>
  118. <Col id="codecolumn">2</Col>
  119. <Col id="datacolumn">시판품</Col>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. </Combo>
  124. <Combo id="cmb_tpnflag" taborder="10" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 760 433 890 452" anchor="left bottom">
  125. <Dataset id="innerdataset">
  126. <ColumnInfo>
  127. <Column id="codecolumn"/>
  128. <Column id="datacolumn"/>
  129. </ColumnInfo>
  130. <Rows>
  131. <Row>
  132. <Col id="codecolumn">A</Col>
  133. <Col id="datacolumn">성인 TPN</Col>
  134. </Row>
  135. <Row>
  136. <Col id="codecolumn">T</Col>
  137. <Col id="datacolumn">성인 TNA</Col>
  138. </Row>
  139. <Row>
  140. <Col id="codecolumn">M</Col>
  141. <Col id="datacolumn">아미노산 수액</Col>
  142. </Row>
  143. </Rows>
  144. </Dataset>
  145. </Combo>
  146. <Edit id="opt_packunit" taborder="11" readonly="true" position="absolute 1033 433 1183 452" anchor="left bottom" class="output"/>
  147. <Edit id="ipt_dexbfmixrate" taborder="12" class="input_default" position="absolute 180 462 285 481" anchor="left bottom"/>
  148. <MaskEdit id="ipt_dexbfmixvol" taborder="13" mask="#######.#####" class="input_default" position="absolute 312 462 417 481" anchor="left bottom"/>
  149. <MaskEdit id="ipt_aminobfmixrate" taborder="14" mask="#######.#####" class="input_default" position="absolute 553 462 658 481" anchor="left bottom"/>
  150. <MaskEdit id="ipt_aminobfmixvol" taborder="15" mask="#######.#####" class="input_default" position="absolute 685 462 790 481" anchor="left bottom"/>
  151. <MaskEdit id="ipt_lipidbfmixrate" taborder="16" mask="#######.#####" class="input_default" position="absolute 933 462 1038 481" anchor="left bottom"/>
  152. <MaskEdit id="ipt_lipidbfmixvol" taborder="17" mask="#######.#####" class="input_default" position="absolute 1065 462 1170 481" anchor="left bottom"/>
  153. <MaskEdit id="ipt_dexrate" taborder="18" mask="#######.#####" class="input_default" position="absolute 180 487 285 506" anchor="left bottom"/>
  154. <MaskEdit id="ipt_dexvol" taborder="19" mask="#######.#####" class="input_default" position="absolute 312 487 417 506" anchor="left bottom"/>
  155. <MaskEdit id="ipt_aminorate" taborder="20" mask="#######.#####" class="input_default" position="absolute 553 487 658 506" anchor="left bottom"/>
  156. <MaskEdit id="ipt_aminovol" taborder="21" mask="#######.#####" class="input_default" position="absolute 685 487 790 506" anchor="left bottom"/>
  157. <MaskEdit id="ipt_lipidrate" taborder="22" mask="#######.#####" class="input_default" position="absolute 933 487 1038 506" anchor="left bottom"/>
  158. <MaskEdit id="ipt_lipidvol" taborder="23" mask="#######.#####" class="input_default" position="absolute 1065 487 1170 506" anchor="left bottom"/>
  159. <MaskEdit id="ipt_navol" taborder="24" mask="#######.#####" class="input_default" position="absolute 180 515 285 534" anchor="left bottom"/>
  160. <MaskEdit id="ipt_kvol" taborder="25" mask="#######.#####" class="input_default" position="absolute 553 515 658 534" anchor="left bottom"/>
  161. <MaskEdit id="ipt_clvol" taborder="26" mask="#######.#####" class="input_default" position="absolute 933 515 1038 534" anchor="left bottom"/>
  162. <MaskEdit id="ipt_phosphatevol" taborder="27" mask="#######.#####" class="input_default" position="absolute 180 540 285 559" anchor="left bottom"/>
  163. <MaskEdit id="ipt_cavol" taborder="28" mask="#######.#####" class="input_default" position="absolute 553 540 658 559" anchor="left bottom"/>
  164. <MaskEdit id="ipt_mgvol" taborder="29" mask="#######.#####" class="input_default" position="absolute 933 540 1038 559" anchor="left bottom"/>
  165. <MaskEdit id="ipt_heparinvol" taborder="30" mask="#######.#####" class="input_default" position="absolute 180 566 285 585" anchor="left bottom"/>
  166. <MaskEdit id="ipt_multivitavol" taborder="31" mask="#######.#####" class="input_default" position="absolute 553 566 658 585" anchor="left bottom"/>
  167. <MaskEdit id="ipt_traceelevol" taborder="32" mask="#######.#####" class="input_default" position="absolute 933 566 1038 585" anchor="left bottom"/>
  168. <MaskEdit id="ipt_npccalr" taborder="33" mask="#######.#####" class="input_default" position="absolute 180 592 285 611" anchor="left bottom"/>
  169. <MaskEdit id="ipt_npcncalr" taborder="34" mask="#######.#####" class="input_default" position="absolute 553 592 658 611" anchor="left bottom"/>
  170. <MaskEdit id="ipt_totcalr" taborder="35" mask="#######.#####" class="input_default" position="absolute 819 592 929 611" onkillfocus="ipt_totcalr_onkillfocus" anchor="left bottom"/>
  171. <MaskEdit id="ipt_dextotrate" taborder="36" mask="#######.#####" class="input_default" position="absolute 163 622 283 641" anchor="left bottom"/>
  172. <MaskEdit id="ipt_prottotrate" taborder="37" mask="#######.#####" class="input_default" position="absolute 308 622 423 641" anchor="left bottom"/>
  173. <MaskEdit id="ipt_lipidtotrate" taborder="38" mask="#######.#####" class="input_default" position="absolute 448 622 568 641" anchor="left bottom"/>
  174. <Combo id="cmb_adminpathflag" taborder="39" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 71 649 431 668" anchor="left bottom">
  175. <Dataset id="innerdataset">
  176. <ColumnInfo>
  177. <Column id="codecolumn"/>
  178. <Column id="datacolumn"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row>
  182. <Col id="codecolumn">1</Col>
  183. <Col id="datacolumn">TPN(중심정맥)</Col>
  184. </Row>
  185. <Row>
  186. <Col id="codecolumn">2</Col>
  187. <Col id="datacolumn">PPN(말초정맥)</Col>
  188. </Row>
  189. <Row>
  190. <Col id="codecolumn">3</Col>
  191. <Col id="datacolumn">EN(경구영양)</Col>
  192. </Row>
  193. <Row>
  194. <Col id="codecolumn">4</Col>
  195. <Col id="datacolumn">EN+PPN</Col>
  196. </Row>
  197. <Row>
  198. <Col id="codecolumn">5</Col>
  199. <Col id="datacolumn">EN+TPN</Col>
  200. </Row>
  201. </Rows>
  202. </Dataset>
  203. </Combo>
  204. <Combo id="cmb_scrtflag" taborder="40" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_default" position="absolute 550 649 808 668" anchor="left bottom">
  205. <Dataset id="innerdataset">
  206. <ColumnInfo>
  207. <Column id="codecolumn"/>
  208. <Column id="datacolumn"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row>
  212. <Col id="codecolumn">1</Col>
  213. <Col id="datacolumn">48시간, 차광</Col>
  214. </Row>
  215. <Row>
  216. <Col id="codecolumn">2</Col>
  217. <Col id="datacolumn">72시간, 차광</Col>
  218. </Row>
  219. </Rows>
  220. </Dataset>
  221. </Combo>
  222. <Edit id="ipt_goodtype" taborder="41" class="input_default" position="absolute 71 675 431 694" anchor="left bottom"/>
  223. <Edit id="ipt_remark" taborder="42" class="input_default" position="absolute 549 674 1192 693" anchor="left bottom"/>
  224. <Edit id="ipt_remark2" taborder="43" class="input_default" position="absolute 549 702 1192 721" anchor="left bottom"/>
  225. <Static id="caption62" text="ml" position="absolute 1173 592 1194 612" anchor="left bottom"/>
  226. <MaskEdit id="input1" taborder="44" mask="#######.#####" class="input_default" position="absolute 1065 592 1170 611" onkillfocus="input1_onkillfocus" anchor="left bottom"/>
  227. <Static id="caption63" text="Tt .Volume" class="cell_1" position="absolute 960 590 1060 613" anchor="left bottom"/>
  228. <Static id="caption64" text="Kcal/ml" position="absolute 931 624 975 642" anchor="left bottom"/>
  229. <MaskEdit id="input2" taborder="45" mask="#######.#####" class="input_default" position="absolute 818 622 928 641" anchor="left bottom"/>
  230. <Static id="caption65" text="단위 공급열량" class="cell_1" position="absolute 705 619 814 642" anchor="left bottom"/>
  231. <Button id="btn_save" taborder="46" text="저장" class="btn4" position="absolute 1001 22 1057 44" onclick="btn_save_onclick" anchor="top right"/>
  232. <Button id="btn_del" taborder="47" text="삭제" class="btn4" position="absolute 1060 22 1116 44" onclick="btn_del_onclick" anchor="top right"/>
  233. <Button id="btn_can" taborder="48" text="초기화" class="btn4" position="absolute 1119 22 1187 44" onclick="btn_can_onclick" anchor="top right"/>
  234. <Grid id="grd_codelist" taborder="49" binddataset="ds_grd_codelist" useinputpanel="false" autofittype="col" position="absolute 0 49 1187 396" oncelldblclick="grd_codelist_oncelldblclick" anchor="all">
  235. <Formats>
  236. <Format id="default">
  237. <Columns>
  238. <Column size="27"/>
  239. <Column size="179"/>
  240. <Column size="487"/>
  241. <Column size="126"/>
  242. <Column size="102"/>
  243. <Column size="108"/>
  244. <Column size="135"/>
  245. </Columns>
  246. <Rows>
  247. <Row size="24" band="head"/>
  248. <Row size="24"/>
  249. </Rows>
  250. <Band id="head">
  251. <Cell/>
  252. <Cell col="1" text="처방코드"/>
  253. <Cell col="2" text="처방명칭"/>
  254. <Cell col="3" text="규격"/>
  255. <Cell col="4" text="성인/소아 구분"/>
  256. <Cell col="5" text="관리대장"/>
  257. <Cell col="6" text="TPN구분"/>
  258. </Band>
  259. <Band id="body">
  260. <Cell celltype="head" text="expr:currow+1"/>
  261. <Cell col="1" style="align:left;padding:0 2 0 2;" text="bind:drugcd"/>
  262. <Cell col="2" style="align:left;padding:0 2 0 2;" text="bind:ordnm"/>
  263. <Cell col="3" style="align:left;padding:0 2 0 2;" text="bind:packunit"/>
  264. <Cell col="4" text="bind:tpnkind"/>
  265. <Cell col="5" text="bind:marketflag"/>
  266. <Cell col="6" text="bind:tpnflag"/>
  267. </Band>
  268. </Format>
  269. </Formats>
  270. </Grid>
  271. <Shape id="line18" class="line_1" position="absolute 0 43 1188 49" anchor="left top right"/>
  272. <Shape id="line00" class="line_1" position="absolute 0 44 1188 50" anchor="left top right"/>
  273. <Shape id="line01" class="line_1" position="absolute 0 45 1188 51" anchor="left top right"/>
  274. <Shape id="line05" class="line_3" position="absolute 1 401 1188 409" anchor="left bottom"/>
  275. </Layout>
  276. </Layouts>
  277. <Objects>
  278. <Dataset id="ds_grd_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  279. <ColumnInfo>
  280. <Column id="drugcd" type="STRING"/>
  281. <Column id="ordnm" type="STRING"/>
  282. <Column id="packunit" type="STRING"/>
  283. <Column id="tpnkind" type="STRING"/>
  284. <Column id="marketflag" type="STRING"/>
  285. <Column id="tpnflag" type="STRING"/>
  286. </ColumnInfo>
  287. <Rows>
  288. <Row/>
  289. </Rows>
  290. </Dataset>
  291. <Dataset id="ds_main_codedetlinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  292. <ColumnInfo>
  293. <Column id="drugcd" type="STRING" size="256"/>
  294. <Column id="ordnm" type="STRING" size="256"/>
  295. <Column id="instcd" type="STRING" size="256"/>
  296. <Column id="todd" type="STRING" size="256"/>
  297. <Column id="fromdd" type="STRING" size="256"/>
  298. <Column id="tpnflag" type="STRING" size="256"/>
  299. <Column id="tpnkind" type="STRING" size="256"/>
  300. <Column id="marketflag" type="STRING" size="256"/>
  301. <Column id="dexbfmixrate" type="STRING" size="256"/>
  302. <Column id="dexbfmixvol" type="STRING" size="256"/>
  303. <Column id="aminobfmixrate" type="STRING" size="256"/>
  304. <Column id="aminobfmixvol" type="STRING" size="256"/>
  305. <Column id="lipidbfmixrate" type="STRING" size="256"/>
  306. <Column id="lipidbfmixvol" type="STRING" size="256"/>
  307. <Column id="dexrate" type="STRING" size="256"/>
  308. <Column id="dexvol" type="STRING" size="256"/>
  309. <Column id="aminorate" type="STRING" size="256"/>
  310. <Column id="aminovol" type="STRING" size="256"/>
  311. <Column id="lipidrate" type="STRING" size="256"/>
  312. <Column id="lipidvol" type="STRING" size="256"/>
  313. <Column id="navol" type="STRING" size="256"/>
  314. <Column id="kvol" type="STRING" size="256"/>
  315. <Column id="clvol" type="STRING" size="256"/>
  316. <Column id="phosphatevol" type="STRING" size="256"/>
  317. <Column id="cavol" type="STRING" size="256"/>
  318. <Column id="mgvol" type="STRING" size="256"/>
  319. <Column id="heparinvol" type="STRING" size="256"/>
  320. <Column id="multivitavol" type="STRING" size="256"/>
  321. <Column id="traceelevol" type="STRING" size="256"/>
  322. <Column id="npccalr" type="STRING" size="256"/>
  323. <Column id="npcncalr" type="STRING" size="256"/>
  324. <Column id="totcalr" type="STRING" size="256"/>
  325. <Column id="dextotrate" type="STRING" size="256"/>
  326. <Column id="prottotrate" type="STRING" size="256"/>
  327. <Column id="lipidtotrate" type="STRING" size="256"/>
  328. <Column id="adminpathflag" type="STRING" size="256"/>
  329. <Column id="scrtflag" type="STRING" size="256"/>
  330. <Column id="goodtype" type="STRING" size="256"/>
  331. <Column id="remark" type="STRING" size="256"/>
  332. <Column id="drugcost" type="STRING" size="256"/>
  333. <Column id="packunit" type="STRING" size="256"/>
  334. <Column id="m" type="STRING" size="256"/>
  335. <Column id="ttvolume" type="STRING" size="256"/>
  336. <Column id="kcalml" type="STRING" size="256"/>
  337. </ColumnInfo>
  338. <Rows>
  339. <Row>
  340. <Col id="drugcd"/>
  341. <Col id="ordnm"/>
  342. <Col id="instcd"/>
  343. <Col id="todd"/>
  344. <Col id="fromdd"/>
  345. <Col id="tpnflag"/>
  346. <Col id="tpnkind"/>
  347. <Col id="marketflag"/>
  348. <Col id="dexbfmixrate"/>
  349. <Col id="dexbfmixvol"/>
  350. <Col id="aminobfmixrate"/>
  351. <Col id="aminobfmixvol"/>
  352. <Col id="lipidbfmixrate"/>
  353. <Col id="lipidbfmixvol"/>
  354. <Col id="dexrate"/>
  355. <Col id="dexvol"/>
  356. <Col id="aminorate"/>
  357. <Col id="aminovol"/>
  358. <Col id="lipidrate"/>
  359. <Col id="lipidvol"/>
  360. <Col id="navol"/>
  361. <Col id="kvol"/>
  362. <Col id="clvol"/>
  363. <Col id="phosphatevol"/>
  364. <Col id="cavol"/>
  365. <Col id="mgvol"/>
  366. <Col id="heparinvol"/>
  367. <Col id="multivitavol"/>
  368. <Col id="traceelevol"/>
  369. <Col id="npccalr"/>
  370. <Col id="npcncalr"/>
  371. <Col id="totcalr"/>
  372. <Col id="dextotrate"/>
  373. <Col id="prottotrate"/>
  374. <Col id="lipidtotrate"/>
  375. <Col id="adminpathflag"/>
  376. <Col id="scrtflag"/>
  377. <Col id="goodtype"/>
  378. <Col id="remark"/>
  379. <Col id="drugcost"/>
  380. <Col id="packunit"/>
  381. <Col id="m">i</Col>
  382. <Col id="ttvolume"/>
  383. <Col id="kcalml"/>
  384. </Row>
  385. </Rows>
  386. </Dataset>
  387. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  388. <ColumnInfo>
  389. <Column id="drugcd" type="STRING" size="256"/>
  390. <Column id="instcd" type="STRING" size="256"/>
  391. <Column id="todd" type="STRING" size="256"/>
  392. <Column id="fromdd" type="STRING" size="256"/>
  393. <Column id="tpnflag" type="STRING" size="256"/>
  394. <Column id="tpnkind" type="STRING" size="256"/>
  395. <Column id="marketflag" type="STRING" size="256"/>
  396. <Column id="dexbfmixrate" type="STRING" size="256"/>
  397. <Column id="dexbfmixvol" type="STRING" size="256"/>
  398. <Column id="aminobfmixrate" type="STRING" size="256"/>
  399. <Column id="aminobfmixvol" type="STRING" size="256"/>
  400. <Column id="lipidbfmixrate" type="STRING" size="256"/>
  401. <Column id="lipidbfmixvol" type="STRING" size="256"/>
  402. <Column id="dexrate" type="STRING" size="256"/>
  403. <Column id="dexvol" type="STRING" size="256"/>
  404. <Column id="aminorate" type="STRING" size="256"/>
  405. <Column id="aminovol" type="STRING" size="256"/>
  406. <Column id="lipidrate" type="STRING" size="256"/>
  407. <Column id="lipidvol" type="STRING" size="256"/>
  408. <Column id="navol" type="STRING" size="256"/>
  409. <Column id="kvol" type="STRING" size="256"/>
  410. <Column id="clvol" type="STRING" size="256"/>
  411. <Column id="phosphatevol" type="STRING" size="256"/>
  412. <Column id="cavol" type="STRING" size="256"/>
  413. <Column id="mgvol" type="STRING" size="256"/>
  414. <Column id="heparinvol" type="STRING" size="256"/>
  415. <Column id="multivitavol" type="STRING" size="256"/>
  416. <Column id="traceelevol" type="STRING" size="256"/>
  417. <Column id="npccalr" type="STRING" size="256"/>
  418. <Column id="npcncalr" type="STRING" size="256"/>
  419. <Column id="totcalr" type="STRING" size="256"/>
  420. <Column id="dextotrate" type="STRING" size="256"/>
  421. <Column id="prottotrate" type="STRING" size="256"/>
  422. <Column id="lipidtotrate" type="STRING" size="256"/>
  423. <Column id="adminpathflag" type="STRING" size="256"/>
  424. <Column id="scrtflag" type="STRING" size="256"/>
  425. <Column id="goodtype" type="STRING" size="256"/>
  426. <Column id="remark" type="STRING" size="256"/>
  427. <Column id="packunit" type="STRING" size="256"/>
  428. <Column id="m" type="STRING" size="256"/>
  429. </ColumnInfo>
  430. <Rows>
  431. <Row>
  432. <Col id="drugcd"/>
  433. <Col id="instcd"/>
  434. <Col id="todd"/>
  435. <Col id="fromdd"/>
  436. <Col id="tpnflag"/>
  437. <Col id="tpnkind"/>
  438. <Col id="marketflag"/>
  439. <Col id="dexbfmixrate"/>
  440. <Col id="dexbfmixvol"/>
  441. <Col id="aminobfmixrate"/>
  442. <Col id="aminobfmixvol"/>
  443. <Col id="lipidbfmixrate"/>
  444. <Col id="lipidbfmixvol"/>
  445. <Col id="dexrate"/>
  446. <Col id="dexvol"/>
  447. <Col id="aminorate"/>
  448. <Col id="aminovol"/>
  449. <Col id="lipidrate"/>
  450. <Col id="lipidvol"/>
  451. <Col id="navol"/>
  452. <Col id="kvol"/>
  453. <Col id="clvol"/>
  454. <Col id="phosphatevol"/>
  455. <Col id="cavol"/>
  456. <Col id="mgvol"/>
  457. <Col id="heparinvol"/>
  458. <Col id="multivitavol"/>
  459. <Col id="traceelevol"/>
  460. <Col id="npccalr"/>
  461. <Col id="npcncalr"/>
  462. <Col id="totcalr"/>
  463. <Col id="dextotrate"/>
  464. <Col id="prottotrate"/>
  465. <Col id="lipidtotrate"/>
  466. <Col id="adminpathflag"/>
  467. <Col id="scrtflag"/>
  468. <Col id="goodtype"/>
  469. <Col id="remark"/>
  470. <Col id="packunit"/>
  471. <Col id="m"/>
  472. </Row>
  473. </Rows>
  474. </Dataset>
  475. <Dataset id="ds_temp_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  476. <ColumnInfo>
  477. <Column id="receiveref" type="STRING" size="256"/>
  478. <Column id="srchflag" type="STRING" size="256"/>
  479. <Column id="srchcnts" type="STRING" size="256"/>
  480. <Column id="drugkind" type="STRING" size="256"/>
  481. </ColumnInfo>
  482. <Rows>
  483. <Row>
  484. <Col id="receiveref"/>
  485. <Col id="srchflag"/>
  486. <Col id="srchcnts"/>
  487. <Col id="drugkind"/>
  488. </Row>
  489. </Rows>
  490. </Dataset>
  491. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  492. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  493. <ColumnInfo>
  494. <Column id="srchdrugcd" type="STRING" size="256"/>
  495. </ColumnInfo>
  496. <Rows>
  497. <Row/>
  498. </Rows>
  499. </Dataset>
  500. <Dataset id="ds_hidden_drugitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  501. </Objects>
  502. <Bind>
  503. <BindItem id="item0" compid="ipt_drugcd" propid="value" datasetid="ds_main_codedetlinfo" columnid="drugcd"/>
  504. <BindItem id="item1" compid="cmb_tpnkind" propid="value" datasetid="ds_main_codedetlinfo" columnid="tpnkind"/>
  505. <BindItem id="item2" compid="opt_ordnm" propid="value" datasetid="ds_main_codedetlinfo" columnid="ordnm"/>
  506. <BindItem id="item3" compid="cmb_marketflag" propid="value" datasetid="ds_main_codedetlinfo" columnid="marketflag"/>
  507. <BindItem id="item4" compid="ipt_fromdd" propid="value" datasetid="ds_main_codedetlinfo" columnid="fromdd"/>
  508. <BindItem id="item5" compid="ipt_todd" propid="value" datasetid="ds_main_codedetlinfo" columnid="todd"/>
  509. <BindItem id="item6" compid="cmb_tpnflag" propid="value" datasetid="ds_main_codedetlinfo" columnid="tpnflag"/>
  510. <BindItem id="item7" compid="opt_packunit" propid="value" datasetid="ds_main_codedetlinfo" columnid="packunit"/>
  511. <BindItem id="item8" compid="ipt_dexbfmixrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="dexbfmixrate"/>
  512. <BindItem id="item9" compid="ipt_dexbfmixvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="dexbfmixvol"/>
  513. <BindItem id="item10" compid="ipt_dexrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="dexrate"/>
  514. <BindItem id="item11" compid="ipt_dexvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="dexvol"/>
  515. <BindItem id="item12" compid="ipt_navol" propid="value" datasetid="ds_main_codedetlinfo" columnid="navol"/>
  516. <BindItem id="item13" compid="ipt_phosphatevol" propid="value" datasetid="ds_main_codedetlinfo" columnid="phosphatevol"/>
  517. <BindItem id="item14" compid="ipt_heparinvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="heparinvol"/>
  518. <BindItem id="item15" compid="ipt_npccalr" propid="value" datasetid="ds_main_codedetlinfo" columnid="npccalr"/>
  519. <BindItem id="item16" compid="ipt_aminobfmixrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="aminobfmixrate"/>
  520. <BindItem id="item17" compid="ipt_aminobfmixvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="aminobfmixvol"/>
  521. <BindItem id="item18" compid="ipt_aminorate" propid="value" datasetid="ds_main_codedetlinfo" columnid="aminorate"/>
  522. <BindItem id="item19" compid="ipt_aminovol" propid="value" datasetid="ds_main_codedetlinfo" columnid="aminovol"/>
  523. <BindItem id="item20" compid="ipt_kvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="kvol"/>
  524. <BindItem id="item21" compid="ipt_cavol" propid="value" datasetid="ds_main_codedetlinfo" columnid="cavol"/>
  525. <BindItem id="item22" compid="ipt_multivitavol" propid="value" datasetid="ds_main_codedetlinfo" columnid="multivitavol"/>
  526. <BindItem id="item23" compid="ipt_npcncalr" propid="value" datasetid="ds_main_codedetlinfo" columnid="npccalr"/>
  527. <BindItem id="item24" compid="ipt_lipidbfmixrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="lipidbfmixrate"/>
  528. <BindItem id="item25" compid="ipt_lipidbfmixvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="lipidbfmixvol"/>
  529. <BindItem id="item26" compid="ipt_lipidrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="lipidrate"/>
  530. <BindItem id="item27" compid="ipt_lipidvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="lipidvol"/>
  531. <BindItem id="item28" compid="ipt_clvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="clvol"/>
  532. <BindItem id="item29" compid="ipt_mgvol" propid="value" datasetid="ds_main_codedetlinfo" columnid="mgvol"/>
  533. <BindItem id="item30" compid="ipt_traceelevol" propid="value" datasetid="ds_main_codedetlinfo" columnid="traceelevol"/>
  534. <BindItem id="item31" compid="ipt_totcalr" propid="value" datasetid="ds_main_codedetlinfo" columnid="totcalr"/>
  535. <BindItem id="item32" compid="input1" propid="value" datasetid="ds_main_codedetlinfo" columnid="ttvolume"/>
  536. <BindItem id="item33" compid="ipt_dextotrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="dextotrate"/>
  537. <BindItem id="item34" compid="ipt_prottotrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="prottotrate"/>
  538. <BindItem id="item35" compid="ipt_lipidtotrate" propid="value" datasetid="ds_main_codedetlinfo" columnid="lipidtotrate"/>
  539. <BindItem id="item36" compid="input2" propid="value" datasetid="ds_main_codedetlinfo" columnid="kcalml"/>
  540. <BindItem id="item37" compid="cmb_adminpathflag" propid="value" datasetid="ds_main_codedetlinfo" columnid="adminpathflag"/>
  541. <BindItem id="item38" compid="cmb_scrtflag" propid="value" datasetid="ds_main_codedetlinfo" columnid="scrtflag"/>
  542. <BindItem id="item39" compid="output4" propid="value" datasetid="ds_main_codedetlinfo" columnid="drugcost"/>
  543. <BindItem id="item40" compid="ipt_goodtype" propid="value" datasetid="ds_main_codedetlinfo" columnid="goodtype"/>
  544. <BindItem id="item41" compid="ipt_remark2" propid="value" datasetid="ds_main_codedetlinfo" columnid="remark"/>
  545. </Bind>
  546. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  547. * System Name :
  548. * Job Name :
  549. * Creator :
  550. * Make Date : 2015-11-13
  551. * Description :
  552. *---------------------------------------------------------------------------------------
  553. * Modify Date Modifier Modify Description
  554. *---------------------------------------------------------------------------------------
  555. * 2015-11-13 Live Converter TF->XP
  556. *
  557. *---------------------------------------------------------------------------------------
  558. ****************************************************************************************/
  559. include "com_commonxp::comm_main.xjs";
  560. /******************************************************************
  561. * Argument :
  562. * Description : 초기화
  563. ******************************************************************/
  564. function SMADT20400_oninit(obj:Form, e:InitEventInfo)
  565. {
  566. frmf_initForm(obj);
  567. }
  568. function SMADT20400_onload(obj:Form, e:LoadEventInfo)
  569. {
  570. // 12월 5일 권한 처리
  571. btn_save.enable = frmf_checkAuth("X"); //저장
  572. btn_del.enable = frmf_checkAuth("X"); //삭제
  573. var oParam = {};
  574. oParam.id = "TRADT20401";
  575. oParam.service = "pharmacybaseapp.TpnMngt";
  576. oParam.method = "reqGetTPNCodeMasterList";
  577. oParam.inds = "";
  578. oParam.outds = "ds_grd_codelist=item";
  579. oParam.async = false;
  580. //oParam.callback = "cf_TRADT20401";
  581. tranf_submit(oParam);
  582. }
  583. /******************************************************************
  584. * Argument :
  585. * Description : TPN Code List 상세보기
  586. ******************************************************************/
  587. function grd_codelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  588. {
  589. if( e.row < 0 || e.col < 0 )
  590. return;
  591. var row = ds_grd_codelist.rowposition;
  592. ds_main_codedetlinfo.clearData();
  593. var nRow = ds_main_codedetlinfo.addRow();
  594. ds_main_codedetlinfo.copyRow(nRow, ds_grd_codelist, row);
  595. ds_main_codedetlinfo.setColumn(0, "m", "u");
  596. }
  597. /******************************************************************
  598. * Argument :
  599. * Description : 처방코드조회
  600. ******************************************************************/
  601. function button61_onclick(obj:Button, e:ClickEventInfo)
  602. {
  603. var drugcode = "";
  604. dsf_createDsRow("ds_temp_receivedata",
  605. [{col:"receiveref", type:"string", size:256, val:"ds_send_srchinfo"}
  606. ,{col:"srchflag", type:"string", size:256, val:""}
  607. ,{col:"srchcnts", type:"string", size:256, val:""}
  608. ,{col:"receivedrugcd", type:"string", size:256, val:"srchdrugcd"}
  609. ,{col:"receivedrugnm", type:"string", size:256, val:"srchdrugnm"}
  610. ,{col:"drugkind", type:"string", size:256, val:""}],true);
  611. var objArg = new Object();
  612. objArg.arg_ds_temp_receivedata = ds_temp_receivedata;
  613. frmf_modal("SPADB60100", "SPADB60100", objArg, null, null, null, null, null, null, null, null, null, "M");
  614. drugcode = ds_send_srchinfo.getColumn(0, "srchdrugcd");
  615. if( !utlf_isNull(drugcode) ){
  616. ds_main_codedetlinfo.setColumn(0, "drugcd", drugcode);
  617. var oParam = {};
  618. oParam.id = "TRADB02604";
  619. oParam.service = "pharmacybaseapp.VolDiv";
  620. oParam.method = "reqGetDrugNm";
  621. oParam.inds = "req=ds_send_srchinfo";
  622. oParam.outds = "ds_hidden_drugitem=drugitem";
  623. oParam.async = false;
  624. //oParam.callback = "cf_TRADB02604";
  625. tranf_submit(oParam);
  626. sysf_trace(ds_hidden_drugitem.s);
  627. ds_main_codedetlinfo.setColumn(0, "ordnm", ds_hidden_drugitem.getColumn(0, "drugnm"));
  628. }
  629. }
  630. /******************************************************************
  631. * Argument :
  632. * Description : Tt.Calories FocusOut Event
  633. ******************************************************************/
  634. function ipt_totcalr_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo)
  635. {
  636. fKcalMl(); //2010-02-19 단위공급열량 계산
  637. }
  638. /******************************************************************
  639. * Argument :
  640. * Description : 단위 공급열량 계산 = Tt.Calories / Tt.Volume
  641. ******************************************************************/
  642. function fKcalMl(){
  643. var totcalr = ds_main_codedetlinfo.getColumn(0, "totcalr"); //Tt.Calories
  644. var ttvolume = ds_main_codedetlinfo.getColumn(0, "ttvolume"); //Tt. Volume
  645. if ( !utlf_isNull(totcalr) && !utlf_isNull(ttvolume) ) {
  646. var tt_calc = (totcalr / ttvolume ).toString().getRound(-3,"HALF_UP");
  647. ds_main_codedetlinfo.setColumn(0, "kcalml", tt_calc);
  648. }
  649. }
  650. /******************************************************************
  651. * Argument :
  652. * Description : Tt.Volume FocusOut Event
  653. ******************************************************************/
  654. function input1_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo)
  655. {
  656. fKcalMl(); //2010-02-19 단위공급열량 계산
  657. }
  658. /******************************************************************
  659. * Argument : fValidateMainData
  660. * Description : 저장 시 data check
  661. ******************************************************************/
  662. function fValidateMainData(){
  663. var drugcd = ds_main_codedetlinfo.getColumn(0, "drugcd");
  664. var fromdd = ds_main_codedetlinfo.getColumn(0, "fromdd");
  665. var todd = ds_main_codedetlinfo.getColumn(0, "todd");
  666. var tpnflag = ds_main_codedetlinfo.getColumn(0, "tpnflag");
  667. var tpnkind = ds_main_codedetlinfo.getColumn(0, "tpnkind");
  668. var marketflag = ds_main_codedetlinfo.getColumn(0, "marketflag");
  669. //처방코드 체크
  670. if( utlf_isNull(drugcd) ){
  671. sysf_messageBox("처방코드를" , "C001");
  672. ipt_drugcd.setFocus();
  673. return false;
  674. }
  675. //적용시작일 체크
  676. if( utlf_isNull(fromdd) ){
  677. sysf_messageBox("적용시작일" , "C001");
  678. ipt_fromdd.setFocus();
  679. return false;
  680. }
  681. //적용종료일 체크
  682. if( utlf_isNull(todd) ){
  683. messageBox("적용종료일" , "C001");
  684. ipt_todd.setFocus();
  685. return false;
  686. }
  687. //성인/소아구분 체크
  688. if( utlf_isNull(tpnkind) ){
  689. sysf_messageBox("성인/소아구분을" , "C002");
  690. cmb_tpnkind.setFocus();
  691. return false;
  692. }
  693. //관리대장 체크
  694. if( utlf_isNull(marketflag) ){
  695. sysf_messageBox("관리대장을" , "C002");
  696. cmb_marketflag.setFocus();
  697. return false;
  698. }
  699. //TPN 구분 체크
  700. if( tpnkind == "A" ) { // 성인일경우만 필수
  701. if( utlf_isNull(tpnflag) ){
  702. sysf_messageBox("TPN 구분을" , "C002");
  703. cmb_tpnflag.setFocus();
  704. return false;
  705. }
  706. }
  707. //ds_send_req.setColumn(0, "dexbfmixrate", utlf_transNullToChar(ds_send_req.getColumn(0, "dexbfmixrate"), 0) );
  708. // 입력 default set
  709. dsf_setDefaultVal(ds_send_req, "dexbfmixrate:'0',dexbfmixvol:'0',aminobfmixrate:0,aminobfmixvol:0,lipidbfmixrate:0,lipidbfmixvol:0,dexrate:0,dexvol:0"
  710. + ",aminorate:0,aminovol:0,lipidrate:0,lipidvol:0,navol:0,kvol:0,clvol:0,phosphatevol:0,cavol:0,mgvol:0,heparinvol:0"
  711. + ",multivitavol:0,traceelevol:0,npccalr:0,totcalr:0,dextotrate:0,prottotrate:0,lipidtotrate:0,npcncalr:0");
  712. return true;
  713. }
  714. /******************************************************************
  715. * Argument :
  716. * Description : 저장 Button Event
  717. ******************************************************************/
  718. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  719. {
  720. ds_send_req.copyData(ds_main_codedetlinfo);
  721. var ret = fValidateMainData();
  722. if( ret == false ) return;
  723. var oParam = {};
  724. oParam.id = "TXADT20401";
  725. oParam.service = "pharmacybaseapp.TpnMngt";
  726. oParam.method = "reqExeTPNCodeMaster";
  727. oParam.inds = "req=ds_send_req";
  728. oParam.outds = "ds_hidden=item";
  729. oParam.async = false;
  730. //oParam.callback = "cf_TXADT20401";
  731. tranf_submit(oParam);
  732. var oParam = {};
  733. oParam.id = "TRADT20401";
  734. oParam.service = "pharmacybaseapp.TpnMngt";
  735. oParam.method = "reqGetTPNCodeMasterList";
  736. oParam.inds = "";
  737. oParam.outds = "ds_grd_codelist=item";
  738. oParam.async = false;
  739. //oParam.callback = "cf_TRADT20401";
  740. tranf_submit(oParam);
  741. }
  742. /******************************************************************
  743. * Argument : fValidateMainData
  744. * Description : 삭제 Event
  745. ******************************************************************/
  746. function fValidateDelData(){
  747. var drugcd = ds_main_codedetlinfo.getColumn(0, "drugcd");
  748. var todd = ds_main_codedetlinfo.getColumn(0, "todd");
  749. if( utlf_isNull(drugcd) || utlf_isNull(todd) ){
  750. sysf_messageBox("삭제할 데이터를" , "C002");
  751. return false;
  752. }
  753. return true;
  754. }
  755. /******************************************************************
  756. * Argument :
  757. * Description : 삭제 Button Event
  758. ******************************************************************/
  759. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  760. {
  761. var ret = fValidateDelData();
  762. if (ret == false) return;
  763. var result = sysf_messageBox( "해당 코드를 삭제", "S001");
  764. if( result == 7 || result == 2 ) return;
  765. ds_main_codedetlinfo.setColumn(0, "m", "d");
  766. ds_send_req.copyData(ds_main_codedetlinfo);
  767. var oParam = {};
  768. oParam.id = "TXADT20401";
  769. oParam.service = "pharmacybaseapp.TpnMngt";
  770. oParam.method = "reqExeTPNCodeMaster";
  771. oParam.inds = "req=ds_send_req";
  772. oParam.outds = "ds_hidden=item";
  773. oParam.async = false;
  774. //oParam.callback = "cf_TXADT20401";
  775. tranf_submit(oParam);
  776. var oParam = {};
  777. oParam.id = "TRADT20401";
  778. oParam.service = "pharmacybaseapp.TpnMngt";
  779. oParam.method = "reqGetTPNCodeMasterList";
  780. oParam.inds = "";
  781. oParam.outds = "ds_grd_codelist=item";
  782. oParam.async = false;
  783. //oParam.callback = "cf_TRADT20401";
  784. tranf_submit(oParam);
  785. }
  786. /******************************************************************
  787. * Argument :
  788. * Description : 초기화 Button Event
  789. ******************************************************************/
  790. function btn_can_onclick(obj:Button, e:ClickEventInfo)
  791. {
  792. ds_main_codedetlinfo.clearData();
  793. var iRow = ds_main_codedetlinfo.addRow();
  794. ds_main_codedetlinfo.setColumn(iRow, "m", "i");
  795. }
  796. ]]></Script>
  797. </Form>
  798. </FDL>