Exemplo n.º 1
0
 public string DeleteData(string content)
 {
     var delEnt = new Para_ConferenceRoom();
     delEnt.Condition.Add("ConferenceRoomID=" + content);
     if (Utility.Database.Delete(delEnt) > 0)
         return GetData("");
     else
         return Utility.JsonResult(false, "删除失败");
 }
Exemplo n.º 2
0
        public string GetData(string content)
        {
            try
            {
                var data = new GetDataModel();// 获取数据
                Para_ConferenceRoom sourceList = new Para_ConferenceRoom();
                data.sourceList = Utility.Database.QueryList(sourceList);

                // 初始化一空行
                data.sourceListEdit = new Para_ConferenceRoom();
                return Utility.JsonResult(true, null, data);
            }
            catch (Exception ex)
            {
                ComBase.Logger(ex);
                return Utility.JsonResult(false, ex.Message);
            }
        }
Exemplo n.º 3
0
        public string GetData(string content)
        {
            try
            {
                var data = new GetDataModel();// 获取数据
                Para_ConferenceRoom sourceList = new Para_ConferenceRoom();
                data.sourceList = Utility.Database.QueryList(sourceList);

                // 初始化一空行
                data.sourceListEdit = new Para_ConferenceRoom();
                return JsonConvert.SerializeObject( data);
            }
            catch (Exception ex)
            {
                ComBase.Logger(ex);
                return Utility.JsonMsg(false, ex.Message);
            }
        }