ホテル管理システム
ogi
yesterday 1a1c8e71fcd14858f595029f089b2d4a00202b32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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();
        }
    }
}