/// <summary> /// 获取所有交易所类型_非交易日期 /// </summary> /// <param name="BourseTypeName">交易所类型名称</param> /// <param name="pageNo">当前页</param> /// <param name="pageSize">显示记录数</param> /// <param name="rowCount">总行数</param> /// <returns></returns> public static DataSet GetAllCMNotTradeDate(string BourseTypeName, int pageNo, int pageSize, out int rowCount) { CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.GetAllCMNotTradeDate(BourseTypeName, pageNo, pageSize, out rowCount)); }
/// <summary> /// 根据交易所类型和日期判断是否为交易日 /// </summary> /// <param name="bourseTypeID">交易所类型标识</param> /// <param name="dt"></param> /// <returns></returns> public bool JudgeIsTradeDateByBourseTypeID(int bourseTypeID, DateTime dt) { try { LogHelper.WriteDebug("Debug-8247根据交易所类型和日期判断是否为交易日方法名称:JudgeIsTradeDateByBourseTypeID(int bourseTypeID, DateTime dt)" + DateTime.Now); CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); List <Entity.CM_NotTradeDate> l = cM_NotTradeDateBLL.GetListArray(string.Format("BourseTypeID={0} and NotTradeDay='{1}'", bourseTypeID, dt)); if (l == null || l.Count >= 1) { return(false); } else { return(true); } } catch (Exception ex) { string errCode = "GL-8247"; string errMsg = "根据交易所类型和日期判断是否为交易日失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(false); } }
/// <summary> /// 根据交易所类型标识返回非交易日期 /// </summary> /// <param name="bourseTypeID">交易所类型标识</param> /// <returns></returns> public List <Entity.CM_NotTradeDate> GetNotTradeDateByBourseTypeID(int bourseTypeID) { try { LogHelper.WriteDebug("Debug-8237根据交易所类型标识返回非交易日期方法名称:GetNotTradeDateByBourseTypeID(int bourseTypeID)参数是:" + bourseTypeID + "时间是:" + DateTime.Now); CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.GetListArray(string.Format("BourseTypeID={0}", bourseTypeID))); } catch (Exception ex) { string errCode = "GL-8237"; string errMsg = "根据交易所类型标识返回非交易日期失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 获取所有的非交易日期 /// </summary> /// <returns></returns> public List <Entity.CM_NotTradeDate> GetAllNotTradeDate() { try { LogHelper.WriteDebug("Debug-8236获取所有的非交易日期方法名称:GetAllNotTradeDate()" + DateTime.Now); CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8236"; string errMsg = "获取所有的非交易日期失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> ///根据交易所类型_非交易日期表中的交易所类型ID获取交易所类型名称 /// </summary> /// <returns></returns> public static DataSet GetCMNotTradeDateBourseTypeName() { CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.GetCMNotTradeDateBourseTypeName()); }
/// <summary> /// 删除非交易日 /// </summary> /// <param name="NotTradeDateID">非交易日ID</param> /// <returns></returns> public static bool DeleteCMNotTradeDate(int NotTradeDateID) { CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.DeleteCMNotTradeDate(NotTradeDateID)); }
/// <summary> /// 更新非交易日 /// </summary> /// <param name="model">非交易日实体</param> /// <returns></returns> public static bool UpdateCMNotTradeDate(ManagementCenter.Model.CM_NotTradeDate model) { CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.UpdateCMNotTradeDate(model)); }
/// <summary> /// 根据交易所类型和非交易日时间来查是否存在记录 /// </summary> /// <param name="BourseTypeID">交易所类型</param> /// <param name="NotTradeDay">非交易日时间</param> /// <returns></returns> public static ManagementCenter.Model.CM_NotTradeDate GetNotTradeDate(int BourseTypeID, DateTime NotTradeDay) { CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.GetNotTradeDate(BourseTypeID, NotTradeDay)); }
/// <summary> /// 添加非交易日 /// </summary> /// <param name="model">非交易日实体</param> /// <returns></returns> public static int AddCMNotTradeDate(ManagementCenter.Model.CM_NotTradeDate model) { CM_NotTradeDateBLL cM_NotTradeDateBLL = new CM_NotTradeDateBLL(); return(cM_NotTradeDateBLL.AddCMNotTradeDate(model)); }