From ff3cadba4a63cd1b63cd0e36358f49ccedb88bef Mon Sep 17 00:00:00 2001 From: gigibox <gigibox@163.com> Date: 星期四, 15 六月 2023 10:02:20 +0800 Subject: [PATCH] 完成基本功能 --- gui/gui.go | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gui/gui.go b/gui/gui.go index 1046e8c..abbe701 100644 --- a/gui/gui.go +++ b/gui/gui.go @@ -2,12 +2,13 @@ import ( "fmt" - "kingdee-dbapi/config" - "kingdee-dbapi/models" - "kingdee-dbapi/webserver" "strings" + "kingdee-dbapi/config" + "kingdee-dbapi/kingdee" + "kingdee-dbapi/report" "kingdee-dbapi/static" + "kingdee-dbapi/webserver" "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" @@ -76,7 +77,7 @@ config.SaveConfig() // 杩炴帴鏁版嵁搴� - err := models.Init(config.Options.SqlUsername, config.Options.SqlPassword, config.Options.SqlAddr, config.Options.SqlDBName) + err := kingdee.Init(config.Options.SqlUsername, config.Options.SqlPassword, config.Options.SqlAddr, config.Options.SqlDBName) if err != nil { fmt.Println("db init error:", err.Error()) dialog.ShowError(err, w) @@ -87,6 +88,8 @@ submitBtn.Text = "宸插惎鍔�" submitBtn.Disable() + report.StartReport() + go webserver.Serve(serverPort.Text) }) -- Gitblit v1.8.0