提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
翻译|使用教程|编辑:杨鹏连|2020-07-14 14:40:15.960|阅读 243 次
概述:本文从如何运行Angular示例,角甘特结构与安装两个方面讲解Angular Samples。
#慧都22周年庆大促·界面/图表报表/文档/IDE/IOT/测试等千款热门软控件火热促销中>>
jQuery Gantt Package是一个真正的跨平台,基于HTML5 / jQuery的本地实现,具有2个不同的gantt小部件,可满足您所有基于gantt的可视化需求。还带有ASP.NET WebControl和MVC扩展,可轻松集成到现有应用中。
角度样本
您可以在以下路径中找到Angular Samples,
<安装路径> / PlatformSamples / AngularSamples / app / Samples
注意:您还可以在以下路径中找到可选的VisulStudio项目或Angular解决方案
<安装路径> /PlatformSamples/AngularSamples/Angular4DemoVS2015.csproj
1)如何运行Angular示例
您可以使用NPM(cmd),Visual Studio 2015+版本或Visual Studio Code运行Angular Gantt示例。对于所有这三种方法,您需要首先使用npm来安装从属的“ node_modules”,如以下步骤中所述。 (已经在“ package.json”文件中指定了“ node_modules”软件包依赖项。)
另外,请确保将您的npm版本更新为5.4.1或更高版本。 (使用“ npm版本”来确定您的版本)。要更新到最新版本,请使用cmd行:“ npm install npm @ latest -g”。
使用NPM运行Angular示例的步骤:
使用Visual Studio Code运行Angular示例的步骤:
2)角甘特结构与安装
Angular Gantt软件包v4.0在<安装路径> / PlatformSamples / AngularSamples中可用
该平台仅包含构建和运行基本Angular示例所需的文件和文件夹。
创建项目目录并根据需要对其进行结构化。我们看起来像这样

