powerdesigner

Go语言beego框架开发彩票分析工具教程之一介绍

半城伤御伤魂 提交于 2020-02-27 01:44:06
2020年春节前的2个月,朋友问我能不能开发一个分析排列五彩票中奖情况的软件,我大概了解了他的需求,觉得这个软件可以开发,就答应了他。 这个的主要功能点: 采集开奖号码入库。 手工添加开奖号码入库。 设置选号规则并保存。 分析并查看选号规则的中奖概率情况。 导出选号规则生成号码的TXT文件。 功能确定好后,就开始选型编程开发语言和框架。我以前一直在用PHP语言的ThinkPHP框架开发项目,如果用PHP开发这个小工具软件很轻松就能写出来。Java 语言的 Spring Boot 框架也大概了解做起来也没什么问题。Go 语言嘛,是一门比较新的语言,据说并发性能很强,也被吐槽没有泛型,异常处理机制不够友好。思来想去,最终还是选了 Go + Beego 来做这个项目,最主要原因是可以编译出一个可执行的 EXE 文件来使用,部署非常方便。 后端选型完,又轮到前端纠结的选型。到底是用 Vue.js 做为前端基础框架还是用jQuery,经过一阵痛苦的思想斗争后,还是选用 jQuery + Bootstrap 的前端框架 AdminLTE来开发。原因是自己没有前后端分离的需求,vue.js还没使用经验,比较熟悉jQuery。 原来是想先设计软件原型再进入开发阶段的,考虑到自己一天只能腾出1-2个小时做这个项目,要一边学习Go语言基础知识和Beego开发框架,时间上比较紧

power Designer 导入 excel 表结构数据 创建表

时间秒杀一切 提交于 2020-02-27 00:26:53
一、编写测试excel,如下: 二、打开PowerDesigner,创建物理模型(Physical Data Model) 三、在PowerDesigner菜单栏中,依次点击“Tools ->Excute Commands->Edit/Run Script.. 四、修改如下脚本,指定excel所在路径及文件名: Option Explicit Dim mdl ' the current model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "There is no Active Model" End If Dim HaveExcel Dim RQ Dim x1sApp,xlsWorkBook,xlsSheet RQ = vbYes 'MsgBox("Is Excel Installed on your machine ?", vbYesNo + vbInformation, "Confirmation") If RQ = vbYes Then HaveExcel = True ' Open & Create Excel Document Set x1sApp = CreateObject("Excel.Application") set xlsWorkBook = x1sApp.Workbooks.Open("J:

PowerDesigner 中将Comment(注释)及Name(名称)内容互相COPY的VBS代码

匆匆过客 提交于 2020-02-11 05:12:52
在用PowerDesigner时.常常在NAME或Comment中写中文在Code中写英文.Name只会显示给我们看,Code会使用在代码中.但Comment中的文字会保存到数据库TABLE的Description中,有时候我们写好了Name再写一次Comment很麻烦.以下两段代码就可以解决这个问题. 代码一:将Name中的字符COPY至Comment中 ' ****************************************************************************** ' * File: name2comment.vbs ' * Purpose: Database generation cannot use object names anymore ' in version 7 and above. ' It always uses the object codes. ' ' In case the object codes are not aligned with your ' object names in your model, this script will copy ' the object Name onto the object Comment for ' the Tables and Columns. ' ' *

PowerDesigner 把Comment/name 互转

岁酱吖の 提交于 2020-02-11 01:11:53
转载:https://www.cnblogs.com/cxd4321/archive/2009/03/07/1405475.html 在使用PowerDesigner对数据库进行概念模型和物理模型设计时,一般在NAME或Comment中写中文,在Code中写英文。Name用来显 示,Code在代码中使用,但Comment中的文字会保存到数据库Table或Column的Comment中,当Name已经存在的时候,再写一次 Comment很麻烦,可以使用以下代码来解决这个问题: 代码一: 将Name中的字符COPY至Comment中 Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "There is no current Model " ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox "The current model is not an Physical Data model. " Else ProcessFolder

powerDesigner 把name项添加到注释

自作多情 提交于 2020-02-10 23:58:52
'使用方法使用方法 'PowerDesigner->Tools->Execute Commands->Edit/Run Scripts Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model Set mdl = ActiveModel If (mdl Is Nothing ) Then MsgBox "There is no current Model " ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox "The current model is not an Physical Data model. " Else ProcessFolder mdl End If ' This routine copy name into comment for each table, each column and each view ' of the current folder Private sub ProcessFolder(folder) Dim Tab 'running table for each Tab in folder

powerDesigner 把name项添加到注释(comment),完美方案!

