Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 获取指定产品适用人群记录行数
 /// </summary>
 /// <param name="productSexTypeName">产品适用人群名称</param>
 /// <returns>返回获取指定产品适用人群记录行数</returns>
 public static int GetProductSexTypeCountByName(string productSexTypeName)
 {
     return(ProductSexTypeDAL.GetProductSexTypeCountByName(productSexTypeName));
 }
Exemplo n.º 3
0
 /// <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));
 }
Exemplo n.º 4
0
 /// <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));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 获取指定适用人群信息
 /// </summary>
 /// <param name="productSexTypeID">产品适用人群ID</param>
 /// <returns>返回DataTable对象</returns>
 public static DataTable GetProductSexTypeInfoByID(int productSexTypeID)
 {
     return(ProductSexTypeDAL.GetProductSexTypeInfoByID(productSexTypeID));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 获取适用人群信息
 /// </summary>
 /// <returns>返回DataTable对象</returns>
 public static DataTable GetProductSexTypeInfo()
 {
     return(ProductSexTypeDAL.GetProductSexTypeInfo());
 }
Exemplo n.º 7
0
 /// <summary>
 /// 更新指定产品适用人群
 /// </summary>
 /// <param name="productSexType">适用人群模型</param>
 /// <returns>返回更新指定产品适用人群所影响的行数</returns>
 public static int UpdProductSexTypeByID(ProductSexTypeModel productSexType)
 {
     return(ProductSexTypeDAL.UpdProductSexTypeByID(productSexType));
 }
Exemplo n.º 8
0
 /// <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));
 }
Exemplo n.º 9
0
 /// <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());
 }
Exemplo n.º 10
0
 /// <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));
 }