diff --git a/DataBase/版本日志/FCLDB_2024.05.08.sql b/DataBase/版本日志/FCLDB_2024.05.08.sql new file mode 100644 index 0000000..99e821b --- /dev/null +++ b/DataBase/版本日志/FCLDB_2024.05.08.sql @@ -0,0 +1,39 @@ +UPDATE dbo.Base_Depart SET DepartCode='None',DepartName='None' WHERE DepartCode='All' +GO + +ALTER TABLE dbo.EMC_Punishment ADD SelectYesNo BIT NULL +GO +ALTER TABLE dbo.EMC_Punishment ADD Def NVARCHAR(300) NULL +GO + + +ALTER VIEW [dbo].[View_EMC_Punishment] +AS +/*********ۿͼ**********/ +SELECT punish.PunishmentId,punish.PunishDate,punish.FO_NO,punish.SES_No,punish.Location,punish.Description,punish.Company, punish.Individual, + (ISNULL(punish.Company,0)+ISNULL(punish.Individual,0)) AS Backcharge, punish.CompletionDate,punish.PunishDate AS PunishTime, + (CASE WHEN punish.ViolationDegree='1' THEN 'һΥ' WHEN punish.ViolationDegree='2' THEN 'Υ' WHEN punish.ViolationDegree='3' THEN 'Υ' END) AS ViolationDegree, + (CASE WHEN con.Contractor IS NULL THEN con.ContractorCN WHEN con.ContractorCN IS NULL THEN con.Contractor ELSE con.Contractor+con.ContractorCN END)AS Contractor, + datas.Contractor AS ContractorId,dis.Discipline AS DisciplineEn,dis.DisciplineCN,con.Contractor AS ContractorEn,con.ContractorCN, + (CASE WHEN dis.Discipline IS NULL THEN dis.DisciplineCN WHEN dis.DisciplineCN IS NULL THEN dis.Discipline ELSE dis.Discipline+dis.DisciplineCN END) AS Discipline, + datas.Contract_Admin AS Contract_AdminId, u.UserName AS Contract_Admin, u2.UserName AS Main_Coordinator,mcdep.DepartName AS MCDept, u3.UserName AS User_Representative, + bycDep.DepartName AS BYCRU,bycuser.UserName AS BYCRULeader, u4.UserName AS Violation_Inspector_Name, viDep.DepartName AS InspectionDep, + punish.BYC_RU,punish.Violation_Inspector,punish.ViolationRelatedSes,punish.Flag,punish.SelectYesNo,punish.Def, + (CASE WHEN punish.EmailIsSend=1 THEN '' ELSE '' END) AS EmailIsSend +FROM dbo.EMC_Punishment punish +LEFT JOIN dbo.FC_SESRelatedData datas ON datas.FO_NO = punish.FO_NO +LEFT JOIN dbo.Base_Contractor AS con ON con.ContractorId = datas.Contractor +LEFT JOIN dbo.Base_Discipline AS dis ON dis.DisciplineId = datas.DisciplineId +LEFT JOIN dbo.Sys_User AS u ON u.UserId = datas.Contract_Admin +LEFT JOIN dbo.Sys_User AS u2 ON u2.UserId = datas.Main_Coordinator +LEFT JOIN dbo.Sys_User AS u3 ON u3.UserId=datas.User_Representative +LEFT JOIN dbo.Base_Depart mcdep ON mcdep.DepartId = u2.DepartId +LEFT JOIN dbo.Base_Depart bycDep ON bycdep.DepartId=punish.BYC_RU +LEFT JOIN dbo.Sys_User bycuser ON bycuser.UserId = bycDep.DepartLeader +LEFT JOIN dbo.Sys_User AS u4 ON u4.UserId=punish.Violation_Inspector +LEFT JOIN dbo.Base_Depart viDep ON viDep.DepartId=u4.DepartId + + +GO + + diff --git a/FCL/BLL/BaseInfo/DepartService.cs b/FCL/BLL/BaseInfo/DepartService.cs index d3e5cc2..69a6b78 100644 --- a/FCL/BLL/BaseInfo/DepartService.cs +++ b/FCL/BLL/BaseInfo/DepartService.cs @@ -155,5 +155,27 @@ namespace BLL Funs.FineUIPleaseSelect(dropName); } } + + /// + /// 根据条件加载部门 + /// + /// + /// + public static void InitDepartToWhere(FineUIPro.DropDownList dropName, bool isShowPlease) + { + dropName.DataValueField = "DepartId"; + dropName.DataTextField = "DepartName"; + dropName.DataSource = GetDarpDepartList(); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + + public static List GetDarpDepartList() + { + return (from x in Funs.DB.Base_Depart where x.DepartCode.Contains("/") || x.DepartCode.ToLower() == "none" orderby x.DepartCode select x).ToList(); + } } } diff --git a/FCL/BLL/Common/HttpHelper.cs b/FCL/BLL/Common/HttpHelper.cs index 420aa37..ce7fd27 100644 --- a/FCL/BLL/Common/HttpHelper.cs +++ b/FCL/BLL/Common/HttpHelper.cs @@ -20,7 +20,7 @@ namespace BLL.Common string strGetResponse = string.Empty; try { - var getRequest = CreateHttpRequest(url,"", "GET"); + var getRequest = CreateHttpRequest(url,"GET", ""); var getResponse = getRequest.GetResponse() as HttpWebResponse; strGetResponse = GetHttpResponse(getResponse, "GET"); } diff --git a/FCL/BLL/SES/PunishmentService.cs b/FCL/BLL/SES/PunishmentService.cs index 7b05883..df843e0 100644 --- a/FCL/BLL/SES/PunishmentService.cs +++ b/FCL/BLL/SES/PunishmentService.cs @@ -46,6 +46,8 @@ namespace BLL newPunishment.CompletionDate = punishment.CompletionDate; newPunishment.Flag = punishment.Flag; newPunishment.ViolationRelatedSes = punishment.ViolationRelatedSes; + newPunishment.SelectYesNo = punishment.SelectYesNo; + newPunishment.Def=punishment.Def; Funs.DB.EMC_Punishment.InsertOnSubmit(newPunishment); Funs.DB.SubmitChanges(); } @@ -71,6 +73,8 @@ namespace BLL newPunishment.Violation_Inspector = punishment.Violation_Inspector; newPunishment.CompletionDate = punishment.CompletionDate; newPunishment.ViolationRelatedSes = punishment.ViolationRelatedSes; + newPunishment.SelectYesNo = punishment.SelectYesNo; + newPunishment.Def = punishment.Def; Funs.DB.SubmitChanges(); } } diff --git a/FCL/FCL.sln b/FCL/FCL.sln index 99e900b..e52b4dc 100644 --- a/FCL/FCL.sln +++ b/FCL/FCL.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.28307.572 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34728.123 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FineUIPro.Web", "FineUIPro.Web\FineUIPro.Web.csproj", "{C88D3156-2D56-4DB0-922E-1995FB61C9BD}" EndProject diff --git a/FCL/FineUIPro.Web/File/Excel/Punishment.xlsx b/FCL/FineUIPro.Web/File/Excel/Punishment.xlsx index a7ca2d1..19bc7e3 100644 Binary files a/FCL/FineUIPro.Web/File/Excel/Punishment.xlsx and b/FCL/FineUIPro.Web/File/Excel/Punishment.xlsx differ diff --git a/FCL/FineUIPro.Web/FineUIPro.Web.csproj b/FCL/FineUIPro.Web/FineUIPro.Web.csproj index 806bfbc..42d069b 100644 --- a/FCL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/FCL/FineUIPro.Web/FineUIPro.Web.csproj @@ -2572,6 +2572,7 @@ + @@ -2606,17 +2607,6 @@ FCLDS.xsd - - ScoreDataSet.xsd - - - MSDataSetGenerator - ScoreDataSet1.Designer.cs - Designer - - - ScoreDataSet.xsd - @@ -3177,15 +3167,7 @@ ReportPrint.aspx - - ScoreDataSet.xsd - - - True - True - ScoreDataSet.xsd - index.aspx ASPXCodeBehind diff --git a/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user b/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user index 6947efe..a7c4725 100644 --- a/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,8 +1,8 @@  - ProjectFiles - Debug|Any CPU + ShowAllFiles + Release|Any CPU true diff --git a/FCL/FineUIPro.Web/Global.asax.cs b/FCL/FineUIPro.Web/Global.asax.cs index 7d62ec7..bfa9be4 100644 --- a/FCL/FineUIPro.Web/Global.asax.cs +++ b/FCL/FineUIPro.Web/Global.asax.cs @@ -147,6 +147,17 @@ aTimer.Start(); } + + // 启动接口 + if (DateTime.Now.Hour == 17) + { + System.Timers.Timer fcTimer = new System.Timers.Timer(); + fcTimer.Elapsed += new System.Timers.ElapsedEventHandler(Sync_HR); + //12小时执行一次 + fcTimer.Interval = 1000 * 60 * 60 * 12; + fcTimer.Enabled = true; + fcTimer.Start(); + } } private void queTimer_AutoSendOne(object sender, System.Timers.ElapsedEventArgs e) @@ -1385,6 +1396,13 @@ BLL.SQLHelper.ExecutSql(strSql); } + private void Sync_HR(object sender, System.Timers.ElapsedEventArgs e) + { + //调用接口 + string baseUrl = "https://fcl-test.basf-ypc.net.cn/api/api/DataSyncUserInfo/GetHrInfoList"; + BLL.Common.HttpHelper.HttpGetRequest(baseUrl); + } + protected void Session_Start(object sender, EventArgs e) { Session.Timeout = 120; @@ -1475,9 +1493,17 @@ } + // 回收时调用接口 protected void Application_End(object sender, EventArgs e) { - + //调用接口 + string baseUrl = "https://fcl-test.basf-ypc.net.cn/api/api/DataSyncUserInfo/GetHrInfoList"; + BLL.Common.HttpHelper.HttpGetRequest(baseUrl); + //var obj = JsonConvert.DeserializeObject(result); + //if (obj.code == 200) + //{ + // //成功 + //} } } } diff --git a/FCL/FineUIPro.Web/Report/ScoreDataSet1.Designer.cs b/FCL/FineUIPro.Web/Report/ScoreDataSet1.Designer.cs deleted file mode 100644 index a509974..0000000 --- a/FCL/FineUIPro.Web/Report/ScoreDataSet1.Designer.cs +++ /dev/null @@ -1,1921 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 此代码由工具生成。 -// 运行时版本:4.0.30319.42000 -// -// 对此文件的更改可能会导致不正确的行为,并且如果 -// 重新生成代码,这些更改将会丢失。 -// -//------------------------------------------------------------------------------ - -#pragma warning disable 1591 - -namespace FineUIPro.Web.Report { - - - /// - ///Represents a strongly typed in-memory cache of data. - /// - [global::System.Serializable()] - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] - [global::System.Xml.Serialization.XmlRootAttribute("ScoreDataSet")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] - public partial class ScoreDataSet : global::System.Data.DataSet { - - private FC_AveScoreViewDataTable tableFC_AveScoreView; - - private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public ScoreDataSet() { - this.BeginInit(); - this.InitClass(); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - base.Tables.CollectionChanged += schemaChangedHandler; - base.Relations.CollectionChanged += schemaChangedHandler; - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected ScoreDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context, false) { - if ((this.IsBinarySerialized(info, context) == true)) { - this.InitVars(false); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - this.Tables.CollectionChanged += schemaChangedHandler1; - this.Relations.CollectionChanged += schemaChangedHandler1; - return; - } - string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); - if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { - global::System.Data.DataSet ds = new global::System.Data.DataSet(); - ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); - if ((ds.Tables["FC_AveScoreView"] != null)) { - base.Tables.Add(new FC_AveScoreViewDataTable(ds.Tables["FC_AveScoreView"])); - } - this.DataSetName = ds.DataSetName; - this.Prefix = ds.Prefix; - this.Namespace = ds.Namespace; - this.Locale = ds.Locale; - this.CaseSensitive = ds.CaseSensitive; - this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); - this.InitVars(); - } - else { - this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); - } - this.GetSerializationData(info, context); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); - base.Tables.CollectionChanged += schemaChangedHandler; - this.Relations.CollectionChanged += schemaChangedHandler; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] - public FC_AveScoreViewDataTable FC_AveScoreView { - get { - return this.tableFC_AveScoreView; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.BrowsableAttribute(true)] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] - public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { - get { - return this._schemaSerializationMode; - } - set { - this._schemaSerializationMode = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataTableCollection Tables { - get { - return base.Tables; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataRelationCollection Relations { - get { - return base.Relations; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override void InitializeDerivedDataSet() { - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public override global::System.Data.DataSet Clone() { - ScoreDataSet cln = ((ScoreDataSet)(base.Clone())); - cln.InitVars(); - cln.SchemaSerializationMode = this.SchemaSerializationMode; - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override bool ShouldSerializeTables() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override bool ShouldSerializeRelations() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { - if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { - this.Reset(); - global::System.Data.DataSet ds = new global::System.Data.DataSet(); - ds.ReadXml(reader); - if ((ds.Tables["FC_AveScoreView"] != null)) { - base.Tables.Add(new FC_AveScoreViewDataTable(ds.Tables["FC_AveScoreView"])); - } - this.DataSetName = ds.DataSetName; - this.Prefix = ds.Prefix; - this.Namespace = ds.Namespace; - this.Locale = ds.Locale; - this.CaseSensitive = ds.CaseSensitive; - this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); - this.InitVars(); - } - else { - this.ReadXml(reader); - this.InitVars(); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { - global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); - this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); - stream.Position = 0; - return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal void InitVars() { - this.InitVars(true); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal void InitVars(bool initTable) { - this.tableFC_AveScoreView = ((FC_AveScoreViewDataTable)(base.Tables["FC_AveScoreView"])); - if ((initTable == true)) { - if ((this.tableFC_AveScoreView != null)) { - this.tableFC_AveScoreView.InitVars(); - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private void InitClass() { - this.DataSetName = "ScoreDataSet"; - this.Prefix = ""; - this.Namespace = "http://tempuri.org/ScoreDataSet.xsd"; - this.EnforceConstraints = true; - this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - this.tableFC_AveScoreView = new FC_AveScoreViewDataTable(); - base.Tables.Add(this.tableFC_AveScoreView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private bool ShouldSerializeFC_AveScoreView() { - return false; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { - if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { - this.InitVars(); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - ScoreDataSet ds = new ScoreDataSet(); - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); - any.Namespace = ds.Namespace; - sequence.Items.Add(any); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public delegate void FC_AveScoreViewRowChangeEventHandler(object sender, FC_AveScoreViewRowChangeEvent e); - - /// - ///Represents the strongly named DataTable class. - /// - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class FC_AveScoreViewDataTable : global::System.Data.TypedTableBase { - - private global::System.Data.DataColumn columnID; - - private global::System.Data.DataColumn columnContract_NO; - - private global::System.Data.DataColumn columnDescription; - - private global::System.Data.DataColumn columnContractor; - - private global::System.Data.DataColumn columnPreparation; - - private global::System.Data.DataColumn columnPerformance; - - private global::System.Data.DataColumn columnEHSS; - - private global::System.Data.DataColumn columnQuality_Control; - - private global::System.Data.DataColumn columnTimeLine_Management; - - private global::System.Data.DataColumn columnDocumentation; - - private global::System.Data.DataColumn columnHonestyTimely; - - private global::System.Data.DataColumn columnMain_Coordinator; - - private global::System.Data.DataColumn columnUser_Representative; - - private global::System.Data.DataColumn columnCTS; - - private global::System.Data.DataColumn columnCTM_T; - - private global::System.Data.DataColumn columnStartTime; - - private global::System.Data.DataColumn columnEndTime; - - private global::System.Data.DataColumn columnCHA; - - private global::System.Data.DataColumn columnCTE_D; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewDataTable() { - this.TableName = "FC_AveScoreView"; - this.BeginInit(); - this.InitClass(); - this.EndInit(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal FC_AveScoreViewDataTable(global::System.Data.DataTable table) { - this.TableName = table.TableName; - if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { - this.CaseSensitive = table.CaseSensitive; - } - if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { - this.Locale = table.Locale; - } - if ((table.Namespace != table.DataSet.Namespace)) { - this.Namespace = table.Namespace; - } - this.Prefix = table.Prefix; - this.MinimumCapacity = table.MinimumCapacity; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected FC_AveScoreViewDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : - base(info, context) { - this.InitVars(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn IDColumn { - get { - return this.columnID; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn Contract_NOColumn { - get { - return this.columnContract_NO; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn DescriptionColumn { - get { - return this.columnDescription; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn ContractorColumn { - get { - return this.columnContractor; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn PreparationColumn { - get { - return this.columnPreparation; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn PerformanceColumn { - get { - return this.columnPerformance; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn EHSSColumn { - get { - return this.columnEHSS; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn Quality_ControlColumn { - get { - return this.columnQuality_Control; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn TimeLine_ManagementColumn { - get { - return this.columnTimeLine_Management; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn DocumentationColumn { - get { - return this.columnDocumentation; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn HonestyTimelyColumn { - get { - return this.columnHonestyTimely; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn Main_CoordinatorColumn { - get { - return this.columnMain_Coordinator; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn User_RepresentativeColumn { - get { - return this.columnUser_Representative; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn CTSColumn { - get { - return this.columnCTS; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn CTM_TColumn { - get { - return this.columnCTM_T; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn StartTimeColumn { - get { - return this.columnStartTime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn EndTimeColumn { - get { - return this.columnEndTime; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn CHAColumn { - get { - return this.columnCHA; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataColumn CTE_DColumn { - get { - return this.columnCTE_D; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public int Count { - get { - return this.Rows.Count; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewRow this[int index] { - get { - return ((FC_AveScoreViewRow)(this.Rows[index])); - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public event FC_AveScoreViewRowChangeEventHandler FC_AveScoreViewRowChanging; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public event FC_AveScoreViewRowChangeEventHandler FC_AveScoreViewRowChanged; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public event FC_AveScoreViewRowChangeEventHandler FC_AveScoreViewRowDeleting; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public event FC_AveScoreViewRowChangeEventHandler FC_AveScoreViewRowDeleted; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void AddFC_AveScoreViewRow(FC_AveScoreViewRow row) { - this.Rows.Add(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewRow AddFC_AveScoreViewRow( - int ID, - string Contract_NO, - string Description, - string Contractor, - decimal Preparation, - decimal Performance, - decimal EHSS, - decimal Quality_Control, - decimal TimeLine_Management, - decimal Documentation, - decimal HonestyTimely, - decimal Main_Coordinator, - decimal User_Representative, - decimal CTS, - decimal CTM_T, - System.DateTime StartTime, - System.DateTime EndTime, - decimal CHA, - decimal CTE_D) { - FC_AveScoreViewRow rowFC_AveScoreViewRow = ((FC_AveScoreViewRow)(this.NewRow())); - object[] columnValuesArray = new object[] { - ID, - Contract_NO, - Description, - Contractor, - Preparation, - Performance, - EHSS, - Quality_Control, - TimeLine_Management, - Documentation, - HonestyTimely, - Main_Coordinator, - User_Representative, - CTS, - CTM_T, - StartTime, - EndTime, - CHA, - CTE_D}; - rowFC_AveScoreViewRow.ItemArray = columnValuesArray; - this.Rows.Add(rowFC_AveScoreViewRow); - return rowFC_AveScoreViewRow; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewRow FindByID(int ID) { - return ((FC_AveScoreViewRow)(this.Rows.Find(new object[] { - ID}))); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public override global::System.Data.DataTable Clone() { - FC_AveScoreViewDataTable cln = ((FC_AveScoreViewDataTable)(base.Clone())); - cln.InitVars(); - return cln; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override global::System.Data.DataTable CreateInstance() { - return new FC_AveScoreViewDataTable(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal void InitVars() { - this.columnID = base.Columns["ID"]; - this.columnContract_NO = base.Columns["Contract_NO"]; - this.columnDescription = base.Columns["Description"]; - this.columnContractor = base.Columns["Contractor"]; - this.columnPreparation = base.Columns["Preparation"]; - this.columnPerformance = base.Columns["Performance"]; - this.columnEHSS = base.Columns["EHSS"]; - this.columnQuality_Control = base.Columns["Quality_Control"]; - this.columnTimeLine_Management = base.Columns["TimeLine_Management"]; - this.columnDocumentation = base.Columns["Documentation"]; - this.columnHonestyTimely = base.Columns["HonestyTimely"]; - this.columnMain_Coordinator = base.Columns["Main_Coordinator"]; - this.columnUser_Representative = base.Columns["User_Representative"]; - this.columnCTS = base.Columns["CTS"]; - this.columnCTM_T = base.Columns["CTM_T"]; - this.columnStartTime = base.Columns["StartTime"]; - this.columnEndTime = base.Columns["EndTime"]; - this.columnCHA = base.Columns["CHA"]; - this.columnCTE_D = base.Columns["CTE_D"]; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private void InitClass() { - this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnID); - this.columnContract_NO = new global::System.Data.DataColumn("Contract_NO", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnContract_NO); - this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDescription); - this.columnContractor = new global::System.Data.DataColumn("Contractor", typeof(string), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnContractor); - this.columnPreparation = new global::System.Data.DataColumn("Preparation", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPreparation); - this.columnPerformance = new global::System.Data.DataColumn("Performance", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnPerformance); - this.columnEHSS = new global::System.Data.DataColumn("EHSS", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEHSS); - this.columnQuality_Control = new global::System.Data.DataColumn("Quality_Control", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnQuality_Control); - this.columnTimeLine_Management = new global::System.Data.DataColumn("TimeLine_Management", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnTimeLine_Management); - this.columnDocumentation = new global::System.Data.DataColumn("Documentation", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnDocumentation); - this.columnHonestyTimely = new global::System.Data.DataColumn("HonestyTimely", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnHonestyTimely); - this.columnMain_Coordinator = new global::System.Data.DataColumn("Main_Coordinator", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnMain_Coordinator); - this.columnUser_Representative = new global::System.Data.DataColumn("User_Representative", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnUser_Representative); - this.columnCTS = new global::System.Data.DataColumn("CTS", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCTS); - this.columnCTM_T = new global::System.Data.DataColumn("CTM_T", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCTM_T); - this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnStartTime); - this.columnEndTime = new global::System.Data.DataColumn("EndTime", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnEndTime); - this.columnCHA = new global::System.Data.DataColumn("CHA", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCHA); - this.columnCTE_D = new global::System.Data.DataColumn("CTE_D", typeof(decimal), null, global::System.Data.MappingType.Element); - base.Columns.Add(this.columnCTE_D); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { - this.columnID}, true)); - this.columnID.AllowDBNull = false; - this.columnID.Unique = true; - this.columnContract_NO.AllowDBNull = false; - this.columnContract_NO.MaxLength = 50; - this.columnDescription.MaxLength = 200; - this.columnContractor.MaxLength = 50; - this.columnPreparation.ReadOnly = true; - this.columnPerformance.ReadOnly = true; - this.columnEHSS.ReadOnly = true; - this.columnQuality_Control.ReadOnly = true; - this.columnTimeLine_Management.ReadOnly = true; - this.columnDocumentation.ReadOnly = true; - this.columnHonestyTimely.ReadOnly = true; - this.columnMain_Coordinator.ReadOnly = true; - this.columnUser_Representative.ReadOnly = true; - this.columnCTS.ReadOnly = true; - this.columnCTM_T.ReadOnly = true; - this.columnCHA.ReadOnly = true; - this.columnCTE_D.ReadOnly = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewRow NewFC_AveScoreViewRow() { - return ((FC_AveScoreViewRow)(this.NewRow())); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { - return new FC_AveScoreViewRow(builder); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override global::System.Type GetRowType() { - return typeof(FC_AveScoreViewRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanged(e); - if ((this.FC_AveScoreViewRowChanged != null)) { - this.FC_AveScoreViewRowChanged(this, new FC_AveScoreViewRowChangeEvent(((FC_AveScoreViewRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowChanging(e); - if ((this.FC_AveScoreViewRowChanging != null)) { - this.FC_AveScoreViewRowChanging(this, new FC_AveScoreViewRowChangeEvent(((FC_AveScoreViewRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleted(e); - if ((this.FC_AveScoreViewRowDeleted != null)) { - this.FC_AveScoreViewRowDeleted(this, new FC_AveScoreViewRowChangeEvent(((FC_AveScoreViewRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { - base.OnRowDeleting(e); - if ((this.FC_AveScoreViewRowDeleting != null)) { - this.FC_AveScoreViewRowDeleting(this, new FC_AveScoreViewRowChangeEvent(((FC_AveScoreViewRow)(e.Row)), e.Action)); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void RemoveFC_AveScoreViewRow(FC_AveScoreViewRow row) { - this.Rows.Remove(row); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - ScoreDataSet ds = new ScoreDataSet(); - global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); - any1.Namespace = "http://www.w3.org/2001/XMLSchema"; - any1.MinOccurs = new decimal(0); - any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any1); - global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); - any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; - any2.MinOccurs = new decimal(1); - any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; - sequence.Items.Add(any2); - global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute1.Name = "namespace"; - attribute1.FixedValue = ds.Namespace; - type.Attributes.Add(attribute1); - global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); - attribute2.Name = "tableTypeName"; - attribute2.FixedValue = "FC_AveScoreViewDataTable"; - type.Attributes.Add(attribute2); - type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); - return type; - } - } - - /// - ///Represents strongly named DataRow class. - /// - public partial class FC_AveScoreViewRow : global::System.Data.DataRow { - - private FC_AveScoreViewDataTable tableFC_AveScoreView; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal FC_AveScoreViewRow(global::System.Data.DataRowBuilder rb) : - base(rb) { - this.tableFC_AveScoreView = ((FC_AveScoreViewDataTable)(this.Table)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public int ID { - get { - return ((int)(this[this.tableFC_AveScoreView.IDColumn])); - } - set { - this[this.tableFC_AveScoreView.IDColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Contract_NO { - get { - return ((string)(this[this.tableFC_AveScoreView.Contract_NOColumn])); - } - set { - this[this.tableFC_AveScoreView.Contract_NOColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Description { - get { - try { - return ((string)(this[this.tableFC_AveScoreView.DescriptionColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“Description”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.DescriptionColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public string Contractor { - get { - try { - return ((string)(this[this.tableFC_AveScoreView.ContractorColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“Contractor”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.ContractorColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal Preparation { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.PreparationColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“Preparation”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.PreparationColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal Performance { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.PerformanceColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“Performance”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.PerformanceColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal EHSS { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.EHSSColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“EHSS”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.EHSSColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal Quality_Control { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.Quality_ControlColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“Quality_Control”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.Quality_ControlColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal TimeLine_Management { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.TimeLine_ManagementColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“TimeLine_Management”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.TimeLine_ManagementColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal Documentation { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.DocumentationColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“Documentation”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.DocumentationColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal HonestyTimely { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.HonestyTimelyColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“HonestyTimely”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.HonestyTimelyColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal Main_Coordinator { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.Main_CoordinatorColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“Main_Coordinator”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.Main_CoordinatorColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal User_Representative { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.User_RepresentativeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“User_Representative”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.User_RepresentativeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal CTS { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.CTSColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“CTS”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.CTSColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal CTM_T { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.CTM_TColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“CTM_T”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.CTM_TColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public System.DateTime StartTime { - get { - try { - return ((global::System.DateTime)(this[this.tableFC_AveScoreView.StartTimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“StartTime”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.StartTimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public System.DateTime EndTime { - get { - try { - return ((global::System.DateTime)(this[this.tableFC_AveScoreView.EndTimeColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“EndTime”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.EndTimeColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal CHA { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.CHAColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“CHA”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.CHAColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public decimal CTE_D { - get { - try { - return ((decimal)(this[this.tableFC_AveScoreView.CTE_DColumn])); - } - catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("表“FC_AveScoreView”中列“CTE_D”的值为 DBNull。", e); - } - } - set { - this[this.tableFC_AveScoreView.CTE_DColumn] = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsDescriptionNull() { - return this.IsNull(this.tableFC_AveScoreView.DescriptionColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetDescriptionNull() { - this[this.tableFC_AveScoreView.DescriptionColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsContractorNull() { - return this.IsNull(this.tableFC_AveScoreView.ContractorColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetContractorNull() { - this[this.tableFC_AveScoreView.ContractorColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsPreparationNull() { - return this.IsNull(this.tableFC_AveScoreView.PreparationColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetPreparationNull() { - this[this.tableFC_AveScoreView.PreparationColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsPerformanceNull() { - return this.IsNull(this.tableFC_AveScoreView.PerformanceColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetPerformanceNull() { - this[this.tableFC_AveScoreView.PerformanceColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsEHSSNull() { - return this.IsNull(this.tableFC_AveScoreView.EHSSColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetEHSSNull() { - this[this.tableFC_AveScoreView.EHSSColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsQuality_ControlNull() { - return this.IsNull(this.tableFC_AveScoreView.Quality_ControlColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetQuality_ControlNull() { - this[this.tableFC_AveScoreView.Quality_ControlColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsTimeLine_ManagementNull() { - return this.IsNull(this.tableFC_AveScoreView.TimeLine_ManagementColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetTimeLine_ManagementNull() { - this[this.tableFC_AveScoreView.TimeLine_ManagementColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsDocumentationNull() { - return this.IsNull(this.tableFC_AveScoreView.DocumentationColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetDocumentationNull() { - this[this.tableFC_AveScoreView.DocumentationColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsHonestyTimelyNull() { - return this.IsNull(this.tableFC_AveScoreView.HonestyTimelyColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetHonestyTimelyNull() { - this[this.tableFC_AveScoreView.HonestyTimelyColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsMain_CoordinatorNull() { - return this.IsNull(this.tableFC_AveScoreView.Main_CoordinatorColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetMain_CoordinatorNull() { - this[this.tableFC_AveScoreView.Main_CoordinatorColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsUser_RepresentativeNull() { - return this.IsNull(this.tableFC_AveScoreView.User_RepresentativeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetUser_RepresentativeNull() { - this[this.tableFC_AveScoreView.User_RepresentativeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsCTSNull() { - return this.IsNull(this.tableFC_AveScoreView.CTSColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetCTSNull() { - this[this.tableFC_AveScoreView.CTSColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsCTM_TNull() { - return this.IsNull(this.tableFC_AveScoreView.CTM_TColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetCTM_TNull() { - this[this.tableFC_AveScoreView.CTM_TColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsStartTimeNull() { - return this.IsNull(this.tableFC_AveScoreView.StartTimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetStartTimeNull() { - this[this.tableFC_AveScoreView.StartTimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsEndTimeNull() { - return this.IsNull(this.tableFC_AveScoreView.EndTimeColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetEndTimeNull() { - this[this.tableFC_AveScoreView.EndTimeColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsCHANull() { - return this.IsNull(this.tableFC_AveScoreView.CHAColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetCHANull() { - this[this.tableFC_AveScoreView.CHAColumn] = global::System.Convert.DBNull; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool IsCTE_DNull() { - return this.IsNull(this.tableFC_AveScoreView.CTE_DColumn); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public void SetCTE_DNull() { - this[this.tableFC_AveScoreView.CTE_DColumn] = global::System.Convert.DBNull; - } - } - - /// - ///Row event argument class - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public class FC_AveScoreViewRowChangeEvent : global::System.EventArgs { - - private FC_AveScoreViewRow eventRow; - - private global::System.Data.DataRowAction eventAction; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewRowChangeEvent(FC_AveScoreViewRow row, global::System.Data.DataRowAction action) { - this.eventRow = row; - this.eventAction = action; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewRow Row { - get { - return this.eventRow; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public global::System.Data.DataRowAction Action { - get { - return this.eventAction; - } - } - } - } -} -namespace FineUIPro.Web.Report.ScoreDataSetTableAdapters { - - - /// - ///Represents the connection and commands used to retrieve and save data. - /// - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DataObjectAttribute(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + - ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public partial class FC_AveScoreViewTableAdapter : global::System.ComponentModel.Component { - - private global::System.Data.SqlClient.SqlDataAdapter _adapter; - - private global::System.Data.SqlClient.SqlConnection _connection; - - private global::System.Data.SqlClient.SqlTransaction _transaction; - - private global::System.Data.SqlClient.SqlCommand[] _commandCollection; - - private bool _clearBeforeFill; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public FC_AveScoreViewTableAdapter() { - this.ClearBeforeFill = true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { - get { - if ((this._adapter == null)) { - this.InitAdapter(); - } - return this._adapter; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal global::System.Data.SqlClient.SqlConnection Connection { - get { - if ((this._connection == null)) { - this.InitConnection(); - } - return this._connection; - } - set { - this._connection = value; - if ((this.Adapter.InsertCommand != null)) { - this.Adapter.InsertCommand.Connection = value; - } - if ((this.Adapter.DeleteCommand != null)) { - this.Adapter.DeleteCommand.Connection = value; - } - if ((this.Adapter.UpdateCommand != null)) { - this.Adapter.UpdateCommand.Connection = value; - } - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - if ((this.CommandCollection[i] != null)) { - ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; - } - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal global::System.Data.SqlClient.SqlTransaction Transaction { - get { - return this._transaction; - } - set { - this._transaction = value; - for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { - this.CommandCollection[i].Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.DeleteCommand != null))) { - this.Adapter.DeleteCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.InsertCommand != null))) { - this.Adapter.InsertCommand.Transaction = this._transaction; - } - if (((this.Adapter != null) - && (this.Adapter.UpdateCommand != null))) { - this.Adapter.UpdateCommand.Transaction = this._transaction; - } - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { - get { - if ((this._commandCollection == null)) { - this.InitCommandCollection(); - } - return this._commandCollection; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool ClearBeforeFill { - get { - return this._clearBeforeFill; - } - set { - this._clearBeforeFill = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private void InitAdapter() { - this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); - global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); - tableMapping.SourceTable = "Table"; - tableMapping.DataSetTable = "FC_AveScoreView"; - tableMapping.ColumnMappings.Add("ID", "ID"); - tableMapping.ColumnMappings.Add("Contract_NO", "Contract_NO"); - tableMapping.ColumnMappings.Add("Description", "Description"); - tableMapping.ColumnMappings.Add("Contractor", "Contractor"); - tableMapping.ColumnMappings.Add("Preparation", "Preparation"); - tableMapping.ColumnMappings.Add("Performance", "Performance"); - tableMapping.ColumnMappings.Add("EHSS", "EHSS"); - tableMapping.ColumnMappings.Add("Quality_Control", "Quality_Control"); - tableMapping.ColumnMappings.Add("TimeLine_Management", "TimeLine_Management"); - tableMapping.ColumnMappings.Add("Documentation", "Documentation"); - tableMapping.ColumnMappings.Add("HonestyTimely", "HonestyTimely"); - tableMapping.ColumnMappings.Add("Main_Coordinator", "Main_Coordinator"); - tableMapping.ColumnMappings.Add("User_Representative", "User_Representative"); - tableMapping.ColumnMappings.Add("CTS", "CTS"); - tableMapping.ColumnMappings.Add("CTM_T", "CTM_T"); - tableMapping.ColumnMappings.Add("StartTime", "StartTime"); - tableMapping.ColumnMappings.Add("EndTime", "EndTime"); - tableMapping.ColumnMappings.Add("CHA", "CHA"); - tableMapping.ColumnMappings.Add("CTE_D", "CTE_D"); - this._adapter.TableMappings.Add(tableMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private void InitConnection() { - this._connection = new global::System.Data.SqlClient.SqlConnection(); - this._connection.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["FCLDBConnectionString"].ConnectionString; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1]; - this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); - this._commandCollection[0].Connection = this.Connection; - this._commandCollection[0].CommandText = "SELECT ID, Contract_NO, Description, Contractor, Preparation, Performance, EHSS, " + - "Quality_Control, TimeLine_Management, Documentation, HonestyTimely, Main_Coordin" + - "ator, User_Representative, CTS, CTM_T, StartTime, EndTime, CHA, CTE_D FROM dbo.F" + - "C_AveScoreView"; - this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] - public virtual int Fill(ScoreDataSet.FC_AveScoreViewDataTable dataTable) { - this.Adapter.SelectCommand = this.CommandCollection[0]; - if ((this.ClearBeforeFill == true)) { - dataTable.Clear(); - } - int returnValue = this.Adapter.Fill(dataTable); - return returnValue; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] - public virtual ScoreDataSet.FC_AveScoreViewDataTable GetData() { - this.Adapter.SelectCommand = this.CommandCollection[0]; - ScoreDataSet.FC_AveScoreViewDataTable dataTable = new ScoreDataSet.FC_AveScoreViewDataTable(); - this.Adapter.Fill(dataTable); - return dataTable; - } - } - - /// - ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios - /// - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + - "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] - public partial class TableAdapterManager : global::System.ComponentModel.Component { - - private UpdateOrderOption _updateOrder; - - private bool _backupDataSetBeforeUpdate; - - private global::System.Data.IDbConnection _connection; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public UpdateOrderOption UpdateOrder { - get { - return this._updateOrder; - } - set { - this._updateOrder = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public bool BackupDataSetBeforeUpdate { - get { - return this._backupDataSetBeforeUpdate; - } - set { - this._backupDataSetBeforeUpdate = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public global::System.Data.IDbConnection Connection { - get { - if ((this._connection != null)) { - return this._connection; - } - return null; - } - set { - this._connection = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - [global::System.ComponentModel.Browsable(false)] - public int TableAdapterInstanceCount { - get { - int count = 0; - return count; - } - } - - /// - ///Update rows in top-down order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private int UpdateUpdatedRows(ScoreDataSet dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { - int result = 0; - return result; - } - - /// - ///Insert rows in top-down order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private int UpdateInsertedRows(ScoreDataSet dataSet, global::System.Collections.Generic.List allAddedRows) { - int result = 0; - return result; - } - - /// - ///Delete rows in bottom-up order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private int UpdateDeletedRows(ScoreDataSet dataSet, global::System.Collections.Generic.List allChangedRows) { - int result = 0; - return result; - } - - /// - ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { - if (((updatedRows == null) - || (updatedRows.Length < 1))) { - return updatedRows; - } - if (((allAddedRows == null) - || (allAddedRows.Count < 1))) { - return updatedRows; - } - global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); - for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { - global::System.Data.DataRow row = updatedRows[i]; - if ((allAddedRows.Contains(row) == false)) { - realUpdatedRows.Add(row); - } - } - return realUpdatedRows.ToArray(); - } - - /// - ///Update all changes to the dataset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public virtual int UpdateAll(ScoreDataSet dataSet) { - if ((dataSet == null)) { - throw new global::System.ArgumentNullException("dataSet"); - } - if ((dataSet.HasChanges() == false)) { - return 0; - } - global::System.Data.IDbConnection workConnection = this.Connection; - if ((workConnection == null)) { - throw new global::System.ApplicationException("TableAdapterManager 不包含任何连接信息。请将每个 TableAdapterManager TableAdapter 属性设置为有效的 Tabl" + - "eAdapter 实例。"); - } - bool workConnOpened = false; - if (((workConnection.State & global::System.Data.ConnectionState.Broken) - == global::System.Data.ConnectionState.Broken)) { - workConnection.Close(); - } - if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { - workConnection.Open(); - workConnOpened = true; - } - global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); - if ((workTransaction == null)) { - throw new global::System.ApplicationException("事务无法开始。当前的数据连接不支持事务或当前状态不允许事务开始。"); - } - global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); - global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); - global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); - global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); - int result = 0; - global::System.Data.DataSet backupDataSet = null; - if (this.BackupDataSetBeforeUpdate) { - backupDataSet = new global::System.Data.DataSet(); - backupDataSet.Merge(dataSet); - } - try { - // ---- Prepare for update ----------- - // - // - //---- Perform updates ----------- - // - if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { - result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); - result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); - } - else { - result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); - result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); - } - result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); - // - //---- Commit updates ----------- - // - workTransaction.Commit(); - if ((0 < allAddedRows.Count)) { - global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; - allAddedRows.CopyTo(rows); - for (int i = 0; (i < rows.Length); i = (i + 1)) { - global::System.Data.DataRow row = rows[i]; - row.AcceptChanges(); - } - } - if ((0 < allChangedRows.Count)) { - global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; - allChangedRows.CopyTo(rows); - for (int i = 0; (i < rows.Length); i = (i + 1)) { - global::System.Data.DataRow row = rows[i]; - row.AcceptChanges(); - } - } - } - catch (global::System.Exception ex) { - workTransaction.Rollback(); - // ---- Restore the dataset ----------- - if (this.BackupDataSetBeforeUpdate) { - global::System.Diagnostics.Debug.Assert((backupDataSet != null)); - dataSet.Clear(); - dataSet.Merge(backupDataSet); - } - else { - if ((0 < allAddedRows.Count)) { - global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; - allAddedRows.CopyTo(rows); - for (int i = 0; (i < rows.Length); i = (i + 1)) { - global::System.Data.DataRow row = rows[i]; - row.AcceptChanges(); - row.SetAdded(); - } - } - } - throw ex; - } - finally { - if (workConnOpened) { - workConnection.Close(); - } - if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { - global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; - adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); - for (int i = 0; (i < adapters.Length); i = (i + 1)) { - global::System.Data.Common.DataAdapter adapter = adapters[i]; - adapter.AcceptChangesDuringUpdate = true; - } - } - } - return result; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { - global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { - if ((this._connection != null)) { - return true; - } - if (((this.Connection == null) - || (inputConnection == null))) { - return true; - } - if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { - return true; - } - return false; - } - - /// - ///Update Order Option - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public enum UpdateOrderOption { - - InsertUpdateDelete = 0, - - UpdateInsertDelete = 1, - } - - /// - ///Used to sort self-referenced table's rows - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { - - private global::System.Data.DataRelation _relation; - - private int _childFirst; - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { - this._relation = relation; - if (childFirst) { - this._childFirst = -1; - } - else { - this._childFirst = 1; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { - global::System.Diagnostics.Debug.Assert((row != null)); - global::System.Data.DataRow root = row; - distance = 0; - - global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); - traversedRows[row] = row; - - global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); - for ( - ; ((parent != null) - && (traversedRows.ContainsKey(parent) == false)); - ) { - distance = (distance + 1); - root = parent; - traversedRows[parent] = parent; - parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); - } - - if ((distance == 0)) { - traversedRows.Clear(); - traversedRows[row] = row; - parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); - for ( - ; ((parent != null) - && (traversedRows.ContainsKey(parent) == false)); - ) { - distance = (distance + 1); - root = parent; - traversedRows[parent] = parent; - parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); - } - } - - return root; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] - public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { - if (object.ReferenceEquals(row1, row2)) { - return 0; - } - if ((row1 == null)) { - return -1; - } - if ((row2 == null)) { - return 1; - } - - int distance1 = 0; - global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); - - int distance2 = 0; - global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); - - if (object.ReferenceEquals(root1, root2)) { - return (this._childFirst * distance1.CompareTo(distance2)); - } - else { - global::System.Diagnostics.Debug.Assert(((root1.Table != null) - && (root2.Table != null))); - if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { - return -1; - } - else { - return 1; - } - } - } - } - } -} - -#pragma warning restore 1591 \ No newline at end of file diff --git a/FCL/FineUIPro.Web/SES/CSafePunish.aspx b/FCL/FineUIPro.Web/SES/CSafePunish.aspx index 0529933..e3c0cf2 100644 --- a/FCL/FineUIPro.Web/SES/CSafePunish.aspx +++ b/FCL/FineUIPro.Web/SES/CSafePunish.aspx @@ -99,6 +99,9 @@ + + @@ -112,9 +115,12 @@ - + + @@ -138,7 +144,7 @@ diff --git a/FCL/FineUIPro.Web/SES/CSafePunish.aspx.cs b/FCL/FineUIPro.Web/SES/CSafePunish.aspx.cs index 47cc457..07f592b 100644 --- a/FCL/FineUIPro.Web/SES/CSafePunish.aspx.cs +++ b/FCL/FineUIPro.Web/SES/CSafePunish.aspx.cs @@ -180,7 +180,7 @@ namespace FineUIPro.Web.SES protected void btnEmail_Click(object sender, EventArgs e) { List pList = (from x in Funs.DB.View_EMC_Punishment - where x.Flag == "1" + where x.Flag == "1" && x.EmailIsSend == "否" && x.BYCRU != null && x.BYCRU.ToLower() != "none" && (x.PunishDate.Value.Year + x.PunishDate.Value.Month) == (DateTime.Now.Year + DateTime.Now.Month) select x).ToList(); if (pList.Count()>0) @@ -255,10 +255,16 @@ namespace FineUIPro.Web.SES string mailSubject = TemplateHelper.BulidByFile2(EmailName, myCol1); result = MailHelper.SendPunishMail(pops, pops.EmailYx, mailTo, mailSubject, mailBody, mailAttch, mailCode, mailPriority, mailCC, pList, out resultMessage); + // 发送成功后写入表中 if (result == true) { - //p.EmailIsSend = true; - //Funs.DB.SubmitChanges(); + foreach (var p in pList) + { + var punish = BLL.PunishmentService.GetPunishmentById(p.PunishmentId); + punish.EmailIsSend = true; + Funs.DB.SubmitChanges(); + } + ShowNotify("Email sent successfully!", MessageBoxIcon.Success); } else @@ -494,26 +500,40 @@ namespace FineUIPro.Web.SES if (reportModel.GetRow(i).GetCell(15) == null) reportModel.GetRow(i).CreateCell(15); reportModel.GetRow(i).GetCell(15).SetCellValue(Grid1.Rows[i - 1].Values[16].ToString()); reportModel.GetRow(i).GetCell(15).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 - // Violation Inspector + + // BYC Resp Manager if (reportModel.GetRow(i).GetCell(16) == null) reportModel.GetRow(i).CreateCell(16); reportModel.GetRow(i).GetCell(16).SetCellValue(Grid1.Rows[i - 1].Values[17].ToString()); reportModel.GetRow(i).GetCell(16).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 - // Inspection Department + + // Violation Inspector if (reportModel.GetRow(i).GetCell(17) == null) reportModel.GetRow(i).CreateCell(17); reportModel.GetRow(i).GetCell(17).SetCellValue(Grid1.Rows[i - 1].Values[18].ToString()); reportModel.GetRow(i).GetCell(17).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 - // Backcharge SES No. + // Inspection Department if (reportModel.GetRow(i).GetCell(18) == null) reportModel.GetRow(i).CreateCell(18); reportModel.GetRow(i).GetCell(18).SetCellValue(Grid1.Rows[i - 1].Values[19].ToString()); reportModel.GetRow(i).GetCell(18).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 - // Backcharge Completion Date + // Backcharge SES No. if (reportModel.GetRow(i).GetCell(19) == null) reportModel.GetRow(i).CreateCell(19); - if (Grid1.Rows[i - 1].Values[20] != null && Grid1.Rows[i - 1].Values[20].ToString() != "") + reportModel.GetRow(i).GetCell(19).SetCellValue(Grid1.Rows[i - 1].Values[20].ToString()); + reportModel.GetRow(i).GetCell(19).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 + // Backcharge Completion Date + if (reportModel.GetRow(i).GetCell(20) == null) reportModel.GetRow(i).CreateCell(20); + if (Grid1.Rows[i - 1].Values[21] != null && Grid1.Rows[i - 1].Values[21].ToString() != "") { - DateTime cdate = Convert.ToDateTime(Grid1.Rows[i - 1].Values[20]); - reportModel.GetRow(i).GetCell(19).SetCellValue(cdate.ToString("yyyy/MM/dd")); - reportModel.GetRow(i).GetCell(19).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 + DateTime cdate = Convert.ToDateTime(Grid1.Rows[i - 1].Values[21]); + reportModel.GetRow(i).GetCell(20).SetCellValue(cdate.ToString("yyyy/MM/dd")); + reportModel.GetRow(i).GetCell(20).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 } + // Violation Related SES + if (reportModel.GetRow(i).GetCell(21) == null) reportModel.GetRow(i).CreateCell(21); + reportModel.GetRow(i).GetCell(21).SetCellValue(Grid1.Rows[i - 1].Values[22].ToString()); + reportModel.GetRow(i).GetCell(21).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式 + // If send mail + if (reportModel.GetRow(i).GetCell(22) == null) reportModel.GetRow(i).CreateCell(22); + reportModel.GetRow(i).GetCell(22).SetCellValue(Grid1.Rows[i - 1].Values[23].ToString()); + reportModel.GetRow(i).GetCell(22).CellStyle.SetFont(cs_content_Font); #endregion } diff --git a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx index 0cda80a..1d69937 100644 --- a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx +++ b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx @@ -13,7 +13,7 @@ - + @@ -95,25 +95,24 @@ - + - + - + - + + - + - - - + diff --git a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs index d4a6b0b..ffde54b 100644 --- a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs +++ b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs @@ -36,17 +36,8 @@ namespace FineUIPro.Web.SES { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); string view = Request.Params["view"]; - if (view == "1") - { - this.btnSave.Hidden = true; - } - else - { - GetButtonPower();//按钮权限 - } - + var role = BLL.Sys_RoleService.GetRole(CurrUser.RoleId); - if (role != null && role.RoleName == "Contract Administrator") { txtSESNo.Required = true; @@ -64,7 +55,7 @@ namespace FineUIPro.Web.SES // BLL.SESRelatedDataService.InitFONoDropDownList(this.drpFO_No, true);//合同号 BLL.ContractorService.InitDropDownList(drpContractor, true); //承包商; - BLL.DepartService.InitDropDownList(this.drpBYC_RU, true);//BYC负责部门 + BLL.DepartService.InitDepartToWhere(this.drpBYC_RU, true);//BYC负责部门 BLL.Sys_UserService.InitUserDropDownList(this.drpViolationInspector, true);//违章检查人 txtViolationRelatedSes.Enabled = false; @@ -102,6 +93,16 @@ namespace FineUIPro.Web.SES txtMainCoordinator.Text = punishment.Main_Coordinator; txtMCDept.Text = punishment.MCDept; txtUserRepresentative.Text = punishment.User_Representative; + if (punishment.SelectYesNo != null) + { + drpSelectYesNo.SelectedValue = punishment.SelectYesNo == true ? "True" : "False"; + } + else + { + drpSelectYesNo.SelectedValue = ""; + } + + txtDef.Text= punishment.Def; if (!string.IsNullOrEmpty(punishment.BYC_RU)) { @@ -119,18 +120,17 @@ namespace FineUIPro.Web.SES { btnSave.Hidden = false; txtViolationRelatedSes.Enabled = true; + drpSelectYesNo.Enabled = true; + txtDef.Enabled = true; } else { btnSave.Hidden = true; txtViolationRelatedSes.Enabled = false; + drpSelectYesNo.Enabled = false; + txtDef.Enabled = false; } - //if (!string.IsNullOrEmpty(punishment.ViolationRelatedSes)) - //{ - // SetReadonly(false); - //} - this.txtCompletionDate.Text = punishment.CompletionDate != null ? string.Format("{0:yyyy-MM-dd}", punishment.CompletionDate) : ""; this.txtSESNo.Text = punishment.SES_No; txtViolationRelatedSes.Text = punishment.ViolationRelatedSes; @@ -140,6 +140,15 @@ namespace FineUIPro.Web.SES { } + + if (view == "1") + { + this.btnSave.Hidden = true; + } + else + { + GetButtonPower();//按钮权限 + } } } #endregion @@ -186,6 +195,15 @@ namespace FineUIPro.Web.SES return; } + if (!string.IsNullOrEmpty(PunishmentId)) + { + var punishment = BLL.PunishmentService.GetPunishmentById(PunishmentId); + if ((this.CurrUser.DepartId == punishment.BYC_RU || this.CurrUser.Account == Const.Gly) && this.drpSelectYesNo.SelectedValue == "") + { + Alert.ShowInTop("请选择是否有关联SES!", MessageBoxIcon.Warning); + return; + } + } if (PunishmentId == null) { PunishmentId = string.Empty; @@ -260,6 +278,14 @@ namespace FineUIPro.Web.SES { punishment.Violation_Inspector = drpViolationInspector.SelectedValue; } + if (drpSelectYesNo.SelectedValue != "") + { + punishment.SelectYesNo = Convert.ToBoolean(drpSelectYesNo.SelectedValue); + } + if (txtDef.Text != "") + { + punishment.Def = txtDef.Text.Trim(); + } punishment.ViolationRelatedSes = txtViolationRelatedSes.Text.Trim(); punishment.CompletionDate = Funs.GetNewDateTime(this.txtCompletionDate.Text.Trim()); punishment.Flag = "1"; @@ -370,6 +396,24 @@ namespace FineUIPro.Web.SES } } + protected void drpSelectYesNo_SelectedIndexChanged(object sender, EventArgs e) + { + if (drpSelectYesNo.SelectedValue == "True") + { + txtViolationRelatedSes.Readonly = false; + txtViolationRelatedSes.ShowRedStar = true; + txtViolationRelatedSes.Required = true; + } + else + { + txtViolationRelatedSes.Readonly = true; + txtViolationRelatedSes.ShowRedStar = false; + txtViolationRelatedSes.Required = false; + txtDef.ShowRedStar = true; + txtDef.Required = true; + } + } + protected void txtPunish_OnTextChanged(object sender, EventArgs e) { decimal? numCompany = 0; diff --git a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.designer.cs b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.designer.cs index c3ba633..0221a86 100644 --- a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.designer.cs +++ b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.SES { - - - public partial class CSafePunishEdit { - +namespace FineUIPro.Web.SES +{ + + + public partial class CSafePunishEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtPunishDate 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPunishDate; - + /// /// txtPunishTime 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPunishTime; - + /// /// drpContractor 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpContractor; - + /// /// drpFO_No 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpFO_No; - + /// /// txtDiscispline 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtDiscispline; - + /// /// txtLocation 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLocation; - + /// /// txtDescription 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtDescription; - + /// /// txtCompany 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox txtCompany; - + /// /// txtIndividual 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox txtIndividual; - + /// /// txtBackcharge 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.NumberBox txtBackcharge; - + /// /// drpViolationDegree 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpViolationDegree; - + /// /// txtContractAdmin 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtContractAdmin; - + /// /// txtMainCoordinator 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMainCoordinator; - + /// /// txtMCDept 控件。 /// @@ -164,7 +166,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMCDept; - + /// /// txtUserRepresentative 控件。 /// @@ -173,7 +175,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtUserRepresentative; - + /// /// drpBYC_RU 控件。 /// @@ -182,7 +184,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpBYC_RU; - + /// /// drpViolationInspector 控件。 /// @@ -191,7 +193,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpViolationInspector; - + /// /// txtInspectionDep 控件。 /// @@ -200,7 +202,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtInspectionDep; - + /// /// GPRole 控件。 /// @@ -209,7 +211,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GPRole; - + /// /// txtSESNo 控件。 /// @@ -218,7 +220,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSESNo; - + /// /// txtCompletionDate 控件。 /// @@ -227,7 +229,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCompletionDate; - + /// /// GPDep 控件。 /// @@ -236,16 +238,16 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GPDep; - + /// - /// SelectYesNo 控件。 + /// drpSelectYesNo 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList SelectYesNo; - + protected global::FineUIPro.DropDownList drpSelectYesNo; + /// /// txtViolationRelatedSes 控件。 /// @@ -254,16 +256,16 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtViolationRelatedSes; - + /// - /// Def 控件。 + /// txtDef 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox Def; - + protected global::FineUIPro.TextBox txtDef; + /// /// Toolbar1 控件。 /// @@ -272,7 +274,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// btnSave 控件。 /// @@ -281,7 +283,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnClose 控件。 /// diff --git a/FCL/Model/Model.cs b/FCL/Model/Model.cs index 801efc7..d31f40b 100644 --- a/FCL/Model/Model.cs +++ b/FCL/Model/Model.cs @@ -9727,6 +9727,10 @@ namespace Model private string _ViolationRelatedSes; + private System.Nullable _SelectYesNo; + + private string _Def; + private EntityRef _Base_Depart; private EntityRef _Sys_User; @@ -9767,6 +9771,10 @@ namespace Model partial void OnEmailIsSendChanged(); partial void OnViolationRelatedSesChanging(string value); partial void OnViolationRelatedSesChanged(); + partial void OnSelectYesNoChanging(System.Nullable value); + partial void OnSelectYesNoChanged(); + partial void OnDefChanging(string value); + partial void OnDefChanged(); #endregion public EMC_Punishment() @@ -10104,6 +10112,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SelectYesNo", DbType="Bit")] + public System.Nullable SelectYesNo + { + get + { + return this._SelectYesNo; + } + set + { + if ((this._SelectYesNo != value)) + { + this.OnSelectYesNoChanging(value); + this.SendPropertyChanging(); + this._SelectYesNo = value; + this.SendPropertyChanged("SelectYesNo"); + this.OnSelectYesNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Def", DbType="NVarChar(300)")] + public string Def + { + get + { + return this._Def; + } + set + { + if ((this._Def != value)) + { + this.OnDefChanging(value); + this.SendPropertyChanging(); + this._Def = value; + this.SendPropertyChanged("Def"); + this.OnDefChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_EMC_Punishment_Base_Depart", Storage="_Base_Depart", ThisKey="BYC_RU", OtherKey="DepartId", IsForeignKey=true)] public Base_Depart Base_Depart { @@ -27390,6 +27438,8 @@ namespace Model private string _BYCRU; + private string _BYCRULeader; + private string _Violation_Inspector_Name; private string _InspectionDep; @@ -27402,6 +27452,12 @@ namespace Model private string _Flag; + private System.Nullable _SelectYesNo; + + private string _Def; + + private string _EmailIsSend; + public View_EMC_Punishment() { } @@ -27806,6 +27862,22 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BYCRULeader", DbType="NVarChar(50)")] + public string BYCRULeader + { + get + { + return this._BYCRULeader; + } + set + { + if ((this._BYCRULeader != value)) + { + this._BYCRULeader = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Violation_Inspector_Name", DbType="NVarChar(50)")] public string Violation_Inspector_Name { @@ -27901,6 +27973,54 @@ namespace Model } } } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SelectYesNo", DbType="Bit")] + public System.Nullable SelectYesNo + { + get + { + return this._SelectYesNo; + } + set + { + if ((this._SelectYesNo != value)) + { + this._SelectYesNo = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Def", DbType="NVarChar(300)")] + public string Def + { + get + { + return this._Def; + } + set + { + if ((this._Def != value)) + { + this._Def = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmailIsSend", DbType="VarChar(2) NOT NULL", CanBeNull=false)] + public string EmailIsSend + { + get + { + return this._EmailIsSend; + } + set + { + if ((this._EmailIsSend != value)) + { + this._EmailIsSend = value; + } + } + } } [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_ExtremeScoresReport")] diff --git a/FCL/WebApi/WebApi.csproj.user b/FCL/WebApi/WebApi.csproj.user index ca0d73e..643f3e5 100644 --- a/FCL/WebApi/WebApi.csproj.user +++ b/FCL/WebApi/WebApi.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU