示例#1
0
        public ActionResult DeleteConfirmed(string id)
        {
            SIGNING sIGNING = db.SIGNING.Find(id);

            db.SIGNING.Remove(sIGNING);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 public ActionResult Edit([Bind(Include = "WRITERID,NAME,STARTTIME,ENDTIME")] SIGNING sIGNING)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sIGNING).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sIGNING));
 }
示例#3
0
        public ActionResult Create([Bind(Include = "WRITERID,NAME,STARTTIME,ENDTIME")] SIGNING sIGNING)
        {
            if (ModelState.IsValid)
            {
                db.SIGNING.Add(sIGNING);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(sIGNING));
        }
示例#4
0
        // GET: SIGNINGs/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SIGNING sIGNING = db.SIGNING.Find(id);

            if (sIGNING == null)
            {
                return(HttpNotFound());
            }
            return(View(sIGNING));
        }
        private String Step(S s, String inp)
        {
            Char c = PreStep(ref inp);

            if (SIGNING.Contains(c))
            {
                if (c == '+')
                {
                    return("" + Step(new SV(), inp));
                }
                else
                {
                    return(c.ToString() + Step(new SV(), inp));
                }
            }
            return(Step(new SV(), c + inp));
        }