Angular Gantt文件可以列出如下。
package.json
“ package.json”文件指定了项目名称,描述,服务器,还包含可以在npm安装期间安装的Angular必需软件包(如下所述)。该JSON文件还包含诸如angular-cli,打字稿,在'devDependencies'下键入的包。在这里,用户还可以根据他们的项目需求添加一些其他软件包。
index.html
“ index.html”包含所有甘特图源引用。它具有根标签,其根标签的名称为“
'ts'文件夹
由于Angular gantt基于TypeScript,因此在此“ ts”文件夹中可以使用诸如datejs.d.ts,jquery.d.ts,RadiantQGantt_TS2.3.d.ts等TypeScript声明文件。
“ app”文件夹
“ app”文件夹由main.ts和Samples文件夹组成。
以下文件和目录在此“ app”和“ Samples”文件夹中可用。
-main.ts
“ main.ts”导入角度组件,例如BrowserModule,platformBrowserDynamic等,以及甘特类。
我们的甘特图导出类的声明使用'@NgModule({})'装饰器进行。并且它还会引导导出类“ RQGanttSample”。
在这里,用户还可以使用方法'enableProdMode()'启用生产模式import { enableProdMode } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { Http, Response, HttpModule, JsonpModule } from '@angular/http';
import { NgModule } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { Routes, RouterModule } from '@angular/router';
// RadiantQ components.
import { DataService } from './data.service';
import { RQGanttControl, RQFlexyGantt, Column, getClientTemplate, getClientEditorTemplate, rqTemplateBinder, getTaskItemTemplate, getParentTaskItemTemplate } from './RQGanttSettings';
import { SampleBrowser } from './SampleBrowser/SampleBrowser';
import { FlexyGanttSkeleton } from './Samples/FlexyGanttSkeleton/FlexyGanttSkeleton';
import { GanttControlSkeleton } from './Samples/GanttControlSkeleton/GanttControlSkeleton';
import { GanttControlCustomDataBinding } from './Samples/GanttControlCustomDataBinding/GanttControlCustomDataBinding';
import { ResourceLoadView } from './Samples/ResourceLoadView/ResourceLoadView';
// Route config let's you map routes to components
const routes = [
{
path: 'GanttControlCustomDataBinding',
component: GanttControlCustomDataBinding
},
{
path: 'GanttControlSkeleton',
component: GanttControlSkeleton
},
{
path: 'FlexyGanttSkeleton',
component: FlexyGanttSkeleton
},
{
path: 'ResourceLoadView',
component: ResourceLoadView
},
{
path: '',
redirectTo: '/GanttControlCustomDataBinding',
pathMatch: 'full'
}
];
export const appRouterModule = RouterModule.forRoot(routes, { useHash: true}); // 'useHash' - To avoid 404 error while manually refeshing URL.
//enableProdMode();
@NgModule(
imports: [
BrowserModule,
HttpModule,
JsonpModule,
appRouterModule
],
declarations: [
getParentTaskItemTemplate,
getTaskItemTemplate,
getClientTemplate,
getClientEditorTemplate,
rqTemplateBinder,
Column,
RQFlexyGantt,
RQGanttControl,
ResourceLoadView,
GanttControlCustomDataBinding,
GanttControlSkeleton,
FlexyGanttSkeleton,
SampleBrowser
],
providers: [DataService],
bootstrap: [SampleBrowser]
})
export class RQSampleBrowserModule {
constructor(private dataService: DataService) {
for (var i = 0; i < routes.length; i++) { if (routes[i].path == "" && routes[i]['redirectTo'] != "") { // To update current sample's link color.(SampleBrowser.ts). dataService.obj.activeSampleURL = routes[i]['redirectTo']; break; } } } } platformBrowserDynamic().bootstrapModule(RQSampleBrowserModule);
“样品”文件夹
“ Samples”文件夹包含各种示例,分别是html,css,ts和json文件。 它还在其中包含“ Src”文件夹。
-'src'文件夹
“ Src”文件夹包含运行我们的甘特样本所需的源文件,例如ResourceStrings,Scripts,Styles。
样品文件夹-ResourceLoadView示例
甘特图可以集成到生产排程APS系统中,用于解决复杂生产模型下多约束、有限产能的快速实时计划优化和生产调度问题;是智能制造的核心解决方案和大脑中枢。
相关产品介绍:
VARCHART XGantt:支持ActiveX、.Net等平台的C#甘特图控件
AnyGantt:构建复杂且内容丰富的甘特图的理想工具
phGantt Time Package:对任务和时间的分配管理的甘特图
dhtmlxGantt:交互式JavaScript / HTML5甘特图
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@hmdbvip.cn
文章转载自:



在现代软件开发过程中,自动化单元测试是确保代码质量与可靠性的关键环节。尤其对于特定框架(如MFC)的代码,测试复杂度显著增加,常因依赖外部资源或交互操作而难以在静默环境中顺利执行。Parasoft C/C++test作为专业的软件测试工具,致力于帮助开发团队高效实施自动化测试,通过其强大的桩函数功能,能够有效模拟依赖组件的行为,从而实现对复杂逻辑的隔离测试。
本文将为大家介绍如何在MyEclipse中使用XDoclet开发EJB 2 Session Bean,欢迎下载最新版体验!
如果能将 CSV 自动转换为 PDF ,就能快速生成清晰、美观的报表,既节省手动排版时间,又能保持数据的专业呈现。本文将介绍如何使用 Spire.XLS for Java 实现这一过程——从加载 CSV 到输出高质量 PDF,仅需数行代码即可完成。
Parasoft C/C++test是一款专为C/C++代码设计的自动化测试工具,通过静态代码分析、单元测试和运行时错误检测等功能,帮助开发团队在早期发现并修复缺陷,提升代码质量和开发效率 。在实际使用中,尤其是在VC6此类旧版开发环境中执行单元测试时,可能会因环境兼容性问题触发链接错误。
相关产品
jQuery Gantt控件功能丰富,帮您实现工业4.0生产任务分层列表的可视化,及资源利用视图。
最新文章 MORE
永利最大(官方)网站相关的文章 MORE
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@hmdbvip.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
永利最大(官方)网站