/// <summary>
        /// 对象添加
        /// </summary>
        /// <param name="tOaArchivesSend">对象</param>
        /// <returns>是否成功</returns>
        public bool Create(TOaArchivesSendVo tOaArchivesSend)
        {
            string strSQL = SqlHelper.BuildInsertExpress(tOaArchivesSend, TOaArchivesSendVo.T_OA_ARCHIVES_SEND_TABLE);

            return(SqlHelper.ExecuteNonQuery(CommandType.Text, strSQL) > 0 ? true : false);
        }
 /// <summary>
 /// 根据对象获取全部数据,用Table承载
 ///  数据量较小时使用【不推荐】
 /// </summary>
 /// <param name="tOaArchivesSend"></param>
 /// <returns></returns>
 public DataTable SelectByTable(TOaArchivesSendVo tOaArchivesSend)
 {
     return(access.SelectByTable(tOaArchivesSend));
 }
        /// <summary>
        /// 根据对象特征获取单一对象
        /// </summary>
        /// <param name="tOaArchivesSend">对象</param>
        /// <returns></returns>
        public TOaArchivesSendVo SelectByObject(TOaArchivesSendVo tOaArchivesSend)
        {
            string strSQL = "select * from T_OA_ARCHIVES_SEND " + this.BuildWhereStatement(tOaArchivesSend);

            return(SqlHelper.ExecuteObject(new TOaArchivesSendVo(), strSQL));
        }
 /// <summary>
 /// 获取对象List
 /// </summary>
 /// <param name="tOaArchivesSend">对象</param>
 /// <param name="iIndex">起始页码</param>
 /// <param name="iCount">每页数目</param>
 /// <returns>返回结果</returns>
 public List <TOaArchivesSendVo> SelectByObject(TOaArchivesSendVo tOaArchivesSend, int iIndex, int iCount)
 {
     return(access.SelectByObject(tOaArchivesSend, iIndex, iCount));
 }
 /// <summary>
 /// 获取对象DataTable
 /// </summary>
 /// <param name="tOaArchivesSend">对象</param>
 /// <param name="iIndex">起始页码</param>
 /// <param name="iCount">每页数目</param>
 /// <returns>返回结果</returns>
 public DataTable SelectByTable(TOaArchivesSendVo tOaArchivesSend, int iIndex, int iCount)
 {
     return(access.SelectByTable(tOaArchivesSend, iIndex, iCount));
 }
 /// <summary>
 /// 获得查询结果总行数,用于分页
 /// </summary>
 /// <param name="tOaArchivesSend">对象</param>
 /// <returns>返回行数</returns>
 public int GetSelectResultCount(TOaArchivesSendVo tOaArchivesSend)
 {
     return(access.GetSelectResultCount(tOaArchivesSend));
 }
 /// <summary>
 /// 对象明细
 /// </summary>
 /// <param name="tOaArchivesSend">对象条件</param>
 /// <returns>对象</returns>
 public TOaArchivesSendVo Details(TOaArchivesSendVo tOaArchivesSend)
 {
     return(access.Details(tOaArchivesSend));
 }
 /// <summary>
 /// 批量增加分发记录
 /// </summary>
 /// <param name="tOaArchivesSend">对象</param>
 /// <returns></returns>
 public bool CreateTrans(TOaArchivesSendVo tOaArchivesSend)
 {
     return(access.CreateTrans(tOaArchivesSend));
 }
 public TOaArchivesSendLogic(TOaArchivesSendVo _tOaArchivesSend)
 {
     tOaArchivesSend = _tOaArchivesSend;
     access          = new TOaArchivesSendAccess();
 }
 /// <summary>
 /// 分发情况
 /// </summary>
 /// <param name="tOaArchivesBorrow">对象</param>
 /// <param name="intPageIndex">页码</param>
 /// <param name="intPageSize">页数</param>
 /// <returns></returns>
 public DataTable SelectByTableForSearch(TOaArchivesSendVo tOaArchivesSend, int intPageIndex, int intPageSize)
 {
     return(access.SelectByTableForSearch(tOaArchivesSend, intPageIndex, intPageSize));
 }
 /// <summary>
 /// 对象删除
 /// </summary>
 /// <param name="Id">ID</param>
 /// <returns>是否成功</returns>
 public bool Delete(TOaArchivesSendVo tOaArchivesSend)
 {
     return(access.Delete(tOaArchivesSend));
 }
 /// <summary>
 /// 对象编辑
 /// </summary>
 /// <param name="tOaArchivesSend_UpdateSet">UpdateSet用户对象</param>
 /// <param name="tOaArchivesSend_UpdateWhere">UpdateWhere用户对象</param>
 /// <returns>是否成功</returns>
 public bool Edit(TOaArchivesSendVo tOaArchivesSend_UpdateSet, TOaArchivesSendVo tOaArchivesSend_UpdateWhere)
 {
     return(access.Edit(tOaArchivesSend_UpdateSet, tOaArchivesSend_UpdateWhere));
 }
 /// <summary>
 /// 对象编辑
 /// </summary>
 /// <param name="tOaArchivesSend">用户对象</param>
 /// <returns>是否成功</returns>
 public bool Edit(TOaArchivesSendVo tOaArchivesSend)
 {
     return(access.Edit(tOaArchivesSend));
 }
 /// <summary>
 /// 根据对象特征获取单一对象
 /// </summary>
 /// <param name="tOaArchivesSend">对象</param>
 /// <returns></returns>
 public TOaArchivesSendVo SelectByObject(TOaArchivesSendVo tOaArchivesSend)
 {
     return(access.SelectByObject(tOaArchivesSend));
 }