Ejemplo n.º 1
0
        public long SetSampleTypeDetail(string strSampleType, string strPyCode, string strWbCode, string strSampleTypeID, int intHasCode)
        {
            long lngRes = 0;

            System.Security.Principal.IPrincipal p_objPrincipal = null;
            clsCheckItemSvc objSampleTypeSvc =
                (clsCheckItemSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsCheckItemSvc));

            lngRes = objSampleTypeSvc.m_lngSetSampleTypeDetailBySampleTypeID(p_objPrincipal, strSampleType, strPyCode, strWbCode, strSampleTypeID, intHasCode);
//			objSampleTypeSvc.Dispose();
            return(lngRes);
        }
Ejemplo n.º 2
0
        public long AddNewSample(string strSampleType, string strPyCode, string strWbCode, int intHasBarCode, out string strSampleTypeID)
        {
            long lngRes = 0;

            System.Security.Principal.IPrincipal p_objPrincipal = null;
            clsCheckItemSvc objSampleTypeSvc =
                (clsCheckItemSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsCheckItemSvc));
            clsSampleType_VO objSampleTypeVO = new clsSampleType_VO();

            objSampleTypeVO.m_strPyCode           = strPyCode;
            objSampleTypeVO.m_strSample_Type_Desc = strSampleType;
            objSampleTypeVO.m_strWbCode           = strWbCode;
            objSampleTypeVO.m_intHasBarCode       = intHasBarCode;
            lngRes          = objSampleTypeSvc.m_lngAddSampleType(p_objPrincipal, ref objSampleTypeVO);
            strSampleTypeID = objSampleTypeVO.m_strSample_Type_ID;
//			objSampleTypeSvc.Dispose();
            return(lngRes);
        }