示例#1
0
        /// <summary>
        /// 新增主分类
        /// </summary>
        /// <returns></returns>
        public bool AddMainClass(string MainClassValue, string userid, out string msg)
        {
            MainClassModel model = new MainClassModel
            {
                ValueName = MainClassValue,
                NumberID  = CreateNumberClass.CreateNumber(),
                State     = 1,
                UserID    = userid
            };

            return(MainDao.InsertMainClass(model, out msg));
        }
示例#2
0
        /// <summary>
        /// 新增次分类
        /// </summary>
        /// <returns></returns>
        public bool AddSubClass(string SubClassValue, string ParentID, string userid, out string msg)
        {
            SubClassModel model = new SubClassModel
            {
                NumberID  = CreateNumberClass.CreateNumber(),
                ValueName = SubClassValue,
                ParentID  = ParentID,
                State     = 1,
                UserID    = userid
            };

            return(SubDao.InsertSubClass(model, out msg));
        }
示例#3
0
 /// <summary>
 /// 新增开销
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool AddOverHead(OverHeadModel model)
 {
     model.NumberID   = CreateNumberClass.CreateNumber();
     model.CreateTime = DateTime.Now;
     return(overHeadDao.AddOverHead(model));
 }