示例#1
0
 public static Guid?Login(String loginName, String password, bool encryptedPassword)
 {
     try
     {
         return(RpcInvoker.InvokeMethod <Guid?>(loginName, password, encryptedPassword));
     }
     catch (Exception ex)
     {
         LogError.Log("ErrorLog_PinService_", ex, stream =>
         {
             stream.WriteLine(String.Format("HMIS Login Error: {0}", ex.Message
                                            ));
         });
         throw;
     }
 }
示例#2
0
 public static PersonContract GetPersonInfo(Guid loginToken, Guid?moduleID, String personalID)
 {
     try
     {
         return(RpcInvoker.InvokeMethod <PersonContract>(loginToken, moduleID, personalID));
     }
     catch (Exception ex)
     {
         LogError.Log("ErrorLog_PinService_", ex, stream =>
         {
             stream.WriteLine(String.Format("HMIS GetPersonInfo Error: {0}", ex.Message
                                            ));
         });
         throw;
     }
 }
示例#3
0
 public static MobileIndexesContract GetMobileIndexByID(Guid?ID)
 {
     return(RpcInvoker.InvokeMethod <MobileIndexesContract>(ID));
 }
示例#4
0
 public static Dictionary <String, String> GetUserAttributesDictionary(Guid token, Guid userID, Guid projectID)
 {
     return(RpcInvoker.InvokeMethod <Dictionary <String, String> >(token, userID, projectID));
 }
示例#5
0
 public static PermissionContract GetResourcePermission(Guid token, String resourcePath)
 {
     return(RpcInvoker.InvokeMethod <PermissionContract>(token, resourcePath));
 }
示例#6
0
 public static List <GroupContract> GetUserGroups(Guid token, Guid userID, Guid projectID)
 {
     return(RpcInvoker.InvokeMethod <List <GroupContract> >(token, userID, projectID));
 }
示例#7
0
 public static List <ProjectContract> GetProjects()
 {
     return(RpcInvoker.InvokeMethod <List <ProjectContract> >());
 }
示例#8
0
 public static PasswordChangeResultEnum ChangePassword(Guid token, String newPassword, String oldPassword)
 {
     return(RpcInvoker.InvokeMethod <PasswordChangeResultEnum>(token, newPassword, oldPassword));
 }
示例#9
0
 public static List <UserContract> GetAllUsers(Guid token, bool deleteds)
 {
     return(RpcInvoker.InvokeMethod <List <UserContract> >(token, deleteds));
 }
示例#10
0
 public static void SetTranslatedText(String moduleName, String languagePair, String trnKey, String translatedText)
 {
     RpcInvoker.InvokeMethod(moduleName, languagePair, trnKey, translatedText);
 }
示例#11
0
 public static List <TranslationContract> GetTranslations(String moduleName, String languagePair, List <TranslationContract> list)
 {
     return(RpcInvoker.InvokeMethod <List <TranslationContract> >(moduleName, languagePair, list));
 }
示例#12
0
 public static String GetTranslatedText(String moduleName, String languagePair, String trnKey, String defaultText)
 {
     return(RpcInvoker.InvokeMethod <String>(moduleName, languagePair, trnKey, defaultText));
 }
示例#13
0
 public static void SetTranslation(String moduleName, String languagePair, String trnKey, TranslationContract contract)
 {
     RpcInvoker.InvokeMethod(moduleName, languagePair, trnKey, contract);
 }
示例#14
0
 public static TranslationContract GetTranslation(String moduleName, String languagePair, String trnKey)
 {
     return(RpcInvoker.InvokeMethod <TranslationContract>(moduleName, languagePair, trnKey));
 }
示例#15
0
 public static List <LanguageContract> GetLanguages()
 {
     return(RpcInvoker.InvokeMethod <List <LanguageContract> >());
 }
示例#16
0
 public static void Logout(Guid token)
 {
     RpcInvoker.InvokeMethod(token);
 }
示例#17
0
 public static bool IsTokenActual(Guid token)
 {
     return(RpcInvoker.InvokeMethod <bool>(token));
 }
示例#18
0
 public static List <GroupAttributeContract> GetGroupAttributes(Guid token, Guid groupID)
 {
     return(RpcInvoker.InvokeMethod <List <GroupAttributeContract> >(token, groupID));
 }
示例#19
0
 public static UserContract GetUser(Guid token, Guid userID)
 {
     return(RpcInvoker.InvokeMethod <UserContract>(token, userID));
 }
示例#20
0
 public static List <UserAttributeContract> GetUserAttributes(Guid token, Guid userID, Guid projectID)
 {
     return(RpcInvoker.InvokeMethod <List <UserAttributeContract> >(token, userID, projectID));
 }
示例#21
0
 public static Guid?Login(String loginName, String password, bool encryptedPassword)
 {
     return(RpcInvoker.InvokeMethod <Guid?>(loginName, password, encryptedPassword));
 }
示例#22
0
 public static List <ProjectContract> GetProjectByUserToken(Guid token)
 {
     return(RpcInvoker.InvokeMethod <List <ProjectContract> >(token));
 }
示例#23
0
 public static List <UserContract> GetGroupUsers(Guid token, Guid groupID)
 {
     return(RpcInvoker.InvokeMethod <List <UserContract> >(token, groupID));
 }
示例#24
0
 public static List <MessageContract> GetMessages(Guid token, Guid?projectID)
 {
     return(RpcInvoker.InvokeMethod <List <MessageContract> >(token, projectID));
 }
示例#25
0
 public static List <AttributeValueContract> GetAttributeValues(Guid token, Guid parentID)
 {
     return(RpcInvoker.InvokeMethod <List <AttributeValueContract> >(token, parentID));
 }
示例#26
0
 public static bool HasMessages(Guid token, Guid?projectID)
 {
     return(RpcInvoker.InvokeMethod <bool>(token, projectID));
 }
示例#27
0
 public static List <PermissionContract> GetAllResourcesPermissions(Guid token, Guid?projectID)
 {
     return(RpcInvoker.InvokeMethod <List <PermissionContract> >(token, projectID));
 }
示例#28
0
 public static UserContract GetCurrentUser(Guid token)
 {
     return(RpcInvoker.InvokeMethod <UserContract>(token));
 }
示例#29
0
 public static Dictionary <Guid, Dictionary <String, String> > GetAllUsersGlobalAttribetes(Guid token, bool deleteds)
 {
     return(RpcInvoker.InvokeMethod <Dictionary <Guid, Dictionary <String, String> > >(token, deleteds));
 }
示例#30
0
 public static void SendSms(String number, String message)
 {
     RpcInvoker.InvokeMethod(number, message);
 }