示例#1
0
        //计量单位新增
        public ActionResult AddMeasure(Measure mes)
        {
            Random random = new Random();
            int    n      = random.Next(100000, 1000000);

            mes.IsDelete   = 0;
            mes.CreateTime = DateTime.Now;
            mes.MeasureNum = n.ToString();

            return(Json(MeasureManager.AddMeasure(mes), JsonRequestBehavior.AllowGet));
        }