SSSTC00500_통합조회조건.xrw 125 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SSSTC00100_통계조회.xrw
  4. * 수정이력
  5. * - 2008.06.24 / 최초작성 / 박정화
  6. * /* 이 화면은 통합통계조회 공통화면으로 각 장표별 layout 을 DB에 적용하여 업무구분별로 검색기준 및 장표 Grid를 Dynamic 하게 조회가 가능하도록 설계하였다.
  7. 장표에 대한 layout 은 STS.SDCMRPTM 에서 관리하고, 화면은 하나로 구현하며, OPEN시 각 업무별 화면 parameter 를 활용하여 UI를 구성한다. */
  8. -->
  9. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  10. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  11. <xhtml:head>
  12. <xhtml:title>통계집계</xhtml:title>
  13. <model id="model1">
  14. <instance id="instance1">
  15. <root xmlns="">
  16. <main/>
  17. <send>
  18. <in_cdflag/>
  19. <in_lrgcd/>
  20. <in_mdlcd/>
  21. <in_smlcd/>
  22. <in_rptcd/>
  23. <in_cond1/>
  24. <in_cond2/>
  25. <in_cond3/>
  26. <in_cond4/>
  27. <in_cond5/>
  28. <in_cond6/>
  29. <in_cond7/>
  30. <in_cond8/>
  31. <in_cond9/>
  32. <in_cond10/>
  33. <in_fromdd/>
  34. <in_todd/>
  35. <in_fromdd2/>
  36. <in_todd2/>
  37. <in_deptcd/>
  38. <in_doctcd/>
  39. <cond>
  40. <condnum/>
  41. </cond>
  42. <listcombo/>
  43. <in_pid/>
  44. <list/>
  45. <usernm/>
  46. <instnm/>
  47. <date/>
  48. <combo1/>
  49. <combo2/>
  50. <combo3/>
  51. <combo4/>
  52. <combo5/>
  53. <combo6/>
  54. <combo7/>
  55. <combo8/>
  56. <combo9/>
  57. <combo10/>
  58. <in_submit/>
  59. <in_sum1/>
  60. <in_sum2/>
  61. <in_sum3/>
  62. <in_sum>01</in_sum>
  63. <in_filenm/>
  64. <data>
  65. <pid/>
  66. <srchcond/>
  67. </data>
  68. </send>
  69. <hide>
  70. <etc>
  71. <today/>
  72. </etc>
  73. <condsend>
  74. <dept/>
  75. </condsend>
  76. </hide>
  77. <init>
  78. <rptm>
  79. <lrg>
  80. <lrgcd>
  81. <lrgcd/>
  82. <lrgnm/>
  83. </lrgcd>
  84. </lrg>
  85. <mdl>
  86. <mdlcd>
  87. <mdlcd/>
  88. <mdlnm/>
  89. </mdlcd>
  90. </mdl>
  91. <sml>
  92. <smlcd>
  93. <smlcd/>
  94. <smlnm/>
  95. </smlcd>
  96. </sml>
  97. <rpt>
  98. <rptcd>
  99. <rptcd/>
  100. <rptnm/>
  101. </rptcd>
  102. </rpt>
  103. </rptm>
  104. <rptm_cond>
  105. <func>
  106. <func>
  107. <funccd/>
  108. </func>
  109. </func>
  110. <cond1>
  111. </cond1>
  112. <cond2>
  113. </cond2>
  114. <cond3>
  115. </cond3>
  116. <cond4>
  117. </cond4>
  118. <cond5>
  119. </cond5>
  120. <cond6>
  121. </cond6>
  122. <cond7>
  123. </cond7>
  124. <cond8>
  125. </cond8>
  126. <cond9>
  127. </cond9>
  128. <cond10>
  129. </cond10>
  130. <grdform>
  131. <grdform>
  132. <grdtitle/>
  133. <grdsize/>
  134. <colcount/>
  135. </grdform>
  136. </grdform>
  137. <cond>
  138. <condcd>
  139. <cd/>
  140. <nm/>
  141. </condcd>
  142. </cond>
  143. </rptm_cond>
  144. <rptInfo>
  145. <rptInfoList/>
  146. </rptInfo>
  147. </init>
  148. <basicSample>
  149. </basicSample>
  150. <hidden>
  151. <sppmc02500>
  152. <cond>
  153. <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
  154. <srchcond/>
  155. <pid/>
  156. <hngnm/>
  157. <rrgstno1/>
  158. <rrgstno2/>
  159. </cond>
  160. </sppmc02500>
  161. </hidden>
  162. </root>
  163. </instance>
  164. <script type="javascript" ev:event="xforms-ready">
  165. <![CDATA[
  166. // 화면 초기화
  167. fInitialize();
  168. cb_rpt.select(0);
  169. model.setValue("root/send/usernm", getUserName());
  170. model.setValue("root/send/instnm", getUserInfo("posinstnm"));
  171. model.setValue("root/send/date", getCurrentDateTime());
  172. // 2008.08.22 By 강모씨
  173. // # 콤보 리스트를 쿼리에서 가져 오기 위한 설정
  174. // 최초 로딩시에는 공통으로 뽑을 수도 있으나 그 수가 제한적이고 도리어 햇갈릴 수 있으므로 따로 하기로 결심
  175. // @추가해야 할 코드들
  176. // 1. DB에서 sts.sdcmrptm 테이블의 코드번호를 지정해 준다.
  177. // 1.1 99 - temp, 98 - 지역, 97 - 청구차수, 96 - 심사자, 95 - 진료과
  178. // 1.2 꼭 코드를 맞춰 줄 필요는 없다. StsComMgtImpl에서 mdlcd를 비교할 때 사용할 뿐이다.
  179. // 하지만 조건 코드가 없으면 콤보박스가 hidden 이 되기 때문에 코드값은 꼭 있어야 한다.
  180. // 2. 아래에서 장표번호를 매치 시켜서 조건에 맞는 submission을 호출한다.
  181. // 조건 순서가 정확히 일치 하지 않는다면 submission을 새로 생성해야 한다.
  182. // 3. StsComMgtImpl 의 getStsComboList 메서드에서 조건에 따라 쿼리문을 연결한다. 꼭 들어 맞는 조건이 없다면 만든다.
  183. // 적절한 조건이 없어서 submission을 생성했다면 조건에 맞게 if 절을 추가해 주도록 한다.
  184. // 2009.01.07 syjung 보험에서 사용하는 submit 종류
  185. // A : 청구차수 B : 시도 C : 시군구 D : 심사자 E : 청구과 F : 처방과
  186. // !!!!!!요주의!!!!! -> 테스트 용도로 하드 코딩한 상태에서 절대 커밋 하지 말것 !!!!!!!!!!!!!!!!
  187. // var a = '030103RR00736H';
  188. // var gScrParmR = a.substr(6,7);
  189. var gScrParmR = getScreenMenuParameter().substr(6,7);
  190. // gScrParmR = "RR01142";
  191. // 환자수내역
  192. if (gScrParmR == "RR00823") {
  193. ipt_procdd.visible = true;
  194. ipt_procdd.attribute("format") = "yyyy";
  195. input1.visible = false;
  196. }
  197. // 예산대비의료수익현황
  198. if (gScrParmR == "RR00827") {
  199. ipt_procdd.visible = true;
  200. ipt_procdd.attribute("format") = "yyyy";
  201. input1.visible = false;
  202. }
  203. // 전년대비의료수익현황
  204. if (gScrParmR == "RR00829") {
  205. ipt_procdd.visible = true;
  206. // ipt_procdd.attribute("format") = "yyyy";
  207. // input1.visible = false;
  208. // 조회부분의 기간이 하나로 표현되는 부분을 from~to로 표현하기 위해 로직 수정-강태훈(09.10.12)
  209. input1.visible = true;
  210. var temp = input1.value;
  211. var temp1 = temp.toDate("YYYYMMDD");
  212. temp1.getAddDate(-1,"Y");
  213. ipt_procdd.value = temp1.getDateFormat();
  214. ipt_procdd.attribute("format") = "yyyy";
  215. ipt_procdd.refresh();
  216. input1.attribute("format") = "yyyy";
  217. input1.refresh();
  218. }
  219. // 외래환자현황
  220. if (gScrParmR == "RR00843") {
  221. input1.visible = false;
  222. }
  223. //중간청구리스트
  224. if (gScrParmR == "RR01099")
  225. {
  226. ipt_procdd.visible = true;
  227. ipt_procdd.attribute("format") = "yyyy-mm";
  228. input1.visible = false;
  229. }
  230. if (gScrParmR == "RR00797")
  231. {
  232. cb_cond1_1.select(1);
  233. }
  234. if (gScrParmR == "RR00701")
  235. {
  236. input1.visible = false;
  237. btn_cmmt.visible = true;
  238. cb_cond3_1.select(1);
  239. cb_cond4_1.select(0);
  240. setgridcaption();
  241. }
  242. if (gScrParmR == "RR00702")
  243. {
  244. input1.visible = false;
  245. cb_cond2_1.select(1);
  246. setgridcaption();
  247. }
  248. if (gScrParmR == "RR01149")
  249. { // 시도 리스트
  250. model.setValue("/root/send/in_submit","B");
  251. submit("TRSTC00800");
  252. cb_cond5_2.select(0);
  253. //청구차수
  254. model.setValue("/root/send/in_submit","A");
  255. submit("TRSTC00901");
  256. cb_cond7_2.select(0);
  257. model.setValue("/root/send/in_sum","01");
  258. model.setValue("/root/send/in_sum1","00");
  259. model.setValue("/root/send/in_sum2","00");
  260. model.setValue("/root/send/in_sum3","00");
  261. grp_sum.visible = true;
  262. }
  263. if (gScrParmR == "RR00756" )
  264. { // 청구 차수
  265. model.setValue("/root/send/in_submit","A");
  266. submit("TRSTC00900");
  267. cb_cond6_3.select(0);
  268. }
  269. if (gScrParmR == "RR00730" )
  270. { // 청구 차수
  271. model.setValue("/root/send/in_submit","A");
  272. submit("TRSTC00903");
  273. cb_cond8_8.select(0);
  274. }
  275. if (gScrParmR == "RR00736" )
  276. { // 청구 차수
  277. model.setValue("/root/send/in_submit","A");
  278. submit("TRSTC00903");
  279. cb_cond8_8.select(0);
  280. }
  281. if (gScrParmR == "RR00742" )
  282. { // 청구 차수
  283. model.setValue("/root/send/in_submit","A");
  284. submit("TRSTC00903");
  285. cb_cond8_8.select(0);
  286. }
  287. if (gScrParmR == "RR01140" || gScrParmR == "RR01141" )
  288. { //청구 차수
  289. model.setValue("/root/send/in_submit","A");
  290. submit("TRSTC00900");
  291. cb_cond6_3.select(0);
  292. }
  293. if (gScrParmR == "RR01147" )
  294. { //청구차수
  295. model.setValue("/root/send/in_submit","A");
  296. submit("TRSTC00901");
  297. cb_cond7_2.select(0);
  298. }
  299. if (gScrParmR == "RR01148" )
  300. { //청구차수
  301. model.setValue("/root/send/in_submit","A");
  302. submit("TRSTC00901");
  303. cb_cond7_2.select(0);
  304. }
  305. if (gScrParmR == "RR01143")
  306. { // 청구차수
  307. model.setValue("/root/send/in_submit","A");
  308. submit("TRSTC00901");
  309. cb_cond7_7.select(0);
  310. // 시도
  311. model.setValue("/root/send/in_submit","B");
  312. submit("TRSTC00800");
  313. cb_cond5_7.select(0);
  314. }
  315. if (gScrParmR == "RR01139")
  316. { //심사자
  317. model.setValue("/root/send/in_submit","D");
  318. submit("TRSTC01000");
  319. cb_cond4_4.select(0);
  320. //진료과
  321. model.setValue("/root/send/in_submit","F");
  322. submit("TRSTC00800");
  323. cb_cond5_4.select(0);
  324. model.setValue("/root/send/in_cond6","true");
  325. model.setValue("/root/send/in_cond2","01");
  326. model.setValue("/root/send/in_cond7","01");
  327. }
  328. if (gScrParmR == "RR01142")
  329. { // 상한금 지원금 대상자(진료과)
  330. model.setValue("/root/send/in_submit","F");
  331. submit("TRSTC00800");
  332. cb_cond5_5.select(0);
  333. // 청구차수
  334. model.setValue("/root/send/in_submit","A");
  335. submit("TRSTC00902");
  336. cb_cond9_5.select(0);
  337. }
  338. if (gScrParmR == "RR01146") // 재원/퇴원 심사현황
  339. {
  340. // tmp 노드로 복사해 와서 해당 콤보 조건에 집어 넣는다
  341. model.setValue("/root/send/listcombo",model.getValue("/root/init/rptInfo/rptInfoList/cond3"));
  342. model.setValue("/root/send/in_submit","F");
  343. submit("TRSTC01100");
  344. model.copyNode("/root/init/rptm_cond/cond3","/root/tmp");
  345. model.setValue("/root/send/listcombo",model.getValue("/root/init/rptInfo/rptInfoList/cond4"));
  346. model.setValue("/root/send/in_submit","D");
  347. submit("TRSTC01100");
  348. model.copyNode("/root/init/rptm_cond/cond4","/root/tmp");
  349. model.removeNodeset("/root/tmp");
  350. cb_cond3_6.select(0);
  351. cb_cond4_6.select(0);
  352. }
  353. if (gScrParmR == "RR00732")
  354. { // 청구 차수
  355. model.setValue("/root/send/in_submit","A");
  356. submit("TRSTC00903");
  357. cb_cond8_8.select(0);
  358. caption8.visible = false;
  359. input8.visible = false;
  360. }
  361. if (gScrParmR == "RR01141")
  362. {
  363. caption1.visible = false;
  364. input11.visible = false;
  365. }
  366. if (gScrParmR == "RR01140")
  367. {
  368. caption10.visible = false;
  369. input2.visible = false;
  370. }
  371. if (gScrParmR == "RR00708" )
  372. {
  373. input1.visible = false;
  374. cap_time.visible = true;
  375. ipt_time.visible = true;
  376. caption7.visible = true;
  377. // 선택진료조건
  378. model.setValue("/root/send/in_cond4","02");
  379. model.setValue("/root/send/in_cond5","10");
  380. }
  381. model.refresh();
  382. ]]>
  383. </script>
  384. <submission id="TRSTC00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm"/>
  385. <submission id="TRSTC00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond"/>
  386. <submission id="TRSTC00300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_grid"/>
  387. <submission id="TRSTC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/rptInfo"/>
  388. <submission id="TRSTC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond" resultref="/root/init/rptm_cond/cond"/>
  389. <submission id="TRSTC00700" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond6"/>
  390. <submission id="TRSTC00800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond5"/>
  391. <submission id="TRSTC00900" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond6"/>
  392. <submission id="TRSTC01000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond4"/>
  393. <submission id="TRSTC01100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp"/>
  394. <submission id="TRSTC01200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond2"/>
  395. <submission id="TRSTC00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond7"/>
  396. <submission id="TRSTC00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond9"/>
  397. <submission id="TRSTC00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/rptm_cond/cond8"/>
  398. <submission id="TXSTC00200" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  399. </model>
  400. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  401. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  402. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  403. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  404. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  405. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  406. <script type="javascript" src="../../../sts/stscomweb/js/SSSTC00100.js"/>
  407. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  408. <script type="javascript">
  409. <![CDATA[
  410. function getweekday(enddd){
  411. var printday;
  412. if (enddd.toDate().getDay() == 0) {
  413. printday = "일";
  414. } else if (enddd.toDate().getDay() == 1) {
  415. printday = "월";
  416. } else if (enddd.toDate().getDay() == 2) {
  417. printday = "화";
  418. } else if (enddd.toDate().getDay() == 3) {
  419. printday = "수";
  420. } else if (enddd.toDate().getDay() == 4) {
  421. printday = "목";
  422. } else if (enddd.toDate().getDay() == 5) {
  423. printday = "금";
  424. } else if (enddd.toDate().getDay() == 6) {
  425. printday = "토";
  426. }
  427. return printday;
  428. }
  429. function setgridcaption() {
  430. if (model.getValue("/root/send/in_rptcd") == "RR00701") {
  431. // 일보
  432. if ( model.getValue("/root/send/in_cond1") == "01" ) {
  433. dgrd_rpt.colHidden(6) = true;
  434. dgrd_rpt.colHidden(7) = true;
  435. dgrd_rpt.colHidden(8) = true;
  436. dgrd_rpt.colHidden(9) = true;
  437. dgrd_rpt.colHidden(10) = true;
  438. var enddd = model.getValue("/root/send/in_fromdd");
  439. dgrd_rpt.caption = "구분^구분^명칭^"+enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"+"^월누계^일평균^|구분^구분^명칭^"+getweekday(enddd)+"^월누계^일평균^";
  440. dgrd_rpt.refresh();
  441. } // 월보
  442. else if ( model.getValue("/root/send/in_cond1") == "02" ) {
  443. dgrd_rpt.colHidden(6) = false;
  444. dgrd_rpt.colHidden(7) = false;
  445. dgrd_rpt.colHidden(8) = false;
  446. dgrd_rpt.colHidden(9) = false;
  447. dgrd_rpt.colHidden(10) = false;
  448. var enddd = model.getValue("/root/send/in_fromdd");
  449. var benddd1 = enddd.toDate("YYYYMMDD");
  450. var benddd2 = enddd.toDate("YYYYMMDD");
  451. benddd1 = benddd1.getAddDate(-1,"M").getDateFormat("YYYYMMDD") ;
  452. benddd2 = benddd2.getAddDate(-1,"Y").getDateFormat("YYYYMMDD") ;
  453. // if (model.getValue("/root/send/in_cond2")=="01") {
  454. // benddd1 = benddd.getAddDate(-1,"M").getDateFormat("YYYYMMDD") ;
  455. // } else if (model.getValue("/root/send/in_cond2")=="02") {
  456. // benddd2 = benddd.getAddDate(-1,"Y").getDateFormat("YYYYMMDD") ;
  457. // }
  458. dgrd_rpt.caption = "구분^구분^명칭^"+enddd.substr(0,4)+"년 "+enddd.substr(4,2)+"월"+"^일평균^전월^전월^전월^전년동월^전년동월^전년동월^|구분^구분^명칭^"+enddd.substr(0,4)+"년 "+enddd.substr(4,2)+"월"+"^일평균^"+benddd1.substr(0,4)+"년 "+benddd1.substr(4,2)+"월"+"^증감^증감율^"+benddd2.substr(0,4)+"년 "+benddd2.substr(4,2)+"월"+"^증감^증감율^";
  459. dgrd_rpt.refresh();
  460. } //년보
  461. else if ( model.getValue("/root/send/in_cond1") == "03" ) {
  462. dgrd_rpt.colHidden(6) = false;
  463. dgrd_rpt.colHidden(7) = true;
  464. dgrd_rpt.colHidden(8) = true;
  465. dgrd_rpt.colHidden(9) = true;
  466. dgrd_rpt.colHidden(10) = true;
  467. var enddd = model.getValue("/root/send/in_fromdd");
  468. var benddd1 = enddd.toDate("YYYYMMDD");
  469. var benddd2 = enddd.toDate("YYYYMMDD");
  470. benddd1 = benddd1.getAddDate(-1,"M").getDateFormat("YYYYMMDD") ;
  471. benddd2 = benddd2.getAddDate(-1,"Y").getDateFormat("YYYYMMDD") ;
  472. dgrd_rpt.caption = "구분^구분^명칭^"+enddd.substr(0,4)+"년"+"^전년^전년^전년^|구분^구분^명칭^"+enddd.substr(0,4)+"년"+"^"+benddd1.substr(0,4)+"년"+"^증감^증감율^";
  473. dgrd_rpt.refresh();
  474. }
  475. } else if (model.getValue("/root/send/in_rptcd") == "RR00702") {
  476. var enddd = model.getValue("/root/send/in_fromdd");
  477. var enddd1 = enddd;
  478. var weekday1 = getweekday(enddd1);
  479. enddd1=enddd1.substr(4,2)+"월 "+enddd1.substr(6,2)+"일";
  480. var enddd2 = enddd.toDate("YYYYMMDD").getAddDate(1,"D").getDateFormat("YYYYMMDD");
  481. var weekday2 = getweekday(enddd2);
  482. enddd2=enddd2.substr(4,2)+"월 "+enddd2.substr(6,2)+"일";
  483. var enddd3 = enddd.toDate("YYYYMMDD").getAddDate(2,"D").getDateFormat("YYYYMMDD");
  484. var weekday3 = getweekday(enddd3);
  485. enddd3=enddd3.substr(4,2)+"월 "+enddd3.substr(6,2)+"일";
  486. var enddd4 = enddd.toDate("YYYYMMDD").getAddDate(3,"D").getDateFormat("YYYYMMDD");
  487. var weekday4 = getweekday(enddd4);
  488. enddd4=enddd4.substr(4,2)+"월 "+enddd4.substr(6,2)+"일";
  489. var enddd5 = enddd.toDate("YYYYMMDD").getAddDate(4,"D").getDateFormat("YYYYMMDD");
  490. var weekday5 = getweekday(enddd5);
  491. enddd5=enddd5.substr(4,2)+"월 "+enddd5.substr(6,2)+"일";
  492. var enddd6 = enddd.toDate("YYYYMMDD").getAddDate(5,"D").getDateFormat("YYYYMMDD");
  493. var weekday6 = getweekday(enddd6);
  494. enddd6=enddd6.substr(4,2)+"월 "+enddd6.substr(6,2)+"일";
  495. var enddd7 = enddd.toDate("YYYYMMDD").getAddDate(6,"D").getDateFormat("YYYYMMDD");
  496. var weekday7 = getweekday(enddd7);
  497. enddd7=enddd7.substr(4,2)+"월 "+enddd7.substr(6,2)+"일";
  498. dgrd_rpt.caption = "구분^구분^명칭^"+enddd1+"^"+enddd2+"^"+enddd3+"^"+enddd4+"^"+enddd5+"^"+enddd6+"^"+enddd7+"^합계^합계^합계^일평균^일평균^일평균^|구분^구분^명칭^"+weekday1+"^"+weekday2+"^"+weekday3+"^"+weekday4+"^"+weekday5+"^"+weekday6+"^"+weekday7+"^금주^벤치마크^증감^금주^벤치마크^증감"
  499. dgrd_rpt.refresh();
  500. }
  501. }
  502. ]]>
  503. </script>
  504. </xhtml:head>
  505. <xhtml:body pagewidth="1190" pageheight="1000" style="font-family:돋움, Arial; font-size:12px; color:#4d4d4d; ">
  506. <object id="tfexcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" visibility="hidden" style="left:950px; top:55px; width:180px; height:35px; "/>
  507. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">통계조회</caption>
  508. <group id="group1" style="left:0px; top:15px; width:1146px; height:30px; ">
  509. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:30px; "/>
  510. <caption id="caption30" class="search_name" style="left:6px; top:5px; width:102px; height:17px; ">통합통계장표</caption>
  511. <input id="ipt_procdd" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:592px; top:5px; width:90px; height:19px; text-align:center; ">
  512. <script type="javascript" ev:event="xforms-value-changed">
  513. <![CDATA[
  514. //진료실적(일보,월보)
  515. if (model.getValue("/root/send/in_rptcd") == "RR00701") {
  516. //일보
  517. if ( model.getValue("/root/send/in_cond1") == "01" ) {
  518. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  519. } //월보
  520. else if ( model.getValue("/root/send/in_cond1") == "02" ) {
  521. model.setValue("/root/send/in_fromdd",model.getValue("/root/send/in_fromdd").substr(0,6)+"01");
  522. var FirstDate = model.getValue("/root/send/in_fromdd")
  523. var LastDate = FirstDate.toDate("YYYYMMDD")
  524. LastDate = LastDate.getAddDate(1,"M").getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
  525. model.setValue("/root/send/in_todd",LastDate);
  526. } //년보
  527. else if ( model.getValue("/root/send/in_cond1") == "03" ) {
  528. model.setValue("/root/send/in_fromdd",model.getValue("/root/send/in_fromdd").substr(0,4)+"0101");
  529. var FirstDate = model.getValue("/root/send/in_fromdd")
  530. var LastDate = FirstDate.toDate("YYYYMMDD")
  531. LastDate = LastDate.getAddDate(1,"Y").getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
  532. model.setValue("/root/send/in_todd",LastDate);
  533. }
  534. setgridcaption();
  535. } //진료실적(주보)
  536. if (model.getValue("/root/send/in_rptcd") == "RR00702") {
  537. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  538. setgridcaption();
  539. }
  540. ]]>
  541. </script>
  542. </input>
  543. <button id="btn_execute" class="btn4_letter2" navindex="3" style="left:995px; top:4px; width:56px; height:22px; ">
  544. <caption>조회</caption>
  545. <script type="javascript" ev:event="DOMActivate">
  546. <![CDATA[
  547. group5.visible = false;
  548. ObjGrp = document.all("group_c1");
  549. if(ObjGrp.attribute("visibility") == 'visible')
  550. {
  551. //조회 날자 세팅
  552. if(model.getValue("/root/send/in_fromdd") > model.getValue("/root/send/in_todd") ){
  553. if (input1.visible == true) {
  554. messageBox("시작 일자는 종료일자보다 클 수 없습니다.! 다시 " , "C001");
  555. return ;
  556. }
  557. }
  558. else if(model.getValue("/root/send/in_fromdd") < '19500000' ){
  559. messageBox("시작 일자는 1950년 보다 이전일 수 없습니다.! 다시 " , "C001");
  560. return ;
  561. }
  562. }
  563. ObjGrp = document.all("group_c2");
  564. if (ObjGrp.attribute("visibility") == "visible" )
  565. {
  566. if ( cb_cond2_2.value == "" || cb_cond3_2.value == "" )
  567. {
  568. messageBox("청구구분/ 보험유형 조건을","C002");
  569. return;
  570. }
  571. }
  572. ObjGrp = document.all("group_c3");
  573. if (ObjGrp.attribute("visibility") == "visible" )
  574. {
  575. if ( cb_cond2_3.value == "" || cb_cond4_3.value == "" )
  576. {
  577. messageBox("청구구분/ 보험유형 조건을","C002");
  578. return;
  579. }
  580. }
  581. ObjGrp = document.all("group_c4");
  582. if (ObjGrp.attribute("visibility") == "visible" )
  583. {
  584. if ( cb_cond2_4.value == "")
  585. {
  586. messageBox("보험유형 조건을","C002");
  587. return;
  588. }
  589. }
  590. ObjGrp = document.all("group_c5");
  591. if (ObjGrp.attribute("visibility") == "visible" )
  592. {
  593. if ( cb_cond2_5.value == "")
  594. {
  595. messageBox("청구형태 조건을","C002");
  596. return;
  597. }
  598. }
  599. ObjGrp = document.all("group_c7");
  600. if (ObjGrp.attribute("visibility") == "visible" )
  601. {
  602. if ( cb_cond3_7.value == "")
  603. {
  604. messageBox("청구형태 조건을","C002");
  605. return;
  606. }
  607. }
  608. ObjGrp = document.all("group_c8");
  609. if (ObjGrp.attribute("visibility") == "visible" )
  610. {
  611. if ( cb_cond2_8.value == "" || cb_cond3_8.value == "" )
  612. {
  613. messageBox("청구구분/ 보험유형 조건을","C002");
  614. return;
  615. }
  616. }
  617. if ( model.getValue("/root/send/in_rptcd") == "RR01146" )
  618. {
  619. if ( model.getValue("/root/send/in_cond1") == "02" )
  620. {
  621. if ( model.getValue("/root/send/in_fromdd") == "" || model.getValue("/root/send/in_todd") == "" )
  622. {
  623. messageBox("퇴원일자 조건을","C002");
  624. return;
  625. }
  626. }
  627. }
  628. if (model.getValue("/root/send/in_rptcd") == "RR01148" || model.getValue("/root/send/in_rptcd") == "RR00730"
  629. || model.getValue("/root/send/in_rptcd") == "RR00732" || model.getValue("/root/send/in_rptcd") == "RR00736"
  630. || model.getValue("/root/send/in_rptcd") == "RR00742" ) {
  631. dgrd_rpt.rebuildStyle();
  632. }
  633. fGetGridData();
  634. if ( model.getValue("/root/send/in_rptcd") == "RR00730" ){
  635. dgrd_rpt.rowStyle(3, "data", "background-color") = "#ffcc99";
  636. } else if (model.getValue("/root/send/in_rptcd") == "RR00732" ){
  637. for( var i = 1 ; i < dgrd_rpt.rows ; i++) {
  638. var ColorVar = model.getValue("/root/init/rptm_grid/ret[" + i + " ]/hid10");
  639. var ColorSum = model.getValue("/root/init/rptm_grid/ret[" + i + " ]/col2");
  640. if (ColorVar == "A") {
  641. dgrd_rpt.rowStyle(i+2, "data", "background-color") = "#ffcc99";
  642. } else if (ColorSum == "소계") {
  643. dgrd_rpt.cellstyle("background-color", i+2, 1, i+2, dgrd_rpt.cols-1) = "#cdcdcd";
  644. }
  645. }
  646. model.refresh();
  647. } else if (model.getValue("/root/send/in_rptcd") == "RR00736" ){
  648. dgrd_rpt.rowStyle(dgrd_rpt.rows-1, "data", "background-color") = "#ccffcc";
  649. dgrd_rpt.rowStyle(dgrd_rpt.rows-2, "data", "background-color") = "#ffcc99";
  650. } else if (model.getValue("/root/send/in_rptcd") == "RR00742" ){
  651. dgrd_rpt.colStyle(10, "data", "background-color") = "#ccffcc";
  652. dgrd_rpt.colStyle(11, "data", "background-color") = "#ccffcc";
  653. for( var i = 1 ; i < dgrd_rpt.rows ; i++) {
  654. var ColorVar = model.getValue("/root/init/rptm_grid/ret[" + i + " ]/hid10");
  655. var ColorSum = model.getValue("/root/init/rptm_grid/ret[" + i + " ]/col2");
  656. if (ColorVar == "B") {
  657. dgrd_rpt.rowStyle(i+1, "data", "background-color") = "#ffcc99";
  658. } else if (ColorSum == "[소 계]") {
  659. dgrd_rpt.rowStyle(i+1, "data", "background-color") = "#cdcdcd";
  660. }
  661. }
  662. } else if ( model.getValue("/root/send/in_rptcd") == "RR01146" ){
  663. caption18.refresh();
  664. } else if (model.getValue("/root/send/in_rptcd") == "RR00701" ) {
  665. model.setValue("/root/init/inp_cmmt/in_cmmt", model.getValue("/root/init/rptm_grid/ret_cmmt/out_cmmt"));
  666. txtbox_cmmt.refresh();
  667. dgrd_rpt.cellStyle("font-weight", 2,2,23,2) = "bold";
  668. for(var i = 1; i<23;i++)
  669. {
  670. model.makeNode("root/hidden/chart/chartkind["+i+"]");
  671. model.setValue("root/hidden/chart/chartkind["+i+"]", model.getValue("root/init/rptm_grid/ret["+i+"]/col3"));
  672. }
  673. } else if (model.getValue("/root/send/in_rptcd") == "RR01148") {
  674. for( var i = 1 ; i < dgrd_rpt.rows ; i++) {
  675. var ColorVar = model.getValue("/root/init/rptm_grid/ret[" + i + " ]/hid10");
  676. if (ColorVar == "B") {
  677. dgrd_rpt.rowStyle(i+1, "data", "background-color") = "#ffff99";
  678. } else if (ColorVar == "C") {
  679. dgrd_rpt.rowStyle(i+1, "data", "background-color") = "#ccffcc";
  680. } else if (ColorVar == "D") {
  681. dgrd_rpt.rowStyle(i+1, "data", "background-color") = "#ffcc99";
  682. }
  683. }
  684. model.refresh();
  685. }
  686. else if(model.getValue("/root/send/in_rptcd") == "RR00829"){
  687. var from1 = ipt_procdd.value;
  688. var from2 = from1.substr(0, 4);
  689. var to1 = input1.value;
  690. var to2 = to1.substr(0,4);
  691. if(to2-from2 <= 1){
  692. dgrd_rpt.colhidden(1) = true;
  693. dgrd_rpt.colhidden(4) = true;
  694. dgrd_rpt.colhidden(6) = true;
  695. dgrd_rpt.colhidden(9) = true;
  696. dgrd_rpt.colhidden(11) = true;
  697. dgrd_rpt.colhidden(14) = true;
  698. dgrd_rpt.refresh();
  699. }else{
  700. dgrd_rpt.colhidden(1) = false;
  701. dgrd_rpt.colhidden(4) = false;
  702. dgrd_rpt.colhidden(6) = false;
  703. dgrd_rpt.colhidden(9) = false;
  704. dgrd_rpt.colhidden(11) = false;
  705. dgrd_rpt.colhidden(14) = false;
  706. dgrd_rpt.refresh();
  707. }
  708. }else if (model.getValue("/root/send/in_rptcd") == "RR01149") {
  709. if (model.getValue("/root/send/in_sum") == "01") {
  710. dgrd_rpt.colhidden(0) = false;
  711. dgrd_rpt.colhidden(1) = false;
  712. dgrd_rpt.colhidden(2) = false;
  713. dgrd_rpt.colhidden(3) = false;
  714. dgrd_rpt.colhidden(4) = false;
  715. dgrd_rpt.colhidden(5) = false;
  716. dgrd_rpt.colhidden(7) = false;
  717. dgrd_rpt.colhidden(8) = false;
  718. dgrd_rpt.colhidden(9) = false;
  719. dgrd_rpt.colhidden(10) = false;
  720. dgrd_rpt.colhidden(11) = false;
  721. } else {
  722. dgrd_rpt.colhidden(0) = true;
  723. dgrd_rpt.colhidden(1) = true;
  724. dgrd_rpt.colhidden(2) = true;
  725. dgrd_rpt.colhidden(3) = true;
  726. dgrd_rpt.colhidden(4) = true;
  727. dgrd_rpt.colhidden(5) = true;
  728. dgrd_rpt.colhidden(7) = true;
  729. dgrd_rpt.colhidden(8) = true;
  730. dgrd_rpt.colhidden(9) = true;
  731. dgrd_rpt.colhidden(10) = true;
  732. dgrd_rpt.colhidden(11) = true;
  733. if (model.getValue("/root/send/in_sum1") == "01") {
  734. dgrd_rpt.colhidden(0) = true;
  735. } else {
  736. dgrd_rpt.colhidden(0) = false;
  737. }
  738. if (model.getValue("/root/send/in_sum2") == "01") {
  739. dgrd_rpt.colhidden(7) = true;
  740. dgrd_rpt.colhidden(8) = true;
  741. } else {
  742. dgrd_rpt.colhidden(7) = false;
  743. dgrd_rpt.colhidden(8) = false;
  744. }
  745. if (model.getValue("/root/send/in_sum3") == "01") {
  746. dgrd_rpt.colhidden(9) = true;
  747. } else {
  748. dgrd_rpt.colhidden(9) = false;
  749. }
  750. }
  751. model.refresh();
  752. }else if (model.getValue("/root/send/in_rptcd") == "RR00708") {
  753. if (model.getValue("/root/send/in_cond5") == 0 || model.getValue("/root/send/in_cond5") == null || model.getValue("/root/send/in_cond5") == "") {
  754. dgrd_rpt.colhidden(6) = false;
  755. dgrd_rpt.colhidden(7) = false;
  756. } else {
  757. dgrd_rpt.colhidden(6) = true;
  758. dgrd_rpt.colhidden(7) = true;
  759. }
  760. dgrd_rpt.colstyle(14, "data", "background-color") = "#FFF000";
  761. dgrd_rpt.colstyle(15, "data", "background-color") = "#FFF000";
  762. dgrd_rpt.colstyle(20, "data", "background-color") = "#FFF000";
  763. dgrd_rpt.colstyle(21, "data", "background-color") = "#FFF000";
  764. }
  765. ]]>
  766. </script>
  767. </button>
  768. <input id="input1" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:687px; top:5px; width:90px; height:19px; text-align:center; ">
  769. <script type="javascript" ev:event="xforms-value-changed">
  770. <![CDATA[]]>
  771. </script>
  772. </input>
  773. <button id="button1" class="btn4_letter4" navindex="3" style="left:1055px; top:4px; width:80px; height:22px; ">
  774. <caption>EXCEL</caption>
  775. <script type="javascript" ev:event="DOMActivate">
  776. <![CDATA[
  777. /*
  778. var sProcdd = model.getValue("/root/send/in_procdd");
  779. if ( sProcdd != "" ) {
  780. submit("TXSTP00100");
  781. } else {
  782. model.alert("집계일자를 입력하세요");
  783. model.setFocus("ipt_procdd");
  784. return;
  785. }
  786. */
  787. /*
  788. 수정이력
  789. 2008-08-04
  790. 이형재
  791. excel 출력 기능을 가지고 있는 method를 이용
  792. */
  793. //2008.12.10 syjung 보험장표는 파일명에 프로그램 이름 주기.
  794. if (model.getValue("/root/send/in_lrgcd") == "03"){
  795. var fileName = window.fileDialog("save", ",", false, model.getValue("/root/init/rptInfo/rptInfoList/rptnm"), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  796. } else {
  797. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  798. }
  799. if (fileName != "")
  800. {
  801. var rptcd = model.getValue("/root/send/in_rptcd");
  802. // 20008.12.02 syjung 인원장표는 조회기간을 상단에 출력해주어야 함.
  803. // 2009.05.11 이창록 조회기간 상단에 출력 리스트 추가
  804. if (rptcd=="RR00705"||rptcd=="RR00707"||rptcd=="RR00711"||rptcd=="RR01097"||rptcd=="RR00779"||rptcd=="RR00780"||rptcd=="RR00797"||rptcd=="RR00801"||rptcd=="RR00802"
  805. ||rptcd=="RR00804"||rptcd=="RR00207"||rptcd=="RR00209"||rptcd=="RR00293"||rptcd=="RR00221"||rptcd=="RR00219"||rptcd=="RR00235"
  806. ||rptcd=="RR00231"||rptcd=="RR00229"||rptcd=="RR00230"||rptcd=="RR00223"||rptcd=="RR00222"||rptcd=="RR00226"||rptcd=="RR00237"
  807. ||rptcd=="RR00234"||rptcd=="RR00243" ||rptcd=="RR00240"||rptcd=="RR00227" ||rptcd=="RR00241"||rptcd=="RR00239"||rptcd=="RR00216"
  808. ||rptcd=="RR00212"||rptcd=="RR00211" ||rptcd=="RR00276"||rptcd=="RR00213" ||rptcd=="RR00210" ||rptcd=="RR00214" ||rptcd=="RR00215"||rptcd=="RR00273"
  809. ||rptcd=="RR00217"||rptcd=="RR00242" ||rptcd=="RR00238" )
  810. {
  811. var fromdd = model.getValue("/root/send/in_fromdd");
  812. var todd = model.getValue("/root/send/in_todd");
  813. tfexcel.launchnewinstance(0);
  814. tfexcel.createworkbook();
  815. tfexcel.addsheet(1, "SheetName");
  816. tfexcel.cellvalue(1,1) = "조회기간 :"+fromdd.substr(0,4)+"년 "+fromdd.substr(4,2)+"월 "+fromdd.substr(6,2)+"일"+" ~ "+todd.substr(0,4)+"년 "+todd.substr(4,2)+"월 "+todd.substr(6,2)+"일"
  817. for(var col=1 ; col <= dgrd_rpt.cols ; col++) {
  818. for( var row=1 ; row <= dgrd_rpt.rows ; row++ ) {
  819. tfexcel.cellvalue(row+1,col) = dgrd_rpt.valuematrix(row-1,col-1);
  820. tfexcel.colwidth(col) = 11;
  821. }
  822. }
  823. // border line
  824. tfexcel.setbordercolor(2,1,dgrd_rpt.rows+1,dgrd_rpt.cols-1,window.rgb(0,0,0));
  825. // 헤더 바탕색 주기
  826. tfexcel.cellbgcolor(2,1,dgrd_rpt.fixedrows+1,dgrd_rpt.cols-1)=window.rgb(192,192,192);
  827. tfexcel.save(fileName);
  828. tfexcel.close();
  829. } else {
  830. dgrd_rpt.saveExcel(fileName, "SheetName", true, true, "", "",true);
  831. }
  832. }
  833. window.exec(fileName);
  834. ]]>
  835. </script>
  836. </button>
  837. <button id="button2" class="btn4_letter2" navindex="3" visibility="hidden" style="left:935px; top:4px; width:56px; height:22px; ">
  838. <caption>출력</caption>
  839. <script type="javascript" ev:event="DOMActivate">
  840. <![CDATA[
  841. /*
  842. var sProcdd = model.getValue("/root/send/in_procdd");
  843. if ( sProcdd != "" ) {
  844. submit("TXSTP00100");
  845. } else {
  846. model.alert("집계일자를 입력하세요");
  847. model.setFocus("ipt_procdd");
  848. return;
  849. }
  850. */
  851. model.setValue("/root/send/combo1", cb_cond1_1.label);
  852. model.setValue("/root/send/combo2", cb_cond2_1.label);
  853. model.setValue("/root/send/combo3", cb_cond3_1.label);
  854. model.setValue("/root/send/combo4", cb_cond4_1.label);
  855. model.setValue("/root/send/combo5", cb_cond5_1.label);
  856. model.setValue("/root/send/combo6", cb_cond6_1.label);
  857. model.setValue("/root/send/combo7", cb_cond7_1.label);
  858. model.setValue("/root/send/combo8", cb_cond8_1.label);
  859. model.setValue("/root/send/combo9", cb_cond9_1.label);
  860. model.setValue("/root/send/combo10", cb_cond10_1.label);
  861. var rptcd = model.getValue("/root/send/in_rptcd");
  862. switch(rptcd){
  863. case "RR00701":
  864. var nodeList = instance1.selectNodes("/root/init/rptm_grid/ret");
  865. var grid1_row = 1;
  866. var grid2_row = 1;
  867. var grid3_row = 1;
  868. var grid4_row = 1;
  869. var grid5_row = 1;
  870. var enddd = model.getValue("/root/send/in_fromdd");
  871. var printday=getweekday(enddd);
  872. printymd = enddd.substr(0,4)+"년 "+enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일("+printday+")"
  873. model.makeValue("/root/init/inp_cmmt/in_enddd",printymd);
  874. for ( i = 1; i <= nodeList.length; i++) {
  875. if (i == 1) {
  876. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  877. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  878. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  879. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  880. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  881. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  882. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  883. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/in_printymd",printymd);
  884. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/in_printday",printday);
  885. } else if (i >=2 && i <= 17 ) {
  886. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  887. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  888. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  889. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  890. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  891. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  892. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  893. // if (i >= 13 && i <= 16) {
  894. // var pos;
  895. //
  896. // pos = model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4").search(" ");
  897. // model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4").substr(0,pos));
  898. // pos = model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5").search(" ");
  899. // model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5").substr(0,pos));
  900. // pos = model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6").search(" ");
  901. // model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6").substr(0,pos));
  902. // } else {
  903. // model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  904. // model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  905. // model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  906. // }
  907. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/in_printymd",printymd);
  908. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/in_printday",printday);
  909. grid2_row++;
  910. } else if (i >= 18 && i <= 22 ) {
  911. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  912. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  913. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  914. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  915. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  916. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  917. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  918. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/in_printymd",printymd);
  919. model.makeValue("/root/init/rptm_grid3/ret[" + grid3_row + "]/in_printday",printday);
  920. grid3_row++;
  921. } else if (i >= 23 && i <= 29 ) {
  922. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  923. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  924. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  925. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  926. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  927. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  928. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  929. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/in_printymd",printymd);
  930. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/in_printday",printday);
  931. grid4_row++;
  932. } else if (i >= 30) {
  933. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  934. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  935. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  936. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  937. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  938. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  939. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  940. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/in_printymd",printymd);
  941. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/in_printday",printday);
  942. grid5_row++;
  943. }
  944. }
  945. exeReportPreview("RPSTC00800", "XMLSTR", "","", "false","","","","","false");
  946. break;
  947. case "RR00821":
  948. exeReportPreview("RPSTC00200", "XMLSTR", "","", "false","","","","","false");
  949. break;
  950. case "RR00822":
  951. exeReportPreview("RPSTC00100", "XMLSTR", "","", "false","","","","","false");
  952. break;
  953. case "RR00827":
  954. exeReportPreview("RPSTC00300", "XMLSTR", "","", "false","","","","","false");
  955. break;
  956. case "RR00730":
  957. exeReportPreview("RPSTC00730", "XMLSTR", "","", "false","","","","","false");
  958. break;
  959. case "RR00736":
  960. model.setValue("/root/send/combo6", cb_cond6_8.label);
  961. exeReportPreview("RPSTC00736", "XMLSTR", "","", "false","","","","","false");
  962. break;
  963. case "RR00829":
  964. // 년도로 자르고 조회년도가 2년이내일 경우와 3년일 경우를 구분하여 rexpert 출력
  965. var from1 = ipt_procdd.value;
  966. var from2 = from1.substr(0, 4);
  967. model.setValue("/root/send/in_cond9",from2);
  968. var to1 = input1.value;
  969. var to2 = to1.substr(0,4);
  970. model.setValue("/root/send/in_cond10",to2);
  971. if(to2 - from2 <= 1){
  972. exeReportPreview("RPSTC00400", "XMLSTR", "","", "false","","","","","false");
  973. }else{
  974. exeReportPreview("RPSTC00401", "XMLSTR", "","", "false","","","","","false");
  975. }
  976. break;
  977. case "RR00844":
  978. exeReportPreview("RPSTC00500", "XMLSTR", "","", "false","","","","","false");
  979. break;
  980. case "RR00828":
  981. exeReportPreview("RPSTC00600", "XMLSTR", "","", "false","","","","","false");
  982. break;
  983. case "RR00820":
  984. exeReportPreview("RPSTC00700", "XMLSTR", "","", "false","","","","","false");
  985. break;
  986. }
  987. ]]>
  988. </script>
  989. </button>
  990. <select1 id="cb_rpt" ref="/root/send/in_rptcd" class="ouput_fix" disabled="true" navindex="1" appearance="minimal" editmode="search" itemcount="20" style="left:111px; top:5px; width:404px; height:19px; ">
  991. <choices>
  992. <itemset nodeset="/root/init/rptm/rpt/rptcd">
  993. <label ref="rptnm"/>
  994. <value ref="rptcd"/>
  995. </itemset>
  996. </choices>
  997. </select1>
  998. <input id="in_pid" ref="/root/send/in_pid" visibility="hidden" style="left:790px; top:5px; width:100px; height:19px; "/>
  999. <button id="btn_print2" class="btn4_letter6" visibility="hidden" style="left:827px; top:4px; width:104px; height:22px; ">
  1000. <caption>보직자용 출력</caption>
  1001. <script type="javascript" ev:event="DOMActivate">
  1002. <![CDATA[
  1003. var rptcd = model.getValue("/root/send/in_rptcd");
  1004. switch(rptcd){
  1005. case "RR00701":
  1006. var nodeList = instance1.selectNodes("/root/init/rptm_grid/ret");
  1007. var grid1_row = 1;
  1008. var grid2_row = 1;
  1009. var grid4_row = 1;
  1010. var grid5_row = 1;
  1011. var enddd = model.getValue("/root/send/in_fromdd");
  1012. var printday=getweekday(enddd);
  1013. printymd = enddd.substr(0,4)+"년 "+enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일("+printday+")"
  1014. model.makeValue("/root/init/inp_cmmt/in_enddd",printymd);
  1015. for ( i = 1; i <= nodeList.length; i++) {
  1016. if (i == 1) {
  1017. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  1018. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  1019. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  1020. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  1021. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  1022. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  1023. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  1024. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/in_printymd",printymd);
  1025. model.makeValue("/root/init/rptm_grid1/ret[" + grid1_row + "]/in_printday",printday);
  1026. } else if (i >=2 && i <= 19 && i != 8 && i != 10 && i != 12 ) {
  1027. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  1028. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  1029. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  1030. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  1031. if (i >= 13 && i <= 16) {
  1032. var pos;
  1033. pos = model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4").search(" ");
  1034. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4").substr(0,pos));
  1035. pos = model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5").search(" ");
  1036. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5").substr(0,pos));
  1037. pos = model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6").search(" ");
  1038. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6").substr(0,pos));
  1039. } else {
  1040. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  1041. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  1042. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  1043. }
  1044. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/in_printymd",printymd);
  1045. model.makeValue("/root/init/rptm_grid2/ret[" + grid2_row + "]/in_printday",printday);
  1046. grid2_row++;
  1047. } else if (i >= 26 && i <= 30 ) {
  1048. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  1049. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  1050. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  1051. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  1052. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  1053. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  1054. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  1055. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/in_printymd",printymd);
  1056. model.makeValue("/root/init/rptm_grid4/ret[" + grid4_row + "]/in_printday",printday);
  1057. grid4_row++;
  1058. } else if (i >= 33 && i != 34 && i != 36) {
  1059. printymd = enddd.substr(4,2)+"월 "+enddd.substr(6,2)+"일"
  1060. if (i >= 33 && i <= 37) {
  1061. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col1","외래진료실 사용 현황 (임상강사이상)");
  1062. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col2","외래진료실 사용 현황 (임상강사이상)");
  1063. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  1064. } else {
  1065. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col1",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col1"));
  1066. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col2",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col2"));
  1067. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col3",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col3"));
  1068. }
  1069. if (i >= 40 && i <= 43) {
  1070. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col4",Math.round(model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4")));
  1071. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col5",Math.round(model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5")));
  1072. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col6",Math.round(model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6")));
  1073. } else {
  1074. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col4",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col4"));
  1075. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col5",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col5"));
  1076. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/col6",model.getValue("/root/init/rptm_grid/ret[" + i + "]/col6"));
  1077. }
  1078. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/in_printymd",printymd);
  1079. model.makeValue("/root/init/rptm_grid5/ret[" + grid5_row + "]/in_printday",printday);
  1080. grid5_row++;
  1081. }
  1082. }
  1083. exeReportPreview("RPSTC00900", "XMLSTR", "","", "false","","","","","false");
  1084. break;
  1085. }
  1086. ]]>
  1087. </script>
  1088. </button>
  1089. </group>
  1090. <!-- ## 첫번째 그룹 -->
  1091. <!-- 컨트롤ID Seq : 1 -->
  1092. <group id="group_c1" visibility="hidden" style="left:0px; top:50px; width:1146px; height:55px; ">
  1093. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:55px; "/>
  1094. <select1 id="cb_cond1_1" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:112px; top:5px; width:110px; height:19px; ">
  1095. <choices>
  1096. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  1097. <label ref="nm"/>
  1098. <value ref="cd"/>
  1099. </itemset>
  1100. </choices>
  1101. <script type="javascript" ev:event="xforms-value-changed">
  1102. <![CDATA[
  1103. var tmp = model.getValue("/root/init/rptInfo/rptInfoList/cond1");
  1104. if(tmp == '9999'){
  1105. var con1Value = cb_cond1_1.value ;
  1106. submit("TRSTC01200");
  1107. }
  1108. ]]>
  1109. </script>
  1110. <script type="javascript" ev:event="xforms-select">
  1111. <![CDATA[
  1112. // 진료실적(일보,월보)
  1113. if (model.getValue("/root/send/in_rptcd") == "RR00701") {
  1114. // 일보
  1115. if ( model.getValue("/root/send/in_cond1") == "01" ) {
  1116. ipt_procdd.value = getCurrentDate();
  1117. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  1118. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  1119. cb_cond2_1.disabled=true;
  1120. btn_cmmt.disabled=false;
  1121. button2.disabled=false;
  1122. // btn_print2.disabled=false;
  1123. } // 월보
  1124. else if ( model.getValue("/root/send/in_cond1") == "02" ) {
  1125. ipt_procdd.value = getCurrentDate();
  1126. ipt_procdd.attribute("format") = "yyyy-mm";
  1127. model.setValue("/root/send/in_fromdd",model.getValue("/root/send/in_fromdd").substr(0,6)+"01");
  1128. var FirstDate = model.getValue("/root/send/in_fromdd")
  1129. var LastDate = FirstDate.toDate("YYYYMMDD")
  1130. LastDate = LastDate.getAddDate(1,"M").getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
  1131. model.setValue("/root/send/in_todd",LastDate);
  1132. cb_cond2_1.disabled=true;
  1133. btn_cmmt.disabled=true;
  1134. button2.disabled=true;
  1135. // btn_print2.disabled=true;
  1136. } //년보
  1137. else if ( model.getValue("/root/send/in_cond1") == "03" ) {
  1138. ipt_procdd.value = getCurrentDate();
  1139. ipt_procdd.attribute("format") = "yyyy";
  1140. model.setValue("/root/send/in_fromdd",model.getValue("/root/send/in_fromdd").substr(0,4)+"0101");
  1141. var FirstDate = model.getValue("/root/send/in_fromdd")
  1142. var LastDate = FirstDate.toDate("YYYYMMDD")
  1143. LastDate = LastDate.getAddDate(1,"Y").getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
  1144. model.setValue("/root/send/in_todd",LastDate);
  1145. cb_cond2_1.disabled=true;
  1146. btn_cmmt.disabled=true;
  1147. button2.disabled=true;
  1148. // btn_print2.disabled=true;
  1149. }
  1150. setgridcaption();
  1151. ipt_procdd.refresh();
  1152. cb_cond2_1.refresh();
  1153. } else if (model.getValue("/root/send/in_rptcd") == "RR00835"
  1154. || model.getValue("/root/send/in_rptcd") == "RR00842"
  1155. || model.getValue("/root/send/in_rptcd") == "RR00837"
  1156. || model.getValue("/root/send/in_rptcd") == "RR00836") {
  1157. if ( model.getValue("/root/send/in_cond1") == "02" ) {
  1158. ipt_procdd.visible = true;
  1159. input1.visible = false;
  1160. ipt_procdd.attribute("format") = "yyyy-mm";
  1161. input1.value = ipt_procdd.value;
  1162. } else {
  1163. ipt_procdd.visible = true;
  1164. input1.visible = true;
  1165. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  1166. }
  1167. model.refresh();
  1168. } else if (model.getValue("/root/send/in_rptcd") == "RR00839") {
  1169. if ( model.getValue("/root/send/in_cond1") == "02" ) {
  1170. messageBox("외래처방선수금은 월별 조회를 할 수 없습니다. 다시 " , "C001");
  1171. model.setValue("/root/send/in_cond1","01");
  1172. model.refresh();
  1173. }
  1174. }
  1175. ]]>
  1176. </script>
  1177. </select1>
  1178. <select1 id="cb_cond2_1" ref="/root/send/in_cond2" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:330px; top:5px; width:110px; height:19px; ">
  1179. <choices>
  1180. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  1181. <label ref="nm"/>
  1182. <value ref="cd"/>
  1183. </itemset>
  1184. </choices>
  1185. <script type="javascript" ev:event="xforms-select">
  1186. <![CDATA[
  1187. // 진료실적(일보,월보)
  1188. if (model.getValue("/root/send/in_rptcd") == "RR00701") {
  1189. setgridcaption();
  1190. } else if (model.getValue("/root/send/in_rptcd") == "RR00834") {
  1191. if ( model.getValue("/root/send/in_cond2") == "02" ) {
  1192. ipt_procdd.visible = true;
  1193. input1.visible = false;
  1194. ipt_procdd.attribute("format") = "yyyy-mm";
  1195. input1.value = ipt_procdd.value;
  1196. } else {
  1197. ipt_procdd.visible = true;
  1198. input1.visible = true;
  1199. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  1200. }
  1201. model.refresh();
  1202. }
  1203. ]]>
  1204. </script>
  1205. </select1>
  1206. <select1 id="cb_cond3_1" ref="/root/send/in_cond3" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:560px; top:5px; width:110px; height:19px; ">
  1207. <choices>
  1208. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  1209. <label ref="nm"/>
  1210. <value ref="cd"/>
  1211. </itemset>
  1212. </choices>
  1213. <script type="javascript" ev:event="xforms-value-changed">
  1214. <![CDATA[
  1215. // 진료과별 의사별 진료수익, 의사별 지정진료 수익내역
  1216. if (model.getValue("/root/send/in_rptcd") == "RR01098" || model.getValue("/root/send/in_rptcd") == "RR00819" || model.getValue("/root/send/in_rptcd") == "RR01097" || model.getValue("/root/send/in_rptcd") == "RR01101" ) {
  1217. cb_cond2_1.choices.itemset.attribute("nodeset") = "/root/init/rptm_cond/cond2/condcd[dp = '" + model.getValue("/root/send/in_cond3") + "']";
  1218. // addComboItem("cb_cond2_1" , "전체","00","above");
  1219. //model.setValue("/root/send/deptnm", cb_cond3_1.label);
  1220. model.resetInstanceNode("/root/send/in_cond2"); // 진료과가 변경되었으므로 주치의를 초기화한다.
  1221. if(model.getValue("/root/send/in_cond3") == "00") {
  1222. model.setValue("/root/send/in_cond2", "00");
  1223. }
  1224. cb_cond2_1.refresh();
  1225. cb_cond3_1.refresh();
  1226. //cmb_orddrid.disabled = false;
  1227. }
  1228. ]]>
  1229. </script>
  1230. </select1>
  1231. <select1 id="cb_cond4_1" ref="/root/send/in_cond4" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:790px; top:5px; width:110px; height:19px; ">
  1232. <choices>
  1233. <itemset nodeset="/root/init/rptm_cond/cond4/condcd">
  1234. <label ref="nm"/>
  1235. <value ref="cd"/>
  1236. </itemset>
  1237. </choices>
  1238. </select1>
  1239. <select1 id="cb_cond5_1" ref="/root/send/in_cond5" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:1015px; top:5px; width:110px; height:19px; ">
  1240. <choices>
  1241. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  1242. <label ref="nm"/>
  1243. <value ref="cd"/>
  1244. </itemset>
  1245. </choices>
  1246. </select1>
  1247. <select1 id="cb_cond6_1" ref="/root/send/in_cond6" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:112px; top:29px; width:110px; height:19px; ">
  1248. <choices>
  1249. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  1250. <label ref="nm"/>
  1251. <value ref="cd"/>
  1252. </itemset>
  1253. </choices>
  1254. <script type="javascript" ev:event="xforms-value-changed">
  1255. <![CDATA[
  1256. ]]>
  1257. </script>
  1258. </select1>
  1259. <select1 id="cb_cond7_1" ref="/root/send/in_cond7" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:330px; top:29px; width:110px; height:19px; ">
  1260. <choices>
  1261. <itemset nodeset="/root/init/rptm_cond/cond7/condcd">
  1262. <label ref="nm"/>
  1263. <value ref="cd"/>
  1264. </itemset>
  1265. </choices>
  1266. <script type="javascript" ev:event="xforms-value-changed">
  1267. <![CDATA[
  1268. ]]>
  1269. </script>
  1270. <script type="javascript" ev:event="xforms-select">
  1271. <![CDATA[
  1272. if (model.getValue("/root/send/in_rptcd") == "RR00820") {
  1273. if ( model.getValue("/root/send/in_cond7") == "02" ) {
  1274. ipt_procdd.visible = true;
  1275. input1.visible = true;
  1276. ipt_procdd.attribute("format") = "yyyy-mm";
  1277. input1.attribute("format") = "yyyy-mm";
  1278. } else {
  1279. ipt_procdd.visible = true;
  1280. input1.visible = true;
  1281. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  1282. input1.attribute("format") = "yyyy-mm-dd";
  1283. }
  1284. model.refresh();
  1285. }
  1286. ]]>
  1287. </script>
  1288. </select1>
  1289. <select1 id="cb_cond8_1" ref="/root/send/in_cond8" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:560px; top:29px; width:110px; height:19px; ">
  1290. <choices>
  1291. <itemset nodeset="/root/init/rptm_cond/cond8/condcd">
  1292. <label ref="nm"/>
  1293. <value ref="cd"/>
  1294. </itemset>
  1295. </choices>
  1296. <script type="javascript" ev:event="xforms-value-changed">
  1297. <![CDATA[
  1298. ]]>
  1299. </script>
  1300. </select1>
  1301. <select1 id="cb_cond9_1" ref="/root/send/in_cond9" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:790px; top:29px; width:110px; height:19px; ">
  1302. <choices>
  1303. <itemset nodeset="/root/init/rptm_cond/cond9/condcd">
  1304. <label ref="nm"/>
  1305. <value ref="cd"/>
  1306. </itemset>
  1307. </choices>
  1308. <script type="javascript" ev:event="xforms-value-changed">
  1309. <![CDATA[
  1310. ]]>
  1311. </script>
  1312. </select1>
  1313. <select1 id="cb_cond10_1" ref="/root/send/in_cond10" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:1015px; top:29px; width:110px; height:19px; ">
  1314. <choices>
  1315. <itemset nodeset="/root/init/rptm_cond/cond10/condcd">
  1316. <label ref="nm"/>
  1317. <value ref="cd"/>
  1318. </itemset>
  1319. </choices>
  1320. <script type="javascript" ev:event="xforms-value-changed">
  1321. <![CDATA[
  1322. ]]>
  1323. </script>
  1324. </select1>
  1325. <caption id="cp_text1_1" ref="/root/init/rptm_cond/cond1/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:5px; width:90px; height:17px; ">조회기준1</caption>
  1326. <caption id="cp_text2_1" ref="/root/init/rptm_cond/cond2/condcd/mdlnm" class="search_name" visibility="hidden" style="left:233px; top:5px; width:90px; height:17px; ">조회기준2</caption>
  1327. <caption id="cp_text3_1" ref="/root/init/rptm_cond/cond3/condcd/mdlnm" class="search_name" visibility="hidden" style="left:455px; top:5px; width:90px; height:17px; ">조회기준3</caption>
  1328. <caption id="cp_text4_1" ref="/root/init/rptm_cond/cond4/condcd/mdlnm" class="search_name" visibility="hidden" style="left:685px; top:5px; width:90px; height:17px; ">조회기준4</caption>
  1329. <caption id="cp_text5_1" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:915px; top:5px; width:90px; height:17px; ">조회기준5</caption>
  1330. <caption id="cp_text6_1" ref="/root/init/rptm_cond/cond6/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:29px; width:90px; height:17px; ">조회기준6</caption>
  1331. <caption id="cp_text7_1" ref="/root/init/rptm_cond/cond7/condcd/mdlnm" class="search_name" visibility="hidden" style="left:233px; top:29px; width:90px; height:17px; ">조회기준7</caption>
  1332. <caption id="cp_text8_1" ref="/root/init/rptm_cond/cond8/condcd/mdlnm" class="search_name" visibility="hidden" style="left:455px; top:29px; width:90px; height:17px; ">조회기준8</caption>
  1333. <caption id="cp_text9_1" ref="/root/init/rptm_cond/cond9/condcd/mdlnm" class="search_name" visibility="hidden" style="left:685px; top:29px; width:90px; height:17px; ">조회기준9</caption>
  1334. <caption id="cp_text10_1" ref="/root/init/rptm_cond/cond10/condcd/mdlnm" class="search_name" visibility="hidden" style="left:915px; top:29px; width:90px; height:17px; ">조회기준10</caption>
  1335. <button id="btn_cmmt" class="btn5_letter7" navindex="3" visibility="hidden" style="left:1025px; top:30px; width:97px; height:19px; ">
  1336. <caption>특이사항 입력</caption>
  1337. <script type="javascript" ev:event="DOMActivate">
  1338. <![CDATA[
  1339. group5.visible = true;
  1340. ]]>
  1341. </script>
  1342. </button>
  1343. <button id="btn_download" class="btn4_letter4" navindex="3" visibility="hidden" style="left:972px; top:27px; width:80px; height:22px; ">
  1344. <caption>파일생성</caption>
  1345. <script type="javascript" ev:event="DOMActivate">
  1346. <![CDATA[
  1347. //저장파일명
  1348. var filenm = cb_rpt.item(cb_rpt.focusIndex).label+"("+ ipt_procdd.label+").csv" ;
  1349. model.setValue("/root/send/in_filenm", filenm);
  1350. submit("TXSTC00200");
  1351. btn_log.dispatch("DOMActivate");
  1352. ]]>
  1353. </script>
  1354. </button>
  1355. <button id="btn_log" class="btn4_letter4" navindex="3" visibility="hidden" style="left:1055px; top:27px; width:80px; height:22px; ">
  1356. <caption>생성로그</caption>
  1357. <script type="javascript" ev:event="DOMActivate">
  1358. <![CDATA[
  1359. // 샘생성 배치 로그 확인
  1360. var todd = getCurrentDate();
  1361. todd = todd.toDate().getAddDate(+1, 'D');
  1362. zsbfOpenBatchLogPopup("stspammngtmgr.StsPamQueryBatch",getCurrentDate(),todd.getDateFormat());
  1363. ]]>
  1364. </script>
  1365. </button>
  1366. <input id="ipt_time" ref="/root/send/in_cond5" visibility="hidden" format="#,###" style="left:1015px; top:5px; width:75px; height:19px; text-align:right; "/>
  1367. <caption id="cap_time" class="search_name" visibility="hidden" style="left:915px; top:5px; width:90px; height:17px; ">시간차이</caption>
  1368. <caption id="caption7" visibility="hidden" style="left:1095px; top:6px; width:25px; height:20px; ">분</caption>
  1369. </group>
  1370. <!-- ## 두번째 그룹 -->
  1371. <!-- 컨트롤ID Seq : 2 -->
  1372. <group id="group_c2" visibility="hidden" style="left:0px; top:110px; width:1146px; height:80px; ">
  1373. <shape id="roundrect8" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:80px; "/>
  1374. <input id="input11" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:276px; top:10px; width:80px; height:19px; text-align:center; ">
  1375. <script type="javascript" ev:event="xforms-value-changed">
  1376. <![CDATA[
  1377. //청구차수
  1378. model.setValue("/root/send/in_submit","A");
  1379. submit("TRSTC00901");
  1380. cb_cond7_2.select(0);
  1381. ]]>
  1382. </script>
  1383. </input>
  1384. <input id="input14" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:182px; top:10px; width:80px; height:19px; text-align:center; ">
  1385. <script type="javascript" ev:event="xforms-value-changed">
  1386. <![CDATA[
  1387. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  1388. //청구차수
  1389. model.setValue("/root/send/in_submit","A");
  1390. submit("TRSTC00901");
  1391. cb_cond7_2.select(0);
  1392. ]]>
  1393. </script>
  1394. </input>
  1395. <caption id="cp_text1_2" class="search_name" visibility="hidden" style="left:7px; top:10px; width:90px; height:17px; text-align:left; ">조회기간</caption>
  1396. <caption id="cp_text2_2" class="search_name" visibility="hidden" style="left:414px; top:10px; width:90px; height:17px; ">청구형태</caption>
  1397. <caption id="cp_text3_2" class="search_name" visibility="hidden" style="left:7px; top:39px; width:90px; height:17px; ">보험유형</caption>
  1398. <caption id="cp_text4_2" class="search_name" visibility="hidden" style="left:414px; top:39px; width:90px; height:17px; ">내원유형</caption>
  1399. <caption id="cp_text5_2" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:778px; top:39px; width:90px; height:17px; ">과</caption>
  1400. <caption id="cp_text6_2" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:778px; top:39px; width:90px; height:17px; ">과</caption>
  1401. <select1 id="cb_cond1_2" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:10px; width:80px; height:19px; ">
  1402. <choices>
  1403. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  1404. <label ref="nm"/>
  1405. <value ref="cd"/>
  1406. </itemset>
  1407. </choices>
  1408. <script type="javascript" ev:event="xforms-value-changed">
  1409. <![CDATA[
  1410. model.setValue("/root/send/in_cond7","97");
  1411. submit("TRSTC00901");
  1412. cb_cond7_2.select(0);
  1413. ]]>
  1414. </script>
  1415. </select1>
  1416. <select id="cb_cond2_2" ref="/root/send/in_cond2" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="4" sep="^" style="left:507px; top:10px; width:110px; height:19px; ">
  1417. <choices>
  1418. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  1419. <label ref="nm"/>
  1420. <value ref="cd"/>
  1421. </itemset>
  1422. </choices>
  1423. </select>
  1424. <select id="cb_cond3_2" ref="/root/send/in_cond3" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="5" sep="^" style="left:100px; top:39px; width:110px; height:19px; ">
  1425. <choices>
  1426. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  1427. <label ref="nm"/>
  1428. <value ref="cd"/>
  1429. </itemset>
  1430. </choices>
  1431. </select>
  1432. <select1 id="cb_cond4_2" ref="/root/send/in_cond4" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:507px; top:39px; width:110px; height:19px; ">
  1433. <choices>
  1434. <itemset nodeset="/root/init/rptm_cond/cond4/condcd">
  1435. <label ref="nm"/>
  1436. <value ref="cd"/>
  1437. </itemset>
  1438. </choices>
  1439. </select1>
  1440. <select1 id="cb_cond5_2" ref="/root/send/in_cond5" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:867px; top:39px; width:80px; height:19px; ">
  1441. <choices>
  1442. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  1443. <label ref="nm"/>
  1444. <value ref="cd"/>
  1445. </itemset>
  1446. </choices>
  1447. <script type="javascript" ev:event="xforms-select">
  1448. <![CDATA[
  1449. if (model.getValue("/root/send/in_rptcd") == "RR01149") {
  1450. //시군구
  1451. model.setValue("/root/send/in_submit","C");
  1452. } else {
  1453. if (model.getValue("/root/send/in_cond5") == "01") {
  1454. model.setValue("/root/send/in_submit","E"); //청구과
  1455. } else {
  1456. model.setValue("/root/send/in_submit","F"); //처방과
  1457. }
  1458. }
  1459. submit("TRSTC00700");
  1460. cb_cond6_2.select(0);
  1461. ]]>
  1462. </script>
  1463. </select1>
  1464. <select1 id="cb_cond6_2" ref="/root/send/in_cond6" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:949px; top:39px; width:120px; height:19px; ">
  1465. <choices>
  1466. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  1467. <label ref="nm"/>
  1468. <value ref="cd"/>
  1469. </itemset>
  1470. </choices>
  1471. <script type="javascript" ev:event="xforms-value-changed">
  1472. <![CDATA[
  1473. ]]>
  1474. </script>
  1475. </select1>
  1476. <caption id="caption1" style="left:264px; top:10px; width:15px; height:20px; ">~</caption>
  1477. <select1 id="cb_cond7_2" ref="/root/send/in_cond7" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:867px; top:10px; width:110px; height:19px; ">
  1478. <choices>
  1479. <itemset nodeset="/root/init/rptm_cond/cond7/condcd">
  1480. <label ref="nm"/>
  1481. <value ref="cd"/>
  1482. </itemset>
  1483. </choices>
  1484. </select1>
  1485. <caption id="cp_text7_2" ref="/root/init/rptm_cond/cond7/condcd/mdlnm" class="search_name" visibility="hidden" style="left:778px; top:10px; width:90px; height:17px; ">청구차수</caption>
  1486. <group id="grp_sum" visibility="hidden" style="left:100px; top:60px; width:435px; height:18px; background-color:transparent; ">
  1487. <line id="line1" style="x1:188px; y1:2px; x2:188px; y2:15px; border-color:#000000; border-width:2px; border-left-style:solid; "/>
  1488. <line id="line2" style="x1:297px; y1:2px; x2:297px; y2:15px; border-color:#000000; border-width:2px; border-left-style:solid; "/>
  1489. <select1 id="rdo_sum3" ref="/root/send/in_sum3" appearance="full" cols="2" overflow="visible" style="left:302px; top:1px; width:110px; height:20px; border-style:none; ">
  1490. <choices>
  1491. <item>
  1492. <label>기간</label>
  1493. <value>01</value>
  1494. </item>
  1495. <item>
  1496. <label>청구번호</label>
  1497. <value>02</value>
  1498. </item>
  1499. </choices>
  1500. <script type="javascript" ev:event="xforms-select">
  1501. <![CDATA[
  1502. if (model.getValue("/root/send/in_sum1") == "00") {
  1503. model.setValue("/root/send/in_sum1","01");
  1504. rdo_sum1.refresh();
  1505. }
  1506. if (model.getValue("/root/send/in_sum2") == "00") {
  1507. model.setValue("/root/send/in_sum2","01");
  1508. rdo_sum2.refresh();
  1509. }
  1510. model.setValue("/root/send/in_sum","00");
  1511. rdo_sum.refresh();
  1512. ]]>
  1513. </script>
  1514. </select1>
  1515. <select1 id="rdo_sum1" ref="/root/send/in_sum1" appearance="full" cols="2" overflow="visible" style="left:50px; top:1px; width:135px; height:20px; border-style:none; ">
  1516. <choices>
  1517. <item>
  1518. <label>유형전체</label>
  1519. <value>01</value>
  1520. </item>
  1521. <item>
  1522. <label>유형개별</label>
  1523. <value>02</value>
  1524. </item>
  1525. </choices>
  1526. <script type="javascript" ev:event="xforms-select">
  1527. <![CDATA[
  1528. if (model.getValue("/root/send/in_sum2") == "00") {
  1529. model.setValue("/root/send/in_sum2","01");
  1530. rdo_sum2.refresh();
  1531. }
  1532. if (model.getValue("/root/send/in_sum3") == "00") {
  1533. model.setValue("/root/send/in_sum3","01");
  1534. rdo_sum3.refresh();
  1535. }
  1536. model.setValue("/root/send/in_sum","00");
  1537. rdo_sum.refresh();
  1538. ]]>
  1539. </script>
  1540. </select1>
  1541. <line id="line13" style="x1:45px; y1:2px; x2:45px; y2:15px; border-color:#000000; border-width:2px; border-left-style:solid; "/>
  1542. <select1 id="rdo_sum" ref="/root/send/in_sum" appearance="full" cols="2" overflow="visible" style="left:0px; top:1px; width:39px; height:20px; border-style:none; ">
  1543. <choices>
  1544. <item>
  1545. <label>전체</label>
  1546. <value>01</value>
  1547. </item>
  1548. </choices>
  1549. <script type="javascript" ev:event="xforms-select">
  1550. <![CDATA[
  1551. if (model.getValue("/root/send/in_sum") == "01") {
  1552. model.setValue("/root/send/in_sum1","00");
  1553. model.setValue("/root/send/in_sum2","00");
  1554. model.setValue("/root/send/in_sum3","00");
  1555. rdo_sum1.refresh();
  1556. rdo_sum2.refresh();
  1557. rdo_sum3.refresh();
  1558. }
  1559. ]]>
  1560. </script>
  1561. </select1>
  1562. <select1 id="rdo_sum2" ref="/root/send/in_sum2" appearance="full" cols="3" overflow="visible" style="left:193px; top:1px; width:100px; height:20px; border-style:none; ">
  1563. <choices>
  1564. <item>
  1565. <label>시도</label>
  1566. <value>01</value>
  1567. </item>
  1568. <item>
  1569. <label>시군구</label>
  1570. <value>02</value>
  1571. </item>
  1572. </choices>
  1573. <script type="javascript" ev:event="xforms-select">
  1574. <![CDATA[
  1575. if (model.getValue("/root/send/in_sum1") == "00") {
  1576. model.setValue("/root/send/in_sum1","01");
  1577. rdo_sum1.refresh();
  1578. }
  1579. if (model.getValue("/root/send/in_sum3") == "00") {
  1580. model.setValue("/root/send/in_sum3","01");
  1581. rdo_sum3.refresh();
  1582. }
  1583. model.setValue("/root/send/in_sum","00");
  1584. rdo_sum.refresh();
  1585. ]]>
  1586. </script>
  1587. </select1>
  1588. </group>
  1589. </group>
  1590. <!-- ## 세번째 그룹 -->
  1591. <!-- 컨트롤ID Seq : 3 -->
  1592. <group id="group_c3" visibility="hidden" style="left:0px; top:195px; width:1146px; height:80px; ">
  1593. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:80px; "/>
  1594. <input id="input2" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:276px; top:12px; width:80px; height:19px; text-align:center; ">
  1595. <script type="javascript" ev:event="xforms-value-changed">
  1596. <![CDATA[
  1597. // 청구 차수
  1598. model.setValue("/root/send/in_submit","A");
  1599. submit("TRSTC00900");
  1600. cb_cond6_3.select(0);
  1601. ]]>
  1602. </script>
  1603. </input>
  1604. <input id="input3" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:182px; top:12px; width:80px; height:19px; text-align:center; ">
  1605. <script type="javascript" ev:event="xforms-value-changed">
  1606. <![CDATA[
  1607. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  1608. // 청구 차수
  1609. model.setValue("/root/send/in_submit","A");
  1610. submit("TRSTC00900");
  1611. cb_cond6_3.select(0);
  1612. ]]>
  1613. </script>
  1614. </input>
  1615. <caption id="caption10" style="left:264px; top:12px; width:15px; height:20px; ">~</caption>
  1616. <select1 id="cb_cond1_3" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:12px; width:80px; height:19px; ">
  1617. <choices>
  1618. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  1619. <label ref="nm"/>
  1620. <value ref="cd"/>
  1621. </itemset>
  1622. </choices>
  1623. <script type="javascript" ev:event="xforms-value-changed">
  1624. <![CDATA[
  1625. submit("TRSTC00900");
  1626. cb_cond6_3.select(0);
  1627. ]]>
  1628. </script>
  1629. </select1>
  1630. <select id="cb_cond2_3" ref="/root/send/in_cond2" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="4" sep="^" style="left:550px; top:12px; width:110px; height:19px; ">
  1631. <choices>
  1632. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  1633. <label ref="nm"/>
  1634. <value ref="cd"/>
  1635. </itemset>
  1636. </choices>
  1637. </select>
  1638. <select id="cb_cond4_3" ref="/root/send/in_cond4" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="4" sep="^" style="left:100px; top:42; width:110px; height:19px; ">
  1639. <choices>
  1640. <itemset nodeset="/root/init/rptm_cond/cond4/condcd">
  1641. <label ref="nm"/>
  1642. <value ref="cd"/>
  1643. </itemset>
  1644. </choices>
  1645. </select>
  1646. <caption id="cp_text1_3" class="search_name" visibility="hidden" style="left:7px; top:12px; width:90px; height:17px; ">조회기간</caption>
  1647. <caption id="cp_text4_3" class="search_name" visibility="hidden" style="left:7px; top:42; width:90px; height:17px; ">보험유형</caption>
  1648. <caption id="cp_text2_3" class="search_name" visibility="hidden" style="left:457px; top:12px; width:90px; height:17px; ">청구형태</caption>
  1649. <caption id="cp_text5_3" class="search_name" visibility="hidden" style="left:457px; top:42; width:90px; height:17px; ">내원유형</caption>
  1650. <select1 id="cb_cond5_3" ref="/root/send/in_cond5" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:550px; top:42; width:110px; height:19px; ">
  1651. <choices>
  1652. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  1653. <label ref="nm"/>
  1654. <value ref="cd"/>
  1655. </itemset>
  1656. </choices>
  1657. </select1>
  1658. <select1 id="cb_cond6_3" ref="/root/send/in_cond6" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:950px; top:42px; width:110px; height:19px; ">
  1659. <choices>
  1660. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  1661. <label ref="nm"/>
  1662. <value ref="cd"/>
  1663. </itemset>
  1664. </choices>
  1665. </select1>
  1666. <caption id="cp_text6_3" ref="/root/init/rptm_cond/cond6/condcd/mdlnm" class="search_name" visibility="hidden" style="left:861px; top:42px; width:90px; height:17px; ">청구차수</caption>
  1667. <select1 id="cb_cond3_3" ref="/root/send/in_cond3" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:950px; top:12px; width:110px; height:19px; ">
  1668. <choices>
  1669. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  1670. <label ref="nm"/>
  1671. <value ref="cd"/>
  1672. </itemset>
  1673. </choices>
  1674. </select1>
  1675. <caption id="cp_text3_3" ref="/root/init/rptm_cond/cond3/condcd/mdlnm" class="search_name" visibility="hidden" style="left:861px; top:12px; width:90px; height:17px; ">청구분야</caption>
  1676. </group>
  1677. <!-- ## 네번째 그룹 -->
  1678. <!-- 컨트롤ID Seq : 4 -->
  1679. <group id="group_c4" visibility="hidden" style="left:0px; top:290px; width:1146px; height:80px; ">
  1680. <caption id="cp_text6_4" class="search_name" visibility="hidden" style="left:885px; top:27px; width:90px; height:17px; ">진 료 과</caption>
  1681. <shape id="roundrect7" appearance="roundrect" style="left:0px; top:0px; width:1145px; height:80px; "/>
  1682. <select1 id="cb_cond1_4" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:12px; width:90px; height:19px; ">
  1683. <choices>
  1684. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  1685. <label ref="nm"/>
  1686. <value ref="cd"/>
  1687. </itemset>
  1688. </choices>
  1689. <script type="javascript" ev:event="xforms-select">
  1690. <![CDATA[
  1691. if (model.getValue("/root/send/in_rptcd") == "RR01138") {
  1692. if ( model.getValue("/root/send/in_cond1") == "01" ) {
  1693. input12.attribute("format") = "yyyy-mm";
  1694. input13.attribute("format") = "yyyy-mm";
  1695. }
  1696. if ( model.getValue("/root/send/in_cond1") == "02" ) {
  1697. input12.attribute("format") = "yyyy-mm-dd";
  1698. input13.attribute("format") = "yyyy-mm-dd";
  1699. model.setValue("/root/send/in_fromdd", model.getValue("/root/send/in_fromdd").substr(0,6)+"01");
  1700. model.setValue("/root/send/in_todd", model.getValue("/root/send/in_todd").substr(0,6)+"01");
  1701. }
  1702. input12.refresh();
  1703. input13.refresh();
  1704. }
  1705. ]]>
  1706. </script>
  1707. </select1>
  1708. <select id="cb_cond2_4" ref="/root/send/in_cond2" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="10" sep="^" style="left:550px; top:12px; width:110px; height:19px; ">
  1709. <choices>
  1710. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  1711. <label ref="nm"/>
  1712. <value ref="cd"/>
  1713. </itemset>
  1714. </choices>
  1715. </select>
  1716. <select1 id="cb_cond3_4" ref="/root/send/in_cond3" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:950px; top:12px; width:110px; height:19px; ">
  1717. <choices>
  1718. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  1719. <label ref="nm"/>
  1720. <value ref="cd"/>
  1721. </itemset>
  1722. </choices>
  1723. </select1>
  1724. <select1 id="cb_cond4_4" ref="/root/send/in_cond4" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:550px; top:42; width:110px; height:19px; ">
  1725. <choices>
  1726. <itemset nodeset="/root/init/rptm_cond/cond4/condcd">
  1727. <label ref="nm"/>
  1728. <value ref="cd"/>
  1729. </itemset>
  1730. </choices>
  1731. </select1>
  1732. <select1 id="cb_cond5_4" ref="/root/send/in_cond5" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:950px; top:42px; width:110px; height:19px; ">
  1733. <choices>
  1734. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  1735. <label ref="nm"/>
  1736. <value ref="cd"/>
  1737. </itemset>
  1738. </choices>
  1739. </select1>
  1740. <bool id="cb_cond6_4" navindex="1" visibility="hidden" ref="/root/send/in_cond6" style="left:1060px; top:43px; width:25px; height:19px; ">
  1741. <choices>
  1742. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  1743. <label ref="nm"/>
  1744. <value ref="cd"/>
  1745. </itemset>
  1746. </choices>
  1747. <script type="javascript" ev:event="xforms-value-changed">
  1748. <![CDATA[
  1749. if ( model.getValue("/root/send/in_cond6") == "false" )
  1750. {
  1751. model.setValue("/root/send/in_cond5","00");
  1752. cb_cond5_4.refresh();
  1753. cb_cond5_4.disabled = true;
  1754. }
  1755. else
  1756. cb_cond5_4.disabled = false;
  1757. ]]>
  1758. </script>
  1759. </bool>
  1760. <caption id="cp_text1_4" ref="/root/init/rptm_cond/cond1/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:12px; width:90px; height:17px; ">조회기간</caption>
  1761. <caption id="cp_text2_4" ref="/root/init/rptm_cond/cond2/condcd/mdlnm" class="search_name" visibility="hidden" style="left:457px; top:12px; width:90px; height:17px; ">청구형태</caption>
  1762. <caption id="cp_text3_4" ref="/root/init/rptm_cond/cond3/condcd/mdlnm" class="search_name" visibility="hidden" style="left:861px; top:12px; width:90px; height:17px; ">내원유형</caption>
  1763. <caption id="cp_text4_4" ref="/root/init/rptm_cond/cond4/condcd/mdlnm" class="search_name" visibility="hidden" style="left:457px; top:42; width:90px; height:17px; ">심 사 자</caption>
  1764. <caption id="cp_text5_4" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:861px; top:42px; width:90px; height:17px; ">진 료 과</caption>
  1765. <input id="input12" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:295px; top:12px; width:90px; height:19px; text-align:center; ">
  1766. <script type="javascript" ev:event="xforms-value-changed">
  1767. <![CDATA[
  1768. ]]>
  1769. </script>
  1770. </input>
  1771. <input id="input13" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:192px; top:12px; width:90px; height:19px; text-align:center; ">
  1772. <script type="javascript" ev:event="xforms-value-changed">
  1773. <![CDATA[
  1774. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  1775. input12.refresh();
  1776. ]]>
  1777. </script>
  1778. </input>
  1779. <caption id="caption9" style="left:283px; top:12px; width:15px; height:20px; ">~</caption>
  1780. <select id="cb_cond7_4" ref="/root/send/in_cond7" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="10" sep="^" style="left:100px; top:42px; width:110px; height:19px; ">
  1781. <choices>
  1782. <itemset nodeset="/root/init/rptm_cond/cond7/condcd">
  1783. <label ref="nm"/>
  1784. <value ref="cd"/>
  1785. </itemset>
  1786. </choices>
  1787. </select>
  1788. <caption id="cp_text7_4" class="search_name" visibility="hidden" style="left:7px; top:42; width:90px; height:17px; ">보험유형</caption>
  1789. </group>
  1790. <!-- ## 오번째 그룹 -->
  1791. <!-- 컨트롤ID Seq : 5 -->
  1792. <group id="group_c5" visibility="hidden" style="left:0px; top:380px; width:1146px; height:80px; ">
  1793. <shape id="roundrect9" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:80px; "/>
  1794. <select1 id="cb_cond1_5" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:7px; width:80px; height:19px; ">
  1795. <choices>
  1796. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  1797. <label ref="nm"/>
  1798. <value ref="cd"/>
  1799. </itemset>
  1800. </choices>
  1801. </select1>
  1802. <select id="cb_cond2_5" ref="/root/send/in_cond2" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="10" sep="^" style="left:496px; top:7px; width:110px; height:19px; ">
  1803. <choices>
  1804. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  1805. <label ref="nm"/>
  1806. <value ref="cd"/>
  1807. </itemset>
  1808. </choices>
  1809. </select>
  1810. <select1 id="cb_cond3_5" ref="/root/send/in_cond3" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:950px; top:7px; width:110px; height:19px; ">
  1811. <choices>
  1812. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  1813. <label ref="nm"/>
  1814. <value ref="cd"/>
  1815. </itemset>
  1816. </choices>
  1817. </select1>
  1818. <select1 id="cb_cond4_5" ref="/root/send/in_cond4" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:31; width:110px; height:19px; ">
  1819. <choices>
  1820. <itemset nodeset="/root/init/rptm_cond/cond4/condcd">
  1821. <label ref="nm"/>
  1822. <value ref="cd"/>
  1823. </itemset>
  1824. </choices>
  1825. </select1>
  1826. <select1 id="cb_cond5_5" ref="/root/send/in_cond5" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:496px; top:31px; width:110px; height:19px; ">
  1827. <choices>
  1828. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  1829. <label ref="nm"/>
  1830. <value ref="cd"/>
  1831. </itemset>
  1832. </choices>
  1833. </select1>
  1834. <select1 id="cb_cond6_5" ref="/root/send/in_cond6" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:55px; width:110px; height:19px; ">
  1835. <choices>
  1836. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  1837. <label ref="nm"/>
  1838. <value ref="cd"/>
  1839. </itemset>
  1840. </choices>
  1841. <script type="javascript" ev:event="xforms-value-changed">
  1842. <![CDATA[
  1843. ]]>
  1844. </script>
  1845. </select1>
  1846. <input id="cb_cond7_5" ref="/root/send/in_cond7" class="input_default" navindex="1" visibility="hidden" style="left:496px; top:55px; width:110px; height:19px; ">
  1847. <choices>
  1848. <itemset nodeset="/root/init/rptm_cond/cond7/condcd">
  1849. <label ref="nm"/>
  1850. <value ref="cd"/>
  1851. </itemset>
  1852. </choices>
  1853. </input>
  1854. <input id="cb_cond8_5" ref="/root/send/in_cond8" class="input_search" navindex="1" visibility="hidden" inputtype="button" maxlength="10" style="left:950px; top:55px; width:110px; height:19px; ">
  1855. <choices>
  1856. <itemset nodeset="/root/init/rptm_cond/cond8/condcd">
  1857. <label ref="nm"/>
  1858. <value ref="cd"/>
  1859. </itemset>
  1860. </choices>
  1861. <script type="javascript" ev:event="onbuttonclick">
  1862. <![CDATA[
  1863. var ipt_pid = model.getValue("/root/send/in_cond8");
  1864. if (ipt_pid) {
  1865. model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
  1866. model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
  1867. } else {
  1868. model.resetInstanceNode("/root/hidden/sppmc02500/cond");
  1869. }
  1870. // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
  1871. modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
  1872. var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  1873. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  1874. model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  1875. model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  1876. model.setValue("/root/send/in_cond8", srch_pid);
  1877. }
  1878. model.refresh();
  1879. ]]>
  1880. </script>
  1881. </input>
  1882. <caption id="cp_text1_5" ref="/root/init/rptm_cond/cond1/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:7px; width:90px; height:17px; ">조회기간</caption>
  1883. <caption id="cp_text2_5" ref="/root/init/rptm_cond/cond2/condcd/mdlnm" class="search_name" visibility="hidden" style="left:403px; top:7px; width:90px; height:17px; ">청구형태</caption>
  1884. <caption id="cp_text3_5" ref="/root/init/rptm_cond/cond3/condcd/mdlnm" class="search_name" visibility="hidden" style="left:861px; top:7px; width:90px; height:17px; ">내원유형</caption>
  1885. <caption id="cp_text4_5" ref="/root/init/rptm_cond/cond4/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:31; width:90px; height:17px; ">청구분야</caption>
  1886. <caption id="cp_text5_5" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:403px; top:31px; width:90px; height:17px; ">진료과</caption>
  1887. <caption id="cp_text6_5" class="search_name" visibility="hidden" style="left:7px; top:55px; width:90px; height:17px; ">조건</caption>
  1888. <caption id="cp_text7_5" class="search_name" visibility="hidden" style="left:403px; top:55px; width:90px; height:17px; ">접수번호</caption>
  1889. <caption id="cp_text8_5" class="search_name" visibility="hidden" style="left:831px; top:55px; width:102px; height:17px; ">환자단위조회</caption>
  1890. <input id="input16" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:276px; top:7px; width:80px; height:19px; text-align:center; ">
  1891. <script type="javascript" ev:event="xforms-value-changed">
  1892. <![CDATA[
  1893. // 청구차수
  1894. model.setValue("/root/send/in_submit","A");
  1895. submit("TRSTC00902");
  1896. cb_cond9_5.select(0);
  1897. ]]>
  1898. </script>
  1899. </input>
  1900. <input id="input17" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:182px; top:7px; width:80px; height:19px; text-align:center; ">
  1901. <script type="javascript" ev:event="xforms-value-changed">
  1902. <![CDATA[
  1903. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  1904. // 청구차수
  1905. model.setValue("/root/send/in_submit","A");
  1906. submit("TRSTC00902");
  1907. cb_cond9_5.select(0);
  1908. ]]>
  1909. </script>
  1910. </input>
  1911. <caption id="caption12" style="left:264px; top:7px; width:15px; height:20px; ">~</caption>
  1912. <select1 id="cb_cond9_5" ref="/root/send/in_cond9" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:950px; top:31px; width:110px; height:19px; ">
  1913. <choices>
  1914. <itemset nodeset="/root/init/rptm_cond/cond9/condcd">
  1915. <label ref="nm"/>
  1916. <value ref="cd"/>
  1917. </itemset>
  1918. </choices>
  1919. </select1>
  1920. <caption id="cp_text9_5" ref="/root/init/rptm_cond/cond9/condcd/mdlnm" class="search_name" visibility="hidden" style="left:861px; top:31px; width:90px; height:17px; ">청구차수</caption>
  1921. </group>
  1922. <!-- ## 육번째 그룹 -->
  1923. <!-- 컨트롤ID Seq : 6 -->
  1924. <group id="group_c6" visibility="hidden" style="left:0px; top:470px; width:1146px; height:80px; ">
  1925. <shape id="roundrect11" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:80px; "/>
  1926. <select1 id="cb_cond1_6" ref="/root/send/in_cond1" class="combo_search" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:96px; top:7px; width:80px; height:19px; background-color:transparent; border-style:none; ">
  1927. <choices>
  1928. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  1929. <label ref="nm"/>
  1930. <value ref="cd"/>
  1931. </itemset>
  1932. </choices>
  1933. <script type="javascript" ev:event="xforms-select">
  1934. <![CDATA[
  1935. if ( model.getValue("/root/send/in_cond1") == "01" )
  1936. {
  1937. input20.disabled = true;
  1938. input21.disabled = true;
  1939. cb_cond2_6.select(0)
  1940. cb_cond2_6.disabled = true;
  1941. cb_cond5_6.disabled = true;
  1942. cb_cond6_6.disabled = true;
  1943. cb_cond7_6.disabled = true;
  1944. model.setValue("/root/send/in_cond5","00");
  1945. model.setValue("/root/send/in_cond7","00");
  1946. }
  1947. else
  1948. {
  1949. input20.disabled = false;
  1950. input21.disabled = false;
  1951. cb_cond2_6.select(0)
  1952. cb_cond2_6.disabled = false;
  1953. cb_cond5_6.disabled = false;
  1954. cb_cond6_6.disabled = false;
  1955. cb_cond7_6.disabled = false;
  1956. model.setValue("/root/send/in_cond5","01");
  1957. model.setValue("/root/send/in_cond7","01");
  1958. model.setFocus("input21");
  1959. }
  1960. model.refresh();
  1961. ]]>
  1962. </script>
  1963. </select1>
  1964. <select1 id="cb_cond2_6" ref="/root/send/in_cond2" class="combo_search" navindex="3" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:578px; top:7px; width:110px; height:19px; ">
  1965. <choices>
  1966. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  1967. <label ref="nm"/>
  1968. <value ref="cd"/>
  1969. </itemset>
  1970. </choices>
  1971. </select1>
  1972. <select1 id="cb_cond3_6" ref="/root/send/in_cond3" class="combo_search" navindex="4" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:796px; top:7px; width:110px; height:19px; ">
  1973. <choices>
  1974. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  1975. <label ref="nm"/>
  1976. <value ref="cd"/>
  1977. </itemset>
  1978. </choices>
  1979. </select1>
  1980. <select1 id="cb_cond4_6" ref="/root/send/in_cond4" class="combo_search" navindex="5" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:1015px; top:7px; width:110px; height:19px; ">
  1981. <choices>
  1982. <itemset nodeset="/root/init/rptm_cond/cond4/condcd">
  1983. <label ref="nm"/>
  1984. <value ref="cd"/>
  1985. </itemset>
  1986. </choices>
  1987. </select1>
  1988. <caption id="cp_text1_6" ref="/root/init/rptm_cond/cond1/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:7px; width:90px; height:17px; ">조회기준1</caption>
  1989. <caption id="cp_text2_6" ref="/root/init/rptm_cond/cond2/condcd/mdlnm" class="search_name" visibility="hidden" style="left:486px; top:7px; width:90px; height:17px; ">조회기준2</caption>
  1990. <caption id="cp_text3_6" ref="/root/init/rptm_cond/cond3/condcd/mdlnm" class="search_name" visibility="hidden" style="left:711px; top:7px; width:90px; height:17px; ">조회기준3</caption>
  1991. <caption id="cp_text4_6" ref="/root/init/rptm_cond/cond4/condcd/mdlnm" class="search_name" visibility="hidden" style="left:927px; top:7px; width:90px; height:17px; ">조회기준4</caption>
  1992. <input id="input20" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:377px; top:7px; width:90px; height:19px; text-align:center; "/>
  1993. <input id="input21" ref="/root/send/in_fromdd" class="input_search" navindex="1" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:272px; top:7px; width:90px; height:19px; text-align:center; ">
  1994. <script type="javascript" ev:event="onkeyup">
  1995. <![CDATA[
  1996. ]]>
  1997. </script>
  1998. <script type="javascript" ev:event="xforms-value-changed">
  1999. <![CDATA[
  2000. model.setFocus("input20");
  2001. ]]>
  2002. </script>
  2003. </input>
  2004. <caption id="caption15" style="left:364px; top:7px; width:15px; height:20px; ">~</caption>
  2005. <caption id="caption2" style="left:95px; top:36px; width:278px; height:20px; ">재원의 경우 금액 정보는 온라인상 누적금액 전체</caption>
  2006. <caption id="caption3" style="left:505px; top:36px; width:406px; height:28px; ">
  2007. <![CDATA[퇴원의 경우 어제 퇴원한 환자까지 적용됨(가퇴원 포함, 6시간 미만건 제외)
  2008. ]]>
  2009. </caption>
  2010. <caption id="caption4" style="left:231px; top:49px; width:278px; height:25px; ">어제 진료내역까지 적용됨</caption>
  2011. <caption id="cp_text5_6" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:927px; top:36px; width:90px; height:17px; ">조회기준5</caption>
  2012. <select id="cb_cond5_6" ref="/root/send/in_cond5" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="10" sep="^" style="left:1015px; top:36px; width:110px; height:19px; ">
  2013. <choices>
  2014. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  2015. <label ref="nm"/>
  2016. <value ref="cd"/>
  2017. </itemset>
  2018. </choices>
  2019. </select>
  2020. <select1 id="cb_cond6_6" ref="/root/send/in_cond6" class="combo_search" navindex="3" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:190px; top:7px; width:80px; height:19px; ">
  2021. <choices>
  2022. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  2023. <label ref="nm"/>
  2024. <value ref="cd"/>
  2025. </itemset>
  2026. </choices>
  2027. </select1>
  2028. <caption id="cp_text6_6" ref="/root/init/rptm_cond/cond6/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:7px; width:90px; height:17px; ">조회기준1</caption>
  2029. <select id="cb_cond7_6" ref="/root/send/in_cond7" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="10" sep="^" style="left:1015px; top:55px; width:110px; height:19px; ">
  2030. <choices>
  2031. <itemset nodeset="/root/init/rptm_cond/cond7/condcd">
  2032. <label ref="nm"/>
  2033. <value ref="cd"/>
  2034. </itemset>
  2035. </choices>
  2036. </select>
  2037. <caption id="cp_text7_6" ref="/root/init/rptm_cond/cond7/condcd/mdlnm" class="search_name" visibility="hidden" style="left:927px; top:36px; width:90px; height:17px; ">조회기준5</caption>
  2038. </group>
  2039. <!-- ## 칠번째 그룹 -->
  2040. <!-- 컨트롤ID Seq : 7 -->
  2041. <group id="group_c7" visibility="hidden" style="left:0px; top:560px; width:1146px; height:80px; ">
  2042. <shape id="roundrect4" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:80px; "/>
  2043. <caption id="cp_text1_7" ref="/root/init/rptm_cond/cond1/condcd/mdlnm" class="search_name" visibility="visible" style="left:7px; top:15px; width:90px; height:17px; "/>
  2044. <input id="input4" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:337px; top:15px; width:90px; height:19px; text-align:center; ">
  2045. <script type="javascript" ev:event="xforms-value-changed">
  2046. <![CDATA[
  2047. // 청구차수
  2048. model.setValue("/root/send/in_submit","A");
  2049. submit("TRSTC00901");
  2050. cb_cond7_7.select(0);
  2051. ]]>
  2052. </script>
  2053. </input>
  2054. <input id="input5" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:231px; top:15px; width:90px; height:19px; text-align:center; ">
  2055. <script type="javascript" ev:event="xforms-value-changed">
  2056. <![CDATA[
  2057. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  2058. // 청구차수
  2059. model.setValue("/root/send/in_submit","A");
  2060. submit("TRSTC00901");
  2061. cb_cond7_7.select(0);
  2062. ]]>
  2063. </script>
  2064. </input>
  2065. <caption id="caption5" style="left:324px; top:15px; width:15px; height:20px; ">~</caption>
  2066. <select id="cb_cond2_7" ref="/root/send/in_cond2" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="10" sep="^" style="left:90px; top:47px; width:110px; height:19px; ">
  2067. <choices>
  2068. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  2069. <label ref="nm"/>
  2070. <value ref="cd"/>
  2071. </itemset>
  2072. </choices>
  2073. </select>
  2074. <caption id="cp_text2_7" ref="/root/init/rptm_cond/cond2/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:47px; width:90px; height:17px; ">청구형태</caption>
  2075. <select1 id="cb_cond1_7" ref="/root/send/in_cond1" class="combo_search" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:90px; top:9px; width:80px; height:19px; background-color:transparent; border-style:none; ">
  2076. <choices>
  2077. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  2078. <label ref="nm"/>
  2079. <value ref="cd"/>
  2080. </itemset>
  2081. </choices>
  2082. <script type="javascript" ev:event="xforms-select">
  2083. <![CDATA[
  2084. if ( model.getValue("/root/send/in_cond1") == "01" || model.getValue("/root/send/in_cond1") == "02")
  2085. {
  2086. input4.attribute("format") = "yyyy-mm";
  2087. input4.attribute("inputtype") = "date";
  2088. input5.attribute("format") = "yyyy-mm";
  2089. input5.attribute("inputtype") = "date";
  2090. }
  2091. else
  2092. {
  2093. input4.attribute("maxlength") = 8;
  2094. input4.attribute("format") = "";
  2095. input4.attribute("inputtype") = "";
  2096. input5.attribute("maxlength") = 8;
  2097. input5.attribute("format") = "";
  2098. input5.attribute("inputtype") = "";
  2099. }
  2100. input4.refresh();
  2101. input5.refresh();
  2102. ]]>
  2103. </script>
  2104. </select1>
  2105. <select1 id="cb_cond3_7" ref="/root/send/in_cond3" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:550px; top:15px; width:110px; height:19px; ">
  2106. <choices>
  2107. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  2108. <label ref="nm"/>
  2109. <value ref="cd"/>
  2110. </itemset>
  2111. </choices>
  2112. </select1>
  2113. <caption id="cp_text3_7" ref="/root/init/rptm_cond/cond3/condcd/mdlnm" class="search_name" visibility="hidden" style="left:460px; top:15px; width:90px; height:17px; ">내원유형</caption>
  2114. <select1 id="cb_cond5_7" ref="/root/send/in_cond5" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:1000px; top:15px; width:110px; height:19px; ">
  2115. <choices>
  2116. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  2117. <label ref="nm"/>
  2118. <value ref="cd"/>
  2119. </itemset>
  2120. </choices>
  2121. <script type="javascript" ev:event="xforms-select">
  2122. <![CDATA[
  2123. //시군구
  2124. model.setValue("/root/send/in_submit","C");
  2125. submit("TRSTC00700");
  2126. cb_cond6_7.select(0);
  2127. ]]>
  2128. </script>
  2129. </select1>
  2130. <caption id="cp_text5_7" class="search_name" visibility="hidden" style="left:920px; top:15px; width:90px; height:17px; ">시도</caption>
  2131. <select1 id="cb_cond6_7" ref="/root/send/in_cond6" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:1000px; top:47px; width:110px; height:19px; ">
  2132. <choices>
  2133. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  2134. <label ref="nm"/>
  2135. <value ref="cd"/>
  2136. </itemset>
  2137. </choices>
  2138. </select1>
  2139. <caption id="cp_text6_7" class="search_name" visibility="hidden" style="left:920px; top:47px; width:90px; height:17px; ">시군구</caption>
  2140. <select1 id="cb_cond7_7" ref="/root/send/in_cond7" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:780px; top:15px; width:110px; height:19px; ">
  2141. <choices>
  2142. <itemset nodeset="/root/init/rptm_cond/cond7/condcd">
  2143. <label ref="nm"/>
  2144. <value ref="cd"/>
  2145. </itemset>
  2146. </choices>
  2147. </select1>
  2148. <caption id="cp_text7_7" ref="/root/init/rptm_cond/cond7/condcd/mdlnm" class="search_name" visibility="hidden" style="left:690px; top:15px; width:90px; height:17px; ">청구차수</caption>
  2149. <caption id="cp_text4_7" class="search_name" visibility="visible" style="left:460px; top:47px; width:90px; height:17px; ">접수번호</caption>
  2150. <caption id="cp_text8_7" class="search_name" visibility="visible" style="left:690px; top:47px; width:107px; height:17px; ">환자번호</caption>
  2151. <input id="cb_cond4_7" ref="/root/send/in_cond4" class="input_default" navindex="1" visibility="visible" style="left:550px; top:47px; width:110px; height:19px; ">
  2152. <choices>
  2153. <itemset nodeset="/root/init/rptm_cond/cond4/condcd">
  2154. <label ref="nm"/>
  2155. <value ref="cd"/>
  2156. </itemset>
  2157. </choices>
  2158. </input>
  2159. <input id="cb_cond8_7" ref="/root/send/in_cond8" class="input_default" navindex="1" visibility="visible" style="left:780px; top:47px; width:110px; height:19px; ">
  2160. <choices>
  2161. <itemset nodeset="/root/init/rptm_cond/cond8/condcd">
  2162. <label ref="nm"/>
  2163. <value ref="cd"/>
  2164. </itemset>
  2165. </choices>
  2166. </input>
  2167. </group>
  2168. <group id="group_c8" visibility="hidden" style="left:0px; top:660px; width:1146px; height:80px; ">
  2169. <shape id="roundrect5" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:80px; "/>
  2170. <input id="input8" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:276px; top:6px; width:80px; height:19px; text-align:center; ">
  2171. <script type="javascript" ev:event="xforms-value-changed">
  2172. <![CDATA[
  2173. // 청구 차수
  2174. model.setValue("/root/send/in_submit","A");
  2175. submit("TRSTC00903");
  2176. cb_cond8_8.select(0);
  2177. ]]>
  2178. </script>
  2179. </input>
  2180. <caption id="caption8" style="left:264px; top:6px; width:15px; height:20px; ">~</caption>
  2181. <input id="input9" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:182px; top:6px; width:80px; height:19px; text-align:center; ">
  2182. <script type="javascript" ev:event="xforms-value-changed">
  2183. <![CDATA[
  2184. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  2185. input8.refresh();
  2186. // 청구 차수
  2187. model.setValue("/root/send/in_submit","A");
  2188. submit("TRSTC00903");
  2189. cb_cond8_8.select(0);
  2190. ]]>
  2191. </script>
  2192. <script type="javascript" ev:event="onkeyup">
  2193. <![CDATA[
  2194. if(event.keyCode == "13") {
  2195. model.setFocus("input8");
  2196. }
  2197. ]]>
  2198. </script>
  2199. </input>
  2200. <caption id="caption18" ref="/root/init/rptm_grid/ret_cmmt/out_cmmt" style="left:10px; top:56px; width:805px; height:20px; ">...</caption>
  2201. <select1 id="cb_cond1_8" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:6px; width:80px; height:19px; ">
  2202. <choices>
  2203. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  2204. <label ref="nm"/>
  2205. <value ref="cd"/>
  2206. </itemset>
  2207. </choices>
  2208. </select1>
  2209. <caption id="cp_text1_8" class="search_name" visibility="hidden" style="left:7px; top:6px; width:90px; height:17px; ">조회기간</caption>
  2210. <select id="cb_cond2_8" ref="/root/send/in_cond2" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="4" sep="^" style="left:502px; top:6px; width:110px; height:19px; ">
  2211. <choices>
  2212. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  2213. <label ref="nm"/>
  2214. <value ref="cd"/>
  2215. </itemset>
  2216. </choices>
  2217. </select>
  2218. <caption id="cp_text2_8" class="search_name" visibility="hidden" style="left:409px; top:6px; width:90px; height:17px; ">청구형태</caption>
  2219. <select id="cb_cond3_8" ref="/root/send/in_cond3" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="4" sep="^" style="left:100px; top:31px; width:110px; height:19px; ">
  2220. <choices>
  2221. <itemset nodeset="/root/init/rptm_cond/cond3/condcd">
  2222. <label ref="nm"/>
  2223. <value ref="cd"/>
  2224. </itemset>
  2225. </choices>
  2226. </select>
  2227. <caption id="cp_text3_8" class="search_name" visibility="hidden" style="left:7px; top:31px; width:90px; height:17px; ">보험유형</caption>
  2228. <input id="cb_cond4_8" ref="/root/send/in_fromdd2" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm-dd" style="left:502px; top:31px; width:90px; height:19px; text-align:center; ">
  2229. <script type="javascript" ev:event="xforms-value-changed">
  2230. <![CDATA[
  2231. ]]>
  2232. </script>
  2233. </input>
  2234. <caption id="cp_text4_8" class="search_name" visibility="hidden" style="left:409px; top:31px; width:90px; height:17px; ">기준일시</caption>
  2235. <select1 id="cb_cond5_8" ref="/root/send/in_cond5" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:910px; top:31px; width:80px; height:19px; ">
  2236. <choices>
  2237. <itemset nodeset="/root/init/rptm_cond/cond5/condcd">
  2238. <label ref="nm"/>
  2239. <value ref="cd"/>
  2240. </itemset>
  2241. </choices>
  2242. <script type="javascript" ev:event="xforms-select">
  2243. <![CDATA[
  2244. if (model.getValue("/root/send/in_cond5") == "01") {
  2245. model.setValue("/root/send/in_submit","E"); //청구과
  2246. } else {
  2247. model.setValue("/root/send/in_submit","F"); //처방과
  2248. }
  2249. submit("TRSTC00700");
  2250. cb_cond6_8.select(0);
  2251. ]]>
  2252. </script>
  2253. </select1>
  2254. <select1 id="cb_cond6_8" ref="/root/send/in_cond6" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:992px; top:31px; width:120px; height:19px; ">
  2255. <choices>
  2256. <itemset nodeset="/root/init/rptm_cond/cond6/condcd">
  2257. <label ref="nm"/>
  2258. <value ref="cd"/>
  2259. </itemset>
  2260. </choices>
  2261. <script type="javascript" ev:event="xforms-value-changed">
  2262. <![CDATA[
  2263. ]]>
  2264. </script>
  2265. </select1>
  2266. <caption id="cp_text5_8" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:821px; top:31px; width:90px; height:17px; ">과</caption>
  2267. <select id="cb_cond7_8" ref="/root/send/in_cond7" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="4" sep="^" style="left:597px; top:32px; width:90px; height:19px; ">
  2268. <choices>
  2269. <item>
  2270. <label>보류건 제외</label>
  2271. <value>01</value>
  2272. </item>
  2273. </choices>
  2274. </select>
  2275. <caption id="cp_text7_8" class="search_name" visibility="hidden" style="left:409px; top:31px; width:90px; height:17px; ">기준일시</caption>
  2276. <caption id="cp_text6_8" ref="/root/init/rptm_cond/cond5/condcd/mdlnm" class="search_name" visibility="hidden" style="left:821px; top:31px; width:90px; height:17px; ">과</caption>
  2277. <select1 id="cb_cond8_8" ref="/root/send/in_cond8" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:910px; top:6px; width:110px; height:19px; ">
  2278. <choices>
  2279. <itemset nodeset="/root/init/rptm_cond/cond8/condcd">
  2280. <label ref="nm"/>
  2281. <value ref="cd"/>
  2282. </itemset>
  2283. </choices>
  2284. </select1>
  2285. <caption id="cp_text8_8" ref="/root/init/rptm_cond/cond8/condcd/mdlnm" class="search_name" visibility="hidden" style="left:821px; top:6px; width:90px; height:17px; ">청구차수</caption>
  2286. <select id="cb_cond9_8" ref="/root/send/in_cond9" navindex="1" visibility="hidden" overflow="visible" appearance="full" cols="4" sep="^" style="left:682px; top:32px; width:90px; height:19px; ">
  2287. <choices>
  2288. <item>
  2289. <label>반송건 제외</label>
  2290. <value>01</value>
  2291. </item>
  2292. </choices>
  2293. </select>
  2294. <caption id="cp_text9_8" class="search_name" visibility="hidden" style="left:409px; top:31px; width:90px; height:17px; ">기준일시</caption>
  2295. <caption id="cp_text10_8" ref="/root/init/rptm_cond/cond10/condcd/mdlnm" class="search_name" visibility="hidden" style="left:821px; top:56px; width:90px; height:17px; ">청구분야</caption>
  2296. <select1 id="cb_cond10_8" ref="/root/send/in_cond10" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:910px; top:56px; width:110px; height:19px; ">
  2297. <choices>
  2298. <itemset nodeset="/root/init/rptm_cond/cond10/condcd">
  2299. <label ref="nm"/>
  2300. <value ref="cd"/>
  2301. </itemset>
  2302. </choices>
  2303. </select1>
  2304. </group>
  2305. <group id="group_c9" visibility="hidden" style="left:0px; top:765px; width:1146px; height:80px; ">
  2306. <shape id="roundrect6" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:80px; "/>
  2307. <input id="input10" ref="/root/send/in_todd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:295px; top:12px; width:90px; height:19px; text-align:center; ">
  2308. <script type="javascript" ev:event="xforms-value-changed">
  2309. <![CDATA[
  2310. ]]>
  2311. </script>
  2312. </input>
  2313. <caption id="caption11" style="left:283px; top:12px; width:15px; height:20px; ">~</caption>
  2314. <input id="input15" ref="/root/send/in_fromdd" class="input_search" navindex="2" visibility="visible" inputtype="date" format="yyyy-mm" style="left:192px; top:12px; width:90px; height:19px; text-align:center; ">
  2315. <script type="javascript" ev:event="xforms-value-changed">
  2316. <![CDATA[
  2317. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  2318. ]]>
  2319. </script>
  2320. </input>
  2321. <caption id="cp_text1_9" class="search_name" visibility="hidden" style="left:7px; top:12px; width:90px; height:17px; ">조회기준</caption>
  2322. <caption id="cp_text2_9" class="search_name" visibility="hidden" style="left:457px; top:12px; width:90px; height:17px; ">보험유형</caption>
  2323. <select1 id="cb_cond1_9" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:100px; top:12px; width:90px; height:19px; ">
  2324. <choices>
  2325. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  2326. <label ref="nm"/>
  2327. <value ref="cd"/>
  2328. </itemset>
  2329. </choices>
  2330. <script type="javascript" ev:event="xforms-select">
  2331. <![CDATA[
  2332. if (model.getValue("/root/send/in_rptcd") == "RR01138") {
  2333. if ( model.getValue("/root/send/in_cond1") == "01" ) {
  2334. input15.attribute("format") = "yyyy-mm";
  2335. input10.attribute("format") = "yyyy-mm";
  2336. }
  2337. if ( model.getValue("/root/send/in_cond1") == "02" ) {
  2338. input15.attribute("format") = "yyyy-mm-dd";
  2339. input10.attribute("format") = "yyyy-mm-dd";
  2340. model.setValue("/root/send/in_fromdd", model.getValue("/root/send/in_fromdd").substr(0,6)+"01");
  2341. model.setValue("/root/send/in_todd", model.getValue("/root/send/in_todd").substr(0,6)+"01");
  2342. }
  2343. input15.refresh();
  2344. input10.refresh();
  2345. }
  2346. ]]>
  2347. </script>
  2348. </select1>
  2349. <select1 id="cb_cond2_9" ref="/root/send/in_cond2" appearance="full" cols="4" overflow="visible" style="left:555px; top:12px; width:100px; height:20px; border-style:none; ">
  2350. <choices>
  2351. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  2352. <label ref="nm"/>
  2353. <value ref="cd"/>
  2354. </itemset>
  2355. </choices>
  2356. <script type="javascript" ev:event="xforms-select">
  2357. <![CDATA[
  2358. if (model.getValue("/root/send/in_cond2") == "01" )
  2359. {
  2360. dgrd_rpt.colhidden(15) = true;
  2361. } else
  2362. {
  2363. dgrd_rpt.colhidden(15) = false;
  2364. }
  2365. dgrd_rpt.refresh();
  2366. ]]>
  2367. </script>
  2368. </select1>
  2369. </group>
  2370. <group id="group_c10" visibility="hidden" style="left:0px; top:865px; width:1146px; height:55px; ">
  2371. <shape id="roundrect10" appearance="roundrect" style="left:0px; top:0px; width:1143px; height:55px; "/>
  2372. <select1 id="cb_cond1_10" ref="/root/send/in_cond1" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:112px; top:5px; width:110px; height:19px; ">
  2373. <choices>
  2374. <itemset nodeset="/root/init/rptm_cond/cond1/condcd">
  2375. <label ref="nm"/>
  2376. <value ref="cd"/>
  2377. </itemset>
  2378. </choices>
  2379. <script type="javascript" ev:event="xforms-value-changed">
  2380. <![CDATA[
  2381. var tmp = model.getValue("/root/init/rptInfo/rptInfoList/cond1");
  2382. if(tmp == '9999'){
  2383. var con1Value = cb_cond1_1.value ;
  2384. submit("TRSTC01200");
  2385. }
  2386. ]]>
  2387. </script>
  2388. <script type="javascript" ev:event="xforms-select">
  2389. <![CDATA[
  2390. // 진료실적(일보,월보)
  2391. if (model.getValue("/root/send/in_rptcd") == "RR00701") {
  2392. // 일보
  2393. if ( model.getValue("/root/send/in_cond1") == "01" ) {
  2394. ipt_procdd.value = getCurrentDate();
  2395. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  2396. model.setValue("/root/send/in_todd",model.getValue("/root/send/in_fromdd"));
  2397. cb_cond2_1.disabled=true;
  2398. btn_cmmt.disabled=false;
  2399. button2.disabled=false;
  2400. // btn_print2.disabled=false;
  2401. } // 월보
  2402. else if ( model.getValue("/root/send/in_cond1") == "02" ) {
  2403. ipt_procdd.value = getCurrentDate();
  2404. ipt_procdd.attribute("format") = "yyyy-mm";
  2405. model.setValue("/root/send/in_fromdd",model.getValue("/root/send/in_fromdd").substr(0,6)+"01");
  2406. var FirstDate = model.getValue("/root/send/in_fromdd")
  2407. var LastDate = FirstDate.toDate("YYYYMMDD")
  2408. LastDate = LastDate.getAddDate(1,"M").getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
  2409. model.setValue("/root/send/in_todd",LastDate);
  2410. cb_cond2_1.disabled=true;
  2411. btn_cmmt.disabled=true;
  2412. button2.disabled=true;
  2413. // btn_print2.disabled=true;
  2414. } //년보
  2415. else if ( model.getValue("/root/send/in_cond1") == "03" ) {
  2416. ipt_procdd.value = getCurrentDate();
  2417. ipt_procdd.attribute("format") = "yyyy";
  2418. model.setValue("/root/send/in_fromdd",model.getValue("/root/send/in_fromdd").substr(0,4)+"0101");
  2419. var FirstDate = model.getValue("/root/send/in_fromdd")
  2420. var LastDate = FirstDate.toDate("YYYYMMDD")
  2421. LastDate = LastDate.getAddDate(1,"Y").getAddDate(-1,"D").getDateFormat("YYYYMMDD") ;
  2422. model.setValue("/root/send/in_todd",LastDate);
  2423. cb_cond2_1.disabled=true;
  2424. btn_cmmt.disabled=true;
  2425. button2.disabled=true;
  2426. // btn_print2.disabled=true;
  2427. }
  2428. setgridcaption();
  2429. ipt_procdd.refresh();
  2430. cb_cond2_1.refresh();
  2431. } else if (model.getValue("/root/send/in_rptcd") == "RR00835"
  2432. || model.getValue("/root/send/in_rptcd") == "RR00842"
  2433. || model.getValue("/root/send/in_rptcd") == "RR00837"
  2434. || model.getValue("/root/send/in_rptcd") == "RR00836") {
  2435. if ( model.getValue("/root/send/in_cond1") == "02" ) {
  2436. ipt_procdd.visible = true;
  2437. input1.visible = false;
  2438. ipt_procdd.attribute("format") = "yyyy-mm";
  2439. input1.value = ipt_procdd.value;
  2440. } else {
  2441. ipt_procdd.visible = true;
  2442. input1.visible = true;
  2443. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  2444. }
  2445. model.refresh();
  2446. } else if (model.getValue("/root/send/in_rptcd") == "RR00839") {
  2447. if ( model.getValue("/root/send/in_cond1") == "02" ) {
  2448. messageBox("외래처방선수금은 월별 조회를 할 수 없습니다. 다시 " , "C001");
  2449. model.setValue("/root/send/in_cond1","01");
  2450. model.refresh();
  2451. }
  2452. }
  2453. ]]>
  2454. </script>
  2455. </select1>
  2456. <select1 id="cb_cond2_10" ref="/root/send/in_cond2" class="combo_search" navindex="1" visibility="hidden" appearance="minimal" editmode="search" itemcount="20" style="left:330px; top:5px; width:110px; height:19px; ">
  2457. <choices>
  2458. <itemset nodeset="/root/init/rptm_cond/cond2/condcd">
  2459. <label ref="nm"/>
  2460. <value ref="cd"/>
  2461. </itemset>
  2462. </choices>
  2463. <script type="javascript" ev:event="xforms-select">
  2464. <![CDATA[
  2465. // 진료실적(일보,월보)
  2466. if (model.getValue("/root/send/in_rptcd") == "RR00701") {
  2467. setgridcaption();
  2468. } else if (model.getValue("/root/send/in_rptcd") == "RR00834") {
  2469. if ( model.getValue("/root/send/in_cond2") == "02" ) {
  2470. ipt_procdd.visible = true;
  2471. input1.visible = false;
  2472. ipt_procdd.attribute("format") = "yyyy-mm";
  2473. input1.value = ipt_procdd.value;
  2474. } else {
  2475. ipt_procdd.visible = true;
  2476. input1.visible = true;
  2477. ipt_procdd.attribute("format") = "yyyy-mm-dd";
  2478. }
  2479. model.refresh();
  2480. }
  2481. ]]>
  2482. </script>
  2483. </select1>
  2484. <caption id="cp_text1_10" ref="/root/init/rptm_cond/cond1/condcd/mdlnm" class="search_name" visibility="hidden" style="left:7px; top:5px; width:90px; height:17px; ">진료구분</caption>
  2485. <caption id="cp_text2_10" ref="/root/init/rptm_cond/cond2/condcd/mdlnm" class="search_name" visibility="hidden" style="left:233px; top:5px; width:90px; height:17px; ">할인구분</caption>
  2486. <button id="btn_download1" class="btn4_letter4" navindex="3" visibility="hidden" style="left:970px; top:27px; width:80px; height:22px; ">
  2487. <caption>파일생성</caption>
  2488. <script type="javascript" ev:event="DOMActivate">
  2489. <![CDATA[
  2490. //저장파일명
  2491. var filenm = cb_rpt.item(cb_rpt.focusIndex).label+"("+ ipt_procdd.label+").csv" ;
  2492. model.setValue("/root/send/in_filenm", filenm);
  2493. submit("TXSTC00200");
  2494. btn_log.dispatch("DOMActivate");
  2495. ]]>
  2496. </script>
  2497. </button>
  2498. <button id="btn_log1" class="btn4_letter4" navindex="3" visibility="hidden" style="left:1055px; top:27px; width:80px; height:22px; ">
  2499. <caption>생성로그</caption>
  2500. <script type="javascript" ev:event="DOMActivate">
  2501. <![CDATA[
  2502. // 샘생성 배치 로그 확인
  2503. var todd = getCurrentDate();
  2504. todd = todd.toDate().getAddDate(+1, 'D');
  2505. zsbfOpenBatchLogPopup("stspammngtmgr.StsPamQueryBatch",getCurrentDate(),todd.getDateFormat());
  2506. ]]>
  2507. </script>
  2508. </button>
  2509. <caption id="caption16" class="search_name" style="left:455px; top:5px; width:95px; height:17px; ">대상구분</caption>
  2510. <select1 id="radio1" ref="/root/send/in_cond3" appearance="full" cols="3" overflow="visible" style="left:540px; top:8px; width:170px; height:15px; border-style:none; ">
  2511. <choices>
  2512. <item>
  2513. <label>전체</label>
  2514. <value/>
  2515. </item>
  2516. <item>
  2517. <label>환자별</label>
  2518. <value>P</value>
  2519. </item>
  2520. <item>
  2521. <label>사원별</label>
  2522. <value>E</value>
  2523. </item>
  2524. </choices>
  2525. </select1>
  2526. <input id="ipt_srchcode" ref="/root/send/in_cond4" style="left:710px; top:5px; width:85px; height:19px; "/>
  2527. <button id="button3" class="icon_search" style="left:800px; top:5px; width:16px; height:16px; ">
  2528. <caption/>
  2529. <script type="javascript" ev:event="DOMActivate">
  2530. <![CDATA[
  2531. var chkgrup = model.getValue("/root/send/in_cond3");
  2532. var ptbs_pid = model.getValue("/root/send/in_cond4");
  2533. if ( chkgrup == "P") {
  2534. if (ptbs_pid == null || ptbs_pid ==" " || ptbs_pid == "") {
  2535. model.resetInstanceNode("/root/send/data");
  2536. } else {
  2537. model.resetInstanceNode("/root/send/data");
  2538. model.setValue("/root/send/data/pid", model.getValue("/root/send/in_cond4"));
  2539. model.setValue("/root/send/data/srchcond","1")
  2540. }
  2541. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data", "/root/send");
  2542. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  2543. model.setValue("/root/send/in_cond4", model.getValue("/root/main/patinfo/patinfolist/pid"));
  2544. model.refresh();
  2545. }
  2546. } else if ( chkgrup == "E" ) {
  2547. var srchdata = model.getValue("/root/send/in_cond4");
  2548. setParameter("SSSTC00500_emplno", srchdata);
  2549. modal("../../../pam/commonweb/xrw/SPPMC02501", "1", "150", "150", "SPPMC02501", "", "");
  2550. var emplno = getParameter("emplno");
  2551. model.setValue("/root/send/in_cond4", emplno );
  2552. removeParameter("emplno");
  2553. model.refresh();
  2554. } else {
  2555. messageBox("대상구분을 '환자별' 또는 '사원별'로 선택후 조회하십시오. '전체'일 경우는 별도 조회기준을 입력할 수 없습니다.", "E");
  2556. return;
  2557. }
  2558. ]]>
  2559. </script>
  2560. </button>
  2561. </group>
  2562. </xhtml:body>
  2563. </xhtml:html>