123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNI01600" position="absolute 0 0 1113 1510" titletext="백신조회" onload="SPMNI01600_onload">
- <Layouts>
- <Layout>
- <WebBrowser id="browser1" position="absolute 0 0 1040 1500" anchor="default" taborder="0" useautobitmapcache="1"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="vcncod" type="STRING" size="256"/>
- <Column id="lotno" type="STRING" size="256"/>
- <Column id="execdd" type="STRING" size="256"/>
- <Column id="masterlotno" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="vcncod"/>
- <Col id="lotno"/>
- <Col id="execdd"/>
- <Col id="masterlotno"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_vcnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="vcnnam" type="STRING" size="256"/>
- <Column id="vacode" type="STRING" size="256"/>
- <Column id="lopperid" type="STRING" size="256"/>
- <Column id="vaname" type="STRING" size="256"/>
- <Column id="vendorname" type="STRING" size="256"/>
- <Column id="unit" type="STRING" size="256"/>
- <Column id="vendorcode" type="STRING" size="256"/>
- <Column id="lotno" type="STRING" size="256"/>
- <Column id="vcncod" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="vcnnam"/>
- <Col id="vacode"/>
- <Col id="lopperid"/>
- <Col id="vaname"/>
- <Col id="vendorname"/>
- <Col id="unit"/>
- <Col id="vendorcode"/>
- <Col id="lotno"/>
- <Col id="vcncod"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_vcnmasterlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="vcnnam" type="STRING" size="256"/>
- <Column id="vacode" type="STRING" size="256"/>
- <Column id="lopperid" type="STRING" size="256"/>
- <Column id="vaname" type="STRING" size="256"/>
- <Column id="vendorname" type="STRING" size="256"/>
- <Column id="unit" type="STRING" size="256"/>
- <Column id="vendorcode" type="STRING" size="256"/>
- <Column id="lotno" type="STRING" size="256"/>
- <Column id="vcncod" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="vcnnam"/>
- <Col id="vacode"/>
- <Col id="lopperid"/>
- <Col id="vaname"/>
- <Col id="vendorname"/>
- <Col id="unit"/>
- <Col id="vendorcode"/>
- <Col id="lotno"/>
- <Col id="vcncod"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_vcnkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SPMNI01600_예방접종과거이력조회.xfdl
- * Creator :
- * Make Date : 2016-02-15
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // xjs Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- function fInitialize()
- {
- if(frmf_checkOpener()){
- ds_vcnlist.clearData();
- ds_vcnmasterlist.clearData();
-
- //백신종류 조회
- var oParam = {};
- oParam.id = "TRMNI01503";
- oParam.service = "injroomapp.InjRoomPatMngt";
- oParam.method = "reqGetVcnKindInfo";
- oParam.inds = "";
- oParam.outds = "ds_init_vcnkind=kindinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMNI01503";
- tranf_submit(oParam);
-
- var vcncod = parent.parent.frmf_getParameter("vcncod");
- var lotno = parent.parent.frmf_getParameter("lotno");
- var execdd = parent.parent.frmf_getParameter("execdd");
-
- ds_cond.setColumn(0,"vcncod", vcncod);
- ds_cond.setColumn(0,"lotno", lotno);
- ds_cond.setColumn(0,"execdd", execdd);
-
- //등록된 백신정보 조회
- fSrchVcnRgstInfo();
-
- }
- }
- 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 = ds_cond.getColumn(0,"vcncod");
- var lotno = ds_cond.getColumn(0,"lotno");
- if(utlf_isNull(vcncod) && utlf_isNull(lotno)){
-
- return;
- }else{
- dsf_createDsRow("ds_send", [{col: "vcncod", val:vcncod }
- ,{col: "lotno", val:lotno }
- ,{col: "rgstflag", val:"Y" }
- ]);
-
-
- var oParam = {};
- oParam.id = "TRMNI01502";
- oParam.service = "injroomapp.InjRoomPatMngt";
- oParam.method = "reqGetVcnInfo";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_vcnlist=vcnlist";
- oParam.async = false;
-
- tranf_submit(oParam);
- }
- }
- 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(); //등록된 백신정보 조회
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : SPMNI01600
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SPMNI01600_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- }
- ]]></Script>
- </Form>
- </FDL>
|