Ejemplo n.º 1
0
        public ActionResult PostAddTeamPojectStation(TeamPojectStation parm)
        {
            parm.AddTime = DateTime.Now;
            parm.AddUserId = AdminUser.ID;
            parm.State = RowState.有效;

            using (LoveBankDBContext db = new LoveBankDBContext())
            {

                db.Add<TeamPojectStation>(parm);
                db.SaveChanges();
            }
            return  Success("新增成功");
        }
Ejemplo n.º 2
0
        public ActionResult PostAddTeamProject(TeamPojectStation parm)
        {
            #region 初始化参数
            //Team model = new Team();

            parm.AddTime = DateTime.Now;
            parm.AddUserId = AdminUser.ID;
            parm.State = 0;

            #endregion
            JsonMessage retJson = new JsonMessage();
            using (LoveBankDBContext db = new LoveBankDBContext())
            {

                db.Add(parm);
                db.SaveChanges();
                retJson.Status = true;
                retJson.Info = "添加成功";
                return Json(retJson);

            }

            foreach (int myCode in Enum.GetValues(typeof(RowState)))
            {

                string strName = Enum.GetName(typeof(RowState), myCode);//获取名称

                string strVaule = myCode.ToString();//获取值

            }
        }