拈花ヽ惹草 提交于 2020-02-10 23:58:21
第一次写博客,分享一点经验吧,平时大家用powerDesigner的时候,pd是不会把name项默认添加到comment的,所以生成的数据库表里面也没有中文字段的注释. 我在网上查了一下.有解决方案了. 以下是网上的解决方案,我把它完善了一下. '使用方法使用方法 'PowerDesigner->Tools->Execute Commands->Edit/Run Scripts 可以保存该脚本为:name2comment.vbs ' 把pd中那么name想自动添加到comment里面 ' 如果comment为空,则填入name;如果不为空,则保留不变,这样可以避免已有的注释丢失. Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model Set mdl = ActiveModel If (mdl Is Nothing ) Then MsgBox " There is no current Model " ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox " The current model is not an Physical Data

powerDesigner 把name项添加到注释(comment),完美方案!

前提是你 提交于 2020-02-10 23:58:00
第一次写博客,分享一点经验吧,平时大家用powerDesigner的时候,pd是不会把name项默认添加到comment的,所以生成的数据库表里面也没有中文字段的注释. 我在网上查了一下.有解决方案了. 以下是网上的解决方案,我把它完善了一下. '使用方法使用方法 'PowerDesigner->Tools->Execute Commands->Edit/Run Scripts 可以保存该脚本为:name2comment.vbs Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->'把pd中那么name想自动添加到comment里面 '如果comment为空,则填入name;如果不为空,则保留不变,这样可以避免已有的注释丢失. Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model Set mdl = ActiveModel If (mdl Is Nothing) Then MsgBox "There is no current Model "

powerDesigner 把name项添加到注释(comment),完美方案!

送分小仙女□ 提交于 2020-02-10 23:57:26
第一次写博客,分享一点经验吧,平时大家用powerDesigner的时候,pd是不会把name项默认添加到comment的,所以生成的数据库表里面也没有中文字段的注释. 我在网上查了一下.有解决方案了. 以下是网上的解决方案,我把它完善了一下. '使用方法使用方法 'PowerDesigner->Tools->Execute Commands->Edit/Run Scripts 可以保存该脚本为:name2comment.vbs ' 把pd中那么name想自动添加到comment里面 ' 如果comment为空,则填入name;如果不为空,则保留不变,这样可以避免已有的注释丢失. Option Explicit ValidationMode = True InteractiveMode = im_Batch Dim mdl ' the current model ' get the current active model Set mdl = ActiveModel If (mdl Is Nothing ) Then MsgBox " There is no current Model " ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then MsgBox " The current model is not an Physical Data

PowerDesigner中NAME和COMMENT的互相转换,需要执行语句

谁说我不能喝 提交于 2020-02-10 23:56:44
原文: http://www.cnblogs.com/yelaiju/archive/2013/04/26/3044828.html 由于PDM 的表中 Name 会默认=Code 所以很不方便, 所以需要将 StereoType 显示到表的外面来 打开[工具]->[显示属性](英文:Display Preferences) ->Content->Table->右边面板Columns框中 勾选: StereoType ,这样再在 StereoType中填入code字段相同内容就会显示在图形界面上了 使用说明: 在【Tools】-【Execute Commands】-【Edit/Run Script】 下。输入下面你要选择的语句即可,也可以保存起来,以便下次使用,后缀为.vbs。 需要注意的问题是:运行语句时必须在Module模式下,如果是导出报表时执行会出现错误提示。 1.Name转到Comment注释字段。一般情况下只填写NAME,COMMENT可以运行语句自动生成。 将该语句保存为name2comment.vbs 原地址的代码有一些格式上的错误,现已修正。 ' 把pd中那么name想自动添加到comment里面 ' 如果comment为空,则填入name;如果不为空,则保留不变,这样可以避免已有的注释丢失. Option Explicit ValidationMode =

PowerDesigner使用方法小结

这一生的挚爱 提交于 2020-02-10 23:55:49
PowerDesigner多用来进行数据库模型设计,具有SQL语句自动生成等功能。当然,也有不少缺点,比如团队分享。 一、设置PowerDesigner模型视图中数据表显示列 1、Tools-Display Preference… 2、窗口左边Category中General Settings下选择Table 3、窗口右边Advanced… 4、窗口左边选择Columns 5、窗口右边List columns中,选择要显示的列 二、设置PowerDesigner设计表时,自动将name列值中的一部分复制到code列 1、把name/code自动复制功能打开。默认是打开的。 Tool-Genneral-Options Dialog-Name to Code mirroring 2、Tools->Model Options....->Naming Convention 3、选中Name,并勾选Enable name/code conversions. 4、选择Name To Code 粘贴脚本代码 脚本1: .set_value(_First, true, new) .foreach_part(%Name%, "'#'") .if (%_First%) .delete(%CurrentPart%) .enddelete .set_value(_First, false, update)