ホテル管理システム
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
syntax = "proto3";
 
import "datarequest.proto";
import "dataresult.proto";
import "sqlwhere.proto";
import "file.proto";
 
import "customTypes.proto";
 
package HotelPms.Data.UseInfo;
 
message Sale {
  int32 ID = 1;
  int32 DetailID = 2;
  customTypes.Date UseDate = 3;
  int32 SaleID = 4;
  int32 ReceiptID = 5;
  string ItemID = 6;
  string ItemName = 7;
  customTypes.DecimalValue Price = 8;
  int32 Amount = 9;
  customTypes.DecimalValue Summary = 10;
  int32 ServiceIOType = 11;
  customTypes.DecimalValue ServiceSummary = 12;
  customTypes.DecimalValue ServiceRate = 13;
  int32 TaxType = 14;
  int32 TaxIOType = 15;
  customTypes.DecimalValue TaxSummary = 16;
  customTypes.DecimalValue TaxRate = 17;
  int32 BathTaxIOType = 18;
  int32 BathTaxType = 19;
  customTypes.DecimalValue BathTaxUnitPrice = 20;
  customTypes.DecimalValue BathTaxSummary = 21;
  int32 AccTaxIOType = 22;
  customTypes.DecimalValue AccTaxSummary = 23;
  customTypes.DecimalValue TotalSummary = 24;
  customTypes.DecimalValue DiscountRate = 25;
  customTypes.DecimalValue DiscountSummary = 26;
  int32 DiscountID = 27;
  bool Pack = 28;
  bool PackChild = 29;
  int32 PackSaleID = 30;
  int32 PersonType = 31;
  int32 PersonCount = 32;
  int32 InFemale = 33;
  int32 UseType = 34;
  int32 BaseAmount = 35;
  bool PersonRef = 36;
  string ReceiptItemName = 37;
  int32 ReceiptPrtType = 38;
  int32 ReceiptPage = 39;
  int32 SrcType = 40;
  string FixturesID = 41;
  int32 ItemKind = 42;
 
}
 
message SaleTable {
  int32 ErrNo = 1;
  string ErrData = 2;
  string Name = 3;
  int32 UpdateType = 4;  //0.なし 1.Insert 2.Update 
  string Tag = 5;
  bytes BeforeUpdate = 6;
  bytes AfterUpdate = 7;
  repeated Sale Rows = 8;
}
 
service SaleCore {
  rpc GetData (HotelPms.Data.DataRequest) returns (SaleTable);
  rpc SetData (SaleTable) returns (HotelPms.Data.DataResult);
  rpc Add (Sale) returns (HotelPms.Data.DataResult);
  rpc Update (Sale) returns (HotelPms.Data.DataResult);
  rpc Remove (HotelPms.Data.SqlWhere) returns (HotelPms.Data.DataResult);
  rpc GetDataStream (stream HotelPms.Data.DataRequest) returns (stream SaleTable);
  rpc SetDataStream (stream SaleTable) returns (stream HotelPms.Data.DataResult);
  rpc AddStream (stream Sale) returns (stream HotelPms.Data.DataResult);
  rpc UpdateStream (stream Sale) returns (stream HotelPms.Data.DataResult);
  rpc RemoveStream (stream HotelPms.Data.SqlWhere) returns (stream HotelPms.Data.DataResult);
  rpc OutputStream (HotelPms.Data.DataRequest) returns (stream HotelPms.Data.FileGrpcData);
}