This commit is contained in:
高飞 2025-07-24 16:43:15 +08:00
parent a1e84577ab
commit ea313cbbba
12 changed files with 83 additions and 12 deletions

View File

@ -0,0 +1,2 @@
alter table Weld_WeldInfo add IsLock bit null
GO

View File

@ -165,7 +165,7 @@ namespace BLL.API
if (!string.IsNullOrEmpty(unitStoreId))
{
q = (from x in db.Weld_WeldInfo
where (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.Amount ?? 0).Sum() - (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.UsingAmount ?? 0).Sum() > 0
where (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.Amount ?? 0).Sum() - (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == x.WeldId select y.UsingAmount ?? 0).Sum() > 0 && (x.IsLock == null || x.IsLock == false)
orderby x.WeldCode
select x).ToList();
}

View File

@ -35,6 +35,7 @@ namespace BLL
newWeld.WarnAmount = weld.WarnAmount;
newWeld.SteelType = weld.SteelType;
newWeld.CreateMan = weld.CreateMan;
newWeld.IsLock = weld.IsLock;
db.Weld_WeldInfo.InsertOnSubmit(newWeld);
db.SubmitChanges();
}
@ -57,6 +58,7 @@ namespace BLL
newWeld.WarnAmount = weld.WarnAmount;
newWeld.SteelType = weld.SteelType;
newWeld.ModifyMan = weld.ModifyMan;
newWeld.IsLock = weld.IsLock;
db.SubmitChanges();
}
}

View File

@ -61,3 +61,21 @@ IP地址:::1
出错时间:07/08/2025 16:56:56
出错时间:07/08/2025 16:56:56
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 FineUIPro.Web._default.Page_Init(Object sender, EventArgs e) 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\default.aspx.cs:行号 114
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnInit(EventArgs e)
在 System.Web.UI.Page.OnInit(EventArgs e)
在 FineUIPro.Web.PageBase.OnInit(EventArgs e) 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\common\PageBase.cs:行号 135
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:07/24/2025 16:12:09
出错文件:http://localhost:64304/default.aspx
IP地址:::1
出错时间:07/24/2025 16:12:09

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

@ -124,6 +124,7 @@
<f:NumberBox ID="txtWarnAmount" runat="server" Label="最低警示数量" LabelAlign="Right"
NoNegative="true" NoDecimal="false" LabelWidth="140px">
</f:NumberBox>
<f:CheckBox runat="server" ID="cbIsLock" Label="冻结" LabelWidth="140px" LabelAlign="Right"></f:CheckBox>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">

View File

