automatic9045 / automatic9045/TRS.MS-12
文字列印刷に対応させる
- Dominant language
- C#
- Stars
- 28
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
現状画像印刷に特化しているが、文字列の印刷(OPOSで言うと`PosPrinter.PrintNormal`メソッドにあたる機能)にも対応させたい。
## メリット
ソフトウェア側で券面画像を生成しなくても簡単なレシート印刷は行えるようになる。
これにより、発券端末としてではなく、一般的なレジとして使用する為のチケットプラグインの開発が容易に。
## 修正・追加する必要があるもの
- [ ] TicketBase抽象クラス
- 現状はBitmapプロパティに券面画像を保存している
- TicketBaseにはBitmapプロパティを持たせず、TicketBaseを継承する抽象クラスを2つ(BitmapTicketBase、TextTicketBase(仮称))作成し、それぞれに券面情報を保持するためのプロパティを追加する
- TicketBaseのコンストラクタのBitmap型引数を削除することになるため、ISenderを実装するプラグインも要修正
- [ ] 文字列ベースの券面情報を表現するためのクラス(RichText(仮称))の作成
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the TicketBase abstraction and the ISender implementations that depend on its Bitmap constructor. Define how BitmapTicketBase, TextTicketBase, and the proposed RichText class represent ticket content, then update affected plugins so text printing can provide the PrintNormal-equivalent capability. Done means both bitmap and text ticket information are supported without requiring software-generated ticket images.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100