diff --git a/DataBase/版本日志/SGGLDB_V2023-03-13.sql b/DataBase/版本日志/SGGLDB_V2023-03-13.sql new file mode 100644 index 00000000..78b703c8 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-03-13.sql @@ -0,0 +1,2 @@ +alter table RewardAndPunish_RewardAndPunish add RewardAndPunishDecision nvarchar(200) null +GO \ No newline at end of file diff --git a/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs b/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs index de8f22c4..06f513fb 100644 --- a/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs +++ b/SGGL/BLL/CQMS/RewardAndPunish/RewardAndPunishService.cs @@ -38,6 +38,7 @@ namespace BLL Type = RewardAndPunish.Type, RewardAndPunishTypeId = RewardAndPunish.RewardAndPunishTypeId, RewardAndPunishBasis = RewardAndPunish.RewardAndPunishBasis, + RewardAndPunishDecision = RewardAndPunish.RewardAndPunishDecision, State = RewardAndPunish.State, CompileMan = RewardAndPunish.CompileMan, CompileDate = RewardAndPunish.CompileDate, @@ -61,6 +62,7 @@ namespace BLL newRewardAndPunish.Type = RewardAndPunish.Type; newRewardAndPunish.RewardAndPunishTypeId = RewardAndPunish.RewardAndPunishTypeId; newRewardAndPunish.RewardAndPunishBasis = RewardAndPunish.RewardAndPunishBasis; + newRewardAndPunish.RewardAndPunishDecision = RewardAndPunish.RewardAndPunishDecision; newRewardAndPunish.State = RewardAndPunish.State; db.SubmitChanges(); diff --git a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunish.aspx.cs b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunish.aspx.cs index 3338a71e..fcf26166 100644 --- a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunish.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunish.aspx.cs @@ -51,7 +51,7 @@ namespace FineUIPro.Web.CQMS.RewardAndPunish protected DataTable insklistData() { - string strSql = @"SELECT ins.*,un.UnitName,u.PersonName as CompileManName,case ins.Type when '1' then '奖励' else '处罚' end as TypeStr,case ins.Type when '1' then rt.RewardCause else pt.PunishCause end as Cause,case ins.Type when '1' then rt.RewardDecision else pt.PunishDecision end as Decision" + string strSql = @"SELECT ins.*,un.UnitName,u.PersonName as CompileManName,case ins.Type when '1' then '奖励' else '处罚' end as TypeStr,case ins.Type when '1' then rt.RewardCause else pt.PunishCause end as Cause,ins.RewardAndPunishDecision as Decision" + @" FROM RewardAndPunish_RewardAndPunish ins" + @" left join Base_Unit un on un.UnitId = ins.UnitId" + @" left join Base_RewardType rt on rt.RewardTypeId = ins.RewardAndPunishTypeId" diff --git a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx index 4819bb15..48acbe5c 100644 --- a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx @@ -64,7 +64,7 @@ - diff --git a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx.cs index e3b3fa45..c443c07f 100644 --- a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishEdit.aspx.cs @@ -80,6 +80,10 @@ namespace FineUIPro.Web.CQMS.RewardAndPunish drpRewardAndPunishType.SelectedValue = RewardAndPunish.RewardAndPunishTypeId; drpRewardAndPunishType_SelectedIndexChanged(null, null); } + if (!string.IsNullOrEmpty(RewardAndPunish.RewardAndPunishDecision)) + { + this.txtRewardAndPunishDecision.Text = RewardAndPunish.RewardAndPunishDecision; + } gvApprove.DataSource = BLL.RewardAndPunishApproveService.getListData(this.RewardAndPunishId); gvApprove.DataBind(); if (!string.IsNullOrEmpty(RewardAndPunish.State)) @@ -295,6 +299,7 @@ namespace FineUIPro.Web.CQMS.RewardAndPunish RewardAndPunish.Type = this.rblType.SelectedValue; RewardAndPunish.RewardAndPunishTypeId = this.drpRewardAndPunishType.SelectedValue; RewardAndPunish.RewardAndPunishBasis = this.txtRewardAndPunishBasis.Text.Trim(); + RewardAndPunish.RewardAndPunishDecision = this.txtRewardAndPunishDecision.Text.Trim(); if (saveType == "submit") { RewardAndPunish.State = this.drpHandleType.SelectedValue; diff --git a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishView.aspx.cs index 849cbb2d..b58d3e07 100644 --- a/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishView.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/RewardAndPunish/RewardAndPunishView.aspx.cs @@ -76,6 +76,10 @@ namespace FineUIPro.Web.CQMS.RewardAndPunish drpRewardAndPunishType.SelectedValue = RewardAndPunish.RewardAndPunishTypeId; drpRewardAndPunishType_SelectedIndexChanged(null, null); } + if (!string.IsNullOrEmpty(RewardAndPunish.RewardAndPunishDecision)) + { + this.txtRewardAndPunishDecision.Text = RewardAndPunish.RewardAndPunishDecision; + } gvApprove.DataSource = BLL.RewardAndPunishApproveService.getListData(this.RewardAndPunishId); gvApprove.DataBind(); } diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 3b9bca82..1300d94f 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -73878,7 +73878,7 @@ namespace Model OnCreated(); } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(15) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] public string MaterialCode { get @@ -73982,7 +73982,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialDef", DbType="NVarChar(3000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialDef", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] public string MaterialDef { get @@ -78572,7 +78572,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(15)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")] public string MaterialCode { get @@ -82920,7 +82920,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(1000)")] public string CanWelderCode { get @@ -122289,7 +122289,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(100)")] public string MaterialName { get @@ -122309,7 +122309,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecificationAndModel", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecificationAndModel", DbType="NVarChar(200)")] public string SpecificationAndModel { get @@ -122329,7 +122329,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(100)")] public string MaterialCode { get @@ -122349,7 +122349,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(100)")] public string Material { get @@ -181173,6 +181173,8 @@ namespace Model private System.Nullable _CompileDate; + private string _RewardAndPunishDecision; + private EntityRef _Base_Project; private EntitySet _RewardAndPunish_RewardAndPunishApprove; @@ -181201,6 +181203,8 @@ namespace Model partial void OnCompileManChanged(); partial void OnCompileDateChanging(System.Nullable value); partial void OnCompileDateChanged(); + partial void OnRewardAndPunishDecisionChanging(string value); + partial void OnRewardAndPunishDecisionChanged(); #endregion public RewardAndPunish_RewardAndPunish() @@ -181414,6 +181418,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RewardAndPunishDecision", DbType="NVarChar(100)")] + public string RewardAndPunishDecision + { + get + { + return this._RewardAndPunishDecision; + } + set + { + if ((this._RewardAndPunishDecision != value)) + { + this.OnRewardAndPunishDecisionChanging(value); + this.SendPropertyChanging(); + this._RewardAndPunishDecision = value; + this.SendPropertyChanged("RewardAndPunishDecision"); + this.OnRewardAndPunishDecisionChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_RewardAndPunish_RewardAndPunish_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -235851,7 +235875,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(1000)")] public string CanWelderCode { get