From 1a1c8e71fcd14858f595029f089b2d4a00202b32 Mon Sep 17 00:00:00 2001
From: ogi <Administrator@S-OGI-PC>
Date: Fri, 05 Dec 2025 09:24:16 +0900
Subject: [PATCH] プロジェクトファイルを追加。

---
 Protos/sale.proto |   81 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)

diff --git a/Protos/sale.proto b/Protos/sale.proto
new file mode 100644
index 0000000..1308b66
--- /dev/null
+++ b/Protos/sale.proto
@@ -0,0 +1,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);
+}
\ No newline at end of file

--
Gitblit v1.10.0