Exemplo n.º 1
0
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        //public DataSet GetList(int PageSize,int PageIndex,string strWhere)
        //{
        //return dal.GetList(PageSize,PageIndex,strWhere);
        //}

        #endregion  BasicMethod
        #region  ExtensionMethod
        public string add(Maticsoft.Model.project_stage model)
        {
            if (dal.exists(" where stage_name='" + model.stage_name + "' and p_sid='" + model.p_sid + "'"))
            {
                return("阶段名称已存在");
            }
            if (dal.Add(model) > 0)
            {
                return("success");
            }
            else
            {
                return("添加失败!");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Maticsoft.Model.project_stage model)
 {
     return(dal.Update(model));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(Maticsoft.Model.project_stage model)
 {
     return(dal.Add(model));
 }