using Grpc.Net.Client;
|
using HotelPms.Data;
|
using HotelPms.Data.Client;
|
using HotelPms.Data.Common;
|
using System;
|
using System.Collections.Generic;
|
using System.Data;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace HotelPms.DataAccessGrpc.Client
|
{
|
public partial class AddressAccess
|
{
|
/// <summary>
|
/// 郵便番号検索候補一覧を取得する
|
/// LIKE 'postNo%'
|
/// </summary>
|
/// <param name="channel"></param>
|
/// <param name="postNo"></param>
|
/// <returns></returns>
|
public async static Task<DataTable> GetPostNoSearch(GrpcChannel channel, string postNo)
|
{
|
GrpcTable table = await GrpcClient.GetTableStream(channel, (int)ETableActionType.PostNoSearch, postNo);
|
return table.ToDataTable();
|
}
|
|
/// <summary>
|
/// 住所検索候補一覧を取得する
|
/// LIKE '%address%'
|
/// </summary>
|
/// <param name="channel"></param>
|
/// <param name="address"></param>
|
/// <returns></returns>
|
public async static Task<DataTable> GetAddressSearch(GrpcChannel channel, string address)
|
{
|
GrpcTable table = await GrpcClient.GetTableStream(channel, (int)ETableActionType.AddressSearch, address);
|
return table.ToDataTable();
|
}
|
}
|
}
|