78 lines
3.0 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 版 本 PIT-ADMS V7.0.3 敏捷开发框架
* Copyright (c) 2013-2018 Hexagon PPM
* 创建人:研发部
* 日 期2017.04.17
* 描 述PC端代码生成模板管理
*/
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.bind();
},
bind: function () {
// 自定义开发模板
$('#lr_custmerCode').on('click', function () {
learun.layerForm({
id: 'CustmerCodeIndex',
title: '在线代码生成器 并自动创建代码(自定义开发模板)',
url: top.$.rootUrl + '/LR_CodeGeneratorModule/TemplatePC/CustmerCodeIndex',
width: 1100,
height: 700,
maxmin: true,
btn: null
});
});
// 快速开发模板
$('#lr_fastCode').on('click', function () {
learun.layerForm({
id: 'FastCodeIndex',
title: '在线代码生成器 并自动创建代码(快速开发模板)',
url: top.$.rootUrl + '/LR_CodeGeneratorModule/TemplatePC/FastCodeIndex',
width: 1100,
height: 700,
maxmin: true,
btn: null
});
});
// 实体映射类生成
$('#lr_entityCode').on('click', function () {
learun.layerForm({
id: 'FastCodeIndex',
title: '在线代码生成器 并自动创建代码(实体映射类生成)',
url: top.$.rootUrl + '/LR_CodeGeneratorModule/TemplatePC/EntityCodeIndex',
width: 1100,
height: 700,
maxmin: true,
btn: null
});
});
// 系统表单开发模板
$('#lr_workflowCode').on('click', function () {
learun.layerForm({
id: 'CustmerCodeIndex',
title: '在线代码生成器 并自动创建代码(流程系统表单开发模板)',
url: top.$.rootUrl + '/LR_CodeGeneratorModule/TemplatePC/WorkflowCodeIndex',
width: 1100,
height: 700,
maxmin: true,
btn: null
});
});
// 移动开发模板
$('#lr_appCustmerCode').on('click', function () {
learun.layerForm({
id: 'CustmerCodeIndex',
title: '在线代码生成器 并自动创建代码(移动开发模板)',
url: top.$.rootUrl + '/LR_CodeGeneratorModule/TemplatePC/AppCustmerCodeIndex',
width: 1100,
height: 700,
maxmin: true,
btn: null
});
});
}
};
page.init();
}