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