SMPIC90000_행위재료관리.xfdl 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIC90000" position="absolute 0 0 1180 780" titletext="행위재료마스터화면" oninit="SMPIC90000_oninit" onload="SMPIC90000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 5 505 1177 775" id="import1" url="SMPIC90200_물품조회(행위재료).xfdl"/>
  8. <Shape id="roundrect1" type="roundrectangle" position="absolute 5 20 525 140"/>
  9. <Edit readonly="true" position="absolute 757 145 770 164" align="align:center middle;" id="opt_deptflagnm" visible="false" class="output"/>
  10. <Static text="부서" position="absolute 710 145 755 164" align="align:center middle;" id="caption18" class="cell_1" visible="false"/>
  11. <Button position="absolute 987 145 1051 164" id="btn_actend" class="btn2" taborder="17" visible="false" text="행위종료" onclick="btn_actend_onclick"/>
  12. <Button position="absolute 1054 145 1096 164" id="btn_del" class="btn2" taborder="15" visible="false" text="삭제" onclick="btn_del_onclick"/>
  13. <Shape position="absolute 100 190 1170 196" linetype="horizontal" id="line5" class="line_3"/>
  14. <Shape position="absolute 98 167 1173 168" linetype="vertical" id="line3" class="line_1"/>
  15. <Button position="absolute 765 471 845 493" id="btn_tmpsave" class="btn3" enable="false" taborder="8" visible="false" text="임시저장" onclick="btn_tmpsave_onclick"/>
  16. <Button position="absolute 1105 471 1173 493" id="btn_init" class="btn3" taborder="14" text="초기화" onclick="btn_init_onclick"/>
  17. <Static text="행위재료/약품 관리" position="absolute 5 0 155 21" id="caption1" class="tit_1"/>
  18. <Shape position="absolute 98 216 1173 217" linetype="vertical" id="line16" class="line_1"/>
  19. <Static text="행위재료/약품 리스트" position="absolute 5 149 182 165" id="caption21" class="tit_2"/>
  20. <Static text="행위처방코드 :" position="absolute 18 40 125 57" id="caption2" class="search_name"/>
  21. <Static text="시행부서 :" position="absolute 430 25 517 42" id="caption3" class="search_name" visible="false"/>
  22. <Edit position="absolute 125 39 250 58" align="align:left middle;" id="ipt_actcd" class="input_search" taborder="1" autoselect="true" onkeyup="ipt_actcd_onkeyup"/>
  23. <Edit position="absolute 455 40 472 59" id="ipt_actdeptcd" class="input_essential" taborder="11" visible="false" autoselect="true" onkeyup="ipt_actdeptcd_onkeyup"/>
  24. <Edit position="absolute 494 40 516 59" id="ipt_actdeptnm" visible="false" autoselect="true"/>
  25. <Button position="absolute 255 39 271 55" id="btn_actcd" class="icon_search" text="" onclick="btn_actcd_onclick"/>
  26. <Button position="absolute 475 40 491 56" id="btn_actdeptcd" class="icon_search" visible="false" text="" onclick="btn_actdeptcd_onclick"/>
  27. <Shape position="absolute 447 30 453 133" linetype="vertical" id="line1" class="line_4"/>
  28. <Button position="absolute 460 69 516 91" id="btn_actsearch" class="btn1" taborder="5" text="조회" onclick="btn_actsearch_onclick"/>
  29. <Button position="absolute 987 471 1043 493" id="btn_save" class="btn4" enable="false" taborder="13" text="저장" onclick="btn_save_onclick"/>
  30. <Static text="행위처방코드" position="absolute 100 172 185 191" align="align:center middle;" id="caption7" class="cell_1"/>
  31. <Edit readonly="true" position="absolute 188 172 296 191" align="align:center middle;" id="opt_actcd" class="output" style="align:center middle;"/>
  32. <Static text="시행부서" position="absolute 334 146 394 165" align="align:center middle;" id="caption8" class="cell_1" visible="false"/>
  33. <Edit readonly="true" position="absolute 398 146 418 165" align="align:center middle;" id="opt_actdeptnm" visible="false" class="output"/>
  34. <Static text="의사ID" position="absolute 422 146 467 165" align="align:center middle;" id="caption9" class="cell_1" visible="false" style="padding:0 0 0 3;"/>
  35. <Edit readonly="true" position="absolute 471 146 491 165" align="align:center middle;" id="opt_actprcpdrid" visible="false" class="output"/>
  36. <Static text="의사명" position="absolute 495 146 540 165" align="align:center middle;" id="caption10" class="cell_1" visible="false" style="padding:0 0 0 3;"/>
  37. <Edit readonly="true" position="absolute 544 146 564 165" align="align:center middle;" id="opt_actprcpdrnm" visible="false" class="output"/>
  38. <Static text="적용일자" position="absolute 100 195 185 214" align="align:center middle;" id="caption11" class="cell_1"/>
  39. <Static text="종료일자" position="absolute 302 195 387 214" align="align:center middle;" id="caption12" class="cell_1"/>
  40. <Calendar position="absolute 187 195 295 214" align="align:center middle;" id="opt_fromdd" mask="yyyy-mm-dd" style="align:center middle;"/>
  41. <Calendar readonly="true" position="absolute 390 195 498 214" align="align:center middle;" id="opt_todd" mask="yyyy-mm-dd" class="output" style="align:left middle;"/>
  42. <Grid position="absolute 100 220 1175 465" id="grd_actmaster" taborder="7" binddataset="ds_main_actmatrcdinfo_actmatrcddetllist" selecttype="multirow" cellsizebandtype="allband" cellsizingtype="col">
  43. <Formats>
  44. <Format id="default">
  45. <Columns>
  46. <Column size="20" band="left"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="87"/>
  56. <Column size="23"/>
  57. <Column size="194"/>
  58. <Column size="119"/>
  59. <Column size="70"/>
  60. <Column size="45"/>
  61. <Column size="114"/>
  62. <Column size="88"/>
  63. <Column size="69"/>
  64. <Column size="120"/>
  65. <Column size="120"/>
  66. <Column size="0"/>
  67. </Columns>
  68. <Rows>
  69. <Row size="24" band="head"/>
  70. <Row size="24"/>
  71. </Rows>
  72. <Band id="head">
  73. <Cell/>
  74. <Cell col="1" text="상태"/>
  75. <Cell col="2" text="기관코드"/>
  76. <Cell col="3" text="행위코드"/>
  77. <Cell col="4" text="의사id"/>
  78. <Cell col="5" text="부서코드"/>
  79. <Cell col="6" text="todd"/>
  80. <Cell col="7" text="fromdd"/>
  81. <Cell col="8" text="부서구분"/>
  82. <Cell col="9" colspan="2" text="물품코드" taborder="undefined"/>
  83. <Cell col="11" text="물품명"/>
  84. <Cell col="12" text="규격"/>
  85. <Cell col="13" text="단가"/>
  86. <Cell col="14" text="수량"/>
  87. <Cell col="15" text="모델"/>
  88. <Cell col="16" text="EDICD"/>
  89. <Cell col="17" text="수불단위"/>
  90. <Cell col="18" text="주거래처명"/>
  91. <Cell col="19" text="보조거래처명"/>
  92. <Cell col="20" text="임시저장상태"/>
  93. </Band>
  94. <Band id="body">
  95. <Cell celltype="head"/>
  96. <Cell col="1" text="bind:rowstat"/>
  97. <Cell col="2" text="bind:instcd"/>
  98. <Cell col="3" text="bind:actcd"/>
  99. <Cell col="4" text="bind:actprcpdrid"/>
  100. <Cell col="5" text="bind:actdeptcd"/>
  101. <Cell col="6" text="bind:todd"/>
  102. <Cell col="7" text="bind:fromdd"/>
  103. <Cell col="8" text="bind:deptflag"/>
  104. <Cell col="9" style="align:left;" text="bind:goodcd"/>
  105. <Cell col="10" text="bind:allsizespecid"/>
  106. <Cell col="11" style="align:left;" text="bind:goodnm"/>
  107. <Cell col="12" style="align:left;" text="bind:goodspec"/>
  108. <Cell col="13" displaytype="number" text="bind:goodunitcost" mask="#,###"/>
  109. <Cell col="14" displaytype="number" edittype="masknumber" text="bind:qty" mask="#,###.##"/>
  110. <Cell col="15" style="align:left;" text="bind:goodmodel"/>
  111. <Cell col="16" text="bind:edicd"/>
  112. <Cell col="17" text="bind:deliveunit"/>
  113. <Cell col="18" style="align:left;" text="bind:maincustlastsuplplcenm"/>
  114. <Cell col="19" style="align:left;" text="bind:suppcustnm"/>
  115. <Cell col="20" text="bind:tmpflag"/>
  116. </Band>
  117. </Format>
  118. </Formats>
  119. </Grid>
  120. <Button position="absolute 1046 471 1102 493" id="btn_rgst" class="btn4" taborder="12" text="등록" onclick="btn_rgst_onclick"/>
  121. <Static text="이력저장" id="caption6"/>
  122. <Button position="absolute 904 471 984 493" id="btn_histsave" class="btn4" taborder="9" text="이력저장" onclick="btn_histsave_onclick"/>
  123. <Shape position="absolute 5 494 1175 500" linetype="horizontal" id="line2" class="line_3"/>
  124. <Edit readonly="true" position="absolute 190 145 255 164" id="opt_actdeptcd" visible="false" class="output"/>
  125. <Button position="absolute 848 471 901 490" id="btn_rowdel" class="btn2" enable="false" taborder="10" text="행삭제" onclick="btn_rowdel_onclick"/>
  126. <Edit position="absolute 130 145 180 164" id="ipt_instcd" visible="false" autoselect="true"/>
  127. <Edit readonly="true" position="absolute 260 145 325 164" id="opt_savestatcd" visible="false" class="output"/>
  128. <Edit readonly="true" position="absolute 925 144 950 163" align="align:center middle;" id="opt_deptflag" visible="false" class="output"/>
  129. <Button position="absolute 1099 145 1174 164" id="btn_excel" class="btn5" taborder="16" text="Excel 저장" onclick="btn_excel_onclick"/>
  130. <Static text="수가명(한글)" position="absolute 302 172 387 191" align="align:center middle;" id="caption20" class="cell_1"/>
  131. <Edit readonly="true" position="absolute 390 172 720 191" align="align:left middle;" id="opt_hngnm" class="output"/>
  132. <Static text="수가명(영문)" position="absolute 728 172 813 191" align="align:center middle;" id="caption14" class="cell_1"/>
  133. <Edit readonly="true" position="absolute 815 172 1164 191" align="align:left middle;" id="opt_engnm" class="output"/>
  134. <Static text="수가명(한글) :" position="absolute 18 71 126 88" id="caption15" class="search_name"/>
  135. <Edit position="absolute 125 71 420 90" align="align:left middle;" id="ipt_actnm" class="input_search" taborder="3" autoselect="true" onkeydown="ipt_actnm_onkeydown"/>
  136. <Button position="absolute 210 103 226 119" id="button1" class="icon_search" text="" onclick="button1_onclick"/>
  137. <Static text="물 품 코 드 :" position="absolute 18 104 124 121" id="caption23" class="search_name"/>
  138. <Edit position="absolute 233 103 420 122" id="ipt_searchgoodnm" taborder="2" autoselect="true" enable="false" style=":disabled {align:center middle;}"/>
  139. <Edit position="absolute 125 103 205 122" align="align:left middle;" id="ipt_searchgoodcd" class="input_search" taborder="1" autoselect="true" onkeyup="ipt_searchgoodcd_onkeyup"/>
  140. <Grid position="absolute 5 170 90 465" id="grd_historyview" taborder="7" binddataset="ds_main_actmatrcdinfo_historylist" oncellclick="grd_historyview_oncellclick">
  141. <Formats>
  142. <Format id="default">
  143. <Columns>
  144. <Column size="0"/>
  145. <Column size="0"/>
  146. <Column size="83"/>
  147. <Column size="0"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. </Columns>
  151. <Rows>
  152. <Row size="24" band="head"/>
  153. <Row size="24"/>
  154. </Rows>
  155. <Band id="head">
  156. <Cell text="기관코드"/>
  157. <Cell col="1" text="행위코드"/>
  158. <Cell col="2" text="적용일자"/>
  159. <Cell col="3" text="종료일자"/>
  160. <Cell col="4" text="수가명(한글)"/>
  161. <Cell col="5" text="수가명(영문)"/>
  162. </Band>
  163. <Band id="body">
  164. <Cell text="bind:instcd"/>
  165. <Cell col="1" text="bind:actcd"/>
  166. <Cell col="2" displaytype="date" text="bind:fromdd" calendardisplaynulltype="none"/>
  167. <Cell col="3" text="bind:todd"/>
  168. <Cell col="4" text="bind:hngnm"/>
  169. <Cell col="5" text="bind:engnm"/>
  170. </Band>
  171. </Format>
  172. </Formats>
  173. </Grid>
  174. <Tab position="absolute 535 0 1175 140" id="switch1" onchanged="switch1_onchanged">
  175. <Tabpages>
  176. <Tabpage text="단축조회" id="case1">
  177. <Layouts>
  178. <Layout>
  179. <Grid position="absolute 0 0 638 113" id="grd_actnmview" taborder="6" binddataset="ds_main_actmatrinfo_actmatrlist" oncellclick="switch1_case1_grd_actnmview_oncellclick" cellsizebandtype="allband" cellsizingtype="col">
  180. <Formats>
  181. <Format id="default">
  182. <Columns>
  183. <Column size="103"/>
  184. <Column size="250"/>
  185. <Column size="250"/>
  186. <Column size="0"/>
  187. <Column size="0"/>
  188. <Column size="0"/>
  189. <Column size="0"/>
  190. <Column size="80"/>
  191. <Column size="80"/>
  192. <Column size="0"/>
  193. <Column size="0"/>
  194. </Columns>
  195. <Rows>
  196. <Row size="24" band="head"/>
  197. <Row size="24"/>
  198. </Rows>
  199. <Band id="head">
  200. <Cell text="행위코드"/>
  201. <Cell col="1" text="수가명(한글)"/>
  202. <Cell col="2" text="수가명(영문)"/>
  203. <Cell col="3" text="시행부서"/>
  204. <Cell col="4" text="시행부서"/>
  205. <Cell col="5" text="의사ID"/>
  206. <Cell col="6" text="의사명"/>
  207. <Cell col="7" text="적용일"/>
  208. <Cell col="8" text="종료일"/>
  209. <Cell col="9" text="임시저장"/>
  210. <Cell col="10" text="부서구분"/>
  211. </Band>
  212. <Band id="body">
  213. <Cell style="background:BIND(colBack0);background2:BIND(colBack0);" text="bind:actcd"/>
  214. <Cell col="1" style="align:left top;padding:4 2 2 2;background:BIND(colBack0);background2:BIND(colBack0);" text="bind:hngnm" wordwrap="word"/>
  215. <Cell col="2" style="align:left top;padding:4 2 2 2;background:BIND(colBack0);background2:BIND(colBack0);" text="bind:engnm" wordwrap="word"/>
  216. <Cell col="3" text="bind:actdeptcd"/>
  217. <Cell col="4" text="bind:actdeptnm"/>
  218. <Cell col="5" text="bind:actprcpdrid"/>
  219. <Cell col="6" text="bind:actprcpdrnm"/>
  220. <Cell col="7" displaytype="date" text="bind:fromdd" calendardisplaynulltype="none"/>
  221. <Cell col="8" displaytype="date" text="bind:todd" calendardisplaynulltype="none"/>
  222. <Cell col="9" displaytype="checkbox" edittype="checkbox" text="bind:tmpflag" enable="false"/>
  223. <Cell col="10" text="bind:deptflag"/>
  224. </Band>
  225. </Format>
  226. </Formats>
  227. </Grid>
  228. </Layout>
  229. </Layouts>
  230. </Tabpage>
  231. <Tabpage id="case2" text="이력조회">
  232. <Layouts>
  233. <Layout>
  234. <Grid id="grd_acthisview" taborder="0" binddataset="ds_main_actmatrhistinfo_actmatrhistlist" useinputpanel="false" position="absolute 0 0 638 113" oncellclick="switch1_case2_grd_acthisview_oncellclick" cellsizebandtype="allband" cellsizingtype="col">
  235. <Formats>
  236. <Format id="default">
  237. <Columns>
  238. <Column size="101"/>
  239. <Column size="0"/>
  240. <Column size="133"/>
  241. <Column size="87"/>
  242. <Column size="75"/>
  243. <Column size="102"/>
  244. <Column size="105"/>
  245. <Column size="62"/>
  246. </Columns>
  247. <Rows>
  248. <Row size="24" band="head"/>
  249. <Row size="24"/>
  250. </Rows>
  251. <Band id="head">
  252. <Cell text="행위코드"/>
  253. <Cell col="1" text="시행부서"/>
  254. <Cell col="2" text="시행부서"/>
  255. <Cell col="3" text="의사ID"/>
  256. <Cell col="4" text="의사명"/>
  257. <Cell col="5" text="적용일"/>
  258. <Cell col="6" text="종료일"/>
  259. <Cell col="7" text="부서구분"/>
  260. </Band>
  261. <Band id="body">
  262. <Cell text="bind:actcd"/>
  263. <Cell col="1" text="bind:actdeptcd"/>
  264. <Cell col="2" text="bind:actdeptnm"/>
  265. <Cell col="3" text="bind:actprcpdrid"/>
  266. <Cell col="4" text="bind:actprcpdrnm"/>
  267. <Cell col="5" displaytype="date" text="bind:fromdd" calendardisplaynulltype="none"/>
  268. <Cell col="6" displaytype="date" text="bind:todd" calendardisplaynulltype="none"/>
  269. <Cell col="7" text="bind:deptflag"/>
  270. </Band>
  271. </Format>
  272. </Formats>
  273. </Grid>
  274. </Layout>
  275. </Layouts>
  276. </Tabpage>
  277. </Tabpages>
  278. </Tab>
  279. <ImageViewer position="absolute 687 0 703 17" id="img2" style="background:@gradation URL('../../../com/commonxp/images/grid_scroll_v_up.gif');border:0 none #33bbbbff #effcfbff;bordertype:round 2 2 ;" onclick="img2_onclick"/>
  280. <ImageViewer position="absolute 707 0 723 17" id="img1" style="background:@gradation URL('../../../com/commonxp/images/grid_scroll_v_down.gif');border:0 none #33bbbbff #effcfbff;bordertype:round 2 2 ;" onclick="img1_onclick"/>
  281. <Edit readonly="true" position="absolute 970 0 1045 19" align="align:center middle;" id="opt_savestatnm" visible="false" class="output"/>
  282. <Static text="저장상태" position="absolute 900 0 960 19" align="align:center middle;" id="caption16" class="cell_1" visible="false"/>
  283. <Static text=": 행위종료" position="absolute 751 3 818 18" id="caption17" visible="false" style="font:Dotum,9,bold;"/>
  284. <Edit readonly="true" position="absolute 730 0 745 19" id="output1" visible="false" style="background:#ffff00ff stretch 5,5;border:1 solid #808080ff ;"/>
  285. </Layout>
  286. </Layouts>
  287. <Objects>
  288. <Dataset id="ds_main_actmatrcdinfo_actmatrcddetllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  289. <ColumnInfo>
  290. <Column id="rowstat" type="STRING"/>
  291. <Column id="instcd" type="STRING"/>
  292. <Column id="actcd" type="STRING"/>
  293. <Column id="actprcpdrid" type="STRING"/>
  294. <Column id="actdeptcd" type="STRING"/>
  295. <Column id="todd" type="STRING"/>
  296. <Column id="fromdd" type="STRING"/>
  297. <Column id="deptflag" type="STRING"/>
  298. <Column id="goodcd" type="STRING"/>
  299. <Column id="allsizespecid" type="STRING"/>
  300. <Column id="goodnm" type="STRING"/>
  301. <Column id="goodspec" type="STRING"/>
  302. <Column id="goodunitcost" type="STRING"/>
  303. <Column id="qty" type="STRING"/>
  304. <Column id="goodmodel" type="STRING"/>
  305. <Column id="edicd" type="STRING"/>
  306. <Column id="deliveunit" type="STRING"/>
  307. <Column id="maincustlastsuplplcenm" type="STRING"/>
  308. <Column id="suppcustnm" type="STRING"/>
  309. <Column id="tmpflag" type="STRING"/>
  310. </ColumnInfo>
  311. </Dataset>
  312. <Dataset id="ds_send_goodcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  313. <ColumnInfo>
  314. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  315. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  316. <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
  317. <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
  318. <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
  319. <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사명 "/>
  320. <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
  321. <Column id="type" type="STRING" size="256" sumtext="조회유형 "/>
  322. </ColumnInfo>
  323. <Rows>
  324. <Row/>
  325. </Rows>
  326. </Dataset>
  327. <Dataset id="ds_main_actmatrcdinfo_actmatrcdcomnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  328. <ColumnInfo>
  329. <Column id="rowstat" type="STRING" size="256" sumtext="상태 "/>
  330. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  331. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  332. <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
  333. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  334. <Column id="allsizespecid" type="STRING" size="256" sumtext="Allsize "/>
  335. <Column id="goodnm" type="STRING" size="256" sumtext="물품명 "/>
  336. <Column id="goodmodel" type="STRING" size="256" sumtext="물품모델 "/>
  337. <Column id="goodspec" type="STRING" size="256" sumtext="물품규격 "/>
  338. <Column id="maincustlastsuplplce" type="STRING" size="256" sumtext="주거래처코드 "/>
  339. <Column id="maincustlastsuplplcenm" type="STRING" size="256" sumtext="주거래처명 "/>
  340. <Column id="suppcustcd" type="STRING" size="256" sumtext="보조거래처코드 "/>
  341. <Column id="suppcustnm" type="STRING" size="256" sumtext="보조거래처명 "/>
  342. <Column id="edicd" type="STRING" size="256" sumtext="edi코드 "/>
  343. <Column id="prcpexchqty" type="STRING" size="256" sumtext="수불환산수량"/>
  344. <Column id="deliveunit" type="STRING" size="256" sumtext="수불단위 "/>
  345. <Column id="goodunitcost" type="STRING" size="256" sumtext="제품단가 "/>
  346. <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
  347. <Column id="actdeptnm" type="STRING" size="256" sumtext="행위부서이름 "/>
  348. <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
  349. <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사이름 "/>
  350. <Column id="qty" type="STRING" size="256" sumtext="수량 "/>
  351. <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
  352. <Column id="tmpflag" type="STRING" size="256" sumtext="임시저장상태 "/>
  353. <Column id="deptflag" type="STRING" size="256" sumtext="부서코드 "/>
  354. <Column id="deptflagnm" type="STRING" size="256"/>
  355. <Column id="savestatcd" type="STRING" size="256"/>
  356. <Column id="savestatnm" type="STRING" size="256"/>
  357. <Column id="hngnm" type="STRING" size="256"/>
  358. <Column id="engnm" type="STRING" size="256"/>
  359. </ColumnInfo>
  360. </Dataset>
  361. <Dataset id="ds_main_actmatrcdinfo_historylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  362. <ColumnInfo>
  363. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  364. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  365. <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
  366. <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
  367. <Column id="hngnm" type="STRING" size="256" sumtext="수가명(한글) "/>
  368. <Column id="engnm" type="STRING" size="256" sumtext="수가명(영문) "/>
  369. </ColumnInfo>
  370. </Dataset>
  371. <Dataset id="ds_send_actmatrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_actmatrlist_oncolumnchanged">
  372. <ColumnInfo>
  373. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  374. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  375. <Column id="todd" type="STRING" size="256" sumtext="종료일자(종료) "/>
  376. <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
  377. <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
  378. <Column id="stodd" type="STRING" size="256" sumtext="종료일자(시작) "/>
  379. <Column id="fromdd" type="STRING" size="256" sumtext="시행일자(시작) "/>
  380. <Column id="efromdd" type="STRING" size="256" sumtext="시행일자(종료) "/>
  381. <Column id="deptflag" type="STRING" size="256" sumtext="부서구분 "/>
  382. <Column id="actnm" type="STRING" size="256" sumtext="수가명 "/>
  383. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  384. <Column id="actdeptnm" type="STRING" size="256"/>
  385. <Column id="goodnm" type="STRING" size="256"/>
  386. </ColumnInfo>
  387. <Rows>
  388. <Row/>
  389. </Rows>
  390. </Dataset>
  391. <Dataset id="ds_main_actmatrinfo_actmatrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  392. <ColumnInfo>
  393. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  394. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  395. <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
  396. <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
  397. <Column id="actdeptnm" type="STRING" size="256" sumtext="행위부서이름 "/>
  398. <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
  399. <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사이름 "/>
  400. <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
  401. <Column id="tmpflag" type="STRING" size="256" sumtext="임시저장상태 "/>
  402. <Column id="deptflag" type="STRING" size="256" sumtext="부서구분 "/>
  403. <Column id="hngnm" type="STRING" size="256" sumtext="수가명(한글)"/>
  404. <Column id="engnm" type="STRING" size="256" sumtext="수가명(영문)"/>
  405. <Column id="colBack0" type="STRING" size="256"/>
  406. </ColumnInfo>
  407. </Dataset>
  408. <Dataset id="ds_send_actmatrhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  409. <ColumnInfo>
  410. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  411. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  412. <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
  413. <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
  414. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  415. </ColumnInfo>
  416. <Rows>
  417. <Row/>
  418. </Rows>
  419. </Dataset>
  420. <Dataset id="ds_main_actmatrhistinfo_actmatrhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  421. <ColumnInfo>
  422. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  423. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  424. <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
  425. <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
  426. <Column id="actdeptnm" type="STRING" size="256" sumtext="행위부서이름 "/>
  427. <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사아이디"/>
  428. <Column id="actprcpdrnm" type="STRING" size="256" sumtext="행위처방의사이름 "/>
  429. <Column id="fromdd" type="STRING" size="256" sumtext="시행일자 "/>
  430. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  431. <Column id="tmpflag" type="STRING" size="256" sumtext="임시저장상태 "/>
  432. <Column id="deptflag" type="STRING" size="256" sumtext="부서코드 "/>
  433. </ColumnInfo>
  434. </Dataset>
  435. <Dataset id="ds_save_actmasterlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  436. <ColumnInfo>
  437. <Column id="status" type="STRING" size="256" sumtext="상태 "/>
  438. <Column id="instcd" type="STRING" size="256" sumtext="기관코드 "/>
  439. <Column id="actcd" type="STRING" size="256" sumtext="행위코드 "/>
  440. <Column id="todd" type="STRING" size="256" sumtext="종료일자 "/>
  441. <Column id="fromdd" type="STRING" size="256" sumtext="적용일자 "/>
  442. <Column id="goodcd" type="STRING" size="256" sumtext="물품코드 "/>
  443. <Column id="allsizespecid" type="STRING" size="256" sumtext="allsize "/>
  444. <Column id="actdeptcd" type="STRING" size="256" sumtext="행위부서코드 "/>
  445. <Column id="actprcpdrid" type="STRING" size="256" sumtext="행위처방의사id"/>
  446. <Column id="qty" type="INT" size="256" sumtext="수량 "/>
  447. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자id "/>
  448. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일시 "/>
  449. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자id "/>
  450. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시 "/>
  451. <Column id="tmpflag" type="STRING" size="256" sumtext="최종수정일시 "/>
  452. </ColumnInfo>
  453. </Dataset>
  454. <Dataset id="ds_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  455. <ColumnInfo>
  456. <Column id="appdd" type="STRING" size="256" sumtext="상태 "/>
  457. </ColumnInfo>
  458. <Rows>
  459. <Row/>
  460. </Rows>
  461. </Dataset>
  462. <Dataset id="ds_source_recvitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  463. <ColumnInfo>
  464. <Column id="goodcd" type="STRING" size="256"/>
  465. <Column id="goodnm" type="STRING" size="256"/>
  466. <Column id="allsizespecid" type="STRING" size="256"/>
  467. <Column id="goodflag" type="STRING" size="256"/>
  468. </ColumnInfo>
  469. <Rows>
  470. <Row/>
  471. </Rows>
  472. </Dataset>
  473. <Dataset id="ds_source_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  474. <ColumnInfo>
  475. <Column id="nodebigo" type="STRING" size="256"/>
  476. </ColumnInfo>
  477. <Rows>
  478. <Row/>
  479. </Rows>
  480. </Dataset>
  481. <Dataset id="ds_source_recvref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  482. <ColumnInfo>
  483. <Column id="recvref" type="STRING" size="256"/>
  484. </ColumnInfo>
  485. <Rows>
  486. <Row/>
  487. </Rows>
  488. </Dataset>
  489. <Dataset id="ds_source_cdgrupid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  490. <ColumnInfo>
  491. <Column id="cdgrupid" type="STRING" size="256"/>
  492. </ColumnInfo>
  493. <Rows>
  494. <Row/>
  495. </Rows>
  496. </Dataset>
  497. <Dataset id="ds_source_checkyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  498. <ColumnInfo>
  499. <Column id="checkyn" type="STRING" size="256"/>
  500. </ColumnInfo>
  501. <Rows>
  502. <Row/>
  503. </Rows>
  504. </Dataset>
  505. <Dataset id="ds_send_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  506. <ColumnInfo>
  507. <Column id="actdeptcd" type="STRING" size="256" sumtext="부서코드 "/>
  508. <Column id="actdeptnm" type="STRING" size="256" sumtext="부서명 "/>
  509. <Column id="instcd" type="STRING" size="256" sumtext="기관 "/>
  510. <Column id="actprcpdrid" type="STRING" size="256" sumtext="의사id "/>
  511. <Column id="actprcpdrnm" type="STRING" size="256" sumtext="의사명 "/>
  512. <Column id="usndeptch" type="STRING" size="256" sumtext="조회구분 "/>
  513. <Column id="cdgrupid" type="STRING" size="256"/>
  514. <Column id="getcond" type="STRING" size="256"/>
  515. <Column id="retrkind" type="STRING" size="256"/>
  516. <Column id="systemflag" type="STRING" size="256"/>
  517. <Column id="classicyn" type="STRING" size="256"/>
  518. </ColumnInfo>
  519. <Rows>
  520. <Row/>
  521. </Rows>
  522. </Dataset>
  523. <Dataset id="ds_init_main_usndept_usndeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  524. <ColumnInfo>
  525. <Column id="actdeptcd" type="STRING" size="256" sumtext="부서코드 "/>
  526. <Column id="actdeptnm" type="STRING" size="256" sumtext="부서명 "/>
  527. <Column id="instcd" type="STRING" size="256" sumtext="기관 "/>
  528. <Column id="actprcpdrid" type="STRING" size="256" sumtext="의사id "/>
  529. <Column id="actprcpdrnm" type="STRING" size="256" sumtext="의사명 "/>
  530. </ColumnInfo>
  531. </Dataset>
  532. <Dataset id="ds_init_main_usndept_usndeptlist_reqcustomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  533. <ColumnInfo>
  534. <Column id="actdeptcd" type="STRING" size="256"/>
  535. <Column id="actdeptnm" type="STRING" size="256"/>
  536. </ColumnInfo>
  537. </Dataset>
  538. <Dataset id="ds_source_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  539. <ColumnInfo>
  540. <Column id="actdeptcd" type="STRING" size="256" sumtext="부서코드 "/>
  541. <Column id="actdeptnm" type="STRING" size="256" sumtext="부서명 "/>
  542. <Column id="instcd" type="STRING" size="256" sumtext="기관 "/>
  543. <Column id="actprcpdrid" type="STRING" size="256" sumtext="의사id "/>
  544. <Column id="actprcpdrnm" type="STRING" size="256" sumtext="의사명 "/>
  545. <Column id="deptcd" type="STRING" size="256"/>
  546. <Column id="depthngnm" type="STRING" size="256"/>
  547. </ColumnInfo>
  548. <Rows>
  549. <Row/>
  550. </Rows>
  551. </Dataset>
  552. <Dataset id="ds_init_validation_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  553. <ColumnInfo>
  554. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  555. <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
  556. </ColumnInfo>
  557. </Dataset>
  558. <Dataset id="ds_send_reslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  559. <ColumnInfo>
  560. <Column id="actcd" type="STRING" size="256"/>
  561. <Column id="actdeptcd" type="STRING" size="256"/>
  562. <Column id="actdeptnm" type="STRING" size="256"/>
  563. <Column id="actprcpdrid" type="STRING" size="256"/>
  564. <Column id="actprcpdrnm" type="STRING" size="256"/>
  565. <Column id="fromdd" type="STRING" size="256"/>
  566. <Column id="todd" type="STRING" size="256"/>
  567. </ColumnInfo>
  568. <Rows>
  569. <Row/>
  570. </Rows>
  571. </Dataset>
  572. </Objects>
  573. <Bind>
  574. <BindItem id="item0" compid="ipt_actcd" propid="value" datasetid="ds_send_actmatrlist" columnid="actcd"/>
  575. <BindItem id="item1" compid="ipt_actnm" propid="value" datasetid="ds_send_actmatrlist" columnid="actnm"/>
  576. <BindItem id="item2" compid="ipt_searchgoodcd" propid="value" datasetid="ds_send_actmatrlist" columnid="goodcd"/>
  577. <BindItem id="item3" compid="ipt_searchgoodnm" propid="value" datasetid="ds_send_actmatrlist" columnid="goodnm"/>
  578. <BindItem id="item4" compid="ipt_actdeptcd" propid="value" datasetid="ds_send_actmatrlist" columnid="actdeptcd"/>
  579. <BindItem id="item5" compid="ipt_actdeptnm" propid="value" datasetid="ds_send_actmatrlist" columnid="actdeptnm"/>
  580. <BindItem id="item6" compid="opt_savestatnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="savestatnm"/>
  581. <BindItem id="item7" compid="ipt_instcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="instcd"/>
  582. <BindItem id="item8" compid="opt_actdeptcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actdeptcd"/>
  583. <BindItem id="item9" compid="opt_savestatcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="savestatcd"/>
  584. <BindItem id="item10" compid="opt_actdeptnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actdeptnm"/>
  585. <BindItem id="item11" compid="opt_actprcpdrid" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actprcpdrid"/>
  586. <BindItem id="item12" compid="opt_actprcpdrnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actprcpdrnm"/>
  587. <BindItem id="item13" compid="opt_deptflagnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="deptflagnm"/>
  588. <BindItem id="item14" compid="opt_deptflag" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="deptflag"/>
  589. <BindItem id="item15" compid="opt_actcd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="actcd"/>
  590. <BindItem id="item16" compid="opt_fromdd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="fromdd"/>
  591. <BindItem id="item17" compid="opt_hngnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="hngnm"/>
  592. <BindItem id="item18" compid="opt_todd" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="todd"/>
  593. <BindItem id="item19" compid="opt_engnm" propid="value" datasetid="ds_main_actmatrcdinfo_actmatrcdcomnlist" columnid="engnm"/>
  594. </Bind>
  595. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  596. * System Name : 경대 의료정보시스템
  597. * Job Name : pam_actmatrxp -> SMPIC90000
  598. * Creator : yjh
  599. * Make Date : 2017-11-09
  600. * Description :
  601. *---------------------------------------------------------------------------------------
  602. * Modify Date Modifier Modify Description
  603. *---------------------------------------------------------------------------------------
  604. * 2017-11-09 yjh TF->XP
  605. *
  606. *---------------------------------------------------------------------------------------
  607. ****************************************************************************************/
  608. //=======================================================================================
  609. // Lib Include
  610. //---------------------------------------------------------------------------------------
  611. include "com_commonxp::comm_main.xjs";
  612. include "pam_actmatrxp::SMPIC90000.xjs";
  613. include "mis_miscommonxp::MIS.xjs";
  614. include "mis_miscommonxp::RSZ001.xjs";
  615. //=======================================================================================
  616. // Global Form Variable
  617. //---------------------------------------------------------------------------------------
  618. var arErrorCode = new HashArray();
  619. //=======================================================================================
  620. // Function
  621. //---------------------------------------------------------------------------------------
  622. var Gfocus = "";
  623. function fInitialize()
  624. {
  625. ds_main_actmatrinfo_actmatrlist.clearData();
  626. ds_main_actmatrhistinfo_actmatrhistlist.clearData();
  627. import1.ds_hidden_rscdgood_rscdgoodlist.clearData();
  628. ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
  629. ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
  630. ds_main_actmatrcdinfo_historylist.clearData();
  631. ds_send_actmatrlist.enableevent = false;
  632. ds_send_actmatrlist.updatecontrol = false;
  633. ds_send_actmatrlist.setColumn(0, "actcd", "");
  634. ds_send_actmatrlist.setColumn(0, "actdeptcd", "");
  635. ds_send_actmatrlist.setColumn(0, "actdeptnm", "");
  636. ds_send_actmatrlist.setColumn(0, "actnm", "");
  637. ds_send_actmatrlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
  638. ds_send_actmatrlist.updatecontrol = true;
  639. ds_send_actmatrlist.enableevent = true;
  640. switch1.tabindex = 0;
  641. import1.btn_goodinsert.enable = false;
  642. //btn_histsave.disabled = true;
  643. btn_rowdel.enable = false;
  644. btn_save.enable = false;
  645. btn_tmpsave.enable = false;
  646. btn_del.enable = false;
  647. btn_actend.enable = false;
  648. }
  649. function fsetting()
  650. {
  651. var flag = "Y", rowno = "";
  652. if(!utlf_isNull(opt_actcd.value)){
  653. for(var i=0; i < import1.ds_hidden_rscdgood_rscdgoodlist.rowcount ;i++){
  654. if(import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "select") == "Y"){
  655. for(var j=0; j < ds_main_actmatrcdinfo_actmatrcddetllist.rowcount;j++){
  656. var srcgoodcd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodcd");
  657. var goodcd = ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(j, "goodcd");
  658. var srcallsizespecid = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "allsizespecid");
  659. var allsizespecid = ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(j, "allsizespecid");
  660. if (srcgoodcd == goodcd && srcallsizespecid == allsizespecid){
  661. flag = "N";
  662. rowno = rowno + "," + i; // 이미 존재하는 코드 check
  663. }
  664. }
  665. if (flag == "Y"){
  666. var pgoodcd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodcd");
  667. var pallsizeid = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "allsizespecid");
  668. var pgoodnm = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodnm");
  669. var pgoodmodel = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodmodel");
  670. var pgoodspec = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodspec");
  671. var pmaincustlastsuplplce = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "maincustlastsuplplce");
  672. var pmaincustlastsuplplcenm = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "maincustlastsuplplcenm");
  673. var psuppcustcd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "suppcustcd");
  674. var psuppcustnm = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "suppcustnm");
  675. var pedicd = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "edicd");
  676. var pdeliveunit = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "deliveunit");
  677. var pgoodunitcost = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "goodunitcost");
  678. var pdrugqty = import1.ds_hidden_rscdgood_rscdgoodlist.getColumn(i, "drugqty");
  679. var pactcd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actcd");
  680. var pinstcd = sysf_getUserInfo("dutplceinstcd"); //기관 설정
  681. var pactprcpdrid = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actprcpdrid");
  682. var pactdeptcd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actdeptcd");
  683. var ptodd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "todd");
  684. var pfromdd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "fromdd");
  685. //부서구분 추가
  686. var pdeptflag = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag");
  687. var nRow = ds_main_actmatrcdinfo_actmatrcddetllist.addRow();
  688. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "rowstat", "1");
  689. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodcd", pgoodcd);
  690. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "allsizespecid", pallsizeid);
  691. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodnm", pgoodnm);
  692. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodmodel", pgoodmodel);
  693. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodspec", pgoodspec);
  694. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "maincustlastsuplplce", pmaincustlastsuplplce);
  695. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "maincustlastsuplplcenm", pmaincustlastsuplplcenm);
  696. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "suppcustcd", psuppcustcd);
  697. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "suppcustnm", psuppcustnm);
  698. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "edicd", pedicd);
  699. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "deliveunit", pdeliveunit);
  700. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "goodunitcost", pgoodunitcost);
  701. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "actcd", pactcd);
  702. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "instcd", pinstcd);
  703. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "actprcpdrid", pactprcpdrid);
  704. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "actdeptcd", pactdeptcd);
  705. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "todd", ptodd);
  706. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "fromdd", pfromdd);
  707. //부서구분 추가
  708. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "deptflag", pdeptflag);
  709. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(nRow, "qty", pdrugqty);
  710. //var status = grd_actmaster.valueMatrix(grd_actmaster.row, grd_actmaster.colRef("m")); //상태설정
  711. /* if(actflag == 1){
  712. grd_actmaster.rowStatus(grd_actmaster.row) = 1;
  713. }else{
  714. grd_actmaster.rowStatus(grd_actmaster.row) = 0;
  715. }*/
  716. }
  717. import1.ds_hidden_rscdgood_rscdgoodlist.setColumn(i, "select", "N");
  718. flag = "Y";
  719. }
  720. }
  721. if (!utlf_isNull(rowno)){
  722. sysf_messageBox("물품조회 "+rowno.substr(1, rowno.length-1)+"번째에 동일 물품이 존재합니다.", "I");
  723. }
  724. }else{
  725. sysf_messageBox("행위처방코드와 물품코드는","I003");
  726. }
  727. }
  728. function fmatch()
  729. {
  730. var actcd = frmf_getParameter("calcscorcd"); //parameter값으로 설정
  731. var userid = frmf_getParameter("actprcpdrid");
  732. var usernm = frmf_getParameter("actprcpdrnm");
  733. var deptcd = frmf_getParameter("actdeptcd");
  734. var deptnm = frmf_getParameter("actdeptnm");
  735. var fromdd = frmf_getParameter("fromdd");
  736. var todd = frmf_getParameter("todd");
  737. ds_send_reslist.setColumn(0, "actcd" , actcd ); //값 셋팅해주는 역할
  738. ds_send_reslist.setColumn(0, "actdeptcd" , deptcd );
  739. ds_send_reslist.setColumn(0, "actdeptnm" , deptnm );
  740. ds_send_reslist.setColumn(0, "actprcpdrid" , userid );
  741. ds_send_reslist.setColumn(0, "actprcpdrnm" , usernm );
  742. ds_send_reslist.setColumn(0, "fromdd" , fromdd );
  743. ds_send_reslist.setColumn(0, "todd" , todd );
  744. }
  745. function fset(){
  746. var userid = frmf_getParameter("actprcpdrid");
  747. var usernm = frmf_getParameter("actprcpdrnm");
  748. var deptcd = frmf_getParameter("actdeptcd");
  749. var deptnm = frmf_getParameter("actdeptnm");
  750. ds_send_actmatrlist.setColumn(0, "actdeptcd",deptcd ); //값 셋팅해주는 역할
  751. ds_send_actmatrlist.setColumn(0, "actdeptnm",deptnm );
  752. ds_send_actmatrlist.setColumn(0, "actprcpdrid",userid );
  753. ds_send_actmatrlist.setColumn(0, "actprcpdrnm",usernm );
  754. }
  755. function fSave(msg, stat){
  756. var updtdata = "", rowno = "";
  757. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
  758. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
  759. for(i=0;i<ds_main_actmatrcdinfo_actmatrcddetllist.rowcount;i++){
  760. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "instcd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "instcd"));
  761. // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actdeptcd" )) = model.getValue(opt_actdeptcd.attribute("ref"));
  762. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "actcd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actcd"));
  763. // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("actprcpdrid")) = model.getValue(opt_actprcpdrid.attribute("ref"));
  764. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "fromdd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "fromdd"));
  765. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "todd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "todd"));
  766. // grd_actmaster.valueMatrix(i, grd_actmaster.colRef("deptflag" )) = model.getValue(opt_deptflag.attribute("ref"));
  767. if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "actdeptcd"))){
  768. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "actdeptcd", "-"); // 시행부서 입력
  769. }
  770. if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "actprcpdrid"))){
  771. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "actprcpdrid", "00000"); // 행위처방의사
  772. }
  773. if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "deptflag"))){
  774. ds_main_actmatrcdinfo_actmatrcddetllist.setColumn(i, "deptflag", "-"); // 부서구분코드
  775. }
  776. /* if (stat == "T"){
  777. grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag" )) = "Y";
  778. }else{
  779. grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag" )) = "N";
  780. } */
  781. if(utlf_isNull(ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "qty")) || ds_main_actmatrcdinfo_actmatrcddetllist.getColumn(i, "qty") == 0){
  782. rowno += "," + i;
  783. }
  784. }
  785. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
  786. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
  787. if (!utlf_isNull(rowno)){
  788. sysf_messageBox(rowno.substr(1, rowno.length-1)+"번째건의 수량이 입력되지 ", "I011");
  789. return false;
  790. }
  791. if (msg == "저장") {
  792. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
  793. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
  794. grdf_setStatusColumn(ds_main_actmatrcdinfo_actmatrcddetllist, "status");
  795. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
  796. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
  797. //ds_save_actmasterlist.assign(grdf_getGridUpdateData(grd_actmaster, "all"));
  798. ds_save_actmasterlist.copyData(grdf_getGridUpdateData(grd_actmaster, "all"), true);
  799. if(ds_save_actmasterlist.rowcount == 0){
  800. sysf_messageBox(msg+"할 데이타가 ","E014");
  801. return false;
  802. }
  803. } else {
  804. // updtdata = getGridUpdateData(grd_actmaster);
  805. // if(updtdata == ""){
  806. // messageBox(msg+"할 데이타가 ","E014");
  807. // return false;
  808. // }
  809. //
  810. // model.copyNode("/root/save/actmasterlist", updtdata);
  811. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
  812. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
  813. grdf_setStatusColumn(ds_main_actmatrcdinfo_actmatrcddetllist, "status");
  814. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
  815. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
  816. ds_save_actmasterlist.assign(ds_main_actmatrcdinfo_actmatrcddetllist);
  817. }
  818. }
  819. function fViewToggle(pCls) {
  820. var focus = "";
  821. if (pCls == 0) {
  822. focus = ds_main_actmatrinfo_actmatrlist.rowposition;
  823. switch1.case1.grd_actnmview.setFocus();
  824. //grd_actnmview.dispatch("onclick");
  825. fSrchGood(switch1.case1.grd_actnmview);
  826. } else {
  827. focus = ds_main_actmatrhistinfo_actmatrhistlist.rowposition;
  828. switch1.case2.grd_acthisview.setFocus();
  829. //grd_acthisview.dispatch("onclick");
  830. fSrchGood(switch1.case2.grd_acthisview);
  831. }
  832. }
  833. function fSrchCondInfo() {
  834. ds_send_actmatrlist.setColumn(0, "actcd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "actcd"));
  835. // model.setValue(ipt_actdeptcd.attribute("ref") , model.getValue(opt_actdeptcd.attribute("ref") ));
  836. // model.setValue(ipt_actdeptnm.attribute("ref") , model.getValue(opt_actdeptnm.attribute("ref") ));
  837. // model.setValue(ipt_actprcpdrid.attribute("ref") , model.getValue(opt_actprcpdrid.attribute("ref")));
  838. // model.setValue(ipt_actprcpdrnm.attribute("ref") , model.getValue(opt_actprcpdrnm.attribute("ref")));
  839. btn_actsearch.click();
  840. }
  841. function fSrchGood(pGrid) {
  842. var savestatcd = "";
  843. var tmpflag="", todd="",deptflag="";
  844. var oBindDs = eval(pGrid.binddataset);
  845. if (oBindDs.rowcount <= 0) return;
  846. var nRow = oBindDs.rowposition;
  847. ds_send_goodcdlist.copyRow(0, oBindDs, nRow);
  848. ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
  849. ds_main_actmatrcdinfo_historylist.clearData();
  850. // model.makeNode("/root/main/actmatrcdinfo");
  851. //misfGridInit
  852. var oParam = {};
  853. oParam.id = "TRPIC90007";
  854. oParam.service = "actmatrapp.ActMatrMngt";
  855. oParam.method = "reqGetRefActMatr";
  856. oParam.inds = "req=ds_send_goodcdlist";
  857. oParam.outds = "ds_main_actmatrcdinfo_actmatrcddetllist=actmatrcddetllist ds_main_actmatrcdinfo_historylist=historylist";
  858. oParam.async = false;
  859. oParam.callback = "cf_TRPIC90007";
  860. tranf_submit(oParam);
  861. ds_main_actmatrcdinfo_historylist.addColumn("deptflag", "string");
  862. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
  863. dsf_setDefaultVal(ds_main_actmatrcdinfo_actmatrcddetllist, "rowstat:0");
  864. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
  865. if(arErrorCode.pop("TRPIC90007") > -1) {
  866. todd = ds_send_goodcdlist.getColumn(0, "todd");
  867. if(todd != '99991231' ){
  868. grd_actmaster.setCellProperty("Body", 14, "edittype", "none");
  869. //fDisableCheck(true);
  870. }else{
  871. grd_actmaster.setCellProperty("Body", 14, "edittype", "masknumber");
  872. //fDisableCheck(false);
  873. }
  874. ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
  875. ds_main_actmatrcdinfo_actmatrcdcomnlist.addRow();
  876. ds_main_actmatrcdinfo_actmatrcdcomnlist.copyRow(0, oBindDs, nRow);
  877. //tmpflag = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("tmpflag")).getTrim();
  878. //todd = grd_actnmview.valueMatrix(grd_actnmview.row, grd_actnmview.colRef("todd")).getTrim();
  879. //deptflag = grd_actnmview.valueMatrix(grd_actnmview.row,grd_actnmview.colRef("deptflag")).getTrim();
  880. if(todd != '99991231' ){
  881. btn_del.enable = false; // 삭제 비활성화
  882. btn_actend.enable = false; // 행위종료 비활성화
  883. import1.btn_goodinsert.enable = false; // 물품추가 비활성화
  884. btn_rowdel.enable = false; // 물품삭제 비활성화
  885. btn_save.enable = false; // 저장 비활성화
  886. }else{
  887. btn_del.enable = true; // 삭제 활성화
  888. btn_actend.enable = true;; // 행위종료 활성화
  889. import1.btn_goodinsert.enable = true; // 물품추가 활성화
  890. btn_rowdel.enable = true; // 물품삭제 활성화
  891. btn_save.enable = true; // 저장 비활성화
  892. }
  893. //부서구분 추가
  894. deptflag = utlf_transNullToEmpty(oBindDs.getColumn(nRow, "deptflag")).getTrim();
  895. if (deptflag =="1") {
  896. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "구매");
  897. } else if (deptflag =="2") {
  898. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "약국");
  899. } else {
  900. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "-");
  901. }
  902. // 그룹수가 내 싱글수가 조회화면 전달용
  903. import1.ds_subsend_rscdgoodlist.setColumn(0, "actcd", ds_send_goodcdlist.getColumn(0, "actcd"));
  904. import1.ds_subsend_rscdgoodlist.setColumn(0, "basedd", ds_send_goodcdlist.getColumn(0, "fromdd"));
  905. }
  906. /*
  907. if (tmpflag == "Y"){
  908. model.makeValue(opt_savestatcd.attribute("ref"), "T");
  909. model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "임시저장");
  910. }else if (tmpflag == "N"){
  911. model.makeValue(opt_savestatcd.attribute("ref"), "S");
  912. model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "저장");
  913. if(todd == '99991231' ){
  914. model.makeValue(opt_savestatcd.attribute("ref"), "S");
  915. model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "저장");
  916. }else{
  917. model.makeValue(opt_savestatcd.attribute("ref"), "H");
  918. model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "이력저장");
  919. }
  920. }else{
  921. if (grd_acthisview.rows - grd_acthisview.fixedRows != 0){
  922. model.makeValue(opt_savestatcd.attribute("ref"), "H");
  923. model.makeValue("/root/main/actmatrcdinfo/actmatrcdcomnlist/savestatnm", "이력저장");
  924. }
  925. }
  926. savestatcd = model.getValue(opt_savestatcd.attribute("ref"));
  927. if (savestatcd == "T"){ // 저장상태가 임시저장일 경우
  928. btn_tmpsave.disabled = false; // 임시저장 활성화
  929. btn_save.disabled = false; // 저장 활성화
  930. btn_histsave.disabled = true; // 이력저장 비활성화
  931. btn_rowdel.disabled = false; // 행삭제 활성화
  932. btn_goodinsert.disabled = false; // 행추가 활성화
  933. }else if (savestatcd == "S"){ // 저장상태가 저장일 경우{
  934. btn_tmpsave.disabled = true; // 임시저장 비활성화
  935. btn_save.disabled = false; // 저장 활성화
  936. btn_histsave.disabled = false; // 이력저장 활성화
  937. btn_rowdel.disabled = false; // 행삭제 활성화
  938. btn_goodinsert.disabled = false; // 행추가 활성화
  939. }else{
  940. btn_tmpsave.disabled = true; // 임시저장 비활성화
  941. btn_save.disabled = true; // 저장 비활성화
  942. btn_histsave.disabled = true; // 이력저장 비활성화
  943. btn_rowdel.disabled = true; // 행삭제 비활성화
  944. btn_goodinsert.disabled = true; // 행추가 비활성화
  945. }
  946. for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
  947. grd_actmaster.valueMatrix(i, grd_actmaster.colRef("tmpflag")) = savestatcd;
  948. }
  949. */
  950. // fActcdSearch(model.getValue(opt_actcd.attribute("ref")),
  951. // model.getValue(opt_hngnm.attribute("ref")));
  952. }
  953. function cf_TRPIC90007(sSvcId, nErrorCode, sErrorMsg) {
  954. arErrorCode.push(sSvcId, nErrorCode);
  955. }
  956. function fSelectChoiDel(pGrid)
  957. {
  958. var oBindDs = eval(pGrid.binddataset);
  959. if (oBindDs.rowcount == 0){
  960. sysf_messageBox("처리할 데이타가 존재하지 ","I011");
  961. return;
  962. }
  963. for( var i=0 ; i<pGrid.selectcount ; i++ ){
  964. for( var j=pGrid.selectendrow[i] ; j>=pGrid.selectstartrow[i] ; j-- ){
  965. if( oBindDs.getColumn(j, "rowstat") == "1" ){
  966. oBindDs.deleteRow(j);
  967. }else{
  968. oBindDs.enableevent = false;
  969. oBindDs.updatecontrol = false;
  970. oBindDs.setRowType(j, 8);
  971. oBindDs.updatecontrol = true;
  972. oBindDs.enableevent = true;
  973. }
  974. }
  975. }
  976. }
  977. //=======================================================================================
  978. // Event
  979. //---------------------------------------------------------------------------------------
  980. /****************************************************************************************
  981. * Components : Form
  982. * Components ID : SMPIC90000
  983. * Event : oninit
  984. * Argument : 01.obj : Object Event has occurred
  985. * : 02.e : Event Object
  986. * Description : 화면 처음 초기화시
  987. ****************************************************************************************/
  988. function SMPIC90000_oninit(obj:Form, e:InitEventInfo)
  989. {
  990. frmf_initForm(obj); //폼 초기화
  991. }
  992. /****************************************************************************************
  993. * Components : Form
  994. * Components ID : SMPIC90000
  995. * Event : onload
  996. * Argument : 01.obj : Object Event has occurred
  997. * : 02.e : Event Object
  998. * Description : 화면 로딩 완료시
  999. ****************************************************************************************/
  1000. function SMPIC90000_onload(obj:Form, e:LoadEventInfo)
  1001. {
  1002. grdf_setRowTypeIcon(grd_actmaster, 0);
  1003. //화면 Control을 초기화한다
  1004. fInitialize();
  1005. }
  1006. /****************************************************************************************
  1007. * Components : Button
  1008. * Components ID : btn_actend
  1009. * Event : onclick
  1010. * Argument : 01.obj : Object Event has occurred
  1011. * : 02.e : Event Object
  1012. * Description : 행위종료버튼 클릭시
  1013. ****************************************************************************************/
  1014. function btn_actend_onclick(obj:Button, e:ClickEventInfo)
  1015. {
  1016. if (ds_main_actmatrinfo_actmatrlist.rowcount == 0){
  1017. sysf_messageBox("처리할 데이타가 존재하지 ","I011");
  1018. return;
  1019. }
  1020. var toddvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "todd");
  1021. var instvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "instcd");
  1022. var actvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actcd");
  1023. var deptvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actdeptcd");
  1024. var dridvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actprcpdrid");
  1025. var drnmvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "actprcpdrnm");
  1026. var fromvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "fromdd");
  1027. var tmpflag = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "tmpflag");
  1028. // model.makeValue("/root/send/srchlist/instcd",instvalue);
  1029. // model.makeValue("/root/send/srchlist/actcd",actvalue);
  1030. // model.makeValue("/root/send/srchlist/todd",toddvalue);
  1031. // model.makeValue("/root/send/srchlist/actdeptcd",deptvalue);
  1032. // model.makeValue("/root/send/srchlist/actprcpdrid",dridvalue);
  1033. // model.makeValue("/root/send/srchlist/actprcpdrnm",drnmvalue);
  1034. // model.makeValue("/root/send/srchlist/fromdd",fromvalue);
  1035. if(tmpflag == "Y"){
  1036. sysf_messageBox("임시저장한 행위코드는 종료를 ","E001");
  1037. return;
  1038. }else{
  1039. var frddvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "fromdd");
  1040. if(frddvalue == utlf_getCurrentDate()){
  1041. sysf_messageBox("당일 등록한 행위코드는 종료를","E001");
  1042. }else{
  1043. var retMes = sysf_messageBox("처방집계시 행위재료코드와 참조할수 있는 물품마스터 코드가 종료됩니다.","Q009");
  1044. // var retMes = messageBox("행위코드와 관련 데이터 사용이 불가합니다.행위코드 종료를","Q009");
  1045. if ( retMes != 6) {
  1046. return;
  1047. }else{
  1048. ds_main_actmatrinfo_actmatrlist.enableevent = false;
  1049. ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
  1050. ds_main_actmatrinfo_actmatrlist.setRowType(ds_main_actmatrinfo_actmatrlist.rowposition, 4);
  1051. ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
  1052. ds_main_actmatrinfo_actmatrlist.enableevent = true;
  1053. }
  1054. ds_main_actmatrinfo_actmatrlist.enableevent = false;
  1055. ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
  1056. grdf_setStatusColumn(ds_main_actmatrinfo_actmatrlist, "status");
  1057. ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
  1058. ds_main_actmatrinfo_actmatrlist.enableevent = true;
  1059. ds_save_actmasterlist.assign(grdf_getGridUpdateData(switch1.case1.grd_actnmview, "all"));
  1060. Gfocus = ds_main_actmatrinfo_actmatrlist.rowposition;
  1061. var oParam = {};
  1062. oParam.id = "TXPIC90011";
  1063. oParam.service = "actmatrapp.ActMatrMngt";
  1064. oParam.method = "reqEndactmatrList";
  1065. oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
  1066. oParam.outds = "";
  1067. oParam.async = false;
  1068. oParam.callback = "cf_TXPIC90011";
  1069. tranf_submit(oParam);
  1070. if (arErrorCode.pop("TXPIC90011") > -1){
  1071. sysf_messageBox("행위 종료","I001");
  1072. }else{
  1073. sysf_messageBox("행위 종료","E009");
  1074. }
  1075. btn_actsearch.click();
  1076. ds_main_actmatrinfo_actmatrlist.rowposition = Gfocus;
  1077. switch1.case1.grd_actnmview.setFocus();
  1078. //grd_actnmview.dispatch("onclick");
  1079. fSrchGood(switch1.case1.grd_actnmview);
  1080. }
  1081. }
  1082. }
  1083. function cf_TXPIC90011(sSvcId, nErrorCode, sErrorMsg) {
  1084. arErrorCode.push(sSvcId, nErrorCode);
  1085. }
  1086. /****************************************************************************************
  1087. * Components : Button
  1088. * Components ID : btn_del
  1089. * Event : onclick
  1090. * Argument : 01.obj : Object Event has occurred
  1091. * : 02.e : Event Object
  1092. * Description : 삭제버튼 클릭시
  1093. ****************************************************************************************/
  1094. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  1095. {
  1096. var retMes = "", tmpflag = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "tmpflag");
  1097. if (ds_main_actmatrinfo_actmatrlist.rowcount == 0){
  1098. sysf_messageBox("처리할 데이타가 존재하지 ","I011");
  1099. return;
  1100. }
  1101. if (tmpflag == "N"){
  1102. retMes = sysf_messageBox("처방집계시 행위재료코드와 참조할수 있는 물품마스터 코드가 삭제됩니다.","Q001");
  1103. }else{
  1104. retMes = sysf_messageBox("임시 저장된 행위코드를 ","Q001");
  1105. }
  1106. if ( retMes != 6) {
  1107. return;
  1108. }else{
  1109. ds_main_actmatrinfo_actmatrlist.enableevent = false;
  1110. ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
  1111. ds_main_actmatrinfo_actmatrlist.setRowType(ds_main_actmatrinfo_actmatrlist.rowposition, 8);
  1112. ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
  1113. ds_main_actmatrinfo_actmatrlist.enableevent = true;
  1114. }
  1115. ds_main_actmatrinfo_actmatrlist.enableevent = false;
  1116. ds_main_actmatrinfo_actmatrlist.updatecontrol = false;
  1117. grdf_setStatusColumn(ds_main_actmatrinfo_actmatrlist, "status");
  1118. ds_main_actmatrinfo_actmatrlist.updatecontrol = true;
  1119. ds_main_actmatrinfo_actmatrlist.enableevent = true;
  1120. ds_save_actmasterlist.assign(grdf_getGridUpdateData(switch1.case1.grd_actnmview, "all"));
  1121. var oParam = {};
  1122. oParam.id = "TXPIC90011";
  1123. oParam.service = "actmatrapp.ActMatrMngt";
  1124. oParam.method = "reqEndactmatrList";
  1125. oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
  1126. oParam.outds = "";
  1127. oParam.async = false;
  1128. oParam.callback = "cf_TXPIC90011";
  1129. tranf_submit(oParam);
  1130. if (arErrorCode.pop("TXPIC90011") > -1){
  1131. sysf_messageBox("삭제","I001");
  1132. }else{
  1133. sysf_messageBox("삭제","E009");
  1134. }
  1135. // model.removeNodeset("/root/main/actmatrinfo/actmatrlist");
  1136. ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
  1137. ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
  1138. btn_actsearch.click();
  1139. //grd_actnmview.dispatch("ondblclick");
  1140. fSrchGood(switch1.case1.grd_actnmview);
  1141. }
  1142. /****************************************************************************************
  1143. * Components : Button
  1144. * Components ID : btn_tmpsave
  1145. * Event : onclick
  1146. * Argument : 01.obj : Object Event has occurred
  1147. * : 02.e : Event Object
  1148. * Description : 임시저장버튼 클릭시
  1149. ****************************************************************************************/
  1150. function btn_tmpsave_onclick(obj:Button, e:ClickEventInfo)
  1151. {
  1152. if(utlf_isNull(opt_actcd.value)){
  1153. sysf_messageBox("등록 후에 저장","I008");
  1154. return;
  1155. }
  1156. if (fSave("임시 저장", "T") == false) return;
  1157. var oParam = {};
  1158. oParam.id = "TXPIC90016";
  1159. oParam.service = "actmatrapp.ActMatrMngt";
  1160. oParam.method = "reqRefSaveFunt";
  1161. oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
  1162. oParam.outds = "";
  1163. oParam.async = false;
  1164. oParam.callback = "cf_TXPIC90016";
  1165. tranf_submit(oParam);
  1166. if (arErrorCode.pop("TXPIC90016") > -1){
  1167. sysf_messageBox("임시 저장이","I002");
  1168. fSrchCondInfo();
  1169. }else{
  1170. sysf_messageBox("임시 저장","E009");
  1171. return;
  1172. }
  1173. }
  1174. function cf_TXPIC90016(sSvcId, nErrorCode, sErrorMsg) {
  1175. arErrorCode.push(sSvcId, nErrorCode);
  1176. }
  1177. /****************************************************************************************
  1178. * Components : Button
  1179. * Components ID : btn_init
  1180. * Event : onclick
  1181. * Argument : 01.obj : Object Event has occurred
  1182. * : 02.e : Event Object
  1183. * Description : 초기화버튼 클릭시
  1184. ****************************************************************************************/
  1185. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  1186. {
  1187. fInitialize();
  1188. }
  1189. /****************************************************************************************
  1190. * Components : Edit
  1191. * Components ID : ipt_actcd
  1192. * Event : onkeyup
  1193. * Argument : 01.obj : Object Event has occurred
  1194. * : 02.e : Event Object
  1195. * Description : 에디터 키 입력시
  1196. ****************************************************************************************/
  1197. function ipt_actcd_onkeyup(obj:Edit, e:KeyEventInfo)
  1198. {
  1199. if(e.keycode == 13 ){
  1200. obj.updateToDataset();
  1201. btn_actsearch.click();
  1202. }
  1203. }
  1204. /****************************************************************************************
  1205. * Components : Dataset
  1206. * Components ID : ds_send_actmatrlist
  1207. * Event : oncolumnchanged
  1208. * Argument : 01.obj : Object Event has occurred
  1209. * : 02.e : Event Object
  1210. * Description : 데이터셋 값 변경시
  1211. ****************************************************************************************/
  1212. function ds_send_actmatrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1213. {
  1214. switch( e.columnid ){
  1215. case "actcd" :
  1216. ds_main_actmatrinfo_actmatrlist.clearData();
  1217. import1.ds_hidden_rscdgood_rscdgoodlist.clearData();
  1218. ds_main_actmatrhistinfo_actmatrhistlist.clearData();
  1219. break;
  1220. case "actdeptcd" :
  1221. if(!utlf_isNull(ipt_actdeptcd.value)){
  1222. fSmCodeValidationCheck("02", "", "actdeptcd,actdeptnm" );
  1223. btn_actsearch.click();
  1224. }else{
  1225. ipt_actdeptnm.value = "";
  1226. }
  1227. break;
  1228. case "actdeptnm" :
  1229. if(!utlf_isNull(ipt_actdeptnm.value)){
  1230. fSmValidationCheck("TRPIC90404", "reqcustomlist", "instcd,usndeptch,actdeptnm",
  1231. ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "instcd") +",," + ds_send_actmatrlist.getColumn(0, "actdeptnm")
  1232. ,"","actdeptcd,actdeptnm" ,ipt_actdeptcd,"SMPIC90400","instcd","ipt_instcd");
  1233. }
  1234. break;
  1235. case "goodcd" :
  1236. var goodcd = utlf_transNullToEmpty(ds_send_actmatrlist.getColumn(0, "goodcd")).getTrim();
  1237. ipt_searchgoodnm.value = "";
  1238. break;
  1239. default :
  1240. break;
  1241. }
  1242. }
  1243. /****************************************************************************************
  1244. * Components : Edit
  1245. * Components ID : ipt_actdeptcd
  1246. * Event : onkeyup
  1247. * Argument : 01.obj : Object Event has occurred
  1248. * : 02.e : Event Object
  1249. * Description : 에디터 키 입력시
  1250. ****************************************************************************************/
  1251. function ipt_actdeptcd_onkeyup(obj:Edit, e:KeyEventInfo)
  1252. {
  1253. if(e.keycode == 13 && utlf_isNull(ipt_actcd.value)) {
  1254. sysf_messageBox("행위코드와 시행부서는","I003");
  1255. return;
  1256. }
  1257. if(e.keycode == 13) {
  1258. obj.updateToDataset();
  1259. btn_actsearch.click();
  1260. }
  1261. }
  1262. /****************************************************************************************
  1263. * Components : Button
  1264. * Components ID : btn_actcd
  1265. * Event : onclick
  1266. * Argument : 01.obj : Object Event has occurred
  1267. * : 02.e : Event Object
  1268. * Description : 돋보기버튼 클릭시
  1269. ****************************************************************************************/
  1270. function btn_actcd_onclick(obj:Button, e:ClickEventInfo)
  1271. {
  1272. frmf_modal("SMPIC90600","SMPIC90600",null,"","","","","","","","","","M"); //yjh1
  1273. fSmSet();
  1274. }
  1275. /****************************************************************************************
  1276. * Components : Button
  1277. * Components ID : btn_actdeptcd
  1278. * Event : onclick
  1279. * Argument : 01.obj : Object Event has occurred
  1280. * : 02.e : Event Object
  1281. * Description : 돋보기버튼 클릭시
  1282. ****************************************************************************************/
  1283. function btn_actdeptcd_onclick(obj:Button, e:ClickEventInfo)
  1284. {
  1285. frmf_modal("SMPIC90400","SMPIC90400",null,"","","","","","","","","","M");
  1286. fset();
  1287. }
  1288. /****************************************************************************************
  1289. * Components : Button
  1290. * Components ID : btn_actsearch
  1291. * Event : onclick
  1292. * Argument : 01.obj : Object Event has occurred
  1293. * : 02.e : Event Object
  1294. * Description : 조회버튼 클릭시
  1295. ****************************************************************************************/
  1296. function btn_actsearch_onclick(obj:Button, e:ClickEventInfo)
  1297. {
  1298. var oParam = {};
  1299. oParam.id = "TRPIC90008";
  1300. oParam.service = "actmatrapp.ActMatrMngt";
  1301. oParam.method = "reqGetShrtAxActMatr";
  1302. oParam.inds = "req=ds_send_actmatrlist";
  1303. oParam.outds = "ds_main_actmatrinfo_actmatrlist=actmatrlist";
  1304. oParam.async = false;
  1305. oParam.callback = "cf_TRPIC90008";
  1306. tranf_submit(oParam);
  1307. if( utlf_isNull(ds_main_actmatrinfo_actmatrlist.getColumnInfo("deptflag")) ){
  1308. ds_main_actmatrinfo_actmatrlist.addColumn("deptflag", "string");
  1309. }
  1310. ds_main_actmatrinfo_actmatrlist.addColumn("colBack0", "string");
  1311. if(arErrorCode.pop("TRPIC90008") > -1){
  1312. for(var i=0;i<ds_main_actmatrinfo_actmatrlist.rowcount;i++){
  1313. var todd = ds_main_actmatrinfo_actmatrlist.getColumn(i, "todd");
  1314. if(todd != '99991231' ){
  1315. ds_main_actmatrinfo_actmatrlist.setColumn(i, "colBack0", "#FFFF66");
  1316. }
  1317. }
  1318. fViewToggle(0);
  1319. //grd_actnmview.row = 1;
  1320. //fSrchGood(grd_actnmview);
  1321. //model.refresh();
  1322. }
  1323. }
  1324. function cf_TRPIC90008(sSvcId, nErrorCode, sErrorMsg) {
  1325. arErrorCode.push(sSvcId, nErrorCode);
  1326. }
  1327. /****************************************************************************************
  1328. * Components : Tab
  1329. * Components ID : switch1
  1330. * Event : onchanged
  1331. * Argument : 01.obj : Object Event has occurred
  1332. * : 02.e : Event Object
  1333. * Description : 탭 변경시
  1334. ****************************************************************************************/
  1335. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  1336. {
  1337. switch( e.postindex ){
  1338. case 0 :
  1339. fViewToggle(0);
  1340. break;
  1341. case 1 :
  1342. ds_send_actmatrhistlist.copyRow(0, ds_main_actmatrinfo_actmatrlist, ds_main_actmatrinfo_actmatrlist.rowposition);
  1343. var oParam = {};
  1344. oParam.id = "TRPIC90009";
  1345. oParam.service = "actmatrapp.ActMatrMngt";
  1346. oParam.method = "reqGetHistActMatr";
  1347. oParam.inds = "req=ds_send_actmatrhistlist";
  1348. oParam.outds = "ds_main_actmatrhistinfo_actmatrhistlist=actmatrhistlist";
  1349. oParam.async = false;
  1350. //oParam.callback = "cf_TRPIC90009";
  1351. tranf_submit(oParam);
  1352. if (ds_main_actmatrhistinfo_actmatrhistlist.rowcount == 0){
  1353. import1.btn_goodinsert.enable = false;
  1354. //btn_histsave.disabled = true;
  1355. btn_rowdel.enable = false;
  1356. btn_save.enable = false;
  1357. btn_tmpsave.enable = false;
  1358. btn_del.enable = false;
  1359. btn_actend.enable = false;
  1360. }
  1361. btn_actend.enable = false;
  1362. fViewToggle(1);
  1363. break;
  1364. default :
  1365. break;
  1366. }
  1367. }
  1368. /****************************************************************************************
  1369. * Components : Button
  1370. * Components ID : btn_save
  1371. * Event : onclick
  1372. * Argument : 01.obj : Object Event has occurred
  1373. * : 02.e : Event Object
  1374. * Description : 저장버튼 클릭시
  1375. ****************************************************************************************/
  1376. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  1377. {
  1378. var savestatcd = "";
  1379. savestatcd = ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "savestatcd");
  1380. if(utlf_isNull(opt_actcd.value)){
  1381. sysf_messageBox("등록 후에 저장","I008");
  1382. return;
  1383. }
  1384. if (savestatcd == "T"){ // 임시저장 -> 저장
  1385. if(ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "tmpflag") == "Y"){
  1386. var retMes = sysf_messageBox("처방집계시 참조됩니다. 적용 하시겠습니까?", "Q999");
  1387. if ( retMes != 6) return;
  1388. }
  1389. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = false;
  1390. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = false;
  1391. for(i=0;i<ds_main_actmatrcdinfo_actmatrcddetllist.rowcount;i++){
  1392. if (ds_main_actmatrcdinfo_actmatrcddetllist.getRowType(i) == 1){
  1393. ds_main_actmatrcdinfo_actmatrcddetllist.setRowType(i, 4);
  1394. }
  1395. }
  1396. ds_main_actmatrcdinfo_actmatrcddetllist.updatecontrol = true;
  1397. ds_main_actmatrcdinfo_actmatrcddetllist.enableevent = true;
  1398. }
  1399. if (fSave("저장", "S") == false) return;
  1400. var oParam = {};
  1401. oParam.id = "TXPIC90016";
  1402. oParam.service = "actmatrapp.ActMatrMngt";
  1403. oParam.method = "reqRefSaveFunt";
  1404. oParam.inds = "actmasterlist=ds_save_actmasterlist:A";
  1405. oParam.outds = "";
  1406. oParam.async = false;
  1407. oParam.callback = "cf_TXPIC90016";
  1408. tranf_submit(oParam);
  1409. if (arErrorCode.pop("TXPIC90016") > -1){
  1410. sysf_messageBox("저장이","I002");
  1411. fSrchCondInfo();
  1412. }else{
  1413. sysf_messageBox("저장","E009");
  1414. return;
  1415. }
  1416. }
  1417. /****************************************************************************************
  1418. * Components : Button
  1419. * Components ID : btn_rgst
  1420. * Event : onclick
  1421. * Argument : 01.obj : Object Event has occurred
  1422. * : 02.e : Event Object
  1423. * Description : 등록버튼 클릭시
  1424. ****************************************************************************************/
  1425. function btn_rgst_onclick(obj:Button, e:ClickEventInfo)
  1426. {
  1427. var retMes = sysf_messageBox("새로", "Q014");
  1428. if ( retMes != 6) return;
  1429. frmf_modal("SMPIC90100","SMPIC90100",null,"","","","","","","","","","M"); //yjh1
  1430. if(utlf_isNull(frmf_getParameter("calcscorcd"))){
  1431. return;
  1432. }else{
  1433. btn_tmpsave.enable = true; // 임시저장 활성화
  1434. btn_save.enable = true; // 저장 활성화
  1435. //btn_histsave.disabled = true; // 이력저장 비활성화
  1436. btn_rowdel.enable = true; // 행삭제 활성화
  1437. import1.btn_goodinsert.enable = true; // 행추가 활성화
  1438. import1.fActcdSearch(frmf_getParameter("calcscorcd"),
  1439. frmf_getParameter("hngnm"));
  1440. }
  1441. ds_main_actmatrcdinfo_actmatrcddetllist.clearData();
  1442. ds_main_actmatrcdinfo_actmatrcdcomnlist.clearData();
  1443. ds_main_actmatrcdinfo_historylist.clearData();
  1444. //fDisableCheck(false);
  1445. //btn_histsave.disabled = "true"
  1446. fmatch();
  1447. ds_main_actmatrcdinfo_actmatrcdcomnlist.addRow();
  1448. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actprcpdrid", frmf_getParameter("actprcpdrid"));
  1449. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actcd", frmf_getParameter("calcscorcd" ));
  1450. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actprcpdrnm", frmf_getParameter("actprcpdrnm" ));
  1451. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actdeptnm", frmf_getParameter("actdeptnm" ));
  1452. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "todd", "99991231");
  1453. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "fromdd", utlf_getCurrentDate());
  1454. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  1455. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "actdeptcd", frmf_getParameter("actdeptcd" ));
  1456. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "savestatnm", "");
  1457. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "hngnm", frmf_getParameter("hngnm" ));
  1458. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "engnm", frmf_getParameter("engnm" ));
  1459. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflag", frmf_getParameter("deptflag" ));
  1460. if(ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag") == '1'){
  1461. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "구매");
  1462. } else if (ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag") == '2'){
  1463. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "약국");
  1464. } else {
  1465. alert(ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "deptflag"));
  1466. ds_main_actmatrcdinfo_actmatrcdcomnlist.setColumn(0, "deptflagnm", "-");
  1467. }
  1468. }
  1469. /****************************************************************************************
  1470. * Components : Button
  1471. * Components ID : btn_histsave
  1472. * Event : onclick
  1473. * Argument : 01.obj : Object Event has occurred
  1474. * : 02.e : Event Object
  1475. * Description : 이력저장버튼 클릭시
  1476. ****************************************************************************************/
  1477. function btn_histsave_onclick(obj:Button, e:ClickEventInfo)
  1478. {
  1479. var frddvalue = ds_main_actmatrinfo_actmatrlist.getColumn(ds_main_actmatrinfo_actmatrlist.rowposition, "fromdd");
  1480. var chngyn = "N";
  1481. if(frddvalue == utlf_getCurrentDate()){
  1482. sysf_messageBox("당일 등록한 행위코드는 이력변경을","E001");
  1483. return;
  1484. }
  1485. // if( grd_actmaster.valueMatrix(grd_actmaster.row,grd_actmaster.colRef("tmpflag")) == "Y"){
  1486. // messageBox("임시저장한 행위코드는 이력변경을","E001");
  1487. // return;
  1488. // }
  1489. // for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
  1490. // if (grd_actmaster.rowStatus(i) != 0){
  1491. // chngyn = "Y";
  1492. // break;
  1493. // }
  1494. // }
  1495. //
  1496. // if( chngyn == "N"){
  1497. // messageBox("한 건이상의 변경 데이타 존재시 이력 저장이","I006");
  1498. // return;
  1499. // }
  1500. //grd_actmaster.clearStatus();
  1501. var retMes = sysf_messageBox("행위코드 이력을","Q002");
  1502. if ( retMes != 6) {
  1503. return;
  1504. }
  1505. // for(i=grd_actmaster.fixedRows;i<grd_actmaster.rows;i++){
  1506. // if (grd_actmaster.rowStatus(i) == 0){
  1507. // grd_actmaster.rowStatus(i) = 2;
  1508. // }
  1509. // }
  1510. if (fSave("이력 저장", "H") == false) return;
  1511. // 적용일자 설정
  1512. ds_save.setColumn(0, "appdd", ds_main_actmatrcdinfo_actmatrcdcomnlist.getColumn(0, "fromdd"));
  1513. var oParam = {};
  1514. oParam.id = "TXPIC90004";
  1515. oParam.service = "actmatrapp.ActMatrMngt";
  1516. oParam.method = "reqExeActMatrHistList";
  1517. oParam.inds = "appdd=ds_save actmasterlist=ds_save_actmasterlist:A";
  1518. oParam.outds = "";
  1519. oParam.async = false;
  1520. oParam.callback = "cf_TXPIC90004";
  1521. tranf_submit(oParam);
  1522. if (arErrorCode.pop("TXPIC90004") > -1){
  1523. sysf_messageBox("이력 저장이","I002");
  1524. fSrchCondInfo();
  1525. }else{
  1526. sysf_messageBox("이력 저장","E009");
  1527. return;
  1528. }
  1529. }
  1530. function cf_TXPIC90004(sSvcId, nErrorCode, sErrorMsg) {
  1531. arErrorCode.push(sSvcId, nErrorCode);
  1532. }
  1533. /****************************************************************************************
  1534. * Components : Button
  1535. * Components ID : btn_rowdel
  1536. * Event : onclick
  1537. * Argument : 01.obj : Object Event has occurred
  1538. * : 02.e : Event Object
  1539. * Description : 행삭제버튼 클릭시
  1540. ****************************************************************************************/
  1541. function btn_rowdel_onclick(obj:Button, e:ClickEventInfo)
  1542. {
  1543. fSelectChoiDel(grd_actmaster);
  1544. }
  1545. /****************************************************************************************
  1546. * Components : ImageViewer
  1547. * Components ID : img2
  1548. * Event : onclick
  1549. * Argument : 01.obj : Object Event has occurred
  1550. * : 02.e : Event Object
  1551. * Description : 위로버튼 클릭시
  1552. ****************************************************************************************/
  1553. function img2_onclick(obj:ImageViewer, e:ClickEventInfo)
  1554. {
  1555. switch1.position.height = 140;
  1556. //grd_sngllist.attribute("height") = "100";
  1557. switch1.case1.grd_actnmview.position.height = 113;
  1558. switch1.case2.grd_acthisview.position.height = 113;
  1559. }
  1560. /****************************************************************************************
  1561. * Components : ImageViewer
  1562. * Components ID : img1
  1563. * Event : onclick
  1564. * Argument : 01.obj : Object Event has occurred
  1565. * : 02.e : Event Object
  1566. * Description : 아래로버튼 클릭시
  1567. ****************************************************************************************/
  1568. function img1_onclick(obj:ImageViewer, e:ClickEventInfo)
  1569. {
  1570. switch1.position.height = 510;
  1571. //grd_sngllist.attribute("height") = "505";
  1572. switch1.case1.grd_actnmview.position.height = 483;
  1573. switch1.case2.grd_acthisview.position.height = 483;
  1574. switch1.case1.scrollbars = "none";
  1575. switch1.case2.scrollbars = "none";
  1576. }
  1577. /****************************************************************************************
  1578. * Components : Button
  1579. * Components ID : btn_excel
  1580. * Event : onclick
  1581. * Argument : 01.obj : Object Event has occurred
  1582. * : 02.e : Event Object
  1583. * Description : Excel저장버튼 클릭시
  1584. ****************************************************************************************/
  1585. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  1586. {
  1587. if( switch1.case1.grd_actnmview.rowcount > 0 ){
  1588. grdf_exportExcel(switch1.case1.grd_actnmview, "행위재료약품관리", "행위재료약품관리", false, "", "user", false);
  1589. } else {
  1590. sysf_messageBox("조회된 데이터가 ", "I004");
  1591. return;
  1592. }
  1593. }
  1594. /****************************************************************************************
  1595. * Components : Edit
  1596. * Components ID : ipt_actnm
  1597. * Event : onkeydown
  1598. * Argument : 01.obj : Object Event has occurred
  1599. * : 02.e : Event Object
  1600. * Description : 에디터 키 입력시
  1601. ****************************************************************************************/
  1602. function ipt_actnm_onkeydown(obj:Edit, e:KeyEventInfo)
  1603. {
  1604. if( e.keycode == 13 ){
  1605. obj.updateToDataset();
  1606. btn_actsearch.click();
  1607. }
  1608. }
  1609. /****************************************************************************************
  1610. * Components : Grid
  1611. * Components ID : grd_acthisview
  1612. * Event : oncellclick
  1613. * Argument : 01.obj : Object Event has occurred
  1614. * : 02.e : Event Object
  1615. * Description : 그리드 셀 클릭시
  1616. ****************************************************************************************/
  1617. function switch1_case2_grd_acthisview_oncellclick(obj:Grid, e:GridClickEventInfo)
  1618. {
  1619. fSrchGood(switch1.case2.grd_acthisview);
  1620. }
  1621. /****************************************************************************************
  1622. * Components : Grid
  1623. * Components ID : grd_actnmview
  1624. * Event : oncellclick
  1625. * Argument : 01.obj : Object Event has occurred
  1626. * : 02.e : Event Object
  1627. * Description : 그리드 셀 클릭시
  1628. ****************************************************************************************/
  1629. function switch1_case1_grd_actnmview_oncellclick(obj:Grid, e:GridClickEventInfo)
  1630. {
  1631. fSrchGood(switch1.case1.grd_actnmview);
  1632. }
  1633. /****************************************************************************************
  1634. * Components : Button
  1635. * Components ID : button1
  1636. * Event : onclick
  1637. * Argument : 01.obj : Object Event has occurred
  1638. * : 02.e : Event Object
  1639. * Description : 돋보기버튼 클릭시
  1640. ****************************************************************************************/
  1641. function button1_onclick(obj:Button, e:ClickEventInfo)
  1642. {
  1643. fSmOpenPopUpListByWndName("ds_send_actmatrlist", ipt_searchgoodcd,"","goodcd,allsizespecid,goodnm,goodflag","SPRSD00210");
  1644. }
  1645. /****************************************************************************************
  1646. * Components : Edit
  1647. * Components ID : ipt_searchgoodcd
  1648. * Event : onkeyup
  1649. * Argument : 01.obj : Object Event has occurred
  1650. * : 02.e : Event Object
  1651. * Description : 에디터 키 입력시
  1652. ****************************************************************************************/
  1653. function ipt_searchgoodcd_onkeyup(obj:Edit, e:KeyEventInfo)
  1654. {
  1655. if( e.keycode == 13 ){
  1656. obj.updateToDataset();
  1657. btn_actsearch.click();
  1658. }
  1659. }
  1660. /****************************************************************************************
  1661. * Components : Grid
  1662. * Components ID : grd_historyview
  1663. * Event : oncellclick
  1664. * Argument : 01.obj : Object Event has occurred
  1665. * : 02.e : Event Object
  1666. * Description : 그리드 셀 클릭시
  1667. ****************************************************************************************/
  1668. function grd_historyview_oncellclick(obj:Grid, e:GridClickEventInfo)
  1669. {
  1670. var nRow = ds_main_actmatrcdinfo_historylist.rowposition;
  1671. fSrchGood(grd_historyview);
  1672. ds_main_actmatrcdinfo_historylist.rowposition = nRow;
  1673. }
  1674. ]]></Script>
  1675. </Form>
  1676. </FDL>