コード例 #1
0
 /// <summary>
 /// 根据商品代码返回熔断_时间段标识
 /// </summary>
 /// <param name="commodityCode">商品代码</param>
 /// <returns></returns>
 public List <ManagementCenter.Model.CM_FuseTimesection> GetFuseTimesectionByCommodityCode(string commodityCode)
 {
     try
     {
         LogHelper.WriteDebug("Debug-8239根据商品代码返回熔断_时间段标识方法名称:GetFuseTimesectionByCommodityCode(string commodityCode)" + DateTime.Now);
         CM_FuseTimesectionBLL cM_FuseTimesectionBLL = new CM_FuseTimesectionBLL();
         return(cM_FuseTimesectionBLL.GetListArray(string.Format("CommodityCode='{0}'", commodityCode)));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8239";
         string      errMsg  = "根据商品代码返回熔断_时间段标识失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
コード例 #2
0
 /// <summary>
 /// 获取所有的熔断_时间段标识
 /// </summary>
 /// <returns></returns>
 public List <ManagementCenter.Model.CM_FuseTimesection> GetAllFuseTimesection()
 {
     try
     {
         LogHelper.WriteDebug("Debug-8238获取所有的熔断_时间段标识方法名称:GetAllFuseTimesection()" + DateTime.Now);
         CM_FuseTimesectionBLL cM_FuseTimesectionBLL = new CM_FuseTimesectionBLL();
         return(cM_FuseTimesectionBLL.GetListArray(string.Empty));
     }
     catch (Exception ex)
     {
         string      errCode = "GL-8238";
         string      errMsg  = "获取所有的熔断_时间段标识失败";
         VTException vte     = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(vte.ToString(), vte.InnerException);
         return(null);
     }
 }
コード例 #3
0
        /// <summary>
        /// 根据商品代码获取熔断_时间段标识
        /// </summary>
        /// <param name="CommodityCode">商品代码</param>
        /// <returns></returns>
        public static DataSet GetCMFuseTimesectionByCommodityCode(string CommodityCode)
        {
            CM_FuseTimesectionBLL cM_FuseTimesectionBLL = new CM_FuseTimesectionBLL();

            return(cM_FuseTimesectionBLL.GetCMFuseTimesectionByCommodityCode(CommodityCode));
        }
コード例 #4
0
        /// <summary>
        /// 删除熔断_时间段标识
        /// </summary>
        /// <param name="TimesectionID">熔断_时间段标识</param>
        /// <returns></returns>
        public static bool DeleteCMFuseTimesection(int TimesectionID)
        {
            CM_FuseTimesectionBLL cM_FuseTimesectionBLL = new CM_FuseTimesectionBLL();

            return(cM_FuseTimesectionBLL.DeleteCMFuseTimesection(TimesectionID));
        }
コード例 #5
0
        /// <summary>
        /// 修改熔断_时间段标识 重载
        /// </summary>
        /// <param name="model">熔断_时间段标识实体</param>
        /// <param name="msg">返回错误结果提示信息</param>
        /// <returns></returns>
        public static bool UpdateCMFuseTimesection(ManagementCenter.Model.CM_FuseTimesection model, ref string msg)
        {
            CM_FuseTimesectionBLL cM_FuseTimesectionBLL = new CM_FuseTimesectionBLL();

            return(cM_FuseTimesectionBLL.UpdateCMFuseTimesection(model, ref msg));
        }
コード例 #6
0
        //================================ 熔断_时间段标识 方法 ================================

        #region 添加熔断_时间段标识

        /// <summary>
        /// 添加熔断_时间段标识
        /// </summary>
        /// <param name="model">熔断_时间段标识实体</param>
        /// <returns></returns>
        public static int AddCMFuseTimesection(ManagementCenter.Model.CM_FuseTimesection model)
        {
            CM_FuseTimesectionBLL cM_FuseTimesectionBLL = new CM_FuseTimesectionBLL();

            return(cM_FuseTimesectionBLL.AddCMFuseTimesection(model));
        }