public void DeleteFormMainMenu(string ticket, int menuId, ref string message) { try { message = ""; if (!IsTicketValid(ticket)) { throw new Exception("票证验证失败!"); } YnFormMainMenuService.GetInstance().Delete(menuId); } catch (Exception ex) { message = ex.Message; } }
public string GetFormMainMenuList(string ticket, ref string message) { try { message = ""; if (!IsTicketValid(ticket)) { throw new Exception("票证验证失败!"); } List <YnFormMainMenu> listYnFormMainMenu = YnFormMainMenuService.GetInstance().GetList(); return(YnBaseClass2.Helper.ObjectHelper.Serialize(listYnFormMainMenu)); } catch (Exception ex) { message = ex.Message; } return(null); }
public bool UpdateFormMainMenu(string ticket, string _ynFormMainMenu, ref string message) { try { message = ""; if (!IsTicketValid(ticket)) { throw new Exception("票证验证失败!"); } YnFormMainMenu ynFormMainMenu = (YnFormMainMenu)YnBaseClass2.Helper.ObjectHelper.Deserialize(typeof(YnFormMainMenu), _ynFormMainMenu); //ynUser.lastLoginDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); YnFormMainMenuService.GetInstance().Update(ynFormMainMenu); return(true); } catch (Exception ex) { message = ex.Message; } return(false); }