小编lar*_*and的帖子

DELPHI 10.3 社区版哪里可以添加常用库路径

我刚刚安装了 10.3 Rio Community 版本,并正在尝试向其中添加 mORMot 库。

但是我找不到在哪里添加它。

在我的 XE6 版本中,它位于工具菜单中,但在 10.3 中我找不到它。

delphi delphi-10.3-rio

9
推荐指数
2
解决办法
9658
查看次数

如何获取磁盘分区的 GUID?

我正在使用 WMI 来获取所有磁盘信息,如驱动器、驱动器号等,但我还没有找到如何获取每个分区的 UUID/GUID。

delphi wmi guid disk

3
推荐指数
1
解决办法
1092
查看次数

Grails 渲染插件在 Grails3.2.4 中不起作用?

我想将视图渲染为 pdf 并尝试使用 Grails 渲染插件 2.0.3

我尝试了最简单的 gsp 文件:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
  To change this license header, choose License Headers in Project Properties.
  To change this template file, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sample title</title>
    </head>
    <body>
        <h1>Sample line</h1>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

在控制器中:

    def report() {
        def OfferHeader oh = OfferHeader.get(15)
        println(">>> Offerheader: "+oh.sawMill)
//        render(template: "/offerHeader/Test")
        renderPdf(template: …
Run Code Online (Sandbox Code Playgroud)

pdf grails plugins rendering

2
推荐指数
1
解决办法
1186
查看次数

Grails,在服务中更新对象时不会保存保存

拥有一个从服务操纵的域,然后尝试保存该域不起作用,即使我使用:save(flush:true, failOnError:true)validate()返回 true 并hasErrors()返回 false。

我从引导程序进行调用:

def timeKeeperService
def init = { servletContext ->
    def TimeKeeper tk = TimeKeeper.findByName('MAIN')?:new TimeKeeper(name:'MAIN').save(flush:true, failOnError:true)
    tk = timeKeeperService.initialize()
    tk = timeKeeperService.workStart()
Run Code Online (Sandbox Code Playgroud)

域名:

class TimeKeeper {

    String name
    Date dateCreated
    Date dateUpdated
    Date workStart
    Date workEnd

    def initialize() {
        println("TimeKeeper initialize...")
        workStart = null
        workEnd = null
    }


    def workStart() {
       if (workStart == null) {
          println("TimeKeeper - workStart")
          workEnd = null
           workStart = new Date()  
       } else { …
Run Code Online (Sandbox Code Playgroud)

grails grails-orm

2
推荐指数
1
解决办法
1970
查看次数

标签 统计

delphi ×2

grails ×2

delphi-10.3-rio ×1

disk ×1

grails-orm ×1

guid ×1

pdf ×1

plugins ×1

rendering ×1

wmi ×1