예제 #1
0
        public long m_lngSaveOPS(clsOutpatientRecipe_VO clsRec, clsOutpatientOPSRecipeDe_VO[] clsVO, bool IsNew)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc objSvc =
                (com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsOPDoctorSvc));
            if (IsNew)
            {
                lngRes = objSvc.m_lngAddOPSRecipe(objPrincipal, clsVO, clsRec);
            }
            else
            {
                lngRes = objSvc.m_lngUPDOPSRecipe(objPrincipal, clsVO);
            }
            objSvc.Dispose();
            return(lngRes);
        }