예제 #1
0
        public ActionResult CPidno(string txt_pidnoTitle, string txt_pidnoMemo, string txt_SortNum)
        {
            CustomerData c = new CustomerData();

            //var Nowdate = DateTime.Now.ToString("yyyyMMdd");
            var Num = c.GetPidnoLast();
            PidnoData pd = new PidnoData();
            Pidno p = new Pidno();
            p.PidnoTitle = txt_pidnoTitle;
            p.PidnoMemo = txt_pidnoMemo;
            p.PidnoNum = Num;
            p.SortNum = txt_SortNum;
            pd.Create(p);
            return RedirectToAction("Conter", new { tabid = "3", m = "1" });
        }
예제 #2
0
 public ActionResult DPidno(string id)
 {
     if (Session["Member"] == null)
     {
         return RedirectToAction("login");
     }
     Pidno p = new Pidno();
     p.PidnoNum = id;
     PidnoData pd = new PidnoData();
     pd.Delete(p);
     return RedirectToAction("Conter", new { tabid = "3", m = "1" });
 }