提交代码

This commit is contained in:
高飞 2025-06-09 11:31:55 +08:00
parent 25f117de1a
commit ea4dc8fd8f
4 changed files with 43 additions and 16 deletions

View File

@ -172,11 +172,13 @@ namespace BLL
#endregion
#region
public class uItem {
public class uItem
{
public string UserId { get; set; }
public string UnitId { get; set; }
}
public static void addUserAnUnitByProjectId(string projectid,string userid) {
public static void addUserAnUnitByProjectId(string projectid, string userid, string currUserId)
{
var AddProject_UserList = new List<Model.Project_User>();
var AddProject_Unit = new List<Model.Project_Unit>();
@ -203,9 +205,12 @@ namespace BLL
}
}
//添加创建人用户
if (userid != BLL.Const.GlyId && userid != currUserId)
{
uItem cm = new uItem();
cm.UserId = userid;
uItemList.Add(cm);
}
#endregion
#region

View File

@ -30,3 +30,25 @@ IP地址:::1
出错时间:05/27/2025 16:56:28
错误信息开始=====>
错误类型:XmlException
错误信息:名称不能以“<”字符(十六进制值 0x3C)开头。 第 14 行,位置 2。
错误堆栈:
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
在 System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
在 System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
在 System.Xml.XmlTextReaderImpl.ParseElement()
在 System.Xml.XmlTextReaderImpl.ParseElementContent()
在 System.Xml.XmlTextReaderImpl.Read()
在 System.Xml.XmlTextReader.Read()
在 System.Configuration.XmlUtil.CopyXmlNode(XmlUtilWriter utilWriter)
在 System.Configuration.XmlUtil.CopyElement(XmlUtilWriter utilWriter)
在 System.Configuration.XmlUtil.CopySection()
在 System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)
在 System.Configuration.BaseConfigurationRecord.ScanSections(XmlUtil xmlUtil)
在 System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
出错时间:06/09/2025 10:47:53
出错时间:06/09/2025 10:47:53

View File

@ -11,7 +11,7 @@
<FineUIPro DebugMode="false" Theme="Cupertino"/>
<appSettings>
<!--连接字符串-->
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
<!--系统名称-->
<add key="SystemName" value="诺必达焊接管理系统"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>

View File

@ -217,7 +217,7 @@ namespace FineUIPro.Web.common.BaseInfo
}
//给新项目新增默认参与用户中的配置,项目用户及项目单位
BLL.Sys_UserSettingsService.addUserAnUnitByProjectId(newProjectId, project.CreateManId);
BLL.Sys_UserSettingsService.addUserAnUnitByProjectId(newProjectId, project.CreateManId, this.CurrUser.UserId);
//if (project.ProjectSoft == "2")//当选择压力容器时,在新项目中增加制造分公司
//{