Пример #1
0
        public long m_lngSaveChk(clsOutpatientRecipe_VO clsRec, clsOutpatientCHKRecipeDe_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_lngAddCHKRecipe(objPrincipal, clsVO, clsRec);
            }
            else
            {
                lngRes = objSvc.m_lngUPDCHKRecipe(objPrincipal, clsVO);
            }
            objSvc.Dispose();
            return(lngRes);
        }