20260720 领料计划新增默认加载上次保存记录

This commit is contained in:
2026-07-20 15:12:51 +08:00
parent 0669a169f0
commit 0f566a692a
8 changed files with 1254 additions and 49 deletions
@@ -0,0 +1,150 @@
UPDATE t1
SET t1.ProessTypes = t2.ProessTypes
FROM [dbo].[HJGL_CH_HotProessTrustItem] t1
INNER JOIN [dbo].[HJGL_PW_JointInfo] t2
ON (t1.JOT_ID = t2.JOT_ID and t1.ProessTypes <> t2.ProessTypes)
go
ALTER PROCEDURE [dbo].[HJGL_spCH_HotProessTrustItem]
(
@HotProessTrustId nvarchar(50),
@ProessTypes nvarchar(50)=null
)
AS
--通过检测id获取委托单信息
BEGIN
SELECT
HotProessTrustId,ISO_IsoNo,JOT_JointNo,JOT_JointDesc,STE_Code,Sort1,Sort2,Sort3,Sort4,Sort5,ProessTypes
--STUFF(
-- (
-- SELECT '+' + CASE
-- WHEN t.ProessTypes = '1' THEN '预热'
-- WHEN t.ProessTypes = '2' THEN '消氢'
-- WHEN t.ProessTypes = '3' THEN '后热'
-- WHEN t.ProessTypes = '4' THEN '消应力热处理'
-- WHEN t.ProessTypes = '5' THEN '稳定化处理'
-- ELSE ''
-- END
-- FROM HJGL_View_CH_HotProessTrustItem t
-- WHERE
-- t.HotProessTrustId = TrustItem.HotProessTrustId
-- AND t.ISO_IsoNo = TrustItem.ISO_IsoNo
-- AND t.JOT_JointNo = TrustItem.JOT_JointNo
-- AND t.JOT_JointDesc = TrustItem.JOT_JointDesc
-- AND t.STE_Code = TrustItem.STE_Code
-- AND t.Sort1 = TrustItem.Sort1
-- AND t.Sort2 = TrustItem.Sort2
-- AND t.Sort3 = TrustItem.Sort3
-- AND t.Sort4 = TrustItem.Sort4
-- AND t.Sort5 = TrustItem.Sort5
-- ORDER BY t.ProessTypes -- 按 ProessTypes 排序拼接
-- FOR XML PATH(''), TYPE
-- ).value('.', 'NVARCHAR(MAX)'),
-- 1, 1, '' -- 去掉开头的 '+'
--) AS ProessTypes
FROM HJGL_View_CH_HotProessTrustItem TrustItem
WHERE
HotProessTrustId=@HotProessTrustId
and (ProessTypes like '%'+@ProessTypes+'%' or @ProessTypes is null)
GROUP BY
HotProessTrustId,ISO_IsoNo,JOT_JointNo,JOT_JointDesc,STE_Code,Sort1,Sort2,Sort3,Sort4,Sort5,ProessTypes
union
select '99999999' as Number,'以下空白' AS ISO_IsoNo,null,null,null,null,null,null,null,null,null
ORDER BY ISO_IsoNo,JOT_JointNo,Sort1,Sort2,Sort3,Sort4,Sort5,ProessTypes
end
GO
CREATE TABLE [dbo].[Weld_UsingPlan_Temp](
[UsingPlanTempId] [nvarchar](50) NOT NULL,
[WeldId] [nvarchar](50) NULL,
[ProjectId] [nvarchar](50) NULL,
[Jot_ID] [nvarchar](50) NULL,
[Amount] [decimal](9, 3) NULL,
[UsingManOne] [nvarchar](50) NULL,
[UsingManTwo] [nvarchar](50) NULL,
[InPutDate] [datetime] NULL,
[CancelDate] [datetime] NULL,
[IsCancel] [bit] NULL,
[IsFinish] [bit] NULL,
[FinishMan] [nvarchar](50) NULL,
[OrderTime] [nvarchar](50) NULL,
[OrderDate] [datetime] NULL,
[CancelResult] [nvarchar](100) NULL,
[IsSubmit] [bit] NULL,
[UsePosition] [nvarchar](50) NULL,
[UsingUnit] [nvarchar](50) NULL,
[TeamGroupId] [nvarchar](50) NULL,
[STE_ID] [nvarchar](500) NULL,
[STE_Name] [nvarchar](500) NULL,
[IsNeedConfirm] [bit] NULL,
[InPutMan] [nvarchar](50) NULL,
[IsSteelStru] [bit] NULL,
[Type] [char](1) NULL,
[UnitStoreId] [nvarchar](50) NULL,
CONSTRAINT [PK_Weld_UsingPlan_Temp] PRIMARY KEY CLUSTERED
(
[UsingPlanTempId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Weld_UsingPlan_Temp] WITH CHECK ADD CONSTRAINT [FK_Weld_UsingPlan_Temp_Weld_WeldInfo] FOREIGN KEY([WeldId])
REFERENCES [dbo].[Weld_WeldInfo] ([WeldId])
GO
ALTER TABLE [dbo].[Weld_UsingPlan_Temp] CHECK CONSTRAINT [FK_Weld_UsingPlan_Temp_Weld_WeldInfo]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'UsingPlanTempId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊材ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'WeldId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'焊缝' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'Jot_ID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'Amount'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'第一领料人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'UsingManOne'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'第二领料人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'UsingManTwo'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'录入时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'InPutDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'作废时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'CancelDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否作废' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'IsCancel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'结束人指保管员' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'FinishMan'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'预约领料时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'OrderTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'预约日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'OrderDate'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'作废原因' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'CancelResult'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否提交' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp', @level2type=N'COLUMN',@level2name=N'IsSubmit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'领料计划录入临时表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Weld_UsingPlan_Temp'
GO
+1
View File
@@ -330,6 +330,7 @@
<Compile Include="WeldMat\Stock\StockInitService.cs" />
<Compile Include="WeldMat\Stock\StockInService.cs" />
<Compile Include="WeldMat\UsingPlan\UsingPlanService.cs" />
<Compile Include="WeldMat\UsingPlan\UsingPlanTempService.cs" />
<Compile Include="WeldMat\UsingSentMat\UsingMatService.cs" />
<Compile Include="WeldMat\WeldMatDataBase\BakeRecordsService.cs" />
<Compile Include="WeldMat\WeldMatDataBase\TemperatureAndHumidityService.cs" />
@@ -0,0 +1,104 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BLL
{
/// <summary>
/// 领料计划临时表
/// </summary>
public class UsingPlanTempService
{
public static Model.Weld_UsingPlan_Temp GetUsingPlanTempByUserId(string inputMan)
{
return Funs.DB.Weld_UsingPlan_Temp.FirstOrDefault(e => e.InPutMan== inputMan);
}
/// <summary>
/// 增加领料计划
/// </summary>
/// <param name="usingPlan"></param>
public static void AddUsingPlan(Model.Weld_UsingPlan_Temp usingPlan)
{
Model.SGGLDB db = Funs.DB;
Model.Weld_UsingPlan_Temp newUsingPlan = new Model.Weld_UsingPlan_Temp();
newUsingPlan.UsingPlanTempId = usingPlan.UsingPlanTempId;
newUsingPlan.WeldId = usingPlan.WeldId;
newUsingPlan.ProjectId = usingPlan.ProjectId;
newUsingPlan.UsePosition = usingPlan.UsePosition;
newUsingPlan.TeamGroupId = usingPlan.TeamGroupId;
newUsingPlan.STE_ID = usingPlan.STE_ID;
newUsingPlan.STE_Name = usingPlan.STE_Name;
newUsingPlan.Amount = usingPlan.Amount;
newUsingPlan.UsingUnit = usingPlan.UsingUnit;
newUsingPlan.UsingManOne = usingPlan.UsingManOne;
newUsingPlan.UsingManTwo = usingPlan.UsingManTwo;
newUsingPlan.InPutDate = usingPlan.InPutDate;
newUsingPlan.OrderDate = usingPlan.OrderDate;
newUsingPlan.OrderTime = usingPlan.OrderTime;
newUsingPlan.CancelDate = usingPlan.CancelDate;
newUsingPlan.IsCancel = usingPlan.IsCancel;
newUsingPlan.CancelResult = usingPlan.CancelResult;
newUsingPlan.IsSubmit = usingPlan.IsSubmit;
newUsingPlan.InPutMan = usingPlan.InPutMan;
newUsingPlan.IsSteelStru = usingPlan.IsSteelStru;
newUsingPlan.Type = usingPlan.Type;
newUsingPlan.UnitStoreId = usingPlan.UnitStoreId;
db.Weld_UsingPlan_Temp.InsertOnSubmit(newUsingPlan);
db.SubmitChanges();
}
/// <summary>
/// 修改领料计划
/// </summary>
/// <param name="usingPlan"></param>
public static void UpdateUsingPlan(Model.Weld_UsingPlan_Temp usingPlan)
{
Model.SGGLDB db = Funs.DB;
Model.Weld_UsingPlan_Temp newUsingPlan = db.Weld_UsingPlan_Temp.FirstOrDefault(e => e.UsingPlanTempId == usingPlan.UsingPlanTempId);
if (newUsingPlan != null)
{
newUsingPlan.WeldId = usingPlan.WeldId;
newUsingPlan.ProjectId = usingPlan.ProjectId;
newUsingPlan.UsePosition = usingPlan.UsePosition;
newUsingPlan.TeamGroupId = usingPlan.TeamGroupId;
newUsingPlan.STE_ID = usingPlan.STE_ID;
newUsingPlan.STE_Name = usingPlan.STE_Name;
newUsingPlan.Amount = usingPlan.Amount;
newUsingPlan.UsingManOne = usingPlan.UsingManOne;
newUsingPlan.UsingManTwo = usingPlan.UsingManTwo;
newUsingPlan.UsingUnit = usingPlan.UsingUnit;
newUsingPlan.InPutDate = usingPlan.InPutDate;
newUsingPlan.OrderDate = usingPlan.OrderDate;
newUsingPlan.OrderTime = usingPlan.OrderTime;
newUsingPlan.CancelDate = usingPlan.CancelDate;
newUsingPlan.IsCancel = usingPlan.IsCancel;
newUsingPlan.CancelResult = usingPlan.CancelResult;
newUsingPlan.IsSubmit = usingPlan.IsSubmit;
newUsingPlan.InPutMan = usingPlan.InPutMan;
newUsingPlan.IsSteelStru = usingPlan.IsSteelStru;
newUsingPlan.UnitStoreId = usingPlan.UnitStoreId;
db.SubmitChanges();
}
}
/// <summary>
/// 根据用户id删除相关临时表
/// </summary>
/// <param name="projectId"></param>
/// <param name="userId"></param>
public static void DeleteUsingPlanTempByUserId(string inputMan)
{
var q = (from x in Funs.DB.Weld_UsingPlan_Temp where x.InPutMan== inputMan select x).ToList();
if (q.Count > 0)
{
Funs.DB.Weld_UsingPlan_Temp.DeleteAllOnSubmit(q);
Funs.DB.SubmitChanges();
}
}
}
}
@@ -86,17 +86,16 @@ namespace FineUIPro.Web.HJGL.HotProessManage
var joints = allJoints.Where(x => x.ISO_ID == item.ISO_ID);
foreach (var joint in joints)
{
if (!string.IsNullOrEmpty(joint.ProessTypes))
{
string[] proessTypes = joint.ProessTypes.Split('|');
for (int i = 0; i < proessTypes.Length; i++)
{
//if (!string.IsNullOrEmpty(joint.ProessTypes))
//{
//string[] proessTypes = joint.ProessTypes.Split('|');
//for (int i = 0; i < proessTypes.Length; i++)
//{
Model.HJGL_CH_HotProessTrustItem newItem = new Model.HJGL_CH_HotProessTrustItem();
newItem.HotProessTrustId = HotProessTrustId;
newItem.ISO_ID = joint.ISO_ID;
newItem.JOT_ID = joint.JOT_ID;
newItem.ProessTypes = proessTypes[i];
newItem.ProessTypes = joint.ProessTypes;//proessTypes[i];
newItem.TrustDate = DateTime.Now;
newItem.Remark = string.Empty;
newItem.HotProessTrustItemId = SQLHelper.GetNewID(typeof(Model.HJGL_CH_HotProessTrustItem));
@@ -108,8 +107,8 @@ namespace FineUIPro.Web.HJGL.HotProessManage
hotProessResult.ProessTypes = newItem.ProessTypes;
hotProessResult.HotProessResultId = SQLHelper.GetNewID(typeof(Model.HJGL_CH_HotProessResult));
hotProessResults.Add(hotProessResult);
}
}
//}
//}
}
}
db.HJGL_CH_HotProessTrust.InsertAllOnSubmit(trusts);
@@ -508,8 +507,8 @@ namespace FineUIPro.Web.HJGL.HotProessManage
}
if (this.drpProessTypes.SelectedValue != BLL.Const._Null)
{
strSql += @" and Trust.ProessTypes=@ProessTypes ";
listStr.Add(new SqlParameter("@ProessTypes", this.drpProessTypes.SelectedValue));
strSql += @" and Trust.ProessTypes like @ProessTypes ";
listStr.Add(new SqlParameter("@ProessTypes", "%" + this.drpProessTypes.SelectedValue + "%"));
}
if (!string.IsNullOrEmpty(this.txtIsoNo.Text.Trim()))
{
@@ -878,7 +877,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
newRows["JOT_JointNo"] = row["JOT_JointNo"].ToString();
newRows["JOT_JointDesc"] = row["JOT_JointDesc"].ToString();
newRows["STE_Code"] = row["STE_Code"].ToString();
newRows["ProessTypes"] = row["ProessTypes"].ToString();
newRows["ProessTypes"] = ConvertProessTypes(row["ProessTypes"].ToString());
dt2.Rows.Add(newRows);
i++;
}
@@ -127,6 +127,9 @@
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnClear" Icon="SystemSave" runat="server" Text="清空" ToolTip="清空文本框内容" ValidateForms="Form2"
OnClick="btnClear_Click">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="暂存" ValidateForms="Form2"
OnClick="btnSave_Click">
</f:Button>
@@ -200,11 +200,142 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
}
else
{
this.txtInPutDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtOrderDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
initText();
//this.txtInPutDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
//this.txtOrderDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
}
/// <summary>
/// 默认加载当前登录人上次保存的数据记录
/// </summary>
/// <exception cref="NotImplementedException"></exception>
private void initText()
{
var temp = BLL.UsingPlanTempService.GetUsingPlanTempByUserId(this.CurrUser.UserId);
if (temp != null)
{
if (!string.IsNullOrEmpty(temp.WeldId))
{
this.hdWeldId.Text = temp.WeldId;
if (!string.IsNullOrEmpty(temp.UnitStoreId))
{
this.drpUnitStore.SelectedValue = temp.UnitStoreId;
}
var weld = BLL.WeldInfoService.GetWeldInfoById(temp.WeldId);
if (weld != null)
{
this.txtWeldName.Text = weld.WeldName;
this.txtWeldSpec.Text = weld.WeldSpec;
txtWeldCode.Text = weld.WeldCode;
if (!string.IsNullOrEmpty(weld.WeldTypeId))
{
var weldType = BLL.WeldTypeService.GetWeldTypeById(weld.WeldTypeId);
if (weldType != null)
{
if (weldType.WeldTypeName == "焊条" || weldType.WeldTypeName == "焊丝")
{
this.txtAmount.Label = "数量(根)";
}
else
{
this.txtAmount.Label = "数量(Kg)";
}
}
}
}
if (!string.IsNullOrEmpty(temp.ProjectId))
{
this.drpProjectId.SelectedValue = temp.ProjectId;
var position = from x in Funs.DB.View_UsePosition
where x.ProjectId == temp.ProjectId
select x;
if (position.Count() > 0)
{
this.drpUsePosition.Items.Clear();
this.drpUsePosition.DataValueField = "UsePosition";
this.drpUsePosition.DataTextField = "UsePosition";
this.drpUsePosition.DataSource = position;
this.drpUsePosition.DataBind();
Funs.FineUIPleaseSelect(this.drpUsePosition);
if (!string.IsNullOrEmpty(temp.UsePosition))
{
this.drpUsePosition.SelectedValue = temp.UsePosition;
}
}
else
{
this.drpUsePosition.Items.Clear();
Funs.FineUIPleaseSelect(this.drpUsePosition);
}
if (!string.IsNullOrEmpty(temp.UsingUnit))
{
this.drpUsingUnit.SelectedValue = temp.UsingUnit;
}
if (!string.IsNullOrEmpty(temp.TeamGroupId))
{
this.drpTeamGroup.SelectedValue = temp.TeamGroupId;
}
}
if (temp.Amount.HasValue)
{
this.txtAmount.Text = temp.Amount.ToString();
}
if (temp.InPutDate.HasValue)
{
this.txtInPutDate.Text = string.Format("{0:yyyy-MM-dd}", temp.InPutDate);
}
if (temp.OrderDate.HasValue)
{
this.txtOrderDate.Text = string.Format("{0:yyyy-MM-dd}", temp.OrderDate);
}
if (!string.IsNullOrEmpty(temp.OrderTime))
{
this.drpOrderTime.SelectedValue = temp.OrderTime;
}
if (temp.CancelDate.HasValue)
{
this.txtCancelDate.Text = string.Format("{0:yyyy-MM-dd}", temp.CancelDate);
}
if (temp.IsSteelStru == true)
{
drpIsSteelStru.SelectedValue = "1";
}
else
{
drpIsSteelStru.SelectedValue = "0";
}
txtCancelResult.Text = temp.CancelResult;
this.rblIsCancel.SelectedValue = (temp.IsCancel == true ? "true" : "false");
if (!string.IsNullOrEmpty(temp.UsingManOne))
{
this.hdUsingMan1.Text = temp.UsingManOne;
var welder = BLL.HJGL_PersonManageService.GetWelderByWenId(temp.UsingManOne);
if (welder != null)
{
this.txtUsingManOne.Text = welder.WED_Name;
}
}
if (!string.IsNullOrEmpty(temp.STE_ID))
{
drpSheet.SelectedValueArray = temp.STE_ID.Split(',');
}
}
}
else
{
this.txtInPutDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtOrderDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
#endregion
#region
@@ -490,6 +621,33 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
// }
//}
#endregion
#region
BLL.UsingPlanTempService.DeleteUsingPlanTempByUserId(this.CurrUser.UserId);
Model.Weld_UsingPlan_Temp newTemp = new Model.Weld_UsingPlan_Temp();
newTemp.UsingPlanTempId = SQLHelper.GetNewID(typeof(Model.Weld_UsingPlan_Temp));
newTemp.UnitStoreId = usingPlan.UnitStoreId;
newTemp.WeldId = usingPlan.WeldId;
newTemp.ProjectId = usingPlan.ProjectId;
newTemp.UsePosition = usingPlan.UsePosition;
newTemp.UsingUnit = usingPlan.UsingUnit;
newTemp.STE_ID = usingPlan.STE_ID;
newTemp.STE_Name = usingPlan.STE_Name;
newTemp.Amount = usingPlan.Amount;
newTemp.UsingManOne = usingPlan.UsingManOne;
newTemp.InPutDate = DateTime.Now;
newTemp.OrderDate = DateTime.Now;
newTemp.OrderTime = usingPlan.OrderTime;
newTemp.TeamGroupId = usingPlan.TeamGroupId;
newTemp.CancelDate = usingPlan.CancelDate;
newTemp.IsCancel = usingPlan.IsCancel;
newTemp.CancelResult = usingPlan.CancelResult;
newTemp.IsSubmit= usingPlan.IsSubmit;
newTemp.InPutMan = CurrUser.UserId;
newTemp.Type = "1";
newTemp.IsSteelStru = usingPlan.IsSteelStru;
BLL.UsingPlanTempService.AddUsingPlan(newTemp);
#endregion
if (isSubmit == true)
{
ShowNotify("提交成功!", MessageBoxIcon.Success);
@@ -801,5 +959,42 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
// }
//}
#endregion
/// <summary>
/// 清空文本框内容
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnClear_Click(object sender, EventArgs e)
{
drpProjectId.SelectedValue = BLL.Const._Null;
drpUnitStore.SelectedValue = BLL.Const._Null;
txtWeldName.Text = string.Empty;
txtWeldSpec.Text = string.Empty;
txtWeldCode.Text = string.Empty;
var unit = BLL.Base_UnitService.GetAllUnitList();
this.drpUsingUnit.Items.Clear();
this.drpUsingUnit.DataValueField = "UnitId";
this.drpUsingUnit.DataTextField = "UnitName";
this.drpUsingUnit.DataSource = unit;
this.drpUsingUnit.DataBind();
Funs.FineUIPleaseSelect(this.drpUsingUnit);
this.drpUsingUnit.SelectedValue = this.CurrUser.UnitId;
this.drpUsePosition.Items.Clear();
Funs.FineUIPleaseSelect(this.drpUsePosition);
drpIsSteelStru.SelectedValue = "1";
txtUsingManOne.Text = string.Empty;
drpTeamGroup.SelectedValue = BLL.Const._Null;
txtAmount.Text = string.Empty;
txtInPutDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
txtOrderDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
drpOrderTime.SelectedValue = BLL.Const._Null;
drpSheet.SelectedValue = BLL.Const._Null;
rblIsCancel.SelectedValue = "false";
txtCancelDate.Text = string.Empty;
txtCancelResult.Text = string.Empty;
}
}
}
@@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.WeldMat.UsingPlan {
public partial class UsingPlanEdit {
namespace FineUIPro.Web.WeldMat.UsingPlan
{
public partial class UsingPlanEdit
{
/// <summary>
/// form1 控件。
/// </summary>
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Form2 控件。
/// </summary>
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form Form2;
/// <summary>
/// hdWeldId 控件。
/// </summary>
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdWeldId;
/// <summary>
/// hdUsingMan1 控件。
/// </summary>
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdUsingMan1;
/// <summary>
/// drpProjectId 控件。
/// </summary>
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpProjectId;
/// <summary>
/// drpUnitStore 控件。
/// </summary>
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitStore;
/// <summary>
/// txtWeldName 控件。
/// </summary>
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWeldName;
/// <summary>
/// btnSelect 控件。
/// </summary>
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSelect;
/// <summary>
/// txtWeldSpec 控件。
/// </summary>
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWeldSpec;
/// <summary>
/// txtWeldCode 控件。
/// </summary>
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWeldCode;
/// <summary>
/// drpUsingUnit 控件。
/// </summary>
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUsingUnit;
/// <summary>
/// drpUsePosition 控件。
/// </summary>
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUsePosition;
/// <summary>
/// drpIsSteelStru 控件。
/// </summary>
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpIsSteelStru;
/// <summary>
/// txtUsingManOne 控件。
/// </summary>
@@ -146,7 +148,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUsingManOne;
/// <summary>
/// btnSelectUsingMan 控件。
/// </summary>
@@ -155,7 +157,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSelectUsingMan;
/// <summary>
/// drpTeamGroup 控件。
/// </summary>
@@ -164,7 +166,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpTeamGroup;
/// <summary>
/// txtAmount 控件。
/// </summary>
@@ -173,7 +175,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtAmount;
/// <summary>
/// txtInPutDate 控件。
/// </summary>
@@ -182,7 +184,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtInPutDate;
/// <summary>
/// txtOrderDate 控件。
/// </summary>
@@ -191,7 +193,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtOrderDate;
/// <summary>
/// drpOrderTime 控件。
/// </summary>
@@ -200,7 +202,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpOrderTime;
/// <summary>
/// drpSheet 控件。
/// </summary>
@@ -209,7 +211,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpSheet;
/// <summary>
/// rblIsCancel 控件。
/// </summary>
@@ -218,7 +220,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.RadioButtonList rblIsCancel;
/// <summary>
/// txtCancelDate 控件。
/// </summary>
@@ -227,7 +229,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtCancelDate;
/// <summary>
/// txtCancelResult 控件。
/// </summary>
@@ -236,7 +238,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCancelResult;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@@ -245,7 +247,16 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// btnClear 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClear;
/// <summary>
/// btnSave 控件。
/// </summary>
@@ -254,7 +265,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnSubmit 控件。
/// </summary>
@@ -263,7 +274,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSubmit;
/// <summary>
/// btnClose 控件。
/// </summary>
@@ -272,7 +283,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
/// <summary>
/// Window1 控件。
/// </summary>
@@ -281,7 +292,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
+742
View File
@@ -704,6 +704,9 @@ namespace Model
partial void InsertWeld_UsingPlan(Weld_UsingPlan instance);
partial void UpdateWeld_UsingPlan(Weld_UsingPlan instance);
partial void DeleteWeld_UsingPlan(Weld_UsingPlan instance);
partial void InsertWeld_UsingPlan_Temp(Weld_UsingPlan_Temp instance);
partial void UpdateWeld_UsingPlan_Temp(Weld_UsingPlan_Temp instance);
partial void DeleteWeld_UsingPlan_Temp(Weld_UsingPlan_Temp instance);
partial void InsertWeld_WeldInfo(Weld_WeldInfo instance);
partial void UpdateWeld_WeldInfo(Weld_WeldInfo instance);
partial void DeleteWeld_WeldInfo(Weld_WeldInfo instance);
@@ -3059,6 +3062,14 @@ namespace Model
}
}
public System.Data.Linq.Table<Weld_UsingPlan_Temp> Weld_UsingPlan_Temp
{
get
{
return this.GetTable<Weld_UsingPlan_Temp>();
}
}
public System.Data.Linq.Table<Weld_View_ReleaseRecovery> Weld_View_ReleaseRecovery
{
get
@@ -141539,6 +141550,709 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Weld_UsingPlan_Temp")]
public partial class Weld_UsingPlan_Temp : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _UsingPlanTempId;
private string _WeldId;
private string _ProjectId;
private string _Jot_ID;
private System.Nullable<decimal> _Amount;
private string _UsingManOne;
private string _UsingManTwo;
private System.Nullable<System.DateTime> _InPutDate;
private System.Nullable<System.DateTime> _CancelDate;
private System.Nullable<bool> _IsCancel;
private System.Nullable<bool> _IsFinish;
private string _FinishMan;
private string _OrderTime;
private System.Nullable<System.DateTime> _OrderDate;
private string _CancelResult;
private System.Nullable<bool> _IsSubmit;
private string _UsePosition;
private string _UsingUnit;
private string _TeamGroupId;
private string _STE_ID;
private string _STE_Name;
private System.Nullable<bool> _IsNeedConfirm;
private string _InPutMan;
private System.Nullable<bool> _IsSteelStru;
private string _Type;
private string _UnitStoreId;
private EntityRef<Weld_WeldInfo> _Weld_WeldInfo;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnUsingPlanTempIdChanging(string value);
partial void OnUsingPlanTempIdChanged();
partial void OnWeldIdChanging(string value);
partial void OnWeldIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnJot_IDChanging(string value);
partial void OnJot_IDChanged();
partial void OnAmountChanging(System.Nullable<decimal> value);
partial void OnAmountChanged();
partial void OnUsingManOneChanging(string value);
partial void OnUsingManOneChanged();
partial void OnUsingManTwoChanging(string value);
partial void OnUsingManTwoChanged();
partial void OnInPutDateChanging(System.Nullable<System.DateTime> value);
partial void OnInPutDateChanged();
partial void OnCancelDateChanging(System.Nullable<System.DateTime> value);
partial void OnCancelDateChanged();
partial void OnIsCancelChanging(System.Nullable<bool> value);
partial void OnIsCancelChanged();
partial void OnIsFinishChanging(System.Nullable<bool> value);
partial void OnIsFinishChanged();
partial void OnFinishManChanging(string value);
partial void OnFinishManChanged();
partial void OnOrderTimeChanging(string value);
partial void OnOrderTimeChanged();
partial void OnOrderDateChanging(System.Nullable<System.DateTime> value);
partial void OnOrderDateChanged();
partial void OnCancelResultChanging(string value);
partial void OnCancelResultChanged();
partial void OnIsSubmitChanging(System.Nullable<bool> value);
partial void OnIsSubmitChanged();
partial void OnUsePositionChanging(string value);
partial void OnUsePositionChanged();
partial void OnUsingUnitChanging(string value);
partial void OnUsingUnitChanged();
partial void OnTeamGroupIdChanging(string value);
partial void OnTeamGroupIdChanged();
partial void OnSTE_IDChanging(string value);
partial void OnSTE_IDChanged();
partial void OnSTE_NameChanging(string value);
partial void OnSTE_NameChanged();
partial void OnIsNeedConfirmChanging(System.Nullable<bool> value);
partial void OnIsNeedConfirmChanged();
partial void OnInPutManChanging(string value);
partial void OnInPutManChanged();
partial void OnIsSteelStruChanging(System.Nullable<bool> value);
partial void OnIsSteelStruChanged();
partial void OnTypeChanging(string value);
partial void OnTypeChanged();
partial void OnUnitStoreIdChanging(string value);
partial void OnUnitStoreIdChanged();
#endregion
public Weld_UsingPlan_Temp()
{
this._Weld_WeldInfo = default(EntityRef<Weld_WeldInfo>);
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsingPlanTempId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string UsingPlanTempId
{
get
{
return this._UsingPlanTempId;
}
set
{
if ((this._UsingPlanTempId != value))
{
this.OnUsingPlanTempIdChanging(value);
this.SendPropertyChanging();
this._UsingPlanTempId = value;
this.SendPropertyChanged("UsingPlanTempId");
this.OnUsingPlanTempIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldId", DbType="NVarChar(50)")]
public string WeldId
{
get
{
return this._WeldId;
}
set
{
if ((this._WeldId != value))
{
if (this._Weld_WeldInfo.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnWeldIdChanging(value);
this.SendPropertyChanging();
this._WeldId = value;
this.SendPropertyChanged("WeldId");
this.OnWeldIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Jot_ID", DbType="NVarChar(50)")]
public string Jot_ID
{
get
{
return this._Jot_ID;
}
set
{
if ((this._Jot_ID != value))
{
this.OnJot_IDChanging(value);
this.SendPropertyChanging();
this._Jot_ID = value;
this.SendPropertyChanged("Jot_ID");
this.OnJot_IDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Amount", DbType="Decimal(9,3)")]
public System.Nullable<decimal> Amount
{
get
{
return this._Amount;
}
set
{
if ((this._Amount != value))
{
this.OnAmountChanging(value);
this.SendPropertyChanging();
this._Amount = value;
this.SendPropertyChanged("Amount");
this.OnAmountChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsingManOne", DbType="NVarChar(50)")]
public string UsingManOne
{
get
{
return this._UsingManOne;
}
set
{
if ((this._UsingManOne != value))
{
this.OnUsingManOneChanging(value);
this.SendPropertyChanging();
this._UsingManOne = value;
this.SendPropertyChanged("UsingManOne");
this.OnUsingManOneChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsingManTwo", DbType="NVarChar(50)")]
public string UsingManTwo
{
get
{
return this._UsingManTwo;
}
set
{
if ((this._UsingManTwo != value))
{
this.OnUsingManTwoChanging(value);
this.SendPropertyChanging();
this._UsingManTwo = value;
this.SendPropertyChanged("UsingManTwo");
this.OnUsingManTwoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InPutDate", DbType="DateTime")]
public System.Nullable<System.DateTime> InPutDate
{
get
{
return this._InPutDate;
}
set
{
if ((this._InPutDate != value))
{
this.OnInPutDateChanging(value);
this.SendPropertyChanging();
this._InPutDate = value;
this.SendPropertyChanged("InPutDate");
this.OnInPutDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CancelDate", DbType="DateTime")]
public System.Nullable<System.DateTime> CancelDate
{
get
{
return this._CancelDate;
}
set
{
if ((this._CancelDate != value))
{
this.OnCancelDateChanging(value);
this.SendPropertyChanging();
this._CancelDate = value;
this.SendPropertyChanged("CancelDate");
this.OnCancelDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCancel", DbType="Bit")]
public System.Nullable<bool> IsCancel
{
get
{
return this._IsCancel;
}
set
{
if ((this._IsCancel != value))
{
this.OnIsCancelChanging(value);
this.SendPropertyChanging();
this._IsCancel = value;
this.SendPropertyChanged("IsCancel");
this.OnIsCancelChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFinish", DbType="Bit")]
public System.Nullable<bool> IsFinish
{
get
{
return this._IsFinish;
}
set
{
if ((this._IsFinish != value))
{
this.OnIsFinishChanging(value);
this.SendPropertyChanging();
this._IsFinish = value;
this.SendPropertyChanged("IsFinish");
this.OnIsFinishChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FinishMan", DbType="NVarChar(50)")]
public string FinishMan
{
get
{
return this._FinishMan;
}
set
{
if ((this._FinishMan != value))
{
this.OnFinishManChanging(value);
this.SendPropertyChanging();
this._FinishMan = value;
this.SendPropertyChanged("FinishMan");
this.OnFinishManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderTime", DbType="NVarChar(50)")]
public string OrderTime
{
get
{
return this._OrderTime;
}
set
{
if ((this._OrderTime != value))
{
this.OnOrderTimeChanging(value);
this.SendPropertyChanging();
this._OrderTime = value;
this.SendPropertyChanged("OrderTime");
this.OnOrderTimeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrderDate", DbType="DateTime")]
public System.Nullable<System.DateTime> OrderDate
{
get
{
return this._OrderDate;
}
set
{
if ((this._OrderDate != value))
{
this.OnOrderDateChanging(value);
this.SendPropertyChanging();
this._OrderDate = value;
this.SendPropertyChanged("OrderDate");
this.OnOrderDateChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CancelResult", DbType="NVarChar(100)")]
public string CancelResult
{
get
{
return this._CancelResult;
}
set
{
if ((this._CancelResult != value))
{
this.OnCancelResultChanging(value);
this.SendPropertyChanging();
this._CancelResult = value;
this.SendPropertyChanged("CancelResult");
this.OnCancelResultChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSubmit", DbType="Bit")]
public System.Nullable<bool> IsSubmit
{
get
{
return this._IsSubmit;
}
set
{
if ((this._IsSubmit != value))
{
this.OnIsSubmitChanging(value);
this.SendPropertyChanging();
this._IsSubmit = value;
this.SendPropertyChanged("IsSubmit");
this.OnIsSubmitChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsePosition", DbType="NVarChar(50)")]
public string UsePosition
{
get
{
return this._UsePosition;
}
set
{
if ((this._UsePosition != value))
{
this.OnUsePositionChanging(value);
this.SendPropertyChanging();
this._UsePosition = value;
this.SendPropertyChanged("UsePosition");
this.OnUsePositionChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UsingUnit", DbType="NVarChar(50)")]
public string UsingUnit
{
get
{
return this._UsingUnit;
}
set
{
if ((this._UsingUnit != value))
{
this.OnUsingUnitChanging(value);
this.SendPropertyChanging();
this._UsingUnit = value;
this.SendPropertyChanged("UsingUnit");
this.OnUsingUnitChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamGroupId", DbType="NVarChar(50)")]
public string TeamGroupId
{
get
{
return this._TeamGroupId;
}
set
{
if ((this._TeamGroupId != value))
{
this.OnTeamGroupIdChanging(value);
this.SendPropertyChanging();
this._TeamGroupId = value;
this.SendPropertyChanged("TeamGroupId");
this.OnTeamGroupIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_ID", DbType="NVarChar(500)")]
public string STE_ID
{
get
{
return this._STE_ID;
}
set
{
if ((this._STE_ID != value))
{
this.OnSTE_IDChanging(value);
this.SendPropertyChanging();
this._STE_ID = value;
this.SendPropertyChanged("STE_ID");
this.OnSTE_IDChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_STE_Name", DbType="NVarChar(500)")]
public string STE_Name
{
get
{
return this._STE_Name;
}
set
{
if ((this._STE_Name != value))
{
this.OnSTE_NameChanging(value);
this.SendPropertyChanging();
this._STE_Name = value;
this.SendPropertyChanged("STE_Name");
this.OnSTE_NameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsNeedConfirm", DbType="Bit")]
public System.Nullable<bool> IsNeedConfirm
{
get
{
return this._IsNeedConfirm;
}
set
{
if ((this._IsNeedConfirm != value))
{
this.OnIsNeedConfirmChanging(value);
this.SendPropertyChanging();
this._IsNeedConfirm = value;
this.SendPropertyChanged("IsNeedConfirm");
this.OnIsNeedConfirmChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InPutMan", DbType="NVarChar(50)")]
public string InPutMan
{
get
{
return this._InPutMan;
}
set
{
if ((this._InPutMan != value))
{
this.OnInPutManChanging(value);
this.SendPropertyChanging();
this._InPutMan = value;
this.SendPropertyChanged("InPutMan");
this.OnInPutManChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSteelStru", DbType="Bit")]
public System.Nullable<bool> IsSteelStru
{
get
{
return this._IsSteelStru;
}
set
{
if ((this._IsSteelStru != value))
{
this.OnIsSteelStruChanging(value);
this.SendPropertyChanging();
this._IsSteelStru = value;
this.SendPropertyChanged("IsSteelStru");
this.OnIsSteelStruChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="Char(1)")]
public string Type
{
get
{
return this._Type;
}
set
{
if ((this._Type != value))
{
this.OnTypeChanging(value);
this.SendPropertyChanging();
this._Type = value;
this.SendPropertyChanged("Type");
this.OnTypeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitStoreId", DbType="NVarChar(50)")]
public string UnitStoreId
{
get
{
return this._UnitStoreId;
}
set
{
if ((this._UnitStoreId != value))
{
this.OnUnitStoreIdChanging(value);
this.SendPropertyChanging();
this._UnitStoreId = value;
this.SendPropertyChanged("UnitStoreId");
this.OnUnitStoreIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_UsingPlan_Temp_Weld_WeldInfo", Storage="_Weld_WeldInfo", ThisKey="WeldId", OtherKey="WeldId", IsForeignKey=true)]
public Weld_WeldInfo Weld_WeldInfo
{
get
{
return this._Weld_WeldInfo.Entity;
}
set
{
Weld_WeldInfo previousValue = this._Weld_WeldInfo.Entity;
if (((previousValue != value)
|| (this._Weld_WeldInfo.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Weld_WeldInfo.Entity = null;
previousValue.Weld_UsingPlan_Temp.Remove(this);
}
this._Weld_WeldInfo.Entity = value;
if ((value != null))
{
value.Weld_UsingPlan_Temp.Add(this);
this._WeldId = value.WeldId;
}
else
{
this._WeldId = default(string);
}
this.SendPropertyChanged("Weld_WeldInfo");
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Weld_View_ReleaseRecovery")]
public partial class Weld_View_ReleaseRecovery
{
@@ -142162,6 +142876,8 @@ namespace Model
private EntitySet<Weld_UsingMat> _Weld_UsingMat;
private EntitySet<Weld_UsingPlan_Temp> _Weld_UsingPlan_Temp;
private EntitySet<Weld_UsingPlan> _Weld_UsingPlan;
private EntityRef<Weld_WeldType> _Weld_WeldType;
@@ -142201,6 +142917,7 @@ namespace Model
this._Weld_RecycleMatTop = new EntitySet<Weld_RecycleMatTop>(new Action<Weld_RecycleMatTop>(this.attach_Weld_RecycleMatTop), new Action<Weld_RecycleMatTop>(this.detach_Weld_RecycleMatTop));
this._Weld_StockInit = new EntitySet<Weld_StockInit>(new Action<Weld_StockInit>(this.attach_Weld_StockInit), new Action<Weld_StockInit>(this.detach_Weld_StockInit));
this._Weld_UsingMat = new EntitySet<Weld_UsingMat>(new Action<Weld_UsingMat>(this.attach_Weld_UsingMat), new Action<Weld_UsingMat>(this.detach_Weld_UsingMat));
this._Weld_UsingPlan_Temp = new EntitySet<Weld_UsingPlan_Temp>(new Action<Weld_UsingPlan_Temp>(this.attach_Weld_UsingPlan_Temp), new Action<Weld_UsingPlan_Temp>(this.detach_Weld_UsingPlan_Temp));
this._Weld_UsingPlan = new EntitySet<Weld_UsingPlan>(new Action<Weld_UsingPlan>(this.attach_Weld_UsingPlan), new Action<Weld_UsingPlan>(this.detach_Weld_UsingPlan));
this._Weld_WeldType = default(EntityRef<Weld_WeldType>);
OnCreated();
@@ -142495,6 +143212,19 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_UsingPlan_Temp_Weld_WeldInfo", Storage="_Weld_UsingPlan_Temp", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
public EntitySet<Weld_UsingPlan_Temp> Weld_UsingPlan_Temp
{
get
{
return this._Weld_UsingPlan_Temp;
}
set
{
this._Weld_UsingPlan_Temp.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_UsingPlan_Weld_WeldInfo", Storage="_Weld_UsingPlan", ThisKey="WeldId", OtherKey="WeldId", DeleteRule="NO ACTION")]
public EntitySet<Weld_UsingPlan> Weld_UsingPlan
{
@@ -142622,6 +143352,18 @@ namespace Model
entity.Weld_WeldInfo = null;
}
private void attach_Weld_UsingPlan_Temp(Weld_UsingPlan_Temp entity)
{
this.SendPropertyChanging();
entity.Weld_WeldInfo = this;
}
private void detach_Weld_UsingPlan_Temp(Weld_UsingPlan_Temp entity)
{
this.SendPropertyChanging();
entity.Weld_WeldInfo = null;
}
private void attach_Weld_UsingPlan(Weld_UsingPlan entity)
{
this.SendPropertyChanging();