Exemplo n.º 1
0
        public bool UpdateFormModuleFunctionUserLink(string ticket, string _listYnFormModuleFunctionUserLink, ref string message)
        {
            try
            {
                message = "";
                if (!IsTicketValid(ticket))
                {
                    throw new Exception("票证验证失败!");
                }

                List <YnFormModuleFunctionUserLink> listYnFormModuleFunctionUserLink = (List <YnFormModuleFunctionUserLink>)YnBaseClass2.Helper.ObjectHelper.Deserialize(typeof(List <YnFormModuleFunctionUserLink>), _listYnFormModuleFunctionUserLink);
                //ynUser.lastLoginDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                YnFormModuleFunctionUserLinkService.GetInstance().Update(listYnFormModuleFunctionUserLink);
                return(true);
            }
            catch (Exception ex)
            {
                message = ex.Message;
            }
            return(false);
        }
Exemplo n.º 2
0
 public string GetFormModuleFunctionUserLink(string ticket, int functionId, string uerId, ref string message)
 {
     try
     {
         message = "";
         if (!IsTicketValid(ticket))
         {
             throw new Exception("票证验证失败!");
         }
         YnFormModuleFunctionUserLinkPK ynFormModuleFunctionUserLinkPK = new YnFormModuleFunctionUserLinkPK();
         ynFormModuleFunctionUserLinkPK.ynFormModuleFunction    = new YnFormModuleFunction();
         ynFormModuleFunctionUserLinkPK.ynFormModuleFunction.id = functionId;
         ynFormModuleFunctionUserLinkPK.ynUser        = new YnUser();
         ynFormModuleFunctionUserLinkPK.ynUser.userId = uerId;
         YnFormModuleFunctionUserLink ynFormModuleFunctionUserLink = YnFormModuleFunctionUserLinkService.GetInstance().Get(ynFormModuleFunctionUserLinkPK);
         return(YnBaseClass2.Helper.ObjectHelper.Serialize(ynFormModuleFunctionUserLink));
     }
     catch (Exception ex)
     {
         message = ex.Message;
     }
     return(null);
 }
Exemplo n.º 3
0
        public string GetFormModuleFunctionUserLinkByModuleFunctionId(string ticket, int functionId, ref string message)
        {
            try
            {
                message = "";
                if (!IsTicketValid(ticket))
                {
                    throw new Exception("票证验证失败!");
                }

                List <YnFormModuleFunctionUserLink> listYnFormModuleFunctionUserLink = YnFormModuleFunctionUserLinkService.GetInstance().GetListByModuleFunctionId(functionId);
                return(YnBaseClass2.Helper.ObjectHelper.Serialize(listYnFormModuleFunctionUserLink));
            }
            catch (Exception ex)
            {
                message = ex.Message;
            }
            return(null);
        }