/// <summary>
 /// 更新现货_品种_交易单位换算
 /// </summary>
 /// <param name="model">现货_品种_交易单位换算实体</param>
 /// <returns></returns>
 public bool Update(ManagementCenter.Model.CM_UnitConversion model)
 {
     try
     {
         return(cM_UnitConversionDAL.Update(model));
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-5752";
         string      errMsg    = "更新现货_品种_交易单位换算失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return(false);
     }
 }
 /// <summary>
 /// 添加现货_品种_交易单位换算
 /// </summary>
 /// <param name="model">现货_品种_交易单位换算实体</param>
 /// <returns></returns>
 public int Add(ManagementCenter.Model.CM_UnitConversion model)
 {
     try
     {
         return(cM_UnitConversionDAL.Add(model));
     }
     catch (Exception ex)
     {
         string      errCode   = "GL-5750";
         string      errMsg    = "添加现货_品种_交易单位换算失败!";
         VTException exception = new VTException(errCode, errMsg, ex);
         LogHelper.WriteError(exception.ToString(), exception.InnerException);
         return(AppGlobalVariable.INIT_INT);
     }
 }
Esempio n. 3
0
        /// <summary>
        /// 更新现货_品种_交易单位换算
        /// </summary>
        /// <param name="model">现货_品种_交易单位换算实体</param>
        /// <returns></returns>
        public static bool UpdateCMUnitConversion(ManagementCenter.Model.CM_UnitConversion model)
        {
            CM_UnitConversionBLL cM_UnitConversionBLL = new CM_UnitConversionBLL();

            return(cM_UnitConversionBLL.Update(model));
        }
Esempio n. 4
0
        /// <summary>
        /// 添加现货_品种_交易单位换算
        /// </summary>
        /// <param name="model">现货_品种_交易单位换算实体</param>
        /// <returns></returns>
        public static int AddCMUnitConversion(ManagementCenter.Model.CM_UnitConversion model)
        {
            CM_UnitConversionBLL cM_UnitConversionBLL = new CM_UnitConversionBLL();

            return(cM_UnitConversionBLL.Add(model));
        }