SMPIE00300_자체조제제제약신고관리.xrw 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>자체조제제제약신고</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <fromdd/>
  11. <todd/>
  12. <appno1/>
  13. <appno2/>
  14. <fromdate/>
  15. <todate/>
  16. <tpndrugcd/>
  17. <h703appno/>
  18. <h703lnno/>
  19. <unitcostappdd/>
  20. </send>
  21. <send_druginfo>
  22. <drugcd/>
  23. <appno/>
  24. <lnno/>
  25. </send_druginfo>
  26. <send_dbc703>
  27. <appno/>
  28. <lnno/>
  29. </send_dbc703>
  30. <send_save702>
  31. <status/>
  32. <appno/>
  33. <lnno/>
  34. <prcpprodflag/>
  35. <drugtype/>
  36. <efcygrup/>
  37. <reptitemcd/>
  38. <itemnm/>
  39. <notedd/>
  40. <clamamt/>
  41. <spec/>
  42. <unit/>
  43. <unitcostappdd/>
  44. <efcy/>
  45. <direcvol/>
  46. </send_save702>
  47. <send_save703>
  48. <save703/>
  49. </send_save703>
  50. <send_drugcd>
  51. <drugcd/>
  52. </send_drugcd>
  53. <send_samcret>
  54. <appno/>
  55. </send_samcret>
  56. <send_appno>
  57. <appno/>
  58. </send_appno>
  59. <send_selectlist>
  60. <selectlist>
  61. <appno/>
  62. <lnno/>
  63. </selectlist>
  64. </send_selectlist>
  65. <main>
  66. <list01>
  67. <gridpiehh702>
  68. <appno/>
  69. <lnno/>
  70. <calcscorcd/>
  71. <itemnm/>
  72. <prcpprodflag/>
  73. <drugtype/>
  74. <efcygrup/>
  75. <reptitemcd/>
  76. <notedd/>
  77. <clamamt/>
  78. <spec/>
  79. <unit/>
  80. <unitcostappdd/>
  81. <efcy/>
  82. <direcvol/>
  83. <gnrlrbpnt/>
  84. </gridpiehh702>
  85. </list01>
  86. <list02>
  87. <gridpiehh702info>
  88. <status/>
  89. <appno/>
  90. <lnno/>
  91. <prcpprodflag/>
  92. <drugtype/>
  93. <efcygrup/>
  94. <reptitemcd/>
  95. <itemnm/>
  96. <notedd/>
  97. <clamamt/>
  98. <spec/>
  99. <unit/>
  100. <unitcostappdd/>
  101. <efcy/>
  102. <direcvol/>
  103. </gridpiehh702info>
  104. </list02>
  105. <list03>
  106. <gridpiehh703>
  107. <appno/>
  108. <lnno/>
  109. <cdflag/>
  110. <drugcd/>
  111. <edicd/>
  112. <drugnm/>
  113. <drugspec/>
  114. <drugunit/>
  115. <purcdd/>
  116. <unitcost/>
  117. <durgqty/>
  118. <drugqtyunit/>
  119. <drugqtyamt/>
  120. <pinstbzplcergstno/>
  121. <pinstcmpynm/>
  122. </gridpiehh703>
  123. <claminfo>
  124. <clamamt/>
  125. </claminfo>
  126. </list03>
  127. <temp>
  128. <appno>200101151</appno>
  129. </temp>
  130. </main>
  131. <init>
  132. <P0280list>
  133. <P0280>
  134. <cdid/>
  135. <cdnm/>
  136. </P0280>
  137. </P0280list>
  138. <U0001list>
  139. <U0001>
  140. <cdid/>
  141. <cdnm/>
  142. </U0001>
  143. </U0001list>
  144. <P0131list>
  145. <P0131>
  146. <cdid/>
  147. <cdnm/>
  148. </P0131>
  149. </P0131list>
  150. <P0300list>
  151. <P0300>
  152. <cdid/>
  153. <cdnm/>
  154. </P0300>
  155. </P0300list>
  156. <temp>
  157. <newappnoinfo>
  158. <appno/>
  159. <appseqno/>
  160. <lnno/>
  161. </newappnoinfo>
  162. </temp>
  163. </init>
  164. <popupdata>
  165. <popupmenu>
  166. <gridpiehh702>
  167. <item>
  168. <name>신고조회</name>
  169. <func>fMenu1</func>
  170. </item>
  171. </gridpiehh702>
  172. </popupmenu>
  173. </popupdata>
  174. <source_702info>
  175. <status/>
  176. <appno/>
  177. <prcpprodflag/>
  178. <drugtype/>
  179. <efcygrup/>
  180. <reptitemcd/>
  181. <itemnm/>
  182. <appdd/>
  183. <clamamt/>
  184. <spec/>
  185. <unit/>
  186. <unitcostappdd/>
  187. <efcy/>
  188. <direcvol/>
  189. </source_702info>
  190. <hidden>
  191. <h702statusinfo>
  192. <statusinfo>
  193. <status/>
  194. </statusinfo>
  195. </h702statusinfo>
  196. <h703statusinfo>
  197. <statusinfo>
  198. <status/>
  199. </statusinfo>
  200. </h703statusinfo>
  201. <getseqnoinfo>
  202. <getseqno>
  203. <seqno/>
  204. </getseqno>
  205. </getseqnoinfo>
  206. <drugcdlist>
  207. <drugcdinfo>
  208. <drugcd/>
  209. <edicd/>
  210. <drugnm/>
  211. <drugspec/>
  212. <drugunit/>
  213. <unitcost/>
  214. <drugqtyunit/>
  215. </drugcdinfo>
  216. </drugcdlist>
  217. <addrowno>
  218. <number/>
  219. </addrowno>
  220. <appnolnno>
  221. <newlnno>
  222. <lnno/>
  223. </newlnno>
  224. </appnolnno>
  225. <selectlist>
  226. <appno/>
  227. <lnno/>
  228. </selectlist>
  229. <saveresult>
  230. <msg/>
  231. </saveresult>
  232. </hidden>
  233. <sendall>
  234. <send_save702>
  235. <save702>
  236. <status/>
  237. <appno/>
  238. <lnno/>
  239. <prcpprodflag/>
  240. <drugtype/>
  241. <efcygrup/>
  242. <reptitemcd/>
  243. <itemnm/>
  244. <notedd/>
  245. <clamamt/>
  246. <spec/>
  247. <unit/>
  248. <unitcostappdd/>
  249. <efcy/>
  250. <direcvol/>
  251. </save702>
  252. <save703/>
  253. </send_save702>
  254. <send_save703>
  255. <save703/>
  256. </send_save703>
  257. </sendall>
  258. </root>
  259. </instance>
  260. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  261. <submission id="TRPIE00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/getseqnoinfo"/>
  262. <submission id="TRPIE00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_druginfo" resultref="/root/main/list02"/>
  263. <submission id="TRPIE00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  264. <submission id="TRPIE00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_dbc703" resultref="/root/main/list03"/>
  265. <submission id="TRPIE00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_druginfo" resultref="/root/main/list03"/>
  266. <submission id="TRPIE00306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_drugcd" resultref="/root/hidden/drugcdlist"/>
  267. <submission id="TRPIE00307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_appno/appno" resultref="/root/hidden/appnolnno"/>
  268. <submission id="TRPIE00309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list03"/>
  269. <submission id="TXPIE00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/temp"/>
  270. <submission id="TXPIE00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_save702"/>
  271. <submission id="TXPIE00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_samcret" resultref="/root/result"/>
  272. <submission id="TXPIE00305" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_save703/save703"/>
  273. <submission id="TXPIE00306" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_samcret"/>
  274. <submission id="TXPIE00307" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_selectlist/selectlist"/>
  275. <submission id="TXPIE00308" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendall/send_save702"/>
  276. <submission id="TXPIE00309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list01" resultref="/root/hidden/saveresult"/>
  277. </model>
  278. <script type="javascript" ev:event="xforms-ready">
  279. <![CDATA[
  280. // 공통코드 Load작업
  281. CommCode_Load();
  282. grd_piehh702.frozenCols = grd_piehh702.colRef("itemnm");
  283. grd_piehh703.frozenCols = grd_piehh703.colRef("drugnm");
  284. ]]>
  285. </script>
  286. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  287. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  288. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  289. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  290. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  291. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  292. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  293. <script type="javascript">
  294. <![CDATA[
  295. function Node_Init() {
  296. // NodeSet 초기화
  297. model.resetInstanceNode("/root/main/list");
  298. model.refresh();
  299. }
  300. // 공통코드 Load작업
  301. function CommCode_Load() {
  302. zbcfGetCodeList(new Array("P0280","P0300"), new Array( "/root/init/P0280list","/root/init/P0300list")); // 조제제제구분
  303. ipt_appno1.value = getCurrentDate();
  304. // 로딩시에 현재일자의 PIEHH701에서 신청순번을 조회한다.
  305. //if(submit("TRPIE00301")) {
  306. // setAppno2();
  307. //}
  308. //model.refresh();
  309. }
  310. // 신청번호2 Input Box 에 값 세팅
  311. function setAppno2() {
  312. if(cmb_appno2.length == 0) {
  313. // model.makeNode("/root/init/U0001list/U0001/cdid");
  314. // model.setValue("/root/init/U0001list/U0001/cdid","0001");
  315. // cmb_appno2.value = model.getValue("/root/init/U0001list/U0001/cdid");
  316. } else {
  317. if(cmb_appno2.length == 1) {
  318. cmb_appno2.select(0);
  319. // cmb_appno2.value = model.getValue("/root/init/U0001list/U0001/cdid");
  320. model.setFocus("btn_cret");
  321. } else {
  322. model.setFocus("cmb_appno2");
  323. }
  324. }
  325. }
  326. function fSendChk() {
  327. var fromdd = model.getValue("/root/send/fromdd");
  328. var todd = model.getValue("/root/send/todd");
  329. var appno1 = model.getValue("/root/send/appno1");
  330. var appno2 = model.getValue("/root/send/appno2");
  331. var appno = appno1 + appno2;
  332. if(fromdd == "" && todd == ""){
  333. if(appno1 == "" && appno2 == ""){
  334. messageBox("1조회조건을","C001");
  335. return false;
  336. }
  337. }
  338. if(fromdd == "" && todd != ""){
  339. messageBox("2조회조건을","C001");
  340. return false;
  341. }
  342. if(fromdd != "" && todd == ""){
  343. messageBox("3조회조건을","C001");
  344. return false;
  345. }
  346. if(appno1 != "" && appno2 != ""){
  347. if(appno.length == "12"){
  348. return true;
  349. }else{
  350. messageBox("4조회조건을","C001");
  351. return false;
  352. }
  353. }
  354. return false;
  355. }
  356. function fDayChk(){
  357. var appno = model.getValue("/root/send/appno1");
  358. var dd = getCurrentDate();
  359. if(appno != dd){
  360. var chk = messageBox("신청일자가 오늘일자와 다릅니다.","Q003");
  361. if(chk == "6"){
  362. return true;
  363. }else{
  364. return false;
  365. }
  366. }
  367. }
  368. function fNewLnnoSet(){
  369. var rows = grd_piehh702.rows;
  370. var frows = grd_piehh702.fixedRows;
  371. var nrows = rows - frows;
  372. var newlnno = model.getValue("/root/main/list01/gridpiehh702[" + nrows + "]/lnno")
  373. model.setValue("/root/main/list02/gridpiehh702info/lnno", newlnno);
  374. //약품조회시 처음에 insert한다는 전제하에 status를 I로 한다.
  375. var rows = grd_piehh703.rows;
  376. var frows = grd_piehh703.fixedRows;
  377. var nrows = rows - frows;
  378. for(var i = 1; i <= nrows; i++){
  379. model.setValue("/root/main/list03/gridpiehh703[" + i + "]/lnno",newlnno);
  380. grd_piehh703.rowStatus(i) = 1;
  381. }
  382. model.refresh();
  383. }
  384. function fSave() {
  385. var curr_row = 1;
  386. var appno1 = model.getValue("/root/send/appno1"); // 신청번호 앞자리
  387. var appno2 = model.getValue("/root/send/appno2"); // 신청번호 뒷자리
  388. var appno = appno1 + appno2;
  389. //model.setValue("/root/main/list02/gridpiehh702info/appno",appno);
  390. //var appno = model.getValue("/root/main/list02/gridpiehh702info[" + curr_row + "]/appno");
  391. var appno2 = model.getValue("/root/main/list02/gridpiehh702info/appno");
  392. alert(appno2);
  393. if(appno2 != "" && appno2.length == 12){
  394. // pam.piehh701/pam.piehh702/pam.piehh703 테이블에 자료를 입력한다.
  395. //var curr_row = grd_piehh703.row - 1;
  396. //grd_pirhobtspec.addStatus(curr_row, "update");
  397. model.setValue("/root/sendall/send_save702/save702/status", "update"); //model.getValue("/root/hidden/h702statusinfo/statusinfo/status"));
  398. model.setValue("/root/sendall/send_save702/save702/appno", model.getValue("/root/main/list02/gridpiehh702info/appno"));
  399. model.setValue("/root/sendall/send_save702/save702/lnno", model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  400. model.setValue("/root/sendall/send_save702/save702/prcpprodflag", model.getValue("/root/main/list02/gridpiehh702info/prcpprodflag"));
  401. model.setValue("/root/sendall/send_save702/save702/drugtype", model.getValue("/root/main/list02/gridpiehh702info/drugtype"));
  402. model.setValue("/root/sendall/send_save702/save702/efcygrup", model.getValue("/root/main/list02/gridpiehh702info/efcygrup"));
  403. model.setValue("/root/sendall/send_save702/save702/reptitemcd", model.getValue("/root/main/list02/gridpiehh702info/reptitemcd"));
  404. model.setValue("/root/sendall/send_save702/save702/itemnm", model.getValue("/root/main/list02/gridpiehh702info/itemnm"));
  405. model.setValue("/root/sendall/send_save702/save702/notedd", model.getValue("/root/main/list02/gridpiehh702info/notedd"));
  406. model.setValue("/root/sendall/send_save702/save702/clamamt", model.getValue("/root/main/list02/gridpiehh702info/clamamt"));
  407. model.setValue("/root/sendall/send_save702/save702/spec", model.getValue("/root/main/list02/gridpiehh702info/spec"));
  408. model.setValue("/root/sendall/send_save702/save702/unit", model.getValue("/root/main/list02/gridpiehh702info/unit"));
  409. model.setValue("/root/sendall/send_save702/save702/unitcostappdd", model.getValue("/root/main/list02/gridpiehh702info/unitcostappdd"));
  410. model.setValue("/root/sendall/send_save702/save702/efcy", model.getValue("/root/main/list02/gridpiehh702info/efcy"));
  411. model.setValue("/root/sendall/send_save702/save702/direcvol", model.getValue("/root/main/list02/gridpiehh702info/direcvol"));
  412. model.setValue("/root/sendall/send_save702/save703", grd_piehh703.getUpdateData());
  413. //alert("info저장전" + model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  414. submit("TXPIE00308");
  415. }else if(appno != "" && appno.length == 12){
  416. model.setValue("/root/sendall/send_save702/save702/status", "insert");
  417. model.setValue("/root/sendall/send_save702/save702/appno", appno);
  418. //model.setValue("/root/send_save702/lnno", model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  419. model.setValue("/root/sendall/send_save702/save702/prcpprodflag", model.getValue("/root/main/list02/gridpiehh702info/prcpprodflag"));
  420. model.setValue("/root/sendall/send_save702/save702/drugtype", model.getValue("/root/main/list02/gridpiehh702info/drugtype"));
  421. model.setValue("/root/sendall/send_save702/save702/efcygrup", model.getValue("/root/main/list02/gridpiehh702info/efcygrup"));
  422. model.setValue("/root/sendall/send_save702/save702/reptitemcd", model.getValue("/root/main/list02/gridpiehh702info/reptitemcd"));
  423. model.setValue("/root/sendall/send_save702/save702/itemnm", model.getValue("/root/main/list02/gridpiehh702info/itemnm"));
  424. model.setValue("/root/sendall/send_save702/save702/notedd", model.getValue("/root/main/list02/gridpiehh702info/notedd"));
  425. model.setValue("/root/sendall/send_save702/save702/clamamt", model.getValue("/root/main/list02/gridpiehh702info/clamamt"));
  426. model.setValue("/root/sendall/send_save702/save702/spec", model.getValue("/root/main/list02/gridpiehh702info/spec"));
  427. model.setValue("/root/sendall/send_save702/save702/unit", model.getValue("/root/main/list02/gridpiehh702info/unit"));
  428. model.setValue("/root/sendall/send_save702/save702/unitcostappdd", model.getValue("/root/main/list02/gridpiehh702info/unitcostappdd"));
  429. model.setValue("/root/sendall/send_save702/save702/efcy", model.getValue("/root/main/list02/gridpiehh702info/efcy"));
  430. model.setValue("/root/sendall/send_save702/save702/direcvol", model.getValue("/root/main/list02/gridpiehh702info/direcvol"));
  431. model.setValue("/root/sendall/send_save702/save703", grd_piehh703.getUpdateData());
  432. //alert(instance1.selectNodesXml("/root/sendall/send_save702") );
  433. //alert("info저장전" + model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  434. submit("TXPIE00308");
  435. // 저장후 H702의 status를 update한다. (바로 수정하여 저장할수 잇도록.
  436. //model.setValue("/root/hidden/h702statusinfo/statusinfo/status","update");
  437. //재조회
  438. // submit("TRPIE00303");
  439. }else{
  440. inputEnterKey("btn_srch", "DOMActivate");
  441. }
  442. return true;
  443. }
  444. function fSaveH702(){
  445. var curr_row = 1;
  446. var appno1 = model.getValue("/root/send/appno1");
  447. var appno2 = model.getValue("/root/send/appno2");
  448. var appno = appno1 + appno2;
  449. //model.setValue("/root/main/list02/gridpiehh702info/appno",appno);
  450. //var appno = model.getValue("/root/main/list02/gridpiehh702info[" + curr_row + "]/appno");
  451. var appno2 = model.getValue("/root/main/list02/gridpiehh702info/appno");
  452. if(appno2 != "" && appno2.length == 12){
  453. // pam.piehh701/pam.piehh702/pam.piehh703 테이블에 자료를 입력한다.
  454. //var curr_row = grd_piehh703.row - 1;
  455. //grd_pirhobtspec.addStatus(curr_row, "update");
  456. model.setValue("/root/send_save702/status", "update"); //model.getValue("/root/hidden/h702statusinfo/statusinfo/status"));
  457. model.setValue("/root/send_save702/appno", model.getValue("/root/main/list02/gridpiehh702info/appno"));
  458. model.setValue("/root/send_save702/lnno", model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  459. model.setValue("/root/send_save702/prcpprodflag", model.getValue("/root/main/list02/gridpiehh702info/prcpprodflag"));
  460. model.setValue("/root/send_save702/drugtype", model.getValue("/root/main/list02/gridpiehh702info/drugtype"));
  461. model.setValue("/root/send_save702/efcygrup", model.getValue("/root/main/list02/gridpiehh702info/efcygrup"));
  462. model.setValue("/root/send_save702/reptitemcd", model.getValue("/root/main/list02/gridpiehh702info/reptitemcd"));
  463. model.setValue("/root/send_save702/itemnm", model.getValue("/root/main/list02/gridpiehh702info/itemnm"));
  464. model.setValue("/root/send_save702/notedd", model.getValue("/root/main/list02/gridpiehh702info/notedd"));
  465. model.setValue("/root/send_save702/clamamt", model.getValue("/root/main/list02/gridpiehh702info/clamamt"));
  466. model.setValue("/root/send_save702/spec", model.getValue("/root/main/list02/gridpiehh702info/spec"));
  467. model.setValue("/root/send_save702/unit", model.getValue("/root/main/list02/gridpiehh702info/unit"));
  468. model.setValue("/root/send_save702/unitcostappdd", model.getValue("/root/main/list02/gridpiehh702info/unitcostappdd"));
  469. model.setValue("/root/send_save702/efcy", model.getValue("/root/main/list02/gridpiehh702info/efcy"));
  470. model.setValue("/root/send_save702/direcvol", model.getValue("/root/main/list02/gridpiehh702info/direcvol"));
  471. //alert("info저장전" + model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  472. submit("TXPIE00302");
  473. // 저장후 H702의 status를 update한다. (바로 수정하여 저장할수 잇도록.
  474. //model.setValue("/root/hidden/h702statusinfo/statusinfo/status","update");
  475. //재조회
  476. submit("TRPIE00303");
  477. // var newlnno = model.getValue("/root/main/list02/gridpiehh702info/lnno");
  478. // if(newlnno == ""){
  479. // fNewLnnoSet();
  480. // }
  481. }else if(appno != "" && appno.length == 12){
  482. model.setValue("/root/send_save702/status", "insert");
  483. model.setValue("/root/send_save702/appno", appno);
  484. //model.setValue("/root/send_save702/lnno", model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  485. model.setValue("/root/send_save702/prcpprodflag", model.getValue("/root/main/list02/gridpiehh702info/prcpprodflag"));
  486. model.setValue("/root/send_save702/drugtype", model.getValue("/root/main/list02/gridpiehh702info/drugtype"));
  487. model.setValue("/root/send_save702/efcygrup", model.getValue("/root/main/list02/gridpiehh702info/efcygrup"));
  488. model.setValue("/root/send_save702/reptitemcd", model.getValue("/root/main/list02/gridpiehh702info/reptitemcd"));
  489. model.setValue("/root/send_save702/itemnm", model.getValue("/root/main/list02/gridpiehh702info/itemnm"));
  490. model.setValue("/root/send_save702/notedd", model.getValue("/root/main/list02/gridpiehh702info/notedd"));
  491. model.setValue("/root/send_save702/clamamt", model.getValue("/root/main/list02/gridpiehh702info/clamamt"));
  492. model.setValue("/root/send_save702/spec", model.getValue("/root/main/list02/gridpiehh702info/spec"));
  493. model.setValue("/root/send_save702/unit", model.getValue("/root/main/list02/gridpiehh702info/unit"));
  494. model.setValue("/root/send_save702/unitcostappdd", model.getValue("/root/main/list02/gridpiehh702info/unitcostappdd"));
  495. model.setValue("/root/send_save702/efcy", model.getValue("/root/main/list02/gridpiehh702info/efcy"));
  496. model.setValue("/root/send_save702/direcvol", model.getValue("/root/main/list02/gridpiehh702info/direcvol"));
  497. //alert("info저장전" + model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  498. submit("TXPIE00302");
  499. // 저장후 H702의 status를 update한다. (바로 수정하여 저장할수 잇도록.
  500. //model.setValue("/root/hidden/h702statusinfo/statusinfo/status","update");
  501. //재조회
  502. submit("TRPIE00303");
  503. }else{
  504. inputEnterKey("btn_srch", "DOMActivate");
  505. }
  506. return true;
  507. }
  508. function fSetLnno(){
  509. // 줄번호를 받아오기 위하여 신청번호를 따온다.
  510. model.setValue("/root/send_appno/appno",model.getValue("/root/main/list02/gridpiehh702info/appno"));
  511. // 줄번호 조회를 위한 submit
  512. submit("TRPIE00307");
  513. // 줄번호 확인
  514. var lnno = model.getValue("/root/hidden/appnolnno/newlnno/lnno");
  515. //alert(lnno);
  516. //H702에 줄번호를 넣는다.
  517. model.setValue("/root/main/list02/gridpiehh702info/lnno",lnno);
  518. //H703에 줄번호를 넣는다.
  519. var rows = grd_piehh703.rows;
  520. var fixedrow = grd_piehh703.fixedRows;
  521. var nrows = rows - fixedrow;
  522. for(var i = 1; i <= nrows; i++){
  523. model.setValue("/root/main/list03/gridpiehh703[" + i + "]/lnno",lnno);
  524. }
  525. return true;
  526. }
  527. ]]>
  528. </script>
  529. <script type="javascript">
  530. <![CDATA[
  531. // 신고조회
  532. function fMenu1() {
  533. var row_cnt = grd_piehh702.selectedRow(0);
  534. /*model.setValue("/root/send/send03/clamno", grd_pidmclbs.valueMatrix(row_cnt,12));
  535. model.setValue("/root/send/send03/docuseqno", grd_pidmclbs.valueMatrix(row_cnt,13));
  536. model.setValue("/root/send/send03/instcd", grd_pidmclbs.valueMatrix(row_cnt,14));
  537. model.setValue("/root/send/send03/clamkey", grd_pidmclbs.valueMatrix(row_cnt,16));
  538. model.setValue("/root/send/send03/workflag", grd_pidmclbs.valueMatrix(row_cnt,17));
  539. // 동의서테이블(401)에 데이터가 들어 있는지 여부(있으면 동의서 화면 이외는 팝업이 불허)
  540. if(submit("TRPIF70304")) {
  541. if(model.getValue("/root/main/list04/gridpiehc401/cnt") == 0) {
  542. if(submit("TRPIF70303")) {
  543. if(model.getValue("/root/main/list03/gridpiehc301/docuflag") == "" || model.getValue("/root/main/list03/gridpiehc301/docuflag") == "1") {
  544. model.setValue("/root/send/send03/docuflag", "1");
  545. model.setValue("/root/send/send03/savedocuflag", "1");
  546. window.load("SPPIF70400_검토서등록관리.xrw", "modal", "pop", "width:1140; height:640;", "/root/send/send03", "/root/send");
  547. } else {
  548. alert("현재 "+model.getValue("/root/main/list03/gridpiehc301/docuflag")+"차 검토서가 등록되어 있습니다.");
  549. return false;
  550. //model.setValue("/root/send/send03/docuflag", model.getValue("/root/main/list03/gridpiehc301/docuflag"));
  551. //window.load("SMPIF70410_검토서등록관리(2차).xrw", "modeless", "pop", "window.maxmize", "/root/send/send03", "/root/send");
  552. }
  553. }
  554. } else {
  555. alert("동의서등록이 완료된 환자입니다");
  556. return false;
  557. }
  558. }*/
  559. }
  560. ]]>
  561. </script>
  562. </xhtml:head>
  563. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  564. <group id="group4" scroll="auto" style="left:0px; top:15px; width:1194px; height:741px; ">
  565. <datagrid id="grd_piehh702" nodeset="/root/main/list01/gridpiehh702" class="datagrid2" caption="신청번호^줄번호^처방코드^품명^조제/제제&#xA;구분^투여&#xA;형태^주요효능군^신고품목코드^신고일자^청구가^일반가^규격^단위^가격적용일^효능효과^용법용량" colsep="^" colwidth="88, 44, 110, 221, 90, 40, 77, 91, 90, 80, 80, 46, 46, 81, 180, 130" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:78px; width:1194px; height:150px; ">
  566. <col ref="appno"/>
  567. <col ref="lnno" style="text-align:center; "/>
  568. <col ref="calcscorcd"/>
  569. <col ref="itemnm"/>
  570. <col disabled="true" ref="prcpprodflag" type="combo">
  571. <choices>
  572. <itemset nodeset="/root/init/P0280list/P0280">
  573. <label ref="cdnm"/>
  574. <value ref="cdid"/>
  575. </itemset>
  576. </choices>
  577. </col>
  578. <col ref="drugtype"/>
  579. <col ref="efcygrup"/>
  580. <col ref="reptitemcd"/>
  581. <col ref="notedd" format="yyyy-mm-dd" style="text-align:center; "/>
  582. <col ref="clamamt" format="#,###" style="text-align:right; padding-right:5; "/>
  583. <col ref="gnrlrbpnt" format="#,###" style="text-align:right; padding-right:5; "/>
  584. <col ref="spec"/>
  585. <col ref="unit"/>
  586. <col ref="unitcostappdd" format="yyyy-mm-dd" style="text-align:center; "/>
  587. <col ref="efcy"/>
  588. <col ref="direcvol" style="left:614px; top:25px; width:74px; height:25px; "/>
  589. <script type="javascript" ev:event="onmousedown">
  590. <![CDATA[
  591. if(event.button == 3){
  592. if(grd_piehh702.isCell(event.target) && grd_piehh702.mouseRow >= grd_piehh702.fixedrows){
  593. window.setPopupMenu(true, "/root/popupdata/popupmenu/gridpiehh702/item", "name", "func", false);
  594. }else{
  595. window.setPopupMenu(false);
  596. }
  597. }
  598. ]]>
  599. </script>
  600. <script type="javascript" ev:event="DOMFocusOut">
  601. <![CDATA[
  602. window.setPopupMenu(false);
  603. ]]>
  604. </script>
  605. <script type="javascript" ev:event="ondblclick">
  606. <![CDATA[
  607. var row = grd_piehh702.row;
  608. var appno = model.getValue("/root/main/list01/gridpiehh702/appno");
  609. if(appno == ""){
  610. messageBox("값이","I004");
  611. false();
  612. }else{
  613. var appno = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/appno");
  614. var lnno = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/lnno");
  615. var calcscorcd = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/calcscorcd");
  616. var itemnm = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/itemnm");
  617. var prcpprodflag = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/prcpprodflag");
  618. var drugtype = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/drugtype");
  619. var efcygrup = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/efcygrup");
  620. var reptitemcd = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/reptitemcd");
  621. var notedd = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/notedd");
  622. var clamamt = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/clamamt");
  623. var spec = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/spec");
  624. var unit = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/unit");
  625. var unitcostappdd = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/unitcostappdd");
  626. var efcy = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/efcy");
  627. var direcvol = model.getValue("/root/main/list01/gridpiehh702[" + row + "]/direcvol");
  628. // 더블 클릭시 가운데 H702 셋팅
  629. model.setValue("/root/hidden/h702statusinfo/statusinfo/status","update");
  630. model.setValue("/root/main/list02/gridpiehh702info/appno", appno);
  631. model.setValue("/root/send/h703appno", appno);
  632. model.setValue("/root/main/list02/gridpiehh702info/lnno", lnno);
  633. model.setValue("/root/send/h703lnno", lnno);
  634. model.setValue("/root/send_druginfo/drugcd", calcscorcd);
  635. model.setValue("/root/send/tpndrugcd", calcscorcd);
  636. model.setValue("/root/main/list02/gridpiehh702info/prcpprodflag", prcpprodflag);
  637. model.setValue("/root/main/list02/gridpiehh702info/drugtype", drugtype);
  638. model.setValue("/root/main/list02/gridpiehh702info/efcygrup", efcygrup);
  639. model.setValue("/root/main/list02/gridpiehh702info/reptitemcd", reptitemcd);
  640. model.setValue("/root/main/list02/gridpiehh702info/itemnm", itemnm);
  641. model.setValue("/root/main/list02/gridpiehh702info/notedd", notedd);
  642. model.setValue("/root/main/list02/gridpiehh702info/clamamt", clamamt);
  643. model.setValue("/root/main/list02/gridpiehh702info/spec", spec);
  644. model.setValue("/root/main/list02/gridpiehh702info/unit", unit);
  645. model.setValue("/root/main/list02/gridpiehh702info/unitcostappdd", unitcostappdd);
  646. model.setValue("/root/send/unitcostappdd", unitcostappdd);
  647. model.setValue("/root/main/list02/gridpiehh702info/efcy", efcy);
  648. model.setValue("/root/main/list02/gridpiehh702info/direcvol", direcvol);
  649. // 더블클릭시 H703 조회
  650. model.setValue("/root/send_dbc703/appno", appno);
  651. model.setValue("/root/send_dbc703/lnno", lnno);
  652. submit("TRPIE00304");
  653. if ( grd_piehh703.fixedRows <= grd_piehh703.rows ) {
  654. btn_h703srch.disabled = false;
  655. } else {
  656. btn_h703srch.disabled = true;
  657. }
  658. model.refresh();
  659. }
  660. ]]>
  661. </script>
  662. </datagrid>
  663. <caption id="caption5" class="tit_2" style="left:5px; top:58px; width:110px; height:14px; ">H070.2</caption>
  664. <datagrid id="grd_piehh703" nodeset="/root/main/list03/gridpiehh703" class="datagrid2" caption="신청번호^줄번호^코드구분^처방코드^약품코드^품 명^규격^단위^구입일자^단위당가격^사용분량^분량당단위^분량당가격^구입기관&#xA;사업자등록번호^구입기관상호" colsep="^" colwidth="86, 44, 100, 78, 75, 300, 41, 49, 90, 70, 62, 71, 71, 90, 100" dataheight="25" defaultrows="2" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:393px; width:1194px; height:344px; ">
  665. <col ref="appno" style="text-align:left; "/>
  666. <col ref="lnno"/>
  667. <col ref="cdflag" type="combo" style="left:90px; top:25px; width:57px; height:25px; ">
  668. <choices>
  669. <itemset nodeset="/root/init/P0300list/P0300">
  670. <label ref="cdnm"/>
  671. <value ref="cdid"/>
  672. </itemset>
  673. </choices>
  674. </col>
  675. <col ref="drugcd" type="input" _chartype="upper" style="text-align:left; "/>
  676. <col ref="edicd" type="input" style="text-align:left; "/>
  677. <col ref="drugnm" type="input" style="text-align:left; "/>
  678. <col ref="drugspec" type="input" format="#,###" style="text-align:right; "/>
  679. <col ref="drugunit" type="input" style="text-align:right; "/>
  680. <col ref="purcdd" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  681. <col ref="unitcost" type="input" style="text-align:right; "/>
  682. <col ref="durgqty" type="input" style="text-align:right; "/>
  683. <col ref="drugqtyunit" type="input" style="text-align:right; "/>
  684. <col ref="drugqtyamt" style="text-align:right; "/>
  685. <col ref="pinstbzplcergstno" type="input" style="text-align:center; "/>
  686. <col ref="pinstcmpynm" type="input" style="text-align:left; "/>
  687. <script type="javascript" ev:event="onkeydown">
  688. <![CDATA[
  689. if(event.keyCode == "13") {
  690. }
  691. ]]>
  692. </script>
  693. <script type="javascript" ev:event="onendedit">
  694. <![CDATA[
  695. // 여기부턴 분량당 가격 계산하는 곳
  696. var row = grd_piehh703.row;
  697. //setInputNodeCurText();
  698. if(grd_piehh703.col == 11 || grd_piehh703.col == 10 || grd_piehh703.col == 7) {
  699. var durgqty = Number(grd_piehh703.valueMatrix(row,11));
  700. var unitcost = Number(grd_piehh703.valueMatrix(row,10));
  701. var drugspec = Number(grd_piehh703.valueMatrix(row,7));
  702. //alert(durgqty+ ","+unitcost+ ","+drugspec);
  703. var result = (durgqty * unitcost)/drugspec;
  704. var result2 = (Math.round(result*100))/100;
  705. //alert(result2);
  706. grd_piehh703.valueMatrix(row, 13) = result2;
  707. }
  708. //여기부터는 변경된 분량당 가격을 책정하여 청구가를 변경시키는 곳.
  709. var rows = grd_piehh703.rows;
  710. var frows = grd_piehh703.fixedRows;
  711. var newrows = rows - frows;
  712. var clamamt = 0;
  713. var drugqtyamt = 0;
  714. for(var i = 1; i <= newrows; i++){
  715. drugqtyamt = model.getValue("/root/main/list03/gridpiehh703[" + i + "]/drugqtyamt");
  716. clamamt = parseFloat(clamamt) + parseFloat(drugqtyamt);
  717. }
  718. //alert(clamamt);
  719. var clamamt = Math.round(clamamt);
  720. model.setValue("/root/main/list02/gridpiehh702info/clamamt",clamamt);
  721. model.refresh();
  722. // 수정이 발생하면 update로 하는데 줄번호가 없으면 update변경하지 않고 insert그대로 간다.
  723. var lnno = model.getValue("/root/main/list02/gridpiehh702info/lnno");
  724. if(lnno == ""){
  725. }else{
  726. model.setValue("/root/hidden/h702statusinfo/statusinfo/status","update");
  727. }
  728. var drugcdcol = grd_piehh703.col;
  729. var drugcdrow = grd_piehh703.row;
  730. if(drugcdcol == 4){
  731. var drugcd = grd_piehh703.valueMatrix(drugcdrow, drugcdcol);
  732. model.setValue("/root/send_drugcd/drugcd",drugcd);
  733. submit("TRPIE00306");
  734. //model.setValue("", model.getValue("/root/hidden/drugcdlist/drugcdinfo/drugcd"));
  735. model.setValue("/root/main/list03/gridpiehh703[" + drugcdrow + "]/edicd", model.getValue("/root/hidden/drugcdlist/drugcdinfo/edicd"));
  736. model.setValue("/root/main/list03/gridpiehh703[" + drugcdrow + "]/drugnm", model.getValue("/root/hidden/drugcdlist/drugcdinfo/drugnm"));
  737. model.setValue("/root/main/list03/gridpiehh703[" + drugcdrow + "]/drugspec", model.getValue("/root/hidden/drugcdlist/drugcdinfo/drugspec"));
  738. model.setValue("/root/main/list03/gridpiehh703[" + drugcdrow + "]/drugunit", model.getValue("/root/hidden/drugcdlist/drugcdinfo/drugunit"));
  739. model.setValue("/root/main/list03/gridpiehh703[" + drugcdrow + "]/unitcost", model.getValue("/root/hidden/drugcdlist/drugcdinfo/unitcost"));
  740. model.setValue("/root/main/list03/gridpiehh703[" + drugcdrow + "]/drugqtyunit", model.getValue("/root/hidden/drugcdlist/drugcdinfo/drugqtyunit"));
  741. }
  742. model.refresh();
  743. ]]>
  744. </script>
  745. </datagrid>
  746. <button id="button7" class="btn2_letter2" style="left:1147px; top:368px; width:42px; height:19px; ">
  747. <caption>저장</caption>
  748. <script type="javascript" ev:event="DOMActivate">
  749. <![CDATA[
  750. // 줄번호 얻어와서 set하기
  751. var status = model.getValue("/root/hidden/h702statusinfo/statusinfo/status");
  752. if(status == "insert"){
  753. fSetLnno();
  754. }
  755. // H702저장
  756. fSaveH702();
  757. // H703 저장
  758. model.setValue("/root/send_save703/save703", grd_piehh703.getUpdateData());
  759. submit("TXPIE00305");
  760. // 더블클릭시 H703 조회
  761. model.setValue("/root/send_dbc703/appno", model.getValue("/root/main/list02/gridpiehh702info/appno"));
  762. model.setValue("/root/send_dbc703/lnno", model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  763. submit("TRPIE00304");
  764. model.refresh();
  765. ]]>
  766. </script>
  767. </button>
  768. <line id="line2" class="line_1" style="x1:0px; y1:388px; x2:1194px; y2:388px; "/>
  769. <caption id="caption8" class="tit_2" style="left:5px; top:374px; width:65px; height:13px; ">H070.3</caption>
  770. <line id="line3" class="line_1" style="x1:0px; y1:75px; x2:1194px; y2:74px; "/>
  771. <input id="input13" ref="/root/send_druginfo/drugcd" class="input_default" disabled="true" _chartype="upper" appearance="input" style="left:118px; top:259px; width:114px; height:19px; text-align:right; ">
  772. <script type="javascript" ev:event="onkeyup">
  773. <![CDATA[
  774. inputEnterKey("button12", "DOMActivate");
  775. ]]>
  776. </script>
  777. </input>
  778. <line id="line5" class="line_3" style="x1:0px; y1:355px; x2:1151px; y2:355px; "/>
  779. <caption id="caption16" class="cell_1" style="left:0px; top:258px; width:115px; height:23px; vertical-align:middle; ">처방코드</caption>
  780. <caption id="caption18" class="cell_1" style="left:0px; top:307px; width:115px; height:23px; vertical-align:middle; ">효능효과</caption>
  781. <line id="line6" class="line_2" style="x1:1px; y1:305px; x2:1152px; y2:305px; "/>
  782. <caption id="caption25" class="tit_2" style="left:6px; top:239px; width:82px; height:13px; ">H070.2</caption>
  783. <caption id="caption29" class="cell_1" style="left:237px; top:258px; width:115px; height:23px; vertical-align:middle; ">품명</caption>
  784. <line id="line8" class="line_2" style="x1:0px; y1:280px; x2:1151px; y2:280px; "/>
  785. <input id="ipt_clamunitprice" ref="/root/main/list02/gridpiehh702info/clamamt" class="input_default" format="#,###" style="left:118px; top:334px; width:114px; height:19px; text-align:left; "/>
  786. <line id="line9" class="line_2" style="x1:1px; y1:330px; x2:1152px; y2:330px; "/>
  787. <input id="ipt_appdd" ref="/root/main/list02/gridpiehh702info/notedd" class="input_default" format="yyyy-mm-dd" style="left:355px; top:334px; width:118px; height:19px; text-align:left; "/>
  788. <caption id="caption30" class="cell_1" style="left:237px; top:332px; width:115px; height:23px; vertical-align:middle; ">신고일자</caption>
  789. <caption id="caption31" class="cell_1" style="left:0px; top:282px; width:115px; height:23px; vertical-align:middle; ">조제/제제구분</caption>
  790. <line id="line10" class="line_1" style="x1:0px; y1:253px; x2:1151px; y2:253px; "/>
  791. <select1 id="cmb_drugtype" ref="/root/main/list02/gridpiehh702info/drugtype" appearance="minimal" style="left:355px; top:284px; width:118px; height:19px; text-align:left; ">
  792. <choices>
  793. <item>
  794. <label>1. 내복약</label>
  795. <value>1</value>
  796. </item>
  797. <item>
  798. <label>2. 주사약</label>
  799. <value>2</value>
  800. </item>
  801. <item>
  802. <label>3. 외용약</label>
  803. <value>3</value>
  804. </item>
  805. </choices>
  806. </select1>
  807. <caption id="caption32" class="cell_1" style="left:237px; top:282px; width:115px; height:23px; vertical-align:middle; ">투여형태</caption>
  808. <input id="input22" ref="/root/main/list02/gridpiehh702info/itemnm" class="input_default" appearance="input" style="left:355px; top:259px; width:355px; height:19px; text-align:left; "/>
  809. <input id="input23" ref="/root/main/list02/gridpiehh702info/efcy" class="input_default" style="left:118px; top:309px; width:355px; height:19px; text-align:left; "/>
  810. <caption id="caption33" class="cell_1" style="left:0px; top:332px; width:115px; height:23px; vertical-align:middle; ">청구가</caption>
  811. <caption id="caption35" class="cell_1" style="left:478px; top:307px; width:115px; height:23px; vertical-align:middle; ">용법용량</caption>
  812. <caption id="caption36" class="cell_1" style="left:715px; top:258px; width:115px; height:23px; vertical-align:middle; ">신고품목코드</caption>
  813. <input id="ipt_priceappdd" ref="/root/main/list02/gridpiehh702info/unitcostappdd" class="input_default" inputtype="date" format="yyyy-mm-dd" style="left:596px; top:334px; width:114px; height:19px; text-align:left; ">
  814. <script type="javascript" ev:event="xforms-value-changed">
  815. <![CDATA[
  816. if ( ipt_priceappdd.value != "" ) {
  817. model.setValue("/root/send/unitcostappdd", model.getValue("/root/main/list02/gridpiehh702info/unitcostappdd") );
  818. model.refresh();
  819. }
  820. ]]>
  821. </script>
  822. </input>
  823. <input id="input29" ref="/root/main/list02/gridpiehh702info/direcvol" class="input_default" style="left:596px; top:309px; width:114px; height:19px; text-align:left; "/>
  824. <caption id="caption37" class="cell_1" style="left:478px; top:282px; width:115px; height:23px; vertical-align:middle; ">주요효능군</caption>
  825. <input id="input31" ref="/root/main/list02/gridpiehh702info/efcygrup" class="input_default" style="left:596px; top:283px; width:114px; height:19px; text-align:left; "/>
  826. <input id="input32" ref="/root/main/list02/gridpiehh702info/spec" class="input_default" style="left:833px; top:284px; width:118px; height:19px; text-align:left; "/>
  827. <input id="input33" ref="/root/main/list02/gridpiehh702info/reptitemcd" class="input_default" style="left:833px; top:259px; width:118px; height:19px; text-align:left; "/>
  828. <caption id="caption39" class="cell_1" style="left:715px; top:282px; width:115px; height:23px; vertical-align:middle; ">규격</caption>
  829. <caption id="caption40" class="cell_1" style="left:478px; top:332px; width:115px; height:23px; vertical-align:middle; ">가격적용일</caption>
  830. <button id="button13" class="btn5_letter2" disabled="false" style="left:1109px; top:232px; width:42px; height:19px; ">
  831. <caption>저장</caption>
  832. <script type="javascript" ev:event="DOMActivate">
  833. <![CDATA[
  834. fSaveH702();
  835. ]]>
  836. </script>
  837. </button>
  838. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:37px; vertical-align:top; ">
  839. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
  840. <line id="line4" class="line_4" style="x1:1115px; y1:8px; x2:1115px; y2:30px; "/>
  841. <caption id="caption9" class="search_name" style="left:328px; top:9px; width:96px; height:17px; ">신청번호 :</caption>
  842. <caption id="caption11" style="left:200px; top:13px; width:15px; height:15px; ">~</caption>
  843. <input id="ipt_appno1" ref="/root/send/appno1" class="input_search" autonext="false" maxlength="8" appearance="input" style="left:419px; top:8px; width:66px; height:19px; ">
  844. <script type="javascript" ev:event="onkeydown">
  845. <![CDATA[
  846. inputEnterKey("button108", "DOMActivate");
  847. ]]>
  848. </script>
  849. </input>
  850. <input id="ipt_appno2" ref="/root/send/appno2" class="input_search" maxlength="4" appearance="input" style="left:487px; top:8px; width:60px; height:19px; "/>
  851. <!--
  852. <select1 id="cmb_appno2" ref="/root/send/appno2" class="combo_search" disabled="true" appearance="minimal" style="left:487px; top:8px; width:60px; height:19px; ">
  853. <choices>
  854. <itemset nodeset="/root/init/U0001list/U0001">
  855. <label ref="cdid"/>
  856. <value ref="cdid"/>
  857. </itemset>
  858. </choices>
  859. </select1>
  860. -->
  861. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:106px; top:8px; width:90px; height:19px; ">
  862. <caption id="caption7"/>
  863. <script type="javascript" ev:event="DOMFocusOut">
  864. <![CDATA[
  865. model.setValue("/root/send/todd",model.getValue("/root/send/fromdd"));
  866. model.refreshpart("/root/send/todd");
  867. ]]>
  868. </script>
  869. </input>
  870. <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:216px; top:8px; width:90px; height:19px; "/>
  871. <button id="btn_srch" class="btn1_letter2" style="left:1130px; top:8px; width:56px; height:22px; ">
  872. <caption>조회</caption>
  873. <script type="javascript" ev:event="DOMActivate">
  874. <![CDATA[
  875. fSendChk();
  876. model.resetInstanceNode("root/send_druginfo");
  877. model.resetInstanceNode("/root/main/list03/gridpiehh703");
  878. model.resetInstanceNode("/root/main/list02/gridpiehh702info");
  879. model.resetInstanceNode("/root/hidden/h702statusinfo/statusinfo/status");
  880. model.resetInstanceNode("/root/send/tpndrugcd");
  881. model.resetInstanceNode("/root/send/unitcostappdd");
  882. submit("TRPIE00303");
  883. ]]>
  884. </script>
  885. </button>
  886. <caption id="caption41" class="search_name" style="left:15px; top:9px; width:112px; height:17px; ">신청일자 :</caption>
  887. <button id="button11" class="btn1_letter6" style="left:557px; top:7px; width:92px; height:22px; ">
  888. <caption>신청번호생성</caption>
  889. <script type="javascript" ev:event="onclick">
  890. <![CDATA[
  891. fDayChk();
  892. submit("TXPIE00301");
  893. var appno = model.getValue("/root/init/temp/newappnoinfo/appno");
  894. var appno2 = model.getValue("/root/init/temp/newappnoinfo/appseqno");
  895. //model.makeNode("/root/init/U0001list/U0001/cdid");
  896. //model.makeNode("/root/init/U0001list/U0001/cdnm");
  897. //model.setValue("/root/init/U0001list/U0001/cdid", appno2);
  898. //model.setValue("/root/init/U0001list/U0001/cdnm", appno2);
  899. // 처방코드에 따른 약품정보조회시의 신청번호와 줄번호를 send 인스턴스에 세팅
  900. //model.setValue("/root/send_druginfo/appno", model.getValue("/root/init/temp/newappnoinfo/appno"));
  901. //model.setValue("/root/send_druginfo/lnno", model.getValue("/root/init/temp/newappnoinfo/lnno"));
  902. messageBox(" 신청번호 "+appno+"(이)가 생성","I002");
  903. var app1 = model.getValue("/root/init/temp/newappnoinfo/appno");
  904. var app2 = app1.substr(0,8);
  905. var app3 = app1.substr(8,4);
  906. model.setValue("/root/send/appno1",app2);
  907. model.setValue("/root/send/appno2",app3);
  908. model.refresh();
  909. //cmb_appno2.select(0);
  910. ]]>
  911. </script>
  912. </button>
  913. </group>
  914. <button id="button108" class="btn2_letter12" visibility="hidden" style="left:45px; top:195px; width:152px; height:19px; ">
  915. <caption>[콤보박스]신청번호2 조회</caption>
  916. <!-- - 2007.05.30 / 화면수정 / 청구년월을 획득하기위한 [Enter] 이벤트 핸들러 -->
  917. <script type="javascript" ev:event="DOMActivate">
  918. <![CDATA[
  919. if(ipt_appno1.value.length > 0){
  920. if(submit("TRPIE00301")){
  921. var seqno = model.getValue("/root/hidden/getseqnoinfo/getseqno/seqno");
  922. if(seqno == ""){
  923. messageBox("생성된 신청번호가","I004");
  924. model.setValue("/root/send/appno2","0001");
  925. }else {
  926. model.setValue("/root/send/appno2",seqno);
  927. }
  928. }
  929. }
  930. model.refresh();
  931. ]]>
  932. </script>
  933. </button>
  934. <button id="button12" class="btn2_letter6" visibility="hidden" style="left:205px; top:195px; width:86px; height:19px; ">
  935. <caption>약품정보조회</caption>
  936. <!-- - 2007.05.30 / 화면수정 / 청구년월을 획득하기위한 [Enter] 이벤트 핸들러 -->
  937. <script type="javascript" ev:event="DOMActivate">
  938. <![CDATA[
  939. //가운데 H702 조회 셋팅
  940. submit("TRPIE00302"); // 약품정보 조회해서 그리드에 Display 해줌
  941. model.refresh();
  942. //약품정보를 조회하는건 새로운 것을 입력한다는것으로 보고. 조회조건의 신청번호와 일련번호를 가져와서 중앙에 보여준다.
  943. var appno1 = model.getValue("/root/send/appno1");
  944. var appno2 = model.getValue("/root/send/appno2");
  945. var appno = appno1 + appno2;
  946. var chk = model.getValue("/root/main/list02/gridpiehh702info/itemnm");
  947. if(chk == ""){
  948. messageBox("입력하신 처방코드가","I004");
  949. }else{
  950. model.setValue("/root/hidden/h702statusinfo/statusinfo/status", "insert");
  951. model.setValue("/root/main/list02/gridpiehh702info/appno", appno);
  952. model.setValue("/root/main/list02/gridpiehh702info/lnno", "");
  953. submit("TRPIE00305"); // 약품성분정보 동시에 조회해서 그리드에 Display 해줌
  954. //약품조회시 처음에 insert한다는 전제하에 status를 I로 한다.
  955. var rows = grd_piehh703.rows;
  956. var frows = grd_piehh703.fixedRows;
  957. var nrows = rows - frows;
  958. for(var i = 1; i <= nrows; i++){
  959. model.setValue("/root/main/list03/gridpiehh703[" + i + "]/appno",appno);
  960. model.setValue("/root/main/list03/gridpiehh703[" + i + "]/lnno","new");
  961. grd_piehh703.rowStatus(i) = 1;
  962. }
  963. }
  964. ]]>
  965. </script>
  966. </button>
  967. <input id="input6" ref="/root/main/list02/gridpiehh702info/unit" class="input_default" style="left:833px; top:309px; width:118px; height:19px; text-align:left; "/>
  968. <caption id="caption10" class="cell_1" style="left:715px; top:307px; width:115px; height:23px; vertical-align:middle; ">단위</caption>
  969. <button id="button15" class="btn5_letter6" style="left:1106px; top:53px; width:86px; height:19px; ">
  970. <caption>SAM생성확인</caption>
  971. <script type="javascript" ev:event="DOMActivate">
  972. <![CDATA[
  973. var todd = getCurrentDate();
  974. todd = todd.toDate().getAddDate(+1, 'D');
  975. zsbfOpenBatchLogPopup("samfilemngtmgr.ItSlfMkDrugReptBatch",getCurrentDate(),todd.getDateFormat());
  976. ]]>
  977. </script>
  978. </button>
  979. <button id="button16" class="btn5_letter4" style="left:1041px; top:53px; width:64px; height:19px; ">
  980. <caption>SAM생성</caption>
  981. <script type="javascript" ev:event="onclick">
  982. <![CDATA[
  983. // 신청번호 받아오기
  984. var appno1 = model.getValue("/root/send/appno1");
  985. var appno2 = model.getValue("/root/send/appno2");
  986. var appno = appno1 + appno2;
  987. model.setValue("/root/send_samcret/appno", appno);
  988. // 신청번호에 해당하는 h701정보 완료하기
  989. if(appno != "" && appno.length == 12){
  990. submit("TXPIE00306");
  991. var no = "1";
  992. }else{
  993. messageBox("신청번호에 해당하는 H701파일을 완성", "E001");
  994. var no = "2";
  995. }
  996. // sam생성하기.
  997. if(no == "1"){
  998. submit("TXPIE00304");
  999. }
  1000. ]]>
  1001. </script>
  1002. </button>
  1003. <input id="input1" ref="/root/main/list02/gridpiehh702info/lnno" class="input_default" disabled="true" style="left:1033px; top:284px; width:118px; height:19px; text-align:left; "/>
  1004. <input id="input2" ref="/root/main/list02/gridpiehh702info/appno" class="input_default" disabled="true" style="left:1033px; top:259px; width:118px; height:19px; text-align:left; "/>
  1005. <select1 id="cmb_joje" ref="/root/main/list02/gridpiehh702info/prcpprodflag" appearance="minimal" style="left:118px; top:285px; width:114px; height:19px; text-align:left; ">
  1006. <choices>
  1007. <item>
  1008. <label>1. 조제</label>
  1009. <value>1</value>
  1010. </item>
  1011. <item>
  1012. <label>2. 제제</label>
  1013. <value>2</value>
  1014. </item>
  1015. </choices>
  1016. </select1>
  1017. <button id="btn_delrow" class="btn5_letter3" visibility="visible" style="left:1093px; top:368px; width:53px; height:19px; ">
  1018. <caption>행삭제</caption>
  1019. <script type="javascript" ev:event="DOMActivate">
  1020. <![CDATA[
  1021. var row = grd_piehh703.row;
  1022. grd_piehh703.rowStatus(row) = 4;
  1023. ]]>
  1024. </script>
  1025. </button>
  1026. <button id="btn_addrow" class="btn2_letter3" visibility="visible" style="left:985px; top:368px; width:53px; height:19px; ">
  1027. <caption>행추가</caption>
  1028. <script type="javascript" ev:event="DOMActivate">
  1029. <![CDATA[
  1030. var num = model.getValue("/root/hidden/addrowno/number");
  1031. if(num == "" || num == "0"){
  1032. grd_piehh703.addRow();
  1033. var rows = grd_piehh703.rows;
  1034. var frows = grd_piehh703.fixedRows;
  1035. var nrows = rows - frows;
  1036. //alert(rows + "-----" + frows + "-------" + nrows);
  1037. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/appno", model.getValue("/root/main/list02/gridpiehh702info/appno"));
  1038. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/lnno",model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  1039. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/cdflag","7I3");
  1040. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/purcdd", getCurrentDate());
  1041. //model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/pinstbzplcergstno","5028113179");
  1042. //model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/pinstcmpynm","보나에스");
  1043. model.refresh();
  1044. }else{
  1045. for(var i=1; i<=num; i++){
  1046. grd_piehh703.addRow();
  1047. var rows = grd_piehh703.rows;
  1048. var frows = grd_piehh703.fixedRows;
  1049. var nrows = rows - frows;
  1050. //alert(rows + "-----" + frows + "-------" + nrows);
  1051. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/appno", model.getValue("/root/main/list02/gridpiehh702info/appno"));
  1052. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/lnno",model.getValue("/root/main/list02/gridpiehh702info/lnno"));
  1053. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/cdflag","7I3");
  1054. model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/purcdd", getCurrentDate());
  1055. //model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/pinstbzplcergstno","2158155746");
  1056. //model.setValue("/root/main/list03/gridpiehh703[" + nrows + "]/pinstcmpynm","보나에스");
  1057. model.refresh();
  1058. }
  1059. }
  1060. ]]>
  1061. </script>
  1062. </button>
  1063. <button id="btn_copyrow" class="btn2_letter3" visibility="visible" style="left:1039px; top:368px; width:53px; height:19px; ">
  1064. <caption>행복사</caption>
  1065. <script type="javascript" ev:event="DOMActivate">
  1066. <![CDATA[
  1067. var row = grd_piehh703.row;
  1068. var appno = grd_piehh703.valueMatrix(row,1);
  1069. var lnno = grd_piehh703.valueMatrix(row,2);
  1070. var cdflag = grd_piehh703.valueMatrix(row,3);
  1071. var drugcd = grd_piehh703.valueMatrix(row,4);
  1072. var edicd = grd_piehh703.valueMatrix(row,5);
  1073. var drugnm = grd_piehh703.valueMatrix(row,6);
  1074. var drugspec = grd_piehh703.valueMatrix(row,7);
  1075. var drugunit = grd_piehh703.valueMatrix(row,8);
  1076. var purcdd = grd_piehh703.valueMatrix(row,9);
  1077. var unitcost = grd_piehh703.valueMatrix(row,10);
  1078. var durgqty = grd_piehh703.valueMatrix(row,11);
  1079. var drugqtyunit = grd_piehh703.valueMatrix(row,12);
  1080. var drugqtyamt = grd_piehh703.valueMatrix(row,13);
  1081. var pinstbzplcergstno = grd_piehh703.valueMatrix(row,14);
  1082. var pinstcmpynm = grd_piehh703.valueMatrix(row,15);
  1083. grd_piehh703.addRow();
  1084. var rows = grd_piehh703.rows;
  1085. var frows = grd_piehh703.fixedRows;
  1086. var nrows = rows - frows;
  1087. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/appno",appno);
  1088. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/lnno",lnno);
  1089. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/cdflag",cdflag);
  1090. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/drugcd",drugcd);
  1091. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/edicd",edicd);
  1092. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/drugnm",drugnm);
  1093. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/drugspec",drugspec);
  1094. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/drugunit",drugunit);
  1095. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/purcdd",purcdd);
  1096. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/unitcost",unitcost);
  1097. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/durgqty",durgqty);
  1098. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/drugqtyunit",drugqtyunit);
  1099. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/drugqtyamt",drugqtyamt);
  1100. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/pinstbzplcergstno",pinstbzplcergstno);
  1101. model.setValue("/root/main/list03/gridpiehh703[" + nrows +"]/pinstcmpynm",pinstcmpynm);
  1102. model.refresh();
  1103. ]]>
  1104. </script>
  1105. </button>
  1106. <caption id="caption1" class="cell_1" style="left:957px; top:258px; width:75px; height:23px; vertical-align:middle; ">신청번호</caption>
  1107. <caption id="caption2" class="cell_1" style="left:957px; top:282px; width:75px; height:23px; vertical-align:middle; ">줄번호</caption>
  1108. <caption id="caption3" class="cell_1" style="left:957px; top:307px; width:75px; height:23px; vertical-align:middle; ">STATUS</caption>
  1109. <input id="input3" ref="/root/hidden/h702statusinfo/statusinfo/status" class="input_default" disabled="true" style="left:1033px; top:309px; width:118px; height:19px; text-align:left; "/>
  1110. <input id="input4" ref="/root/hidden/addrowno/number" class="input_default" style="left:955px; top:368px; width:28px; height:19px; text-align:left; ">
  1111. <script type="javascript" ev:event="onkeydown">
  1112. <![CDATA[
  1113. inputEnterKey("btn_addrow", "DOMActivate");
  1114. ]]>
  1115. </script>
  1116. </input>
  1117. <button id="button1" class="btn2_letter3" visibility="visible" style="left:987px; top:53px; width:53px; height:19px; ">
  1118. <caption>행삭제</caption>
  1119. <script type="javascript" ev:event="DOMActivate">
  1120. <![CDATA[
  1121. // 선택된 row가 있는지 확인한다.
  1122. var selectCnt = 0;
  1123. selectCnt = grd_piehh702.selectedRows;
  1124. // 선택된 row가 없을때..
  1125. if (selectCnt == 0) {
  1126. model.alert("선택후 다시 시도해 주세요");
  1127. return;
  1128. }
  1129. // 선택된 row를 옮기기위한 단계 인스턴스 초기화
  1130. model.removeNodeset("/root/send_selectlist/selectlist");
  1131. model.refresh();
  1132. var rows = grd_piehh702.rows;
  1133. // 선택된 row의 조회 조건 값을 받는다.
  1134. for (var i=0; i<rows; i++) {
  1135. var sel = grd_piehh702.selectedRow(i);
  1136. if(sel != '-1'){
  1137. model.setValue("/root/hidden/selectlist/appno", model.getValue("/root/main/list01/gridpiehh702[" + (sel - grd_piehh702.fixedRows + 1) + "]/appno"));
  1138. model.setValue("/root/hidden/selectlist/lnno", model.getValue("/root/main/list01/gridpiehh702[" + (sel - grd_piehh702.fixedRows + 1) + "]/lnno"));
  1139. copyNodeListType("/root/send_selectlist", "/root/hidden/selectlist", "after");
  1140. }
  1141. }
  1142. // 선택된 값으로 명세서별로 조회
  1143. submit("TXPIE00307");
  1144. // H070.2 재조회
  1145. btn_srch.dispatch("DOMActivate");
  1146. // H070.2
  1147. //submit("TRPIE00303");
  1148. ]]>
  1149. </script>
  1150. </button>
  1151. <button id="button2" class="btn2_letter2" disabled="false" style="left:1065px; top:232px; width:42px; height:19px; ">
  1152. <caption>입력</caption>
  1153. <script type="javascript" ev:event="DOMActivate">
  1154. <![CDATA[
  1155. model.resetInstanceNode("root/send_druginfo");
  1156. model.resetInstanceNode("/root/main/list02/gridpiehh702info");
  1157. model.resetInstanceNode("/root/main/list03/gridpiehh703");
  1158. model.resetInstanceNode("/root/hidden/h702statusinfo/statusinfo/status");
  1159. model.resetInstanceNode("/root/send/tpndrugcd");
  1160. model.resetInstanceNode("/root/send/unitcostappdd");
  1161. model.refresh();
  1162. ]]>
  1163. </script>
  1164. </button>
  1165. <button id="button3" class="btn4_letter4" style="left:980px; top:230px; width:80px; height:22px; ">
  1166. <caption>대상조회</caption>
  1167. <script type="javascript" ev:event="DOMActivate">
  1168. <![CDATA[
  1169. var cdd = getCurrentDate();
  1170. var today = cdd.substr(0,6) + "01";
  1171. var appdd = today.toDate().getAddDate(1,"M").getDateFormat();
  1172. clearParameter();
  1173. modal("../../../pam/edimngtweb/xrw/SPPIE00150_조제제제약대상조회", "", "200", "200" ,"SPPIE00150_조제제제약대상조회", "", "");
  1174. //open("../../../pam/edimngtweb/xrw/SPPIE00150_조제제제약대상조회", "", "200", "200" ,"SPPIE00150_조제제제약대상조회", "", "");
  1175. if (getParameter("okflag") == "Y") {
  1176. var tpndrugcd = getParameter("tpndrugcd");
  1177. var drugnm = getParameter("drugnm");
  1178. var reptitemcd = getParameter("reptitemcd");
  1179. var prcpprodflag = getParameter("prcpprodflag");
  1180. var drugtype = getParameter("drugtype");
  1181. var efcygrup = getParameter("efcygrup");
  1182. var spec = getParameter("spec");
  1183. var efcy = getParameter("efcy");
  1184. var direcvol = getParameter("direcvol");
  1185. var unit = getParameter("unit");
  1186. var fromdate = getParameter("fromdd");
  1187. var todate = getParameter("todd");
  1188. model.setValue("/root/send/tpndrugcd", tpndrugcd);
  1189. model.setValue("/root/send_druginfo/drugcd", tpndrugcd);
  1190. model.setValue("/root/main/list02/gridpiehh702info/itemnm", drugnm);
  1191. model.setValue("/root/main/list02/gridpiehh702info/reptitemcd", reptitemcd);
  1192. model.setValue("/root/main/list02/gridpiehh702info/prcpprodflag", prcpprodflag);
  1193. model.setValue("/root/main/list02/gridpiehh702info/drugtype", drugtype );
  1194. model.setValue("/root/main/list02/gridpiehh702info/efcygrup", efcygrup );
  1195. model.setValue("/root/main/list02/gridpiehh702info/efcy", efcy);
  1196. model.setValue("/root/main/list02/gridpiehh702info/spec", spec);
  1197. model.setValue("/root/main/list02/gridpiehh702info/direcvol", direcvol );
  1198. model.setValue("/root/main/list02/gridpiehh702info/unit", unit );
  1199. model.setValue("/root/main/list02/gridpiehh702info/notedd", getCurrentDate() );
  1200. model.setValue("/root/send/fromdate", fromdate);
  1201. model.setValue("/root/send/todate", todate);
  1202. model.setValue("/root/send/h703appno", model.getValue("/root/send_druginfo/appno"));
  1203. model.setValue("/root/send/h703lnno", model.getValue("/root/send_druginfo/lnno"));
  1204. model.setValue("/root/main/list02/gridpiehh702info/unitcostappdd", appdd);
  1205. model.setValue("/root/send/unitcostappdd", appdd);
  1206. model.refresh();
  1207. btn_h703srch.dispatch("DOMActivate");
  1208. }
  1209. ]]>
  1210. </script>
  1211. </button>
  1212. <input id="ipt_frdate" ref="/root/send/fromdate" inputtype="date" format="yyyy-mm" style="left:495px; top:365px; width:80px; height:19px; "/>
  1213. <input id="ipt_todate" ref="/root/send/todate" inputtype="date" format="yyyy-mm" style="left:592px; top:365px; width:80px; height:19px; "/>
  1214. <caption id="caption4" class="search_name" style="left:405px; top:365px; width:85px; height:17px; ">구매일자 :</caption>
  1215. <caption id="caption7" style="left:578px; top:367px; width:15px; height:20px; ">~</caption>
  1216. <button id="btn_h703srch" class="btn4_letter4" style="left:870px; top:364px; width:80px; height:22px; ">
  1217. <caption>대상조회</caption>
  1218. <script type="javascript" ev:event="DOMActivate">
  1219. <![CDATA[
  1220. var fromdate = model.getValue("/root/send/fromdate");
  1221. var todate = model.getValue("/root/send/todate");
  1222. model.setValue("/root/send/unitcostappdd", model.getValue("/root/main/list02/gridpiehh702info/unitcostappdd") );
  1223. if (fromdate == "" || todate == "") {
  1224. messageBox("구매일자를 입력하세요", "E");
  1225. return;
  1226. }
  1227. submit("TRPIE00309");
  1228. var clamamt = model.getValue("/root/main/list03/claminfo/clamamt");
  1229. var amt = Math.round(clamamt);
  1230. model.setValue("/root/main/list02/gridpiehh702info/clamamt", amt);
  1231. model.setValue("/root/main/list02/gridpiehh702info/spec", model.getValue("/root/main/list03/claminfo/clamdurgqty"));
  1232. for ( i=grd_piehh703.fixedRows; i< grd_piehh703.rows; i++) {
  1233. grd_piehh703.rowStatus(i) = 1;
  1234. }
  1235. model.refresh();
  1236. ]]>
  1237. </script>
  1238. </button>
  1239. <caption id="caption12" class="search_name" style="left:685px; top:365px; width:100px; height:17px; ">TPN코드 :</caption>
  1240. <input id="input5" ref="/root/send/tpndrugcd" style="left:775px; top:365px; width:90px; height:15px; "/>
  1241. <input id="input8" ref="/root/main/list03/claminfo/clamamt" visibility="hidden" style="left:65px; top:365px; width:70px; height:19px; "/>
  1242. <output id="output2" ref="/root/send/h703lnno" visibility="hidden" style="left:95px; top:365px; width:45px; height:19px; "/>
  1243. <input id="input7" ref="/root/send/unitcostappdd" visibility="visible" inputtype="date" style="left:310px; top:365px; width:90px; height:19px; ">
  1244. <script type="javascript" ev:event="xforms-value-changed">
  1245. <![CDATA[
  1246. model.setValue("/root/main/list02/gridpiehh702info/unitcostappdd", model.getValue("/root/send/unitcostappdd") );
  1247. model.refresh();
  1248. ]]>
  1249. </script>
  1250. </input>
  1251. <output id="output1" ref="/root/send/h703appno" visibility="hidden" style="left:140px; top:365px; width:55px; height:19px; "/>
  1252. <caption id="caption13" class="search_name" style="left:210px; top:365px; width:100px; height:17px; ">가격적용일 :</caption>
  1253. <button id="button4" class="btn5_letter4" visibility="hidden" style="left:905px; top:230px; width:64px; height:19px; ">
  1254. <caption>일괄저장</caption>
  1255. <script type="javascript" ev:event="DOMActivate">
  1256. <![CDATA[
  1257. fSave();
  1258. btn_srch.dispatch("DOMActivate");
  1259. ]]>
  1260. </script>
  1261. </button>
  1262. <button id="button5" class="btn4_letter4" style="left:905px; top:50px; width:80px; height:22px; ">
  1263. <caption>수가적용</caption>
  1264. <script type="javascript" ev:event="DOMActivate">
  1265. <![CDATA[
  1266. var appno1 = model.getValue("/root/send/appno1");
  1267. var appno2 = model.getValue("/root/send/appno2");
  1268. if (isNull(appno2)) {
  1269. messageBox("신청번호로 조회 후 적용가능합니다.", "C000");
  1270. return;
  1271. }
  1272. if (messageBox("신청번호 : " + appno1 + appno2 + "\r\n" + "H070.2 리스트에 대하여 일괄 수가적용 하시겠습니까?", "S000") == "6") {
  1273. if (submit("TXPIE00309")) {
  1274. var resultCnt = model.getValue("/root/hidden/saveresult/msg");
  1275. messageBox(resultCnt + "건 적용되었습니다.", "I000");
  1276. }
  1277. }
  1278. ]]>
  1279. </script>
  1280. </button>
  1281. </group>
  1282. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  1283. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">자체 조제/제제약 신고서 관리</caption>
  1284. </group>
  1285. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1194px; height:27px; ">
  1286. <button id="btn_init" class="btn4_letter5" style="left:1099px; top:4px; width:92px; height:22px; ">
  1287. <caption>입력초기화</caption>
  1288. <script type="javascript" ev:event="DOMActivate">
  1289. <![CDATA[
  1290. model.resetInstanceNode("/root/main/list02/gridpiehh702info");
  1291. model.removeNodeset("/root/main/list03/gridpiehh703");
  1292. model.resetInstanceNode("/root/hidden/h702statusinfo/statusinfo");
  1293. model.refresh();
  1294. ]]>
  1295. </script>
  1296. </button>
  1297. </group>
  1298. </xhtml:body>
  1299. </xhtml:html>