コード例 #1
0
ファイル: ExportHelper.cs プロジェクト: xbadcode/Rubezh
		public static bool ImportOrganisationList(ImportFilter filter)
		{
			var operationResult = ClientManager.RubezhService.ImportOrganisationList(filter);
			return Common.ShowErrorIfExists(operationResult);
		}
コード例 #2
0
		public OperationResult<bool> ImportOrganisationList(ImportFilter filter)
		{
			return SafeOperationCall(() =>
			{
				var rubezhService = RubezhServiceFactory.Create(TimeSpan.FromMinutes(10));
				using (rubezhService as IDisposable)
					return rubezhService.ImportOrganisationList(RubezhServiceFactory.UID, filter);
			}, "ImportOrganisationList");
		}
コード例 #3
0
		public OperationResult<bool> ImportOrganisationList(Guid clientUID, ImportFilter filter)
		{
			return SafeOperationCall(clientUID, () => RubezhService.ImportOrganisationList(clientUID, filter), "ImportOrganisationList");
		}
コード例 #4
0
ファイル: RubezhService.SKD.cs プロジェクト: xbadcode/Rubezh
		public OperationResult<bool> ImportOrganisationList(Guid clientUID, ImportFilter filter)
		{
			using (var databaseService = new RubezhDAL.DataClasses.DbService())
			{
				return databaseService.OrganisationTranslator.ListSynchroniser.Import(filter);
			}
		}