12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>의약품 구입내역 신고서 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <fromdd/>
- <todd/>
- <list1>
- <h801/>
- </list1>
- <list2>
- <h802/>
- </list2>
- <list3>
- <h803/>
- </list3>
- <item1>
- <reptcd/>
- </item1>
- <appno/>
- <appyearmnth/>
- <repttotcnt/>
- <searchreptcd/>
- </send>
- <send_createappno>
- <appno1/>
- <appno2/>
- </send_createappno>
- <send_appno>
- <appno/>
- <appyearmnth/>
- </send_appno>
- <send_reptcd>
- <appno/>
- <reptcd/>
- </send_reptcd>
- <send_save801>
- <save801/>
- </send_save801>
- <send_save802>
- <save802/>
- </send_save802>
- <send_save803>
- <save803/>
- </send_save803>
- <main>
- <list01>
- <gridpiehh801>
- <appno/>
- <docuno/>
- <corpmark/>
- <chrgnm/>
- <cnfmnm/>
- <appyearmnth/>
- <repttotcnt/>
- <rem/>
- <insudt/>
- <insurid/>
- <insucnt/>
- <insuflag/>
- <winfromdd/>
- <wintodd/>
- <avgdt/>
- </gridpiehh801>
- </list01>
- <list02>
- <gridpiehh802>
- <reptcd/>
- <itemflagno/>
- <makecmpynm/>
- <item/>
- <spec/>
- <unit/>
- <lnnoremark/>
- <avg/>
- <fstpurcflag/>
- <calcscorcd/>
- </gridpiehh802>
- </list02>
- <list03>
- <gridpiehh803>
- <reptcd/>
- <lnno/>
- <cmpyno/>
- <cmpynm/>
- <purcdd/>
- <purcqty/>
- <purcunitcost/>
- <purctotamt/>
- <cmpyremark/>
- <itemflaglnkno/>
- </gridpiehh803>
- </list03>
- <temp>
- <appno>200101151</appno>
- </temp>
- <item1>
- <rscdgood>
- <reptcd/>
- <makecmpynm/>
- <item/>
- <spec/>
- <unit/>
- <fstpurcflag/>
- <calcscorcd/>
- </rscdgood>
- </item1>
- <result/>
- </main>
- <init>
- <P0280list>
- <P0280>
- <cdid/>
- <cdnm/>
- </P0280>
- </P0280list>
- <U0001list>
- <U0001>
- <cdid/>
- <cdnm/>
- </U0001>
- </U0001list>
- <P0131list>
- <P0131>
- <cdid/>
- <cdnm/>
- </P0131>
- </P0131list>
- <P0300list>
- <P0300>
- <cdid/>
- <cdnm/>
- </P0300>
- </P0300list>
- <temp>
- <newappnoinfo>
- <appno/>
- <appseqno/>
- <proccorpcd/>
- <chrgnm/>
- <prsdnm/>
- <appyearmnth/>
- </newappnoinfo>
- </temp>
- </init>
- <popupdata>
- <popupmenu>
- <gridpiehh702>
- <item>
- <name>신고조회</name>
- <func>fMenu1</func>
- </item>
- </gridpiehh702>
- </popupmenu>
- </popupdata>
- <hidden>
- <sppie00130_h802>
- <cond>
- <fromdd/>
- <todd/>
- <srchcond1/>
- <srchcond2/>
- <dtlselectyn/>
- <iokindyn/>
- </cond>
- <rslt>
- <h802>
- <reptcd/>
- <itemflagno/>
- <makecmpynm/>
- <item/>
- <spec/>
- <unit/>
- <lnnoremark/>
- <avg/>
- <fstpurcflag/>
- <calcscorcd/>
- </h802>
- </rslt>
- </sppie00130_h802>
- <sppie00130_h803>
- <rslt>
- <h803>
- <reptcd/>
- <lnno/>
- <cmpyno/>
- <cmpynm/>
- <purcdd/>
- <purcqty/>
- <purcunitcost/>
- <purctotamt/>
- <cmpyremark/>
- <itemflaglnkno/>
- </h803>
- </rslt>
- </sppie00130_h803>
- <getseqnoinfo>
- <getseqno>
- <seqno/>
- </getseqno>
- </getseqnoinfo>
- <addrowno>
- <number_h802/>
- <number_h803/>
- </addrowno>
- <appnolnno>
- <newlnno>
- <lnno/>
- </newlnno>
- </appnolnno>
- <selectlist>
- <appno/>
- <lnno/>
- </selectlist>
- <popupmenu>
- <h802>
- <item>
- <name>입고세부내역 조회</name>
- <func>fSelectDtlInpt</func>
- </item>
- </h802>
- </popupmenu>
- </hidden>
- <send2>
- <fromdd/>
- <todd/>
- <offset/>
- <pagesize>5000</pagesize>
- </send2>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPIE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
- <submission id="TRPIE00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_appno" resultref="/root/main/list02"/>
- <submission id="TRPIE00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_reptcd" resultref="/root/main/list03"/>
- <submission id="TRPIE00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_createappno" resultref="/root/init/temp"/>
- <submission id="TRPIE00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_appno" resultref="/root/main/list01"/>
- <submission id="TRPIE00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main/item1"/>
- <submission id="TXPIE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/result"/>
- <submission id="TXPIE00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list2/h802" resultref="/root/main/result"/>
- <submission id="TXPIE00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list3/h803" resultref="/root/main/result"/>
- <submission id="TXPIE00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_appno" resultref="/root/main/result"/>
- <submission id="TXPIE00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_appno" resultref="/root/main/result"/>
- <submission id="TXPIE00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send_appno" resultref="/root/main/result"/>
- <submission id="TRPIE00131" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" add="bottom" resultref="/root/main/list02/gridpiehh802"/>
- <submission id="TRPIE00132" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" add="bottom" resultref="/root/main/list03/gridpiehh803"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNode("/root/main/list02/gridpiehh802" );
- model.removeNode("/root/main/list03/gridpiehh803" );
-
- ipt_fromdd.value = getCurrentDate();
- ipt_todd.value = getCurrentDate();
-
- ipt_appno1.value = getCurrentDate();
- //grd_piehh801.frozenCols = grd_piehh801.colRef("itemnm");
- grd_piehh802.frozenCols = grd_piehh802.colRef("item");
- grd_piehh803.frozenCols = grd_piehh803.colRef("cmpynm");
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript">
- <![CDATA[
- // 신청일자조회 Valid Check
- function fSendChk() {
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- var appno1 = model.getValue("/root/send_createappno/appno1");
- var appno2 = model.getValue("/root/send_createappno/appno2");
- var appno = appno1 + appno2;
-
- if(fromdd == ""){
- messageBox("신청일자 시작일을","C001");
- return false;
- }
- if(todd == ""){
- messageBox("신청일자 종료일","C001");
- return false;
- }
- }
-
- // 신청번호생성 신청일자 Valid Check
- function fDayChk(){
- var appno = model.getValue("/root/send_createappno/appno1");
- var dd = getCurrentDate();
- if(appno != dd){
- var chk = messageBox("신청일자가 오늘일자와 다릅니다.","Q003");
- if(chk == "6"){
- return true;
- }else{
- return false;
- }
- }
- }
-
- // 전체조회 H803
- function fReSelectAllF080(nowRow) {
-
- // H801조회
- submit("TRPIE00205");
- grd_piehh801.row = 1;
-
- // H802조회
- var appno = grd_piehh801.valueMatrix(nowRow, grd_piehh801.colRef("appno"));
- if (appno != "") {
- model.setValue("/root/send_appno/appno", appno);
- submit("TRPIE00202");
-
- //grd_piehh802.select(1);
- //fSelectH083();
-
- // H803조회
- /* 803 전체조회 막기
- var appno = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("appno"));
- var reptcd = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("reptcd"));
- if (appno != "" && reptcd != "") {
- model.setValue("/root/send_reptcd/appno", appno);
- model.setValue("/root/send_reptcd/reptcd", "");
- submit("TRPIE00203");
- }
- */
- }
- }
-
- // 입고세부조회
- function fSelectDtlInpt() {
-
- var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
-
- if (reptcd == "") {
- messageBox("조회할 품목코드를", "C002"); //선택하십시오 !
- } else {
-
- model.resetInstanceNode("/root/hidden/sppie00130_h802/cond");
- model.setValue("/root/hidden/sppie00130_h802/cond/fromdd", grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("winfromdd"))); // 입고일자 연동
- model.setValue("/root/hidden/sppie00130_h802/cond/todd", grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("wintodd"))); // 입고일자 연동
- model.setValue("/root/hidden/sppie00130_h802/cond/srchcond1", "1"); // 검색구분 1:edi, 2:처방코드
- model.setValue("/root/hidden/sppie00130_h802/cond/srchcond2", reptcd); // 검색코드
- model.setValue("/root/hidden/sppie00130_h802/cond/dtlselectyn", "Y"); // 입고상세조회여부
- model.setValue("/root/hidden/sppie00130_h802/cond/iokindyn", ""); // 이송입고포함여부
-
- // 입고내역조회 팝업화면
- modal("SPPIE00130", 1, "10", "10", "SPPIE00130", "/root/hidden/sppie00130_h802/cond", "/root/init", "", "");
-
- // H803 그리드에 새로 신규추가할 maxrow 찾기
- maxRow = grd_piehh803.rows -1;
- var tmpreptcd = grd_piehh803.valueMatrix(maxRow, grd_piehh803.colRef("reptcd"));
- if (tmpreptcd != "") {
- maxRow = maxRow + 1;
- }
-
- var rsltRow = 1;
- var rsltNode = instance1.selectSingleNode("/root/hidden/sppie00130_h803/rslt");
- if (rsltNode != null) {
- for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/appno", grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("appno")));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/reptcd", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/reptcd"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/lnno", "0");
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpyno", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/cmpyno"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpynm", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/cmpynm"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcdd", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcdd"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcqty", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcqty"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcunitcost", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcunitcost"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purctotamt", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purctotamt"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpyremark", "-");
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/itemflaglnkno", 1);
- rsltRow += 1;
- }
- grd_piehh803.refresh();
- }
-
- for (var i = maxRow; i < grd_piehh803.rows; i++) {
- grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
- }
- }
- }
-
- // H083 조회
- function fSelectH083( ) {
- //if (grd_piehh802.colRef("reptcd") || grd_piehh802.colRef("itemflagno") || grd_piehh802.colRef("makecmpynm") || grd_piehh802.colRef("item")) {
- var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
- if (grd_piehh802.isCell(event.target) && grd_piehh802.mouseRow >= grd_piehh802.fixedrows && reptcd != "") {
- var appno = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("appno"));
- var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
- if (appno != "" && reptcd != "") {
- model.setValue("/root/send_reptcd/appno", appno);
- model.setValue("/root/send_reptcd/reptcd", reptcd);
- submit("TRPIE00203");
- grd_piehh803.refresh();
- }
- }
- //}
- }
-
- function fSelectH082() {
- //if (grd_piehh801.colRef("appno") || grd_piehh801.colRef("docuno") || grd_piehh801.colRef("corpmark") || grd_piehh801.colRef("appyearmnth")) {
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- if (grd_piehh801.isCell(event.target) && grd_piehh801.mouseRow >= grd_piehh801.fixedrows && appno != "") {
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- if (appno != "") {
- //model.resetInstanceNode("/root/main/list02/gridpiehh802");
- //model.resetInstanceNode("/root/main/list03/gridpiehh803");
-
- model.setValue("/root/send_appno/appno", appno);
- submit("TRPIE00202");
-
- // 약가가 적용되었거나 만료된 경우, h802, h803 모두 수정 불가
- if (model.getValue("/root/main/list01/gridpiehh801[" + grd_piehh801.row + "]/insuflag") != "N") {
- fEditable(false);
- } else {
- fEditable(true);
- }
-
- /* 803 전체조회 막기
- var appno = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("appno"));
- var reptcd = grd_piehh802.valueMatrix(1, grd_piehh802.colRef("reptcd"));
- if (appno != "" && reptcd != "") {
- model.setValue("/root/send_reptcd/appno", appno);
- model.setValue("/root/send_reptcd/reptcd", "");
- submit("TRPIE00203");
- }
- */
- }
- }
- }
-
- function fEditable(flag) {
- for (var i = 0; i < grd_piehh802.cols; i++) {
- grd_piehh802.colDisabled(i) = !flag;
- }
-
- input4.visible = flag;
- btn_addrow.visible = flag;
- btn_delrow.visible = flag;
-
- for (var i = 0; i < grd_piehh803.cols; i++) {
- grd_piehh803.colDisabled(i) = !flag;
- }
-
- input1.visible = flag;
- button6.visible = flag;
- button9.visible = flag;
- button3.visible = flag;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">의약품 구입내역 신고서 관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption3" class="search_name" style="left:473px; top:9px; width:86px; height:17px; ">신청번호 :</caption>
- <button id="btn_select" class="btn1_letter2" style="left:340px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSendChk();
- submit("TRPIE00201");
- model.resetInstanceNode("/root/main/list02/gridpiehh802");
- model.resetInstanceNode("/root/main/list03/gridpiehh803");
- model.removeNode("/root/main/list02/gridpiehh802" );
- model.removeNode("/root/main/list03/gridpiehh803" );
-
- grd_piehh802.refresh();
- grd_piehh803.refresh();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:323px; y1:7px; x2:323px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption41" class="search_name" style="left:19px; top:9px; width:112px; height:17px; ">신청일자 :</caption>
- <caption id="caption11" style="left:204px; top:12px; width:15px; height:15px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:220px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" format="yyyy-mm-dd" appearance="input" style="left:110px; top:8px; width:90px; height:19px; ">
- <caption id="caption7"/>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- //model.setValue("/root/send/todd",model.getValue("/root/send/fromdd"));
- //model.refreshpart("/root/send/todd");
- ]]>
- </script>
- </input>
- <button id="button11" class="btn1_letter6" style="left:695px; top:7px; width:104px; height:22px; ">
- <caption>신청번호생성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // 신청일자 체크
- fDayChk();
-
- submit("TRPIE00204");
- var appno = model.getValue("/root/init/temp/newappnoinfo/appno");
- var appno2 = model.getValue("/root/init/temp/newappnoinfo/appseqno");
-
- if (appno2 != "") {
- messageBox(" 신청번호 "+appno+"(이)가 생성","I002");
- var app1 = model.getValue("/root/init/temp/newappnoinfo/appno");
- var app2 = app1.substr(0,8);
- var app3 = app1.substr(8,4);
- model.setValue("/root/send_createappno/appno1", app2);
- model.setValue("/root/send_createappno/appno2", app3);
- model.refreshpart("/root/send_createappno/appno1");
- model.refreshpart("/root/send_createappno/appno2")
-
- // H080.1 그리드신규추가;------------------------------------------------------------------------------------------------------------
- var nowRow = 0;
- var maxRow = grd_piehh801.rows -1;
- var tmpAppno = grd_piehh801.valueMatrix(maxRow, grd_piehh801.colRef("appno"));
- if (tmpAppno == "") {
- grd_piehh801.rowStatus(maxRow) = 1; // 1:insert 로 업데이트
- nowRow = maxRow;
- } else {
- grd_piehh801.addRow(true, false);
- nowRow = grd_piehh801.row;
- }
-
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/appno", model.getValue("/root/init/temp/newappnoinfo/appno"));
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/docuno", "H080");
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/corpmark", model.getValue("/root/init/temp/newappnoinfo/proccorpcd"));
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/chrgnm", model.getValue("/root/init/temp/newappnoinfo/chrgnm"));
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/cnfmnm", model.getValue("/root/init/temp/newappnoinfo/prsdnm"));
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/appyearmnth", model.getValue("/root/init/temp/newappnoinfo/appyearmnth"));
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/repttotcnt", "0");
- model.setValue("/root/main/list01/gridpiehh801["+ nowRow +"]/rem", "");
-
- grd_piehh801.row = nowRow;
- grd_piehh801.refresh();
- grd_piehh801.refresh();
- model.refresh();
- //--------------------------------------------------------------------------------------------------------------------------------
- }
- ]]>
- </script>
- </button>
- <input id="ipt_appno1" ref="/root/send_createappno/appno1" class="input_search" autonext="false" maxlength="8" appearance="input" style="left:560px; top:8px; width:66px; height:19px; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //inputEnterKey("button108", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_appno2" ref="/root/send_createappno/appno2" class="input_search" maxlength="4" appearance="input" style="left:628px; top:8px; width:60px; height:19px; "/>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:165px; height:14px; ">의약품구입내역(H080.1)</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:76px; x2:1194px; y2:75px; "/>
- <caption id="caption57" class="tit_2" style="left:5px; top:269px; width:162px; height:13px; ">의약품구입내역(H080.2)</caption>
- <line id="line24" class="line_1" style="x1:0px; y1:287px; x2:585px; y2:287px; "/>
- <datagrid id="grd_piehh802" nodeset="/root/main/list02/gridpiehh802" caption="품목코드^품목번호^품 목^규격^단위^제약(수입)회사명^비고사항^가중평균가^최초구입구분^수가코드^신청번호" colsep="^" colwidth="69, 55, 177, 61, 62, 109, 125, 97, 100, 100, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:292px; width:585px; height:450px; ">
- <col ref="reptcd" type="input" _chartype="upper" style="text-align:left; "/>
- <col ref="itemflagno" style="text-align:center; "/>
- <col ref="item" type="input" style="text-align:left; "/>
- <col ref="spec" type="input" style="text-align:right; "/>
- <col ref="unit" type="input" style="text-align:right; "/>
- <col ref="makecmpynm" type="input" style="text-align:left; "/>
- <col ref="lnnoremark" type="input" style="text-align:left; "/>
- <col ref="avg" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="fstpurcflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>최초구입분</label>
- <value>A</value>
- </item>
- <item>
- <label>반복구입분</label>
- <value>B</value>
- </item>
- <item>
- <label>단가변경</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="calcscorcd" style="text-align:left; "/>
- <col ref="appno" style="text-align:left; "/>
- <col ref="fromdd" visibility="hidden"/>
- <col ref="todd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- // H083조회
- fSelectH083();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var row = grd_piehh802.row;
- var col = grd_piehh802.col;
- var reptcdlength = 0;
-
- if (col == grd_piehh802.colRef("reptcd")) {
-
- model.setValue("/root/send/item1/reptcd", grd_piehh802.valueMatrix(row, grd_piehh802.colRef("reptcd")));
- if (submit("TRPIE00206")) {
- var reptcdNodes = instance1.selectNodes("/root/main/item1/rscdgood");
- if (reptcdNodes.length > 0 && reptcdNodes != null) {
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/appno", appno);
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/reptcd", model.getValue("/root/main/item1/rscdgood/reptcd "));
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/itemflagno", "0");
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/makecmpynm", model.getValue("/root/main/item1/rscdgood/makecmpynm"));
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/item", model.getValue("/root/main/item1/rscdgood/item"));
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/spec", model.getValue("/root/main/item1/rscdgood/spec"));
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/unit", model.getValue("/root/main/item1/rscdgood/unit"));
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/lnnoremark", "-");
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/avg", 1);
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/fstpurcflag", model.getValue("/root/main/item1/rscdgood/fstpurcflag"));
- model.setValue("/root/main/list02/gridpiehh802["+ row +"]/calcscorcd", model.getValue("/root/main/item1/rscdgood/calcscorcd"));
- grd_piehh802.refresh();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_piehh802.mouseRow >= grd_piehh802.fixedrows) {
- setPopupMenu("grd_piehh802", false, "/root/hidden/popupmenu/h802/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
- if (event.button != 3 && grd_piehh802.colType(grd_piehh802.col) == "input") {
- var status = grd_piehh802.rowStatus(grd_piehh802.row);
- var col = grd_piehh802.col;
- if (col == grd_piehh802.colRef("reptcd") && (status == 0)) {
- } else {
- grd_piehh802.editCell();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- var rowno = grd_piehh802.rows - 1;
- var cvalue = 0;
-
- if(rowno / 5000 >= 1) {
- cvalue = (rowno/5000) / Math.floor(rowno/5000);
- }
-
- if(grd_piehh802.vscroll.attribute("max") == grd_piehh802.vscroll.attribute("pos") && grd_piehh801.row > 0 && cvalue == 1) {
- // end of scroll
- model.setValue("/root/send2/offset", grd_piehh802.rows-grd_piehh802.fixedRows); // grid의 header row는 제외
- submit("TRPIE00131");
-
- grd_piehh802.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
-
- for (var i = 1; i < grd_piehh802.rows; i++) {
- if(grd_piehh802.valueMatrix(i, grd_piehh802.colRef("itemflagno")) == 0) {
- grd_piehh802.rowStatus(i) = 1; // 1:insert 상태로 변경
- grd_piehh802.valueMatrix(i, grd_piehh802.colRef("appno")) = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_piehh801" nodeset="/root/main/list01/gridpiehh801" caption="신청번호^서식번호^요양기관기호^작성자명^확인자명^입고분기^총건수^입고시작일^입고종료일^가중평균가생성일시^약가적용^약가건수^약가적용일시^약가생성자^참조란" colsep="^" colwidth="90, 0, 90, 60, 60, 70, 60, 70, 70, 120, 60, 60, 120, 70, 160" dataheight="25" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:79px; width:1194px; height:171px; ">
- <col ref="appno" style="text-align:center; "/>
- <col ref="docuno" style="text-align:center; "/>
- <col ref="corpmark" style="text-align:center; "/>
- <col ref="chrgnm" type="input" style="text-align:center; "/>
- <col ref="cnfmnm" type="input" style="text-align:center; "/>
- <col ref="appyearmnth" style="text-align:center; "/>
- <col ref="repttotcnt" type="input" format="#,###" style="text-align:center; "/>
- <col ref="winfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="wintodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="avgdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col disabled="true" ref="insuflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>적용</label>
- <value>Y</value>
- </item>
- <item>
- <label>만료</label>
- <value>C</value>
- </item>
- <item>
- <label>미적용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="insucnt" format="#,###" style="text-align:center; "/>
- <col ref="insudt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="insurid" style="text-align:center; "/>
- <col ref="rem" type="input" maxlength="1750" style="text-align:left; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectH082();
- model.resetInstanceNode("/root/main/list03/gridpiehh803");
- model.removeNode("/root/main/list03/gridpiehh803" );
- grd_piehh803.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
- if (event.button != 3 && grd_piehh801.colType(grd_piehh801.col) == "input") {
- grd_piehh801.editCell();
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_piehh803" nodeset="/root/main/list03/gridpiehh803" caption="품목코드^줄번호^구입기관번호^구입기관상호^구입일자^구입량^구입단가^구입총액^구입기관별 비고사항^품목연계번호^신청번호" colsep="^" colwidth="69, 44, 90, 86, 88, 51, 66, 87, 200, 84, 100" dataheight="25" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:586px; top:292px; width:604px; height:450px; ">
- <col ref="reptcd" type="input" _chartype="upper" style="text-align:left; "/>
- <col ref="lnno" style="text-align:center; "/>
- <col ref="cmpyno" type="input" style="text-align:center; "/>
- <col ref="cmpynm" type="input" style="text-align:left; "/>
- <col ref="purcdd" type="inputdate" style="text-align:center; "/>
- <col ref="purcqty" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="purcunitcost" format="#,###.#" style="text-align:right; "/>
- <col ref="purctotamt" type="input" format="#,###.#" style="text-align:right; "/>
- <col ref="cmpyremark" type="input" style="text-align:left; "/>
- <col ref="itemflaglnkno" style="text-align:center; "/>
- <col ref="appno" style="text-align:left; "/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- // col@type = "input" 일 경우 onentercell시점에 EditMode 상태 만들기
- if (event.button != 3 && grd_piehh803.colType(grd_piehh803.col) == "input") {
- var status = grd_piehh803.rowStatus(grd_piehh803.row);
- var col = grd_piehh803.col;
- if (col == grd_piehh803.colRef("reptcd") && (status == 0)) {
- } else {
- grd_piehh803.editCell();
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onscroll">
- <![CDATA[
- var rowno = grd_piehh803.rows - 1;
- var cvalue = 0;
- if(rowno/5000 >= 1) {
- cvalue = (rowno/5000) / Math.floor(rowno/5000);
- }
- if(grd_piehh803.vscroll.attribute("max") == grd_piehh803.vscroll.attribute("pos") && grd_piehh801.row > 0 && cvalue == 1) {
- // end of scroll
- model.setValue("/root/send2/offset", grd_piehh803.rows-grd_piehh803.fixedRows); // grid의 header row는 제외
- submit("TRPIE00132");
- grd_piehh803.dispatch("onmouseup"); // 스크롤바 처리를 위한 이벤트 발생
-
- for (var i = 1; i < grd_piehh803.rows; i++) {
- if(grd_piehh803.valueMatrix(i, grd_piehh803.colRef("lnno")) == 0) {
- grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
- grd_piehh803.valueMatrix(i, grd_piehh803.colRef("appno")) = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
- }
- }
- grd_piehh803.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var qty = 0;
- var amt = 0;
- var cost = 0;
-
- for (var i = 1; i <= grd_piehh803.rows; i++) {
- if (grd_piehh803.rowStatus(i) > 0 && grd_piehh803.rowStatus(i) < 4) {
- qty = parseInt(model.getValue("/root/main/list03/gridpiehh803[" + i + "]/purcqty"));
- amt = parseInt(model.getValue("/root/main/list03/gridpiehh803[" + i + "]/purctotamt"));
-
- cost = Math.round(amt / (qty == 0 ? 1 : qty));
- model.setValue("/root/main/list03/gridpiehh803[" + i + "]/purcunitcost", cost);
- grd_piehh803.refresh();
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="button90" class="btn2_letter4" style="left:818px; top:53px; width:64px; height:19px; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var saveNoMsg = "";
- var saveOkMsg = "";
-
- // H801 update check
- var updtdata = getGridUpdateData(grd_piehh801);
- if (updtdata) {
- model.makeValue("/root/send/list1/h801", updtdata);
- }
- if (updtdata != "" && grd_piehh801.rows > 1) {
- saveOkMsg += "[H801] ";
- } else {
- saveNoMsg += "[H801] ";
- }
- //model.alert(updtdata);
- // H802 update check
- var updtdata = getGridUpdateData(grd_piehh802);
- if (updtdata) {
- model.makeValue("/root/send/list2/h802", updtdata);
- }
- if (updtdata != "" && grd_piehh802.rows > 1) {
- saveOkMsg += "[H802] ";
- } else {
- saveNoMsg += "[H802] ";
- }
- //model.alert(updtdata);
- // H803 update check
- /*
- var updtdata = getGridUpdateData(grd_piehh803);
- if (updtdata) {
- model.makeValue("/root/send/list3/h803", updtdata);
- }
- if (updtdata != "" && grd_piehh803.rows > 1) {
- saveOkMsg += "[H803] ";
- } else {
- saveNoMsg += "[H803] ";
- }
- */
- //model.alert(updtdata);
- //model.alert(saveOkMsg);
- // 저장루틴
- if (saveOkMsg) {
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- var appyearmnth = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appyearmnth"));
- var repttotcnt = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("repttotcnt"));
-
- model.setValue("/root/send/appno", appno);
- model.setValue("/root/send/appyearmnth", appyearmnth);
- model.setValue("/root/send/repttotcnt", repttotcnt);
-
- model.setValue("/root/send_createappno/appno1", appno.substring(0, 8));
- model.setValue("/root/send_createappno/appno2", appno.substring(8, 12));
-
- if (submit("TXPIE00201")) {
- // 저장한 신청내역 재조회
- model.resetInstanceNode("/root/main/list01/gridpiehh801");
- model.resetInstanceNode("/root/main/list02/gridpiehh802");
- model.resetInstanceNode("/root/main/list03/gridpiehh803");
-
- grd_piehh801.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- grd_piehh802.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- grd_piehh803.clearStatus();
-
- btn_init.dispatch("DOMActivate");
- model.setValue("/root/send_appno/appno", appno);
- if (appno != "") {
- fReSelectAllF080(1);
- }
-
- model.refresh();
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[H080.1, H080.2, H080.3 생성]]>
- </hint>
- </button>
- <line id="line7" class="line_1" style="x1:587px; y1:287px; x2:1190px; y2:287px; "/>
- <caption id="caption2" class="tit_2" style="left:594px; top:269px; width:167px; height:13px; ">의약품구입내역(H080.3)</caption>
- <button id="btn_delrow" class="btn2_letter3" visibility="visible" style="left:529px; top:265px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_piehh802.row >= grd_piehh802.fixedrows) {
- var row = grd_piehh802.row;
- var status = grd_piehh802.rowStatus(row);
- var reptcd = grd_piehh802.valueMatrix(row, grd_piehh802.colRef("reptcd"));
-
- if ( reptcd != "" ) {
- // h802 삭제
- if (status == 1 || status == 3) {
- grd_piehh802.deleteRow(row);
- } else {
- grd_piehh802.rowStatus(row) = 4;
- }
-
- // h803 삭제
- var reptcd_h802 = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
- for(i=1; i<grd_piehh803.rows; i++) {
- var reptcd_h803 = grd_piehh803.valueMatrix(i, grd_piehh803.colRef("reptcd"));
- if (reptcd_h802 == reptcd_h803) {
- if (grd_piehh803.rowStatus(i) == 1 || grd_piehh803.rowStatus(i) == 3) {
- grd_piehh803.deleteRow(i);
- } else {
- grd_piehh803.rowStatus(i) = 4;
- }
- }
- }
- }
- grd_piehh802.refresh();
- grd_piehh803.refresh();
- }
- ]]>
- </script>
- </button>
- <button id="button7" class="btn5_letter2" visibility="hidden" style="left:398px; top:265px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // H802 저장
- model.setValue("/root/send/list2/h802", grd_piehh802.getUpdateData());
- submit("TXPIE00202");
-
- // H082
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- if (grd_piehh801.isCell(event.target) && grd_piehh801.mouseRow >= grd_piehh801.fixedrows && appno != "") {
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- if (appno != "") {
- model.resetInstanceNode("/root/main/list02/gridpiehh802");
- model.resetInstanceNode("/root/main/list03/gridpiehh803");
-
- model.setValue("/root/send_appno/appno", appno);
- submit("TRPIE00202");
- grd_piehh802.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" visibility="visible" style="left:474px; top:265px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
-
- if (appno == "") {
- messageBox("선택된 신청번호가", "I004"); //I004=없습니다.
- } else {
- var num = model.getValue("/root/hidden/addrowno/number_h802");
- if(num == "" || num == "0"){
- grd_piehh802.addRow();
-
- var rows = grd_piehh802.rows;
- var frows = grd_piehh802.fixedRows;
- var nrows = rows - frows;
- //alert(rows + "-----" + frows + "-------" + nrows);
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/appno", appno);
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/reptcd", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/itemflagno", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/makecmpynm", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/item", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/spec", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/unit", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/lnnoremark", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/avg", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/fstpurcflag", "B");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/calcscorcd", "");
- grd_piehh802.refresh();
- }else{
- for(var i=1; i<=num; i++){
-
- grd_piehh802.addRow();
-
- var rows = grd_piehh802.rows;
- var frows = grd_piehh802.fixedRows;
- var nrows = rows - frows;
- //alert(rows + "-----" + frows + "-------" + nrows);
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/appno", appno);
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/reptcd", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/itemflagno", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/makecmpynm", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/item", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/spec", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/unit", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/lnnoremark", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/avg", "");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/fstpurcflag", "B");
- model.setValue("/root/main/list02/gridpiehh802["+ nrows +"]/calcscorcd", "");
- grd_piehh802.refresh();
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" visibility="visible" style="left:1137px; top:265px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_piehh803.row >= grd_piehh803.fixedrows) {
- var row = grd_piehh803.row;
- var status = grd_piehh803.rowStatus(row);
- var reptcd = grd_piehh803.valueMatrix(row, grd_piehh803.colRef("reptcd"));
-
- if ( reptcd != "" ) {
- if (status == 1 || status == 3) {
- grd_piehh803.deleteRow(row);
- } else {
- grd_piehh803.rowStatus(row) = 4;
- }
- grd_piehh803.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="button5" class="btn5_letter3" visibility="visible" style="left:943px; top:265px; width:53px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // H803 저장
- model.setValue("/root/send/list3/h803", grd_piehh803.getUpdateData());
- submit("TXPIE00203");
-
- // H083조회
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row, grd_piehh802.colRef("reptcd"));
- if (appno != "" && reptcd != "") {
- model.setValue("/root/send_reptcd/appno", appno);
- model.setValue("/root/send_reptcd/reptcd", reptcd);
- submit("TRPIE00203");
- grd_piehh802.refresh();
-
- fReSelectAllF080(1);
- }
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" visibility="visible" style="left:1029px; top:265px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
- var reptcd = grd_piehh802.valueMatrix(grd_piehh802.row,grd_piehh802.colRef("reptcd"));
-
- if (appno == "") {
- messageBox("선택된 신청번호가", "I004"); //I004=없습니다.
- } else if (reptcd == ""){
- messageBox("선택된 신고품목코드가", "I004"); //I004=없습니다.
- } else {
- var num = model.getValue("/root/hidden/addrowno/number_h803");
- if(num == "" || num == "0"){
- grd_piehh803.addRow();
-
- var rows = grd_piehh803.rows;
- var frows = grd_piehh803.fixedRows;
- var nrows = rows - frows;
- //alert(rows + "-----" + frows + "-------" + nrows);
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/appno", appno);
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/reptcd", reptcd);
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/lnno", "0");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpyno", "");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpynm", "");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcdd", getCurrentDate());
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcqty", "1");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcunitcost", "1000");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purctotamt", "1000");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpyremark", "-");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/itemflaglnkno", "0");
- grd_piehh803.refresh();
- }else{
- for(var i=1; i<=num; i++){
-
- grd_piehh803.addRow();
-
- var rows = grd_piehh803.rows;
- var frows = grd_piehh803.fixedRows;
- var nrows = rows - frows;
- //alert(rows + "-----" + frows + "-------" + nrows);
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/appno", appno);
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/reptcd", reptcd);
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/lnno", "");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpyno", "");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpynm", "");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcdd", getCurrentDate());
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcqty", "1");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcunitcost", "1000");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purctotamt", "1000");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpyremark", "");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/itemflaglnkno", 1);
- grd_piehh803.refresh();
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button9" class="btn2_letter3" visibility="visible" style="left:1083px; top:265px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_piehh703.row;
- grd_piehh703.addRow();
-
- var rows = grd_piehh703.rows;
- var frows = grd_piehh703.fixedRows;
- var nrows = rows - frows;
-
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/appno", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/appno"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/reptcd", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/reptcd"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/lnno", "");
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpyno", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/cmpyno"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpynm", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/cmpynm"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcdd", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/purcdd"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcqty", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/purcqty"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purcunitcost", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/purcunitcost"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/purctotamt", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/purctotamt"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/cmpyremark", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/cmpyremark"));
- model.setValue("/root/main/list03/gridpiehh803["+ nrows +"]/itemflaglnkno", model.getValue("/root/main/list03/gridpiehh803["+ row +"]/itemflaglnkno"));
- grd_piehh803.refresh();
- ]]>
- </script>
- </button>
- <button id="button15" class="btn5_letter6" style="left:1041px; top:53px; width:86px; height:19px; ">
- <caption>SAM생성확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("samfilemngtmgr.DrugInptReptBatch",getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- <button id="button10" class="btn2_letter4" visibility="visible" style="left:1130px; top:53px; width:64px; height:19px; ">
- <caption>삭 제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- // 선택된 row가 있는지 확인한다.
- var selectCnt = 0;
- selectCnt = grd_piehh801.selectedRows;
-
- // 선택된 row가 없을때..
- if (selectCnt == 0) {
- model.alert("삭제할 신청번호를 선택후 다시 시도해 주세요");
- return;
- }
-
- var ans = messageBox("데이터가 완전삭제됩니다. 정말 삭제", "S001"); ///정말 삭제하시려면 예(Yes)\n아니면 아니오(No)
- if (ans == 6) { // 6: yes
- submit("TXPIE00206");
-
- model.resetInstanceNode("/root/main/list01/gridpiehh801");
- model.resetInstanceNode("/root/main/list02/gridpiehh802");
- model.resetInstanceNode("/root/main/list03/gridpiehh803");
-
- btn_select.dispatch("DOMActivate");
- model.refresh();
- } else {
- return;
- }
-
-
- ]]>
- </script>
- </button>
- <button id="button16" class="btn5_letter4" style="left:974px; top:53px; width:64px; height:19px; ">
- <caption>SAM생성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- // sam생성하기.
- if(appno != ""){
- submit("TXPIE00205");
- }
- ]]>
- </script>
- </button>
- <button id="button12" class="btn3_letter6" visibility="hidden" style="left:806px; top:17px; width:104px; height:22px; ">
- <caption>입고내역조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
-
- if (appno == "") {
- messageBox("선택된 신청번호가", "I004"); //I004=없습니다.
- }
- else {
- model.resetInstanceNode("/root/hidden/sppie00130_h802/cond");
- model.setValue("/root/hidden/sppie00130_h802/cond/fromdd", getCurrentDate()); // 검색시작일자
- model.setValue("/root/hidden/sppie00130_h802/cond/todd", getCurrentDate()); // 검색종료일자
- model.setValue("/root/hidden/sppie00130_h802/cond/srchcond1", "1"); // 검색구분 1:edi, 2:처방코드
- model.setValue("/root/hidden/sppie00130_h802/cond/srchcond2", ""); // 검색코드
- model.setValue("/root/hidden/sppie00130_h802/cond/dtlselectyn", "N"); // 입고상세조회여부
-
- // 입고내역조회 팝업화면
- modal("SPPIE00130", 1, "10", "10", "SPPIE00130", "/root/hidden/sppie00130_h802/cond", "/root/init", "", "");
-
- var h802Node = instance1.selectNodes("/root/main/list02/gridpiehh802");
- if (h802Node.length == null || h802Node.length == 0) {
- grd_piehh802.addRow();
- }
-
- // H802 그리드에 새로 신규추가할 maxrow 찾기
- var nowRow = 0;
- var maxRow = grd_piehh802.rows -1;
- var tmpreptcd = grd_piehh802.valueMatrix(maxRow, grd_piehh802.colRef("reptcd"));
- if (tmpreptcd != "") {
- maxRow = maxRow + 1;
- }
-
- var rsltRow = 1;
- var rsltNode = instance1.selectSingleNode("/root/hidden/sppie00130_h802/rslt");
- if (rsltNode.childNodes != null) {
- for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/appno", appno);
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/reptcd", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/reptcd"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/itemflagno", "0");
- //model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/itemflagno", itemno);
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/makecmpynm", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/makecmpynm"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/item", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/item"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/spec", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/spec"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/unit", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/unit"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/lnnoremark", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/lnnoremark"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/avg", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/avg"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/fstpurcflag", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/fstpurcflag"));
- model.makeValue("/root/main/list02/gridpiehh802["+ i +"]/calcscorcd", model.getValue("/root/hidden/sppie00130_h802/rslt/h802["+ rsltRow +"]/calcscorcd"));
- rsltRow += 1;
- }
- grd_piehh802.refresh();
- }
-
-
- for (var i = maxRow; i < grd_piehh802.rows; i++) {
- grd_piehh802.rowStatus(i) = 1; // 1:insert 상태로 변경
- }
-
- var h803Node = instance1.selectNodes("/root/main/list03/gridpiehh803");
- if (h803Node.length == null || h803Node.length == 0) {
- grd_piehh803.addRow();
- }
-
- // H803 그리드에 새로 신규추가할 maxrow 찾기
- maxRow = grd_piehh803.rows -1;
- var tmpreptcd = grd_piehh803.valueMatrix(maxRow, grd_piehh803.colRef("reptcd"));
- if (tmpreptcd != "") {
- maxRow = maxRow + 1;
- }
-
- rsltRow = 1;
- var rsltNode = instance1.selectSingleNode("/root/hidden/sppie00130_h803/rslt");
- if (rsltNode != null) {
- for (var i = maxRow; i < rsltNode.childNodes.length + maxRow; i++) {
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/appno", appno);
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/reptcd", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/reptcd"));
- //model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/lnno", lineno);
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/lnno", "0");
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpyno", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/cmpyno"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpynm", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/cmpynm"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcdd", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcdd"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcqty", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcqty"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purcunitcost", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purcunitcost"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/purctotamt", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/purctotamt"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/cmpyremark", model.getValue("/root/hidden/sppie00130_h803/rslt/h803["+ rsltRow +"]/cmpyremark"));
- model.makeValue("/root/main/list03/gridpiehh803["+ i +"]/itemflaglnkno", "0");
- rsltRow += 1;
- }
- grd_piehh803.refresh();
- }
-
- for (var i = maxRow; i < grd_piehh803.rows; i++) {
- grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
- }
- }
- ]]>
- </script>
- </button>
- <button id="button13" class="btn5_letter6" style="left:885px; top:53px; width:86px; height:19px; ">
- <caption>연계번호생성</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- var appyearmnth = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appyearmnth"));
- model.setValue("/root/send_appno/appno", appno);
- model.setValue("/root/send_appno/appyearmnth", appyearmnth);
- if (appno != "") {
- if (submit("TXPIE00204")) {
- messageBox("총건수, 가중평균가, 연계번호, 줄번호 생성이", "I002"); //I002=완료되었습니다.
-
- // 전체 재조회 H801, H802, H803
- //----------------------------
- fReSelectAllF080(1);
- //----------------------------
- }
- } else {
- messageBox("연계번호 생성할 신청번호가 선택되지", "E007"); //E007=않았습니다.
- }
- ]]>
- </script>
- <hint>
- <![CDATA[총건수, 품목구분번호, 가중평균값, 연계번호, 줄번호 업데이트]]>
- </hint>
- </button>
- <button id="button2" class="btn2_letter4" visibility="hidden" style="left:759px; top:265px; width:64px; height:19px; ">
- <caption>전체조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row, grd_piehh801.colRef("appno"));
- if (appno != "") {
- model.setValue("/root/send_reptcd/appno", appno);
- model.setValue("/root/send_reptcd/reptcd", "");
- submit("TRPIE00203");
- }
- ]]>
- </script>
- </button>
- <input id="input4" ref="/root/hidden/addrowno/number_h802" class="input_default" style="left:443px; top:265px; width:28px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_addrow", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="input1" ref="/root/hidden/addrowno/number_h803" class="input_default" style="left:999px; top:265px; width:28px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- inputEnterKey("btn_addrow", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="button4" class="btn3_letter6" style="left:168px; top:263px; width:104px; height:22px; ">
- <caption>입고세부내역</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSelectDtlInpt();
- ]]>
- </script>
- </button>
- <caption id="caption4" style="left:320px; top:57px; width:455px; height:14px; font-weight:bold; color:#ff0000; ">※ 의약품구입내역 수정 후 반드시 '저장", "연계번호생성"버튼을 눌러주세요</caption>
- <button id="button1" class="btn3_letter6" style="left:165px; top:50px; width:104px; height:22px; ">
- <caption>입고내역조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var appno = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
-
- if (appno == "") {
- messageBox("선택된 신청번호가", "I004"); //I004=없습니다.
- } else {
- group8.visible = true;
- model.setValue("/root/send2/fromdd", model.getValue("/root/send/fromdd"));
- model.setValue("/root/send2/todd", model.getValue("/root/send/todd"));
- group8.refresh();
- }
- ]]>
- </script>
- </button>
- <group id="group8" visibility="hidden" style="left:250px; top:80px; width:280px; height:75px; ">
- <line id="line23" class="line_2" style="x1:5px; y1:33px; x2:235px; y2:33px; "/>
- <shape id="roundrect5" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:280px; height:75px; "/>
- <line id="line26" class="line_2" style="x1:6px; y1:32px; x2:273px; y2:32px; "/>
- <caption id="caption27" class="cell_1" style="left:5px; top:10px; width:78px; height:23px; text-align:center; vertical-align:middle; ">입고 일자</caption>
- <line id="line27" class="line_1" style="x1:6px; y1:5px; x2:273px; y2:6px; "/>
- <button id="button22" class="btn4_letter2" style="left:220px; top:45px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group8.visible = false;
- ]]>
- </script>
- </button>
- <input id="input11" ref="/root/send2/fromdd" inputtype="date" format="yyyy-mm-dd" style="left:85px; top:11px; width:85px; height:19px; "/>
- <input id="input12" ref="/root/send2/todd" inputtype="date" format="yyyy-mm-dd" style="left:190px; top:11px; width:85px; height:19px; "/>
- <caption id="caption28" style="left:175px; top:15px; width:15px; height:14px; ">~</caption>
- <button id="button8" class="btn1_letter2" style="left:160px; top:45px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/list02/gridpiehh802");
- model.resetInstanceNode("/root/main/list03/gridpiehh803");
- model.removeNode("/root/main/list02/gridpiehh802" );
- model.removeNode("/root/main/list03/gridpiehh803" );
-
- grd_piehh802.refresh();
- grd_piehh803.refresh();
-
- model.makeValue("/root/send2/offset", "0");
- model.makeValue("/root/send2/pagesize", "10000");
- var maxRow = 0;
- maxRow = grd_piehh802.rows -1;
- submit("TRPIE00131");
- for (var i = maxRow; i < grd_piehh802.rows; i++) {
- if(grd_piehh802.valueMatrix(i, grd_piehh802.colRef("itemflagno")) == 0) {
- grd_piehh802.rowStatus(i) = 1; // 1:insert 상태로 변경
- grd_piehh802.valueMatrix(i, grd_piehh802.colRef("fromdd")) = model.getValue("/root/send2/fromdd");
- grd_piehh802.valueMatrix(i, grd_piehh802.colRef("todd")) = model.getValue("/root/send2/todd");
- grd_piehh802.valueMatrix(i, grd_piehh802.colRef("appno")) = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
- }
- }
-
- /*
- maxRow = grd_piehh803.rows -1;
- submit("TRPIE00132");
- for (var i = maxRow; i < grd_piehh803.rows; i++) {
- if(grd_piehh803.valueMatrix(i, grd_piehh803.colRef("lnno")) == 0) {
- grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
- grd_piehh803.valueMatrix(i, grd_piehh803.colRef("appno")) = grd_piehh801.valueMatrix(grd_piehh801.row,grd_piehh801.colRef("appno"));
- }
- // grd_piehh803.rowStatus(i) = 1; // 1:insert 상태로 변경
- // grd_piehh803.valueMatrix(i, grd_piehh803.colRef("appno")) = grd_piehh803.valueMatrix(grd_piehh803.row,grd_piehh803.colRef("appno"));
- }
- */
- ]]>
- </script>
- </button>
- </group>
- <button id="button14" class="btn1_letter2" style="left:881px; top:265px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "의약품구입내역(H080.3)", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_piehh803.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/searchreptcd" imemode="alpha" style="left:276px; top:265px; width:94px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
-
- setInputNodeCurText();
-
- // 스타일 리셋
- grd_piehh802.rebuildStyle();
-
- var count = getNodesetCount("/root/main/list02/gridpiehh802");
-
- var searchreptcd = model.getValue("/root/send/searchreptcd");
-
- var isExists = false;
-
- for (i = 0; i < count; i++) {
-
- if (model.getValue("/root/main/list02/gridpiehh802[" + i + "]/reptcd") == searchreptcd) {
-
- // 배경색 표시
- grd_piehh802.rowStyle(i,"data","background-color") = "#FFFF99"; //병아리
- grd_piehh802.topRow = i - 8;
- isExists = true;
-
- break;
- }
- }
-
- if (!isExists) {
- alert("해당 품목코드를 찾을 수 없습니다.");
- }
- }
- ]]>
- </script>
- <hint>
- <![CDATA[품목번호]]>
- </hint>
- </input>
- <button id="button17" class="btn1_letter2" style="left:379px; top:265px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "의약품구입내역(H080.2)", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
-
- if (fileName != "")
- {
- grd_piehh802.saveExcel(fileName, "SheetName", false, false, "", "", "false");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_closepredocupopup" class="btn4_letter2" style="left:1127px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1056px; top:2px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/list01/gridpiehh801");
- model.resetInstanceNode("/root/main/list02/gridpiehh802");
- model.resetInstanceNode("/root/main/list03/gridpiehh803");
-
- grd_piehh801.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- grd_piehh802.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- grd_piehh803.clearStatus();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btnInsuCompare" class="btn4_letter9" style="left:912px; top:2px; width:140px; height:22px; ">
- <caption>약가 변경 내역 조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var row = grd_piehh801.row;
-
- if (row > 0) {
- setParameter("SMPIE00200_appyearmnth", model.getValue("/root/main/list01/gridpiehh801[" + row + "]/appyearmnth"));
- setParameter("SMPIE00200_appno", model.getValue("/root/main/list01/gridpiehh801[" + row + "]/appno"));
- }
-
- open("SPPIE04120", "1", "50", "50", "SMPMB00700", "", "");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|