2 Star 11 Fork 11

liggin2019 / Ligg.EasyRPADesk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
LGPL-3.0

介绍

本框架是一款无码化Windows应用编程框架和UI库,包括2部分:WinformApp和ConsoleApp。通过该框架,采用原创的文本编程技术,不需任何代码,仅通过文本和数据文件(包括UI配置、Shell脚本), 以类似Excel公式的方式和搭积木的形式, 可以

  • 搭建任意复杂的Windows& 控制台人机交互界面
  • 支持多语言、多应用、多门户及各种运行模式(同步、异步、多线程)
  • 内置基础功能,外嵌组件和插件,通过Shell脚本实现运算和过程控制
  • 与UI元素之间互动,在任意点执行Shell脚本,运行基础功能,或加载运行"即插即用"的组件或插件,实时解释、部署和执行, 实现系统功能扩展和流程自动化(Robotic Process Automation)

当前版本: 4.3.7.0 帮助文档

适用范围

  • 流程和运维自动化
  • C/S程序和Web程序客户端(详见Ligg.LightSap的OA/ERP客户端示例)
  • 办公应用及数据处理分析
  • 软件开发过程中的测试和原型设计
  • 自动化设备开发、调试,上位机开发
  • 工具软件, 尤其安全性要求高的软件

特点

- 内置基础功能包括:

  • 各类基础控件、扩展控件、菜单托盘工具栏控件
  • 定时作业控件(Sheduler +OnTimeSheduler +AtTimeSheduler)
  • 字符、文件处理, 逻辑、数值运算, 数据输入输出、数据格式转换、加密解密、输入验证、表单字段验证
  • Python脚本执行、Windows cmd脚本执行(ProcessHelper +RunAsAdminHelper)
  • 数据库操作(DbHelper +DbFactory)
  • Web接口(HttpClientHelper +SoketWatcher+WebSoketWatcher +MQTTWatcher)

- 外嵌"即插即用"的组件或插件

  • 外嵌组件包括:核心业务处理组件(CblpComponent)、标准服务组件(OessComponent)
  • 外嵌插件包括:Getter、Doer、ConstantResolver、Validator、StartTasks

- 通过文本编程技术实现定制化和无码化

  • 同时支持多种配置文件(.xlsx、 .xls、.csv、 .xml、 .json)和文本数据(Lstring、Larray、Ldict、Ltable、Lson)及其文件(.lstr、.larr、.ldict、.ltb、.lson)
  • UI配置搭建应用程序界面, 通过Shell脚本(包括UI Shell、Task Shell、Oe Shell)实现运算和过程控制(赋值、条件判断、循环、跳转、递归、中断等...),运行基础功能,然后加载运行基础功能之外的"即插即用"的组件或插件

- 支持多语言、及各种运行模式(同步、异步、多线程)

- 同时支持.net Core、.net Framework

采用技术包括: .net Core、.net Framework、Autofac、Nlog、Npoi

开发环境

  • Microsoft Visual Studio 2019 Version 16.9.2
  • NET Framework Version 4.7.2
  • NET Core Version 3.1
  • NET Standard Version 2.0

项目结构

structure
structure

项目运行

克隆项目

启动程序

  • 双击启动程序,如\debug\Demo-Console-_Start-SoftwareCover.exe,它有一个同名.ini文件指明了启动程序的执行程序和配置路径; 这2文件必须同时出现且要与Conf、Program、Data文件夹处于同级的位置;见下图
  • 运行其他的启动程序, 在各个z-started文件夹取出.exe和.ini文件至当前位置,双击运行
  • 如果是Web客户端,需要先启动后端服务,详见《Ligg.LightSap的OA&ERP客户端示例》
  • 如果要以Core程序运行,把"path=Program\Main\netFxApp4.7.2\ConsoleApp.exe"改为path=Program\Main\netcoreapp3.1\ConsoleApp.exe即可,本架构是同时支持Framework和Core
  • 运行多语言应用启动程序, 双击如\debug\DemoLangs-Winform-Mvi-NestedMenu.exe,点击structure切换语言

启动程序位置

structure

无码化编程

