-
-
-
-
- <%--

--%>
-
-
数字化施工管理信息平台
-
-
-
-
-
-

-
-
-
-
-
+

+

+
+
+
+
+
+ <%--
+

--%>
+
+ 数字化施工管理信息平台
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
+
+ 忘记密码?
+
+ --%>
+
+
+
+
+
+
+
+
+
+
-
-
-
+
-
+
+
diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config
index 4bfb87b3..bcad937d 100644
--- a/SGGL/FineUIPro.Web/Web.config
+++ b/SGGL/FineUIPro.Web/Web.config
@@ -158,7 +158,7 @@
-
+
@@ -174,7 +174,7 @@
-
+
@@ -189,6 +189,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx
index d640ce72..556e0623 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx
@@ -1,16 +1,30 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="firstArticleInspection.aspx.cs" Inherits="FineUIPro.Web.ZHGL.FirstArticalInspaction.firstArticleInspection" %>
-
-
+
-
-
黑夜将至,而这一切都将消失!
+
-
+
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.cs
index a263a498..165bc47f 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.cs
@@ -7,11 +7,22 @@ using System.Web.UI.WebControls;
namespace FineUIPro.Web.ZHGL.FirstArticalInspaction
{
- public partial class firstArticleInspection : System.Web.UI.Page
+ public partial class firstArticleInspection : PageBase
{
+ public firstArticleInspection()
+ {
+ }
+
protected void Page_Load(object sender, EventArgs e)
{
-
+ if (!IsPostBack)
+ {
+ btnReset.OnClientClick = SimpleForm1.GetResetReference();
+ }
+ }
+ protected void btnSubmit_Click(object sender, EventArgs e)
+ {
+ labResult.Text = "用户名:" + tbxUserName.Text + " 密码:" + tbxPassword.Text;
}
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.designer.cs
index 662068ed..28d709c9 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/FirstArticleInspection.aspx.designer.cs
@@ -22,5 +22,68 @@ namespace FineUIPro.Web.ZHGL.FirstArticalInspaction
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.SimpleForm SimpleForm1;
+
+ ///
+ /// tbxUserName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox tbxUserName;
+
+ ///
+ /// tbxPassword 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox tbxPassword;
+
+ ///
+ /// btnSubmit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSubmit;
+
+ ///
+ /// btnReset 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnReset;
+
+ ///
+ /// labResult 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label labResult;
}
}
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx
index 45ab5463..6450e972 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx
@@ -5,12 +5,35 @@
-
大模型测试!
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.cs
index af43f11e..9f1fd17c 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.cs
@@ -4,14 +4,142 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using System.Diagnostics;
+using System.Net.Http;
+using System.Text;
+using System.Threading.Tasks;
+using System.Text.Json.Serialization;
+using NPOI.Util;
+using HeyRed.MarkdownSharp;
namespace FineUIPro.Web.ZHGL.FirstArticalInspaction
{
- public partial class LLM : System.Web.UI.Page
+ public partial class LLM : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
-
+
}
+
+ protected void TextBox2_TextChanged(object sender, EventArgs e)
+ {
+ var result = GetResult(TextBox2.Text);
+
+ var response = System.Text.Json.JsonSerializer.Deserialize
(result);
+
+ var finalResult = response.Output.Text;
+
+ Markdown mark = new Markdown();
+ string markdownResult = mark.Transform(finalResult);
+ Label1.Text = markdownResult;
+ }
+
+ private static readonly string API_KEY = "sk-Sbcnxh0YXz";
+ //不返回资料来源接口
+ private static readonly string URL = "https://dashscope.aliyuncs.com/api/v1/apps/7e0c1e47a6364f8e914982c99a1e00c5/completion";
+ //返回原始资料来源
+ private static readonly string URL2 = "https://dashscope.aliyuncs.com/api/v1/apps/d9461732646e49a38d7832d5c3eb8332/completion";
+ private static readonly string URL3 = "https://dashscope.aliyuncs.com/api/v1/apps/7e0c1e47a6364f8e914982c99a1e00c5/completion";
+
+ static String GetResult(string question)
+ {
+ var client = new LLM();
+ try
+ {
+ string result = client.GetCompletion(question);
+ Debug.WriteLine(result);
+ return result;
+ }
+ catch (Exception ex)
+ {
+ Debug.WriteLine($"发生错误: {ex.Message}");
+ return $"发生错误: {ex.Message}";
+ }
+ }
+
+ public string GetCompletion(string question)
+ {
+ using (var client = new HttpClient())
+ {
+ // 设置请求头
+ client.DefaultRequestHeaders.Add("Authorization", $"Bearer {API_KEY}");
+
+ // 构建请求体
+ var requestBody = new
+ {
+ input = new
+ {
+ prompt = question
+ },
+ parameters = new { },
+ debug = new { }
+ };
+
+ // 将对象序列化为 JSON
+ var jsonContent = System.Text.Json.JsonSerializer.Serialize(requestBody);
+ var content = new StringContent(jsonContent, Encoding.UTF8, "application/json");
+
+ try
+ {
+ // 发送 POST 请求
+ var response = client.PostAsync(URL, content).Result;
+
+ // 确保请求成功
+ response.EnsureSuccessStatusCode();
+
+ // 读取响应内容
+ return response.Content.ReadAsStringAsync().Result;
+ }
+ catch (HttpRequestException ex)
+ {
+ Console.WriteLine($"请求失败: {ex.Message}");
+ throw;
+ }
+ }
+ }
+
+
+ }
+
+ public class ResponseModel
+ {
+ [JsonPropertyName("output")]
+ public Output Output { get; set; }
+
+ [JsonPropertyName("usage")]
+ public Usage Usage { get; set; }
+
+ [JsonPropertyName("request_id")]
+ public string RequestId { get; set; }
+ }
+
+ public class Output
+ {
+ [JsonPropertyName("finish_reason")]
+ public string FinishReason { get; set; }
+
+ [JsonPropertyName("session_id")]
+ public string SessionId { get; set; }
+
+ [JsonPropertyName("text")]
+ public string Text { get; set; }
+ }
+
+ public class Usage
+ {
+ [JsonPropertyName("models")]
+ public List Models { get; set; }
+ }
+
+ public class Model
+ {
+ [JsonPropertyName("output_tokens")]
+ public int OutputTokens { get; set; }
+
+ [JsonPropertyName("model_id")]
+ public string ModelId { get; set; }
+
+ [JsonPropertyName("input_tokens")]
+ public int InputTokens { get; set; }
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.designer.cs
index be7d4b92..a56ab2f9 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/LLM.aspx.designer.cs
@@ -22,5 +22,50 @@ namespace FineUIPro.Web.ZHGL.FirstArticalInspaction
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel5;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label1;
+
+ ///
+ /// TextBox2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox TextBox2;
}
}
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx
index 8303e298..104308da 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx
@@ -1,17 +1,68 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZHJ_TEST.aspx.cs" Inherits="FineUIPro.Web.ZHGL.FirstArticalInspaction.ZHJ_TEST" %>
-
- 测试页面!
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx.cs
index 58024989..a4fcd464 100644
--- a/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/FirstArticalInspaction/ZHJ_TEST.aspx.cs
@@ -1,17 +1,64 @@
-using System;
+using BLL;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
-namespace FineUIPro.Web.ZHGL.FirstArticalInspaction
+namespace FineUIPro.Web.ZHGL.HSSESystem
{
- public partial class ZHJ_TEST : System.Web.UI.Page
+ public partial class ZHJ_TEST : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
+ if (!IsPostBack)
+ {
+ BindGrid();
+ }
+ }
+ void BindGrid()
+ {
+
+
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 过滤表头
+ ///
+ ///
+ ///
+ protected void Grid1_FilterChange(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+
+
+ }
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ protected void WindowAtt_Close(object sender, WindowCloseEventArgs e)
+ {
+ BindGrid();
}
}
-}
\ No newline at end of file
+
+}
+
diff --git a/SGGL/FineUIPro.Web/common/Menu_CQMS.xml b/SGGL/FineUIPro.Web/common/Menu_CQMS.xml
index 3f5becee..4b1843b4 100644
--- a/SGGL/FineUIPro.Web/common/Menu_CQMS.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_CQMS.xml
@@ -23,9 +23,8 @@
-
-
-
+
+
diff --git a/SGGL/FineUIPro.Web/packages.config b/SGGL/FineUIPro.Web/packages.config
index c1d67c90..2903a9c8 100644
--- a/SGGL/FineUIPro.Web/packages.config
+++ b/SGGL/FineUIPro.Web/packages.config
@@ -5,9 +5,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file