1
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
--公司级:项目申请预立项
|
||||||
|
IF NOT EXISTS (SELECT * FROM Sys_Menu WHERE MenuId = '204ACA82-15B4-4C80-AE9F-ACF25CE12345')
|
||||||
|
BEGIN
|
||||||
|
INSERT INTO dbo.Sys_Menu (MenuId, MenuName,Url, SortIndex, SuperMenu, MenuType, IsOffice, IsEnd, IsUsed)
|
||||||
|
VALUES (N'204ACA82-15B4-4C80-AE9F-ACF25CE12345', N'数据治理监控', N'ProjectData/DataGovernance.aspx', 81, 'C2297533-B7C0-441E-B29F-ADE87C6F8978', 'Menu_SysSet', 1,1, 1);
|
||||||
|
END
|
||||||
|
GO
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataGovernance.aspx.cs" Inherits="FineUIPro.Web.ProjectData.DataGovernance" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<title>数据治理监控</title>
|
||||||
|
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
<style>
|
||||||
|
container-title-tt{display:none !important}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" Margin="5px" MarginTop="60px" BodyPadding="5px" ShowBorder="false"
|
||||||
|
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||||
|
<Items>
|
||||||
|
<f:ContentPanel ID="ContentPanel1" CssClass="bodyregion" ShowBorder="false" ShowHeader="false" runat="server" Height="900">
|
||||||
|
<iframe id="ifDataGovernance" runat="server" allow="microphone;camera;midi;encrypted-media;" allowfullscreen="true" width="100%" height="888" frameborder="0" style="margin-top:-78px">
|
||||||
|
</iframe>
|
||||||
|
</f:ContentPanel>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
using BLL;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web.Security;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ProjectData
|
||||||
|
{
|
||||||
|
public partial class DataGovernance : PageBase
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
//string url = "../DataGovernance/index.html";
|
||||||
|
//string url = "https://qhse.cncecoa.com/HSE/DataGovernance/index.html";
|
||||||
|
//string url = "https://lygcgs.com.cn:8078/QHSE/DataGovernance/index.html";
|
||||||
|
//string url = "https://lygcgs.com.cn:8078/QHSE/FileUpload/DataGovernance/index.html";
|
||||||
|
//string roleName = RoleService.getRoleNamesRoleIds(this.CurrUser.RoleId);
|
||||||
|
//if (roleName.Contains("公司领导") || roleName.Contains("公司管理") || this.CurrUser.UserId == Const.sysglyId || this.CurrUser.UserId == Const.hfnbdId)
|
||||||
|
//{
|
||||||
|
// url += "?type=1,2";
|
||||||
|
//}
|
||||||
|
//else
|
||||||
|
//{
|
||||||
|
// //url += "?type=1";
|
||||||
|
// if (FormsAuthentication.LoginUrl.Contains("Hsse"))
|
||||||
|
// {
|
||||||
|
// url += "?type=1";
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// url += "?type=2";
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
string url = "https://qhse.cncecoa.com/QHSE/FileUpload/DataGovernance/index.html?type=1,2";
|
||||||
|
var thisUnit = CommonService.GetIsThisUnit();
|
||||||
|
url = $"{url}&fromUnit={thisUnit.UnitId}&random={DateTime.Now.ToString("yyyyMMddHHmmss")}-{new Random().Next(1000, 9999)}";
|
||||||
|
ifDataGovernance.Src = url;
|
||||||
|
//Response.Write("<script>window.open('" + url + "','_blank')</script>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ProjectData
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class DataGovernance
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Panel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel Panel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ContentPanel1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ifDataGovernance 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlIframe ifDataGovernance;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -233,12 +233,12 @@ namespace FineUIPro.Web.ProjectData
|
|||||||
Alert.ShowInTop("请选择审批人!", MessageBoxIcon.Warning);
|
Alert.ShowInTop("请选择审批人!", MessageBoxIcon.Warning);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var project = ProjectService.GetProjectByProjectName(projectName);
|
//var project = ProjectService.GetProjectByProjectName(projectName);
|
||||||
if (project != null)
|
//if (project != null)
|
||||||
{
|
//{
|
||||||
Alert.ShowInTop($"系统中已存在同名项目,{project.ProjectName}({project.ProjectCode}),无需申请!", MessageBoxIcon.Warning);
|
// Alert.ShowInTop($"系统中已存在同名项目,{project.ProjectName}({project.ProjectCode}),无需申请!", MessageBoxIcon.Warning);
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
var applyPro = PreProjectApplyService.GetPreProjectApplyByProjectName(projectName);
|
var applyPro = PreProjectApplyService.GetPreProjectApplyByProjectName(projectName);
|
||||||
if (applyPro != null)
|
if (applyPro != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -491,10 +491,10 @@ namespace FineUIPro.Web.ProjectData
|
|||||||
if (getProject != null)
|
if (getProject != null)
|
||||||
{
|
{
|
||||||
project.FromProjectId = getProject.FromProjectId;
|
project.FromProjectId = getProject.FromProjectId;
|
||||||
if (string.IsNullOrWhiteSpace(project.MasterSysId) && !string.IsNullOrWhiteSpace(getProject.MasterSysId))
|
// if (string.IsNullOrWhiteSpace(project.MasterSysId) && !string.IsNullOrWhiteSpace(getProject.MasterSysId))
|
||||||
{
|
// {
|
||||||
project.MasterSysId = getProject.MasterSysId;
|
// project.MasterSysId = getProject.MasterSysId;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
project.ProjectId = this.ProjectId;
|
project.ProjectId = this.ProjectId;
|
||||||
ProjectService.UpdateProject(project);
|
ProjectService.UpdateProject(project);
|
||||||
|
|||||||
Reference in New Issue
Block a user