详见《Ligg.EasyRPADesk文档》

  • 所有的配置文件都在\debug\conf\目录下
  • 控制台启动程序如Demo-Console-_Start-SoftwareCover.exe的配置文件在\debug\Conf\Apps\Demo\Ui\Console\Scenarios_Start\SoftwareCover\下, ui.xml 定义单个运行界面和 Shell.xml定义运行逻辑
  • Winform启动程序描述如下
  • Winform Portal主界面(Mvi: Multiple-view-interface) 启动程序,如Demo-Winform-Mvi-HorVerMenu.exe的配置文件在\debug\Conf\Apps\Demo\Ui\WinForm\Portals\HorVerMenu, 在这里定义窗体、菜单、视图、托盘
  • Winform 单个View Form (Svi:Single-view-interface) 启动程序,如Demo-Winform-Svi-Basic-OpenUrls.exe 界面的配置文件在\debug\Conf\Apps\Demo\Ui\WinForm\Views\Basic\OpenUrls,在这里ui.xml定义一个View由哪几个Zone组成
  • Winform 单个Zone Form (Szi:Single-zone-interface) 启动程序,如Demo-Winform-Szi-Basic-OpenUrls.exe 界面的配置文件在\debug\Conf\Apps\Demo\Ui\WinForm\Zones\Basic\OpenUrls,在这里ui.xml定义Form的运行界面,Shell.xml定义运行逻辑
  • 备注: View: Demo-Winform-Svi-Basic-OpenUrls由Zone: Demo-Winform-Szi-Basic-OpenUrls和另外一个Zone组成, 而Portal由多个View和菜单、工具栏、托盘组成;View、Zone也可作为Form单独运行
  • 如果需要测试,没有xml编辑器,可以去\Conf-all-types-data-files\对应文件夹下复制对应的xx.xlsx放到当前文件夹,完成测试后,把修改过后的文件改名xx-design.xlsx,然后保存为xx.csv。系统按缺省命名取不同UI配置和Shell文件的,配置文件在Debug状态下优先级顺序是.xlsx .xls .csv .xml .json; 由于.xlsx文件比较慢, 所以建议优先使用是.csv和.xml
  • 下图为Demo-Console-_Start-SoftwareCover.exe Shell文件和Ui文件的内容 structure structure

调试源码(以.net Framework为例,.net Core同样操作):

  • 把\src\.packages的第三方引用包的文件复制到\debug\Program\Main\netfxapp4.7.2\
  • Visual Studio打开\src\Ligg.EasyRpaDesk.sln
  • \debug\Program\Main\netfxapp4.7.2\下有一个debug.ini文件 structure
  • 如果要调试Winform程序,在Visual Studio设Ligg.RpaDesk.WinFormApp.Fx为启动项目, 注释ConsoleApp.exe 和其他args行,只保留自己的Args行; CTRL+SHIFT+B编译, F5开始调试
  • 如果要调试Console程序,在Visual Studio设Ligg.RpaDesk.ConsoleApp.Fx为启动项目, 注释WinformApp.exe和其他args行,只保留自己的Args行; CTRL+SHIFT+B编译,F5开始调试

界面

控制台界面

structure

Winform界面-登录

structure

Winform Web客户端界面-OA主门户-Nested菜单

structure

Winform Web客户端界面-ERP主门户-水平垂直菜单

structure

Winform C/S客户端界面-Demo主门户

structure

Winform Svi界面-Demo

structure

Winform zvi界面-Demo

structure

Winform C/S客户端界面-Demolangs主门户-多语言-简体中文

structure

Winform C/S客户端界面-Demolangs主门户-多语言-英文

structure

GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

简介

本项目是一款基于.Net/C#的无码化Windows应用编程框架和UI库。不需代码,仅通过文本和数据文件,以类似Excel公式的方式和搭积木的形式 , 搭建任意复杂的应用程序界面; 实时部署和执行,适用于RPA、上位机、自动化运维、Mes等系统,也可用于Web系统的客户端。 展开 收起
C# 等 2 种语言
LGPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/liggin2019/Ligg.EasyRpaDesk.git
git@gitee.com:liggin2019/Ligg.EasyRpaDesk.git
liggin2019
Ligg.EasyRpaDesk
Ligg.EasyRPADesk
master

搜索帮助