excelprint package
Submodules
excelprint.excelcontroller module
- class excelprint.excelcontroller.ExcelController(excellog, excellogname, responsedict)[ソース]
ベースクラス:
object
エクセル作成の詳細手順
excelstart:ExcelCreateの各種変数の初期設定を行う excelterminate:作成したエクセルをファイルへ出力し、格納先を設定したレスポンスデータを作成する pageheader:ページヘッダー印字処理 pagedetail 明細行 印字処理 pagefooter:ページフッター印字処理 getrecordinfo_pageoutputcontroll:
responsedictから該当するpagecontrollデータを取り出し、その中から、該当するoutputcontrollデータを取り出す 取り出されたデータが印字対象のデータとなる
- exceloutputcontroll:
エクセルのセルに項目の値を出力する
- log
- Type:
- dynamicapp
form.pyに記述されたbeforeとafter メソッドの呼び出しクラス
- Type:
- excelcreate
エクセル作成ライブラリー:ReportLabの実装クラス 現在の実装は String・Imageの2種類(必要都度追加していく)
- Type:
excelprint.excelcreate module
- class excelprint.excelcreate.ExcelCreate(excellog, excellogname, responsedict)[ソース]
ベースクラス:
object
エクセル作成ライブラリー:openpyxlの実装クラス
excelprint.excelmaincontroller module
- class excelprint.excelmaincontroller.ExcelMainController(excellog, excellogname, responsedict)[ソース]
ベースクラス:
object
エクセル作成のメインコントローラ(手順)
excelstart:excelCreateの各種変数の初期設定を行う call:エクセル作成のメインロジック(ヘッダー・明細・フッターの各処理を呼び出す) excelterminate:作成したエクセルを別名で出力し、格納先を設定したレスポンスデータを作成する
- log
- Type:
- excelcontroller
エクセル作成のコントローラ(詳細手順)
- Type:
excelprint.printcontroller module
- class excelprint.printcontroller.PrintController(clog, clogname, param_info, keydict)[ソース]
ベースクラス:
object
プリントコントローラクラス
call: 1.printParamをパラメータにjson_cacheのgetJsonDataを呼び出し、プリント用のトランザクションjsonを取得し
そこからrequestdictを取得する
2.printKey, printParamを使って、requestdictにプリント処理用キー情報とパラメータ情報を設定する 3.requestdictをリターンする
- log
- Type:
- printparamdict
- Type:
printparam内のhtmlとModeからプリント処理用のトランザクションjsonを取得する
- keyvaluedict
- Type:
プリント処理用のキー情報: 1行もしくは複数行
excelprint.printmaincontroller module
- class excelprint.printmaincontroller.PrintMainController(clog, clogname, mainmodel, mainview)[ソース]
ベースクラス:
object
プリントメインコントローラクラス
call: 1.PrintServer からsql.jsonデータ(printKey, printParam)を受け取る 2.PrintControllerを呼び出し、printKey, printParamからリクエストデータを作成する 3.modelを呼び出す指示がある場合、MainModelを呼び出しSQLデータを取得 4.MainViewを呼び出しレスポンスデータを取得 5.レスポンスデータをExcelMainController に渡し、エクセルを作成する 6.作成されたエクセルのパスが設定されたresponsedictをリターンする
- log
- Type: