Пример #1
0
 /// <summary>
 /// 根据ID查询指定记录信息
 /// </summary>
 /// <param name="Id">查询条件类的实例</param>
 /// <returns></returns>
 public static async Task <Lib.MemberScoreDto> GetOneById(string Id)
 {
     return(await DataApiRepository.GetApiUri <Lib.MemberScoreDto>(_ApiUrlBase + "MemberScore/" + Id));
 }
Пример #2
0
        /// <summary>
        /// 从服务器读取系统设置
        /// </summary>
        /// <returns></returns>
        public static async Task <SettingServer> ReadServerSettings()
        {
            SettingServer ServerSetting = await DataApiRepository.GetApiUri <SettingServer>(_ApiUrlBase + "Settings").ConfigureAwait(false);

            return(ServerSetting);
        }
Пример #3
0
        /// <summary>
        /// 从服务器读取本程序最新升级信息
        /// </summary>
        /// <returns></returns>
        public static async Task <AppUpdateInfo> GetAppUpdateInfo()
        {
            AppUpdateInfo UpdateInfo = await DataApiRepository.GetApiUri <AppUpdateInfo>(_ApiUrlBase + "UpdateFile/GetUpdateInfo").ConfigureAwait(false);

            return(UpdateInfo);
        }
 /// <summary>
 /// 向服务器请求时间,以确定是否连接是否正常。
 /// </summary>
 /// <returns></returns>
 public static async Task <Lib.NetStateDto> GetSeverState()
 {
     return(await DataApiRepository.GetApiUri <Lib.NetStateDto>(_ApiUrlBase + "NetState/GetTime"));
 }
 /// <summary>
 /// 获取所有已生成的待遇表中人员的类型
 /// </summary>
 /// <param name="SearchCondition"></param>
 /// <returns></returns>
 public static async Task <string[]> GetPayTableMemberTypes()
 {
     return(await DataApiRepository.GetApiUri <string[]>(_ApiUrlBase + $"MemberPaySheet/GetPayTableMemberTypes").ConfigureAwait(false));
 }