Пример #1
0
        //客户类别新增
        public static int Getcloss_Add(closstype type)
        {
            erpsystemEntities1 ent = new erpsystemEntities1();

            ent.closstype.Add(type);
            return(ent.SaveChanges());
        }
Пример #2
0
        //客户类别修改
        public static int Getcloss_Eind(closstype type)
        {
            erpsystemEntities1 ent = new erpsystemEntities1();
            var enid = (from p in ent.closstype where p.clossid == type.clossid select p).First();

            enid.clossid     = type.clossid;
            enid.clossname   = type.clossname;
            enid.englishname = type.englishname;
            enid.remarks     = type.remarks;
            return(ent.SaveChanges());
        }
Пример #3
0
 //客户类别修改
 public static int Getcloss_Eind(closstype type)
 {
     return(MVCSerice.Getcloss_Eind(type));
 }
Пример #4
0
 //客户类别修改
 public ActionResult Getcloss_Eind(closstype type)
 {
     return(Json(MVCManager.Getcloss_Eind(type), JsonRequestBehavior.AllowGet));
 }