/// <summary> /// 保存对象 /// </summary> /// <param name="p_objEKGOrderArr">要保存的对象</param> /// <returns>返回1表示保存成功,返回0表示保存失败</returns> public long lngSave(bool p_bnlIsNew, clsNuclearOrder p_objNuclearOrder) { clsNuclearOrderService m_objService = (clsNuclearOrderService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsNuclearOrderService)); long lngRes = 0; try { if (p_bnlIsNew == true) { lngRes = m_objService.m_lngUpdateNuclearOrder(p_objNuclearOrder, enmUpdateAction.enmAddNew); } else { lngRes = m_objService.m_lngUpdateNuclearOrder(p_objNuclearOrder, enmUpdateAction.enmEdit); } } finally { ////m_objService.Dispose(); } return(lngRes); }
public long lngDelete(clsNuclearOrder p_objNuclearOrder) { clsNuclearOrderService m_objService = (clsNuclearOrderService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsNuclearOrderService)); long lngRes = 0; try { lngRes = m_objService.m_lngUpdateNuclearOrder(p_objNuclearOrder, enmUpdateAction.enmDelete); } finally { ////m_objService.Dispose(); } return(lngRes); }