예제 #1
0
        /// <summary>
        /// 保存对象
        /// </summary>
        /// <param name="p_objEKGOrderArr">要保存的对象</param>
        /// <returns>返回1表示保存成功,返回0表示保存失败</returns>
        public long lngSave(bool p_bnlIsNew, clsPSGOrder p_objPSGOrder)
        {
            long lngRes = 0;
            clsPSGOrderService m_objService =
                (clsPSGOrderService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPSGOrderService));

            try
            {
                if (p_bnlIsNew == true)
                {
                    lngRes = m_objService.m_lngUpdatePSGOrder(p_objPSGOrder, enmUpdateAction.enmAddNew);
                }
                else
                {
                    lngRes = m_objService.m_lngUpdatePSGOrder(p_objPSGOrder, enmUpdateAction.enmEdit);
                }
            }
            finally
            {
                ////m_objService.Dispose();
            }
            return(lngRes);
        }
예제 #2
0
        public long lngDelete(clsPSGOrder p_objPSGOrder)
        {
            long lngRes = 0;
            clsPSGOrderService m_objService =
                (clsPSGOrderService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPSGOrderService));

            try
            {
                lngRes = m_objService.m_lngUpdatePSGOrder(p_objPSGOrder, enmUpdateAction.enmDelete);
            }
            finally
            {
                ////m_objService.Dispose();
            }
            return(lngRes);
        }