/// <summary> /// 增加 警局信息 /// </summary> public static AjaxResult AddPoliceStation(NameValueCollection form) { var entity = new RentPoliceStation(); entity.Load(form); entity.PSID = form["PSID"]; if (string.IsNullOrEmpty(form["ParentID"]) == true) { entity.ParentID = ""; entity.ParentName = string.Empty; } else { entity.ParentName = form["ParentName"]; } if (string.IsNullOrEmpty(form["PSCreatedDate"]) == true) { entity.PSCreatedDate = System.DateTime.Now; } if (string.IsNullOrEmpty(form["PSModifiedDate"]) == true) { entity.PSModifiedDate = System.DateTime.Now; } return(DB.InsertEntity <RentPoliceStation>(entity)); }
public static AjaxResult UpdatePoliceStation(RentPoliceStation entity) { return(DB.UpdateEntity <RentPoliceStation>(entity)); }
public static AjaxResult AddPoliceStation(RentPoliceStation entity) { return(DB.InsertEntity <RentPoliceStation>(entity)); }