123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <?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="">
- <main>
- <cond>
- <vcncod/>
- <lotno/>
- <execdd/>
- <masterlotno/>
- </cond>
- <vcninfo>
- <vcnlist>
- <vcnnam/>
- <vacode/>
- <lopperid/>
- <vaname/>
- <vendorname/>
- <unit/>
- <vendorcode/>
- <lotno/>
- <vcncod/>
- </vcnlist>
- </vcninfo>
- <vcnmasterinfo>
- <vcnmasterlist>
- <vcnnam/>
- <vacode/>
- <lopperid/>
- <vaname/>
- <vendorname/>
- <unit/>
- <vendorcode/>
- <lotno/>
- <vcncod/>
- </vcnmasterlist>
- </vcnmasterinfo>
- <popupmenu>
- <vcninfo>
- <item>
- <name>삭제</name>
- <func>fDelUseVacn</func>
- </item>
- </vcninfo>
- <vcnmasterinfo>
- <item>
- <name>등록</name>
- <func>fRgstUseVacn</func>
- </item>
- </vcnmasterinfo>
- </popupmenu>
- </main>
- <send>
- </send>
- <init>
- <vcnkind>
- <kindinfo>
- <vcncod/>
- <vcnnam/>
- </kindinfo>
- </vcnkind>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- if(checkOpener()){
- model.removeNodeset("/root/main/vcninfo/vcnlist");
- model.removeNodeset("/root/main/vcnmasterinfo/vcnmasterlist");
-
- //백신종류 조회
- submit("TRMNI01503");
-
- var vcncod = opener.javascript.getParameter("vcncod");
- var lotno = opener.javascript.getParameter("lotno");
- var execdd = opener.javascript.getParameter("execdd");
-
- model.setValue("/root/main/cond/vcncod", vcncod);
- model.setValue("/root/main/cond/lotno", lotno);
- model.setValue("/root/main/cond/execdd", execdd);
-
- //등록된 백신정보 조회
- fSrchVcnRgstInfo();
-
- }
- }
- function fInitialize_BK()
- {
- if(checkOpener()){
- submit("TRMNI01503");
- model.removeNodeset("/root/main/vcninfo/vcnlist");
-
- var vcncod = opener.javascript.getParameter("vcncod");
- var lotno = opener.javascript.getParameter("lotno");
- var vacode = opener.javascript.getParameter("vacode");
- var lopperid = opener.javascript.getParameter("lopperid");
- var execdd = opener.javascript.getParameter("execdd");
- var regyn = opener.javascript.getParameter("regyn");
- var flag = opener.javascript.getParameter("flag");
-
- model.setValue("/root/main/cond/vcncod", vcncod);
- model.setValue("/root/main/cond/lotno", lotno);
- model.setValue("/root/main/cond/execdd", execdd);
-
- if(lotno != ""){
- //백신검색
- fSrchVcnRgstInfo(regyn);
-
- //수정일 경우 해당백신셋팅
- if(flag == "GrdClick"){
- var setRow = 0;
- for(var i=1; i<= getNodesetCount("/root/main/vcninfo/vcnlist"); i++){
- if(model.getValue("/root/main/vcninfo/vcnlist[" + i + "]/vacode") == vacode && model.getValue("/root/main/vcninfo/vcnlist[" + i + "]/lopperid") == lopperid){
- setRow = i;
- }
-
- }
- grd_vcninfo.row = setRow;
- grd_vcninfo.refresh();
-
- //액팅시 입력한 lotno로 조회할 경우에는 자동셋팅해주지 않음
- if(vacode != ""){
- fSetVacnInfo();
- }
- }
- }
- }
- }
-
- function fSrchVcnMasterInfo(){
- var masterlotno = model.getValue("/root/main/cond/masterlotno");
- if(masterlotno == ""){
- messageBox("로트번호를 입력하세요.", "I");
- model.setFocus("ipt_masterlotno");
- ipt_masterlotno.refresh();
- return;
- }else{
- model.removenode("/root/send");
- model.makeValue("/root/send/lotno", masterlotno);
-
- submit("TRMNI01501");
- }
- }
-
- function fSrchVcnRgstInfo(){
- var vcncod = model.getValue("/root/main/cond/vcncod");
- var lotno = model.getValue("/root/main/cond/lotno");
- if(vcncod == "" && lotno == ""){
- //messageBox("로트번호를 입력하세요.", "I");
- return;
- }else{
- model.removenode("/root/send");
- model.makeValue("/root/send/vcncod", vcncod);
- model.makeValue("/root/send/lotno", lotno);
- model.makeValue("/root/send/rgstflag", "Y");
-
- submit("TRMNI01502");
- }
- }
-
- function fSetVacnInfo(){
- var iRow = grd_vcninfo.row;
- var execdd = model.getValue("/root/main/cond/execdd");
- if(model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lopperid") != ""){
- if(model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lopperid") < execdd){
- messageBox("유효기간이 지난 백신입니다.", "I");
- return;
- }
- }
-
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/lotno", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lotno"));
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vcnnam", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vcnnam"));
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vaname", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vaname"));
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/lopperid", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lopperid"));
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vendorname", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vendorname"));
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vcncod", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vcncod"));
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vacode", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vacode"));
- //opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/revcnyn", 'N');
- opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/srchyn", 'Y');
- opener.model.refresh();
-
- model.close();
- }
-
- //자주쓰는 백신 삭제
- function fDelUseVacn(){
- model.removenode("/root/send");
- model.makeValue("/root/send/rgstyn", "N");
- model.makeValue("/root/send/lotno", model.getValue("/root/main/vcninfo/vcnlist[" + grd_vcninfo.row + "]/lotno"));
- model.makeValue("/root/send/vacode", model.getValue("/root/main/vcninfo/vcnlist[" + grd_vcninfo.row + "]/vacode"));
- model.makeValue("/root/send/lopperid", model.getValue("/root/main/vcninfo/vcnlist[" + grd_vcninfo.row + "]/lopperid"));
-
- if(submit("TXMNI01501")){
- fSrchVcnRgstInfo(); //등록된 백신정보 조회
- }
- }
-
- //자주쓰는 백신 등록
- function fRgstUseVacn(){
- model.removenode("/root/send");
- model.makeValue("/root/send/rgstyn", "Y");
- model.makeValue("/root/send/lotno", model.getValue("/root/main/vcnmasterinfo/vcnmasterlist[" + grd_vcnmasterinfo.row + "]/lotno"));
- model.makeValue("/root/send/vacode", model.getValue("/root/main/vcnmasterinfo/vcnmasterlist[" + grd_vcnmasterinfo.row + "]/vacode"));
- model.makeValue("/root/send/lopperid", model.getValue("/root/main/vcnmasterinfo/vcnmasterlist[" + grd_vcnmasterinfo.row + "]/lopperid"));
-
- if(submit("TXMNI01501")){
- fSrchVcnRgstInfo(); //등록된 백신정보 조회
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/vcnmasterinfo"/>
- <submission id="TRMNI01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/vcninfo"/>
- <submission id="TRMNI01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/vcnkind"/>
- <submission id="TXMNI01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="1045" pageheight="265" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <browser id="browser1" AddressBar="false" Visible="true" Left="0" FullScreen="true" MenuBar="false" StatusBar="false" Resizable="false" style="left:0px; top:0px; width:1025px; height:260px; "/>
- </xhtml:body>
- </xhtml:html>
|