diff --git a/.vs/SGGL_SeDin_New.slnx/v18/.wsuo b/.vs/SGGL_SeDin_New.slnx/v18/.wsuo
index 4cdd93ea..47de7018 100644
Binary files a/.vs/SGGL_SeDin_New.slnx/v18/.wsuo and b/.vs/SGGL_SeDin_New.slnx/v18/.wsuo differ
diff --git a/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.backup.json b/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.backup.json
index 80b3ba54..3b455cb3 100644
--- a/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.backup.json
+++ b/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.backup.json
@@ -89,11 +89,11 @@
},
{
"$type": "Bookmark",
- "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
+ "Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
},
{
"$type": "Bookmark",
- "Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
+ "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
}
]
}
diff --git a/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.json b/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.json
index 1908baa2..3b455cb3 100644
--- a/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.json
+++ b/.vs/SGGL_SeDin_New.slnx/v18/DocumentLayout.json
@@ -90,6 +90,10 @@
{
"$type": "Bookmark",
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
+ },
+ {
+ "$type": "Bookmark",
+ "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}"
}
]
}
diff --git a/SGGL/.claude/settings.local.json b/SGGL/.claude/settings.local.json
new file mode 100644
index 00000000..395c4447
--- /dev/null
+++ b/SGGL/.claude/settings.local.json
@@ -0,0 +1,17 @@
+{
+ "permissions": {
+ "allow": [
+ "Bash(dotnet build:*)",
+ "Bash(dir:*)",
+ "Read(//c/Users/lipengfei/Desktop/**)",
+ "Bash(powershell:*)",
+ "Bash(csc:*)",
+ "Bash(IndependentExcelFiller.exe)",
+ "Bash(python:*)",
+ "Bash(cat:*)",
+ "Bash(pip install:*)"
+ ],
+ "deny": [],
+ "ask": []
+ }
+}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 9b2dcfea..4e1bdc5a 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -4816,6 +4816,10 @@ namespace BLL
/// 排产计划导出模板
///
public const string HJGL_ProductionSchedulingPlanPath = "File\\Excel\\DataOut\\排产计划导出模板.xlsx";
+ ///
+ /// 材料颜色标识导入模板
+ ///
+ public const string HJGL_MaterialColorDataImportPath = "File\\Excel\\DataIn\\管道颜色标识库导入模板.xlsx";
///
/// 试压包导入文件路径
diff --git a/SGGL/BLL/HSSE/CostGoods/CostManageService.cs b/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
index 1c9a0270..c5d8c450 100644
--- a/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
+++ b/SGGL/BLL/HSSE/CostGoods/CostManageService.cs
@@ -109,6 +109,7 @@ namespace BLL
newCostManage.CompileDate = costManage.CompileDate;
newCostManage.NextManId = costManage.NextManId;
db.SubmitChanges();
+
}
}
}
@@ -416,7 +417,7 @@ namespace BLL
headers.Add("Authorization", "Bearer " + accessToken);
#region 先获取当前费用是否已经推送过
var getRequestUrl = url + "/pu_api/payCraftAmountToHSE/get";
- var getRequestbody = $"{{\"projectNumber\":\"{projectModel.ProjectCode}\",\"contractNo\":\"{contractNum}\"}}";
+ var getRequestbody = $"{{\"projectNumber\":\"{projectModel.ContractNo}\",\"contractNo\":\"{contractNum}\"}}";
APICommonService.SaveSysHttpLog("PU_GetPuPayCraftAmount", getRequestUrl, getRequestbody, "Requset");
var getResponse = Funs.RequestPost(getRequestUrl, headers, getRequestbody);
APICommonService.SaveSysHttpLog("PU_GetPuPayCraftAmount", getRequestUrl, getResponse, "Response");
@@ -452,7 +453,7 @@ namespace BLL
{
new PuAddApiInput()
{
- projectNumber = projectModel.ProjectCode,
+ projectNumber = projectModel.ContractNo,
itemId= costManageId,
contractNo = contractNum,
amountHSE = contractModel.SumMoney.ToString(),
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index aa834918..7757fefe 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -16848,7 +16848,7 @@
True
0
/
- http://localhost:3001/
+ http://localhost:2999/
False
False
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx
index bd4c5b85..30291d97 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx
@@ -37,6 +37,30 @@
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.cs
index e5db270e..4607b2cc 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.cs
@@ -28,9 +28,33 @@ namespace FineUIPro.Web.HJGL.PreDesign
/// 绑定数据
///
private void BindGrid()
+ {
+ BindGrid(false);
+ }
+
+ ///
+ /// 绑定数据(带筛选参数)
+ ///
+ /// 是否应用筛选条件
+ private void BindGrid(bool isFilter)
{
Model.HJGL_TrainNumberManage table = new Model.HJGL_TrainNumberManage();
table.ProjectId = this.CurrUser.LoginProjectId;
+
+ // 应用筛选条件
+ if (isFilter)
+ {
+ if (!string.IsNullOrEmpty(txtTrainNumber.Text.Trim()))
+ {
+ table.TrainNumber = txtTrainNumber.Text.Trim();
+ }
+
+ if (!string.IsNullOrEmpty(ddlState.SelectedValue))
+ {
+ table.State = Convert.ToInt32(ddlState.SelectedValue);
+ }
+ }
+
var tb = BLL.TrainNumberManageService.GetListByQueryModle(table, Grid1.PageIndex+1, Grid1.PageSize);
Grid1.RecordCount = tb.Total;
Grid1.DataSource = tb.Data;
@@ -39,7 +63,54 @@ namespace FineUIPro.Web.HJGL.PreDesign
}
#endregion
+ #region 辅助方法
+ ///
+ /// 转换状态值
+ ///
+ /// 状态值
+ /// 状态文本
+ protected string ConvertState(object state)
+ {
+ if (state != null)
+ {
+ int stateValue = Convert.ToInt32(state);
+ switch (stateValue)
+ {
+ case 0: return "未发货";
+ case 1: return "已发货";
+ case 2: return "已验收";
+ default: return "";
+ }
+ }
+ return "";
+ }
+ #endregion
+
#region GV 数据操作
+ ///
+ /// 筛选按钮点击事件
+ ///
+ ///
+ ///
+ protected void btnFilter_Click(object sender, EventArgs e)
+ {
+ this.Grid1.PageIndex = 0; // 重置到第一页
+ this.BindGrid(true);
+ }
+
+ ///
+ /// 清除筛选按钮点击事件
+ ///
+ ///
+ ///
+ protected void btnClearFilter_Click(object sender, EventArgs e)
+ {
+ txtTrainNumber.Text = "";
+ ddlState.SelectedValue = "";
+ this.Grid1.PageIndex = 0; // 重置到第一页
+ this.BindGrid(false);
+ }
+
///
/// 过滤表头
///
@@ -209,15 +280,28 @@ namespace FineUIPro.Web.HJGL.PreDesign
车牌号 = x.LicensePlateNumber,
联系人姓名 = x.ContactName,
联系人电话 = x.ContactPhone,
+ 状态 = ConvertState(x.State),
+ 签收时间 = x.ReceiveDate?.ToString("g") ?? "",
备注 = x.Remark
});
+ // 根据筛选条件生成文件名
+ string fileName = "车次管理";
+ if (!string.IsNullOrEmpty(txtTrainNumber.Text.Trim()))
+ {
+ fileName += "-发货编号_" + txtTrainNumber.Text.Trim();
+ }
+ if (!string.IsNullOrEmpty(ddlState.SelectedValue))
+ {
+ fileName += "-状态_" + ddlState.SelectedItem.Text;
+ }
+ fileName += "-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now) + ".xlsx";
+
string path = Funs.RootPath + @"File\Excel\Temp\TrainNumberManager.xlsx";
path = path.Replace(".xlsx", string.Format("{0:yyyy-MM-dd}", DateTime.Now) + ".xlsx");
MiniExcel.SaveAs(path, q);
- string fileName = $"车次管理-" + string.Format("{0:yyyy-MM-dd}", DateTime.Now) + ".xlsx";
FileInfo info = new FileInfo(path);
long fileSize = info.Length;
System.Web.HttpContext.Current.Response.Clear();
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.designer.cs
index a4592435..1e456a77 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/TrainNumberManager.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.HJGL.PreDesign {
-
-
- public partial class TrainNumberManager {
-
+namespace FineUIPro.Web.HJGL.PreDesign
+{
+
+
+ public partial class TrainNumberManager
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// Grid1 控件。
///
@@ -47,7 +49,70 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
+ ///
+ /// ToolbarFilter 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar ToolbarFilter;
+
+ ///
+ /// ToolbarText2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText2;
+
+ ///
+ /// txtTrainNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTrainNumber;
+
+ ///
+ /// ToolbarText3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText3;
+
+ ///
+ /// ddlState 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlState;
+
+ ///
+ /// btnFilter 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnFilter;
+
+ ///
+ /// btnClearFilter 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClearFilter;
+
///
/// Toolbar2 控件。
///
@@ -56,7 +121,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// btnNew 控件。
///
@@ -65,7 +130,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnNew;
-
+
///
/// btnOut 控件。
///
@@ -74,7 +139,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnOut;
-
+
///
/// btnPrint 控件。
///
@@ -83,7 +148,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnPrint;
-
+
///
/// lblNumber 控件。
///
@@ -92,7 +157,16 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label lblNumber;
-
+
+ ///
+ /// lblState 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblState;
+
///
/// ToolbarSeparator1 控件。
///
@@ -101,7 +175,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -110,7 +184,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
@@ -119,7 +193,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList ddlPageSize;
-
+
///
/// Window1 控件。
///
@@ -128,7 +202,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window1;
-
+
///
/// Window2 控件。
///
@@ -137,7 +211,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window2;
-
+
///
/// Menu1 控件。
///
@@ -146,7 +220,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu1;
-
+
///
/// btnMenuEdit 控件。
///
@@ -155,7 +229,7 @@ namespace FineUIPro.Web.HJGL.PreDesign {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnMenuEdit;
-
+
///
/// btnMenuDelete 控件。
///
diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageAudit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageAudit.aspx.cs
index 7b1ec2bc..cd48ab82 100644
--- a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageAudit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageAudit.aspx.cs
@@ -1,4 +1,5 @@
using BLL;
+using FineUIPro.Web.SmartSite;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
@@ -218,6 +219,16 @@ namespace FineUIPro.Web.HSSE.CostGoods
getCost.NextManId = null;
getCost.States = BLL.Const.State_2;
BLL.CostManageService.UpdateCostManage(getCost);
+
+ string messaage = CostManageService.PushDataToHSE(this.CurrUser.LoginProjectId, getCost.ContractNum, getCost.CostManageId);
+ if (string.IsNullOrEmpty(messaage))
+ {
+ Alert.ShowInTop("推送成功!", MessageBoxIcon.Success);
+ }
+ else
+ {
+ Alert.ShowInTop(messaage, MessageBoxIcon.Warning);
+ }
}
}
diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageEdit.aspx b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageEdit.aspx
index 723a506a..31825c4d 100644
--- a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageEdit.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostManageEdit.aspx
@@ -31,7 +31,7 @@
<%--
--%>
-
+