Пример #1
0
        public ActionResult Index()
        {
            TelphoneReserveSeeEntity seeEntity = new TelphoneReserveSeeEntity()
            {
                IPAddress     = Net.Ip,
                IPAddressName = IPLocation.GetLocation(Net.Ip)
            };

            seebll.SaveForm("", seeEntity);
            return(View());
        }
Пример #2
0
 /// <summary>
 /// 保存表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="entity">实体对象</param>
 /// <returns></returns>
 public void SaveForm(string keyValue, TelphoneReserveSeeEntity entity)
 {
     try
     {
         service.SaveForm(keyValue, entity);
     }
     catch (Exception)
     {
         throw;
     }
 }
Пример #3
0
        public ActionResult Index0539()
        {
            TelphoneReserveSeeEntity seeEntity = new TelphoneReserveSeeEntity()
            {
                IPAddress     = Net.Ip,
                IPAddressName = IPLocation.GetLocation(Net.Ip)
            };

            seebll.SaveForm("", seeEntity);

            IEnumerable <TelphoneOrderEntity> orderliset = orderBll.GetListTop10();

            foreach (TelphoneOrderEntity item in orderliset)
            {
                item.Description = FormatDateTime(item.CreateDate.ToString());
            }
            ViewBag.list = orderliset;
            return(View());
        }
Пример #4
0
 public ActionResult SaveForm(string keyValue, TelphoneReserveSeeEntity entity)
 {
     telphonereserveseebll.SaveForm(keyValue, entity);
     return(Success("操作成功。"));
 }