public ActionResult Add(Base_VideoManage mode) { //权限检查 Helper.IsCheck(HttpContext, AdminModule.AdminOrganization.ToString(), SystemRight.Add.ToString(), true); Result <int> result = new Result <int>(); using (AdminClientProxy proxy = new AdminClientProxy(ProxyEx(Request))) { proxy.InnerChannel.OperationTimeout = Convert.ToDateTime("00:02:00").TimeOfDay; result = proxy.AddVideoManage(mode); } return(Json(result.ToResultView())); }
public ActionResult Edit(Base_VideoManage model) { //权限检查 Helper.IsCheck(HttpContext, AdminModule.AdminOrganization.ToString(), SystemRight.Modify.ToString(), true); Result <int> result = new Result <int>(); ResultView <string> view = new ResultView <string>(); if (string.IsNullOrEmpty(model.UrlAddress)) { view.Flag = false; view.Message = "视频源链接不能为空"; return(Json(view)); } if (string.IsNullOrEmpty(model.CameraName)) { view.Flag = false; view.Message = "设备名称不能为空"; return(Json(view)); } Result <Base_VideoManage> BaseVideoManage = new Result <Base_VideoManage>(); using (AdminClientProxy proxy = new AdminClientProxy(ProxyEx(Request))) { BaseVideoManage = proxy.GetBaseVideoManages(model.Id); BaseVideoManage.Data.CameraName = model.CameraName; BaseVideoManage.Data.Companyname = model.Companyname; BaseVideoManage.Data.CompanyPerson = model.CompanyPerson; BaseVideoManage.Data.DescribeInfo = model.DescribeInfo; BaseVideoManage.Data.UrlAddress = model.UrlAddress; BaseVideoManage.Data.VerificationCode = model.VerificationCode; BaseVideoManage.Data.ProjectName = model.ProjectName; BaseVideoManage.Data.DeviceSequence = model.DeviceSequence; result = proxy.UpdateBaseVideoManage(model); } return(Json(result.ToResultView())); }
public Result <int> UpdateBaseVideoManage(Base_VideoManage model) { return(base.Channel.UpdateBaseVideoManage(model)); }
/// <summary> /// 摄像设备新增 /// </summary> /// <param name="model"></param> /// <returns></returns> public Result <int> AddVideoManage(Base_VideoManage model) { return(base.Channel.AddVideoManage(model)); }