/// <summary> /// Judge the ProductSexTypeId whether has operation before delete by Id /// </summary> /// <param name="Id">Id</param> /// <returns>Return the counts of the ProductSexType by Id</returns> public static int ProductSexTypeIdWhetherHasOperation(int Id) { return(ProductSexTypeDAL.ProductSexTypeIdWhetherHasOperation(Id)); }
/// <summary> /// 获取指定产品适用人群记录行数 /// </summary> /// <param name="productSexTypeName">产品适用人群名称</param> /// <returns>返回获取指定产品适用人群记录行数</returns> public static int GetProductSexTypeCountByName(string productSexTypeName) { return(ProductSexTypeDAL.GetProductSexTypeCountByName(productSexTypeName)); }
/// <summary> /// 获取指定产品适用人群记录行数 /// </summary> /// <param name="productSexTypeID">产品适用人群ID</param> /// <param name="productSexTypeName">产品适用人群名称</param> /// <returns>返回获取指定产品适用人群记录行数</returns> public static int GetProductSexTypeCountByIDName(int productSexTypeID, string productSexTypeName) { return(ProductSexTypeDAL.GetProductSexTypeCountByIDName(productSexTypeID, productSexTypeName)); }
/// <summary> /// 向产品适用人群表中插入记录 /// </summary> /// <param name="productSexType">适用人群模型</param> /// <returns>返回插入记录所影响的行数</returns> public static int AddProductSexType(SqlTransaction tran, ProductSexTypeModel productSexType, out int id) { return(ProductSexTypeDAL.AddProductSexType(tran, productSexType, out id)); }
/// <summary> /// 获取指定适用人群信息 /// </summary> /// <param name="productSexTypeID">产品适用人群ID</param> /// <returns>返回DataTable对象</returns> public static DataTable GetProductSexTypeInfoByID(int productSexTypeID) { return(ProductSexTypeDAL.GetProductSexTypeInfoByID(productSexTypeID)); }
/// <summary> /// 获取适用人群信息 /// </summary> /// <returns>返回DataTable对象</returns> public static DataTable GetProductSexTypeInfo() { return(ProductSexTypeDAL.GetProductSexTypeInfo()); }
/// <summary> /// 更新指定产品适用人群 /// </summary> /// <param name="productSexType">适用人群模型</param> /// <returns>返回更新指定产品适用人群所影响的行数</returns> public static int UpdProductSexTypeByID(ProductSexTypeModel productSexType) { return(ProductSexTypeDAL.UpdProductSexTypeByID(productSexType)); }
/// <summary> /// Delete the ProductSexType information by productSexTypeId /// </summary> /// <param name="tran">Transaction</param> /// <param name="productSexTypeID">ProductSexTypeId</param> /// <returns>Return affected row counts delete the ProductSexType information by productSexTypeId</returns> public static int DelProductSexTypeByID(SqlTransaction tran, int productSexTypeID) { return(ProductSexTypeDAL.DelProductSexTypeByID(tran, productSexTypeID)); }
/// <summary> /// Out to excel of the all data of ProductSexType /// </summary> /// <returns>Return DataTable Object</returns> public static DataTable OutToExcel_ProductSexType() { return(ProductSexTypeDAL.OutToExcel_ProductSexType()); }
/// <summary> /// Judge the ProductSexTypeId whether exist by Id before delete or update /// </summary> /// <param name="Id">Id</param> /// <returns>Return counts</returns> public static int ProductSexTypeIdIsExist(int Id) { return(ProductSexTypeDAL.ProductSexTypeIdIsExist(Id)); }