| | |
| | | |
| | | 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" |
| | |
| | | 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) |
| | |
| | | submitBtn.Text = "已启动" |
| | | submitBtn.Disable() |
| | | |
| | | report.StartReport() |
| | | |
| | | go webserver.Serve(serverPort.Text) |
| | | }) |
| | | |