当前位置: 首页>>代码示例>>C#>>正文


C# ProductsDAL.UpdateProduct方法代码示例

本文整理汇总了C#中CloudSalesDAL.ProductsDAL.UpdateProduct方法的典型用法代码示例。如果您正苦于以下问题:C# ProductsDAL.UpdateProduct方法的具体用法?C# ProductsDAL.UpdateProduct怎么用?C# ProductsDAL.UpdateProduct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CloudSalesDAL.ProductsDAL的用法示例。


在下文中一共展示了ProductsDAL.UpdateProduct方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpdateProduct

        public bool UpdateProduct(string productid,string productCode, string productName, string generalName, bool iscombineproduct, string brandid, string bigunitid, string smallunitid, int bigSmallMultiple,
                         int status, string categoryid, string attrlist, string valuelist, string attrvaluelist, decimal commonprice, decimal price, decimal weight, bool isnew,
                         bool isRecommend, int isallow, int isautosend, int effectiveDays, decimal discountValue, string productImg, string shapeCode, string description, string operateid, string clientid)
        {
            if (!string.IsNullOrEmpty(productImg) && productImg.IndexOf(TempPath) >= 0)
            {
                if (productImg.IndexOf("?") > 0)
                {
                    productImg = productImg.Substring(0, productImg.IndexOf("?"));
                }
                FileInfo file = new FileInfo(HttpContext.Current.Server.MapPath(productImg));
                productImg = FILEPATH + file.Name;
                if (file.Exists)
                {
                    file.MoveTo(HttpContext.Current.Server.MapPath(productImg));
                }
            }

            var dal = new ProductsDAL();
            return dal.UpdateProduct(productid, productCode, productName, generalName, iscombineproduct, brandid, bigunitid, smallunitid, bigSmallMultiple, status, categoryid,attrlist,
                                    valuelist, attrvaluelist, commonprice, price, weight, isnew, isRecommend, isallow, isautosend, effectiveDays, discountValue, productImg, shapeCode, description, operateid, clientid);
        }
开发者ID:healtech,项目名称:YXERP,代码行数:22,代码来源:ProductsBusiness.cs

示例2: UpdateProduct

 /// <summary>
 /// 编辑产品信息
 /// </summary>
 /// <param name="productid">产品ID</param>
 /// <param name="productCode">产品编码</param>
 /// <param name="productName">产品名称</param>
 /// <param name="generalName">常用名</param>
 /// <param name="iscombineproduct">是否组合产品</param>
 /// <param name="brandid">品牌ID</param>
 /// <param name="bigunitid">大单位</param>
 /// <param name="smallunitid">小单位</param>
 /// <param name="bigSmallMultiple">大小单位比例</param>
 /// <param name="status">状态</param>
 /// <param name="attrlist">属性列表</param>
 /// <param name="valuelist">值列表</param>
 /// <param name="attrvaluelist">属性值键值对</param>
 /// <param name="commonprice">原价</param>
 /// <param name="price">优惠价</param>
 /// <param name="weight">重量</param>
 /// <param name="isnew">是否新品</param>
 /// <param name="isRecommend">是否推荐</param>
 /// <param name="effectiveDays">有效期天数</param>
 /// <param name="discountValue">折扣</param>
 /// <param name="description">描述</param>
 /// <param name="operateid">操作人</param>
 /// <param name="clientid">客户端ID</param>
 /// <returns></returns>
 public bool UpdateProduct(string productid,string productCode, string productName, string generalName, bool iscombineproduct, string brandid, string bigunitid, string smallunitid, int bigSmallMultiple,
                  int status, string categoryid, string attrlist, string valuelist, string attrvaluelist, decimal commonprice, decimal price, decimal weight, bool isnew,
                  bool isRecommend, int effectiveDays, decimal discountValue, string shapeCode, string description, string operateid, string clientid)
 {
     var dal = new ProductsDAL();
     return dal.UpdateProduct(productid, productCode, productName, generalName, iscombineproduct, brandid, bigunitid, smallunitid, bigSmallMultiple, status, categoryid,attrlist,
                             valuelist, attrvaluelist, commonprice, price, weight, isnew, isRecommend, effectiveDays, discountValue, shapeCode, description, operateid, clientid);
 }
开发者ID:rngrofl,项目名称:YXERP,代码行数:35,代码来源:ProductsBusiness.cs


注:本文中的CloudSalesDAL.ProductsDAL.UpdateProduct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。