//================================现货交易费用 方法 ================================ #region 获取所有现货交易费用 /// <summary> /// 获取所有现货交易费用 /// </summary> /// <param name="BreedClassID">品种ID</param> /// <param name="BreedClassName">品种名称</param> /// <param name="pageNo">当前页</param> /// <param name="pageSize">显示记录数</param> /// <param name="rowCount">总行数</param> /// <returns></returns> public static DataSet GetAllSpotCosts(int BreedClassID, string BreedClassName, int pageNo, int pageSize, out int rowCount) { XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.GetAllSpotCosts(BreedClassID, BreedClassName, pageNo, pageSize, out rowCount)); }
/// <summary> /// 根据品种标识返回品种_现货_交易费用 /// </summary> /// <param name="breedClassID">品种标识</param> /// <returns></returns> public Entity.XH_SpotCosts GetSpotCostsByBreedClassID(int breedClassID) { try { LogHelper.WriteDebug("Debug-8405根据品种标识返回品种_现货_交易费用方法名称:GetSpotCostsByBreedClassID(int breedClassID)参数是:" + breedClassID + "时间是:" + DateTime.Now); XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); //Entity.XH_SpotCosts xH_SpotCosts = // xH_SpotCostsBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID))[0]; List <Entity.XH_SpotCosts> xH_SpotCostsList = xH_SpotCostsBLL.GetListArray(string.Format("BreedClassID={0}", breedClassID)); if (xH_SpotCostsList.Count > 0) { Entity.XH_SpotCosts xH_SpotCosts = xH_SpotCostsList[0]; if (xH_SpotCosts != null) { return(xH_SpotCosts); } } return(null); } catch (Exception ex) { string errCode = "GL-8405"; string errMsg = "根据品种标识返回品种_现货_交易费用失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 获取所有的品种_现货_交易费用 /// </summary> /// <returns></returns> public List <Entity.XH_SpotCosts> GetAllSpotCosts() { try { LogHelper.WriteDebug("Debug-8404获取所有的品种_现货_交易费用方法名称:GetAllSpotCosts()" + DateTime.Now); XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.GetListArray(string.Empty)); } catch (Exception ex) { string errCode = "GL-8404"; string errMsg = "获取所有的品种_现货_交易费用失败"; VTException vte = new VTException(errCode, errMsg, ex); LogHelper.WriteError(vte.ToString(), vte.InnerException); return(null); } }
/// <summary> /// 判断品种_现货_交易费用中品种名称是否已经存在 /// </summary> /// <param name="BreedClassID">品种ID</param> /// <returns></returns> public static bool ExistsSpotCosts(int BreedClassID) { XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.Exists(BreedClassID)); }
/// <summary> /// 根据品种ID,删除现货交易费用 /// </summary> /// <param name="BreedClassID">品种ID</param> /// <returns></returns> public static bool DeleteSpotCosts(int BreedClassID) { XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.DeleteSpotCosts(BreedClassID)); }
/// <summary> /// 更新现货交易费用 /// </summary> /// <param name="model"></param> /// <returns></returns> public static bool UpdateSpotCosts(ManagementCenter.Model.XH_SpotCosts model) { XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.Update(model)); }
/// <summary> /// 根据品种ID获取现货交易费用 /// </summary> /// <param name="BreedClassID">品种ID</param> /// <returns></returns> public static XH_SpotCosts GetXHSpotCostsModel(int BreedClassID) { XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.GetModel(BreedClassID)); }
/// <summary> /// 根据现货交易费用表中的品种ID获取品种名称 /// </summary> /// <returns></returns> public static DataSet GetSpotCostsBreedClassName() { XH_SpotCostsBLL xH_SpotCostsBLL = new XH_SpotCostsBLL(); return(xH_SpotCostsBLL.GetSpotCostsBreedClassName()); }