@ -274,6 +274,14 @@ namespace FineUIPro.Web.WeldMat.BaseInfo
{
this.txtWarnAmount.Text = weldInfo.WarnAmount.ToString();
}
if (weldInfo.IsLock == true)
{
this.cbIsLock.Checked = true;
}
else
{
this.cbIsLock.Checked = false;
}
hfFormID.Text = Id;
this.btnDelete.Enabled = true;
}
@ -348,7 +356,14 @@ namespace FineUIPro.Web.WeldMat.BaseInfo
//{
// weld.WarnAmount = 20;
//}
if (this.cbIsLock.Checked)
{
weld.IsLock = true;
}
else
{
weld.IsLock = null;
}
if (string.IsNullOrEmpty(strRowID))
{
strRowID = SQLHelper.GetNewID(typeof(Model.Weld_WeldInfo));

View File

@ -210,6 +210,15 @@ namespace FineUIPro.Web.WeldMat.BaseInfo {
/// </remarks>
protected global::FineUIPro.NumberBox txtWarnAmount;
/// <summary>
/// cbIsLock 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBox cbIsLock;
/// <summary>
/// Toolbar1 控件。
/// </summary>

View File

@ -53,7 +53,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
WeldType.WeldTypeName,WeldType.WeldUnit
FROM dbo.Weld_WeldInfo weld
LEFT JOIN Weld_WeldType AS weldType ON weldType.WeldTypeId =weld.WeldTypeId
WHERE 1 = 1
WHERE 1 = 1 and (weld.IsLock is null or weld.IsLock=0)
and (select (SUM(ISNULL(stockIn.Amount,0))-SUM(ISNULL(stockIn.UsingAmount,0))) from Weld_StockIn stockIn where UnitStoreId=@UnitStoreId and WeldId=weld.WeldId)>0";
List<SqlParameter> listStr = new List<SqlParameter>();
//listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));

View File

@ -211,7 +211,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.Weld_WeldInfo
where (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == usingPlan.WeldId select y.Amount ?? 0).Sum() - (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == usingPlan.WeldId select y.UsingAmount ?? 0).Sum() > 0
where (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == usingPlan.WeldId select y.Amount ?? 0).Sum() - (from y in db.Weld_StockIn where y.UnitStoreId == unitStoreId && y.WeldId == usingPlan.WeldId select y.UsingAmount ?? 0).Sum() > 0 && (x.IsLock == null || x.IsLock == false)
orderby x.WeldCode
select x;
if (q.Count() == 0)

View File

@ -113974,6 +113974,8 @@ namespace Model
private string _ModifyMan;
private System.Nullable<bool> _IsLock;
private EntitySet<Weld_ProjectPlan> _Weld_ProjectPlan;
private EntitySet<Weld_RecycleMat> _Weld_RecycleMat;
@ -114012,6 +114014,8 @@ namespace Model
partial void OnCreateManChanged();
partial void OnModifyManChanging(string value);
partial void OnModifyManChanged();
partial void OnIsLockChanging(System.Nullable<bool> value);
partial void OnIsLockChanged();
#endregion
public Weld_WeldInfo()
@ -114230,6 +114234,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsLock", DbType="Bit")]
public System.Nullable<bool> IsLock
{
get
{
return this._IsLock;
}
set
{
if ((this._IsLock != value))
{
this.OnIsLockChanging(value);
this.SendPropertyChanging();
this._IsLock = value;
this.SendPropertyChanged("IsLock");
this.OnIsLockChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_ProjectPlan_Weld_WeldInfo", Storage="_Weld_ProjectPlan", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
public EntitySet<Weld_ProjectPlan> Weld_ProjectPlan
{

View File

@ -79,13 +79,13 @@
<publishTime>09/10/2013 16:29:20</publishTime>
</File>
<File Include="bin/BLL.dll">
<publishTime>07/24/2025 10:18:37</publishTime>
<publishTime>07/24/2025 16:36:52</publishTime>
</File>
<File Include="bin/BLL.dll.config">
<publishTime>07/03/2024 11:01:05</publishTime>
</File>
<File Include="bin/BLL.pdb">
<publishTime>07/24/2025 10:18:37</publishTime>
<publishTime>07/24/2025 16:36:52</publishTime>
</File>
<File Include="bin/BouncyCastle.Crypto.dll">
<publishTime>12/17/2020 21:32:28</publishTime>
@ -115,10 +115,10 @@
<publishTime>07/25/2012 11:48:56</publishTime>
</File>
<File Include="bin/Model.dll">
<publishTime>07/24/2025 10:18:37</publishTime>
<publishTime>07/24/2025 16:36:51</publishTime>
</File>
<File Include="bin/Model.pdb">
<publishTime>07/24/2025 10:18:37</publishTime>
<publishTime>07/24/2025 16:36:51</publishTime>
</File>
<File Include="bin/Newtonsoft.Json.dll">
<publishTime>02/18/2018 09:44:54</publishTime>
@ -316,10 +316,10 @@
<publishTime>02/01/2018 12:20:56</publishTime>
</File>
<File Include="bin/WebAPI.dll">
<publishTime>07/24/2025 10:18:40</publishTime>
<publishTime>07/24/2025 16:36:53</publishTime>
</File>
<File Include="bin/WebAPI.pdb">
<publishTime>07/24/2025 10:18:40</publishTime>
<publishTime>07/24/2025 16:36:53</publishTime>
</File>
<File Include="bin/WebGrease.dll">
<publishTime>01/23/2014 13:57:34</publishTime>
@ -445,7 +445,7 @@
<publishTime>07/03/2024 11:01:07</publishTime>
</File>
<File Include="Web.config">
<publishTime>07/24/2025 10:18:55</publishTime>
<publishTime>07/24/2025 16:37:05</publishTime>
</File>
</ItemGroup>
</Project>