diff --git a/CreateModel2017local.bat b/CreateModel2017local.bat index 1496eda..fa95c29 100644 --- a/CreateModel2017local.bat +++ b/CreateModel2017local.bat @@ -27,7 +27,7 @@ REM -------------- @echo. @call "%VS150%" -SqlMetal /views /server:DESKTOP-MEED9GU\SQLSERVER /user:sa /password:303303 /database:SGGLDB_HBAZ /code:%Model_ROOT%\Model.cs /namespace:Model +SqlMetal /views /server:47.104.102.122,14333 /user:sa /password:p@ssw0rd /database:SGGLDB_HBAZ /code:%Model_ROOT%\Model.cs /namespace:Model @ECHO 完成 pause diff --git a/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs b/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs index 58dd30a..64a621e 100644 --- a/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs +++ b/SGGL/BLL/API/HSSE/APIHazardRegisterService.cs @@ -157,9 +157,7 @@ namespace BLL { DateTime mdate = Funs.GetNewDateTimeOrNow(date); var hazardRegisters = (from x in db.HSSE_Hazard_HazardRegister - //join y in db.Base_Project on x.ProjectId equals projectId - where x.ProjectId == projectId - && x.CheckTime.Value.Year == mdate.Year + where x.CheckTime.Value.Year == mdate.Year && x.CheckTime.Value.Month == mdate.Month && x.CheckTime.Value.Day == mdate.Day select new Model.HazardRegisterItem @@ -181,6 +179,10 @@ namespace BLL Risk_Level = x.Risk_Level, }).OrderBy(x => x.CheckTime).ToList(); + if (String.IsNullOrEmpty(projectId)) + { + hazardRegisters.Where(p => p.ProjectId == projectId); + } return hazardRegisters; } } diff --git a/SGGL/BLL/CQMS/Check/CheckControlService.cs b/SGGL/BLL/CQMS/Check/CheckControlService.cs index f070b3f..b220266 100644 --- a/SGGL/BLL/CQMS/Check/CheckControlService.cs +++ b/SGGL/BLL/CQMS/Check/CheckControlService.cs @@ -1,17 +1,88 @@ -锘縰sing Model; -using System; -using System.Collections; +锘縰sing System; using System.Collections.Generic; using System.Globalization; using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Web.UI.WebControls; namespace BLL { public class CheckControlService { + + #region 璐ㄩ噺宸℃鍒楄〃 + public static Object GetListDataForApi(string state, string name, string projectId, int index, int page) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var list = db.Check_CheckControl.Select(x => new { + CheckControlCode = x.CheckControlCode, + DocCode = x.DocCode, + ProjectId = x.ProjectId, + States = x.State, + CheckSite = x.CheckSite, + QuestionDef = x.QuestionDef, + CheckDate = String.Format("{0:yyyy-MM-dd}", x.CheckDate), + LimitDate = String.Format("{0:yyyy-MM-dd}", x.LimitDate), + RectifyOpinion = x.RectifyOpinion, + CheckMan = x.CheckMan, + UnitWorkId = x.UnitWorkId, + UnitWorkName = (from y in db.WBS_UnitWork where y.UnitWorkId == x.UnitWorkId select y.UnitWorkName).First(), + CheckManName = (from y in db.Sys_User where y.UserId == x.CheckMan select y.UserName).First(), + PrincipalMan = x.DutyMan, + PrincipalManName = db.Sys_User.FirstOrDefault(e => e.UserId == x.DutyMan).UserName, + CNProfessionalCode = x.CNProfessionalCode, + CNProfessionalCodeName = db.Base_CNProfessional.FirstOrDefault(e => e.CNProfessionalId == x.CNProfessionalCode).ProfessionalName, + QuestionType = x.QuestionType, + QuestionTypeName = db.Base_QualityQuestionType.FirstOrDefault(e => e.QualityQuestionTypeId == x.QuestionType).QualityQuestionType, + }).Where(e => e.ProjectId == projectId); + if (state != "0") + { + list = list.Where(x => x.States == state); + } + return list.ToList().Skip(index * page).Take(page); + } + } + #endregion + + #region 璐ㄩ噺宸℃璇︾粏 + public static object GetCheckControlForApi(string CheckControlCode) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + object x = db.Check_CheckControl.Select(x => new { + CheckControlCode = x.CheckControlCode, + ProjectId = x.ProjectId, + ProjectName = db.Base_Project.FirstOrDefault(p => p.ProjectId == x.ProjectId).ProjectName, + DocCode = x.DocCode, + States = x.State, + CheckSite = x.CheckSite, + QuestionDef = x.QuestionDef, + CheckDate = String.Format("{0:yyyy-MM-dd}", x.CheckDate), + LimitDate = String.Format("{0:yyyy-MM-dd}", x.LimitDate), + RectifyOpinion = x.RectifyOpinion, + CheckMan = x.CheckMan, + UnitWorkId = x.UnitWorkId, + AttachUrl = x.AttachUrl, + HandleWay = x.HandleWay, + RectifyDate = String.Format("{0:yyyy-MM-dd}", x.RectifyDate), + ReAttachUrl = x.ReAttachUrl, + IsOk = x.IsOK, + OKDescr = x.OKDescr, + UnitWorkName = (from y in db.WBS_UnitWork where y.UnitWorkId == x.UnitWorkId select y.UnitWorkName).First(), + CheckManName = (from y in db.Sys_User where y.UserId == x.CheckMan select y.UserName).First(), + PrincipalMan = x.DutyMan, + PrincipalManName = db.Sys_User.FirstOrDefault(e => e.UserId == x.DutyMan).UserName, + CNProfessionalCode = x.CNProfessionalCode, + CNProfessionalCodeName = db.Base_CNProfessional.FirstOrDefault(e => e.CNProfessionalId == x.CNProfessionalCode).ProfessionalName, + QuestionType = x.QuestionType, + QuestionTypeName = db.Base_QualityQuestionType.FirstOrDefault(e => e.QualityQuestionTypeId == x.QuestionType).QualityQuestionType, + }).FirstOrDefault(e => e.CheckControlCode == CheckControlCode); + + return x; + } + + } + #endregion + public static Model.SGGLDB db = Funs.DB; /// /// 鏍规嵁璐ㄩ噺妫鏌ヤ笌鎺у埗Id鍒犻櫎涓涓川閲忔鏌ヤ笌鎺у埗淇℃伅 @@ -50,7 +121,7 @@ namespace BLL { dropName.DataValueField = "Value"; dropName.DataTextField = "Text"; - dropName.DataSource = GetDHandleTypeByState(state); + //dropName.DataSource = GetDHandleTypeByState(state); dropName.DataBind(); if (isShowPlease) { @@ -73,7 +144,6 @@ namespace BLL newCheckControl.UnitId = CheckControl.UnitId; newCheckControl.CheckDate = CheckControl.CheckDate; newCheckControl.CheckMan = CheckControl.CheckMan; - newCheckControl.IsSubmit = CheckControl.IsSubmit; newCheckControl.SubmitMan = CheckControl.SubmitMan; newCheckControl.CNProfessionalCode = CheckControl.CNProfessionalCode; newCheckControl.QuestionType = CheckControl.QuestionType; @@ -86,7 +156,7 @@ namespace BLL newCheckControl.RectifyDate = CheckControl.RectifyDate; newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl; newCheckControl.State = CheckControl.State; - newCheckControl.SaveHandleMan = CheckControl.SaveHandleMan; + newCheckControl.DutyMan = CheckControl.DutyMan; db.Check_CheckControl.InsertOnSubmit(newCheckControl); db.SubmitChanges(); @@ -104,7 +174,6 @@ namespace BLL newCheckControl.UnitId = CheckControl.UnitId; newCheckControl.CheckDate = CheckControl.CheckDate; newCheckControl.CheckMan = CheckControl.CheckMan; - newCheckControl.IsSubmit = CheckControl.IsSubmit; newCheckControl.SubmitMan = CheckControl.SubmitMan; newCheckControl.CNProfessionalCode = CheckControl.CNProfessionalCode; newCheckControl.QuestionType = CheckControl.QuestionType; @@ -117,7 +186,7 @@ namespace BLL newCheckControl.RectifyDate = CheckControl.RectifyDate; newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl; newCheckControl.State = CheckControl.State; - newCheckControl.SaveHandleMan = CheckControl.SaveHandleMan; + newCheckControl.DutyMan = CheckControl.DutyMan; db.Check_CheckControl.InsertOnSubmit(newCheckControl); db.SubmitChanges(); @@ -131,88 +200,59 @@ namespace BLL { return Funs.DB.Check_CheckControl.FirstOrDefault(e => e.CheckControlCode == CheckControlCode); } - public static Model.Check_CheckControl GetCheckControlForApi(string CheckControlCode) - { - using (var db = new Model.SGGLDB(Funs.ConnString)) - { - Model.Check_CheckControl x = db.Check_CheckControl.FirstOrDefault(e => e.CheckControlCode == CheckControlCode); - x.AttachUrl = AttachFileService.getFileUrl(x.CheckControlCode); - x.ReAttachUrl = AttachFileService.getFileUrl(x.CheckControlCode + "r"); - x.QuestionType = x.QuestionType + "$" + BLL.QualityQuestionTypeService.GetQualityQuestionType(x.QuestionType).QualityQuestionType; - var unit = UnitService.GetUnitByUnitId(x.UnitId); - x.UnitId = x.UnitId + "$" + unit.UnitName; - var ppunit = UnitService.GetUnitByUnitId(x.ProposeUnitId); - var punit = ProjectUnitService.GetProjectUnitByUnitIdProjectId(x.ProjectId, x.ProposeUnitId); - if (punit != null) - { - x.ProposeUnitId = x.ProposeUnitId + "$" + ppunit.UnitName + "$" + punit.UnitType; - } - else - { - x.ProposeUnitId = x.ProposeUnitId + "$" + "$"; - - } - Sys_User checkMen = UserService.GetUserByUserId(x.CheckMan); - - x.CheckMan = (checkMen != null ? checkMen.UserName : "") + "$" + UnitWorkService.GetNameById(x.UnitWorkId) + "$" + ConvertManAndID(x.CheckControlCode); - - x.CNProfessionalCode = x.CNProfessionalCode + "$" + CNProfessionalService.GetCNProfessionalNameByCode(x.CNProfessionalCode); - return x; - } - - } + /// /// 鏍规嵁鐘舵侀夋嫨涓嬩竴姝ュ姙鐞嗙被鍨 /// /// /// - public static ListItem[] GetDHandleTypeByState(string state) - { - if (state == Const.CheckControl_Compile || state == Const.CheckControl_ReCompile) //鏃犳槸鍚﹀悓鎰 - { - ListItem[] lis = new ListItem[2]; - lis[0] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堝洖澶", Const.CheckControl_Audit2); - lis[1] = new ListItem("鎬诲寘璐熻矗浜哄鏍", Const.CheckControl_Audit1); - return lis; - } - else if (state == Const.CheckControl_Audit1)//鏈夋槸鍚﹀悓鎰 - { - ListItem[] lis = new ListItem[2]; - lis[0] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堝洖澶", Const.CheckControl_Audit2);//鏄 鍔犺浇 - lis[1] = new ListItem("閲嶆柊缂栧埗", Const.CheckControl_ReCompile);//鍚﹀姞杞 - return lis; - } - else if (state == Const.CheckControl_Audit2 || state == Const.CheckControl_ReCompile2)//鏃犳槸鍚﹀悓鎰 - { - ListItem[] lis = new ListItem[1]; - lis[0] = new ListItem("鎬诲寘涓撲笟宸ョ▼甯堢‘璁", Const.CheckControl_Audit4); - return lis; - } - else if (state == Const.CheckControl_Audit3)//鏈夋槸鍚﹀悓鎰 - { - ListItem[] lis = new ListItem[2]; - lis[0] = new ListItem("鎬诲寘涓撲笟宸ョ▼甯堢‘璁", Const.CheckControl_Audit4);//鏄 鍔犺浇 - lis[1] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堥噸鏂板洖澶", Const.CheckControl_ReCompile2);//鍚﹀姞杞 - return lis; - } - else if (state == Const.CheckControl_Audit4)//鏈夋槸鍚﹀悓鎰 - { - ListItem[] lis = new ListItem[2]; - // lis[0] = new ListItem("鎬诲寘璐熻矗浜虹‘璁", Const.CheckControl_Audit5);//鏄 鍔犺浇 - lis[0] = new ListItem("瀹℃壒瀹屾垚", Const.CheckControl_Complete);//鏄 鍔犺浇 - lis[1] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堥噸鏂板洖澶", Const.CheckControl_ReCompile2);//鍚﹀姞杞 - return lis; - } - else if (state == Const.CheckControl_Audit5)//鏈夋槸鍚﹀悓鎰 - { - ListItem[] lis = new ListItem[2]; - lis[0] = new ListItem("瀹℃壒瀹屾垚", Const.CheckControl_Complete);//鏄 鍔犺浇 - lis[1] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堥噸鏂板洖澶", Const.CheckControl_ReCompile2);//鍚﹀姞杞 - return lis; - } - else - return null; - } + //public static ListItem[] GetDHandleTypeByState(string state) + //{ + // if (state == Const.CheckControl_Compile || state == Const.CheckControl_ReCompile) //鏃犳槸鍚﹀悓鎰 + // { + // ListItem[] lis = new ListItem[2]; + // lis[0] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堝洖澶", Const.CheckControl_Audit2); + // lis[1] = new ListItem("鎬诲寘璐熻矗浜哄鏍", Const.CheckControl_Audit1); + // return lis; + // } + // else if (state == Const.CheckControl_Audit1)//鏈夋槸鍚﹀悓鎰 + // { + // ListItem[] lis = new ListItem[2]; + // lis[0] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堝洖澶", Const.CheckControl_Audit2);//鏄 鍔犺浇 + // lis[1] = new ListItem("閲嶆柊缂栧埗", Const.CheckControl_ReCompile);//鍚﹀姞杞 + // return lis; + // } + // else if (state == Const.CheckControl_Audit2 || state == Const.CheckControl_ReCompile2)//鏃犳槸鍚﹀悓鎰 + // { + // ListItem[] lis = new ListItem[1]; + // lis[0] = new ListItem("鎬诲寘涓撲笟宸ョ▼甯堢‘璁", Const.CheckControl_Audit4); + // return lis; + // } + // else if (state == Const.CheckControl_Audit3)//鏈夋槸鍚﹀悓鎰 + // { + // ListItem[] lis = new ListItem[2]; + // lis[0] = new ListItem("鎬诲寘涓撲笟宸ョ▼甯堢‘璁", Const.CheckControl_Audit4);//鏄 鍔犺浇 + // lis[1] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堥噸鏂板洖澶", Const.CheckControl_ReCompile2);//鍚﹀姞杞 + // return lis; + // } + // else if (state == Const.CheckControl_Audit4)//鏈夋槸鍚﹀悓鎰 + // { + // ListItem[] lis = new ListItem[2]; + // // lis[0] = new ListItem("鎬诲寘璐熻矗浜虹‘璁", Const.CheckControl_Audit5);//鏄 鍔犺浇 + // lis[0] = new ListItem("瀹℃壒瀹屾垚", Const.CheckControl_Complete);//鏄 鍔犺浇 + // lis[1] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堥噸鏂板洖澶", Const.CheckControl_ReCompile2);//鍚﹀姞杞 + // return lis; + // } + // else if (state == Const.CheckControl_Audit5)//鏈夋槸鍚﹀悓鎰 + // { + // ListItem[] lis = new ListItem[2]; + // lis[0] = new ListItem("瀹℃壒瀹屾垚", Const.CheckControl_Complete);//鏄 鍔犺浇 + // lis[1] = new ListItem("鍒嗗寘涓撲笟宸ョ▼甯堥噸鏂板洖澶", Const.CheckControl_ReCompile2);//鍚﹀姞杞 + // return lis; + // } + // else + // return null; + //} /// /// 淇敼璐ㄩ噺妫鏌ヤ笌鎺у埗 /// @@ -226,7 +266,6 @@ namespace BLL newCheckControl.UnitWorkId = CheckControl.UnitWorkId; newCheckControl.UnitId = CheckControl.UnitId; newCheckControl.CheckDate = CheckControl.CheckDate; - newCheckControl.IsSubmit = CheckControl.IsSubmit; newCheckControl.SubmitMan = CheckControl.SubmitMan; newCheckControl.IsOK = CheckControl.IsOK; newCheckControl.CNProfessionalCode = CheckControl.CNProfessionalCode; @@ -240,123 +279,11 @@ namespace BLL newCheckControl.RectifyDate = CheckControl.RectifyDate; newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl; newCheckControl.State = CheckControl.State; - newCheckControl.SaveHandleMan = CheckControl.SaveHandleMan; + newCheckControl.DutyMan = CheckControl.DutyMan; db.SubmitChanges(); } - public static List GetListDataForApi(string state, string name, string projectId, int index, int page) - { - using (var db = new Model.SGGLDB(Funs.ConnString)) - { - IQueryable q = db.Check_CheckControl; - List ids = new List(); - if (!string.IsNullOrEmpty(name)) - { - var qunit = from u in Funs.DB.Base_Unit - where u.UnitName.Contains(name) - select u.UnitId; - ids = qunit.ToList(); - q = q.Where(e => ids.Contains(e.UnitId)); - } - - - if (!string.IsNullOrEmpty(projectId)) - { - q = q.Where(e => e.ProjectId == projectId); - } - switch (state) - { - case "1": // 鏈暣鏀 - q = q.Where(e => e.State != BLL.Const.CheckControl_Audit4 - && e.State != BLL.Const.CheckControl_Audit5 - && e.State != BLL.Const.CheckControl_Complete - && e.LimitDate > DateTime.Now); - break; - case "2": // 寰呯‘璁 5/6 - q = q.Where(e => e.State == BLL.Const.CheckControl_Audit4 || e.State == BLL.Const.CheckControl_Audit5); - break; - case "3": // 宸查棴鐜 7 - q = q.Where(e => e.State == BLL.Const.CheckControl_Complete); - break; - case "4": // 瓒呮湡鏈暣鏀 - q = q.Where(e => e.State != BLL.Const.CheckControl_Audit4 - && e.State != BLL.Const.CheckControl_Audit5 - && e.State != BLL.Const.CheckControl_Complete - && e.LimitDate < DateTime.Now); - break; - } - var qq1 = from x in q - orderby x.DocCode descending - select new - { - x.CheckControlCode, - x.DocCode, - x.UnitId, - x.ProposeUnitId, - x.UnitWorkId, - x.CheckDate, - x.State, - x.CheckSite, - x.IsSubmit, - x.AttachUrl, - x.QuestionDef, - x.QuestionType, - x.RectifyOpinion, - x.LimitDate, - x.CNProfessionalCode, - - CNProfessionalName = (from y in db.Base_CNProfessional where y.CNProfessionalId == x.CNProfessionalCode select y.ProfessionalName).First(), - UnitWork = (from y in db.WBS_UnitWork where y.UnitWorkId == x.UnitWorkId select y.UnitWorkCode + "-" + y.UnitWorkName + (y.ProjectType == "1" ? "(寤虹瓚)" : "(瀹夎)")).First(), - CheckMan = (from y in db.Sys_User where y.UserId == x.CheckMan select y.UserName).First() - - }; - var list = qq1.Skip(index * page).Take(page).ToList(); - - List listRes = new List(); - for (int i = 0; i < list.Count; i++) - { - try - { - Model.Check_CheckControl x = new Model.Check_CheckControl(); - x.CheckControlCode = list[i].CheckControlCode; - x.DocCode = list[i].DocCode; - x.UnitWorkId = list[i].UnitWorkId; - x.CheckDate = list[i].CheckDate; - x.UnitId = list[i].UnitId + "$" + UnitService.GetUnitNameByUnitId(list[i].UnitId); - var punit = ProjectUnitService.GetProjectUnitByUnitIdProjectId(projectId, list[i].ProposeUnitId); - string unitType = string.Empty; - if (punit != null) - { - unitType = punit.UnitType; - } - x.ProposeUnitId = list[i].ProposeUnitId + "$" + UnitService.GetUnitNameByUnitId(list[i].ProposeUnitId) + "$" + unitType; - x.CheckMan = list[i].CheckMan + "$" + list[i].UnitWork + "$" + ConvertManAndID(list[i].CheckControlCode); - x.State = list[i].State; - x.CheckSite = list[i].CheckSite; - x.IsSubmit = list[i].IsSubmit; - x.AttachUrl = list[i].AttachUrl; - x.QuestionDef = list[i].QuestionDef; - if (!string.IsNullOrEmpty(list[i].QuestionType)) - { - var qualityQuestionType = BLL.QualityQuestionTypeService.GetQualityQuestionType(list[i].QuestionType); - x.QuestionType = list[i].QuestionType + "$" + qualityQuestionType.QualityQuestionType - + "$" + (qualityQuestionType.Type.HasValue&&qualityQuestionType.Type.Value==1? "寤虹瓚宸ョ▼" : "瀹夎宸ョ▼"); - } - x.RectifyOpinion = list[i].RectifyOpinion; - x.LimitDate = list[i].LimitDate; - x.CNProfessionalCode = list[i].CNProfessionalCode + "$" + list[i].CNProfessionalName; - x.AttachUrl = AttachFileService.getFileUrl(x.CheckControlCode); - x.ReAttachUrl = AttachFileService.getFileUrl(x.CheckControlCode + "r"); - listRes.Add(x); - } - catch (Exception e) - { - - } - } - return listRes; - } - } + // 鏌ヨ鏁伴噺 public static string GetListCountStr(string projectId, string searchWord, string unitId, string unitWork, string problemType, string professional, string dateA, string dateZ) { @@ -518,7 +445,6 @@ namespace BLL x.CheckDate, x.State, x.CheckSite, - x.IsSubmit, x.AttachUrl, x.QuestionDef, x.QuestionType, @@ -546,7 +472,6 @@ namespace BLL x.CheckMan = list[i].CheckMan + "$" + list[i].UnitWork + "$" + ConvertManAndID(list[i].CheckControlCode); x.State = list[i].State; x.CheckSite = list[i].CheckSite; - x.IsSubmit = list[i].IsSubmit; x.AttachUrl = list[i].AttachUrl; x.QuestionDef = list[i].QuestionDef; if (!string.IsNullOrEmpty(list[i].QuestionType)) @@ -607,45 +532,16 @@ namespace BLL using (var db = new Model.SGGLDB(Funs.ConnString)) { - Model.Check_CheckControl newCheckControl = db.Check_CheckControl.First(e => e.CheckControlCode == CheckControl.CheckControlCode); - if (!string.IsNullOrEmpty(CheckControl.DocCode)) - newCheckControl.DocCode = CheckControl.DocCode; - if (!string.IsNullOrEmpty(CheckControl.UnitWorkId)) - newCheckControl.UnitWorkId = CheckControl.UnitWorkId; - if (!string.IsNullOrEmpty(CheckControl.UnitId)) - newCheckControl.UnitId = CheckControl.UnitId; - if (CheckControl.CheckDate.HasValue) - newCheckControl.CheckDate = CheckControl.CheckDate; - if (CheckControl.IsSubmit.HasValue) - newCheckControl.IsSubmit = CheckControl.IsSubmit; - if (!string.IsNullOrEmpty(CheckControl.SubmitMan)) - newCheckControl.SubmitMan = CheckControl.SubmitMan; - if (CheckControl.IsOK.HasValue) - newCheckControl.IsOK = CheckControl.IsOK; - if (!string.IsNullOrEmpty(CheckControl.CNProfessionalCode)) - newCheckControl.CNProfessionalCode = CheckControl.CNProfessionalCode; - if (!string.IsNullOrEmpty(CheckControl.QuestionType)) - newCheckControl.QuestionType = CheckControl.QuestionType; - if (!string.IsNullOrEmpty(CheckControl.CheckSite)) - newCheckControl.CheckSite = CheckControl.CheckSite; - if (!string.IsNullOrEmpty(CheckControl.QuestionDef)) - newCheckControl.QuestionDef = CheckControl.QuestionDef; - if (CheckControl.LimitDate.HasValue) - newCheckControl.LimitDate = CheckControl.LimitDate; - if (!string.IsNullOrEmpty(CheckControl.RectifyOpinion)) - newCheckControl.RectifyOpinion = CheckControl.RectifyOpinion; - if (!string.IsNullOrEmpty(CheckControl.AttachUrl)) - newCheckControl.AttachUrl = CheckControl.AttachUrl; - if (!string.IsNullOrEmpty(CheckControl.HandleWay)) - newCheckControl.HandleWay = CheckControl.HandleWay; - if (CheckControl.RectifyDate.HasValue) - newCheckControl.RectifyDate = CheckControl.RectifyDate; - if (!string.IsNullOrEmpty(CheckControl.ReAttachUrl)) - newCheckControl.ReAttachUrl = CheckControl.ReAttachUrl; - if (!string.IsNullOrEmpty(CheckControl.State)) - newCheckControl.State = CheckControl.State; - if (!string.IsNullOrEmpty(CheckControl.ProposeUnitId)) - newCheckControl.ProposeUnitId = CheckControl.ProposeUnitId; + Model.Check_CheckControl item = db.Check_CheckControl.First(e => e.CheckControlCode == CheckControl.CheckControlCode); + + item.DocCode = item.DocCode??CheckControl.DocCode; + item.UnitWorkId = item.UnitWorkId??CheckControl.UnitWorkId; + item.ReAttachUrl = item.ReAttachUrl??CheckControl.ReAttachUrl; + item.RectifyDate = item.RectifyDate??CheckControl.RectifyDate; + item.HandleWay = CheckControl.HandleWay; + item.State = CheckControl.State; + item.OKDescr = CheckControl.OKDescr; + item.IsOK = item.IsOK??CheckControl.IsOK; db.SubmitChanges(); } } diff --git a/SGGL/BLL/CQMS/WBS/ProjectQualityService.cs b/SGGL/BLL/CQMS/WBS/ProjectQualityService.cs index 89f7951..7d77bd6 100644 --- a/SGGL/BLL/CQMS/WBS/ProjectQualityService.cs +++ b/SGGL/BLL/CQMS/WBS/ProjectQualityService.cs @@ -109,14 +109,39 @@ namespace BLL return isok; } - - #region API - /// - /// 鏍规嵁--1 寤虹瓚宸ョ▼ 2 瀹夎宸ョ▼鎴栬3(鍏ㄩ儴)鍒嗙粍闂绫诲埆 ---浣曚附姊 - /// - /// - public static List GetGroupProjectName(int ProjectQualityType) + + #region API + /// + /// 鏍规嵁--1 寤虹瓚宸ョ▼ 2 瀹夎宸ョ▼鎴栬3(鍏ㄩ儴)鍒嗙粍闂绫诲埆 ---浣曚附姊 + /// + /// + + public static List GetGroupProjectName( int PageNumber, int PageSize, string Keyword) + { + //var list = db.WBS_ProjectQuality.Where(c => c.ProjectQualityType == ProjectQualityType).GroupBy(c => c.ProjectName).Select(c => c.Key).ToList(); + //return list; + + var list = from y in Funs.DB.Base_QualityQuestionType + where y.Type == 2 || y.Type == 1 + select new + { + y.Type, + y.QualityQuestionType, + y.QualityQuestionTypeId + } + ; + if(!string.IsNullOrEmpty(Keyword)) + { + list = list.Where(x => x.QualityQuestionType.Contains(Keyword)); + } + list = list.Skip((PageNumber - 1) * PageSize).Take(PageSize); + + return list.Distinct().ToList(); + + + } + public static List GetGroupProjectName(int ProjectQualityType) { //var list = db.WBS_ProjectQuality.Where(c => c.ProjectQualityType == ProjectQualityType).GroupBy(c => c.ProjectName).Select(c => c.Key).ToList(); //return list; @@ -129,7 +154,6 @@ namespace BLL y.QualityQuestionTypeId } ; - switch (ProjectQualityType) { case 1: // 寤虹瓚宸ョ▼ @@ -161,13 +185,16 @@ namespace BLL /// 鍒嗙粍闂鎻忚堪 /// /// - public static List GetGroupProjectQualityDes(string projectName) + public static List GetGroupProjectQualityDes(string projectName, string keyword = "") { - var list = db.WBS_ProjectQuality.Where(c => c.ProjectName == projectName).GroupBy(c => c.ProjectQualityDes).Select(c => new + if (string.IsNullOrEmpty(keyword)) keyword = ""; + var list = Funs.DB.WBS_ProjectQuality.Where(c => c.ProjectName == projectName && c.ProjectQualityDes.Contains(keyword)).Select(c => new { - QuestionDef = c.Key, - QuestionDefId = c.Key + ProjectQualityResult = c.ProjectQualityResult, + QuestionDef = c.ProjectQualityDes, + QuestionDefId = c.ProjectQualityId }).ToList(); + return list; } diff --git a/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs b/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs index 19b6a36..7df960f 100644 --- a/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs +++ b/SGGL/BLL/OfficeCheck/Inspect/Inspect_InspectionService.cs @@ -14,7 +14,7 @@ namespace BLL.OfficeCheck.Inspect public static Model.Inspect_Inspection SaveInspection(Model.Inspect_Inspection Inspection) { Model.SGGLDB db = Funs.DB; - int count = (from x in db.Inspect_Inspection where x.InspectType == "1" select x).Count(); + int count = (from x in db.Inspect_Inspection where x.InspectType == Inspection.InspectType select x).Count(); if (Inspection.InspectionId == null) { Inspection.InspectionId = SQLHelper.GetNewID(); @@ -22,7 +22,7 @@ namespace BLL.OfficeCheck.Inspect Model.Inspect_Inspection newInspection = new Model.Inspect_Inspection { InspectionId = Inspection.InspectionId, - InspectionCode = "1-"+count.ToString("D6"), + InspectionCode = Inspection.InspectType+"-" + count.ToString("D6"), ProjectId = Inspection.ProjectId, Description = Inspection.Description, States = Inspection.States, @@ -77,6 +77,7 @@ namespace BLL.OfficeCheck.Inspect CreateManName = (from y in Funs.DB.Sys_User where y.UserId == x.CreateMan select y.UserName).FirstOrDefault(), ProblemTypeId = x.ProblemTypeId, ProblemTypeName = x.ProblemTypeName, + InspectType = x.InspectType, Place = x.Place, children = (from a in Funs.DB.Inspect_InspectionItem where a.InspectionId == x.InspectionId @@ -92,7 +93,9 @@ namespace BLL.OfficeCheck.Inspect AfterUrl = a.AfterUrl, RectificationDate = a.RectificationDate, EvaluateResults = a.EvaluateResults, - WorkAreaName = a.WorkAreaName + WorkAreaName = a.WorkAreaName, + RectificationDescription = a.RectificationDescription, + ProblemDetial = a.ProblemDetial }).ToList() }).FirstOrDefault(e => e.InspectionId == InspectionId); } @@ -178,7 +181,8 @@ namespace BLL.OfficeCheck.Inspect ProblemTypeId = y.ProblemTypeId, ProblemTypeName = y.ProblemTypeName, Place = y.Place, - + ProblemDetial = x.ProblemDetial, + RectificationDescription = x.RectificationDescription, } ).FirstOrDefault(e => e.InspectionItemId == InspectionItemId); } @@ -232,7 +236,8 @@ namespace BLL.OfficeCheck.Inspect newInspectionItem.AfterUrl = InspectionItem.AfterUrl; newInspectionItem.AuditTime = InspectionItem.AuditTime; newInspectionItem.AuditMan = InspectionItem.AuditMan; - + newInspectionItem.ProblemDetial = InspectionItem.ProblemDetial; + newInspectionItem.RectificationDescription = InspectionItem.RectificationDescription; newInspectionItem.BeforelUrl = InspectionItem.BeforelUrl; newInspectionItem.RectificationResults = InspectionItem.RectificationResults; newInspectionItem.States = InspectionItem.States; @@ -301,10 +306,11 @@ namespace BLL.OfficeCheck.Inspect /// /// /// - public static List GetInspectionList(string ProjectId, string States, int PageNumber, int PageSize) + public static List GetInspectionList(string ProjectId,string type, string States, int PageNumber, int PageSize) { var getDataLists = (from x in Funs.DB.Inspect_Inspection + select new InspectionDto { InspectionId = x.InspectionId, @@ -324,7 +330,7 @@ namespace BLL.OfficeCheck.Inspect ProblemTypeName = x.ProblemTypeName, Place = x.Place, ChildsCount = Funs.DB.Inspect_InspectionItem.Count(itm=>itm.InspectionId == x.InspectionId).ToString() - }); + }).Where(x=> x.InspectType == type); if (!string.IsNullOrEmpty(ProjectId)) { getDataLists = getDataLists.Where(q => q.ProjectId == ProjectId); diff --git a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx index e27b8c8..44b96b6 100644 --- a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx @@ -4,7 +4,7 @@ - + 璐ㄩ噺宸℃ @@ -35,11 +35,12 @@ background-color: #79FF79; }*/ - .Green { + .Green { background-color: Green; - color:white; + color: white; } - .Yellow { + + .Yellow { background-color: #FFFF93; } @@ -50,6 +51,7 @@ .LightGreen { background-color: LightGreen } + .f-grid-colheader-text { white-space: normal; word-break: break-all; @@ -74,39 +76,39 @@ + LabelAlign="right"> - - - + + + - - - - - + + + + + - - + + - + - - - + + + - + - + - - - + + - - - + - + - + + + + + + + + + + + + @@ -158,33 +178,13 @@ - - - - - - - - - - - - - - - - - + @@ -213,28 +213,18 @@ Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close" Width="1300px" Height="660px"> - - + - - - - - - + diff --git a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs index 6dd3d76..0444f0e 100644 --- a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.cs @@ -3,11 +3,13 @@ using BLL; using Model; using System; using System.Collections.Generic; +using System.ComponentModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.IO; using System.Linq; +using System.Reflection.Emit; using System.Text; using System.Threading.Tasks; using AspNet = System.Web.UI.WebControls; @@ -129,65 +131,100 @@ namespace FineUIPro.Web.CQMS.Check } protected DataTable ChecklistData() { - string strSql = @"SELECT chec.CheckControlCode,chec.CheckSite,chec.ProjectId,chec.unitId,cNProfessional.ProfessionalName," - + @" QualityQuestionType.QualityQuestionType as QuestionType," - + @" chec.checkman,chec.CheckDate,chec.DocCode,chec.submitman,chec.state,chec.CNProfessionalCode," - + @" unit.UnitName,unitWork.UnitWorkName,u.userName " - + @" FROM Check_CheckControl chec" - + @" left join Base_Unit unit on unit.unitId=chec.unitId" - + @" left join Base_CNProfessional cNProfessional on cNProfessional.CNProfessionalId=chec.CNProfessionalCode" - + @" left join WBS_UnitWork unitWork on unitWork.UnitWorkId = chec.UnitWorkId" - + @" left join Base_QualityQuestionType QualityQuestionType on QualityQuestionType.QualityQuestionTypeId = chec.QuestionType" - + @" left join sys_User u on u.userId = chec.CheckMan" - + @" where chec.ProjectId=@ProjectId"; - List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); - strSql += " AND (chec.CheckDate>=@startTime or @startTime='') and (chec.CheckDate<=@endTime or @endTime='') "; - listStr.Add(new SqlParameter("@startTime", !string.IsNullOrEmpty(txtStartTime.Text.Trim()) ? txtStartTime.Text.Trim() + " 00:00:00" : "")); - listStr.Add(new SqlParameter("@endTime", !string.IsNullOrEmpty(txtEndTime.Text.Trim()) ? txtEndTime.Text.Trim() + " 23:59:59" : "")); - if (drpSponsorUnit.SelectedValue != BLL.Const._Null) - { - strSql += " AND chec.unitId=@unitId"; - listStr.Add(new SqlParameter("@unitId", drpSponsorUnit.SelectedValue)); - } - if (drpUnitWork.SelectedValue != Const._Null) - { - strSql += " AND chec.unitworkId=@unitworkId"; - listStr.Add(new SqlParameter("@unitworkId", drpUnitWork.SelectedValue)); - } - if (drpCNProfessional.SelectedValue != Const._Null) - { - strSql += " AND chec.CNProfessionalCode=@CNProfessionalCode"; - listStr.Add(new SqlParameter("@CNProfessionalCode", drpCNProfessional.SelectedValue)); - } - if (drpQuestionType.SelectedValue != Const._Null) - { - strSql += " AND chec.QuestionType=@QuestionType"; - listStr.Add(new SqlParameter("@QuestionType", drpQuestionType.SelectedValue)); - } - if (dpHandelStatus.SelectedValue != Const._Null) - { - if (dpHandelStatus.SelectedValue.Equals("1")) - { - strSql += " AND (chec.state='5' or chec.state='6')"; - } - else if (dpHandelStatus.SelectedValue.Equals("2")) - { - strSql += " AND chec.state='7'"; - } - else if (dpHandelStatus.SelectedValue.Equals("3")) - { - strSql += " AND DATEADD(day,1,chec.LimitDate)< GETDATE() and chec.state<>5 and chec.state<>6 and chec.state<>7"; - } - else if (dpHandelStatus.SelectedValue.Equals("4")) - { - strSql += " AND DATEADD(day,1,chec.LimitDate)> GETDATE() and chec.state<>5 and chec.state<>6 and chec.state<>7"; - } - } - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - return tb; + //string strSql = @"SELECT chec.CheckControlCode,chec.CheckSite,chec.ProjectId,chec.unitId,cNProfessional.ProfessionalName," + // + @" QualityQuestionType.QualityQuestionType as QuestionType," + // + @" chec.checkman,chec.CheckDate,chec.DocCode,chec.submitman,chec.state,chec.CNProfessionalCode," + // + @" unit.UnitName,unitWork.UnitWorkName,u.userName " + // + @" FROM Check_CheckControl chec" + // + @" left join Base_Unit unit on unit.unitId=chec.unitId" + // + @" left join Base_CNProfessional cNProfessional on cNProfessional.CNProfessionalId=chec.CNProfessionalCode" + // + @" left join WBS_UnitWork unitWork on unitWork.UnitWorkId = chec.UnitWorkId" + // + @" left join Base_QualityQuestionType QualityQuestionType on QualityQuestionType.QualityQuestionTypeId = chec.QuestionType" + // + @" left join sys_User u on u.userId = chec.CheckMan" + // + @" where chec.ProjectId=@ProjectId"; + + //List listStr = new List(); + //listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + //strSql += " AND (chec.CheckDate>=@startTime or @startTime='') and (chec.CheckDate<=@endTime or @endTime='') "; + //listStr.Add(new SqlParameter("@startTime", !string.IsNullOrEmpty(txtStartTime.Text.Trim()) ? txtStartTime.Text.Trim() + " 00:00:00" : "")); + //listStr.Add(new SqlParameter("@endTime", !string.IsNullOrEmpty(txtEndTime.Text.Trim()) ? txtEndTime.Text.Trim() + " 23:59:59" : "")); + //if (drpSponsorUnit.SelectedValue != BLL.Const._Null) + //{ + // strSql += " AND chec.unitId=@unitId"; + // listStr.Add(new SqlParameter("@unitId", drpSponsorUnit.SelectedValue)); + //} + //if (drpUnitWork.SelectedValue != Const._Null) + //{ + // strSql += " AND chec.unitworkId=@unitworkId"; + // listStr.Add(new SqlParameter("@unitworkId", drpUnitWork.SelectedValue)); + //} + //if (drpCNProfessional.SelectedValue != Const._Null) + //{ + // strSql += " AND chec.CNProfessionalCode=@CNProfessionalCode"; + // listStr.Add(new SqlParameter("@CNProfessionalCode", drpCNProfessional.SelectedValue)); + //} + //if (drpQuestionType.SelectedValue != Const._Null) + //{ + // strSql += " AND chec.QuestionType=@QuestionType"; + // listStr.Add(new SqlParameter("@QuestionType", drpQuestionType.SelectedValue)); + //} + //if (dpHandelStatus.SelectedValue != Const._Null) + //{ + // if (dpHandelStatus.SelectedValue.Equals("1")) + // { + // strSql += " AND (chec.state='5' or chec.state='6')"; + // } + // else if (dpHandelStatus.SelectedValue.Equals("2")) + // { + // strSql += " AND chec.state='7'"; + // } + // else if (dpHandelStatus.SelectedValue.Equals("3")) + // { + // strSql += " AND DATEADD(day,1,chec.LimitDate)< GETDATE() and chec.state<>5 and chec.state<>6 and chec.state<>7"; + // } + // else if (dpHandelStatus.SelectedValue.Equals("4")) + // { + // strSql += " AND DATEADD(day,1,chec.LimitDate)> GETDATE() and chec.state<>5 and chec.state<>6 and chec.state<>7"; + // } + //} + + //SqlParameter[] parameter = listStr.ToArray(); + //DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + var query = (from x in Funs.DB.Check_CheckControl + select new + { + CheckControlCode = x.CheckControlCode, + ProjectId = x.ProjectId, + ProjectName = Funs.DB.Base_Project.FirstOrDefault(p => p.ProjectId == x.ProjectId).ProjectName, + DocCode = x.DocCode, + States = x.State, + CheckSite = x.CheckSite, + QuestionDef = x.QuestionDef, + CheckDate = String.Format("{0:yyyy-MM-dd}", x.CheckDate), + LimitDate = String.Format("{0:yyyy-MM-dd}", x.LimitDate), + RectifyOpinion = x.RectifyOpinion, + CheckMan = x.CheckMan, + UnitWorkId = x.UnitWorkId, + AttachUrl = x.AttachUrl, + HandleWay = x.HandleWay, + RectifyDate = String.Format("{0:yyyy-MM-dd}", x.RectifyDate), + ReAttachUrl = x.ReAttachUrl, + IsOk = x.IsOK, + OKDescr = x.OKDescr, + UnitWorkName = (from y in Funs.DB.WBS_UnitWork where y.UnitWorkId == x.UnitWorkId select y.UnitWorkName).First(), + CheckManName = (from y in Funs.DB.Sys_User where y.UserId == x.CheckMan select y.UserName).First(), + PrincipalMan = x.DutyMan, + PrincipalManName = Funs.DB.Sys_User.FirstOrDefault(e => e.UserId == x.DutyMan).UserName, + CNProfessionalCode = x.CNProfessionalCode, + CNProfessionalCodeName = Funs.DB.Base_CNProfessional.FirstOrDefault(e => e.CNProfessionalId == x.CNProfessionalCode).ProfessionalName, + QuestionType = x.QuestionType, + QuestionTypeName = Funs.DB.Base_QualityQuestionType.FirstOrDefault(e => e.QualityQuestionTypeId == x.QuestionType).QualityQuestionType, + + }).ToList(); + DataTable td = ToDataTable(query); + return td; } protected void btnOut_Click(object sender, EventArgs e) { @@ -272,42 +309,26 @@ namespace FineUIPro.Web.CQMS.Check return sb.ToString(); } + + #region 妫鏌ョ収鐗 protected string ConvertImageUrlByImage(object registrationId) { string url = string.Empty; if (registrationId != null) { - IList sourlist = AttachFileService.GetBeforeFileList(registrationId.ToString(), BLL.Const.CheckListMenuId); - - if (sourlist != null&& sourlist.Count>0) - { - string AttachUrl = ""; - foreach(var item in sourlist) - { if(!string.IsNullOrEmpty(item.AttachUrl)&& item.AttachUrl.ToLower().EndsWith(".jpg")|| item.AttachUrl.ToLower().EndsWith(".jpeg")|| item.AttachUrl.ToLower().EndsWith(".png")) - AttachUrl += item.AttachUrl.TrimEnd(',')+","; - } - url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], AttachUrl.TrimEnd(',')); - } + Model.Check_CheckControl m = Funs.DB.Check_CheckControl.FirstOrDefault(e => e.CheckControlCode == registrationId.ToString()); + url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], m.AttachUrl.TrimEnd(',')); } return url; } + #endregion protected string ConvertImgUrlByImage(object registrationId) { string url = string.Empty; if (registrationId != null) { - IList sourlist = AttachFileService.Getfilelist(registrationId.ToString()+"r", BLL.Const.CheckListMenuId); - - if (sourlist != null && sourlist.Count > 0) - { - string AttachUrl = ""; - foreach (var item in sourlist) - { - if (!string.IsNullOrEmpty(item.AttachUrl) && item.AttachUrl.ToLower().EndsWith(".jpg") || item.AttachUrl.ToLower().EndsWith(".jpeg") || item.AttachUrl.ToLower().EndsWith(".png")) - AttachUrl += item.AttachUrl.TrimEnd(',') + ","; - } - url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], AttachUrl.TrimEnd(',')); - } + Model.Check_CheckControl m = Funs.DB.Check_CheckControl.FirstOrDefault(e => e.CheckControlCode == registrationId.ToString()); + url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], m.ReAttachUrl.TrimEnd(',')); } return url; } @@ -315,25 +336,25 @@ namespace FineUIPro.Web.CQMS.Check public string Convertstatus(Object code) { Model.Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControl(code.ToString()); - if (checkControl.State.Equals("5") || checkControl.State.Equals("6")) + if (checkControl.State.Equals("1") ) { - return "鏈‘璁"; + return "寰呮暣鏀"; } - else if (checkControl.State == Const.CheckControl_Complete) + else if (checkControl.State.Equals("2")) { //闂幆 - return "宸查棴鐜"; + return "寰呯‘璁"; } //else if( checkControl.LimitDate> ) - else if (Convert.ToDateTime(checkControl.LimitDate).AddDays(1) < DateTime.Now) //寤舵湡鏈暣鏀 + else if (checkControl.State.Equals("3")) //寤舵湡鏈暣鏀 { - return "瓒呮湡鏈暣鏀"; + return "宸查棴鐜"; } - else //鏈熷唴鏈暣鏀 + else { - return "鏈暣鏀"; - + return ""; } + } @@ -355,31 +376,31 @@ namespace FineUIPro.Web.CQMS.Check Grid1.DataSource = table; Grid1.DataBind(); - for (int i = 0; i < Grid1.Rows.Count; i++) - { - string rowID = Grid1.Rows[i].DataKeys[0].ToString(); - if (rowID.Count() > 0) - { - Model.Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControl(rowID); - if (checkControl.State.Equals("5") || checkControl.State.Equals("6")) - { - Grid1.Rows[i].CellCssClasses[11] = "LightGreen";//鏈‘璁 - } - else if (checkControl.State == Const.CheckControl_Complete) - { //闂幆 - Grid1.Rows[i].CellCssClasses[11] = "Green"; + //for (int i = 0; i < Grid1.Rows.Count; i++) + //{ + // string rowID = Grid1.Rows[i].DataKeys[0].ToString(); + // if (rowID.Count() > 0) + // { + // Model.Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControl(rowID); + // if (checkControl.State.Equals("5") || checkControl.State.Equals("6")) + // { + // Grid1.Rows[i].CellCssClasses[11] = "LightGreen";//鏈‘璁 + // } + // else if (checkControl.State == Const.CheckControl_Complete) + // { //闂幆 + // Grid1.Rows[i].CellCssClasses[11] = "Green"; - } - else if (Convert.ToDateTime(checkControl.LimitDate).AddDays(1) < DateTime.Now) //寤舵湡鏈暣鏀 - { - Grid1.Rows[i].CellCssClasses[11] = "Red"; - } - else //鏈熷唴鏈暣鏀 - { - Grid1.Rows[i].CellCssClasses[11] = " Yellow "; - } - } - } + // } + // else if (Convert.ToDateTime(checkControl.LimitDate).AddDays(1) < DateTime.Now) //寤舵湡鏈暣鏀 + // { + // Grid1.Rows[i].CellCssClasses[11] = "Red"; + // } + // else //鏈熷唴鏈暣鏀 + // { + // Grid1.Rows[i].CellCssClasses[11] = " Yellow "; + // } + // } + //} } @@ -507,16 +528,16 @@ namespace FineUIPro.Web.CQMS.Check } } - if (this.btnMenuModify.Hidden || checks.State == BLL.Const.State_2) ////鍙屽嚮浜嬩欢 缂栬緫鏉冮檺鏈夛細缂栬緫椤甸潰锛屾棤锛氭煡鐪嬮〉闈 鎴栬呯姸鎬佹槸瀹屾垚鏃舵煡鐪嬮〉闈 - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckListView.aspx?CheckControlCode={0}", codes, "鏌ョ湅 - "))); - return; - } - else - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckListEdit.aspx?CheckControlCode={0}", codes, "缂栬緫 - "))); - return; - } + //if (this.btnMenuModify.Hidden || checks.State == BLL.Const.State_2) ////鍙屽嚮浜嬩欢 缂栬緫鏉冮檺鏈夛細缂栬緫椤甸潰锛屾棤锛氭煡鐪嬮〉闈 鎴栬呯姸鎬佹槸瀹屾垚鏃舵煡鐪嬮〉闈 + //{ + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckListView.aspx?CheckControlCode={0}", codes, "鏌ョ湅 - "))); + // return; + //} + //else + //{ + // PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckListEdit.aspx?CheckControlCode={0}", codes, "缂栬緫 - "))); + // return; + //} } else @@ -574,15 +595,12 @@ namespace FineUIPro.Web.CQMS.Check var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.CheckListMenuId); if (buttonList.Count() > 0) { - if (buttonList.Contains(BLL.Const.BtnAdd)) - { - this.btnNew.Hidden = false; + //if (buttonList.Contains(BLL.Const.BtnAdd)) + //{ + // this.btnNew.Hidden = false; - } - if (buttonList.Contains(BLL.Const.BtnModify)) - { - this.btnMenuModify.Hidden = false; - } + //} + if (buttonList.Contains(BLL.Const.BtnDelete)) { this.btnMenuDel.Hidden = false; @@ -1498,5 +1516,29 @@ namespace FineUIPro.Web.CQMS.Check txtEndTime.Text = ""; BindGrid(); } + + #region Linq鑾峰彇鍒楄〃杞崲鐒婃潗DateTable绫诲瀷 + public DataTable ToDataTable(IEnumerable data) + { + PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(T)); + DataTable table = new DataTable(); + foreach (PropertyDescriptor prop in properties) + { + table.Columns.Add(prop.Name, Nullable.GetUnderlyingType(prop.PropertyType) ?? prop.PropertyType); + } + + foreach (T item in data) + { + DataRow row = table.NewRow(); + foreach (PropertyDescriptor prop in properties) + { + row[prop.Name] = prop.GetValue(item) ?? DBNull.Value; + } + table.Rows.Add(row); + } + + return table; + } + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.designer.cs index 452bcab..b6c4aaa 100644 --- a/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Check/CheckList.aspx.designer.cs @@ -194,24 +194,6 @@ namespace FineUIPro.Web.CQMS.Check /// protected global::System.Web.UI.WebControls.Label lbImageUrl2; - /// - /// labState 鎺т欢銆 - /// - /// - /// 鑷姩鐢熸垚鐨勫瓧娈点 - /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 - /// - protected global::System.Web.UI.WebControls.Label labState; - - /// - /// lbAuditMan 鎺т欢銆 - /// - /// - /// 鑷姩鐢熸垚鐨勫瓧娈点 - /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 - /// - protected global::System.Web.UI.WebControls.Label lbAuditMan; - /// /// lbState2 鎺т欢銆 /// @@ -275,15 +257,6 @@ namespace FineUIPro.Web.CQMS.Check /// protected global::FineUIPro.Menu Menu1; - /// - /// btnMenuModify 鎺т欢銆 - /// - /// - /// 鑷姩鐢熸垚鐨勫瓧娈点 - /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 - /// - protected global::FineUIPro.MenuButton btnMenuModify; - /// /// btnMenuView 鎺т欢銆 /// @@ -293,33 +266,6 @@ namespace FineUIPro.Web.CQMS.Check /// protected global::FineUIPro.MenuButton btnMenuView; - /// - /// MenuButton1 鎺т欢銆 - /// - /// - /// 鑷姩鐢熸垚鐨勫瓧娈点 - /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 - /// - protected global::FineUIPro.MenuButton MenuButton1; - - /// - /// MenuButton2 鎺т欢銆 - /// - /// - /// 鑷姩鐢熸垚鐨勫瓧娈点 - /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 - /// - protected global::FineUIPro.MenuButton MenuButton2; - - /// - /// MenuButton3 鎺т欢銆 - /// - /// - /// 鑷姩鐢熸垚鐨勫瓧娈点 - /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 - /// - protected global::FineUIPro.MenuButton MenuButton3; - /// /// btnMenuDel 鎺т欢銆 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Check/ChecklistEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/ChecklistEdit.aspx.cs index 964f133..0aa922f 100644 --- a/SGGL/FineUIPro.Web/CQMS/Check/ChecklistEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Check/ChecklistEdit.aspx.cs @@ -318,9 +318,9 @@ namespace FineUIPro.Web.CQMS.Check } Model.Check_CheckControl checkControl1 = CheckControlService.GetCheckControl(CheckControlCode); - if (checkControl1 != null && !string.IsNullOrEmpty(checkControl1.SaveHandleMan)) + if (checkControl1 != null && !string.IsNullOrEmpty(checkControl1.DutyMan)) { - this.drpHandleMan.SelectedValue = checkControl1.SaveHandleMan; + this.drpHandleMan.SelectedValue = checkControl1.DutyMan; } } } @@ -476,7 +476,7 @@ namespace FineUIPro.Web.CQMS.Check } if (saveType == "submit") { - checkControl.SaveHandleMan = null; + checkControl.DutyMan = null; Model.Check_CheckControlApprove approve = new Model.Check_CheckControlApprove(); approve.CheckControlCode = CheckControlCode; if (this.drpHandleMan.SelectedValue != BLL.Const._Null) @@ -496,7 +496,7 @@ namespace FineUIPro.Web.CQMS.Check } if (saveType == "save") { - checkControl.SaveHandleMan = this.drpHandleMan.SelectedValue; + checkControl.DutyMan = this.drpHandleMan.SelectedValue; } checkControl.CheckControlCode = CheckControlCode; BLL.CheckControlService.UpdateCheckControl(checkControl); @@ -506,7 +506,7 @@ namespace FineUIPro.Web.CQMS.Check checkControl.CheckMan = this.CurrUser.UserId; if (saveType == "save") { - checkControl.SaveHandleMan = this.drpHandleMan.SelectedValue; + checkControl.DutyMan = this.drpHandleMan.SelectedValue; } if (!string.IsNullOrEmpty(this.hdCheckControlCode.Text)) { diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index fc3c329..e3a28f4 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -5712,3 +5712,962 @@ IP鍦板潃:::1 鍑洪敊鏃堕棿:04/06/2025 22:13:30 + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.HSSE.Technique.RectifyEdit.GetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyEdit.aspx.cs:琛屽彿 135 + 鍦 FineUIPro.Web.HSSE.Technique.RectifyEdit.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyEdit.aspx.cs:琛屽彿 53 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 11:07:44 +鍑洪敊鏂囦欢:http://localhost:4528/HSSE/Technique/RectifyEdit.aspx?RectifyId=00101 +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 11:07:44 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.HSSE.Technique.RectifyEdit.GetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyEdit.aspx.cs:琛屽彿 135 + 鍦 FineUIPro.Web.HSSE.Technique.RectifyEdit.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyEdit.aspx.cs:琛屽彿 53 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 11:07:55 +鍑洪敊鏂囦欢:http://localhost:4528/HSSE/Technique/RectifyEdit.aspx?RectifyId=00101 +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 11:07:55 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.HSSE.Technique.RectifyEdit.GetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyEdit.aspx.cs:琛屽彿 135 + 鍦 FineUIPro.Web.HSSE.Technique.RectifyEdit.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyEdit.aspx.cs:琛屽彿 53 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 11:08:10 +鍑洪敊鏂囦欢:http://localhost:4528/HSSE/Technique/RectifyEdit.aspx?RectifyId=00107 +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 11:08:10 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.HSSE.Technique.RectifyItemEdit.GetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyItemEdit.aspx.cs:琛屽彿 152 + 鍦 FineUIPro.Web.HSSE.Technique.RectifyItemEdit.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyItemEdit.aspx.cs:琛屽彿 52 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 11:08:22 +鍑洪敊鏂囦欢:http://localhost:4528/HSSE/Technique/RectifyItemEdit.aspx?RectifyItemId=17FD34CE-CF20-4110-8A48-9D70D0D9E060 +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 11:08:22 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.HSSE.Technique.RectifyItemEdit.GetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyItemEdit.aspx.cs:琛屽彿 152 + 鍦 FineUIPro.Web.HSSE.Technique.RectifyItemEdit.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\HSSE\Technique\RectifyItemEdit.aspx.cs:琛屽彿 52 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 11:11:39 +鍑洪敊鏂囦欢:http://localhost:4528/HSSE/Technique/RectifyItemEdit.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 11:11:40 + + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 鍦 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 鍦 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 鍦 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 鍦 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 鍦 FineUIPro.Web.common.mainProject.getPersonWorkTime() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 200 + 鍦 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 54 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 15:51:37 +鍑洪敊鏂囦欢:http://localhost:4528/common/mainProject.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 15:51:37 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpParseException +閿欒淇℃伅:绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +閿欒鍫嗘爤: + 鍦 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 鍦 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----閿欒绫诲瀷:HttpException +----閿欒淇℃伅: +----绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +----閿欒鍫嗘爤: + 鍦 System.Web.UI.ControlBuilder.GetChildPropertyBuilder(String tagName, IDictionary attribs, Type& childType, TemplateParser templateParser, Boolean defaultProperty) + 鍦 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 鍦 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +鍑洪敊鏃堕棿:04/08/2025 16:07:47 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:07:47 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpParseException +閿欒淇℃伅:绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +閿欒鍫嗘爤: + 鍦 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 鍦 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----閿欒绫诲瀷:HttpException +----閿欒淇℃伅: +----绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +----閿欒鍫嗘爤: + 鍦 System.Web.UI.ControlBuilder.GetChildPropertyBuilder(String tagName, IDictionary attribs, Type& childType, TemplateParser templateParser, Boolean defaultProperty) + 鍦 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 鍦 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +鍑洪敊鏃堕棿:04/08/2025 16:08:26 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:08:26 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpParseException +閿欒淇℃伅:绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +閿欒鍫嗘爤: + 鍦 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 鍦 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----閿欒绫诲瀷:HttpException +----閿欒淇℃伅: +----绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +----閿欒鍫嗘爤: + 鍦 System.Web.UI.ControlBuilder.GetChildPropertyBuilder(String tagName, IDictionary attribs, Type& childType, TemplateParser templateParser, Boolean defaultProperty) + 鍦 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 鍦 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +鍑洪敊鏃堕棿:04/08/2025 16:10:10 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:10:10 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpParseException +閿欒淇℃伅:绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +閿欒鍫嗘爤: + 鍦 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 鍦 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----閿欒绫诲瀷:HttpException +----閿欒淇℃伅: +----绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +----閿欒鍫嗘爤: + 鍦 System.Web.UI.ControlBuilder.GetChildPropertyBuilder(String tagName, IDictionary attribs, Type& childType, TemplateParser templateParser, Boolean defaultProperty) + 鍦 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 鍦 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +鍑洪敊鏃堕棿:04/08/2025 16:15:09 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:15:09 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpParseException +閿欒淇℃伅:绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +閿欒鍫嗘爤: + 鍦 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 鍦 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----閿欒绫诲瀷:HttpException +----閿欒淇℃伅: +----绫诲瀷鈥淔ineUIPro.Form鈥濅笉鍏锋湁鍚嶄负鈥淕rid鈥濈殑鍏叡灞炴с +----閿欒鍫嗘爤: + 鍦 System.Web.UI.ControlBuilder.GetChildPropertyBuilder(String tagName, IDictionary attribs, Type& childType, TemplateParser templateParser, Boolean defaultProperty) + 鍦 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 鍦 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 鍦 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +鍑洪敊鏃堕棿:04/08/2025 16:16:05 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:16:05 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(24): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淭extBox_TextChanged鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淭extBox_TextChanged鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:25:25 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:25:25 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(24): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淭extBox_TextChanged鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淭extBox_TextChanged鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:36:54 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:36:54 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(24): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淭extBox_TextChanged鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淭extBox_TextChanged鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:42:27 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:42:27 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(24): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淭extBox_TextChanged鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淭extBox_TextChanged鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:43:18 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:43:18 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(13): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淕rid1_Sort鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淕rid1_Sort鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:43:57 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:43:57 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(13): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淕rid1_Sort鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淕rid1_Sort鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:44:37 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:44:37 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(13): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淕rid1_PageIndexChange鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淕rid1_PageIndexChange鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:46:47 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:46:48 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(13): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淕rid1_RowCommand鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淕rid1_RowCommand鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:49:05 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:49:06 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(13): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淕rid1_RowCommand鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淕rid1_RowCommand鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:49:20 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:49:20 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(13): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淕rid1_RowDoubleClick鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淕rid1_RowDoubleClick鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:51:41 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:51:41 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpCompileException +閿欒淇℃伅:e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx(13): error CS1061: 鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濅笉鍖呭惈鈥淕rid1_RowDoubleClick鈥濈殑瀹氫箟锛屽苟涓旀壘涓嶅埌鍙帴鍙楃被鍨嬩负鈥淎SP.officecheck_inspect_projectqualityinspection_aspx鈥濈殑绗竴涓弬鏁扮殑鎵╁睍鏂规硶鈥淕rid1_RowDoubleClick鈥(鏄惁缂哄皯 using 鎸囦护鎴栫▼搴忛泦寮曠敤?) +閿欒鍫嗘爤: + 鍦 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 鍦 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 鍦 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 鍦 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 鍦 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 鍦 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +鍑洪敊鏃堕棿:04/08/2025 16:52:01 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:52:01 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetResponsibleUnit() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 141 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 37 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 16:53:11 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:53:11 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetResponsibleUnit() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 141 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 37 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 16:58:10 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 16:58:10 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSelect(Expression sequence, LambdaExpression selector) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc) + 鍦 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node) + 鍦 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node) + 鍦 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) + 鍦 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 鍦 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 鍦 System.Linq.Queryable.Count[TSource](IQueryable`1 source) + 鍦 FineUIPro.Web.common.mainProject.getPersonWorkTime() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 200 + 鍦 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 54 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 17:07:25 +鍑洪敊鏂囦欢:http://localhost:4528/common/mainProject.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 17:07:25 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.common.mainProject.getCQMSProblem() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 535 + 鍦 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 60 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 17:11:43 +鍑洪敊鏂囦欢:http://localhost:4528/common/mainProject.aspx +IP鍦板潃:127.0.0.1 + +鍑洪敊鏃堕棿:04/08/2025 17:11:43 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.common.mainProject.getCQMSProblem() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 535 + 鍦 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 60 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 17:11:43 +鍑洪敊鏂囦欢:http://localhost:4528/common/mainProject.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 17:11:43 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetResponsibleUnit() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 143 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 39 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 17:16:10 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 17:16:11 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspectionView.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspectionView.aspx.cs:琛屽彿 60 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 17:53:20 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 17:53:21 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspectionView.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspectionView.aspx.cs:琛屽彿 63 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 18:20:52 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 18:20:53 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 309 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 35 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 19:17:29 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 19:17:29 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 310 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 36 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 19:29:18 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 19:29:18 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 310 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 36 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 19:30:40 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 19:30:40 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:ChangeConflictException +閿欒淇℃伅:鎵句笉鍒拌鎴栬宸叉洿鏀广 +閿欒鍫嗘爤: + 鍦 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) + 鍦 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) + 鍦 System.Data.Linq.DataContext.SubmitChanges() + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.btnMenuDel_Click(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 337 + 鍦 FineUIPro.MenuButton.OnClick(EventArgs e) + 鍦 (MenuButton , EventArgs ) + 鍦 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument) + 鍦 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) + 鍦 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 19:31:23 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 +鎿嶄綔浜哄憳:寰愭湀 + +鍑洪敊鏃堕棿:04/08/2025 19:31:23 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 310 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 36 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 19:33:21 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 19:33:21 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 310 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 36 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 19:40:34 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 19:40:34 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.SetButtonPower() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 310 + 鍦 FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspection.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\OfficeCheck\Inspect\ProjectQualityInspection.aspx.cs:琛屽彿 36 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/08/2025 19:55:33 +鍑洪敊鏂囦欢:http://localhost:4528/OfficeCheck/Inspect/ProjectQualityInspection.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/08/2025 19:55:33 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.CQMS.Check.ChecklistEdit.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\ChecklistEdit.aspx.cs:琛屽彿 131 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/10/2025 09:40:22 +鍑洪敊鏂囦欢:http://localhost:4528/CQMS/Check/ChecklistEdit.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/10/2025 09:40:22 + + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.index.Page_Init(Object sender, EventArgs e) + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnInit(EventArgs e) + 鍦 System.Web.UI.Page.OnInit(EventArgs e) + 鍦 System.Web.UI.Control.InitRecursive(Control namingContainer) + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 17:19:12 +鍑洪敊鏂囦欢:http://localhost:4528/index.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/12/2025 17:19:12 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.common.mainProject.getCQMSProblem() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 535 + 鍦 FineUIPro.Web.common.mainProject.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\common\mainProject.aspx.cs:琛屽彿 60 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 17:28:28 +鍑洪敊鏂囦欢:http://localhost:4528/common/mainProject.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/12/2025 17:28:28 + + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.CQMS.Check.CheckList.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx.cs:琛屽彿 70 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 18:42:05 +鍑洪敊鏂囦欢:http://localhost:4528/CQMS/Check/CheckList.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/12/2025 18:42:05 + + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:HttpException +閿欒淇℃伅:DataBinding:鈥淪ystem.Data.DataRowView鈥濅笉鍖呭惈鍚嶄负鈥淪tate鈥濈殑灞炴с +閿欒鍫嗘爤: + 鍦 System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) + 鍦 System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) + 鍦 System.Web.UI.DataBinder.Eval(Object container, String expression) + 鍦 System.Web.UI.TemplateControl.Eval(String expression) + 鍦 ASP.cqms_check_checklist_aspx.__DataBindinglabState(Object sender, EventArgs e) 浣嶇疆 e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx:琛屽彿 173 + 鍦 System.Web.UI.Control.OnDataBinding(EventArgs e) + 鍦 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) + 鍦 System.Web.UI.Control.DataBind() + 鍦 System.Web.UI.Control.DataBindChildren() + 鍦 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) + 鍦 System.Web.UI.Control.DataBind() + 鍦 (Control ) + 鍦 FineUIPro.GridRow.BkpgFeAELTFlAvoTrOBrConfcLJbA() + 鍦 (GridRow ) + 鍦 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object ) + 鍦 (Grid , Int32 , Object ) + 鍦 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean ) + 鍦 (Grid , DataTable , Boolean ) + 鍦 FineUIPro.Grid.DataBind(Boolean keepCurrentData) + 鍦 (Grid , Boolean ) + 鍦 FineUIPro.Grid.DataBind() + 鍦 FineUIPro.Web.CQMS.Check.CheckList.BindGrid() 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx.cs:琛屽彿 393 + 鍦 FineUIPro.Web.CQMS.Check.CheckList.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx.cs:琛屽彿 88 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 18:42:25 +鍑洪敊鏂囦欢:http://localhost:4528/CQMS/Check/CheckList.aspx +IP鍦板潃:::1 +鎿嶄綔浜哄憳:寰愭湀 + +鍑洪敊鏃堕棿:04/12/2025 18:42:25 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.CQMS.Check.CheckList.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx.cs:琛屽彿 70 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 18:44:03 +鍑洪敊鏂囦欢:http://localhost:4528/CQMS/Check/CheckList.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/12/2025 18:44:04 + + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 21:33:26 +鍑洪敊鏂囦欢:http://localhost:4528/indexProject.aspx?projectId=195f0bcf-1781-4a8e-846c-20a35801bb9b +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/12/2025 21:33:26 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.CQMS.Check.CheckList.ConvertImageUrlByImage(Object registrationId) + 鍦 ASP.cqms_check_checklist_aspx.__DataBindinglbImageUrl(Object sender, EventArgs e) 浣嶇疆 e:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx:琛屽彿 172 + 鍦 System.Web.UI.Control.OnDataBinding(EventArgs e) + 鍦 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) + 鍦 System.Web.UI.Control.DataBind() + 鍦 System.Web.UI.Control.DataBindChildren() + 鍦 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) + 鍦 System.Web.UI.Control.DataBind() + 鍦 (Control ) + 鍦 FineUIPro.GridRow.BkpgFeAELTFlAvoTrOBrConfcLJbA() + 鍦 (GridRow ) + 鍦 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object ) + 鍦 (Grid , Int32 , Object ) + 鍦 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean ) + 鍦 (Grid , DataTable , Boolean ) + 鍦 FineUIPro.Grid.DataBind(Boolean keepCurrentData) + 鍦 (Grid , Boolean ) + 鍦 FineUIPro.Grid.DataBind() + 鍦 FineUIPro.Web.CQMS.Check.CheckList.BindGrid() + 鍦 FineUIPro.Web.CQMS.Check.CheckList.Page_Load(Object sender, EventArgs e) + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 21:51:19 +鍑洪敊鏂囦欢:http://localhost:4528/CQMS/Check/CheckList.aspx +IP鍦板潃:::1 +鎿嶄綔浜哄憳:寰愭湀 + +鍑洪敊鏃堕棿:04/12/2025 21:51:19 + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.CQMS.Check.CheckList.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx.cs:琛屽彿 70 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 21:59:53 +鍑洪敊鏂囦欢:http://localhost:4528/CQMS/Check/CheckList.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/12/2025 21:59:54 + + + +閿欒淇℃伅寮濮=====> +閿欒绫诲瀷:NullReferenceException +閿欒淇℃伅:鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 +閿欒鍫嗘爤: + 鍦 FineUIPro.Web.CQMS.Check.CheckList.Page_Load(Object sender, EventArgs e) 浣嶇疆 E:\鍏徃椤圭洰\娌冲寳瀹夎\SGGL_HBAZ\SGGL\FineUIPro.Web\CQMS\Check\CheckList.aspx.cs:琛屽彿 70 + 鍦 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 鍦 System.Web.UI.Control.OnLoad(EventArgs e) + 鍦 System.Web.UI.Control.LoadRecursive() + 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +鍑洪敊鏃堕棿:04/12/2025 22:02:24 +鍑洪敊鏂囦欢:http://localhost:4528/CQMS/Check/CheckList.aspx +IP鍦板潃:::1 + +鍑洪敊鏃堕棿:04/12/2025 22:02:24 + + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 197c556..a1b3467 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -2410,6 +2410,7 @@ + @@ -16194,6 +16195,13 @@ ProjectQualityInspection.aspx + + ProjectQualityInspectionView.aspx + ASPXCodeBehind + + + ProjectQualityInspectionView.aspx + ProjectSafetyInspection.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx index 91ef111..ec21545 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx @@ -65,7 +65,7 @@ FieldType="String" HeaderText="璐熻矗浜" HeaderTextAlign="Center" TextAlign="Left"> + FieldType="String" HeaderText="鍒涘缓鏃ユ湡" HeaderTextAlign="Center" Renderer="Date" RendererArgument="yyyy-MM-dd" TextAlign="Left"> @@ -78,7 +78,7 @@ FieldType="String" HeaderText="妫鏌ュ尯鍩" HeaderTextAlign="Center" TextAlign="Left"> + FieldType="String" HeaderText="妫鏌ユ棩鏈" HeaderTextAlign="Center" Renderer="Date" RendererArgument="yyyy-MM-dd" TextAlign="Left"> + @@ -140,8 +143,8 @@ this.mergeColumns(['CheckMan']); this.mergeColumns(['PersonResponsibleName']); this.mergeColumns(['ProblemTypeName']); - this.mergeColumns(['Place']); - this.mergeColumns(['CreateTime']); + this.mergeColumns(['Place']); + this.mergeColumns(['CreateTime']); } diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs index 059a531..9ae4242 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.cs @@ -254,148 +254,31 @@ namespace FineUIPro.Web.HSSE.Check } #endregion - #region 缂栬緫 - /// - /// 缂栬緫鎸夐挳 - /// - /// - /// - protected void btnMenuModify_Click(object sender, EventArgs e) + #region 鍒犻櫎 + protected void btnMenuDel_Click(object sender, EventArgs e) { - if (Grid1.SelectedRowIndexArray.Length == 0) + if (Grid1.SelectedRowIndexArray.Length > 0) { - Alert.ShowInTop("璇疯嚦灏戦夋嫨涓鏉¤褰曪紒", MessageBoxIcon.Warning); - return; - } - string RegistrationId = Grid1.SelectedRowID; - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(RegistrationId); - if (registration != null) - { - if (registration.States == Const.State_1) //寰呮暣鏀 + foreach (int rowIndex in Grid1.SelectedRowIndexArray) { - if (registration.CheckManId == this.CurrUser.UserId) //褰撳墠浜烘槸妫鏌ヤ汉锛屽彲浠ュ湪鏁存敼鍓嶇户缁紪杈 + Model.SGGLDB db = Funs.DB; + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Inspect_InspectionItem item = db.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == rowID); + if (item != null) { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationAdd.aspx?HazardRegisterId={0}", RegistrationId, "缂栬緫 - "))); - } - else - { - Alert.ShowInTop("鎮ㄤ笉鏄褰曟鏌ヤ汉锛屾棤娉曠紪杈戯紒", MessageBoxIcon.Warning); - return; - } - } - else if (registration.States == Const.State_2) //宸叉暣鏀瑰緟纭 - { - if (registration.ResponsibleMan == this.CurrUser.UserId) //褰撳墠浜烘槸璐d换浜猴紝鍙互鍦ㄧ‘璁ゅ墠缁х画缂栬緫 - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HiddenRectificationRectify.aspx?HazardRegisterId={0}", RegistrationId, "缂栬緫 - "))); - } - else - { - Alert.ShowInTop("鎮ㄤ笉鏄褰曡矗浠讳汉锛屾棤娉曠紪杈戯紒", MessageBoxIcon.Warning); - return; - } - } - else if (registration.States == Const.State_3) //宸查棴鐜 - { - Alert.ShowInTop("璇ヨ褰曞凡闂幆锛屾棤娉曠紪杈戯紒", MessageBoxIcon.Warning); - return; - } - } - } - #endregion - #region 鏁存敼 - /// - /// 鏁存敼鎸夐挳 - /// - /// - /// - protected void btnMenuRectify_Click(object sender, EventArgs e) - { - if (Grid1.SelectedRowIndexArray.Length == 0) - { - Alert.ShowInTop("璇疯嚦灏戦夋嫨涓鏉¤褰曪紒", MessageBoxIcon.Warning); - return; - } - string RegistrationId = Grid1.SelectedRowID; - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByCheckItemDetailId(RegistrationId); - if (registration != null) - { - if (registration.States == "1") //寰呮暣鏀 - { - if (registration.ResponsibleMan == this.CurrUser.UserId) //褰撳墠浜烘槸璐d换浜猴紝鍙互杩涜鏁存敼鎿嶄綔 - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HiddenInspection/HiddenRectificationRectify.aspx?HazardRegisterId={0}", registration.HazardRegisterId, "缂栬緫 - "))); - } - else - { - Alert.ShowInTop("鎮ㄤ笉鏄褰曡矗浠讳汉锛屾棤娉曟暣鏀癸紒", MessageBoxIcon.Warning); - return; + db.Inspect_InspectionItem.DeleteOnSubmit(item); + db.SubmitChanges(); + int count = db.Inspect_Inspection.Count(x => x.InspectionId == item.InspectionId); + if (count == 0) + { + db.Inspect_Inspection.DeleteOnSubmit(db.Inspect_Inspection.FirstOrDefault(x => x.InspectionId == item.InspectionId)); + db.SubmitChanges(); + } } } - else - { - Alert.ShowInTop("璇ヨ褰曚笉鏄緟鏁存敼鐘舵侊紝鏃犳硶杩涜鏁存敼鎿嶄綔锛", MessageBoxIcon.Warning); - return; - } - } - } - #endregion - - #region 纭 - /// - /// 纭鎸夐挳 - /// - /// - /// - protected void btnMenuConfirm_Click(object sender, EventArgs e) - { - if (Grid1.SelectedRowIndexArray.Length == 0) - { - Alert.ShowInTop("璇疯嚦灏戦夋嫨涓鏉¤褰曪紒", MessageBoxIcon.Warning); - return; - } - string RegistrationId = Grid1.SelectedRowID; - var registration = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByCheckItemDetailId(RegistrationId); - if (registration != null) - { - if (registration.States == Const.State_2) //寰呯‘璁 - { - if (registration.CheckManId == this.CurrUser.UserId) //褰撳墠浜烘槸妫鏌ヤ汉锛屽彲浠ヨ繘琛岀‘璁ゆ搷浣 - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HiddenInspection/HiddenRectificationConfirm.aspx?HazardRegisterId={0}", registration.HazardRegisterId, "缂栬緫 - "))); - } - else - { - Alert.ShowInTop("鎮ㄤ笉鏄褰曟鏌ヤ汉锛屾棤娉曠‘璁わ紒", MessageBoxIcon.Warning); - return; - } - } - else - { - Alert.ShowInTop("璇ヨ褰曚笉鏄緟纭鐘舵侊紝鏃犳硶杩涜纭鎿嶄綔锛", MessageBoxIcon.Warning); - return; - } - } - } - #endregion - - #region 缂栧埗 - /// - /// 缂栧埗 - /// - /// - /// - protected void btnNew_Click(object sender, EventArgs e) - { - if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnAdd)) - { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HiddenInspection/HiddenRectificationAdd.aspx", "鐧昏 - "))); - } - else - { - Alert.ShowInTop("鎮ㄦ病鏈夎繖涓潈闄愶紝璇蜂笌绠$悊鍛樿仈绯伙紒", MessageBoxIcon.Warning); - return; + BindGrid(); + ShowNotify("鍒犻櫎鏁版嵁鎴愬姛!"); } } #endregion @@ -612,8 +495,18 @@ namespace FineUIPro.Web.HSSE.Check { return; } - var buttonList = CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HSSE_HiddenRectificationListMenuId); - + var buttonList = CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, "C7481FEE-EA92-44B8-99F6-C5CA6BBDCFF5"); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSee)) + { + this.btnMenuSee.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + } } #endregion diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs index 0a53e78..516c334 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialRecord.aspx.designer.cs @@ -184,5 +184,14 @@ namespace FineUIPro.Web.HSSE.Check /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::FineUIPro.MenuButton btnMenuSee; + + /// + /// btnMenuDel 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.MenuButton btnMenuDel; } } diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx index 17554ec..8d3c8ea 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx @@ -53,7 +53,7 @@ - + diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx.cs index db35a09..f2a6402 100644 --- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialView.aspx.cs @@ -69,7 +69,7 @@ namespace FineUIPro.Web.HSSE.Check this.Code.Text = item.InspectionCode; this.PName.Text = item.ProjectName; this.Cman.Text = item.CheckMan; - this.Pman.Text = item.ProblemTypeName; + this.Pman.Text = item.PersonResponsibleName; this.Ptype.Text = item.ProblemTypeName; this.Iarea.Text = item.Place; this.Carea.Text = item.WorkAreaName; diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx index 2361841..2105cf0 100644 --- a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx +++ b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx @@ -4,13 +4,149 @@ - - + + 涓撻」妫鏌ヨ褰 +
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%# ConvertImgUrlByImage(Eval("InspectionItemId")) %> + + + + + <%# ConvertImgUrl(Eval("InspectionItemId")) %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.cs b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.cs index 5f3611e..936a61b 100644 --- a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.cs +++ b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.cs @@ -1,17 +1,349 @@ -锘縰sing System; +锘縰sing BLL; +using FineUIPro.Web.HSSE.Check; +using System; using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; +using System.Text; +using AspNet = System.Web.UI.WebControls; namespace FineUIPro.Web.OfficeCheck.Inspect { - public partial class ProjectQualityInspection : System.Web.UI.Page + public partial class ProjectQualityInspection : PageBase { + #region 瀹氫箟椤 + public List ItemSelectedList + { + get + { + return (List)ViewState["ItemSelectedList"]; + } + set + { + ViewState["ItemSelectedList"] = value; + } + } + #endregion protected void Page_Load(object sender, EventArgs e) { - + if (!IsPostBack) + { + ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); + this.txtStartTime.Text = DateTime.Today.ToString("yyyy-MM-dd"); + this.txtEndTime.Text = DateTime.Today.ToString("yyyy-MM-dd"); + SetButtonPower(); + SetProblemTypes(); + SetResponsibleUnit(); + SetUnitProject(); + getList(); + } } + #region 璇锋眰璐ㄩ噺涓撴鍒楄〃 + public void getList() + { + string strSql = "SELECT a.InspectionId,a.InspectionCode,a.ProjectId,(SELECT ProjectName FROM Base_Project as p WHERE p.ProjectId = a.ProjectId) as ProjectName, a.PersonResponsible,(SELECT UserName FROM Sys_User as u WHERE u.UserID = a.PersonResponsible) as PersonResponsibleName, (CASE WHEN a.States = '1' THEN '寰呮鏌' WHEN a.States = '2' THEN '寰呭鏍/鏁存敼' WHEN a.States = '3' THEN '宸查棴鐜' END ) as Status, a.CheckMan, a.CreateTime, a.ProblemTypeName,b.CompileTime as CheckTime, " + + "b.InspectionItemId,b.BeforelUrl,b.AfterUrl, (CASE WHEN b.States = '1'and a.States = '1' THEN '寰呮彁浜' WHEN a.States = '2' and b.States = '1' THEN '寰呭鏍' WHEN a.States = '2' and b.States = '2' THEN '寰呮暣鏀' WHEN a.States = '2' and b.States = '3' THEN '宸查棴鐜' WHEN a.States = '3' THEN '宸查棴鐜' END) as itemStates," + + "a.Place FROM Inspect_InspectionItem as b LEFT JOIN Inspect_Inspection as a on b.InspectionId = a.InspectionId WHERE a.InspectType = '2'"; + List listStr = new List(); + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + strSql += "and a.ProjectId = @ProjectId"; + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + } + if (!string.IsNullOrEmpty(this.txtCheckMan.Text.Trim())) + { + strSql += " AND a.CheckMan LIKE @CheckMan"; + listStr.Add(new SqlParameter("@CheckMan", "%" + this.txtCheckMan.Text.Trim() + "%")); + } + if (this.txtType.SelectedText.Trim() != "璇烽夋嫨" && !string.IsNullOrEmpty(this.txtType.SelectedText.Trim())) + { + strSql += " AND a.ProblemTypeName = @Type"; + listStr.Add(new SqlParameter("@Type", this.txtType.SelectedText.Trim())); + } + if (!string.IsNullOrEmpty(this.txtWorkAreaName.SelectedText) && this.txtWorkAreaName.SelectedText.Trim() != "璇烽夋嫨") + { + strSql += " AND a.Place = @Place"; + listStr.Add(new SqlParameter("@Place", this.txtWorkAreaName.SelectedText.Trim())); + } + if (!string.IsNullOrEmpty(this.txtWorkAreaName.Text.Trim())) + { + strSql += " AND a.Place LIKE @Place"; + listStr.Add(new SqlParameter("@Place", "%" + this.txtWorkAreaName.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStartTime.Text.Trim())) + { + strSql += " AND b.CompileTime >= @StartTime"; + listStr.Add(new SqlParameter("@StartTime", string.Format("{0} {1}", this.txtStartTime.Text.Trim(), "00:00:00"))); + } + if (!string.IsNullOrEmpty(this.txtEndTime.Text.Trim())) + { + strSql += " AND b.CompileTime <= @EndTime"; + listStr.Add(new SqlParameter("@EndTime", string.Format("{0} {1}", this.txtEndTime.Text.Trim(), "23:59:59"))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 闂绫诲瀷涓嬫媺妗嗚祴鍊 + public void SetProblemTypes() + { + txtType.DataValueField = "QualityQuestionTypeId"; + txtType.DataTextField = "QualityQuestionType"; + List list = (from x in Funs.DB.Base_QualityQuestionType select x).ToList(); + list.Insert(0, new Model.Base_QualityQuestionType() + { + QualityQuestionTypeId = "-1", + QualityQuestionType = "璇烽夋嫨" + }); + txtType.DataSource = list; + txtType.DataBind(); + } + #endregion + + #region 鍗曚綅宸ョ▼涓嬫媺妗嗚祴鍊 + public void SetUnitProject() + { + List list = new List() { + new Model.WBS_UnitWork() + { + UnitWorkId = "-1", + UnitWorkName = "璇烽夋嫨" + } + }; + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + list.AddRange((from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId select x).ToList()); + } + txtWorkAreaName.DataValueField = "UnitWorkId"; + txtWorkAreaName.DataTextField = "UnitWorkName"; + txtWorkAreaName.DataSource = list; + txtWorkAreaName.DataBind(); + } + #endregion + + #region 璐d换鍗曚綅涓嬫媺妗嗚祴鍊 + public void SetResponsibleUnit() + { + List list = new List() { + new Model.UnitItem() + { + UnitId = "-1", + UnitName = "璇烽夋嫨" + } + }; + if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId)) + { + list.AddRange((from x in Funs.DB.Project_ProjectUnit + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == this.CurrUser.LoginProjectId + select new Model.UnitItem() + { + UnitId = y.UnitId, + UnitName = y.UnitName + }).ToList()); + } + txtResponsibilityUnitName.DataValueField = "UnitId"; + txtResponsibilityUnitName.DataTextField = "UnitName"; + txtResponsibilityUnitName.DataSource = list; + txtResponsibilityUnitName.DataBind(); + } + #endregion + + #region 鏁存敼鍚庡浘鐗 + protected string ConvertImgUrl(object registrationId) + { + string url = string.Empty; + if (registrationId != null) + { + var imgUrl = Funs.DB.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == registrationId.ToString()).AfterUrl; + if (imgUrl != null) + { + url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], imgUrl); + } + } + return url; + } + #endregion + + #region 鏁存敼鍓嶅浘鐗 + protected string ConvertImgUrlByImage(object registrationId) + { + string url = string.Empty; + if (registrationId != null) + { + var imgUrl = Funs.DB.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == registrationId.ToString()).BeforelUrl; + if (imgUrl != null) + { + url = BLL.UploadAttachmentService.ShowImage(ConfigurationManager.AppSettings["CEMS_IMG_URL"], imgUrl); + } + } + return url; + } + #endregion + + #region 鍏抽棴window寮圭獥 + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + getList(); + } + #endregion + + #region 鏌ョ湅璇︾粏 + protected void btnMenuSee_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("璇疯嚦灏戦夋嫨涓鏉¤褰曪紒", MessageBoxIcon.Warning); + return; + } + string id = Grid1.SelectedRowID; + + if (id != null) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectQualityInspectionView.aspx?InspectionItemId={0}", id, "鏌ョ湅 - "))); + } + } + #endregion + + #region 鏌ヨ + protected void TextBox_TextChanged(object sender, EventArgs e) + { + getList(); + } + #endregion + + #region 鎺掑簭 + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + getList(); + } + #endregion + + #region 鍒嗛〉 + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + getList(); + } + #endregion + + #region 鍒嗛〉鏉℃暟涓嬫媺妗 + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + getList(); + } + #endregion + + #region Grid琛岀偣鍑讳簨浠 + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + string RegistrationId = Grid1.DataKeys[e.RowIndex][0].ToString(); + Model.HSSE_Hazard_HazardRegister hazardRegister = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByCheckItemDetailId(RegistrationId); + if (e.CommandName == "IsSelected") + { + CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected"); + if (checkField.GetCheckedState(e.RowIndex)) + { + if (!ItemSelectedList.Contains(RegistrationId)) + { + ItemSelectedList.Add(RegistrationId); + } + } + else + { + if (ItemSelectedList.Contains(RegistrationId)) + { + ItemSelectedList.Remove(RegistrationId); + } + } + } + + if (e.CommandName == "del") + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete)) + { + if (hazardRegister.States != Const.State_3 || this.CurrUser.UserId == BLL.Const.hfnbdId) //寰呮暣鏀 + { + var getD = BLL.HSSE_Hazard_HazardRegisterService.GetHazardRegisterByHazardRegisterId(RegistrationId); + if (getD != null) + { + BLL.LogService.AddSys_Log(this.CurrUser, getD.HazardCode, getD.HazardRegisterId, BLL.Const.HSSE_HiddenRectificationListMenuId, BLL.Const.BtnDelete); + BLL.HSSE_Hazard_HazardRegisterService.DeleteHazardRegisterByHazardRegisterId(RegistrationId); + getList(); + ShowNotify("鍒犻櫎鎴愬姛!", MessageBoxIcon.Success); + } + } + else + { + Alert.ShowInTop("宸查棴鐜紝鏃犳硶鍒犻櫎锛", MessageBoxIcon.Warning); + return; + } + } + else + { + Alert.ShowInTop("鎮ㄦ病鏈夎繖涓潈闄愶紝璇蜂笌绠$悊鍛樿仈绯伙紒", MessageBoxIcon.Warning); + return; + } + } + } + #endregion + + #region Grid鍙屽嚮浜嬩欢 + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnMenuSee_Click(null, null); + } + #endregion + + #region 鑾峰彇鎸夐挳鏉冮檺 + public void SetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, "66A8D852-A542-47C7-B474-C0EEA73AC58E"); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + } + } + #endregion + + #region 鍒犻櫎 + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + Model.SGGLDB db = Funs.DB; + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Inspect_InspectionItem item = db.Inspect_InspectionItem.FirstOrDefault(x => x.InspectionItemId == rowID); + if (item != null) + { + + db.Inspect_InspectionItem.DeleteOnSubmit(item); + db.SubmitChanges(); + int count = db.Inspect_Inspection.Count(x=> x.InspectionId == item.InspectionId); + if(count == 0) { + db.Inspect_Inspection.DeleteOnSubmit(db.Inspect_Inspection.FirstOrDefault(x => x.InspectionId == item.InspectionId)); + db.SubmitChanges(); + } + } + } + getList(); + ShowNotify("鍒犻櫎鏁版嵁鎴愬姛!"); + } + } + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.designer.cs b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.designer.cs index afa47d1..443ccfa 100644 --- a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspection.aspx.designer.cs @@ -22,5 +22,176 @@ namespace FineUIPro.Web.OfficeCheck.Inspect /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// txtCheckMan 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox txtCheckMan; + + /// + /// txtType 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.DropDownList txtType; + + /// + /// txtWorkAreaName 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.DropDownList txtWorkAreaName; + + /// + /// txtResponsibilityUnitName 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.DropDownList txtResponsibilityUnitName; + + /// + /// txtStartTime 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.DatePicker txtStartTime; + + /// + /// Label3 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Label Label3; + + /// + /// txtEndTime 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// lblPageIndex 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + + /// + /// ToolbarSeparator1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuSee 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.MenuButton btnMenuSee; + + /// + /// btnMenuDel 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.MenuButton btnMenuDel; } } diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx new file mode 100644 index 0000000..53575d6 --- /dev/null +++ b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx @@ -0,0 +1,111 @@ +锘<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectQualityInspectionView.aspx.cs" Inherits="FineUIPro.Web.OfficeCheck.Inspect.ProjectQualityInspectionView" %> + + + + + + 鏌ョ湅涓撻」妫鏌 + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ + + + + + + + + +
+
+
+
+
+
+
+
+
+ + + + diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx.cs b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx.cs new file mode 100644 index 0000000..7c05d62 --- /dev/null +++ b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx.cs @@ -0,0 +1,102 @@ +锘縰sing BLL; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.OfficeCheck.Inspect +{ + public partial class ProjectQualityInspectionView : System.Web.UI.Page + { + #region 瀹氫箟鍙橀噺 + + public string InspectionItemId + { + get + { + return (string)ViewState["InspectionItemId"]; + } + set + { + ViewState["InspectionItemId"] = value; + } + } + + #endregion + protected void Page_Load(object sender, EventArgs e) + { + this.InspectionItemId = Request.Params["InspectionItemId"]; + + var item = (from x in Funs.DB.Inspect_InspectionItem + join y in Funs.DB.Inspect_Inspection on x.InspectionId equals y.InspectionId + where x.InspectionItemId == this.InspectionItemId + select new + { + InspectionItemId = x.InspectionItemId, + InspectionId = x.InspectionId, + ProjectId = y.ProjectId, + ProjectName = Funs.DB.Base_Project.FirstOrDefault(p => p.ProjectId == y.ProjectId).ProjectName, + InspectionCode = y.InspectionCode, + CheckMan = y.CheckMan, + ProblemTypeName = y.ProblemTypeName, + Place = y.Place, + PersonResponsible = y.PersonResponsible, + PersonResponsibleName = Funs.DB.Sys_User.FirstOrDefault(p => p.UserId == y.PersonResponsible).UserName, + WorkAreaName = x.WorkAreaName, + States = y.States, + ItemStates = x.States, + EvaluateResults = x.EvaluateResults, + BeforelUrl = x.BeforelUrl, + AfterUrl = x.AfterUrl, + AuditTime = x.AuditTime, + AuditMan = x.AuditMan, + RectificationResults = x.RectificationResults, + AuditManName = Funs.DB.Sys_User.FirstOrDefault(p => p.UserId == x.AuditMan).UserName, + ProblemDetial = x.ProblemDetial, + RectificationDescription = x.RectificationDescription + + } + ).FirstOrDefault(); + this.QDetails.Text = item.ProblemDetial; + this.suggest.Text = item.RectificationDescription; + this.Code.Text = item.InspectionCode; + this.PName.Text = item.ProjectName; + this.Cman.Text = item.CheckMan; + this.Pman.Text = item.PersonResponsibleName; + this.Ptype.Text = item.ProblemTypeName; + this.Iarea.Text = item.Place; + this.Carea.Text = item.WorkAreaName; + this.conclusion.Text = item.RectificationResults; + this.divImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment(ConfigurationManager.AppSettings["CEMS_IMG_URL"], item.BeforelUrl); + this.divRectificationImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment(ConfigurationManager.AppSettings["CEMS_IMG_URL"], item.AfterUrl); + + if (item.States == "1" && item.ItemStates == "1") + { + this.state.Text = "寰呮彁浜"; + } + if (item.States == "2" && item.ItemStates == "1") + { + this.state.Text = "寰呭鎵"; + } + if (item.States == "2" && item.ItemStates == "2") + { + this.state.Text = "寰呮暣鏀"; + } + if (item.States == "2" && item.ItemStates == "3") + { + this.state.Text = "宸查棴鐜"; + } + if (item.States == "2" && item.ItemStates == "3") + { + this.state.Text = "宸查棴鐜"; + } + if (item.States == "3") + { + this.state.Text = "宸查棴鐜"; + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx.designer.cs b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx.designer.cs new file mode 100644 index 0000000..b036032 --- /dev/null +++ b/SGGL/FineUIPro.Web/OfficeCheck/Inspect/ProjectQualityInspectionView.aspx.designer.cs @@ -0,0 +1,197 @@ +锘//------------------------------------------------------------------------------ +// <鑷姩鐢熸垚> +// 姝や唬鐮佺敱宸ュ叿鐢熸垚銆 +// +// 瀵规鏂囦欢鐨勬洿鏀瑰彲鑳藉鑷翠笉姝g‘鐨勮涓猴紝濡傛灉 +// 閲嶆柊鐢熸垚浠g爜锛屽垯鎵鍋氭洿鏀瑰皢涓㈠け銆 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.OfficeCheck.Inspect +{ + + + public partial class ProjectQualityInspectionView + { + + /// + /// _form1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm _form1; + + /// + /// PageManager1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Form1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Form Form1; + + /// + /// Code 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox Code; + + /// + /// PName 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox PName; + + /// + /// Cman 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox Cman; + + /// + /// Pman 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox Pman; + + /// + /// Ptype 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox Ptype; + + /// + /// Iarea 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox Iarea; + + /// + /// Carea 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox Carea; + + /// + /// state 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox state; + + /// + /// QDetails 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox QDetails; + + /// + /// suggest 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox suggest; + + /// + /// conclusion 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.TextBox conclusion; + + /// + /// lblImageUrl 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Label lblImageUrl; + + /// + /// ContentPanel2 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.ContentPanel ContentPanel2; + + /// + /// divImageUrl 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divImageUrl; + + /// + /// lblRectificationImageUrl 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.Label lblRectificationImageUrl; + + /// + /// ContentPanel1 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// divRectificationImageUrl 鎺т欢銆 + /// + /// + /// 鑷姩鐢熸垚鐨勫瓧娈点 + /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲 + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRectificationImageUrl; + } +} diff --git a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml index 5bf214c..f8ef4d9 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml @@ -4,7 +4,6 @@ - diff --git a/SGGL/FineUIPro.Web/common/Menu_Server.xml b/SGGL/FineUIPro.Web/common/Menu_Server.xml index fb3b647..9df913c 100644 --- a/SGGL/FineUIPro.Web/common/Menu_Server.xml +++ b/SGGL/FineUIPro.Web/common/Menu_Server.xml @@ -6,6 +6,5 @@ - \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/Menu_SysSet.xml b/SGGL/FineUIPro.Web/common/Menu_SysSet.xml index 6aa8418..7bf0210 100644 --- a/SGGL/FineUIPro.Web/common/Menu_SysSet.xml +++ b/SGGL/FineUIPro.Web/common/Menu_SysSet.xml @@ -43,7 +43,6 @@ - diff --git a/SGGL/FineUIPro.Web/common/main3.aspx b/SGGL/FineUIPro.Web/common/main3.aspx index 68d5db5..d868ccd 100644 --- a/SGGL/FineUIPro.Web/common/main3.aspx +++ b/SGGL/FineUIPro.Web/common/main3.aspx @@ -9,16 +9,17 @@ 鏅烘収鏂藉伐绠$悊淇℃伅绯荤粺 - + @@ -114,24 +116,27 @@
- + <%-- --%> + + +
-
+
-
+
-
+
@@ -171,8 +176,8 @@
0
-
-
+
+
@@ -214,6 +219,11 @@
+
+ + + +
@@ -300,21 +310,40 @@ let AQWTChart = null; // 瀹夊叏闂缁熻鏌辩姸鍥剧殑瀹炰綋 // 5鍒嗛挓鍒锋柊涓娆℃暟鎹 setInterval(function () { - // 闂绫诲瀷缁熻 + // 闂绫诲瀷缁熻 problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) // 鍔冲姟鏁版嵁缁熻 - serviceData($("#labour").val()) + serviceData() }, 300000) $(document).ready(function () { // 鍒濆鍖栧姵鍔℃暟鎹 - $("#labour").val(nowDate()) - serviceData(nowDate()) + $("#labour_start").val(nowDate()) + $("#labour_end").val(nowDate()) + serviceData() // 鍒囨崲鏃ユ湡鏃惰姹傛暟鎹 - $('#labour').on("change", function (e) { - serviceData($("#labour").val()) + $('#labour_start').on('change', function () { + let labour_start = $('#labour_start').val() + let labour_end = $('#labour_end').val() + if (new Date(labour_start).getTime() > new Date(labour_end)) { + alert("璇烽夋嫨灏忎簬" + labour_end + "鏃ユ湡") + $('#labour_start').val(labour_end) + } + serviceData() + }) + $('#labour_end').on('change', function () { + let labour_start = $('#labour_start').val() + let labour_end = $('#labour_end').val() + if (new Date(labour_start).getTime() > new Date(labour_end)) { + $('#labour_start').val(nowDate()) + + alert("璇烽夋嫨澶т簬" + labour_start + "鏃ユ湡") + } + serviceData() + }) + // 缁欏畨鍏ㄩ棶棰樼粺璁¤祴鍊 @@ -333,9 +362,8 @@ if (new Date(safe_start).getTime() > new Date(safe_end)) { alert("璇烽夋嫨灏忎簬" + safe_end + "鏃ユ湡") $('#safe_start').val(safe_end) - } else { - problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) } + problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) }) $('#safe_end').on('change', function () { @@ -344,13 +372,41 @@ if (new Date(safe_start).getTime() > new Date(safe_end)) { $('#safe_start').val(nowDate()) alert("璇烽夋嫨澶т簬" + safe_start + "鏃ユ湡") - } else { - problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) } + problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) }) createChinaMap() }) + // 璐ㄩ噺闂缁熻 + function getQualityProblemStatistics() { + $.ajax({ + url: "main3.aspx/GetQualityProblemStatistics", + type: "POST", + contentType: "application/json; charset=utf-8", + dataType: "json", + data: JSON.stringify({ + startdate: startdate, + enddate: enddate + }), + success: function (data) { + console.log(data) + let d = data.d + $("#all").text(d.AllCount) + $("#done").text(d.DoneCount) + $("#undone").text(d.UnDoneCount) + let tits = [] + let vals = [] + d.CheckList.map(e => { + tits.push(e.type) + vals.push(e.count) + }) + + initAQWTap('aqtj', tits, vals) + + } + }) + } // 瀹夊叏闂缁熻 function problemTypeStatistics(startdate, enddate) { $.ajax({ @@ -375,21 +431,24 @@ tits.push(e.type) vals.push(e.count) }) - + initAQWTap('aqtj', tits, vals) } }) } // 璇锋眰鍔冲姟鏁版嵁 - function serviceData(date) { + function serviceData() { + let labour_start = $('#labour_start').val() + let labour_end = $('#labour_end').val() $.ajax({ url: "main3.aspx/GetServiceData", type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", data: JSON.stringify({ - date: date + startdate: labour_start, + enddate: labour_end }), success: function (data) { console.log(data) @@ -423,8 +482,9 @@ var option = { grid: { containLabel: true, + top: 30, left: 0, - bottom: resetSize(10), + height: 180, }, xAxis: { @@ -435,8 +495,8 @@ rotate: -25, interval: 0, textStyle: { - fontSize: 14, - color: '#84D7FE' + fontSize: 12, + color: '#FFFFFF' } } }, @@ -480,7 +540,7 @@ right: '0', bottom: 0, start: 0,//婊氬姩鏉$殑璧峰浣嶇疆 - end: 50, //婊氬姩鏉$殑鎴浣嶇疆锛堟寜姣斾緥鍒嗗壊浣犵殑鏌辩姸鍥緓杞撮暱搴︼級 + end: 8/tit.length*100, //婊氬姩鏉$殑鎴浣嶇疆锛堟寜姣斾緥鍒嗗壊浣犵殑鏌辩姸鍥緓杞撮暱搴︼級 fillerColor: '#6B7388', //婊戝潡鐨勯鑹 backgroundColor: '#2B3755', 聽// 婊戝潡杞ㄩ亾鐨勯鑹 borderColor: 'transparent', // 婊戝潡杞ㄩ亾杈规鐨勯鑹 @@ -523,9 +583,9 @@ $(".swiper-button-next").on("click", function () { mySwiper.slideNext() }) - - + + function initZLMap(el, val, tit = "") { const gaugeData = [ @@ -629,7 +689,7 @@ var myChart = echarts.init(chartDom); option && myChart.setOption(option); } - + function createChinaMap() { var chinaData = JSON.parse('<%=ProjectInfo %>') // 鍦板浘 鐐 diff --git a/SGGL/FineUIPro.Web/common/main3.aspx.cs b/SGGL/FineUIPro.Web/common/main3.aspx.cs index a02630f..3e34905 100644 --- a/SGGL/FineUIPro.Web/common/main3.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main3.aspx.cs @@ -82,12 +82,13 @@ namespace FineUIPro.Web.common #region 鍔冲姟鏁版嵁 [WebMethod] - public static Object GetServiceData(string date) + public static Object GetServiceData(string startdate, string enddate) { - DateTime mdate = Funs.GetNewDateTimeOrNow(date); + DateTime startd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", startdate, "00:00:00")); + DateTime endd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", enddate, "23:59:59")); int m_count = Funs.DB.Project_ProjectUser.Count(); int job_count = (from x in Funs.DB.Meeting_ClassMeeting - where x.ClassMeetingDate.Value.Year == mdate.Year && x.ClassMeetingDate.Value.Month == mdate.Month && x.ClassMeetingDate.Value.Day == mdate.Day + where x.ClassMeetingDate >= startd && x.ClassMeetingDate <= endd select new Model.MeetingItem { AttentPersonNum = x.AttentPersonNum ?? 0, @@ -103,8 +104,23 @@ namespace FineUIPro.Web.common } #endregion + #region 璐ㄩ噺闂缁熻 + [WebMethod] + public static Object GetQualityProblemStatistics(string startdate, string enddate) + { + DateTime startd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", startdate, "00:00:00")); + DateTime endd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", enddate, "23:59:59")); + List list = (from x in Funs.DB.Inspect_InspectionItem + join i in Funs.DB.Inspect_Inspection on x.InspectionId equals i.InspectionId + where i.InspectType == "1" && x.CompileTime > startd && x.CompileTime < endd + select new Model.Inspect_InspectionItem() + ).ToList(); - #region + return null; + } + #endregion + + #region 瀹夊叏闂缁熻 [WebMethod] public static Object GetSafetyProblemStatistics( string startdate, string enddate) { @@ -135,16 +151,10 @@ namespace FineUIPro.Web.common ).Concat( from i in Funs.DB.Inspect_Inspection join itm in Funs.DB.Inspect_InspectionItem on i.InspectionId equals itm.InspectionId - where i.ProblemTypeName != null && i.CreateTime > startd && i.CreateTime < endd + where i.ProblemTypeName != null && i.CreateTime > startd && i.CreateTime < endd && i.InspectType == "1" group i by i.ProblemTypeName into g2 select new { type = g2.Key, count = g2.Count() } -).Concat( - from ins in Funs.DB.Inspect_Inspection - join itm in Funs.DB.Inspect_InspectionItem on ins.InspectionId equals itm.InspectionId - where ins.Place != null && ins.CreateTime > startd && ins.CreateTime < endd - group ins by ins.Place into g3 - select new { type = g3.Key, count = g3.Count() } ) .GroupBy(x => x.type) .Select(g => new { type = g.Key, count = g.Sum(x => x.count) }); diff --git a/SGGL/FineUIPro.Web/common/mainProject.aspx b/SGGL/FineUIPro.Web/common/mainProject.aspx index f0ae325..73bcd6a 100644 --- a/SGGL/FineUIPro.Web/common/mainProject.aspx +++ b/SGGL/FineUIPro.Web/common/mainProject.aspx @@ -178,7 +178,9 @@
- + + +
@@ -186,8 +188,8 @@
-
- +
+
@@ -246,8 +248,7 @@
-
-

鏆傛棤鏁版嵁

` +
`
<%--
瑙嗛鐩戞帶
@@ -573,28 +574,46 @@ // 闂绫诲瀷缁熻 problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) // 鍔冲姟鏁版嵁缁熻 - serviceData($("#labour").val()) + serviceData() }, 300000) $(document).ready(function () { let ProjectId = "<%= ProjectId%>" - // 缁欏姵鍔℃暟鎹棩鏈熼夋嫨妗嗚祴褰撳ぉ鏃ユ湡 - $('#labour').val(nowDate()); - serviceData(nowDate()) + // 鍒濆鍖栧姵鍔℃暟鎹 + $("#labour_start").val(nowDate()) + $("#labour_end").val(nowDate()) + serviceData() // 鍒囨崲鏃ユ湡鏃惰姹傛暟鎹 - $('#labour').on("change", function (e) { - serviceData($(this).val()) + $('#labour_start').on('change', function () { + let labour_start = $('#labour_start').val() + let labour_end = $('#labour_end').val() + if (new Date(labour_start).getTime() > new Date(labour_end)) { + alert("璇烽夋嫨灏忎簬" + labour_end + "鏃ユ湡") + $('#labour_start').val(labour_end) + } + serviceData() + }) - + $('#labour_end').on('change', function () { + let labour_start = $('#labour_start').val() + let labour_end = $('#labour_end').val() + if (new Date(labour_start).getTime() > new Date(labour_end)) { + $('#labour_start').val(nowDate()) + + alert("璇烽夋嫨澶т簬" + labour_start + "鏃ユ湡") + } + serviceData() + }) + // 缁欏畨鍏ㄩ棶棰樼粺璁¤祴鍊 let date = new Date() let year = date.getFullYear() let month = date.getMonth() + 1 - $('#safe_start').val(`${year}-${month.toString().padStart(2, '0') }-01`); - $('#safe_end').val(`${year}-${month.toString().padStart(2, '0')}-${new Date(year, month, 0).getDate() }`); + $('#safe_start').val(`${year}-${month.toString().padStart(2, '0')}-01`); + $('#safe_end').val(`${year}-${month.toString().padStart(2, '0')}-${new Date(year, month, 0).getDate()}`); problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) - + $('#safe_start').on('change', function () { let safe_start = $('#safe_start').val() let safe_end = $('#safe_end').val() @@ -604,7 +623,7 @@ } else { problemTypeStatistics($('#safe_start').val(), $('#safe_end').val()) } - + }) $('#safe_end').on('change', function () { let safe_start = $('#safe_start').val() @@ -638,8 +657,7 @@ data: JSON.stringify({ ProjectId: ProjectId, startdate: startdate, - enddate: enddate, - + enddate: enddate }), success: function (data) { console.log(data) @@ -654,31 +672,22 @@ vals.push(e.count) }) initAQWTap('lw-map', tits, vals) - //if (d.CheckList.length > 0) { - // d.CheckList.map(e => { - // tits.push(e.type) - // vals.push(e.count) - // }) - // $("#lw-map").show() - // $(".lw-map>p").hide() - // initAQWTap('lw-map', tits, vals) - //} else { - // $("#lw-map").hide() - // $(".lw-map>p").show() - //} - + } }) } // 璇锋眰鍔冲姟鏁版嵁 - function serviceData(date) { + function serviceData() { + let labour_start = $('#labour_start').val() + let labour_end = $('#labour_end').val() $.ajax({ url: "mainProject.aspx/GetServiceData", type: "POST", contentType: "application/json; charset=utf-8", dataType: "json", data: JSON.stringify({ - date: date, + startdate: labour_start, + enddate: labour_end, ProjectId: ProjectId, }), success: function (data) { @@ -702,9 +711,9 @@ var option = { grid: { containLabel: true, + top: 30, left: 0, - bottom: resetSize(10), - + height: 220, }, xAxis: { type: 'category', @@ -714,8 +723,8 @@ rotate: -25, interval: 0, textStyle: { - fontSize: 14, - color: '#84D7FE' + fontSize: 12, + color: '#FFFFFF' } } }, @@ -735,7 +744,7 @@ }, series: [ { - barWidth: resetSize(20), + barWidth: 20, data: val, type: 'bar', label: { @@ -759,7 +768,7 @@ right: '0', bottom: 0, start: 0,//婊氬姩鏉$殑璧峰浣嶇疆 - end: 50, //婊氬姩鏉$殑鎴浣嶇疆锛堟寜姣斾緥鍒嗗壊浣犵殑鏌辩姸鍥緓杞撮暱搴︼級 + end: 8 / tit.length * 100, //婊氬姩鏉$殑鎴浣嶇疆锛堟寜姣斾緥鍒嗗壊浣犵殑鏌辩姸鍥緓杞撮暱搴︼級 fillerColor: '#6B7388', //婊戝潡鐨勯鑹 backgroundColor: '#2B3755', 聽// 婊戝潡杞ㄩ亾鐨勯鑹 borderColor: 'transparent', // 婊戝潡杞ㄩ亾杈规鐨勯鑹 @@ -974,7 +983,7 @@ } - + function resetSize(size, initWidth = 1920) { let clientWidth = document.body.clientWidth @@ -1021,8 +1030,8 @@ }, 'json'); } - initVideo(); - runShowVideo(); + //initVideo(); + //runShowVideo(); var videoURL = '<%= VideoHost %>'; let more = document.getElementById('more') @@ -1033,7 +1042,7 @@ //var password = $('#SimpleForm1_hfMonitorPW-inputEl').val(); console.log(videoURL); debugger - window.open(videoURL + "#/screen?username=" + '<%= VideoUserName %>' + "&password=" + '<%= VideoPassWord %>', '_blank'); + ////////window.open(videoURL + "#/screen?username=" + '<%= VideoUserName %>' + "&password=" + '<%= VideoPassWord %>', '_blank'); } else { alert("鎮ㄦ病鏈夋潈闄愶紒"); diff --git a/SGGL/FineUIPro.Web/common/mainProject.aspx.cs b/SGGL/FineUIPro.Web/common/mainProject.aspx.cs index 21a373c..2a4414d 100644 --- a/SGGL/FineUIPro.Web/common/mainProject.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainProject.aspx.cs @@ -12,6 +12,7 @@ using System.Data; using System.Data.SqlClient; using System.IO; using System.Linq; +using System.Runtime.InteropServices.ComTypes; using System.Web.Services; namespace FineUIPro.Web.common @@ -50,7 +51,7 @@ namespace FineUIPro.Web.common this.ProjectId = this.CurrUser.LoginProjectId; } /// 鑾峰彇瀹夊叏浜哄伐鏃 - getPersonWorkTime(); + //getPersonWorkTime(); ///鍔冲姟缁熻 getSitePerson(); ///椤圭洰姒傚喌 @@ -81,13 +82,14 @@ namespace FineUIPro.Web.common #region 鑾峰彇椤圭洰鍔冲姟鏁版嵁 [WebMethod] - public static Object GetServiceData(string ProjectId, string date) + public static Object GetServiceData(string ProjectId, string startdate, string enddate) { - DateTime mdate = Funs.GetNewDateTimeOrNow(date); + DateTime startd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", startdate, "00:00:00")); + DateTime endd = Funs.GetNewDateTimeOrNow(string.Format("{0} {1}", enddate, "23:59:59")); int m_count = Funs.DB.Project_ProjectUser.Count(x => x.ProjectId == ProjectId); int job_count = (from x in Funs.DB.Meeting_ClassMeeting - where x.ProjectId == ProjectId - && x.ClassMeetingDate.Value.Year == mdate.Year && x.ClassMeetingDate.Value.Month == mdate.Month && x.ClassMeetingDate.Value.Day == mdate.Day + where x.ProjectId == ProjectId && x.ClassMeetingDate >= startd && x.ClassMeetingDate <= endd + select new Model.MeetingItem { AttentPersonNum = x.AttentPersonNum ?? 0, @@ -130,12 +132,12 @@ namespace FineUIPro.Web.common group hsse by hsse.RectifyName into g1 select new { type = g1.Key, count = g1.Count() }).Union((from i in Funs.DB.Inspect_Inspection join itm in Funs.DB.Inspect_InspectionItem on i.InspectionId equals itm.InspectionId - where i.ProblemTypeName != null && i.ProjectId == ProjectId && i.CreateTime > startd && i.CreateTime < endd + where i.ProblemTypeName != null && i.ProjectId == ProjectId && i.CreateTime > startd && i.CreateTime < endd && i.InspectType == "1" group i by i.ProblemTypeName into g2 select new { type = g2.Key, count = g2.Count() }) .Union(from ins in Funs.DB.Inspect_Inspection join itm in Funs.DB.Inspect_InspectionItem on ins.InspectionId equals itm.InspectionId - where ins.Place != null && ins.ProjectId == ProjectId && ins.CreateTime > startd && ins.CreateTime < endd + where ins.Place != null && ins.ProjectId == ProjectId && ins.CreateTime > startd && ins.CreateTime < endd && ins.InspectType == "1" group ins by ins.Place into g3 select new { type = g3.Key, count = g3.Count() })).ToList(); @@ -173,7 +175,6 @@ namespace FineUIPro.Web.common /// private void getPersonWorkTime() { - //this.divSafeWorkTime.InnerHtml = "0000000000"; var monthReportB = from y in Funs.DB.Manager_MonthReportB where y.ProjectId == this.CurrUser.LoginProjectId orderby y.Months descending @@ -245,90 +246,96 @@ namespace FineUIPro.Web.common /// private void getSitePerson() { - int AllCount = 0; - int MCount = 0; - //var getallin = APIPageDataService.getPersonInOutNum(this.ProjectId, DateTime.Now.AddDays(-1)); - DateTime dateValue = DateTime.Now.AddDays(-1); - List getallin = new List(); - var getInMaxs = from x in Funs.DB.SitePerson_Person - join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true - select new Model.PageDataPersonInOutItem - { - PersonId = x.PersonId, - PostType = y.PostType, - WorkPostId = x.WorkPostId, - IdentityCard = x.IdentityCard - - }; - if (getInMaxs.Count() > 0) - { - getallin = getInMaxs.Distinct().ToList(); - } - var AllInOut = (from x in Funs.DB.T_d_EmployInOutRecord - join y in Funs.DB.SitePerson_Person on new { ss1 = x.ProjectId, ss = x.IDCardNo } equals new { ss1 = y.ProjectId, ss = y.IdentityCard } - where y.ProjectId == this.CurrUser.LoginProjectId && y.IsUsed == true && x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date - select x.IDCardNo).Distinct(); - AllCount = AllInOut.Count(); - if (AllCount > 0) + try { + int AllCount = 0; + int MCount = 0; + //var getallin = APIPageDataService.getPersonInOutNum(this.ProjectId, DateTime.Now.AddDays(-1)); + DateTime dateValue = DateTime.Now.AddDays(-1); + List getallin = new List(); + var getInMaxs = from x in Funs.DB.SitePerson_Person + join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId + where x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true + select new Model.PageDataPersonInOutItem + { + PersonId = x.PersonId, + PostType = y.PostType, + WorkPostId = x.WorkPostId, + IdentityCard = x.IdentityCard - HashSet idCardNoSet = new HashSet(); - foreach (string idCardNo in AllInOut) + }; + if (getInMaxs.Count() > 0) { - idCardNoSet.Add(idCardNo); + getallin = getInMaxs.Distinct().ToList(); } - foreach (var i in getallin) + var AllInOut = (from x in Funs.DB.T_d_EmployInOutRecord + join y in Funs.DB.SitePerson_Person on new { ss1 = x.ProjectId, ss = x.IDCardNo } equals new { ss1 = y.ProjectId, ss = y.IdentityCard } + where y.ProjectId == this.CurrUser.LoginProjectId && y.IsUsed == true && x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date + select x.IDCardNo).Distinct(); + AllCount = AllInOut.Count(); + if (AllCount > 0) { - if (i.PostType == Const.PostType_1 && idCardNoSet.Contains(i.IdentityCard)) + + HashSet idCardNoSet = new HashSet(); + foreach (string idCardNo in AllInOut) { - MCount++; + idCardNoSet.Add(idCardNo); } - } - - - } - - WorkPostS = "[]"; - InPostCounts = "[]"; - InDutyCounts = "[]"; - List InPostCountList = new List(); - List InDutyCountList = new List(); - List worksList = new List(); - //if (this.CurrUser.UserId != Const.hfnbdId) - //{ - var getPersons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == this.ProjectId && x.IsUsed == true && x.InTime <= DateTime.Now - && !x.OutTime.HasValue); - if (getPersons.Count() > 0) - { - var getWorkIds = getPersons.Where(x => x.WorkPostId != null).Select(x => x.WorkPostId).Distinct(); - if (getWorkIds.Count() > 0) - { - foreach (var item in getWorkIds) + foreach (var i in getallin) { - worksList.Add(WorkPostService.getWorkPostNameById(item)); - int isPost = getPersons.Where(x => x.WorkPostId == item).Count(); - InPostCountList.Add(isPost); - int inDuty = 0; - if (getallin.Count() > 0) + if (i.PostType == Const.PostType_1 && idCardNoSet.Contains(i.IdentityCard)) { - inDuty = getallin.Where(x => x.WorkPostId == item).Count(); + MCount++; + } + } + + + } + + WorkPostS = "[]"; + InPostCounts = "[]"; + InDutyCounts = "[]"; + List InPostCountList = new List(); + List InDutyCountList = new List(); + List worksList = new List(); + //if (this.CurrUser.UserId != Const.hfnbdId) + //{ + var getPersons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == this.ProjectId && x.IsUsed == true && x.InTime <= DateTime.Now + && !x.OutTime.HasValue); + if (getPersons.Count() > 0) + { + var getWorkIds = getPersons.Where(x => x.WorkPostId != null).Select(x => x.WorkPostId).Distinct(); + if (getWorkIds.Count() > 0) + { + foreach (var item in getWorkIds) + { + worksList.Add(WorkPostService.getWorkPostNameById(item)); + int isPost = getPersons.Where(x => x.WorkPostId == item).Count(); + InPostCountList.Add(isPost); + int inDuty = 0; + if (getallin.Count() > 0) + { + inDuty = getallin.Where(x => x.WorkPostId == item).Count(); + } + InDutyCountList.Add(inDuty); } - InDutyCountList.Add(inDuty); } } - } - else - { - worksList.Add(" "); - InPostCountList.Add(0); - InDutyCountList.Add(0); - } - //} + else + { + worksList.Add(" "); + InPostCountList.Add(0); + InDutyCountList.Add(0); + } + //} - WorkPostS = JsonConvert.SerializeObject(worksList); - InPostCounts = JsonConvert.SerializeObject(InPostCountList); - InDutyCounts = JsonConvert.SerializeObject(InDutyCountList); + WorkPostS = JsonConvert.SerializeObject(worksList); + InPostCounts = JsonConvert.SerializeObject(InPostCountList); + InDutyCounts = JsonConvert.SerializeObject(InDutyCountList); + } catch (Exception ex) + { + + } } #endregion diff --git a/SGGL/FineUIPro.Web/res/css/mainindex.css b/SGGL/FineUIPro.Web/res/css/mainindex.css index e18ce6f..3235a73 100644 --- a/SGGL/FineUIPro.Web/res/css/mainindex.css +++ b/SGGL/FineUIPro.Web/res/css/mainindex.css @@ -191,7 +191,8 @@ body::-webkit-scrollbar{ .t-aqtj{ width: 100%; - height: 2.625rem; + height: 2.3rem; + margin-bottom: .25rem; } .t-xcsp { diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index d41e85c..e2fed88 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -74,6 +74,9 @@ namespace Model partial void InsertBase_AccidentType(Base_AccidentType instance); partial void UpdateBase_AccidentType(Base_AccidentType instance); partial void DeleteBase_AccidentType(Base_AccidentType instance); + partial void InsertBase_AloneProject(Base_AloneProject instance); + partial void UpdateBase_AloneProject(Base_AloneProject instance); + partial void DeleteBase_AloneProject(Base_AloneProject instance); partial void InsertBase_BranchTeamList(Base_BranchTeamList instance); partial void UpdateBase_BranchTeamList(Base_BranchTeamList instance); partial void DeleteBase_BranchTeamList(Base_BranchTeamList instance); @@ -491,6 +494,66 @@ namespace Model partial void InsertCheck_ViolationPerson(Check_ViolationPerson instance); partial void UpdateCheck_ViolationPerson(Check_ViolationPerson instance); partial void DeleteCheck_ViolationPerson(Check_ViolationPerson instance); + partial void InsertCl_b_AcceptanceResult(Cl_b_AcceptanceResult instance); + partial void UpdateCl_b_AcceptanceResult(Cl_b_AcceptanceResult instance); + partial void DeleteCl_b_AcceptanceResult(Cl_b_AcceptanceResult instance); + partial void InsertCl_b_area(Cl_b_area instance); + partial void UpdateCl_b_area(Cl_b_area instance); + partial void DeleteCl_b_area(Cl_b_area instance); + partial void InsertCl_b_DocumentType(Cl_b_DocumentType instance); + partial void UpdateCl_b_DocumentType(Cl_b_DocumentType instance); + partial void DeleteCl_b_DocumentType(Cl_b_DocumentType instance); + partial void InsertCl_b_Installation(Cl_b_Installation instance); + partial void UpdateCl_b_Installation(Cl_b_Installation instance); + partial void DeleteCl_b_Installation(Cl_b_Installation instance); + partial void InsertCL_B_Material(CL_B_Material instance); + partial void UpdateCL_B_Material(CL_B_Material instance); + partial void DeleteCL_B_Material(CL_B_Material instance); + partial void InsertCl_b_NDTRate(Cl_b_NDTRate instance); + partial void UpdateCl_b_NDTRate(Cl_b_NDTRate instance); + partial void DeleteCl_b_NDTRate(Cl_b_NDTRate instance); + partial void InsertCl_b_NDTType(Cl_b_NDTType instance); + partial void UpdateCl_b_NDTType(Cl_b_NDTType instance); + partial void DeleteCl_b_NDTType(Cl_b_NDTType instance); + partial void InsertCl_b_netcilent(Cl_b_netcilent instance); + partial void UpdateCl_b_netcilent(Cl_b_netcilent instance); + partial void DeleteCl_b_netcilent(Cl_b_netcilent instance); + partial void InsertCl_b_Properties(Cl_b_Properties instance); + partial void UpdateCl_b_Properties(Cl_b_Properties instance); + partial void DeleteCl_b_Properties(Cl_b_Properties instance); + partial void InsertCl_b_ReturnReason(Cl_b_ReturnReason instance); + partial void UpdateCl_b_ReturnReason(Cl_b_ReturnReason instance); + partial void DeleteCl_b_ReturnReason(Cl_b_ReturnReason instance); + partial void InsertCL_B_SingleLineM(CL_B_SingleLineM instance); + partial void UpdateCL_B_SingleLineM(CL_B_SingleLineM instance); + partial void DeleteCL_B_SingleLineM(CL_B_SingleLineM instance); + partial void InsertCL_B_SingleLineS(CL_B_SingleLineS instance); + partial void UpdateCL_B_SingleLineS(CL_B_SingleLineS instance); + partial void DeleteCL_B_SingleLineS(CL_B_SingleLineS instance); + partial void InsertCL_B_Speciality(CL_B_Speciality instance); + partial void UpdateCL_B_Speciality(CL_B_Speciality instance); + partial void DeleteCL_B_Speciality(CL_B_Speciality instance); + partial void InsertCl_b_Storehouse(Cl_b_Storehouse instance); + partial void UpdateCl_b_Storehouse(Cl_b_Storehouse instance); + partial void DeleteCl_b_Storehouse(Cl_b_Storehouse instance); + partial void InsertCl_b_SumType(Cl_b_SumType instance); + partial void UpdateCl_b_SumType(Cl_b_SumType instance); + partial void DeleteCl_b_SumType(Cl_b_SumType instance); + partial void InsertCl_b_SupplyChannel(Cl_b_SupplyChannel instance); + partial void UpdateCl_b_SupplyChannel(Cl_b_SupplyChannel instance); + partial void DeleteCl_b_SupplyChannel(Cl_b_SupplyChannel instance); + partial void InsertCl_b_TableOptions(Cl_b_TableOptions instance); + partial void UpdateCl_b_TableOptions(Cl_b_TableOptions instance); + partial void DeleteCl_b_TableOptions(Cl_b_TableOptions instance); + partial void InsertCl_b_Type(Cl_b_Type instance); + partial void UpdateCl_b_Type(Cl_b_Type instance); + partial void DeleteCl_b_Type(Cl_b_Type instance); + partial void InsertCl_b_unitapp(Cl_b_unitapp instance); + partial void UpdateCl_b_unitapp(Cl_b_unitapp instance); + partial void DeleteCl_b_unitapp(Cl_b_unitapp instance); + partial void InsertCl_file(Cl_file instance); + partial void UpdateCl_file(Cl_file instance); + partial void DeleteCl_file(Cl_file instance); partial void InsertCL_MatchingM(CL_MatchingM instance); partial void UpdateCL_MatchingM(CL_MatchingM instance); partial void DeleteCL_MatchingM(CL_MatchingM instance); @@ -509,6 +572,9 @@ namespace Model partial void InsertCL_MSBFildS(CL_MSBFildS instance); partial void UpdateCL_MSBFildS(CL_MSBFildS instance); partial void DeleteCL_MSBFildS(CL_MSBFildS instance); + partial void InsertCl_Operationlog(Cl_Operationlog instance); + partial void UpdateCl_Operationlog(Cl_Operationlog instance); + partial void DeleteCl_Operationlog(Cl_Operationlog instance); partial void InsertCL_PMaterialM(CL_PMaterialM instance); partial void UpdateCL_PMaterialM(CL_PMaterialM instance); partial void DeleteCL_PMaterialM(CL_PMaterialM instance); @@ -527,6 +593,90 @@ namespace Model partial void InsertCL_PMateriaSBS_bak(CL_PMateriaSBS_bak instance); partial void UpdateCL_PMateriaSBS_bak(CL_PMateriaSBS_bak instance); partial void DeleteCL_PMateriaSBS_bak(CL_PMateriaSBS_bak instance); + partial void InsertCL_T_AreaMaterialM(CL_T_AreaMaterialM instance); + partial void UpdateCL_T_AreaMaterialM(CL_T_AreaMaterialM instance); + partial void DeleteCL_T_AreaMaterialM(CL_T_AreaMaterialM instance); + partial void InsertCL_T_AreaMaterialS(CL_T_AreaMaterialS instance); + partial void UpdateCL_T_AreaMaterialS(CL_T_AreaMaterialS instance); + partial void DeleteCL_T_AreaMaterialS(CL_T_AreaMaterialS instance); + partial void InsertCL_T_Material(CL_T_Material instance); + partial void UpdateCL_T_Material(CL_T_Material instance); + partial void DeleteCL_T_Material(CL_T_Material instance); + partial void InsertCl_T_MaterialStorageS(Cl_T_MaterialStorageS instance); + partial void UpdateCl_T_MaterialStorageS(Cl_T_MaterialStorageS instance); + partial void DeleteCl_T_MaterialStorageS(Cl_T_MaterialStorageS instance); + partial void InsertCL_T_SumAreaMaterialM(CL_T_SumAreaMaterialM instance); + partial void UpdateCL_T_SumAreaMaterialM(CL_T_SumAreaMaterialM instance); + partial void DeleteCL_T_SumAreaMaterialM(CL_T_SumAreaMaterialM instance); + partial void InsertCL_T_SumAreaMaterialS(CL_T_SumAreaMaterialS instance); + partial void UpdateCL_T_SumAreaMaterialS(CL_T_SumAreaMaterialS instance); + partial void DeleteCL_T_SumAreaMaterialS(CL_T_SumAreaMaterialS instance); + partial void InsertCl_tongbu(Cl_tongbu instance); + partial void UpdateCl_tongbu(Cl_tongbu instance); + partial void DeleteCl_tongbu(Cl_tongbu instance); + partial void InsertCl_tongbu_p(Cl_tongbu_p instance); + partial void UpdateCl_tongbu_p(Cl_tongbu_p instance); + partial void DeleteCl_tongbu_p(Cl_tongbu_p instance); + partial void InsertCl_user_pass(Cl_user_pass instance); + partial void UpdateCl_user_pass(Cl_user_pass instance); + partial void DeleteCl_user_pass(Cl_user_pass instance); + partial void InsertCL_W_AreaMaterialS(CL_W_AreaMaterialS instance); + partial void UpdateCL_W_AreaMaterialS(CL_W_AreaMaterialS instance); + partial void DeleteCL_W_AreaMaterialS(CL_W_AreaMaterialS instance); + partial void InsertCl_w_comp(Cl_w_comp instance); + partial void UpdateCl_w_comp(Cl_w_comp instance); + partial void DeleteCl_w_comp(Cl_w_comp instance); + partial void InsertCl_W_MaterialOutM(Cl_W_MaterialOutM instance); + partial void UpdateCl_W_MaterialOutM(Cl_W_MaterialOutM instance); + partial void DeleteCl_W_MaterialOutM(Cl_W_MaterialOutM instance); + partial void InsertCl_W_MaterialOutS(Cl_W_MaterialOutS instance); + partial void UpdateCl_W_MaterialOutS(Cl_W_MaterialOutS instance); + partial void DeleteCl_W_MaterialOutS(Cl_W_MaterialOutS instance); + partial void InsertCl_W_MaterialPlanM(Cl_W_MaterialPlanM instance); + partial void UpdateCl_W_MaterialPlanM(Cl_W_MaterialPlanM instance); + partial void DeleteCl_W_MaterialPlanM(Cl_W_MaterialPlanM instance); + partial void InsertCl_W_MaterialPlanS(Cl_W_MaterialPlanS instance); + partial void UpdateCl_W_MaterialPlanS(Cl_W_MaterialPlanS instance); + partial void DeleteCl_W_MaterialPlanS(Cl_W_MaterialPlanS instance); + partial void InsertCl_W_MaterialReturnM(Cl_W_MaterialReturnM instance); + partial void UpdateCl_W_MaterialReturnM(Cl_W_MaterialReturnM instance); + partial void DeleteCl_W_MaterialReturnM(Cl_W_MaterialReturnM instance); + partial void InsertCl_W_MaterialReturnS(Cl_W_MaterialReturnS instance); + partial void UpdateCl_W_MaterialReturnS(Cl_W_MaterialReturnS instance); + partial void DeleteCl_W_MaterialReturnS(Cl_W_MaterialReturnS instance); + partial void InsertCl_W_MaterialStorageM(Cl_W_MaterialStorageM instance); + partial void UpdateCl_W_MaterialStorageM(Cl_W_MaterialStorageM instance); + partial void DeleteCl_W_MaterialStorageM(Cl_W_MaterialStorageM instance); + partial void InsertCl_W_MaterialStoragem_hj(Cl_W_MaterialStoragem_hj instance); + partial void UpdateCl_W_MaterialStoragem_hj(Cl_W_MaterialStoragem_hj instance); + partial void DeleteCl_W_MaterialStoragem_hj(Cl_W_MaterialStoragem_hj instance); + partial void InsertCl_W_MaterialStorageS(Cl_W_MaterialStorageS instance); + partial void UpdateCl_W_MaterialStorageS(Cl_W_MaterialStorageS instance); + partial void DeleteCl_W_MaterialStorageS(Cl_W_MaterialStorageS instance); + partial void InsertCl_W_MaterialStorageS_hj(Cl_W_MaterialStorageS_hj instance); + partial void UpdateCl_W_MaterialStorageS_hj(Cl_W_MaterialStorageS_hj instance); + partial void DeleteCl_W_MaterialStorageS_hj(Cl_W_MaterialStorageS_hj instance); + partial void InsertCl_W_PurchaseSheetm(Cl_W_PurchaseSheetm instance); + partial void UpdateCl_W_PurchaseSheetm(Cl_W_PurchaseSheetm instance); + partial void DeleteCl_W_PurchaseSheetm(Cl_W_PurchaseSheetm instance); + partial void InsertCl_W_PurchaseSheets(Cl_W_PurchaseSheets instance); + partial void UpdateCl_W_PurchaseSheets(Cl_W_PurchaseSheets instance); + partial void DeleteCl_W_PurchaseSheets(Cl_W_PurchaseSheets instance); + partial void InsertCl_W_SingleLineOutM(Cl_W_SingleLineOutM instance); + partial void UpdateCl_W_SingleLineOutM(Cl_W_SingleLineOutM instance); + partial void DeleteCl_W_SingleLineOutM(Cl_W_SingleLineOutM instance); + partial void InsertCl_W_SingleLineOutS(Cl_W_SingleLineOutS instance); + partial void UpdateCl_W_SingleLineOutS(Cl_W_SingleLineOutS instance); + partial void DeleteCl_W_SingleLineOutS(Cl_W_SingleLineOutS instance); + partial void InsertCl_W_SingleLineOutT(Cl_W_SingleLineOutT instance); + partial void UpdateCl_W_SingleLineOutT(Cl_W_SingleLineOutT instance); + partial void DeleteCl_W_SingleLineOutT(Cl_W_SingleLineOutT instance); + partial void InsertCL_W_StorageAccept(CL_W_StorageAccept instance); + partial void UpdateCL_W_StorageAccept(CL_W_StorageAccept instance); + partial void DeleteCL_W_StorageAccept(CL_W_StorageAccept instance); + partial void InsertCL_W_UIRecords(CL_W_UIRecords instance); + partial void UpdateCL_W_UIRecords(CL_W_UIRecords instance); + partial void DeleteCL_W_UIRecords(CL_W_UIRecords instance); partial void InsertComprehensive_ContactList(Comprehensive_ContactList instance); partial void UpdateComprehensive_ContactList(Comprehensive_ContactList instance); partial void DeleteComprehensive_ContactList(Comprehensive_ContactList instance); @@ -2312,6 +2462,9 @@ namespace Model partial void InsertSys_AccessToken(Sys_AccessToken instance); partial void UpdateSys_AccessToken(Sys_AccessToken instance); partial void DeleteSys_AccessToken(Sys_AccessToken instance); + partial void InsertSys_admin(Sys_admin instance); + partial void UpdateSys_admin(Sys_admin instance); + partial void DeleteSys_admin(Sys_admin instance); partial void InsertSys_ButtonPower(Sys_ButtonPower instance); partial void UpdateSys_ButtonPower(Sys_ButtonPower instance); partial void DeleteSys_ButtonPower(Sys_ButtonPower instance); @@ -2339,6 +2492,15 @@ namespace Model partial void InsertSys_FlowOperate(Sys_FlowOperate instance); partial void UpdateSys_FlowOperate(Sys_FlowOperate instance); partial void DeleteSys_FlowOperate(Sys_FlowOperate instance); + partial void InsertSYS_GROUP(SYS_GROUP instance); + partial void UpdateSYS_GROUP(SYS_GROUP instance); + partial void DeleteSYS_GROUP(SYS_GROUP instance); + partial void InsertSYS_GROUP_LC(SYS_GROUP_LC instance); + partial void UpdateSYS_GROUP_LC(SYS_GROUP_LC instance); + partial void DeleteSYS_GROUP_LC(SYS_GROUP_LC instance); + partial void InsertSYS_GROUP_USER(SYS_GROUP_USER instance); + partial void UpdateSYS_GROUP_USER(SYS_GROUP_USER instance); + partial void DeleteSYS_GROUP_USER(SYS_GROUP_USER instance); partial void InsertSys_HttpLog(Sys_HttpLog instance); partial void UpdateSys_HttpLog(Sys_HttpLog instance); partial void DeleteSys_HttpLog(Sys_HttpLog instance); @@ -2393,6 +2555,9 @@ namespace Model partial void InsertSys_User(Sys_User instance); partial void UpdateSys_User(Sys_User instance); partial void DeleteSys_User(Sys_User instance); + partial void InsertSYS_UseRole(SYS_UseRole instance); + partial void UpdateSYS_UseRole(SYS_UseRole instance); + partial void DeleteSYS_UseRole(SYS_UseRole instance); partial void InsertSys_UserRead(Sys_UserRead instance); partial void UpdateSys_UserRead(Sys_UserRead instance); partial void DeleteSys_UserRead(Sys_UserRead instance); @@ -2851,6 +3016,14 @@ namespace Model } } + public System.Data.Linq.Table Base_AloneProject + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Base_BranchTeamList { get @@ -3963,6 +4136,166 @@ namespace Model } } + public System.Data.Linq.Table Cl_b_AcceptanceResult + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_area + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_DocumentType + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_Installation + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_B_Material + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_NDTRate + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_NDTType + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_netcilent + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_Properties + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_ReturnReason + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_B_SingleLineM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_B_SingleLineS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_B_Speciality + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_Storehouse + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_SumType + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_SupplyChannel + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_TableOptions + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_Type + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_b_unitapp + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_file + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table CL_MatchingM { get @@ -4011,6 +4344,14 @@ namespace Model } } + public System.Data.Linq.Table Cl_Operationlog + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table CL_PMaterialM { get @@ -4059,6 +4400,230 @@ namespace Model } } + public System.Data.Linq.Table CL_T_AreaMaterialM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_T_AreaMaterialS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_T_Material + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_T_MaterialStorageS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_T_SumAreaMaterialM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_T_SumAreaMaterialS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_tongbu + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_tongbu_p + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_user_pass + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_W_AreaMaterialS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_w_comp + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialOutM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialOutS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialPlanM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialPlanS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialReturnM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialReturnS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialStorageM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialStoragem_hj + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialStorageS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_MaterialStorageS_hj + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_PurchaseSheetm + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_PurchaseSheets + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_SingleLineOutM + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_SingleLineOutS + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Cl_W_SingleLineOutT + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_W_StorageAccept + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table CL_W_UIRecords + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Comprehensive_ContactList { get @@ -8859,6 +9424,14 @@ namespace Model } } + public System.Data.Linq.Table Sys_admin + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Sys_ButtonPower { get @@ -8931,6 +9504,30 @@ namespace Model } } + public System.Data.Linq.Table SYS_GROUP + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table SYS_GROUP_LC + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table SYS_GROUP_USER + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Sys_HttpLog { get @@ -9075,6 +9672,14 @@ namespace Model } } + public System.Data.Linq.Table SYS_UseRole + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Sys_UserRead { get @@ -9579,6 +10184,14 @@ namespace Model } } + public System.Data.Linq.Table V_user_cl + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table View_ActionPlan_ManagerRule { get @@ -18634,6 +19247,229 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.base_AloneProject")] + public partial class Base_AloneProject : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _APid; + + private string _ProjectId; + + private string _APcode; + + private string _APname; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Base_Project; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnAPidChanging(string value); + partial void OnAPidChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnAPcodeChanging(string value); + partial void OnAPcodeChanged(); + partial void OnAPnameChanging(string value); + partial void OnAPnameChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Base_AloneProject() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_APid", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string APid + { + get + { + return this._APid; + } + set + { + if ((this._APid != value)) + { + this.OnAPidChanging(value); + this.SendPropertyChanging(); + this._APid = value; + this.SendPropertyChanged("APid"); + this.OnAPidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_APcode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string APcode + { + get + { + return this._APcode; + } + set + { + if ((this._APcode != value)) + { + this.OnAPcodeChanging(value); + this.SendPropertyChanging(); + this._APcode = value; + this.SendPropertyChanged("APcode"); + this.OnAPcodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_APname", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string APname + { + get + { + return this._APname; + } + set + { + if ((this._APname != value)) + { + this.OnAPnameChanging(value); + this.SendPropertyChanging(); + this._APname = value; + this.SendPropertyChanged("APname"); + this.OnAPnameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_BASE_ALO_REFERENCE_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Base_AloneProject.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Base_AloneProject.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_BranchTeamList")] public partial class Base_BranchTeamList : INotifyPropertyChanging, INotifyPropertyChanged { @@ -28137,6 +28973,8 @@ namespace Model private EntitySet _Administrative_DriverManager; + private EntitySet _Base_AloneProject; + private EntitySet _Base_Components; private EntitySet _Base_Medium; @@ -28209,6 +29047,24 @@ namespace Model private EntitySet _Check_ViolationPerson; + private EntitySet _Cl_b_area; + + private EntitySet _CL_B_Material; + + private EntitySet _CL_B_Speciality; + + private EntitySet _Cl_b_Storehouse; + + private EntitySet _CL_T_AreaMaterialS; + + private EntitySet _CL_T_AreaMaterialM; + + private EntitySet _Cl_W_MaterialStorageS; + + private EntitySet _Cl_W_MaterialOutM; + + private EntitySet _Cl_W_MaterialStorageM; + private EntitySet _InformationProject_ConstructionStandardIdentify; private EntitySet _Comprehensive_DataDistribution; @@ -28817,6 +29673,7 @@ namespace Model this._ActionPlan_ProjectManagerRule = new EntitySet(new Action(this.attach_ActionPlan_ProjectManagerRule), new Action(this.detach_ActionPlan_ProjectManagerRule)); this._Administrative_CarManager = new EntitySet(new Action(this.attach_Administrative_CarManager), new Action(this.detach_Administrative_CarManager)); this._Administrative_DriverManager = new EntitySet(new Action(this.attach_Administrative_DriverManager), new Action(this.detach_Administrative_DriverManager)); + this._Base_AloneProject = new EntitySet(new Action(this.attach_Base_AloneProject), new Action(this.detach_Base_AloneProject)); this._Base_Components = new EntitySet(new Action(this.attach_Base_Components), new Action(this.detach_Base_Components)); this._Base_Medium = new EntitySet(new Action(this.attach_Base_Medium), new Action(this.detach_Base_Medium)); this._Base_PipingClass = new EntitySet(new Action(this.attach_Base_PipingClass), new Action(this.detach_Base_PipingClass)); @@ -28853,6 +29710,15 @@ namespace Model this._Check_SupervisionNotice = new EntitySet(new Action(this.attach_Check_SupervisionNotice), new Action(this.detach_Check_SupervisionNotice)); this._Check_TechnicalContactList = new EntitySet(new Action(this.attach_Check_TechnicalContactList), new Action(this.detach_Check_TechnicalContactList)); this._Check_ViolationPerson = new EntitySet(new Action(this.attach_Check_ViolationPerson), new Action(this.detach_Check_ViolationPerson)); + this._Cl_b_area = new EntitySet(new Action(this.attach_Cl_b_area), new Action(this.detach_Cl_b_area)); + this._CL_B_Material = new EntitySet(new Action(this.attach_CL_B_Material), new Action(this.detach_CL_B_Material)); + this._CL_B_Speciality = new EntitySet(new Action(this.attach_CL_B_Speciality), new Action(this.detach_CL_B_Speciality)); + this._Cl_b_Storehouse = new EntitySet(new Action(this.attach_Cl_b_Storehouse), new Action(this.detach_Cl_b_Storehouse)); + this._CL_T_AreaMaterialS = new EntitySet(new Action(this.attach_CL_T_AreaMaterialS), new Action(this.detach_CL_T_AreaMaterialS)); + this._CL_T_AreaMaterialM = new EntitySet(new Action(this.attach_CL_T_AreaMaterialM), new Action(this.detach_CL_T_AreaMaterialM)); + this._Cl_W_MaterialStorageS = new EntitySet(new Action(this.attach_Cl_W_MaterialStorageS), new Action(this.detach_Cl_W_MaterialStorageS)); + this._Cl_W_MaterialOutM = new EntitySet(new Action(this.attach_Cl_W_MaterialOutM), new Action(this.detach_Cl_W_MaterialOutM)); + this._Cl_W_MaterialStorageM = new EntitySet(new Action(this.attach_Cl_W_MaterialStorageM), new Action(this.detach_Cl_W_MaterialStorageM)); this._InformationProject_ConstructionStandardIdentify = new EntitySet(new Action(this.attach_InformationProject_ConstructionStandardIdentify), new Action(this.detach_InformationProject_ConstructionStandardIdentify)); this._Comprehensive_DataDistribution = new EntitySet(new Action(this.attach_Comprehensive_DataDistribution), new Action(this.detach_Comprehensive_DataDistribution)); this._Comprehensive_DataReceiving = new EntitySet(new Action(this.attach_Comprehensive_DataReceiving), new Action(this.detach_Comprehensive_DataReceiving)); @@ -30017,6 +30883,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_BASE_ALO_REFERENCE_BASE_PRO", Storage="_Base_AloneProject", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Base_AloneProject + { + get + { + return this._Base_AloneProject; + } + set + { + this._Base_AloneProject.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Base_Components_Base_Project", Storage="_Base_Components", ThisKey="ProjectId", OtherKey="ProjeceId", DeleteRule="NO ACTION")] public EntitySet Base_Components { @@ -30527,6 +31406,123 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_ARE_REFERENCE_BASE_PRO", Storage="_Cl_b_area", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Cl_b_area + { + get + { + return this._Cl_b_area; + } + set + { + this._Cl_b_area.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_MAT_REFERENCE_BASE_PRO", Storage="_CL_B_Material", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet CL_B_Material + { + get + { + return this._CL_B_Material; + } + set + { + this._CL_B_Material.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_SPE_REFERENCE_BASE_PRO", Storage="_CL_B_Speciality", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet CL_B_Speciality + { + get + { + return this._CL_B_Speciality; + } + set + { + this._CL_B_Speciality.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_STO_REFERENCE_BASE_PRO", Storage="_Cl_b_Storehouse", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Cl_b_Storehouse + { + get + { + return this._Cl_b_Storehouse; + } + set + { + this._Cl_b_Storehouse.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_3_BASE_PRO", Storage="_CL_T_AreaMaterialS", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet CL_T_AreaMaterialS + { + get + { + return this._CL_T_AreaMaterialS; + } + set + { + this._CL_T_AreaMaterialS.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_7_BASE_PRO", Storage="_CL_T_AreaMaterialM", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet CL_T_AreaMaterialM + { + get + { + return this._CL_T_AreaMaterialM; + } + set + { + this._CL_T_AreaMaterialM.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAS_REFERENCE_BASE_PRO", Storage="_Cl_W_MaterialStorageS", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialStorageS + { + get + { + return this._Cl_W_MaterialStorageS; + } + set + { + this._Cl_W_MaterialStorageS.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_10_BASE_PRO", Storage="_Cl_W_MaterialOutM", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialOutM + { + get + { + return this._Cl_W_MaterialOutM; + } + set + { + this._Cl_W_MaterialOutM.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_BASE_PRO", Storage="_Cl_W_MaterialStorageM", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialStorageM + { + get + { + return this._Cl_W_MaterialStorageM; + } + set + { + this._Cl_W_MaterialStorageM.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Common_ConstructionStandardIdentify_Base_Project", Storage="_InformationProject_ConstructionStandardIdentify", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet InformationProject_ConstructionStandardIdentify { @@ -34032,6 +35028,18 @@ namespace Model entity.Base_Project = null; } + private void attach_Base_AloneProject(Base_AloneProject entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Base_AloneProject(Base_AloneProject entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_Base_Components(Base_Components entity) { this.SendPropertyChanging(); @@ -34440,6 +35448,114 @@ namespace Model entity.Base_Project = null; } + private void attach_Cl_b_area(Cl_b_area entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Cl_b_area(Cl_b_area entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_CL_B_Material(CL_B_Material entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_CL_B_Material(CL_B_Material entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_CL_B_Speciality(CL_B_Speciality entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_CL_B_Speciality(CL_B_Speciality entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_Cl_b_Storehouse(Cl_b_Storehouse entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Cl_b_Storehouse(Cl_b_Storehouse entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_CL_T_AreaMaterialS(CL_T_AreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_CL_T_AreaMaterialS(CL_T_AreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_CL_T_AreaMaterialM(CL_T_AreaMaterialM entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_CL_T_AreaMaterialM(CL_T_AreaMaterialM entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_Cl_W_MaterialStorageS(Cl_W_MaterialStorageS entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Cl_W_MaterialStorageS(Cl_W_MaterialStorageS entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_Cl_W_MaterialOutM(Cl_W_MaterialOutM entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Cl_W_MaterialOutM(Cl_W_MaterialOutM entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + + private void attach_Cl_W_MaterialStorageM(Cl_W_MaterialStorageM entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_Cl_W_MaterialStorageM(Cl_W_MaterialStorageM entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_InformationProject_ConstructionStandardIdentify(InformationProject_ConstructionStandardIdentify entity) { this.SendPropertyChanging(); @@ -41793,6 +42909,8 @@ namespace Model private EntitySet _Check_ViolationPerson; + private EntitySet _Cl_W_MaterialOutM; + private EntitySet _Comprehensive_GeneralPlanApproval; private EntitySet _Comprehensive_GeneralPlanApprovalItem; @@ -42212,6 +43330,7 @@ namespace Model this._Check_SupervisionNotice = new EntitySet(new Action(this.attach_Check_SupervisionNotice), new Action(this.detach_Check_SupervisionNotice)); this._Check_TechnicalContactList = new EntitySet(new Action(this.attach_Check_TechnicalContactList), new Action(this.detach_Check_TechnicalContactList)); this._Check_ViolationPerson = new EntitySet(new Action(this.attach_Check_ViolationPerson), new Action(this.detach_Check_ViolationPerson)); + this._Cl_W_MaterialOutM = new EntitySet(new Action(this.attach_Cl_W_MaterialOutM), new Action(this.detach_Cl_W_MaterialOutM)); this._Comprehensive_GeneralPlanApproval = new EntitySet(new Action(this.attach_Comprehensive_GeneralPlanApproval), new Action(this.detach_Comprehensive_GeneralPlanApproval)); this._Comprehensive_GeneralPlanApprovalItem = new EntitySet(new Action(this.attach_Comprehensive_GeneralPlanApprovalItem), new Action(this.detach_Comprehensive_GeneralPlanApprovalItem)); this._Comprehensive_InspectionEquipment = new EntitySet(new Action(this.attach_Comprehensive_InspectionEquipment), new Action(this.detach_Comprehensive_InspectionEquipment)); @@ -43321,6 +44440,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_12_BASE_UNI", Storage="_Cl_W_MaterialOutM", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialOutM + { + get + { + return this._Cl_W_MaterialOutM; + } + set + { + this._Cl_W_MaterialOutM.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_GeneralPlanApproval_Base_Unit", Storage="_Comprehensive_GeneralPlanApproval", ThisKey="UnitId", OtherKey="UnitId", DeleteRule="NO ACTION")] public EntitySet Comprehensive_GeneralPlanApproval { @@ -45832,6 +46964,18 @@ namespace Model entity.Base_Unit = null; } + private void attach_Cl_W_MaterialOutM(Cl_W_MaterialOutM entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = this; + } + + private void detach_Cl_W_MaterialOutM(Cl_W_MaterialOutM entity) + { + this.SendPropertyChanging(); + entity.Base_Unit = null; + } + private void attach_Comprehensive_GeneralPlanApproval(Comprehensive_GeneralPlanApproval entity) { this.SendPropertyChanging(); @@ -59491,7 +60635,7 @@ namespace Model private string _CheckMan; - private System.Nullable _IsSubmit; + private string _OKDescr; private string _SubmitMan; @@ -59523,7 +60667,7 @@ namespace Model private string _ProposeUnitId; - private string _SaveHandleMan; + private string _DutyMan; private EntityRef _Base_Project; @@ -59547,8 +60691,8 @@ namespace Model partial void OnCheckDateChanged(); partial void OnCheckManChanging(string value); partial void OnCheckManChanged(); - partial void OnIsSubmitChanging(System.Nullable value); - partial void OnIsSubmitChanged(); + partial void OnOKDescrChanging(string value); + partial void OnOKDescrChanged(); partial void OnSubmitManChanging(string value); partial void OnSubmitManChanged(); partial void OnIsOKChanging(System.Nullable value); @@ -59579,8 +60723,8 @@ namespace Model partial void OnStateChanged(); partial void OnProposeUnitIdChanging(string value); partial void OnProposeUnitIdChanged(); - partial void OnSaveHandleManChanging(string value); - partial void OnSaveHandleManChanged(); + partial void OnDutyManChanging(string value); + partial void OnDutyManChanged(); #endregion public Check_CheckControl() @@ -59719,22 +60863,22 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsSubmit", DbType="Bit")] - public System.Nullable IsSubmit + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OKDescr", DbType="NVarChar(2000)")] + public string OKDescr { get { - return this._IsSubmit; + return this._OKDescr; } set { - if ((this._IsSubmit != value)) + if ((this._OKDescr != value)) { - this.OnIsSubmitChanging(value); + this.OnOKDescrChanging(value); this.SendPropertyChanging(); - this._IsSubmit = value; - this.SendPropertyChanged("IsSubmit"); - this.OnIsSubmitChanged(); + this._OKDescr = value; + this.SendPropertyChanged("OKDescr"); + this.OnOKDescrChanged(); } } } @@ -60039,22 +61183,22 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SaveHandleMan", DbType="NVarChar(50)")] - public string SaveHandleMan + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DutyMan", DbType="NVarChar(50)")] + public string DutyMan { get { - return this._SaveHandleMan; + return this._DutyMan; } set { - if ((this._SaveHandleMan != value)) + if ((this._DutyMan != value)) { - this.OnSaveHandleManChanging(value); + this.OnDutyManChanging(value); this.SendPropertyChanging(); - this._SaveHandleMan = value; - this.SendPropertyChanged("SaveHandleMan"); - this.OnSaveHandleManChanged(); + this._DutyMan = value; + this.SendPropertyChanged("DutyMan"); + this.OnDutyManChanged(); } } } @@ -85413,6 +86557,4443 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_AcceptanceResult")] + public partial class Cl_b_AcceptanceResult : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ARcode; + + private string _ARname; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnARcodeChanging(string value); + partial void OnARcodeChanged(); + partial void OnARnameChanging(string value); + partial void OnARnameChanged(); + #endregion + + public Cl_b_AcceptanceResult() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ARcode", DbType="Char(1) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ARcode + { + get + { + return this._ARcode; + } + set + { + if ((this._ARcode != value)) + { + this.OnARcodeChanging(value); + this.SendPropertyChanging(); + this._ARcode = value; + this.SendPropertyChanged("ARcode"); + this.OnARcodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ARname", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string ARname + { + get + { + return this._ARname; + } + set + { + if ((this._ARname != value)) + { + this.OnARnameChanging(value); + this.SendPropertyChanging(); + this._ARname = value; + this.SendPropertyChanged("ARname"); + this.OnARnameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_area")] + public partial class Cl_b_area : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _AreaId; + + private int _Soft; + + private string _AreaCode; + + private string _AreaName; + + private string _InstallationId; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Base_Project; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnAreaIdChanging(string value); + partial void OnAreaIdChanged(); + partial void OnSoftChanging(int value); + partial void OnSoftChanged(); + partial void OnAreaCodeChanging(string value); + partial void OnAreaCodeChanged(); + partial void OnAreaNameChanging(string value); + partial void OnAreaNameChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_b_area() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaId", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string AreaId + { + get + { + return this._AreaId; + } + set + { + if ((this._AreaId != value)) + { + this.OnAreaIdChanging(value); + this.SendPropertyChanging(); + this._AreaId = value; + this.SendPropertyChanged("AreaId"); + this.OnAreaIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="soft", Storage="_Soft", DbType="Int NOT NULL", UpdateCheck=UpdateCheck.Never)] + public int Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaCode", DbType="NVarChar(20) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string AreaCode + { + get + { + return this._AreaCode; + } + set + { + if ((this._AreaCode != value)) + { + this.OnAreaCodeChanging(value); + this.SendPropertyChanging(); + this._AreaCode = value; + this.SendPropertyChanged("AreaCode"); + this.OnAreaCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string AreaName + { + get + { + return this._AreaName; + } + set + { + if ((this._AreaName != value)) + { + this.OnAreaNameChanging(value); + this.SendPropertyChanging(); + this._AreaName = value; + this.SendPropertyChanged("AreaName"); + this.OnAreaNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_ARE_REFERENCE_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Cl_b_area.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Cl_b_area.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_DocumentType")] + public partial class Cl_b_DocumentType : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DTypecode; + + private string _DTypename; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDTypecodeChanging(string value); + partial void OnDTypecodeChanged(); + partial void OnDTypenameChanging(string value); + partial void OnDTypenameChanged(); + #endregion + + public Cl_b_DocumentType() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DTypecode", DbType="Char(1) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string DTypecode + { + get + { + return this._DTypecode; + } + set + { + if ((this._DTypecode != value)) + { + this.OnDTypecodeChanging(value); + this.SendPropertyChanging(); + this._DTypecode = value; + this.SendPropertyChanged("DTypecode"); + this.OnDTypecodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DTypename", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string DTypename + { + get + { + return this._DTypename; + } + set + { + if ((this._DTypename != value)) + { + this.OnDTypenameChanging(value); + this.SendPropertyChanging(); + this._DTypename = value; + this.SendPropertyChanged("DTypename"); + this.OnDTypenameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_Installation")] + public partial class Cl_b_Installation : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _InstallationId; + + private string _ProjectId; + + private string _InstallationCode; + + private string _InstallationName; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntitySet _CL_T_AreaMaterialS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnInstallationCodeChanging(string value); + partial void OnInstallationCodeChanged(); + partial void OnInstallationNameChanging(string value); + partial void OnInstallationNameChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_b_Installation() + { + this._CL_T_AreaMaterialS = new EntitySet(new Action(this.attach_CL_T_AreaMaterialS), new Action(this.detach_CL_T_AreaMaterialS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationCode + { + get + { + return this._InstallationCode; + } + set + { + if ((this._InstallationCode != value)) + { + this.OnInstallationCodeChanging(value); + this.SendPropertyChanging(); + this._InstallationCode = value; + this.SendPropertyChanged("InstallationCode"); + this.OnInstallationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationName + { + get + { + return this._InstallationName; + } + set + { + if ((this._InstallationName != value)) + { + this.OnInstallationNameChanging(value); + this.SendPropertyChanging(); + this._InstallationName = value; + this.SendPropertyChanged("InstallationName"); + this.OnInstallationNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_REFERENCE_CL_B_INS", Storage="_CL_T_AreaMaterialS", ThisKey="InstallationId", OtherKey="InstallationId", DeleteRule="NO ACTION")] + public EntitySet CL_T_AreaMaterialS + { + get + { + return this._CL_T_AreaMaterialS; + } + set + { + this._CL_T_AreaMaterialS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_CL_T_AreaMaterialS(CL_T_AreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.Cl_b_Installation = this; + } + + private void detach_CL_T_AreaMaterialS(CL_T_AreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.Cl_b_Installation = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_B_Material")] + public partial class CL_B_Material : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _MaterialID; + + private string _ProjectId; + + private string _SystemCode; + + private string _TechnicalConditions; + + private string _Unit; + + private string _MaterialName; + + private string _Specificationtype; + + private string _StandardSpecification; + + private string _MaterialQuality; + + private string _SpecialNote; + + private string _FirstpartyCode; + + private System.Nullable _TheoryWeight; + + private string _SCName; + + private string _IsCheck; + + private string _NDTName; + + private string _NDTRName; + + private string _RecordTableOptions; + + private string _ListType; + + private string _TypeName; + + private string _SumTypeName; + + private string _Spec; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Base_Project; + + private EntitySet _Cl_W_MaterialStorageS; + + private EntitySet _Cl_W_MaterialOutS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnUnitChanging(string value); + partial void OnUnitChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecificationtypeChanging(string value); + partial void OnSpecificationtypeChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnSpecialNoteChanging(string value); + partial void OnSpecialNoteChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnTheoryWeightChanging(System.Nullable value); + partial void OnTheoryWeightChanged(); + partial void OnSCNameChanging(string value); + partial void OnSCNameChanged(); + partial void OnIsCheckChanging(string value); + partial void OnIsCheckChanged(); + partial void OnNDTNameChanging(string value); + partial void OnNDTNameChanged(); + partial void OnNDTRNameChanging(string value); + partial void OnNDTRNameChanged(); + partial void OnRecordTableOptionsChanging(string value); + partial void OnRecordTableOptionsChanged(); + partial void OnListTypeChanging(string value); + partial void OnListTypeChanged(); + partial void OnTypeNameChanging(string value); + partial void OnTypeNameChanged(); + partial void OnSumTypeNameChanging(string value); + partial void OnSumTypeNameChanged(); + partial void OnSpecChanging(string value); + partial void OnSpecChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_B_Material() + { + this._Base_Project = default(EntityRef); + this._Cl_W_MaterialStorageS = new EntitySet(new Action(this.attach_Cl_W_MaterialStorageS), new Action(this.detach_Cl_W_MaterialStorageS)); + this._Cl_W_MaterialOutS = new EntitySet(new Action(this.attach_Cl_W_MaterialOutS), new Action(this.detach_Cl_W_MaterialOutS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)", UpdateCheck=UpdateCheck.Never)] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Unit + { + get + { + return this._Unit; + } + set + { + if ((this._Unit != value)) + { + this.OnUnitChanging(value); + this.SendPropertyChanging(); + this._Unit = value; + this.SendPropertyChanged("Unit"); + this.OnUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specificationtype", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string Specificationtype + { + get + { + return this._Specificationtype; + } + set + { + if ((this._Specificationtype != value)) + { + this.OnSpecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Specificationtype = value; + this.SendPropertyChanged("Specificationtype"); + this.OnSpecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialNote", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialNote + { + get + { + return this._SpecialNote; + } + set + { + if ((this._SpecialNote != value)) + { + this.OnSpecialNoteChanging(value); + this.SendPropertyChanging(); + this._SpecialNote = value; + this.SendPropertyChanged("SpecialNote"); + this.OnSpecialNoteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable TheoryWeight + { + get + { + return this._TheoryWeight; + } + set + { + if ((this._TheoryWeight != value)) + { + this.OnTheoryWeightChanging(value); + this.SendPropertyChanging(); + this._TheoryWeight = value; + this.SendPropertyChanged("TheoryWeight"); + this.OnTheoryWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SCName + { + get + { + return this._SCName; + } + set + { + if ((this._SCName != value)) + { + this.OnSCNameChanging(value); + this.SendPropertyChanging(); + this._SCName = value; + this.SendPropertyChanged("SCName"); + this.OnSCNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheck", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsCheck + { + get + { + return this._IsCheck; + } + set + { + if ((this._IsCheck != value)) + { + this.OnIsCheckChanging(value); + this.SendPropertyChanging(); + this._IsCheck = value; + this.SendPropertyChanged("IsCheck"); + this.OnIsCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string NDTName + { + get + { + return this._NDTName; + } + set + { + if ((this._NDTName != value)) + { + this.OnNDTNameChanging(value); + this.SendPropertyChanging(); + this._NDTName = value; + this.SendPropertyChanged("NDTName"); + this.OnNDTNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTRName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string NDTRName + { + get + { + return this._NDTRName; + } + set + { + if ((this._NDTRName != value)) + { + this.OnNDTRNameChanging(value); + this.SendPropertyChanging(); + this._NDTRName = value; + this.SendPropertyChanged("NDTRName"); + this.OnNDTRNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableOptions", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RecordTableOptions + { + get + { + return this._RecordTableOptions; + } + set + { + if ((this._RecordTableOptions != value)) + { + this.OnRecordTableOptionsChanging(value); + this.SendPropertyChanging(); + this._RecordTableOptions = value; + this.SendPropertyChanged("RecordTableOptions"); + this.OnRecordTableOptionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ListType", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ListType + { + get + { + return this._ListType; + } + set + { + if ((this._ListType != value)) + { + this.OnListTypeChanging(value); + this.SendPropertyChanging(); + this._ListType = value; + this.SendPropertyChanged("ListType"); + this.OnListTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string TypeName + { + get + { + return this._TypeName; + } + set + { + if ((this._TypeName != value)) + { + this.OnTypeNameChanging(value); + this.SendPropertyChanging(); + this._TypeName = value; + this.SendPropertyChanged("TypeName"); + this.OnTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SumTypeName + { + get + { + return this._SumTypeName; + } + set + { + if ((this._SumTypeName != value)) + { + this.OnSumTypeNameChanging(value); + this.SendPropertyChanging(); + this._SumTypeName = value; + this.SendPropertyChanged("SumTypeName"); + this.OnSumTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spec", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Spec + { + get + { + return this._Spec; + } + set + { + if ((this._Spec != value)) + { + this.OnSpecChanging(value); + this.SendPropertyChanging(); + this._Spec = value; + this.SendPropertyChanged("Spec"); + this.OnSpecChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_MAT_REFERENCE_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.CL_B_Material.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.CL_B_Material.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAS_REFERENCE_CL_B_MAT", Storage="_Cl_W_MaterialStorageS", ThisKey="MaterialID", OtherKey="MaterialID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialStorageS + { + get + { + return this._Cl_W_MaterialStorageS; + } + set + { + this._Cl_W_MaterialStorageS.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_14_CL_B_MAT", Storage="_Cl_W_MaterialOutS", ThisKey="MaterialID", OtherKey="MaterialID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialOutS + { + get + { + return this._Cl_W_MaterialOutS; + } + set + { + this._Cl_W_MaterialOutS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_MaterialStorageS(Cl_W_MaterialStorageS entity) + { + this.SendPropertyChanging(); + entity.CL_B_Material = this; + } + + private void detach_Cl_W_MaterialStorageS(Cl_W_MaterialStorageS entity) + { + this.SendPropertyChanging(); + entity.CL_B_Material = null; + } + + private void attach_Cl_W_MaterialOutS(Cl_W_MaterialOutS entity) + { + this.SendPropertyChanging(); + entity.CL_B_Material = this; + } + + private void detach_Cl_W_MaterialOutS(Cl_W_MaterialOutS entity) + { + this.SendPropertyChanging(); + entity.CL_B_Material = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_NDTRate")] + public partial class Cl_b_NDTRate : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _NDTRCode; + + private string _NDTRName; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnNDTRCodeChanging(string value); + partial void OnNDTRCodeChanged(); + partial void OnNDTRNameChanging(string value); + partial void OnNDTRNameChanged(); + #endregion + + public Cl_b_NDTRate() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTRCode", DbType="Char(2) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string NDTRCode + { + get + { + return this._NDTRCode; + } + set + { + if ((this._NDTRCode != value)) + { + this.OnNDTRCodeChanging(value); + this.SendPropertyChanging(); + this._NDTRCode = value; + this.SendPropertyChanged("NDTRCode"); + this.OnNDTRCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTRName", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string NDTRName + { + get + { + return this._NDTRName; + } + set + { + if ((this._NDTRName != value)) + { + this.OnNDTRNameChanging(value); + this.SendPropertyChanging(); + this._NDTRName = value; + this.SendPropertyChanged("NDTRName"); + this.OnNDTRNameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_NDTType")] + public partial class Cl_b_NDTType : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _NDTCode; + + private string _NDTName; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnNDTCodeChanging(string value); + partial void OnNDTCodeChanged(); + partial void OnNDTNameChanging(string value); + partial void OnNDTNameChanged(); + #endregion + + public Cl_b_NDTType() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTCode", DbType="Char(2) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string NDTCode + { + get + { + return this._NDTCode; + } + set + { + if ((this._NDTCode != value)) + { + this.OnNDTCodeChanging(value); + this.SendPropertyChanging(); + this._NDTCode = value; + this.SendPropertyChanged("NDTCode"); + this.OnNDTCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTName", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string NDTName + { + get + { + return this._NDTName; + } + set + { + if ((this._NDTName != value)) + { + this.OnNDTNameChanging(value); + this.SendPropertyChanging(); + this._NDTName = value; + this.SendPropertyChanged("NDTName"); + this.OnNDTNameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_netcilent")] + public partial class Cl_b_netcilent : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _Is_cilent; + + private System.Data.Linq.Binary _Last_modified; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnIs_cilentChanging(string value); + partial void OnIs_cilentChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + #endregion + + public Cl_b_netcilent() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="is_cilent", Storage="_Is_cilent", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Is_cilent + { + get + { + return this._Is_cilent; + } + set + { + if ((this._Is_cilent != value)) + { + this.OnIs_cilentChanging(value); + this.SendPropertyChanging(); + this._Is_cilent = value; + this.SendPropertyChanged("Is_cilent"); + this.OnIs_cilentChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_Properties")] + public partial class Cl_b_Properties : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _PropertiesCode; + + private string _PropertiesName; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnPropertiesCodeChanging(string value); + partial void OnPropertiesCodeChanged(); + partial void OnPropertiesNameChanging(string value); + partial void OnPropertiesNameChanged(); + #endregion + + public Cl_b_Properties() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertiesCode", DbType="Char(1) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string PropertiesCode + { + get + { + return this._PropertiesCode; + } + set + { + if ((this._PropertiesCode != value)) + { + this.OnPropertiesCodeChanging(value); + this.SendPropertyChanging(); + this._PropertiesCode = value; + this.SendPropertyChanged("PropertiesCode"); + this.OnPropertiesCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PropertiesName", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string PropertiesName + { + get + { + return this._PropertiesName; + } + set + { + if ((this._PropertiesName != value)) + { + this.OnPropertiesNameChanging(value); + this.SendPropertyChanging(); + this._PropertiesName = value; + this.SendPropertyChanged("PropertiesName"); + this.OnPropertiesNameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_ReturnReason")] + public partial class Cl_b_ReturnReason : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _RRcode; + + private string _RRname; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnRRcodeChanging(string value); + partial void OnRRcodeChanged(); + partial void OnRRnameChanging(string value); + partial void OnRRnameChanged(); + #endregion + + public Cl_b_ReturnReason() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RRcode", DbType="Char(1) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string RRcode + { + get + { + return this._RRcode; + } + set + { + if ((this._RRcode != value)) + { + this.OnRRcodeChanging(value); + this.SendPropertyChanging(); + this._RRcode = value; + this.SendPropertyChanged("RRcode"); + this.OnRRcodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RRname", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string RRname + { + get + { + return this._RRname; + } + set + { + if ((this._RRname != value)) + { + this.OnRRnameChanging(value); + this.SendPropertyChanging(); + this._RRname = value; + this.SendPropertyChanged("RRname"); + this.OnRRnameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_B_SingleLineM")] + public partial class CL_B_SingleLineM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _SingleLineMID; + + private string _SingleLineCode; + + private System.DateTime _Usertime; + + private string _UserId; + + private string _IsOk; + + private string _InstallationId; + + private string _Specialityid; + + private string _AreaId; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntitySet _CL_B_SingleLineS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSingleLineMIDChanging(string value); + partial void OnSingleLineMIDChanged(); + partial void OnSingleLineCodeChanging(string value); + partial void OnSingleLineCodeChanged(); + partial void OnUsertimeChanging(System.DateTime value); + partial void OnUsertimeChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnAreaIdChanging(string value); + partial void OnAreaIdChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_B_SingleLineM() + { + this._CL_B_SingleLineS = new EntitySet(new Action(this.attach_CL_B_SingleLineS), new Action(this.detach_CL_B_SingleLineS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SingleLineMID + { + get + { + return this._SingleLineMID; + } + set + { + if ((this._SingleLineMID != value)) + { + this.OnSingleLineMIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineMID = value; + this.SendPropertyChanged("SingleLineMID"); + this.OnSingleLineMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SingleLineCode + { + get + { + return this._SingleLineCode; + } + set + { + if ((this._SingleLineCode != value)) + { + this.OnSingleLineCodeChanging(value); + this.SendPropertyChanging(); + this._SingleLineCode = value; + this.SendPropertyChanged("SingleLineCode"); + this.OnSingleLineCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Usertime", DbType="DateTime NOT NULL", UpdateCheck=UpdateCheck.Never)] + public System.DateTime Usertime + { + get + { + return this._Usertime; + } + set + { + if ((this._Usertime != value)) + { + this.OnUsertimeChanging(value); + this.SendPropertyChanging(); + this._Usertime = value; + this.SendPropertyChanged("Usertime"); + this.OnUsertimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaId", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string AreaId + { + get + { + return this._AreaId; + } + set + { + if ((this._AreaId != value)) + { + this.OnAreaIdChanging(value); + this.SendPropertyChanging(); + this._AreaId = value; + this.SendPropertyChanged("AreaId"); + this.OnAreaIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_SIN_REFERENCE_CL_B_SIN", Storage="_CL_B_SingleLineS", ThisKey="SingleLineMID", OtherKey="SingleLineMID", DeleteRule="NO ACTION")] + public EntitySet CL_B_SingleLineS + { + get + { + return this._CL_B_SingleLineS; + } + set + { + this._CL_B_SingleLineS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_CL_B_SingleLineS(CL_B_SingleLineS entity) + { + this.SendPropertyChanging(); + entity.CL_B_SingleLineM = this; + } + + private void detach_CL_B_SingleLineS(CL_B_SingleLineS entity) + { + this.SendPropertyChanging(); + entity.CL_B_SingleLineM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_B_SingleLineS")] + public partial class CL_B_SingleLineS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private System.Nullable _Soft; + + private string _SingleNo; + + private string _PipelineNo; + + private string _MaterialCode; + + private string _MaterialName; + + private string _Spec; + + private string _TechnicalConditions; + + private string _StandardSpecification; + + private string _SpecialNote; + + private string _Unit; + + private System.Nullable _Quantity; + + private string _AreaCode; + + private string _SpecialityCode; + + private string _InstallationCode; + + private string _OP; + + private string _OT; + + private string _DP; + + private string _DT; + + private string _TP; + + private string _Airtight; + + private string _PipeDiameter; + + private string _Grade; + + private string _InsulationRequirements; + + private string _InsulationThickness; + + private string _PWHT; + + private string _RT; + + private string _AreaId; + + private string _Specialityid; + + private string _InstallationId; + + private string _ProjectId; + + private string _SingleLineSID; + + private string _SingleLineMID; + + private string _MaterialID; + + private string _MaterialQuality; + + private string _ClassificationCode; + + private string _SystemCode; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _CL_B_SingleLineM; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnSingleNoChanging(string value); + partial void OnSingleNoChanged(); + partial void OnPipelineNoChanging(string value); + partial void OnPipelineNoChanged(); + partial void OnMaterialCodeChanging(string value); + partial void OnMaterialCodeChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecChanging(string value); + partial void OnSpecChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnSpecialNoteChanging(string value); + partial void OnSpecialNoteChanged(); + partial void OnUnitChanging(string value); + partial void OnUnitChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnAreaCodeChanging(string value); + partial void OnAreaCodeChanged(); + partial void OnSpecialityCodeChanging(string value); + partial void OnSpecialityCodeChanged(); + partial void OnInstallationCodeChanging(string value); + partial void OnInstallationCodeChanged(); + partial void OnOPChanging(string value); + partial void OnOPChanged(); + partial void OnOTChanging(string value); + partial void OnOTChanged(); + partial void OnDPChanging(string value); + partial void OnDPChanged(); + partial void OnDTChanging(string value); + partial void OnDTChanged(); + partial void OnTPChanging(string value); + partial void OnTPChanged(); + partial void OnAirtightChanging(string value); + partial void OnAirtightChanged(); + partial void OnPipeDiameterChanging(string value); + partial void OnPipeDiameterChanged(); + partial void OnGradeChanging(string value); + partial void OnGradeChanged(); + partial void OnInsulationRequirementsChanging(string value); + partial void OnInsulationRequirementsChanged(); + partial void OnInsulationThicknessChanging(string value); + partial void OnInsulationThicknessChanged(); + partial void OnPWHTChanging(string value); + partial void OnPWHTChanged(); + partial void OnRTChanging(string value); + partial void OnRTChanged(); + partial void OnAreaIdChanging(string value); + partial void OnAreaIdChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSingleLineSIDChanging(string value); + partial void OnSingleLineSIDChanged(); + partial void OnSingleLineMIDChanging(string value); + partial void OnSingleLineMIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnClassificationCodeChanging(string value); + partial void OnClassificationCodeChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_B_SingleLineS() + { + this._CL_B_SingleLineM = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SingleNo + { + get + { + return this._SingleNo; + } + set + { + if ((this._SingleNo != value)) + { + this.OnSingleNoChanging(value); + this.SendPropertyChanging(); + this._SingleNo = value; + this.SendPropertyChanged("SingleNo"); + this.OnSingleNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="pipelineNo", Storage="_PipelineNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string PipelineNo + { + get + { + return this._PipelineNo; + } + set + { + if ((this._PipelineNo != value)) + { + this.OnPipelineNoChanging(value); + this.SendPropertyChanging(); + this._PipelineNo = value; + this.SendPropertyChanged("PipelineNo"); + this.OnPipelineNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialCode + { + get + { + return this._MaterialCode; + } + set + { + if ((this._MaterialCode != value)) + { + this.OnMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._MaterialCode = value; + this.SendPropertyChanged("MaterialCode"); + this.OnMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spec", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Spec + { + get + { + return this._Spec; + } + set + { + if ((this._Spec != value)) + { + this.OnSpecChanging(value); + this.SendPropertyChanging(); + this._Spec = value; + this.SendPropertyChanged("Spec"); + this.OnSpecChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)", UpdateCheck=UpdateCheck.Never)] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialNote", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialNote + { + get + { + return this._SpecialNote; + } + set + { + if ((this._SpecialNote != value)) + { + this.OnSpecialNoteChanging(value); + this.SendPropertyChanging(); + this._SpecialNote = value; + this.SendPropertyChanged("SpecialNote"); + this.OnSpecialNoteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Unit + { + get + { + return this._Unit; + } + set + { + if ((this._Unit != value)) + { + this.OnUnitChanging(value); + this.SendPropertyChanging(); + this._Unit = value; + this.SendPropertyChanged("Unit"); + this.OnUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="quantity", Storage="_Quantity", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string AreaCode + { + get + { + return this._AreaCode; + } + set + { + if ((this._AreaCode != value)) + { + this.OnAreaCodeChanging(value); + this.SendPropertyChanging(); + this._AreaCode = value; + this.SendPropertyChanged("AreaCode"); + this.OnAreaCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SpecialityCode + { + get + { + return this._SpecialityCode; + } + set + { + if ((this._SpecialityCode != value)) + { + this.OnSpecialityCodeChanging(value); + this.SendPropertyChanging(); + this._SpecialityCode = value; + this.SendPropertyChanged("SpecialityCode"); + this.OnSpecialityCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationCode + { + get + { + return this._InstallationCode; + } + set + { + if ((this._InstallationCode != value)) + { + this.OnInstallationCodeChanging(value); + this.SendPropertyChanging(); + this._InstallationCode = value; + this.SendPropertyChanged("InstallationCode"); + this.OnInstallationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OP", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string OP + { + get + { + return this._OP; + } + set + { + if ((this._OP != value)) + { + this.OnOPChanging(value); + this.SendPropertyChanging(); + this._OP = value; + this.SendPropertyChanged("OP"); + this.OnOPChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OT", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string OT + { + get + { + return this._OT; + } + set + { + if ((this._OT != value)) + { + this.OnOTChanging(value); + this.SendPropertyChanging(); + this._OT = value; + this.SendPropertyChanged("OT"); + this.OnOTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DP", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DP + { + get + { + return this._DP; + } + set + { + if ((this._DP != value)) + { + this.OnDPChanging(value); + this.SendPropertyChanging(); + this._DP = value; + this.SendPropertyChanged("DP"); + this.OnDPChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DT", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DT + { + get + { + return this._DT; + } + set + { + if ((this._DT != value)) + { + this.OnDTChanging(value); + this.SendPropertyChanging(); + this._DT = value; + this.SendPropertyChanged("DT"); + this.OnDTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TP", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string TP + { + get + { + return this._TP; + } + set + { + if ((this._TP != value)) + { + this.OnTPChanging(value); + this.SendPropertyChanging(); + this._TP = value; + this.SendPropertyChanged("TP"); + this.OnTPChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Airtight", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Airtight + { + get + { + return this._Airtight; + } + set + { + if ((this._Airtight != value)) + { + this.OnAirtightChanging(value); + this.SendPropertyChanging(); + this._Airtight = value; + this.SendPropertyChanged("Airtight"); + this.OnAirtightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipeDiameter", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PipeDiameter + { + get + { + return this._PipeDiameter; + } + set + { + if ((this._PipeDiameter != value)) + { + this.OnPipeDiameterChanging(value); + this.SendPropertyChanging(); + this._PipeDiameter = value; + this.SendPropertyChanged("PipeDiameter"); + this.OnPipeDiameterChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Grade", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Grade + { + get + { + return this._Grade; + } + set + { + if ((this._Grade != value)) + { + this.OnGradeChanging(value); + this.SendPropertyChanging(); + this._Grade = value; + this.SendPropertyChanged("Grade"); + this.OnGradeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InsulationRequirements", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string InsulationRequirements + { + get + { + return this._InsulationRequirements; + } + set + { + if ((this._InsulationRequirements != value)) + { + this.OnInsulationRequirementsChanging(value); + this.SendPropertyChanging(); + this._InsulationRequirements = value; + this.SendPropertyChanged("InsulationRequirements"); + this.OnInsulationRequirementsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InsulationThickness", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string InsulationThickness + { + get + { + return this._InsulationThickness; + } + set + { + if ((this._InsulationThickness != value)) + { + this.OnInsulationThicknessChanging(value); + this.SendPropertyChanging(); + this._InsulationThickness = value; + this.SendPropertyChanged("InsulationThickness"); + this.OnInsulationThicknessChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PWHT", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string PWHT + { + get + { + return this._PWHT; + } + set + { + if ((this._PWHT != value)) + { + this.OnPWHTChanging(value); + this.SendPropertyChanging(); + this._PWHT = value; + this.SendPropertyChanged("PWHT"); + this.OnPWHTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RT", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RT + { + get + { + return this._RT; + } + set + { + if ((this._RT != value)) + { + this.OnRTChanging(value); + this.SendPropertyChanging(); + this._RT = value; + this.SendPropertyChanged("RT"); + this.OnRTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaId", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string AreaId + { + get + { + return this._AreaId; + } + set + { + if ((this._AreaId != value)) + { + this.OnAreaIdChanging(value); + this.SendPropertyChanging(); + this._AreaId = value; + this.SendPropertyChanged("AreaId"); + this.OnAreaIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SingleLineSID + { + get + { + return this._SingleLineSID; + } + set + { + if ((this._SingleLineSID != value)) + { + this.OnSingleLineSIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineSID = value; + this.SendPropertyChanged("SingleLineSID"); + this.OnSingleLineSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineMID", DbType="Char(36) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string SingleLineMID + { + get + { + return this._SingleLineMID; + } + set + { + if ((this._SingleLineMID != value)) + { + if (this._CL_B_SingleLineM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnSingleLineMIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineMID = value; + this.SendPropertyChanged("SingleLineMID"); + this.OnSingleLineMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassificationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ClassificationCode + { + get + { + return this._ClassificationCode; + } + set + { + if ((this._ClassificationCode != value)) + { + this.OnClassificationCodeChanging(value); + this.SendPropertyChanging(); + this._ClassificationCode = value; + this.SendPropertyChanged("ClassificationCode"); + this.OnClassificationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_SIN_REFERENCE_CL_B_SIN", Storage="_CL_B_SingleLineM", ThisKey="SingleLineMID", OtherKey="SingleLineMID", IsForeignKey=true)] + public CL_B_SingleLineM CL_B_SingleLineM + { + get + { + return this._CL_B_SingleLineM.Entity; + } + set + { + CL_B_SingleLineM previousValue = this._CL_B_SingleLineM.Entity; + if (((previousValue != value) + || (this._CL_B_SingleLineM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._CL_B_SingleLineM.Entity = null; + previousValue.CL_B_SingleLineS.Remove(this); + } + this._CL_B_SingleLineM.Entity = value; + if ((value != null)) + { + value.CL_B_SingleLineS.Add(this); + this._SingleLineMID = value.SingleLineMID; + } + else + { + this._SingleLineMID = default(string); + } + this.SendPropertyChanged("CL_B_SingleLineM"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_B_Speciality")] + public partial class CL_B_Speciality : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _Specialityid; + + private int _Soft; + + private string _SpecialityCode; + + private string _SpecialityName; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Base_Project; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnSoftChanging(int value); + partial void OnSoftChanged(); + partial void OnSpecialityCodeChanging(string value); + partial void OnSpecialityCodeChanged(); + partial void OnSpecialityNameChanging(string value); + partial void OnSpecialityNameChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_B_Speciality() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int NOT NULL", UpdateCheck=UpdateCheck.Never)] + public int Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityCode", DbType="NVarChar(20) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string SpecialityCode + { + get + { + return this._SpecialityCode; + } + set + { + if ((this._SpecialityCode != value)) + { + this.OnSpecialityCodeChanging(value); + this.SendPropertyChanging(); + this._SpecialityCode = value; + this.SendPropertyChanged("SpecialityCode"); + this.OnSpecialityCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialityName + { + get + { + return this._SpecialityName; + } + set + { + if ((this._SpecialityName != value)) + { + this.OnSpecialityNameChanging(value); + this.SendPropertyChanging(); + this._SpecialityName = value; + this.SendPropertyChanged("SpecialityName"); + this.OnSpecialityNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_SPE_REFERENCE_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.CL_B_Speciality.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.CL_B_Speciality.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_b_Storehouse")] + public partial class Cl_b_Storehouse : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _SHid; + + private string _StorehouseCode; + + private string _StorehouseName; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Base_Project; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSHidChanging(string value); + partial void OnSHidChanged(); + partial void OnStorehouseCodeChanging(string value); + partial void OnStorehouseCodeChanged(); + partial void OnStorehouseNameChanging(string value); + partial void OnStorehouseNameChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_b_Storehouse() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SHid", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SHid + { + get + { + return this._SHid; + } + set + { + if ((this._SHid != value)) + { + this.OnSHidChanging(value); + this.SendPropertyChanging(); + this._SHid = value; + this.SendPropertyChanged("SHid"); + this.OnSHidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorehouseCode", DbType="NVarChar(20) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string StorehouseCode + { + get + { + return this._StorehouseCode; + } + set + { + if ((this._StorehouseCode != value)) + { + this.OnStorehouseCodeChanging(value); + this.SendPropertyChanging(); + this._StorehouseCode = value; + this.SendPropertyChanged("StorehouseCode"); + this.OnStorehouseCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorehouseName", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string StorehouseName + { + get + { + return this._StorehouseName; + } + set + { + if ((this._StorehouseName != value)) + { + this.OnStorehouseNameChanging(value); + this.SendPropertyChanging(); + this._StorehouseName = value; + this.SendPropertyChanged("StorehouseName"); + this.OnStorehouseNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_B_STO_REFERENCE_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Cl_b_Storehouse.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Cl_b_Storehouse.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_SumType")] + public partial class Cl_b_SumType : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _SumTypecode; + + private string _SumTypename; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSumTypecodeChanging(string value); + partial void OnSumTypecodeChanged(); + partial void OnSumTypenameChanging(string value); + partial void OnSumTypenameChanged(); + #endregion + + public Cl_b_SumType() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypecode", DbType="Char(2) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string SumTypecode + { + get + { + return this._SumTypecode; + } + set + { + if ((this._SumTypecode != value)) + { + this.OnSumTypecodeChanging(value); + this.SendPropertyChanging(); + this._SumTypecode = value; + this.SendPropertyChanged("SumTypecode"); + this.OnSumTypecodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypename", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string SumTypename + { + get + { + return this._SumTypename; + } + set + { + if ((this._SumTypename != value)) + { + this.OnSumTypenameChanging(value); + this.SendPropertyChanging(); + this._SumTypename = value; + this.SendPropertyChanged("SumTypename"); + this.OnSumTypenameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_SupplyChannel")] + public partial class Cl_b_SupplyChannel : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _SCCode; + + private string _SCName; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSCCodeChanging(string value); + partial void OnSCCodeChanged(); + partial void OnSCNameChanging(string value); + partial void OnSCNameChanged(); + #endregion + + public Cl_b_SupplyChannel() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCCode", DbType="Char(2) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string SCCode + { + get + { + return this._SCCode; + } + set + { + if ((this._SCCode != value)) + { + this.OnSCCodeChanging(value); + this.SendPropertyChanging(); + this._SCCode = value; + this.SendPropertyChanged("SCCode"); + this.OnSCCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCName", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string SCName + { + get + { + return this._SCName; + } + set + { + if ((this._SCName != value)) + { + this.OnSCNameChanging(value); + this.SendPropertyChanging(); + this._SCName = value; + this.SendPropertyChanged("SCName"); + this.OnSCNameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_TableOptions")] + public partial class Cl_b_TableOptions : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _TOcode; + + private string _TOname; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnTOcodeChanging(string value); + partial void OnTOcodeChanged(); + partial void OnTOnameChanging(string value); + partial void OnTOnameChanged(); + #endregion + + public Cl_b_TableOptions() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TOcode", DbType="Char(1) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string TOcode + { + get + { + return this._TOcode; + } + set + { + if ((this._TOcode != value)) + { + this.OnTOcodeChanging(value); + this.SendPropertyChanging(); + this._TOcode = value; + this.SendPropertyChanged("TOcode"); + this.OnTOcodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TOname", DbType="NVarChar(20)")] + public string TOname + { + get + { + return this._TOname; + } + set + { + if ((this._TOname != value)) + { + this.OnTOnameChanging(value); + this.SendPropertyChanging(); + this._TOname = value; + this.SendPropertyChanged("TOname"); + this.OnTOnameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_b_Type")] + public partial class Cl_b_Type : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Typecode; + + private string _Typename; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnTypecodeChanging(string value); + partial void OnTypecodeChanged(); + partial void OnTypenameChanging(string value); + partial void OnTypenameChanged(); + #endregion + + public Cl_b_Type() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Typecode", DbType="Char(2) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Typecode + { + get + { + return this._Typecode; + } + set + { + if ((this._Typecode != value)) + { + this.OnTypecodeChanging(value); + this.SendPropertyChanging(); + this._Typecode = value; + this.SendPropertyChanged("Typecode"); + this.OnTypecodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Typename", DbType="NVarChar(20) NOT NULL", CanBeNull=false)] + public string Typename + { + get + { + return this._Typename; + } + set + { + if ((this._Typename != value)) + { + this.OnTypenameChanging(value); + this.SendPropertyChanging(); + this._Typename = value; + this.SendPropertyChanged("Typename"); + this.OnTypenameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_b_unitapp")] + public partial class Cl_b_unitapp : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _UAid; + + private string _UACode; + + private string _UAName; + + private string _UnitId; + + private System.Data.Linq.Binary _Last_modified; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUAidChanging(string value); + partial void OnUAidChanged(); + partial void OnUACodeChanging(string value); + partial void OnUACodeChanged(); + partial void OnUANameChanging(string value); + partial void OnUANameChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + #endregion + + public Cl_b_unitapp() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UAid", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string UAid + { + get + { + return this._UAid; + } + set + { + if ((this._UAid != value)) + { + this.OnUAidChanging(value); + this.SendPropertyChanging(); + this._UAid = value; + this.SendPropertyChanged("UAid"); + this.OnUAidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UACode", DbType="NVarChar(20) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string UACode + { + get + { + return this._UACode; + } + set + { + if ((this._UACode != value)) + { + this.OnUACodeChanging(value); + this.SendPropertyChanging(); + this._UACode = value; + this.SendPropertyChanged("UACode"); + this.OnUACodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UAName", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string UAName + { + get + { + return this._UAName; + } + set + { + if ((this._UAName != value)) + { + this.OnUANameChanging(value); + this.SendPropertyChanging(); + this._UAName = value; + this.SendPropertyChanged("UAName"); + this.OnUANameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_file")] + public partial class Cl_file : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _FID; + + private string _Ffl; + + private string _Unid; + + private string _Fname; + + private string _Fshm; + + private System.Nullable _UserTime; + + private string _UserID; + + private string _Flj; + + private string _Flx; + + private string _Bz; + + private string _InstallationId; + + private string _ProjectId; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnFIDChanging(string value); + partial void OnFIDChanged(); + partial void OnFflChanging(string value); + partial void OnFflChanged(); + partial void OnUnidChanging(string value); + partial void OnUnidChanged(); + partial void OnFnameChanging(string value); + partial void OnFnameChanged(); + partial void OnFshmChanging(string value); + partial void OnFshmChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnUserIDChanging(string value); + partial void OnUserIDChanged(); + partial void OnFljChanging(string value); + partial void OnFljChanged(); + partial void OnFlxChanging(string value); + partial void OnFlxChanged(); + partial void OnBzChanging(string value); + partial void OnBzChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + #endregion + + public Cl_file() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string FID + { + get + { + return this._FID; + } + set + { + if ((this._FID != value)) + { + this.OnFIDChanging(value); + this.SendPropertyChanging(); + this._FID = value; + this.SendPropertyChanged("FID"); + this.OnFIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Ffl", DbType="NVarChar(50)")] + public string Ffl + { + get + { + return this._Ffl; + } + set + { + if ((this._Ffl != value)) + { + this.OnFflChanging(value); + this.SendPropertyChanging(); + this._Ffl = value; + this.SendPropertyChanged("Ffl"); + this.OnFflChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unid", DbType="Char(36)")] + public string Unid + { + get + { + return this._Unid; + } + set + { + if ((this._Unid != value)) + { + this.OnUnidChanging(value); + this.SendPropertyChanging(); + this._Unid = value; + this.SendPropertyChanged("Unid"); + this.OnUnidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Fname", DbType="NVarChar(50)")] + public string Fname + { + get + { + return this._Fname; + } + set + { + if ((this._Fname != value)) + { + this.OnFnameChanging(value); + this.SendPropertyChanging(); + this._Fname = value; + this.SendPropertyChanged("Fname"); + this.OnFnameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Fshm", DbType="NVarChar(250)")] + public string Fshm + { + get + { + return this._Fshm; + } + set + { + if ((this._Fshm != value)) + { + this.OnFshmChanging(value); + this.SendPropertyChanging(); + this._Fshm = value; + this.SendPropertyChanged("Fshm"); + this.OnFshmChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime")] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", DbType="NVarChar(50)")] + public string UserID + { + get + { + return this._UserID; + } + set + { + if ((this._UserID != value)) + { + this.OnUserIDChanging(value); + this.SendPropertyChanging(); + this._UserID = value; + this.SendPropertyChanged("UserID"); + this.OnUserIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Flj", DbType="NVarChar(250)")] + public string Flj + { + get + { + return this._Flj; + } + set + { + if ((this._Flj != value)) + { + this.OnFljChanging(value); + this.SendPropertyChanging(); + this._Flj = value; + this.SendPropertyChanged("Flj"); + this.OnFljChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Flx", DbType="NVarChar(50)")] + public string Flx + { + get + { + return this._Flx; + } + set + { + if ((this._Flx != value)) + { + this.OnFlxChanging(value); + this.SendPropertyChanging(); + this._Flx = value; + this.SendPropertyChanged("Flx"); + this.OnFlxChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bz", Storage="_Bz", DbType="NVarChar(250)")] + public string Bz + { + get + { + return this._Bz; + } + set + { + if ((this._Bz != value)) + { + this.OnBzChanging(value); + this.SendPropertyChanging(); + this._Bz = value; + this.SendPropertyChanged("Bz"); + this.OnBzChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)")] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_MatchingM")] public partial class CL_MatchingM : INotifyPropertyChanging, INotifyPropertyChanged { @@ -86941,6 +92522,212 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_Operationlog")] + public partial class Cl_Operationlog : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private int _Lid; + + private string _ProjectId; + + private string _UserID; + + private string _UserName; + + private System.Nullable _OPdate; + + private string _ColName; + + private string _OPmode; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnLidChanging(int value); + partial void OnLidChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUserIDChanging(string value); + partial void OnUserIDChanged(); + partial void OnUserNameChanging(string value); + partial void OnUserNameChanged(); + partial void OnOPdateChanging(System.Nullable value); + partial void OnOPdateChanged(); + partial void OnColNameChanging(string value); + partial void OnColNameChanged(); + partial void OnOPmodeChanging(string value); + partial void OnOPmodeChanged(); + #endregion + + public Cl_Operationlog() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="lid", Storage="_Lid", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)] + public int Lid + { + get + { + return this._Lid; + } + set + { + if ((this._Lid != value)) + { + this.OnLidChanging(value); + this.SendPropertyChanging(); + this._Lid = value; + this.SendPropertyChanged("Lid"); + this.OnLidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserID", DbType="NVarChar(50)")] + public string UserID + { + get + { + return this._UserID; + } + set + { + if ((this._UserID != value)) + { + this.OnUserIDChanging(value); + this.SendPropertyChanging(); + this._UserID = value; + this.SendPropertyChanged("UserID"); + this.OnUserIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(20)")] + public string UserName + { + get + { + return this._UserName; + } + set + { + if ((this._UserName != value)) + { + this.OnUserNameChanging(value); + this.SendPropertyChanging(); + this._UserName = value; + this.SendPropertyChanged("UserName"); + this.OnUserNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OPdate", DbType="DateTime")] + public System.Nullable OPdate + { + get + { + return this._OPdate; + } + set + { + if ((this._OPdate != value)) + { + this.OnOPdateChanging(value); + this.SendPropertyChanging(); + this._OPdate = value; + this.SendPropertyChanged("OPdate"); + this.OnOPdateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ColName", DbType="NVarChar(50)")] + public string ColName + { + get + { + return this._ColName; + } + set + { + if ((this._ColName != value)) + { + this.OnColNameChanging(value); + this.SendPropertyChanging(); + this._ColName = value; + this.SendPropertyChanged("ColName"); + this.OnColNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OPmode", DbType="NVarChar(200)")] + public string OPmode + { + get + { + return this._OPmode; + } + set + { + if ((this._OPmode != value)) + { + this.OnOPmodeChanging(value); + this.SendPropertyChanging(); + this._OPmode = value; + this.SendPropertyChanged("OPmode"); + this.OnOPmodeChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_PMaterialM")] public partial class CL_PMaterialM : INotifyPropertyChanging, INotifyPropertyChanged { @@ -89547,6 +95334,19879 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_T_AreaMaterialM")] + public partial class CL_T_AreaMaterialM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _TAreaMaterialMID; + + private string _AreaMaterialCode; + + private string _DocumentType; + + private string _DocumentNumber; + + private string _KeyWord; + + private System.Nullable _DocumentDate; + + private System.DateTime _Usertime; + + private string _UserId; + + private string _IsOk; + + private string _AreaId; + + private string _Specialityid; + + private string _InstallationId; + + private System.Nullable _Edition; + + private string _Isold; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private System.Nullable _Pkey; + + private EntityRef _Base_Project; + + private EntitySet _CL_T_AreaMaterialS; + + private EntityRef _Sys_User; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnTAreaMaterialMIDChanging(string value); + partial void OnTAreaMaterialMIDChanged(); + partial void OnAreaMaterialCodeChanging(string value); + partial void OnAreaMaterialCodeChanged(); + partial void OnDocumentTypeChanging(string value); + partial void OnDocumentTypeChanged(); + partial void OnDocumentNumberChanging(string value); + partial void OnDocumentNumberChanged(); + partial void OnKeyWordChanging(string value); + partial void OnKeyWordChanged(); + partial void OnDocumentDateChanging(System.Nullable value); + partial void OnDocumentDateChanged(); + partial void OnUsertimeChanging(System.DateTime value); + partial void OnUsertimeChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnAreaIdChanging(string value); + partial void OnAreaIdChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnEditionChanging(System.Nullable value); + partial void OnEditionChanged(); + partial void OnIsoldChanging(string value); + partial void OnIsoldChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnPkeyChanging(System.Nullable value); + partial void OnPkeyChanged(); + #endregion + + public CL_T_AreaMaterialM() + { + this._Base_Project = default(EntityRef); + this._CL_T_AreaMaterialS = new EntitySet(new Action(this.attach_CL_T_AreaMaterialS), new Action(this.detach_CL_T_AreaMaterialS)); + this._Sys_User = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAreaMaterialMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string TAreaMaterialMID + { + get + { + return this._TAreaMaterialMID; + } + set + { + if ((this._TAreaMaterialMID != value)) + { + this.OnTAreaMaterialMIDChanging(value); + this.SendPropertyChanging(); + this._TAreaMaterialMID = value; + this.SendPropertyChanged("TAreaMaterialMID"); + this.OnTAreaMaterialMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaMaterialCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string AreaMaterialCode + { + get + { + return this._AreaMaterialCode; + } + set + { + if ((this._AreaMaterialCode != value)) + { + this.OnAreaMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._AreaMaterialCode = value; + this.SendPropertyChanged("AreaMaterialCode"); + this.OnAreaMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentType", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DocumentType + { + get + { + return this._DocumentType; + } + set + { + if ((this._DocumentType != value)) + { + this.OnDocumentTypeChanging(value); + this.SendPropertyChanging(); + this._DocumentType = value; + this.SendPropertyChanged("DocumentType"); + this.OnDocumentTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentNumber", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DocumentNumber + { + get + { + return this._DocumentNumber; + } + set + { + if ((this._DocumentNumber != value)) + { + this.OnDocumentNumberChanging(value); + this.SendPropertyChanging(); + this._DocumentNumber = value; + this.SendPropertyChanged("DocumentNumber"); + this.OnDocumentNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyWord", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string KeyWord + { + get + { + return this._KeyWord; + } + set + { + if ((this._KeyWord != value)) + { + this.OnKeyWordChanging(value); + this.SendPropertyChanging(); + this._KeyWord = value; + this.SendPropertyChanged("KeyWord"); + this.OnKeyWordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable DocumentDate + { + get + { + return this._DocumentDate; + } + set + { + if ((this._DocumentDate != value)) + { + this.OnDocumentDateChanging(value); + this.SendPropertyChanging(); + this._DocumentDate = value; + this.SendPropertyChanged("DocumentDate"); + this.OnDocumentDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Usertime", DbType="DateTime NOT NULL", UpdateCheck=UpdateCheck.Never)] + public System.DateTime Usertime + { + get + { + return this._Usertime; + } + set + { + if ((this._Usertime != value)) + { + this.OnUsertimeChanging(value); + this.SendPropertyChanging(); + this._Usertime = value; + this.SendPropertyChanged("Usertime"); + this.OnUsertimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaId", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string AreaId + { + get + { + return this._AreaId; + } + set + { + if ((this._AreaId != value)) + { + this.OnAreaIdChanging(value); + this.SendPropertyChanging(); + this._AreaId = value; + this.SendPropertyChanged("AreaId"); + this.OnAreaIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Edition", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Edition + { + get + { + return this._Edition; + } + set + { + if ((this._Edition != value)) + { + this.OnEditionChanging(value); + this.SendPropertyChanging(); + this._Edition = value; + this.SendPropertyChanged("Edition"); + this.OnEditionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="isold", Storage="_Isold", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Isold + { + get + { + return this._Isold; + } + set + { + if ((this._Isold != value)) + { + this.OnIsoldChanging(value); + this.SendPropertyChanging(); + this._Isold = value; + this.SendPropertyChanged("Isold"); + this.OnIsoldChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pkey", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Pkey + { + get + { + return this._Pkey; + } + set + { + if ((this._Pkey != value)) + { + this.OnPkeyChanging(value); + this.SendPropertyChanging(); + this._Pkey = value; + this.SendPropertyChanged("Pkey"); + this.OnPkeyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_7_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.CL_T_AreaMaterialM.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.CL_T_AreaMaterialM.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_REFERENCE_CL_T_ARE", Storage="_CL_T_AreaMaterialS", ThisKey="TAreaMaterialMID", OtherKey="TAreaMaterialMID", DeleteRule="NO ACTION")] + public EntitySet CL_T_AreaMaterialS + { + get + { + return this._CL_T_AreaMaterialS; + } + set + { + this._CL_T_AreaMaterialS.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_REFERENCE_SYS_USER", Storage="_Sys_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)] + public Sys_User Sys_User + { + get + { + return this._Sys_User.Entity; + } + set + { + Sys_User previousValue = this._Sys_User.Entity; + if (((previousValue != value) + || (this._Sys_User.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Sys_User.Entity = null; + previousValue.CL_T_AreaMaterialM.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.CL_T_AreaMaterialM.Add(this); + this._UserId = value.UserId; + } + else + { + this._UserId = default(string); + } + this.SendPropertyChanged("Sys_User"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_CL_T_AreaMaterialS(CL_T_AreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.CL_T_AreaMaterialM = this; + } + + private void detach_CL_T_AreaMaterialS(CL_T_AreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.CL_T_AreaMaterialM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_T_AreaMaterialS")] + public partial class CL_T_AreaMaterialS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DesignUnit; + + private string _MaterialCode; + + private string _Spec; + + private string _TechnicalConditions; + + private string _Unit; + + private string _SystemCode; + + private string _ClassificationCode; + + private string _MaterialName; + + private string _Specificationtype; + + private string _StandardSpecification; + + private string _MaterialQuality; + + private string _SpecialNote; + + private string _FirstpartyCode; + + private System.Nullable _Quantity; + + private System.Nullable _TheoryWeight; + + private string _SCName; + + private string _IsCheck; + + private string _NDTName; + + private string _NDTRName; + + private string _RecordTableOptions; + + private string _ListType; + + private string _TypeName; + + private string _SumTypeName; + + private System.Nullable _Soft; + + private string _MapNumber; + + private string _Properties; + + private string _AreaCode; + + private string _SpecialityCode; + + private string _InstallationCode; + + private string _AreaId; + + private string _Specialityid; + + private string _InstallationId; + + private string _ProjectId; + + private string _TAreaMaterialSID; + + private string _TAreaMaterialMID; + + private string _MaterialID; + + private string _DifferentiationCode; + + private System.Nullable _Xz; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private System.Nullable _Pquantity; + + private EntityRef _Base_Project; + + private EntityRef _Cl_b_Installation; + + private EntityRef _CL_T_AreaMaterialM; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDesignUnitChanging(string value); + partial void OnDesignUnitChanged(); + partial void OnMaterialCodeChanging(string value); + partial void OnMaterialCodeChanged(); + partial void OnSpecChanging(string value); + partial void OnSpecChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnUnitChanging(string value); + partial void OnUnitChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnClassificationCodeChanging(string value); + partial void OnClassificationCodeChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecificationtypeChanging(string value); + partial void OnSpecificationtypeChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnSpecialNoteChanging(string value); + partial void OnSpecialNoteChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnTheoryWeightChanging(System.Nullable value); + partial void OnTheoryWeightChanged(); + partial void OnSCNameChanging(string value); + partial void OnSCNameChanged(); + partial void OnIsCheckChanging(string value); + partial void OnIsCheckChanged(); + partial void OnNDTNameChanging(string value); + partial void OnNDTNameChanged(); + partial void OnNDTRNameChanging(string value); + partial void OnNDTRNameChanged(); + partial void OnRecordTableOptionsChanging(string value); + partial void OnRecordTableOptionsChanged(); + partial void OnListTypeChanging(string value); + partial void OnListTypeChanged(); + partial void OnTypeNameChanging(string value); + partial void OnTypeNameChanged(); + partial void OnSumTypeNameChanging(string value); + partial void OnSumTypeNameChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnMapNumberChanging(string value); + partial void OnMapNumberChanged(); + partial void OnPropertiesChanging(string value); + partial void OnPropertiesChanged(); + partial void OnAreaCodeChanging(string value); + partial void OnAreaCodeChanged(); + partial void OnSpecialityCodeChanging(string value); + partial void OnSpecialityCodeChanged(); + partial void OnInstallationCodeChanging(string value); + partial void OnInstallationCodeChanged(); + partial void OnAreaIdChanging(string value); + partial void OnAreaIdChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnTAreaMaterialSIDChanging(string value); + partial void OnTAreaMaterialSIDChanged(); + partial void OnTAreaMaterialMIDChanging(string value); + partial void OnTAreaMaterialMIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnDifferentiationCodeChanging(string value); + partial void OnDifferentiationCodeChanged(); + partial void OnXzChanging(System.Nullable value); + partial void OnXzChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnPquantityChanging(System.Nullable value); + partial void OnPquantityChanged(); + #endregion + + public CL_T_AreaMaterialS() + { + this._Base_Project = default(EntityRef); + this._Cl_b_Installation = default(EntityRef); + this._CL_T_AreaMaterialM = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignUnit", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DesignUnit + { + get + { + return this._DesignUnit; + } + set + { + if ((this._DesignUnit != value)) + { + this.OnDesignUnitChanging(value); + this.SendPropertyChanging(); + this._DesignUnit = value; + this.SendPropertyChanged("DesignUnit"); + this.OnDesignUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialCode + { + get + { + return this._MaterialCode; + } + set + { + if ((this._MaterialCode != value)) + { + this.OnMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._MaterialCode = value; + this.SendPropertyChanged("MaterialCode"); + this.OnMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spec", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Spec + { + get + { + return this._Spec; + } + set + { + if ((this._Spec != value)) + { + this.OnSpecChanging(value); + this.SendPropertyChanging(); + this._Spec = value; + this.SendPropertyChanged("Spec"); + this.OnSpecChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)", UpdateCheck=UpdateCheck.Never)] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Unit + { + get + { + return this._Unit; + } + set + { + if ((this._Unit != value)) + { + this.OnUnitChanging(value); + this.SendPropertyChanging(); + this._Unit = value; + this.SendPropertyChanged("Unit"); + this.OnUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassificationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ClassificationCode + { + get + { + return this._ClassificationCode; + } + set + { + if ((this._ClassificationCode != value)) + { + this.OnClassificationCodeChanging(value); + this.SendPropertyChanging(); + this._ClassificationCode = value; + this.SendPropertyChanged("ClassificationCode"); + this.OnClassificationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specificationtype", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string Specificationtype + { + get + { + return this._Specificationtype; + } + set + { + if ((this._Specificationtype != value)) + { + this.OnSpecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Specificationtype = value; + this.SendPropertyChanged("Specificationtype"); + this.OnSpecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(500)", UpdateCheck=UpdateCheck.Never)] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialNote", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialNote + { + get + { + return this._SpecialNote; + } + set + { + if ((this._SpecialNote != value)) + { + this.OnSpecialNoteChanging(value); + this.SendPropertyChanging(); + this._SpecialNote = value; + this.SendPropertyChanged("SpecialNote"); + this.OnSpecialNoteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="quantity", Storage="_Quantity", DbType="Decimal(15,2)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable TheoryWeight + { + get + { + return this._TheoryWeight; + } + set + { + if ((this._TheoryWeight != value)) + { + this.OnTheoryWeightChanging(value); + this.SendPropertyChanging(); + this._TheoryWeight = value; + this.SendPropertyChanged("TheoryWeight"); + this.OnTheoryWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SCName + { + get + { + return this._SCName; + } + set + { + if ((this._SCName != value)) + { + this.OnSCNameChanging(value); + this.SendPropertyChanging(); + this._SCName = value; + this.SendPropertyChanged("SCName"); + this.OnSCNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheck", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsCheck + { + get + { + return this._IsCheck; + } + set + { + if ((this._IsCheck != value)) + { + this.OnIsCheckChanging(value); + this.SendPropertyChanging(); + this._IsCheck = value; + this.SendPropertyChanged("IsCheck"); + this.OnIsCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string NDTName + { + get + { + return this._NDTName; + } + set + { + if ((this._NDTName != value)) + { + this.OnNDTNameChanging(value); + this.SendPropertyChanging(); + this._NDTName = value; + this.SendPropertyChanged("NDTName"); + this.OnNDTNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTRName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string NDTRName + { + get + { + return this._NDTRName; + } + set + { + if ((this._NDTRName != value)) + { + this.OnNDTRNameChanging(value); + this.SendPropertyChanging(); + this._NDTRName = value; + this.SendPropertyChanged("NDTRName"); + this.OnNDTRNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableOptions", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RecordTableOptions + { + get + { + return this._RecordTableOptions; + } + set + { + if ((this._RecordTableOptions != value)) + { + this.OnRecordTableOptionsChanging(value); + this.SendPropertyChanging(); + this._RecordTableOptions = value; + this.SendPropertyChanged("RecordTableOptions"); + this.OnRecordTableOptionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ListType", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ListType + { + get + { + return this._ListType; + } + set + { + if ((this._ListType != value)) + { + this.OnListTypeChanging(value); + this.SendPropertyChanging(); + this._ListType = value; + this.SendPropertyChanged("ListType"); + this.OnListTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string TypeName + { + get + { + return this._TypeName; + } + set + { + if ((this._TypeName != value)) + { + this.OnTypeNameChanging(value); + this.SendPropertyChanging(); + this._TypeName = value; + this.SendPropertyChanged("TypeName"); + this.OnTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SumTypeName + { + get + { + return this._SumTypeName; + } + set + { + if ((this._SumTypeName != value)) + { + this.OnSumTypeNameChanging(value); + this.SendPropertyChanging(); + this._SumTypeName = value; + this.SendPropertyChanged("SumTypeName"); + this.OnSumTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MapNumber", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MapNumber + { + get + { + return this._MapNumber; + } + set + { + if ((this._MapNumber != value)) + { + this.OnMapNumberChanging(value); + this.SendPropertyChanging(); + this._MapNumber = value; + this.SendPropertyChanged("MapNumber"); + this.OnMapNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Properties", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Properties + { + get + { + return this._Properties; + } + set + { + if ((this._Properties != value)) + { + this.OnPropertiesChanging(value); + this.SendPropertyChanging(); + this._Properties = value; + this.SendPropertyChanged("Properties"); + this.OnPropertiesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string AreaCode + { + get + { + return this._AreaCode; + } + set + { + if ((this._AreaCode != value)) + { + this.OnAreaCodeChanging(value); + this.SendPropertyChanging(); + this._AreaCode = value; + this.SendPropertyChanged("AreaCode"); + this.OnAreaCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SpecialityCode + { + get + { + return this._SpecialityCode; + } + set + { + if ((this._SpecialityCode != value)) + { + this.OnSpecialityCodeChanging(value); + this.SendPropertyChanging(); + this._SpecialityCode = value; + this.SendPropertyChanged("SpecialityCode"); + this.OnSpecialityCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationCode + { + get + { + return this._InstallationCode; + } + set + { + if ((this._InstallationCode != value)) + { + this.OnInstallationCodeChanging(value); + this.SendPropertyChanging(); + this._InstallationCode = value; + this.SendPropertyChanged("InstallationCode"); + this.OnInstallationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaId", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string AreaId + { + get + { + return this._AreaId; + } + set + { + if ((this._AreaId != value)) + { + this.OnAreaIdChanging(value); + this.SendPropertyChanging(); + this._AreaId = value; + this.SendPropertyChanged("AreaId"); + this.OnAreaIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + if (this._Cl_b_Installation.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAreaMaterialSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string TAreaMaterialSID + { + get + { + return this._TAreaMaterialSID; + } + set + { + if ((this._TAreaMaterialSID != value)) + { + this.OnTAreaMaterialSIDChanging(value); + this.SendPropertyChanging(); + this._TAreaMaterialSID = value; + this.SendPropertyChanged("TAreaMaterialSID"); + this.OnTAreaMaterialSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAreaMaterialMID", DbType="Char(36) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string TAreaMaterialMID + { + get + { + return this._TAreaMaterialMID; + } + set + { + if ((this._TAreaMaterialMID != value)) + { + if (this._CL_T_AreaMaterialM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnTAreaMaterialMIDChanging(value); + this.SendPropertyChanging(); + this._TAreaMaterialMID = value; + this.SendPropertyChanged("TAreaMaterialMID"); + this.OnTAreaMaterialMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DifferentiationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DifferentiationCode + { + get + { + return this._DifferentiationCode; + } + set + { + if ((this._DifferentiationCode != value)) + { + this.OnDifferentiationCodeChanging(value); + this.SendPropertyChanging(); + this._DifferentiationCode = value; + this.SendPropertyChanged("DifferentiationCode"); + this.OnDifferentiationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="xz", Storage="_Xz", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Xz + { + get + { + return this._Xz; + } + set + { + if ((this._Xz != value)) + { + this.OnXzChanging(value); + this.SendPropertyChanging(); + this._Xz = value; + this.SendPropertyChanged("Xz"); + this.OnXzChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pquantity", DbType="Decimal(15,2)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Pquantity + { + get + { + return this._Pquantity; + } + set + { + if ((this._Pquantity != value)) + { + this.OnPquantityChanging(value); + this.SendPropertyChanging(); + this._Pquantity = value; + this.SendPropertyChanged("Pquantity"); + this.OnPquantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_3_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.CL_T_AreaMaterialS.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.CL_T_AreaMaterialS.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_REFERENCE_CL_B_INS", Storage="_Cl_b_Installation", ThisKey="InstallationId", OtherKey="InstallationId", IsForeignKey=true)] + public Cl_b_Installation Cl_b_Installation + { + get + { + return this._Cl_b_Installation.Entity; + } + set + { + Cl_b_Installation previousValue = this._Cl_b_Installation.Entity; + if (((previousValue != value) + || (this._Cl_b_Installation.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_b_Installation.Entity = null; + previousValue.CL_T_AreaMaterialS.Remove(this); + } + this._Cl_b_Installation.Entity = value; + if ((value != null)) + { + value.CL_T_AreaMaterialS.Add(this); + this._InstallationId = value.InstallationId; + } + else + { + this._InstallationId = default(string); + } + this.SendPropertyChanged("Cl_b_Installation"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_REFERENCE_CL_T_ARE", Storage="_CL_T_AreaMaterialM", ThisKey="TAreaMaterialMID", OtherKey="TAreaMaterialMID", IsForeignKey=true)] + public CL_T_AreaMaterialM CL_T_AreaMaterialM + { + get + { + return this._CL_T_AreaMaterialM.Entity; + } + set + { + CL_T_AreaMaterialM previousValue = this._CL_T_AreaMaterialM.Entity; + if (((previousValue != value) + || (this._CL_T_AreaMaterialM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._CL_T_AreaMaterialM.Entity = null; + previousValue.CL_T_AreaMaterialS.Remove(this); + } + this._CL_T_AreaMaterialM.Entity = value; + if ((value != null)) + { + value.CL_T_AreaMaterialS.Add(this); + this._TAreaMaterialMID = value.TAreaMaterialMID; + } + else + { + this._TAreaMaterialMID = default(string); + } + this.SendPropertyChanged("CL_T_AreaMaterialM"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_T_Material")] + public partial class CL_T_Material : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _InstallationId; + + private string _Specialityid; + + private string _MaterialID; + + private string _SystemCode; + + private string _FirstpartyCode; + + private System.Nullable _TheoryWeight; + + private string _SCName; + + private string _IsCheck; + + private string _NDTName; + + private string _NDTRName; + + private string _TypeName; + + private string _SumTypeName; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnTheoryWeightChanging(System.Nullable value); + partial void OnTheoryWeightChanged(); + partial void OnSCNameChanging(string value); + partial void OnSCNameChanged(); + partial void OnIsCheckChanging(string value); + partial void OnIsCheckChanged(); + partial void OnNDTNameChanging(string value); + partial void OnNDTNameChanged(); + partial void OnNDTRNameChanging(string value); + partial void OnNDTRNameChanged(); + partial void OnTypeNameChanging(string value); + partial void OnTypeNameChanged(); + partial void OnSumTypeNameChanging(string value); + partial void OnSumTypeNameChanged(); + #endregion + + public CL_T_Material() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)")] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeight", DbType="Decimal(10,4)")] + public System.Nullable TheoryWeight + { + get + { + return this._TheoryWeight; + } + set + { + if ((this._TheoryWeight != value)) + { + this.OnTheoryWeightChanging(value); + this.SendPropertyChanging(); + this._TheoryWeight = value; + this.SendPropertyChanged("TheoryWeight"); + this.OnTheoryWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCName", DbType="NVarChar(20)")] + public string SCName + { + get + { + return this._SCName; + } + set + { + if ((this._SCName != value)) + { + this.OnSCNameChanging(value); + this.SendPropertyChanging(); + this._SCName = value; + this.SendPropertyChanged("SCName"); + this.OnSCNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheck", DbType="Char(1)")] + public string IsCheck + { + get + { + return this._IsCheck; + } + set + { + if ((this._IsCheck != value)) + { + this.OnIsCheckChanging(value); + this.SendPropertyChanging(); + this._IsCheck = value; + this.SendPropertyChanged("IsCheck"); + this.OnIsCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTName", DbType="NVarChar(20)")] + public string NDTName + { + get + { + return this._NDTName; + } + set + { + if ((this._NDTName != value)) + { + this.OnNDTNameChanging(value); + this.SendPropertyChanging(); + this._NDTName = value; + this.SendPropertyChanged("NDTName"); + this.OnNDTNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTRName", DbType="NVarChar(20)")] + public string NDTRName + { + get + { + return this._NDTRName; + } + set + { + if ((this._NDTRName != value)) + { + this.OnNDTRNameChanging(value); + this.SendPropertyChanging(); + this._NDTRName = value; + this.SendPropertyChanged("NDTRName"); + this.OnNDTRNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(20)")] + public string TypeName + { + get + { + return this._TypeName; + } + set + { + if ((this._TypeName != value)) + { + this.OnTypeNameChanging(value); + this.SendPropertyChanging(); + this._TypeName = value; + this.SendPropertyChanged("TypeName"); + this.OnTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypeName", DbType="NVarChar(20)")] + public string SumTypeName + { + get + { + return this._SumTypeName; + } + set + { + if ((this._SumTypeName != value)) + { + this.OnSumTypeNameChanging(value); + this.SendPropertyChanging(); + this._SumTypeName = value; + this.SendPropertyChanged("SumTypeName"); + this.OnSumTypeNameChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_T_MaterialStorageS")] + public partial class Cl_T_MaterialStorageS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _UserId; + + private string _ProjectId; + + private string _StorageSheetMID; + + private string _StorageSheetSID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private string _StorehouseName; + + private System.Nullable _YQuantity; + + private System.Nullable _StorageQuantity; + + private string _PStCode; + + private string _MaterialName; + + private string _Specificationtype; + + private string _MaterialQuality; + + private string _StandardSpecification; + + private string _YSystemCode; + + private string _SystemCode; + + private string _TechnicalConditions; + + private string _BZ; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnStorageSheetMIDChanging(string value); + partial void OnStorageSheetMIDChanged(); + partial void OnStorageSheetSIDChanging(string value); + partial void OnStorageSheetSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnStorehouseNameChanging(string value); + partial void OnStorehouseNameChanged(); + partial void OnYQuantityChanging(System.Nullable value); + partial void OnYQuantityChanged(); + partial void OnStorageQuantityChanging(System.Nullable value); + partial void OnStorageQuantityChanged(); + partial void OnPStCodeChanging(string value); + partial void OnPStCodeChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecificationtypeChanging(string value); + partial void OnSpecificationtypeChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnYSystemCodeChanging(string value); + partial void OnYSystemCodeChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnBZChanging(string value); + partial void OnBZChanged(); + #endregion + + public Cl_T_MaterialStorageS() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetMID", DbType="Char(36)")] + public string StorageSheetMID + { + get + { + return this._StorageSheetMID; + } + set + { + if ((this._StorageSheetMID != value)) + { + this.OnStorageSheetMIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetMID = value; + this.SendPropertyChanged("StorageSheetMID"); + this.OnStorageSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string StorageSheetSID + { + get + { + return this._StorageSheetSID; + } + set + { + if ((this._StorageSheetSID != value)) + { + this.OnStorageSheetSIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetSID = value; + this.SendPropertyChanged("StorageSheetSID"); + this.OnStorageSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)")] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int")] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorehouseName", DbType="NVarChar(20)")] + public string StorehouseName + { + get + { + return this._StorehouseName; + } + set + { + if ((this._StorehouseName != value)) + { + this.OnStorehouseNameChanging(value); + this.SendPropertyChanging(); + this._StorehouseName = value; + this.SendPropertyChanged("StorehouseName"); + this.OnStorehouseNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YQuantity", DbType="Decimal(15,4)")] + public System.Nullable YQuantity + { + get + { + return this._YQuantity; + } + set + { + if ((this._YQuantity != value)) + { + this.OnYQuantityChanging(value); + this.SendPropertyChanging(); + this._YQuantity = value; + this.SendPropertyChanged("YQuantity"); + this.OnYQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageQuantity", DbType="Decimal(15,4)")] + public System.Nullable StorageQuantity + { + get + { + return this._StorageQuantity; + } + set + { + if ((this._StorageQuantity != value)) + { + this.OnStorageQuantityChanging(value); + this.SendPropertyChanging(); + this._StorageQuantity = value; + this.SendPropertyChanged("StorageQuantity"); + this.OnStorageQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PStCode", DbType="NVarChar(50)")] + public string PStCode + { + get + { + return this._PStCode; + } + set + { + if ((this._PStCode != value)) + { + this.OnPStCodeChanging(value); + this.SendPropertyChanging(); + this._PStCode = value; + this.SendPropertyChanged("PStCode"); + this.OnPStCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(500)")] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specificationtype", DbType="NVarChar(500)")] + public string Specificationtype + { + get + { + return this._Specificationtype; + } + set + { + if ((this._Specificationtype != value)) + { + this.OnSpecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Specificationtype = value; + this.SendPropertyChanged("Specificationtype"); + this.OnSpecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(500)")] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(500)")] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YSystemCode", DbType="NVarChar(250)")] + public string YSystemCode + { + get + { + return this._YSystemCode; + } + set + { + if ((this._YSystemCode != value)) + { + this.OnYSystemCodeChanging(value); + this.SendPropertyChanging(); + this._YSystemCode = value; + this.SendPropertyChanged("YSystemCode"); + this.OnYSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(250)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)")] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BZ", DbType="NVarChar(250)")] + public string BZ + { + get + { + return this._BZ; + } + set + { + if ((this._BZ != value)) + { + this.OnBZChanging(value); + this.SendPropertyChanging(); + this._BZ = value; + this.SendPropertyChanged("BZ"); + this.OnBZChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_T_SumAreaMaterialM")] + public partial class CL_T_SumAreaMaterialM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _SumAreaMaterialMID; + + private string _DocumentType; + + private string _DocumentNumber; + + private string _KeyWord; + + private System.Nullable _DocumentDate; + + private System.DateTime _Usertime; + + private string _UserId; + + private string _IsOk; + + private string _Specialityid; + + private string _InstallationId; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntitySet _CL_T_SumAreaMaterialS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSumAreaMaterialMIDChanging(string value); + partial void OnSumAreaMaterialMIDChanged(); + partial void OnDocumentTypeChanging(string value); + partial void OnDocumentTypeChanged(); + partial void OnDocumentNumberChanging(string value); + partial void OnDocumentNumberChanged(); + partial void OnKeyWordChanging(string value); + partial void OnKeyWordChanged(); + partial void OnDocumentDateChanging(System.Nullable value); + partial void OnDocumentDateChanged(); + partial void OnUsertimeChanging(System.DateTime value); + partial void OnUsertimeChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_T_SumAreaMaterialM() + { + this._CL_T_SumAreaMaterialS = new EntitySet(new Action(this.attach_CL_T_SumAreaMaterialS), new Action(this.detach_CL_T_SumAreaMaterialS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumAreaMaterialMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SumAreaMaterialMID + { + get + { + return this._SumAreaMaterialMID; + } + set + { + if ((this._SumAreaMaterialMID != value)) + { + this.OnSumAreaMaterialMIDChanging(value); + this.SendPropertyChanging(); + this._SumAreaMaterialMID = value; + this.SendPropertyChanged("SumAreaMaterialMID"); + this.OnSumAreaMaterialMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentType", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DocumentType + { + get + { + return this._DocumentType; + } + set + { + if ((this._DocumentType != value)) + { + this.OnDocumentTypeChanging(value); + this.SendPropertyChanging(); + this._DocumentType = value; + this.SendPropertyChanged("DocumentType"); + this.OnDocumentTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentNumber", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DocumentNumber + { + get + { + return this._DocumentNumber; + } + set + { + if ((this._DocumentNumber != value)) + { + this.OnDocumentNumberChanging(value); + this.SendPropertyChanging(); + this._DocumentNumber = value; + this.SendPropertyChanged("DocumentNumber"); + this.OnDocumentNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyWord", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string KeyWord + { + get + { + return this._KeyWord; + } + set + { + if ((this._KeyWord != value)) + { + this.OnKeyWordChanging(value); + this.SendPropertyChanging(); + this._KeyWord = value; + this.SendPropertyChanged("KeyWord"); + this.OnKeyWordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable DocumentDate + { + get + { + return this._DocumentDate; + } + set + { + if ((this._DocumentDate != value)) + { + this.OnDocumentDateChanging(value); + this.SendPropertyChanging(); + this._DocumentDate = value; + this.SendPropertyChanged("DocumentDate"); + this.OnDocumentDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Usertime", DbType="DateTime NOT NULL", UpdateCheck=UpdateCheck.Never)] + public System.DateTime Usertime + { + get + { + return this._Usertime; + } + set + { + if ((this._Usertime != value)) + { + this.OnUsertimeChanging(value); + this.SendPropertyChanging(); + this._Usertime = value; + this.SendPropertyChanged("Usertime"); + this.OnUsertimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_SUM_REFERENCE_CL_T_SUM", Storage="_CL_T_SumAreaMaterialS", ThisKey="SumAreaMaterialMID", OtherKey="SumAreaMaterialMID", DeleteRule="NO ACTION")] + public EntitySet CL_T_SumAreaMaterialS + { + get + { + return this._CL_T_SumAreaMaterialS; + } + set + { + this._CL_T_SumAreaMaterialS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_CL_T_SumAreaMaterialS(CL_T_SumAreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.CL_T_SumAreaMaterialM = this; + } + + private void detach_CL_T_SumAreaMaterialS(CL_T_SumAreaMaterialS entity) + { + this.SendPropertyChanging(); + entity.CL_T_SumAreaMaterialM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_T_SumAreaMaterialS")] + public partial class CL_T_SumAreaMaterialS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DesignUnit; + + private string _MaterialCode; + + private string _Spec; + + private string _TechnicalConditions; + + private string _Unit; + + private string _SystemCode; + + private string _ClassificationCode; + + private string _MaterialName; + + private string _Specificationtype; + + private string _StandardSpecification; + + private string _MaterialQuality; + + private string _SpecialNote; + + private System.Nullable _Quantity; + + private string _MapNumber; + + private string _Properties; + + private string _SpecialityCode; + + private string _InstallationCode; + + private string _Specialityid; + + private string _InstallationId; + + private string _ProjectId; + + private string _SumAreaMaterialSID; + + private string _SumAreaMaterialMID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _CL_T_SumAreaMaterialM; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDesignUnitChanging(string value); + partial void OnDesignUnitChanged(); + partial void OnMaterialCodeChanging(string value); + partial void OnMaterialCodeChanged(); + partial void OnSpecChanging(string value); + partial void OnSpecChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnUnitChanging(string value); + partial void OnUnitChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnClassificationCodeChanging(string value); + partial void OnClassificationCodeChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecificationtypeChanging(string value); + partial void OnSpecificationtypeChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnSpecialNoteChanging(string value); + partial void OnSpecialNoteChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnMapNumberChanging(string value); + partial void OnMapNumberChanged(); + partial void OnPropertiesChanging(string value); + partial void OnPropertiesChanged(); + partial void OnSpecialityCodeChanging(string value); + partial void OnSpecialityCodeChanged(); + partial void OnInstallationCodeChanging(string value); + partial void OnInstallationCodeChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSumAreaMaterialSIDChanging(string value); + partial void OnSumAreaMaterialSIDChanged(); + partial void OnSumAreaMaterialMIDChanging(string value); + partial void OnSumAreaMaterialMIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_T_SumAreaMaterialS() + { + this._CL_T_SumAreaMaterialM = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignUnit", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DesignUnit + { + get + { + return this._DesignUnit; + } + set + { + if ((this._DesignUnit != value)) + { + this.OnDesignUnitChanging(value); + this.SendPropertyChanging(); + this._DesignUnit = value; + this.SendPropertyChanged("DesignUnit"); + this.OnDesignUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialCode + { + get + { + return this._MaterialCode; + } + set + { + if ((this._MaterialCode != value)) + { + this.OnMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._MaterialCode = value; + this.SendPropertyChanged("MaterialCode"); + this.OnMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spec", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Spec + { + get + { + return this._Spec; + } + set + { + if ((this._Spec != value)) + { + this.OnSpecChanging(value); + this.SendPropertyChanging(); + this._Spec = value; + this.SendPropertyChanged("Spec"); + this.OnSpecChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)", UpdateCheck=UpdateCheck.Never)] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Unit + { + get + { + return this._Unit; + } + set + { + if ((this._Unit != value)) + { + this.OnUnitChanging(value); + this.SendPropertyChanging(); + this._Unit = value; + this.SendPropertyChanged("Unit"); + this.OnUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassificationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ClassificationCode + { + get + { + return this._ClassificationCode; + } + set + { + if ((this._ClassificationCode != value)) + { + this.OnClassificationCodeChanging(value); + this.SendPropertyChanging(); + this._ClassificationCode = value; + this.SendPropertyChanged("ClassificationCode"); + this.OnClassificationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specificationtype", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Specificationtype + { + get + { + return this._Specificationtype; + } + set + { + if ((this._Specificationtype != value)) + { + this.OnSpecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Specificationtype = value; + this.SendPropertyChanged("Specificationtype"); + this.OnSpecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialNote", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialNote + { + get + { + return this._SpecialNote; + } + set + { + if ((this._SpecialNote != value)) + { + this.OnSpecialNoteChanging(value); + this.SendPropertyChanging(); + this._SpecialNote = value; + this.SendPropertyChanged("SpecialNote"); + this.OnSpecialNoteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="quantity", Storage="_Quantity", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MapNumber", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MapNumber + { + get + { + return this._MapNumber; + } + set + { + if ((this._MapNumber != value)) + { + this.OnMapNumberChanging(value); + this.SendPropertyChanging(); + this._MapNumber = value; + this.SendPropertyChanged("MapNumber"); + this.OnMapNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Properties", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Properties + { + get + { + return this._Properties; + } + set + { + if ((this._Properties != value)) + { + this.OnPropertiesChanging(value); + this.SendPropertyChanging(); + this._Properties = value; + this.SendPropertyChanged("Properties"); + this.OnPropertiesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SpecialityCode + { + get + { + return this._SpecialityCode; + } + set + { + if ((this._SpecialityCode != value)) + { + this.OnSpecialityCodeChanging(value); + this.SendPropertyChanging(); + this._SpecialityCode = value; + this.SendPropertyChanged("SpecialityCode"); + this.OnSpecialityCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationCode + { + get + { + return this._InstallationCode; + } + set + { + if ((this._InstallationCode != value)) + { + this.OnInstallationCodeChanging(value); + this.SendPropertyChanging(); + this._InstallationCode = value; + this.SendPropertyChanged("InstallationCode"); + this.OnInstallationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumAreaMaterialSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SumAreaMaterialSID + { + get + { + return this._SumAreaMaterialSID; + } + set + { + if ((this._SumAreaMaterialSID != value)) + { + this.OnSumAreaMaterialSIDChanging(value); + this.SendPropertyChanging(); + this._SumAreaMaterialSID = value; + this.SendPropertyChanged("SumAreaMaterialSID"); + this.OnSumAreaMaterialSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumAreaMaterialMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string SumAreaMaterialMID + { + get + { + return this._SumAreaMaterialMID; + } + set + { + if ((this._SumAreaMaterialMID != value)) + { + if (this._CL_T_SumAreaMaterialM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnSumAreaMaterialMIDChanging(value); + this.SendPropertyChanging(); + this._SumAreaMaterialMID = value; + this.SendPropertyChanged("SumAreaMaterialMID"); + this.OnSumAreaMaterialMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_SUM_REFERENCE_CL_T_SUM", Storage="_CL_T_SumAreaMaterialM", ThisKey="SumAreaMaterialMID", OtherKey="SumAreaMaterialMID", IsForeignKey=true)] + public CL_T_SumAreaMaterialM CL_T_SumAreaMaterialM + { + get + { + return this._CL_T_SumAreaMaterialM.Entity; + } + set + { + CL_T_SumAreaMaterialM previousValue = this._CL_T_SumAreaMaterialM.Entity; + if (((previousValue != value) + || (this._CL_T_SumAreaMaterialM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._CL_T_SumAreaMaterialM.Entity = null; + previousValue.CL_T_SumAreaMaterialS.Remove(this); + } + this._CL_T_SumAreaMaterialM.Entity = value; + if ((value != null)) + { + value.CL_T_SumAreaMaterialS.Add(this); + this._SumAreaMaterialMID = value.SumAreaMaterialMID; + } + else + { + this._SumAreaMaterialMID = default(string); + } + this.SendPropertyChanged("CL_T_SumAreaMaterialM"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_tongbu")] + public partial class Cl_tongbu : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Soft; + + private string _Del_name; + + private string _Del_pro; + + private string _Ins_name; + + private string _Ins_tname; + + private string _Ins_pro; + + private string _Ins_sjc; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSoftChanging(string value); + partial void OnSoftChanged(); + partial void OnDel_nameChanging(string value); + partial void OnDel_nameChanged(); + partial void OnDel_proChanging(string value); + partial void OnDel_proChanged(); + partial void OnIns_nameChanging(string value); + partial void OnIns_nameChanged(); + partial void OnIns_tnameChanging(string value); + partial void OnIns_tnameChanged(); + partial void OnIns_proChanging(string value); + partial void OnIns_proChanged(); + partial void OnIns_sjcChanging(string value); + partial void OnIns_sjcChanged(); + #endregion + + public Cl_tongbu() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="soft", Storage="_Soft", DbType="Char(3) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="del_name", Storage="_Del_name", DbType="NVarChar(50)")] + public string Del_name + { + get + { + return this._Del_name; + } + set + { + if ((this._Del_name != value)) + { + this.OnDel_nameChanging(value); + this.SendPropertyChanging(); + this._Del_name = value; + this.SendPropertyChanged("Del_name"); + this.OnDel_nameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="del_pro", Storage="_Del_pro", DbType="Char(1)")] + public string Del_pro + { + get + { + return this._Del_pro; + } + set + { + if ((this._Del_pro != value)) + { + this.OnDel_proChanging(value); + this.SendPropertyChanging(); + this._Del_pro = value; + this.SendPropertyChanged("Del_pro"); + this.OnDel_proChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_name", Storage="_Ins_name", DbType="NVarChar(50)")] + public string Ins_name + { + get + { + return this._Ins_name; + } + set + { + if ((this._Ins_name != value)) + { + this.OnIns_nameChanging(value); + this.SendPropertyChanging(); + this._Ins_name = value; + this.SendPropertyChanged("Ins_name"); + this.OnIns_nameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_tname", Storage="_Ins_tname", DbType="NVarChar(50)")] + public string Ins_tname + { + get + { + return this._Ins_tname; + } + set + { + if ((this._Ins_tname != value)) + { + this.OnIns_tnameChanging(value); + this.SendPropertyChanging(); + this._Ins_tname = value; + this.SendPropertyChanged("Ins_tname"); + this.OnIns_tnameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_pro", Storage="_Ins_pro", DbType="Char(1)")] + public string Ins_pro + { + get + { + return this._Ins_pro; + } + set + { + if ((this._Ins_pro != value)) + { + this.OnIns_proChanging(value); + this.SendPropertyChanging(); + this._Ins_pro = value; + this.SendPropertyChanged("Ins_pro"); + this.OnIns_proChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_sjc", Storage="_Ins_sjc", DbType="Char(1)")] + public string Ins_sjc + { + get + { + return this._Ins_sjc; + } + set + { + if ((this._Ins_sjc != value)) + { + this.OnIns_sjcChanging(value); + this.SendPropertyChanging(); + this._Ins_sjc = value; + this.SendPropertyChanged("Ins_sjc"); + this.OnIns_sjcChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_tongbu_p")] + public partial class Cl_tongbu_p : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Tid; + + private string _Projectid; + + private string _Soft; + + private System.Data.Linq.Binary _Maxsjc; + + private string _Del_name; + + private string _Del_pro; + + private string _Ins_name; + + private string _Ins_tname; + + private string _Ins_pro; + + private string _Ins_sjc; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnTidChanging(string value); + partial void OnTidChanged(); + partial void OnProjectidChanging(string value); + partial void OnProjectidChanged(); + partial void OnSoftChanging(string value); + partial void OnSoftChanged(); + partial void OnMaxsjcChanging(System.Data.Linq.Binary value); + partial void OnMaxsjcChanged(); + partial void OnDel_nameChanging(string value); + partial void OnDel_nameChanged(); + partial void OnDel_proChanging(string value); + partial void OnDel_proChanged(); + partial void OnIns_nameChanging(string value); + partial void OnIns_nameChanged(); + partial void OnIns_tnameChanging(string value); + partial void OnIns_tnameChanged(); + partial void OnIns_proChanging(string value); + partial void OnIns_proChanged(); + partial void OnIns_sjcChanging(string value); + partial void OnIns_sjcChanged(); + #endregion + + public Cl_tongbu_p() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="tid", Storage="_Tid", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Tid + { + get + { + return this._Tid; + } + set + { + if ((this._Tid != value)) + { + this.OnTidChanging(value); + this.SendPropertyChanging(); + this._Tid = value; + this.SendPropertyChanged("Tid"); + this.OnTidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="projectid", Storage="_Projectid", DbType="NVarChar(50)")] + public string Projectid + { + get + { + return this._Projectid; + } + set + { + if ((this._Projectid != value)) + { + this.OnProjectidChanging(value); + this.SendPropertyChanging(); + this._Projectid = value; + this.SendPropertyChanged("Projectid"); + this.OnProjectidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="soft", Storage="_Soft", DbType="Char(3)")] + public string Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="maxsjc", Storage="_Maxsjc", DbType="VarBinary(8)", CanBeNull=true)] + public System.Data.Linq.Binary Maxsjc + { + get + { + return this._Maxsjc; + } + set + { + if ((this._Maxsjc != value)) + { + this.OnMaxsjcChanging(value); + this.SendPropertyChanging(); + this._Maxsjc = value; + this.SendPropertyChanged("Maxsjc"); + this.OnMaxsjcChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="del_name", Storage="_Del_name", DbType="NVarChar(50)")] + public string Del_name + { + get + { + return this._Del_name; + } + set + { + if ((this._Del_name != value)) + { + this.OnDel_nameChanging(value); + this.SendPropertyChanging(); + this._Del_name = value; + this.SendPropertyChanged("Del_name"); + this.OnDel_nameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="del_pro", Storage="_Del_pro", DbType="Char(1)")] + public string Del_pro + { + get + { + return this._Del_pro; + } + set + { + if ((this._Del_pro != value)) + { + this.OnDel_proChanging(value); + this.SendPropertyChanging(); + this._Del_pro = value; + this.SendPropertyChanged("Del_pro"); + this.OnDel_proChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_name", Storage="_Ins_name", DbType="NVarChar(50)")] + public string Ins_name + { + get + { + return this._Ins_name; + } + set + { + if ((this._Ins_name != value)) + { + this.OnIns_nameChanging(value); + this.SendPropertyChanging(); + this._Ins_name = value; + this.SendPropertyChanged("Ins_name"); + this.OnIns_nameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_tname", Storage="_Ins_tname", DbType="NVarChar(50)")] + public string Ins_tname + { + get + { + return this._Ins_tname; + } + set + { + if ((this._Ins_tname != value)) + { + this.OnIns_tnameChanging(value); + this.SendPropertyChanging(); + this._Ins_tname = value; + this.SendPropertyChanged("Ins_tname"); + this.OnIns_tnameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_pro", Storage="_Ins_pro", DbType="Char(1)")] + public string Ins_pro + { + get + { + return this._Ins_pro; + } + set + { + if ((this._Ins_pro != value)) + { + this.OnIns_proChanging(value); + this.SendPropertyChanging(); + this._Ins_pro = value; + this.SendPropertyChanged("Ins_pro"); + this.OnIns_proChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="ins_sjc", Storage="_Ins_sjc", DbType="Char(1)")] + public string Ins_sjc + { + get + { + return this._Ins_sjc; + } + set + { + if ((this._Ins_sjc != value)) + { + this.OnIns_sjcChanging(value); + this.SendPropertyChanging(); + this._Ins_sjc = value; + this.SendPropertyChanged("Ins_sjc"); + this.OnIns_sjcChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_user_pass")] + public partial class Cl_user_pass : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _UserId; + + private string _Password; + + private System.Nullable _Isok; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnPasswordChanging(string value); + partial void OnPasswordChanged(); + partial void OnIsokChanging(System.Nullable value); + partial void OnIsokChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_user_pass() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Password", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Password + { + get + { + return this._Password; + } + set + { + if ((this._Password != value)) + { + this.OnPasswordChanging(value); + this.SendPropertyChanging(); + this._Password = value; + this.SendPropertyChanged("Password"); + this.OnPasswordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="isok", Storage="_Isok", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Isok + { + get + { + return this._Isok; + } + set + { + if ((this._Isok != value)) + { + this.OnIsokChanging(value); + this.SendPropertyChanging(); + this._Isok = value; + this.SendPropertyChanged("Isok"); + this.OnIsokChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_W_AreaMaterialS")] + public partial class CL_W_AreaMaterialS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _DesignUnit; + + private string _MaterialCode; + + private string _Spec; + + private string _TechnicalConditions; + + private string _Unit; + + private string _SystemCode; + + private string _ClassificationCode; + + private string _MaterialName; + + private string _Specificationtype; + + private string _StandardSpecification; + + private string _MaterialQuality; + + private string _SpecialNote; + + private string _FirstpartyCode; + + private System.Nullable _Quantity; + + private System.Nullable _TheoryWeight; + + private string _SCName; + + private string _IsCheck; + + private string _NDTName; + + private string _NDTRName; + + private string _RecordTableOptions; + + private string _ListType; + + private string _TypeName; + + private string _SumTypeName; + + private System.Nullable _Soft; + + private string _MapNumber; + + private string _Properties; + + private string _AreaCode; + + private string _SpecialityCode; + + private string _InstallationCode; + + private string _AreaId; + + private string _Specialityid; + + private string _InstallationId; + + private string _ProjectId; + + private string _TAreaMaterialSID; + + private string _TAreaMaterialMID; + + private string _MaterialID; + + private string _DifferentiationCode; + + private System.Nullable _Xz; + + private System.Nullable _Pquantity; + + private string _AreaMaterialCode; + + private string _DocumentType; + + private string _DocumentNumber; + + private string _KeyWord; + + private System.Nullable _DocumentDate; + + private System.DateTime _Usertime; + + private string _UserId; + + private string _IsOk; + + private System.Nullable _Edition; + + private string _Isold; + + private System.Nullable _Pkey; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnDesignUnitChanging(string value); + partial void OnDesignUnitChanged(); + partial void OnMaterialCodeChanging(string value); + partial void OnMaterialCodeChanged(); + partial void OnSpecChanging(string value); + partial void OnSpecChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnUnitChanging(string value); + partial void OnUnitChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnClassificationCodeChanging(string value); + partial void OnClassificationCodeChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecificationtypeChanging(string value); + partial void OnSpecificationtypeChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnSpecialNoteChanging(string value); + partial void OnSpecialNoteChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnTheoryWeightChanging(System.Nullable value); + partial void OnTheoryWeightChanged(); + partial void OnSCNameChanging(string value); + partial void OnSCNameChanged(); + partial void OnIsCheckChanging(string value); + partial void OnIsCheckChanged(); + partial void OnNDTNameChanging(string value); + partial void OnNDTNameChanged(); + partial void OnNDTRNameChanging(string value); + partial void OnNDTRNameChanged(); + partial void OnRecordTableOptionsChanging(string value); + partial void OnRecordTableOptionsChanged(); + partial void OnListTypeChanging(string value); + partial void OnListTypeChanged(); + partial void OnTypeNameChanging(string value); + partial void OnTypeNameChanged(); + partial void OnSumTypeNameChanging(string value); + partial void OnSumTypeNameChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnMapNumberChanging(string value); + partial void OnMapNumberChanged(); + partial void OnPropertiesChanging(string value); + partial void OnPropertiesChanged(); + partial void OnAreaCodeChanging(string value); + partial void OnAreaCodeChanged(); + partial void OnSpecialityCodeChanging(string value); + partial void OnSpecialityCodeChanged(); + partial void OnInstallationCodeChanging(string value); + partial void OnInstallationCodeChanged(); + partial void OnAreaIdChanging(string value); + partial void OnAreaIdChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnTAreaMaterialSIDChanging(string value); + partial void OnTAreaMaterialSIDChanged(); + partial void OnTAreaMaterialMIDChanging(string value); + partial void OnTAreaMaterialMIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnDifferentiationCodeChanging(string value); + partial void OnDifferentiationCodeChanged(); + partial void OnXzChanging(System.Nullable value); + partial void OnXzChanged(); + partial void OnPquantityChanging(System.Nullable value); + partial void OnPquantityChanged(); + partial void OnAreaMaterialCodeChanging(string value); + partial void OnAreaMaterialCodeChanged(); + partial void OnDocumentTypeChanging(string value); + partial void OnDocumentTypeChanged(); + partial void OnDocumentNumberChanging(string value); + partial void OnDocumentNumberChanged(); + partial void OnKeyWordChanging(string value); + partial void OnKeyWordChanged(); + partial void OnDocumentDateChanging(System.Nullable value); + partial void OnDocumentDateChanged(); + partial void OnUsertimeChanging(System.DateTime value); + partial void OnUsertimeChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnEditionChanging(System.Nullable value); + partial void OnEditionChanged(); + partial void OnIsoldChanging(string value); + partial void OnIsoldChanged(); + partial void OnPkeyChanging(System.Nullable value); + partial void OnPkeyChanged(); + #endregion + + public CL_W_AreaMaterialS() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignUnit", DbType="NVarChar(50)")] + public string DesignUnit + { + get + { + return this._DesignUnit; + } + set + { + if ((this._DesignUnit != value)) + { + this.OnDesignUnitChanging(value); + this.SendPropertyChanging(); + this._DesignUnit = value; + this.SendPropertyChanged("DesignUnit"); + this.OnDesignUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")] + public string MaterialCode + { + get + { + return this._MaterialCode; + } + set + { + if ((this._MaterialCode != value)) + { + this.OnMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._MaterialCode = value; + this.SendPropertyChanged("MaterialCode"); + this.OnMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spec", DbType="NVarChar(50)")] + public string Spec + { + get + { + return this._Spec; + } + set + { + if ((this._Spec != value)) + { + this.OnSpecChanging(value); + this.SendPropertyChanging(); + this._Spec = value; + this.SendPropertyChanged("Spec"); + this.OnSpecChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)")] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(50)")] + public string Unit + { + get + { + return this._Unit; + } + set + { + if ((this._Unit != value)) + { + this.OnUnitChanging(value); + this.SendPropertyChanging(); + this._Unit = value; + this.SendPropertyChanged("Unit"); + this.OnUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(250)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassificationCode", DbType="NVarChar(50)")] + public string ClassificationCode + { + get + { + return this._ClassificationCode; + } + set + { + if ((this._ClassificationCode != value)) + { + this.OnClassificationCodeChanging(value); + this.SendPropertyChanging(); + this._ClassificationCode = value; + this.SendPropertyChanged("ClassificationCode"); + this.OnClassificationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(250)")] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specificationtype", DbType="NVarChar(250)")] + public string Specificationtype + { + get + { + return this._Specificationtype; + } + set + { + if ((this._Specificationtype != value)) + { + this.OnSpecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Specificationtype = value; + this.SendPropertyChanged("Specificationtype"); + this.OnSpecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(250)")] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(250)")] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialNote", DbType="NVarChar(250)")] + public string SpecialNote + { + get + { + return this._SpecialNote; + } + set + { + if ((this._SpecialNote != value)) + { + this.OnSpecialNoteChanging(value); + this.SendPropertyChanging(); + this._SpecialNote = value; + this.SendPropertyChanged("SpecialNote"); + this.OnSpecialNoteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)")] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="quantity", Storage="_Quantity", DbType="Decimal(15,2)")] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeight", DbType="Decimal(10,2)")] + public System.Nullable TheoryWeight + { + get + { + return this._TheoryWeight; + } + set + { + if ((this._TheoryWeight != value)) + { + this.OnTheoryWeightChanging(value); + this.SendPropertyChanging(); + this._TheoryWeight = value; + this.SendPropertyChanged("TheoryWeight"); + this.OnTheoryWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCName", DbType="NVarChar(20)")] + public string SCName + { + get + { + return this._SCName; + } + set + { + if ((this._SCName != value)) + { + this.OnSCNameChanging(value); + this.SendPropertyChanging(); + this._SCName = value; + this.SendPropertyChanged("SCName"); + this.OnSCNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheck", DbType="Char(1)")] + public string IsCheck + { + get + { + return this._IsCheck; + } + set + { + if ((this._IsCheck != value)) + { + this.OnIsCheckChanging(value); + this.SendPropertyChanging(); + this._IsCheck = value; + this.SendPropertyChanged("IsCheck"); + this.OnIsCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTName", DbType="NVarChar(20)")] + public string NDTName + { + get + { + return this._NDTName; + } + set + { + if ((this._NDTName != value)) + { + this.OnNDTNameChanging(value); + this.SendPropertyChanging(); + this._NDTName = value; + this.SendPropertyChanged("NDTName"); + this.OnNDTNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTRName", DbType="NVarChar(20)")] + public string NDTRName + { + get + { + return this._NDTRName; + } + set + { + if ((this._NDTRName != value)) + { + this.OnNDTRNameChanging(value); + this.SendPropertyChanging(); + this._NDTRName = value; + this.SendPropertyChanged("NDTRName"); + this.OnNDTRNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableOptions", DbType="NVarChar(100)")] + public string RecordTableOptions + { + get + { + return this._RecordTableOptions; + } + set + { + if ((this._RecordTableOptions != value)) + { + this.OnRecordTableOptionsChanging(value); + this.SendPropertyChanging(); + this._RecordTableOptions = value; + this.SendPropertyChanged("RecordTableOptions"); + this.OnRecordTableOptionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ListType", DbType="NVarChar(20)")] + public string ListType + { + get + { + return this._ListType; + } + set + { + if ((this._ListType != value)) + { + this.OnListTypeChanging(value); + this.SendPropertyChanging(); + this._ListType = value; + this.SendPropertyChanged("ListType"); + this.OnListTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(20)")] + public string TypeName + { + get + { + return this._TypeName; + } + set + { + if ((this._TypeName != value)) + { + this.OnTypeNameChanging(value); + this.SendPropertyChanging(); + this._TypeName = value; + this.SendPropertyChanged("TypeName"); + this.OnTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypeName", DbType="NVarChar(20)")] + public string SumTypeName + { + get + { + return this._SumTypeName; + } + set + { + if ((this._SumTypeName != value)) + { + this.OnSumTypeNameChanging(value); + this.SendPropertyChanging(); + this._SumTypeName = value; + this.SendPropertyChanged("SumTypeName"); + this.OnSumTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int")] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MapNumber", DbType="NVarChar(50)")] + public string MapNumber + { + get + { + return this._MapNumber; + } + set + { + if ((this._MapNumber != value)) + { + this.OnMapNumberChanging(value); + this.SendPropertyChanging(); + this._MapNumber = value; + this.SendPropertyChanged("MapNumber"); + this.OnMapNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Properties", DbType="NVarChar(50)")] + public string Properties + { + get + { + return this._Properties; + } + set + { + if ((this._Properties != value)) + { + this.OnPropertiesChanging(value); + this.SendPropertyChanging(); + this._Properties = value; + this.SendPropertyChanged("Properties"); + this.OnPropertiesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaCode", DbType="NVarChar(20)")] + public string AreaCode + { + get + { + return this._AreaCode; + } + set + { + if ((this._AreaCode != value)) + { + this.OnAreaCodeChanging(value); + this.SendPropertyChanging(); + this._AreaCode = value; + this.SendPropertyChanged("AreaCode"); + this.OnAreaCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityCode", DbType="NVarChar(20)")] + public string SpecialityCode + { + get + { + return this._SpecialityCode; + } + set + { + if ((this._SpecialityCode != value)) + { + this.OnSpecialityCodeChanging(value); + this.SendPropertyChanging(); + this._SpecialityCode = value; + this.SendPropertyChanged("SpecialityCode"); + this.OnSpecialityCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationCode", DbType="NVarChar(50)")] + public string InstallationCode + { + get + { + return this._InstallationCode; + } + set + { + if ((this._InstallationCode != value)) + { + this.OnInstallationCodeChanging(value); + this.SendPropertyChanging(); + this._InstallationCode = value; + this.SendPropertyChanged("InstallationCode"); + this.OnInstallationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaId", DbType="Char(36)")] + public string AreaId + { + get + { + return this._AreaId; + } + set + { + if ((this._AreaId != value)) + { + this.OnAreaIdChanging(value); + this.SendPropertyChanging(); + this._AreaId = value; + this.SendPropertyChanged("AreaId"); + this.OnAreaIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)")] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)")] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAreaMaterialSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string TAreaMaterialSID + { + get + { + return this._TAreaMaterialSID; + } + set + { + if ((this._TAreaMaterialSID != value)) + { + this.OnTAreaMaterialSIDChanging(value); + this.SendPropertyChanging(); + this._TAreaMaterialSID = value; + this.SendPropertyChanged("TAreaMaterialSID"); + this.OnTAreaMaterialSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAreaMaterialMID", DbType="Char(36)")] + public string TAreaMaterialMID + { + get + { + return this._TAreaMaterialMID; + } + set + { + if ((this._TAreaMaterialMID != value)) + { + this.OnTAreaMaterialMIDChanging(value); + this.SendPropertyChanging(); + this._TAreaMaterialMID = value; + this.SendPropertyChanged("TAreaMaterialMID"); + this.OnTAreaMaterialMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)")] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DifferentiationCode", DbType="NVarChar(50)")] + public string DifferentiationCode + { + get + { + return this._DifferentiationCode; + } + set + { + if ((this._DifferentiationCode != value)) + { + this.OnDifferentiationCodeChanging(value); + this.SendPropertyChanging(); + this._DifferentiationCode = value; + this.SendPropertyChanged("DifferentiationCode"); + this.OnDifferentiationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="xz", Storage="_Xz", DbType="Int")] + public System.Nullable Xz + { + get + { + return this._Xz; + } + set + { + if ((this._Xz != value)) + { + this.OnXzChanging(value); + this.SendPropertyChanging(); + this._Xz = value; + this.SendPropertyChanged("Xz"); + this.OnXzChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pquantity", DbType="Decimal(15,2)")] + public System.Nullable Pquantity + { + get + { + return this._Pquantity; + } + set + { + if ((this._Pquantity != value)) + { + this.OnPquantityChanging(value); + this.SendPropertyChanging(); + this._Pquantity = value; + this.SendPropertyChanged("Pquantity"); + this.OnPquantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaMaterialCode", DbType="NVarChar(50)")] + public string AreaMaterialCode + { + get + { + return this._AreaMaterialCode; + } + set + { + if ((this._AreaMaterialCode != value)) + { + this.OnAreaMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._AreaMaterialCode = value; + this.SendPropertyChanged("AreaMaterialCode"); + this.OnAreaMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentType", DbType="NVarChar(50)")] + public string DocumentType + { + get + { + return this._DocumentType; + } + set + { + if ((this._DocumentType != value)) + { + this.OnDocumentTypeChanging(value); + this.SendPropertyChanging(); + this._DocumentType = value; + this.SendPropertyChanged("DocumentType"); + this.OnDocumentTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentNumber", DbType="NVarChar(50)")] + public string DocumentNumber + { + get + { + return this._DocumentNumber; + } + set + { + if ((this._DocumentNumber != value)) + { + this.OnDocumentNumberChanging(value); + this.SendPropertyChanging(); + this._DocumentNumber = value; + this.SendPropertyChanged("DocumentNumber"); + this.OnDocumentNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_KeyWord", DbType="NVarChar(200)")] + public string KeyWord + { + get + { + return this._KeyWord; + } + set + { + if ((this._KeyWord != value)) + { + this.OnKeyWordChanging(value); + this.SendPropertyChanging(); + this._KeyWord = value; + this.SendPropertyChanged("KeyWord"); + this.OnKeyWordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DocumentDate", DbType="DateTime")] + public System.Nullable DocumentDate + { + get + { + return this._DocumentDate; + } + set + { + if ((this._DocumentDate != value)) + { + this.OnDocumentDateChanging(value); + this.SendPropertyChanging(); + this._DocumentDate = value; + this.SendPropertyChanged("DocumentDate"); + this.OnDocumentDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Usertime", DbType="DateTime NOT NULL")] + public System.DateTime Usertime + { + get + { + return this._Usertime; + } + set + { + if ((this._Usertime != value)) + { + this.OnUsertimeChanging(value); + this.SendPropertyChanging(); + this._Usertime = value; + this.SendPropertyChanged("Usertime"); + this.OnUsertimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1) NOT NULL", CanBeNull=false)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Edition", DbType="Int")] + public System.Nullable Edition + { + get + { + return this._Edition; + } + set + { + if ((this._Edition != value)) + { + this.OnEditionChanging(value); + this.SendPropertyChanging(); + this._Edition = value; + this.SendPropertyChanged("Edition"); + this.OnEditionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="isold", Storage="_Isold", DbType="Char(1)")] + public string Isold + { + get + { + return this._Isold; + } + set + { + if ((this._Isold != value)) + { + this.OnIsoldChanging(value); + this.SendPropertyChanging(); + this._Isold = value; + this.SendPropertyChanged("Isold"); + this.OnIsoldChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pkey", DbType="Int")] + public System.Nullable Pkey + { + get + { + return this._Pkey; + } + set + { + if ((this._Pkey != value)) + { + this.OnPkeyChanging(value); + this.SendPropertyChanging(); + this._Pkey = value; + this.SendPropertyChanged("Pkey"); + this.OnPkeyChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.cl_w_comp")] + public partial class Cl_w_comp : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _CompID; + + private string _ProjectId; + + private string _InstallationId; + + private string _TAreaMaterialMID; + + private string _TAreaMaterialSID; + + private string _MaterialID; + + private System.Nullable _Aquantity; + + private string _PlanSheetMID; + + private string _PlanSheetSID; + + private System.Nullable _Pquantity; + + private string _StorageSheetMID; + + private string _StorageSheetSID; + + private System.Nullable _SQuantity; + + private string _StorageHJSID; + + private string _StorageHJMID; + + private System.Nullable _HQuantity; + + private string _OutSheetMID; + + private string _OutSheetSID; + + private System.Nullable _OQuantity; + + private string _ReturnSheetMid; + + private string _ReturnSheetSID; + + private System.Nullable _RQuantity; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnCompIDChanging(string value); + partial void OnCompIDChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnTAreaMaterialMIDChanging(string value); + partial void OnTAreaMaterialMIDChanged(); + partial void OnTAreaMaterialSIDChanging(string value); + partial void OnTAreaMaterialSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnAquantityChanging(System.Nullable value); + partial void OnAquantityChanged(); + partial void OnPlanSheetMIDChanging(string value); + partial void OnPlanSheetMIDChanged(); + partial void OnPlanSheetSIDChanging(string value); + partial void OnPlanSheetSIDChanged(); + partial void OnPquantityChanging(System.Nullable value); + partial void OnPquantityChanged(); + partial void OnStorageSheetMIDChanging(string value); + partial void OnStorageSheetMIDChanged(); + partial void OnStorageSheetSIDChanging(string value); + partial void OnStorageSheetSIDChanged(); + partial void OnSQuantityChanging(System.Nullable value); + partial void OnSQuantityChanged(); + partial void OnStorageHJSIDChanging(string value); + partial void OnStorageHJSIDChanged(); + partial void OnStorageHJMIDChanging(string value); + partial void OnStorageHJMIDChanged(); + partial void OnHQuantityChanging(System.Nullable value); + partial void OnHQuantityChanged(); + partial void OnOutSheetMIDChanging(string value); + partial void OnOutSheetMIDChanged(); + partial void OnOutSheetSIDChanging(string value); + partial void OnOutSheetSIDChanged(); + partial void OnOQuantityChanging(System.Nullable value); + partial void OnOQuantityChanged(); + partial void OnReturnSheetMidChanging(string value); + partial void OnReturnSheetMidChanged(); + partial void OnReturnSheetSIDChanging(string value); + partial void OnReturnSheetSIDChanged(); + partial void OnRQuantityChanging(System.Nullable value); + partial void OnRQuantityChanged(); + #endregion + + public Cl_w_comp() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="compID", Storage="_CompID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string CompID + { + get + { + return this._CompID; + } + set + { + if ((this._CompID != value)) + { + this.OnCompIDChanging(value); + this.SendPropertyChanging(); + this._CompID = value; + this.SendPropertyChanged("CompID"); + this.OnCompIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAreaMaterialMID", DbType="Char(36)")] + public string TAreaMaterialMID + { + get + { + return this._TAreaMaterialMID; + } + set + { + if ((this._TAreaMaterialMID != value)) + { + this.OnTAreaMaterialMIDChanging(value); + this.SendPropertyChanging(); + this._TAreaMaterialMID = value; + this.SendPropertyChanged("TAreaMaterialMID"); + this.OnTAreaMaterialMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAreaMaterialSID", DbType="Char(36)")] + public string TAreaMaterialSID + { + get + { + return this._TAreaMaterialSID; + } + set + { + if ((this._TAreaMaterialSID != value)) + { + this.OnTAreaMaterialSIDChanging(value); + this.SendPropertyChanging(); + this._TAreaMaterialSID = value; + this.SendPropertyChanged("TAreaMaterialSID"); + this.OnTAreaMaterialSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)")] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Aquantity", DbType="Decimal(15,2)")] + public System.Nullable Aquantity + { + get + { + return this._Aquantity; + } + set + { + if ((this._Aquantity != value)) + { + this.OnAquantityChanging(value); + this.SendPropertyChanging(); + this._Aquantity = value; + this.SendPropertyChanged("Aquantity"); + this.OnAquantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetMID", DbType="Char(36)")] + public string PlanSheetMID + { + get + { + return this._PlanSheetMID; + } + set + { + if ((this._PlanSheetMID != value)) + { + this.OnPlanSheetMIDChanging(value); + this.SendPropertyChanging(); + this._PlanSheetMID = value; + this.SendPropertyChanged("PlanSheetMID"); + this.OnPlanSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetSID", DbType="Char(36)")] + public string PlanSheetSID + { + get + { + return this._PlanSheetSID; + } + set + { + if ((this._PlanSheetSID != value)) + { + this.OnPlanSheetSIDChanging(value); + this.SendPropertyChanging(); + this._PlanSheetSID = value; + this.SendPropertyChanged("PlanSheetSID"); + this.OnPlanSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pquantity", DbType="Decimal(15,2)")] + public System.Nullable Pquantity + { + get + { + return this._Pquantity; + } + set + { + if ((this._Pquantity != value)) + { + this.OnPquantityChanging(value); + this.SendPropertyChanging(); + this._Pquantity = value; + this.SendPropertyChanged("Pquantity"); + this.OnPquantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetMID", DbType="Char(36)")] + public string StorageSheetMID + { + get + { + return this._StorageSheetMID; + } + set + { + if ((this._StorageSheetMID != value)) + { + this.OnStorageSheetMIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetMID = value; + this.SendPropertyChanged("StorageSheetMID"); + this.OnStorageSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetSID", DbType="Char(36)")] + public string StorageSheetSID + { + get + { + return this._StorageSheetSID; + } + set + { + if ((this._StorageSheetSID != value)) + { + this.OnStorageSheetSIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetSID = value; + this.SendPropertyChanged("StorageSheetSID"); + this.OnStorageSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SQuantity", DbType="Decimal(10,2)")] + public System.Nullable SQuantity + { + get + { + return this._SQuantity; + } + set + { + if ((this._SQuantity != value)) + { + this.OnSQuantityChanging(value); + this.SendPropertyChanging(); + this._SQuantity = value; + this.SendPropertyChanged("SQuantity"); + this.OnSQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageHJSID", DbType="Char(36)")] + public string StorageHJSID + { + get + { + return this._StorageHJSID; + } + set + { + if ((this._StorageHJSID != value)) + { + this.OnStorageHJSIDChanging(value); + this.SendPropertyChanging(); + this._StorageHJSID = value; + this.SendPropertyChanged("StorageHJSID"); + this.OnStorageHJSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageHJMID", DbType="Char(36)")] + public string StorageHJMID + { + get + { + return this._StorageHJMID; + } + set + { + if ((this._StorageHJMID != value)) + { + this.OnStorageHJMIDChanging(value); + this.SendPropertyChanging(); + this._StorageHJMID = value; + this.SendPropertyChanged("StorageHJMID"); + this.OnStorageHJMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HQuantity", DbType="Decimal(10,2)")] + public System.Nullable HQuantity + { + get + { + return this._HQuantity; + } + set + { + if ((this._HQuantity != value)) + { + this.OnHQuantityChanging(value); + this.SendPropertyChanging(); + this._HQuantity = value; + this.SendPropertyChanged("HQuantity"); + this.OnHQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetMID", DbType="Char(36)")] + public string OutSheetMID + { + get + { + return this._OutSheetMID; + } + set + { + if ((this._OutSheetMID != value)) + { + this.OnOutSheetMIDChanging(value); + this.SendPropertyChanging(); + this._OutSheetMID = value; + this.SendPropertyChanged("OutSheetMID"); + this.OnOutSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetSID", DbType="Char(36)")] + public string OutSheetSID + { + get + { + return this._OutSheetSID; + } + set + { + if ((this._OutSheetSID != value)) + { + this.OnOutSheetSIDChanging(value); + this.SendPropertyChanging(); + this._OutSheetSID = value; + this.SendPropertyChanged("OutSheetSID"); + this.OnOutSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OQuantity", DbType="Decimal(10,2)")] + public System.Nullable OQuantity + { + get + { + return this._OQuantity; + } + set + { + if ((this._OQuantity != value)) + { + this.OnOQuantityChanging(value); + this.SendPropertyChanging(); + this._OQuantity = value; + this.SendPropertyChanged("OQuantity"); + this.OnOQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnSheetMid", DbType="Char(36)")] + public string ReturnSheetMid + { + get + { + return this._ReturnSheetMid; + } + set + { + if ((this._ReturnSheetMid != value)) + { + this.OnReturnSheetMidChanging(value); + this.SendPropertyChanging(); + this._ReturnSheetMid = value; + this.SendPropertyChanged("ReturnSheetMid"); + this.OnReturnSheetMidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnSheetSID", DbType="Char(36)")] + public string ReturnSheetSID + { + get + { + return this._ReturnSheetSID; + } + set + { + if ((this._ReturnSheetSID != value)) + { + this.OnReturnSheetSIDChanging(value); + this.SendPropertyChanging(); + this._ReturnSheetSID = value; + this.SendPropertyChanged("ReturnSheetSID"); + this.OnReturnSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RQuantity", DbType="Decimal(10,2)")] + public System.Nullable RQuantity + { + get + { + return this._RQuantity; + } + set + { + if ((this._RQuantity != value)) + { + this.OnRQuantityChanging(value); + this.SendPropertyChanging(); + this._RQuantity = value; + this.SendPropertyChanged("RQuantity"); + this.OnRQuantityChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialOutM")] + public partial class Cl_W_MaterialOutM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _PlanSheetMID; + + private string _UnitId; + + private string _OutSheetMID; + + private string _OutSheetCode; + + private string _RecordMan; + + private System.Nullable _UserTime; + + private string _ApprovalMan; + + private System.Nullable _ApprovalTime; + + private string _OkMan; + + private System.Nullable _OkTime; + + private string _IsOk; + + private string _LC_ApprovalMan; + + private string _LC_OkMan; + + private string _StorageSheetMID; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private string _UAid; + + private string _PC_GUID; + + private string _InstallationId; + + private string _Remarks; + + private string _YYPID; + + private EntityRef _Base_Project; + + private EntityRef _Base_Unit; + + private EntitySet _Cl_W_MaterialOutS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPlanSheetMIDChanging(string value); + partial void OnPlanSheetMIDChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnOutSheetMIDChanging(string value); + partial void OnOutSheetMIDChanged(); + partial void OnOutSheetCodeChanging(string value); + partial void OnOutSheetCodeChanged(); + partial void OnRecordManChanging(string value); + partial void OnRecordManChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnApprovalManChanging(string value); + partial void OnApprovalManChanged(); + partial void OnApprovalTimeChanging(System.Nullable value); + partial void OnApprovalTimeChanged(); + partial void OnOkManChanging(string value); + partial void OnOkManChanged(); + partial void OnOkTimeChanging(System.Nullable value); + partial void OnOkTimeChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnLC_ApprovalManChanging(string value); + partial void OnLC_ApprovalManChanged(); + partial void OnLC_OkManChanging(string value); + partial void OnLC_OkManChanged(); + partial void OnStorageSheetMIDChanging(string value); + partial void OnStorageSheetMIDChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnUAidChanging(string value); + partial void OnUAidChanged(); + partial void OnPC_GUIDChanging(string value); + partial void OnPC_GUIDChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnRemarksChanging(string value); + partial void OnRemarksChanged(); + partial void OnYYPIDChanging(string value); + partial void OnYYPIDChanged(); + #endregion + + public Cl_W_MaterialOutM() + { + this._Base_Project = default(EntityRef); + this._Base_Unit = default(EntityRef); + this._Cl_W_MaterialOutS = new EntitySet(new Action(this.attach_Cl_W_MaterialOutS), new Action(this.detach_Cl_W_MaterialOutS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string PlanSheetMID + { + get + { + return this._PlanSheetMID; + } + set + { + if ((this._PlanSheetMID != value)) + { + this.OnPlanSheetMIDChanging(value); + this.SendPropertyChanging(); + this._PlanSheetMID = value; + this.SendPropertyChanged("PlanSheetMID"); + this.OnPlanSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + if (this._Base_Unit.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string OutSheetMID + { + get + { + return this._OutSheetMID; + } + set + { + if ((this._OutSheetMID != value)) + { + this.OnOutSheetMIDChanging(value); + this.SendPropertyChanging(); + this._OutSheetMID = value; + this.SendPropertyChanged("OutSheetMID"); + this.OnOutSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string OutSheetCode + { + get + { + return this._OutSheetCode; + } + set + { + if ((this._OutSheetCode != value)) + { + this.OnOutSheetCodeChanging(value); + this.SendPropertyChanging(); + this._OutSheetCode = value; + this.SendPropertyChanged("OutSheetCode"); + this.OnOutSheetCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string RecordMan + { + get + { + return this._RecordMan; + } + set + { + if ((this._RecordMan != value)) + { + this.OnRecordManChanging(value); + this.SendPropertyChanging(); + this._RecordMan = value; + this.SendPropertyChanged("RecordMan"); + this.OnRecordManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ApprovalMan + { + get + { + return this._ApprovalMan; + } + set + { + if ((this._ApprovalMan != value)) + { + this.OnApprovalManChanging(value); + this.SendPropertyChanging(); + this._ApprovalMan = value; + this.SendPropertyChanged("ApprovalMan"); + this.OnApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ApprovalTime + { + get + { + return this._ApprovalTime; + } + set + { + if ((this._ApprovalTime != value)) + { + this.OnApprovalTimeChanging(value); + this.SendPropertyChanging(); + this._ApprovalTime = value; + this.SendPropertyChanged("ApprovalTime"); + this.OnApprovalTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OkMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string OkMan + { + get + { + return this._OkMan; + } + set + { + if ((this._OkMan != value)) + { + this.OnOkManChanging(value); + this.SendPropertyChanging(); + this._OkMan = value; + this.SendPropertyChanged("OkMan"); + this.OnOkManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OkTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OkTime + { + get + { + return this._OkTime; + } + set + { + if ((this._OkTime != value)) + { + this.OnOkTimeChanging(value); + this.SendPropertyChanging(); + this._OkTime = value; + this.SendPropertyChanged("OkTime"); + this.OnOkTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LC_ApprovalMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string LC_ApprovalMan + { + get + { + return this._LC_ApprovalMan; + } + set + { + if ((this._LC_ApprovalMan != value)) + { + this.OnLC_ApprovalManChanging(value); + this.SendPropertyChanging(); + this._LC_ApprovalMan = value; + this.SendPropertyChanged("LC_ApprovalMan"); + this.OnLC_ApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LC_OkMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string LC_OkMan + { + get + { + return this._LC_OkMan; + } + set + { + if ((this._LC_OkMan != value)) + { + this.OnLC_OkManChanging(value); + this.SendPropertyChanging(); + this._LC_OkMan = value; + this.SendPropertyChanged("LC_OkMan"); + this.OnLC_OkManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string StorageSheetMID + { + get + { + return this._StorageSheetMID; + } + set + { + if ((this._StorageSheetMID != value)) + { + this.OnStorageSheetMIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetMID = value; + this.SendPropertyChanged("StorageSheetMID"); + this.OnStorageSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UAid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string UAid + { + get + { + return this._UAid; + } + set + { + if ((this._UAid != value)) + { + this.OnUAidChanging(value); + this.SendPropertyChanging(); + this._UAid = value; + this.SendPropertyChanged("UAid"); + this.OnUAidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PC_GUID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string PC_GUID + { + get + { + return this._PC_GUID; + } + set + { + if ((this._PC_GUID != value)) + { + this.OnPC_GUIDChanging(value); + this.SendPropertyChanging(); + this._PC_GUID = value; + this.SendPropertyChanged("PC_GUID"); + this.OnPC_GUIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remarks", DbType="NVarChar(150)", UpdateCheck=UpdateCheck.Never)] + public string Remarks + { + get + { + return this._Remarks; + } + set + { + if ((this._Remarks != value)) + { + this.OnRemarksChanging(value); + this.SendPropertyChanging(); + this._Remarks = value; + this.SendPropertyChanged("Remarks"); + this.OnRemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YYPID", DbType="NVarChar(150)", UpdateCheck=UpdateCheck.Never)] + public string YYPID + { + get + { + return this._YYPID; + } + set + { + if ((this._YYPID != value)) + { + this.OnYYPIDChanging(value); + this.SendPropertyChanging(); + this._YYPID = value; + this.SendPropertyChanged("YYPID"); + this.OnYYPIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_10_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Cl_W_MaterialOutM.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialOutM.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_12_BASE_UNI", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] + public Base_Unit Base_Unit + { + get + { + return this._Base_Unit.Entity; + } + set + { + Base_Unit previousValue = this._Base_Unit.Entity; + if (((previousValue != value) + || (this._Base_Unit.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Unit.Entity = null; + previousValue.Cl_W_MaterialOutM.Remove(this); + } + this._Base_Unit.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialOutM.Add(this); + this._UnitId = value.UnitId; + } + else + { + this._UnitId = default(string); + } + this.SendPropertyChanged("Base_Unit"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_15_CL_W_MAT", Storage="_Cl_W_MaterialOutS", ThisKey="OutSheetMID", OtherKey="OutSheetMID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialOutS + { + get + { + return this._Cl_W_MaterialOutS; + } + set + { + this._Cl_W_MaterialOutS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_MaterialOutS(Cl_W_MaterialOutS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialOutM = this; + } + + private void detach_Cl_W_MaterialOutS(Cl_W_MaterialOutS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialOutM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialOutS")] + public partial class Cl_W_MaterialOutS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _OutSheetMID; + + private string _OutSheetSID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private System.Nullable _PlannedQuantity; + + private System.Nullable _StoreQuantity; + + private System.Nullable _OutQuantity; + + private System.Nullable _OutQuantityY; + + private System.Nullable _StorePQuantity; + + private string _CertificatesFactoryNo; + + private string _FurnaceBatchNo; + + private string _CertificateSelfNo; + + private System.Nullable _Weight; + + private System.Nullable _Price; + + private System.Nullable _OutQuantityP; + + private System.Nullable _OutQuantityO; + + private string _StorehouseName; + + private string _StorageSheetSID; + + private string _FirstpartyCode; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private string _InstallationId; + + private System.Nullable _Shue; + + private System.Nullable _Bhsje; + + private EntityRef _CL_B_Material; + + private EntityRef _Cl_W_MaterialOutM; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnOutSheetMIDChanging(string value); + partial void OnOutSheetMIDChanged(); + partial void OnOutSheetSIDChanging(string value); + partial void OnOutSheetSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnPlannedQuantityChanging(System.Nullable value); + partial void OnPlannedQuantityChanged(); + partial void OnStoreQuantityChanging(System.Nullable value); + partial void OnStoreQuantityChanged(); + partial void OnOutQuantityChanging(System.Nullable value); + partial void OnOutQuantityChanged(); + partial void OnOutQuantityYChanging(System.Nullable value); + partial void OnOutQuantityYChanged(); + partial void OnStorePQuantityChanging(System.Nullable value); + partial void OnStorePQuantityChanged(); + partial void OnCertificatesFactoryNoChanging(string value); + partial void OnCertificatesFactoryNoChanged(); + partial void OnFurnaceBatchNoChanging(string value); + partial void OnFurnaceBatchNoChanged(); + partial void OnCertificateSelfNoChanging(string value); + partial void OnCertificateSelfNoChanged(); + partial void OnWeightChanging(System.Nullable value); + partial void OnWeightChanged(); + partial void OnPriceChanging(System.Nullable value); + partial void OnPriceChanged(); + partial void OnOutQuantityPChanging(System.Nullable value); + partial void OnOutQuantityPChanged(); + partial void OnOutQuantityOChanging(System.Nullable value); + partial void OnOutQuantityOChanged(); + partial void OnStorehouseNameChanging(string value); + partial void OnStorehouseNameChanged(); + partial void OnStorageSheetSIDChanging(string value); + partial void OnStorageSheetSIDChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnShueChanging(System.Nullable value); + partial void OnShueChanged(); + partial void OnBhsjeChanging(System.Nullable value); + partial void OnBhsjeChanged(); + #endregion + + public Cl_W_MaterialOutS() + { + this._CL_B_Material = default(EntityRef); + this._Cl_W_MaterialOutM = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string OutSheetMID + { + get + { + return this._OutSheetMID; + } + set + { + if ((this._OutSheetMID != value)) + { + if (this._Cl_W_MaterialOutM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnOutSheetMIDChanging(value); + this.SendPropertyChanging(); + this._OutSheetMID = value; + this.SendPropertyChanged("OutSheetMID"); + this.OnOutSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string OutSheetSID + { + get + { + return this._OutSheetSID; + } + set + { + if ((this._OutSheetSID != value)) + { + this.OnOutSheetSIDChanging(value); + this.SendPropertyChanging(); + this._OutSheetSID = value; + this.SendPropertyChanged("OutSheetSID"); + this.OnOutSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + if (this._CL_B_Material.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlannedQuantity", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable PlannedQuantity + { + get + { + return this._PlannedQuantity; + } + set + { + if ((this._PlannedQuantity != value)) + { + this.OnPlannedQuantityChanging(value); + this.SendPropertyChanging(); + this._PlannedQuantity = value; + this.SendPropertyChanged("PlannedQuantity"); + this.OnPlannedQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StoreQuantity", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable StoreQuantity + { + get + { + return this._StoreQuantity; + } + set + { + if ((this._StoreQuantity != value)) + { + this.OnStoreQuantityChanging(value); + this.SendPropertyChanging(); + this._StoreQuantity = value; + this.SendPropertyChanged("StoreQuantity"); + this.OnStoreQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutQuantity", DbType="Decimal(15,2)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OutQuantity + { + get + { + return this._OutQuantity; + } + set + { + if ((this._OutQuantity != value)) + { + this.OnOutQuantityChanging(value); + this.SendPropertyChanging(); + this._OutQuantity = value; + this.SendPropertyChanged("OutQuantity"); + this.OnOutQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutQuantityY", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OutQuantityY + { + get + { + return this._OutQuantityY; + } + set + { + if ((this._OutQuantityY != value)) + { + this.OnOutQuantityYChanging(value); + this.SendPropertyChanging(); + this._OutQuantityY = value; + this.SendPropertyChanged("OutQuantityY"); + this.OnOutQuantityYChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorePQuantity", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable StorePQuantity + { + get + { + return this._StorePQuantity; + } + set + { + if ((this._StorePQuantity != value)) + { + this.OnStorePQuantityChanging(value); + this.SendPropertyChanging(); + this._StorePQuantity = value; + this.SendPropertyChanged("StorePQuantity"); + this.OnStorePQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificatesFactoryNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificatesFactoryNo + { + get + { + return this._CertificatesFactoryNo; + } + set + { + if ((this._CertificatesFactoryNo != value)) + { + this.OnCertificatesFactoryNoChanging(value); + this.SendPropertyChanging(); + this._CertificatesFactoryNo = value; + this.SendPropertyChanged("CertificatesFactoryNo"); + this.OnCertificatesFactoryNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FurnaceBatchNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string FurnaceBatchNo + { + get + { + return this._FurnaceBatchNo; + } + set + { + if ((this._FurnaceBatchNo != value)) + { + this.OnFurnaceBatchNoChanging(value); + this.SendPropertyChanging(); + this._FurnaceBatchNo = value; + this.SendPropertyChanged("FurnaceBatchNo"); + this.OnFurnaceBatchNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateSelfNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificateSelfNo + { + get + { + return this._CertificateSelfNo; + } + set + { + if ((this._CertificateSelfNo != value)) + { + this.OnCertificateSelfNoChanging(value); + this.SendPropertyChanging(); + this._CertificateSelfNo = value; + this.SendPropertyChanged("CertificateSelfNo"); + this.OnCertificateSelfNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Weight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Weight + { + get + { + return this._Weight; + } + set + { + if ((this._Weight != value)) + { + this.OnWeightChanging(value); + this.SendPropertyChanging(); + this._Weight = value; + this.SendPropertyChanged("Weight"); + this.OnWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Price", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Price + { + get + { + return this._Price; + } + set + { + if ((this._Price != value)) + { + this.OnPriceChanging(value); + this.SendPropertyChanging(); + this._Price = value; + this.SendPropertyChanged("Price"); + this.OnPriceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutQuantityP", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OutQuantityP + { + get + { + return this._OutQuantityP; + } + set + { + if ((this._OutQuantityP != value)) + { + this.OnOutQuantityPChanging(value); + this.SendPropertyChanging(); + this._OutQuantityP = value; + this.SendPropertyChanged("OutQuantityP"); + this.OnOutQuantityPChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutQuantityO", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OutQuantityO + { + get + { + return this._OutQuantityO; + } + set + { + if ((this._OutQuantityO != value)) + { + this.OnOutQuantityOChanging(value); + this.SendPropertyChanging(); + this._OutQuantityO = value; + this.SendPropertyChanged("OutQuantityO"); + this.OnOutQuantityOChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorehouseName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string StorehouseName + { + get + { + return this._StorehouseName; + } + set + { + if ((this._StorehouseName != value)) + { + this.OnStorehouseNameChanging(value); + this.SendPropertyChanging(); + this._StorehouseName = value; + this.SendPropertyChanged("StorehouseName"); + this.OnStorehouseNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetSID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string StorageSheetSID + { + get + { + return this._StorageSheetSID; + } + set + { + if ((this._StorageSheetSID != value)) + { + this.OnStorageSheetSIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetSID = value; + this.SendPropertyChanged("StorageSheetSID"); + this.OnStorageSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="shue", Storage="_Shue", DbType="Decimal(15,2)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Shue + { + get + { + return this._Shue; + } + set + { + if ((this._Shue != value)) + { + this.OnShueChanging(value); + this.SendPropertyChanging(); + this._Shue = value; + this.SendPropertyChanged("Shue"); + this.OnShueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bhsje", Storage="_Bhsje", DbType="Decimal(15,2)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Bhsje + { + get + { + return this._Bhsje; + } + set + { + if ((this._Bhsje != value)) + { + this.OnBhsjeChanging(value); + this.SendPropertyChanging(); + this._Bhsje = value; + this.SendPropertyChanged("Bhsje"); + this.OnBhsjeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_14_CL_B_MAT", Storage="_CL_B_Material", ThisKey="MaterialID", OtherKey="MaterialID", IsForeignKey=true)] + public CL_B_Material CL_B_Material + { + get + { + return this._CL_B_Material.Entity; + } + set + { + CL_B_Material previousValue = this._CL_B_Material.Entity; + if (((previousValue != value) + || (this._CL_B_Material.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._CL_B_Material.Entity = null; + previousValue.Cl_W_MaterialOutS.Remove(this); + } + this._CL_B_Material.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialOutS.Add(this); + this._MaterialID = value.MaterialID; + } + else + { + this._MaterialID = default(string); + } + this.SendPropertyChanged("CL_B_Material"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_15_CL_W_MAT", Storage="_Cl_W_MaterialOutM", ThisKey="OutSheetMID", OtherKey="OutSheetMID", IsForeignKey=true)] + public Cl_W_MaterialOutM Cl_W_MaterialOutM + { + get + { + return this._Cl_W_MaterialOutM.Entity; + } + set + { + Cl_W_MaterialOutM previousValue = this._Cl_W_MaterialOutM.Entity; + if (((previousValue != value) + || (this._Cl_W_MaterialOutM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_MaterialOutM.Entity = null; + previousValue.Cl_W_MaterialOutS.Remove(this); + } + this._Cl_W_MaterialOutM.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialOutS.Add(this); + this._OutSheetMID = value.OutSheetMID; + } + else + { + this._OutSheetMID = default(string); + } + this.SendPropertyChanged("Cl_W_MaterialOutM"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialPlanM")] + public partial class Cl_W_MaterialPlanM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _PlanSheetMID; + + private string _PlanSheetCode; + + private string _AreaCode; + + private string _SpecialityCode; + + private string _MapNumber; + + private string _IsOk; + + private System.Nullable _UserTime; + + private string _ExamineMan; + + private System.Nullable _ExamineTime; + + private string _ApprovalMan; + + private System.Nullable _ApprovalTime; + + private string _TechnicalExamine; + + private System.Nullable _TechnicalExamineTime; + + private string _ManagementExamine; + + private System.Nullable _ManagementExamineTime; + + private string _SupplyExamine; + + private System.Nullable _SupplyExamineTime; + + private string _ManagerApproval; + + private System.Nullable _ManagerApprovalTime; + + private string _Lc_ExamineMan; + + private string _Lc_ApprovalMan; + + private string _Lc_TechnicalExamine; + + private string _Lc_ManagementExamine; + + private string _Lc_SupplyExamine; + + private string _Lc_ManagerApproval; + + private string _Returnman; + + private string _Returnreason; + + private string _InstallationId; + + private string _UnitId; + + private string _UserId; + + private string _YPlanSheetMID; + + private string _ZcTz; + + private System.Nullable _Pkey; + + private EntitySet _Cl_W_MaterialPlanS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPlanSheetMIDChanging(string value); + partial void OnPlanSheetMIDChanged(); + partial void OnPlanSheetCodeChanging(string value); + partial void OnPlanSheetCodeChanged(); + partial void OnAreaCodeChanging(string value); + partial void OnAreaCodeChanged(); + partial void OnSpecialityCodeChanging(string value); + partial void OnSpecialityCodeChanged(); + partial void OnMapNumberChanging(string value); + partial void OnMapNumberChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnExamineManChanging(string value); + partial void OnExamineManChanged(); + partial void OnExamineTimeChanging(System.Nullable value); + partial void OnExamineTimeChanged(); + partial void OnApprovalManChanging(string value); + partial void OnApprovalManChanged(); + partial void OnApprovalTimeChanging(System.Nullable value); + partial void OnApprovalTimeChanged(); + partial void OnTechnicalExamineChanging(string value); + partial void OnTechnicalExamineChanged(); + partial void OnTechnicalExamineTimeChanging(System.Nullable value); + partial void OnTechnicalExamineTimeChanged(); + partial void OnManagementExamineChanging(string value); + partial void OnManagementExamineChanged(); + partial void OnManagementExamineTimeChanging(System.Nullable value); + partial void OnManagementExamineTimeChanged(); + partial void OnSupplyExamineChanging(string value); + partial void OnSupplyExamineChanged(); + partial void OnSupplyExamineTimeChanging(System.Nullable value); + partial void OnSupplyExamineTimeChanged(); + partial void OnManagerApprovalChanging(string value); + partial void OnManagerApprovalChanged(); + partial void OnManagerApprovalTimeChanging(System.Nullable value); + partial void OnManagerApprovalTimeChanged(); + partial void OnLc_ExamineManChanging(string value); + partial void OnLc_ExamineManChanged(); + partial void OnLc_ApprovalManChanging(string value); + partial void OnLc_ApprovalManChanged(); + partial void OnLc_TechnicalExamineChanging(string value); + partial void OnLc_TechnicalExamineChanged(); + partial void OnLc_ManagementExamineChanging(string value); + partial void OnLc_ManagementExamineChanged(); + partial void OnLc_SupplyExamineChanging(string value); + partial void OnLc_SupplyExamineChanged(); + partial void OnLc_ManagerApprovalChanging(string value); + partial void OnLc_ManagerApprovalChanged(); + partial void OnReturnmanChanging(string value); + partial void OnReturnmanChanged(); + partial void OnReturnreasonChanging(string value); + partial void OnReturnreasonChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnYPlanSheetMIDChanging(string value); + partial void OnYPlanSheetMIDChanged(); + partial void OnZcTzChanging(string value); + partial void OnZcTzChanged(); + partial void OnPkeyChanging(System.Nullable value); + partial void OnPkeyChanged(); + #endregion + + public Cl_W_MaterialPlanM() + { + this._Cl_W_MaterialPlanS = new EntitySet(new Action(this.attach_Cl_W_MaterialPlanS), new Action(this.detach_Cl_W_MaterialPlanS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetMID", DbType="NVarChar(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string PlanSheetMID + { + get + { + return this._PlanSheetMID; + } + set + { + if ((this._PlanSheetMID != value)) + { + this.OnPlanSheetMIDChanging(value); + this.SendPropertyChanging(); + this._PlanSheetMID = value; + this.SendPropertyChanged("PlanSheetMID"); + this.OnPlanSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetCode", DbType="NVarChar(50)")] + public string PlanSheetCode + { + get + { + return this._PlanSheetCode; + } + set + { + if ((this._PlanSheetCode != value)) + { + this.OnPlanSheetCodeChanging(value); + this.SendPropertyChanging(); + this._PlanSheetCode = value; + this.SendPropertyChanged("PlanSheetCode"); + this.OnPlanSheetCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaCode", DbType="NVarChar(200)")] + public string AreaCode + { + get + { + return this._AreaCode; + } + set + { + if ((this._AreaCode != value)) + { + this.OnAreaCodeChanging(value); + this.SendPropertyChanging(); + this._AreaCode = value; + this.SendPropertyChanged("AreaCode"); + this.OnAreaCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityCode", DbType="NVarChar(50)")] + public string SpecialityCode + { + get + { + return this._SpecialityCode; + } + set + { + if ((this._SpecialityCode != value)) + { + this.OnSpecialityCodeChanging(value); + this.SendPropertyChanging(); + this._SpecialityCode = value; + this.SendPropertyChanged("SpecialityCode"); + this.OnSpecialityCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MapNumber", DbType="NVarChar(50)")] + public string MapNumber + { + get + { + return this._MapNumber; + } + set + { + if ((this._MapNumber != value)) + { + this.OnMapNumberChanging(value); + this.SendPropertyChanging(); + this._MapNumber = value; + this.SendPropertyChanged("MapNumber"); + this.OnMapNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1)")] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime")] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExamineMan", DbType="NVarChar(50)")] + public string ExamineMan + { + get + { + return this._ExamineMan; + } + set + { + if ((this._ExamineMan != value)) + { + this.OnExamineManChanging(value); + this.SendPropertyChanging(); + this._ExamineMan = value; + this.SendPropertyChanged("ExamineMan"); + this.OnExamineManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExamineTime", DbType="DateTime")] + public System.Nullable ExamineTime + { + get + { + return this._ExamineTime; + } + set + { + if ((this._ExamineTime != value)) + { + this.OnExamineTimeChanging(value); + this.SendPropertyChanging(); + this._ExamineTime = value; + this.SendPropertyChanged("ExamineTime"); + this.OnExamineTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalMan", DbType="NVarChar(50)")] + public string ApprovalMan + { + get + { + return this._ApprovalMan; + } + set + { + if ((this._ApprovalMan != value)) + { + this.OnApprovalManChanging(value); + this.SendPropertyChanging(); + this._ApprovalMan = value; + this.SendPropertyChanged("ApprovalMan"); + this.OnApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalTime", DbType="DateTime")] + public System.Nullable ApprovalTime + { + get + { + return this._ApprovalTime; + } + set + { + if ((this._ApprovalTime != value)) + { + this.OnApprovalTimeChanging(value); + this.SendPropertyChanging(); + this._ApprovalTime = value; + this.SendPropertyChanged("ApprovalTime"); + this.OnApprovalTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalExamine", DbType="NVarChar(50)")] + public string TechnicalExamine + { + get + { + return this._TechnicalExamine; + } + set + { + if ((this._TechnicalExamine != value)) + { + this.OnTechnicalExamineChanging(value); + this.SendPropertyChanging(); + this._TechnicalExamine = value; + this.SendPropertyChanged("TechnicalExamine"); + this.OnTechnicalExamineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalExamineTime", DbType="DateTime")] + public System.Nullable TechnicalExamineTime + { + get + { + return this._TechnicalExamineTime; + } + set + { + if ((this._TechnicalExamineTime != value)) + { + this.OnTechnicalExamineTimeChanging(value); + this.SendPropertyChanging(); + this._TechnicalExamineTime = value; + this.SendPropertyChanged("TechnicalExamineTime"); + this.OnTechnicalExamineTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagementExamine", DbType="NVarChar(50)")] + public string ManagementExamine + { + get + { + return this._ManagementExamine; + } + set + { + if ((this._ManagementExamine != value)) + { + this.OnManagementExamineChanging(value); + this.SendPropertyChanging(); + this._ManagementExamine = value; + this.SendPropertyChanged("ManagementExamine"); + this.OnManagementExamineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagementExamineTime", DbType="DateTime")] + public System.Nullable ManagementExamineTime + { + get + { + return this._ManagementExamineTime; + } + set + { + if ((this._ManagementExamineTime != value)) + { + this.OnManagementExamineTimeChanging(value); + this.SendPropertyChanging(); + this._ManagementExamineTime = value; + this.SendPropertyChanged("ManagementExamineTime"); + this.OnManagementExamineTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupplyExamine", DbType="NVarChar(50)")] + public string SupplyExamine + { + get + { + return this._SupplyExamine; + } + set + { + if ((this._SupplyExamine != value)) + { + this.OnSupplyExamineChanging(value); + this.SendPropertyChanging(); + this._SupplyExamine = value; + this.SendPropertyChanged("SupplyExamine"); + this.OnSupplyExamineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupplyExamineTime", DbType="DateTime")] + public System.Nullable SupplyExamineTime + { + get + { + return this._SupplyExamineTime; + } + set + { + if ((this._SupplyExamineTime != value)) + { + this.OnSupplyExamineTimeChanging(value); + this.SendPropertyChanging(); + this._SupplyExamineTime = value; + this.SendPropertyChanged("SupplyExamineTime"); + this.OnSupplyExamineTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagerApproval", DbType="NVarChar(50)")] + public string ManagerApproval + { + get + { + return this._ManagerApproval; + } + set + { + if ((this._ManagerApproval != value)) + { + this.OnManagerApprovalChanging(value); + this.SendPropertyChanging(); + this._ManagerApproval = value; + this.SendPropertyChanged("ManagerApproval"); + this.OnManagerApprovalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagerApprovalTime", DbType="DateTime")] + public System.Nullable ManagerApprovalTime + { + get + { + return this._ManagerApprovalTime; + } + set + { + if ((this._ManagerApprovalTime != value)) + { + this.OnManagerApprovalTimeChanging(value); + this.SendPropertyChanging(); + this._ManagerApprovalTime = value; + this.SendPropertyChanged("ManagerApprovalTime"); + this.OnManagerApprovalTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="lc_ExamineMan", Storage="_Lc_ExamineMan", DbType="NVarChar(50)")] + public string Lc_ExamineMan + { + get + { + return this._Lc_ExamineMan; + } + set + { + if ((this._Lc_ExamineMan != value)) + { + this.OnLc_ExamineManChanging(value); + this.SendPropertyChanging(); + this._Lc_ExamineMan = value; + this.SendPropertyChanged("Lc_ExamineMan"); + this.OnLc_ExamineManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="lc_ApprovalMan", Storage="_Lc_ApprovalMan", DbType="NVarChar(50)")] + public string Lc_ApprovalMan + { + get + { + return this._Lc_ApprovalMan; + } + set + { + if ((this._Lc_ApprovalMan != value)) + { + this.OnLc_ApprovalManChanging(value); + this.SendPropertyChanging(); + this._Lc_ApprovalMan = value; + this.SendPropertyChanged("Lc_ApprovalMan"); + this.OnLc_ApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="lc_TechnicalExamine", Storage="_Lc_TechnicalExamine", DbType="NVarChar(50)")] + public string Lc_TechnicalExamine + { + get + { + return this._Lc_TechnicalExamine; + } + set + { + if ((this._Lc_TechnicalExamine != value)) + { + this.OnLc_TechnicalExamineChanging(value); + this.SendPropertyChanging(); + this._Lc_TechnicalExamine = value; + this.SendPropertyChanged("Lc_TechnicalExamine"); + this.OnLc_TechnicalExamineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="lc_ManagementExamine", Storage="_Lc_ManagementExamine", DbType="NVarChar(50)")] + public string Lc_ManagementExamine + { + get + { + return this._Lc_ManagementExamine; + } + set + { + if ((this._Lc_ManagementExamine != value)) + { + this.OnLc_ManagementExamineChanging(value); + this.SendPropertyChanging(); + this._Lc_ManagementExamine = value; + this.SendPropertyChanged("Lc_ManagementExamine"); + this.OnLc_ManagementExamineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="lc_SupplyExamine", Storage="_Lc_SupplyExamine", DbType="NVarChar(50)")] + public string Lc_SupplyExamine + { + get + { + return this._Lc_SupplyExamine; + } + set + { + if ((this._Lc_SupplyExamine != value)) + { + this.OnLc_SupplyExamineChanging(value); + this.SendPropertyChanging(); + this._Lc_SupplyExamine = value; + this.SendPropertyChanged("Lc_SupplyExamine"); + this.OnLc_SupplyExamineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="lc_ManagerApproval", Storage="_Lc_ManagerApproval", DbType="NVarChar(50)")] + public string Lc_ManagerApproval + { + get + { + return this._Lc_ManagerApproval; + } + set + { + if ((this._Lc_ManagerApproval != value)) + { + this.OnLc_ManagerApprovalChanging(value); + this.SendPropertyChanging(); + this._Lc_ManagerApproval = value; + this.SendPropertyChanged("Lc_ManagerApproval"); + this.OnLc_ManagerApprovalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="returnman", Storage="_Returnman", DbType="NVarChar(50)")] + public string Returnman + { + get + { + return this._Returnman; + } + set + { + if ((this._Returnman != value)) + { + this.OnReturnmanChanging(value); + this.SendPropertyChanging(); + this._Returnman = value; + this.SendPropertyChanged("Returnman"); + this.OnReturnmanChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="returnreason", Storage="_Returnreason", DbType="NVarChar(200)")] + public string Returnreason + { + get + { + return this._Returnreason; + } + set + { + if ((this._Returnreason != value)) + { + this.OnReturnreasonChanging(value); + this.SendPropertyChanging(); + this._Returnreason = value; + this.SendPropertyChanged("Returnreason"); + this.OnReturnreasonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)")] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YPlanSheetMID", DbType="Char(36)")] + public string YPlanSheetMID + { + get + { + return this._YPlanSheetMID; + } + set + { + if ((this._YPlanSheetMID != value)) + { + this.OnYPlanSheetMIDChanging(value); + this.SendPropertyChanging(); + this._YPlanSheetMID = value; + this.SendPropertyChanged("YPlanSheetMID"); + this.OnYPlanSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ZcTz", DbType="Char(1)")] + public string ZcTz + { + get + { + return this._ZcTz; + } + set + { + if ((this._ZcTz != value)) + { + this.OnZcTzChanging(value); + this.SendPropertyChanging(); + this._ZcTz = value; + this.SendPropertyChanged("ZcTz"); + this.OnZcTzChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Pkey", DbType="Int")] + public System.Nullable Pkey + { + get + { + return this._Pkey; + } + set + { + if ((this._Pkey != value)) + { + this.OnPkeyChanging(value); + this.SendPropertyChanging(); + this._Pkey = value; + this.SendPropertyChanged("Pkey"); + this.OnPkeyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_PM_REFERENCE_PS", Storage="_Cl_W_MaterialPlanS", ThisKey="PlanSheetMID", OtherKey="PlanSheetMID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialPlanS + { + get + { + return this._Cl_W_MaterialPlanS; + } + set + { + this._Cl_W_MaterialPlanS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_MaterialPlanS(Cl_W_MaterialPlanS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialPlanM = this; + } + + private void detach_Cl_W_MaterialPlanS(Cl_W_MaterialPlanS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialPlanM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialPlanS")] + public partial class Cl_W_MaterialPlanS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _PlanSheetSID; + + private string _PlanSheetMID; + + private string _ProjectId; + + private string _InstallationId; + + private string _Properties; + + private string _AreaCode; + + private string _MapNumber; + + private string _MaterialID; + + private System.Nullable _Soft; + + private string _TypeName; + + private string _MaterialName; + + private string _Specificationtype; + + private string _MaterialQuality; + + private string _StandardSpecification; + + private string _Unit; + + private System.Nullable _Quantity; + + private string _RecordTableOptions; + + private string _SpecialNote; + + private string _MaterialCode; + + private string _InstallationCode; + + private string _SpecialityCode; + + private System.Nullable _TheoryWeight; + + private string _SCName; + + private string _IsCheck; + + private string _NDTRName; + + private string _NDTName; + + private string _ListType; + + private string _FirstpartyCode; + + private string _SystemCode; + + private string _TechnicalConditions; + + private System.Nullable _Squantity; + + private EntityRef _Cl_W_MaterialPlanM; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnPlanSheetSIDChanging(string value); + partial void OnPlanSheetSIDChanged(); + partial void OnPlanSheetMIDChanging(string value); + partial void OnPlanSheetMIDChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnPropertiesChanging(string value); + partial void OnPropertiesChanged(); + partial void OnAreaCodeChanging(string value); + partial void OnAreaCodeChanged(); + partial void OnMapNumberChanging(string value); + partial void OnMapNumberChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnTypeNameChanging(string value); + partial void OnTypeNameChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecificationtypeChanging(string value); + partial void OnSpecificationtypeChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnUnitChanging(string value); + partial void OnUnitChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnRecordTableOptionsChanging(string value); + partial void OnRecordTableOptionsChanged(); + partial void OnSpecialNoteChanging(string value); + partial void OnSpecialNoteChanged(); + partial void OnMaterialCodeChanging(string value); + partial void OnMaterialCodeChanged(); + partial void OnInstallationCodeChanging(string value); + partial void OnInstallationCodeChanged(); + partial void OnSpecialityCodeChanging(string value); + partial void OnSpecialityCodeChanged(); + partial void OnTheoryWeightChanging(System.Nullable value); + partial void OnTheoryWeightChanged(); + partial void OnSCNameChanging(string value); + partial void OnSCNameChanged(); + partial void OnIsCheckChanging(string value); + partial void OnIsCheckChanged(); + partial void OnNDTRNameChanging(string value); + partial void OnNDTRNameChanged(); + partial void OnNDTNameChanging(string value); + partial void OnNDTNameChanged(); + partial void OnListTypeChanging(string value); + partial void OnListTypeChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnSquantityChanging(System.Nullable value); + partial void OnSquantityChanged(); + #endregion + + public Cl_W_MaterialPlanS() + { + this._Cl_W_MaterialPlanM = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string PlanSheetSID + { + get + { + return this._PlanSheetSID; + } + set + { + if ((this._PlanSheetSID != value)) + { + this.OnPlanSheetSIDChanging(value); + this.SendPropertyChanging(); + this._PlanSheetSID = value; + this.SendPropertyChanged("PlanSheetSID"); + this.OnPlanSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetMID", DbType="NVarChar(36)")] + public string PlanSheetMID + { + get + { + return this._PlanSheetMID; + } + set + { + if ((this._PlanSheetMID != value)) + { + if (this._Cl_W_MaterialPlanM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnPlanSheetMIDChanging(value); + this.SendPropertyChanging(); + this._PlanSheetMID = value; + this.SendPropertyChanged("PlanSheetMID"); + this.OnPlanSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)")] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Properties", DbType="NVarChar(50)")] + public string Properties + { + get + { + return this._Properties; + } + set + { + if ((this._Properties != value)) + { + this.OnPropertiesChanging(value); + this.SendPropertyChanging(); + this._Properties = value; + this.SendPropertyChanged("Properties"); + this.OnPropertiesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AreaCode", DbType="NVarChar(20)")] + public string AreaCode + { + get + { + return this._AreaCode; + } + set + { + if ((this._AreaCode != value)) + { + this.OnAreaCodeChanging(value); + this.SendPropertyChanging(); + this._AreaCode = value; + this.SendPropertyChanged("AreaCode"); + this.OnAreaCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MapNumber", DbType="NVarChar(50)")] + public string MapNumber + { + get + { + return this._MapNumber; + } + set + { + if ((this._MapNumber != value)) + { + this.OnMapNumberChanging(value); + this.SendPropertyChanging(); + this._MapNumber = value; + this.SendPropertyChanged("MapNumber"); + this.OnMapNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)")] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int")] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(20)")] + public string TypeName + { + get + { + return this._TypeName; + } + set + { + if ((this._TypeName != value)) + { + this.OnTypeNameChanging(value); + this.SendPropertyChanging(); + this._TypeName = value; + this.SendPropertyChanged("TypeName"); + this.OnTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(500)")] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specificationtype", DbType="NVarChar(500)")] + public string Specificationtype + { + get + { + return this._Specificationtype; + } + set + { + if ((this._Specificationtype != value)) + { + this.OnSpecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Specificationtype = value; + this.SendPropertyChanged("Specificationtype"); + this.OnSpecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(500)")] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(500)")] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(50)")] + public string Unit + { + get + { + return this._Unit; + } + set + { + if ((this._Unit != value)) + { + this.OnUnitChanging(value); + this.SendPropertyChanging(); + this._Unit = value; + this.SendPropertyChanged("Unit"); + this.OnUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="quantity", Storage="_Quantity", DbType="Decimal(15,2)")] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableOptions", DbType="NVarChar(100)")] + public string RecordTableOptions + { + get + { + return this._RecordTableOptions; + } + set + { + if ((this._RecordTableOptions != value)) + { + this.OnRecordTableOptionsChanging(value); + this.SendPropertyChanging(); + this._RecordTableOptions = value; + this.SendPropertyChanged("RecordTableOptions"); + this.OnRecordTableOptionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialNote", DbType="NVarChar(50)")] + public string SpecialNote + { + get + { + return this._SpecialNote; + } + set + { + if ((this._SpecialNote != value)) + { + this.OnSpecialNoteChanging(value); + this.SendPropertyChanging(); + this._SpecialNote = value; + this.SendPropertyChanged("SpecialNote"); + this.OnSpecialNoteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")] + public string MaterialCode + { + get + { + return this._MaterialCode; + } + set + { + if ((this._MaterialCode != value)) + { + this.OnMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._MaterialCode = value; + this.SendPropertyChanged("MaterialCode"); + this.OnMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationCode", DbType="NVarChar(50)")] + public string InstallationCode + { + get + { + return this._InstallationCode; + } + set + { + if ((this._InstallationCode != value)) + { + this.OnInstallationCodeChanging(value); + this.SendPropertyChanging(); + this._InstallationCode = value; + this.SendPropertyChanged("InstallationCode"); + this.OnInstallationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialityCode", DbType="NVarChar(20)")] + public string SpecialityCode + { + get + { + return this._SpecialityCode; + } + set + { + if ((this._SpecialityCode != value)) + { + this.OnSpecialityCodeChanging(value); + this.SendPropertyChanging(); + this._SpecialityCode = value; + this.SendPropertyChanged("SpecialityCode"); + this.OnSpecialityCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeight", DbType="Decimal(15,2)")] + public System.Nullable TheoryWeight + { + get + { + return this._TheoryWeight; + } + set + { + if ((this._TheoryWeight != value)) + { + this.OnTheoryWeightChanging(value); + this.SendPropertyChanging(); + this._TheoryWeight = value; + this.SendPropertyChanged("TheoryWeight"); + this.OnTheoryWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCName", DbType="NVarChar(20)")] + public string SCName + { + get + { + return this._SCName; + } + set + { + if ((this._SCName != value)) + { + this.OnSCNameChanging(value); + this.SendPropertyChanging(); + this._SCName = value; + this.SendPropertyChanged("SCName"); + this.OnSCNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheck", DbType="Char(1)")] + public string IsCheck + { + get + { + return this._IsCheck; + } + set + { + if ((this._IsCheck != value)) + { + this.OnIsCheckChanging(value); + this.SendPropertyChanging(); + this._IsCheck = value; + this.SendPropertyChanged("IsCheck"); + this.OnIsCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTRName", DbType="NVarChar(20)")] + public string NDTRName + { + get + { + return this._NDTRName; + } + set + { + if ((this._NDTRName != value)) + { + this.OnNDTRNameChanging(value); + this.SendPropertyChanging(); + this._NDTRName = value; + this.SendPropertyChanged("NDTRName"); + this.OnNDTRNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTName", DbType="NVarChar(20)")] + public string NDTName + { + get + { + return this._NDTName; + } + set + { + if ((this._NDTName != value)) + { + this.OnNDTNameChanging(value); + this.SendPropertyChanging(); + this._NDTName = value; + this.SendPropertyChanged("NDTName"); + this.OnNDTNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ListType", DbType="NVarChar(20)")] + public string ListType + { + get + { + return this._ListType; + } + set + { + if ((this._ListType != value)) + { + this.OnListTypeChanging(value); + this.SendPropertyChanging(); + this._ListType = value; + this.SendPropertyChanged("ListType"); + this.OnListTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)")] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(250)")] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)")] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="squantity", Storage="_Squantity", DbType="Decimal(15,2)")] + public System.Nullable Squantity + { + get + { + return this._Squantity; + } + set + { + if ((this._Squantity != value)) + { + this.OnSquantityChanging(value); + this.SendPropertyChanging(); + this._Squantity = value; + this.SendPropertyChanged("Squantity"); + this.OnSquantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_PM_REFERENCE_PS", Storage="_Cl_W_MaterialPlanM", ThisKey="PlanSheetMID", OtherKey="PlanSheetMID", IsForeignKey=true)] + public Cl_W_MaterialPlanM Cl_W_MaterialPlanM + { + get + { + return this._Cl_W_MaterialPlanM.Entity; + } + set + { + Cl_W_MaterialPlanM previousValue = this._Cl_W_MaterialPlanM.Entity; + if (((previousValue != value) + || (this._Cl_W_MaterialPlanM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_MaterialPlanM.Entity = null; + previousValue.Cl_W_MaterialPlanS.Remove(this); + } + this._Cl_W_MaterialPlanM.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialPlanS.Add(this); + this._PlanSheetMID = value.PlanSheetMID; + } + else + { + this._PlanSheetMID = default(string); + } + this.SendPropertyChanged("Cl_W_MaterialPlanM"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialReturnM")] + public partial class Cl_W_MaterialReturnM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _PlanSheetMID; + + private string _ReturnSheetMid; + + private string _UnitId; + + private string _ReturnSheetCode; + + private string _RRname; + + private string _RecordMan; + + private System.Nullable _UserTime; + + private string _ApprovalMan; + + private System.Nullable _ApprovalTime; + + private string _OkMan; + + private System.Nullable _OkTime; + + private string _IsOk; + + private string _LC_ApprovalMan; + + private string _LC_OkMan; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private string _UAid; + + private string _InstallationId; + + private EntitySet _Cl_W_MaterialReturnS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPlanSheetMIDChanging(string value); + partial void OnPlanSheetMIDChanged(); + partial void OnReturnSheetMidChanging(string value); + partial void OnReturnSheetMidChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnReturnSheetCodeChanging(string value); + partial void OnReturnSheetCodeChanged(); + partial void OnRRnameChanging(string value); + partial void OnRRnameChanged(); + partial void OnRecordManChanging(string value); + partial void OnRecordManChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnApprovalManChanging(string value); + partial void OnApprovalManChanged(); + partial void OnApprovalTimeChanging(System.Nullable value); + partial void OnApprovalTimeChanged(); + partial void OnOkManChanging(string value); + partial void OnOkManChanged(); + partial void OnOkTimeChanging(System.Nullable value); + partial void OnOkTimeChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnLC_ApprovalManChanging(string value); + partial void OnLC_ApprovalManChanged(); + partial void OnLC_OkManChanging(string value); + partial void OnLC_OkManChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnUAidChanging(string value); + partial void OnUAidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + #endregion + + public Cl_W_MaterialReturnM() + { + this._Cl_W_MaterialReturnS = new EntitySet(new Action(this.attach_Cl_W_MaterialReturnS), new Action(this.detach_Cl_W_MaterialReturnS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanSheetMID", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string PlanSheetMID + { + get + { + return this._PlanSheetMID; + } + set + { + if ((this._PlanSheetMID != value)) + { + this.OnPlanSheetMIDChanging(value); + this.SendPropertyChanging(); + this._PlanSheetMID = value; + this.SendPropertyChanged("PlanSheetMID"); + this.OnPlanSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnSheetMid", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string ReturnSheetMid + { + get + { + return this._ReturnSheetMid; + } + set + { + if ((this._ReturnSheetMid != value)) + { + this.OnReturnSheetMidChanging(value); + this.SendPropertyChanging(); + this._ReturnSheetMid = value; + this.SendPropertyChanged("ReturnSheetMid"); + this.OnReturnSheetMidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnSheetCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ReturnSheetCode + { + get + { + return this._ReturnSheetCode; + } + set + { + if ((this._ReturnSheetCode != value)) + { + this.OnReturnSheetCodeChanging(value); + this.SendPropertyChanging(); + this._ReturnSheetCode = value; + this.SendPropertyChanged("ReturnSheetCode"); + this.OnReturnSheetCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RRname", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string RRname + { + get + { + return this._RRname; + } + set + { + if ((this._RRname != value)) + { + this.OnRRnameChanging(value); + this.SendPropertyChanging(); + this._RRname = value; + this.SendPropertyChanged("RRname"); + this.OnRRnameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string RecordMan + { + get + { + return this._RecordMan; + } + set + { + if ((this._RecordMan != value)) + { + this.OnRecordManChanging(value); + this.SendPropertyChanging(); + this._RecordMan = value; + this.SendPropertyChanged("RecordMan"); + this.OnRecordManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ApprovalMan + { + get + { + return this._ApprovalMan; + } + set + { + if ((this._ApprovalMan != value)) + { + this.OnApprovalManChanging(value); + this.SendPropertyChanging(); + this._ApprovalMan = value; + this.SendPropertyChanged("ApprovalMan"); + this.OnApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ApprovalTime + { + get + { + return this._ApprovalTime; + } + set + { + if ((this._ApprovalTime != value)) + { + this.OnApprovalTimeChanging(value); + this.SendPropertyChanging(); + this._ApprovalTime = value; + this.SendPropertyChanged("ApprovalTime"); + this.OnApprovalTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OkMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string OkMan + { + get + { + return this._OkMan; + } + set + { + if ((this._OkMan != value)) + { + this.OnOkManChanging(value); + this.SendPropertyChanging(); + this._OkMan = value; + this.SendPropertyChanged("OkMan"); + this.OnOkManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OkTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OkTime + { + get + { + return this._OkTime; + } + set + { + if ((this._OkTime != value)) + { + this.OnOkTimeChanging(value); + this.SendPropertyChanging(); + this._OkTime = value; + this.SendPropertyChanged("OkTime"); + this.OnOkTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LC_ApprovalMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string LC_ApprovalMan + { + get + { + return this._LC_ApprovalMan; + } + set + { + if ((this._LC_ApprovalMan != value)) + { + this.OnLC_ApprovalManChanging(value); + this.SendPropertyChanging(); + this._LC_ApprovalMan = value; + this.SendPropertyChanged("LC_ApprovalMan"); + this.OnLC_ApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LC_OkMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string LC_OkMan + { + get + { + return this._LC_OkMan; + } + set + { + if ((this._LC_OkMan != value)) + { + this.OnLC_OkManChanging(value); + this.SendPropertyChanging(); + this._LC_OkMan = value; + this.SendPropertyChanged("LC_OkMan"); + this.OnLC_OkManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UAid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string UAid + { + get + { + return this._UAid; + } + set + { + if ((this._UAid != value)) + { + this.OnUAidChanging(value); + this.SendPropertyChanging(); + this._UAid = value; + this.SendPropertyChanged("UAid"); + this.OnUAidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_CL_W_MAT", Storage="_Cl_W_MaterialReturnS", ThisKey="ReturnSheetMid", OtherKey="ReturnSheetMid", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialReturnS + { + get + { + return this._Cl_W_MaterialReturnS; + } + set + { + this._Cl_W_MaterialReturnS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_MaterialReturnS(Cl_W_MaterialReturnS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialReturnM = this; + } + + private void detach_Cl_W_MaterialReturnS(Cl_W_MaterialReturnS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialReturnM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialReturnS")] + public partial class Cl_W_MaterialReturnS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _ReturnSheetMid; + + private string _ReturnSheetSID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private System.Nullable _ReturnQuantity; + + private System.Nullable _ReturnQuantityY; + + private string _CertificatesFactoryNo; + + private string _FurnaceBatchNo; + + private string _CertificateSelfNo; + + private System.Nullable _Weight; + + private System.Nullable _Price; + + private System.Nullable _Actualquantity; + + private string _StorehouseName; + + private string _StorageSheetSID; + + private string _OutSheetMID; + + private string _FirstpartyCode; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private string _OutSheetSID; + + private string _InstallationId; + + private EntityRef _Cl_W_MaterialReturnM; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnReturnSheetMidChanging(string value); + partial void OnReturnSheetMidChanged(); + partial void OnReturnSheetSIDChanging(string value); + partial void OnReturnSheetSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnReturnQuantityChanging(System.Nullable value); + partial void OnReturnQuantityChanged(); + partial void OnReturnQuantityYChanging(System.Nullable value); + partial void OnReturnQuantityYChanged(); + partial void OnCertificatesFactoryNoChanging(string value); + partial void OnCertificatesFactoryNoChanged(); + partial void OnFurnaceBatchNoChanging(string value); + partial void OnFurnaceBatchNoChanged(); + partial void OnCertificateSelfNoChanging(string value); + partial void OnCertificateSelfNoChanged(); + partial void OnWeightChanging(System.Nullable value); + partial void OnWeightChanged(); + partial void OnPriceChanging(System.Nullable value); + partial void OnPriceChanged(); + partial void OnActualquantityChanging(System.Nullable value); + partial void OnActualquantityChanged(); + partial void OnStorehouseNameChanging(string value); + partial void OnStorehouseNameChanged(); + partial void OnStorageSheetSIDChanging(string value); + partial void OnStorageSheetSIDChanged(); + partial void OnOutSheetMIDChanging(string value); + partial void OnOutSheetMIDChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnOutSheetSIDChanging(string value); + partial void OnOutSheetSIDChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + #endregion + + public Cl_W_MaterialReturnS() + { + this._Cl_W_MaterialReturnM = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnSheetMid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string ReturnSheetMid + { + get + { + return this._ReturnSheetMid; + } + set + { + if ((this._ReturnSheetMid != value)) + { + if (this._Cl_W_MaterialReturnM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnReturnSheetMidChanging(value); + this.SendPropertyChanging(); + this._ReturnSheetMid = value; + this.SendPropertyChanged("ReturnSheetMid"); + this.OnReturnSheetMidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnSheetSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string ReturnSheetSID + { + get + { + return this._ReturnSheetSID; + } + set + { + if ((this._ReturnSheetSID != value)) + { + this.OnReturnSheetSIDChanging(value); + this.SendPropertyChanging(); + this._ReturnSheetSID = value; + this.SendPropertyChanged("ReturnSheetSID"); + this.OnReturnSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnQuantity", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ReturnQuantity + { + get + { + return this._ReturnQuantity; + } + set + { + if ((this._ReturnQuantity != value)) + { + this.OnReturnQuantityChanging(value); + this.SendPropertyChanging(); + this._ReturnQuantity = value; + this.SendPropertyChanged("ReturnQuantity"); + this.OnReturnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReturnQuantityY", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ReturnQuantityY + { + get + { + return this._ReturnQuantityY; + } + set + { + if ((this._ReturnQuantityY != value)) + { + this.OnReturnQuantityYChanging(value); + this.SendPropertyChanging(); + this._ReturnQuantityY = value; + this.SendPropertyChanged("ReturnQuantityY"); + this.OnReturnQuantityYChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificatesFactoryNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificatesFactoryNo + { + get + { + return this._CertificatesFactoryNo; + } + set + { + if ((this._CertificatesFactoryNo != value)) + { + this.OnCertificatesFactoryNoChanging(value); + this.SendPropertyChanging(); + this._CertificatesFactoryNo = value; + this.SendPropertyChanged("CertificatesFactoryNo"); + this.OnCertificatesFactoryNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FurnaceBatchNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string FurnaceBatchNo + { + get + { + return this._FurnaceBatchNo; + } + set + { + if ((this._FurnaceBatchNo != value)) + { + this.OnFurnaceBatchNoChanging(value); + this.SendPropertyChanging(); + this._FurnaceBatchNo = value; + this.SendPropertyChanged("FurnaceBatchNo"); + this.OnFurnaceBatchNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateSelfNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificateSelfNo + { + get + { + return this._CertificateSelfNo; + } + set + { + if ((this._CertificateSelfNo != value)) + { + this.OnCertificateSelfNoChanging(value); + this.SendPropertyChanging(); + this._CertificateSelfNo = value; + this.SendPropertyChanged("CertificateSelfNo"); + this.OnCertificateSelfNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Weight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Weight + { + get + { + return this._Weight; + } + set + { + if ((this._Weight != value)) + { + this.OnWeightChanging(value); + this.SendPropertyChanging(); + this._Weight = value; + this.SendPropertyChanged("Weight"); + this.OnWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Price", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Price + { + get + { + return this._Price; + } + set + { + if ((this._Price != value)) + { + this.OnPriceChanging(value); + this.SendPropertyChanging(); + this._Price = value; + this.SendPropertyChanged("Price"); + this.OnPriceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Actualquantity", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Actualquantity + { + get + { + return this._Actualquantity; + } + set + { + if ((this._Actualquantity != value)) + { + this.OnActualquantityChanging(value); + this.SendPropertyChanging(); + this._Actualquantity = value; + this.SendPropertyChanged("Actualquantity"); + this.OnActualquantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorehouseName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string StorehouseName + { + get + { + return this._StorehouseName; + } + set + { + if ((this._StorehouseName != value)) + { + this.OnStorehouseNameChanging(value); + this.SendPropertyChanging(); + this._StorehouseName = value; + this.SendPropertyChanged("StorehouseName"); + this.OnStorehouseNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetSID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string StorageSheetSID + { + get + { + return this._StorageSheetSID; + } + set + { + if ((this._StorageSheetSID != value)) + { + this.OnStorageSheetSIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetSID = value; + this.SendPropertyChanged("StorageSheetSID"); + this.OnStorageSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string OutSheetMID + { + get + { + return this._OutSheetMID; + } + set + { + if ((this._OutSheetMID != value)) + { + this.OnOutSheetMIDChanging(value); + this.SendPropertyChanging(); + this._OutSheetMID = value; + this.SendPropertyChanged("OutSheetMID"); + this.OnOutSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutSheetSID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string OutSheetSID + { + get + { + return this._OutSheetSID; + } + set + { + if ((this._OutSheetSID != value)) + { + this.OnOutSheetSIDChanging(value); + this.SendPropertyChanging(); + this._OutSheetSID = value; + this.SendPropertyChanged("OutSheetSID"); + this.OnOutSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_CL_W_MAT", Storage="_Cl_W_MaterialReturnM", ThisKey="ReturnSheetMid", OtherKey="ReturnSheetMid", IsForeignKey=true)] + public Cl_W_MaterialReturnM Cl_W_MaterialReturnM + { + get + { + return this._Cl_W_MaterialReturnM.Entity; + } + set + { + Cl_W_MaterialReturnM previousValue = this._Cl_W_MaterialReturnM.Entity; + if (((previousValue != value) + || (this._Cl_W_MaterialReturnM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_MaterialReturnM.Entity = null; + previousValue.Cl_W_MaterialReturnS.Remove(this); + } + this._Cl_W_MaterialReturnM.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialReturnS.Add(this); + this._ReturnSheetMid = value.ReturnSheetMid; + } + else + { + this._ReturnSheetMid = default(string); + } + this.SendPropertyChanged("Cl_W_MaterialReturnM"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialStorageM")] + public partial class Cl_W_MaterialStorageM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _StorageSheetMID; + + private string _StorageSheetCode; + + private string _UserId; + + private System.Nullable _UserTime; + + private string _Approval; + + private string _OutInMark; + + private string _IsOk; + + private string _Acceptman; + + private System.Nullable _Accepttime; + + private string _APid; + + private string _UPid; + + private string _Bj_weight; + + private string _Bj_sp; + + private string _Bj_pm; + + private string _Bj_im; + + private string _Bj_wt; + + private string _Bj_ys; + + private string _Bj_sb; + + private string _Bj_cl; + + private string _Bj_fy; + + private string _Bj_zllr; + + private string _Specialityid; + + private string _InstallationId; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private string _Bj_uir; + + private string _YYPID; + + private EntityRef _Base_Project; + + private EntitySet _Cl_W_MaterialStorageS; + + private EntityRef _Sys_User; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnStorageSheetMIDChanging(string value); + partial void OnStorageSheetMIDChanged(); + partial void OnStorageSheetCodeChanging(string value); + partial void OnStorageSheetCodeChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnApprovalChanging(string value); + partial void OnApprovalChanged(); + partial void OnOutInMarkChanging(string value); + partial void OnOutInMarkChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnAcceptmanChanging(string value); + partial void OnAcceptmanChanged(); + partial void OnAccepttimeChanging(System.Nullable value); + partial void OnAccepttimeChanged(); + partial void OnAPidChanging(string value); + partial void OnAPidChanged(); + partial void OnUPidChanging(string value); + partial void OnUPidChanged(); + partial void OnBj_weightChanging(string value); + partial void OnBj_weightChanged(); + partial void OnBj_spChanging(string value); + partial void OnBj_spChanged(); + partial void OnBj_pmChanging(string value); + partial void OnBj_pmChanged(); + partial void OnBj_imChanging(string value); + partial void OnBj_imChanged(); + partial void OnBj_wtChanging(string value); + partial void OnBj_wtChanged(); + partial void OnBj_ysChanging(string value); + partial void OnBj_ysChanged(); + partial void OnBj_sbChanging(string value); + partial void OnBj_sbChanged(); + partial void OnBj_clChanging(string value); + partial void OnBj_clChanged(); + partial void OnBj_fyChanging(string value); + partial void OnBj_fyChanged(); + partial void OnBj_zllrChanging(string value); + partial void OnBj_zllrChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnBj_uirChanging(string value); + partial void OnBj_uirChanged(); + partial void OnYYPIDChanging(string value); + partial void OnYYPIDChanged(); + #endregion + + public Cl_W_MaterialStorageM() + { + this._Base_Project = default(EntityRef); + this._Cl_W_MaterialStorageS = new EntitySet(new Action(this.attach_Cl_W_MaterialStorageS), new Action(this.detach_Cl_W_MaterialStorageS)); + this._Sys_User = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string StorageSheetMID + { + get + { + return this._StorageSheetMID; + } + set + { + if ((this._StorageSheetMID != value)) + { + this.OnStorageSheetMIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetMID = value; + this.SendPropertyChanged("StorageSheetMID"); + this.OnStorageSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string StorageSheetCode + { + get + { + return this._StorageSheetCode; + } + set + { + if ((this._StorageSheetCode != value)) + { + this.OnStorageSheetCodeChanging(value); + this.SendPropertyChanging(); + this._StorageSheetCode = value; + this.SendPropertyChanged("StorageSheetCode"); + this.OnStorageSheetCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Approval", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Approval + { + get + { + return this._Approval; + } + set + { + if ((this._Approval != value)) + { + this.OnApprovalChanging(value); + this.SendPropertyChanging(); + this._Approval = value; + this.SendPropertyChanged("Approval"); + this.OnApprovalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutInMark", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string OutInMark + { + get + { + return this._OutInMark; + } + set + { + if ((this._OutInMark != value)) + { + this.OnOutInMarkChanging(value); + this.SendPropertyChanging(); + this._OutInMark = value; + this.SendPropertyChanged("OutInMark"); + this.OnOutInMarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="acceptman", Storage="_Acceptman", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Acceptman + { + get + { + return this._Acceptman; + } + set + { + if ((this._Acceptman != value)) + { + this.OnAcceptmanChanging(value); + this.SendPropertyChanging(); + this._Acceptman = value; + this.SendPropertyChanged("Acceptman"); + this.OnAcceptmanChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="accepttime", Storage="_Accepttime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Accepttime + { + get + { + return this._Accepttime; + } + set + { + if ((this._Accepttime != value)) + { + this.OnAccepttimeChanging(value); + this.SendPropertyChanging(); + this._Accepttime = value; + this.SendPropertyChanged("Accepttime"); + this.OnAccepttimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_APid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string APid + { + get + { + return this._APid; + } + set + { + if ((this._APid != value)) + { + this.OnAPidChanging(value); + this.SendPropertyChanging(); + this._APid = value; + this.SendPropertyChanged("APid"); + this.OnAPidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UPid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string UPid + { + get + { + return this._UPid; + } + set + { + if ((this._UPid != value)) + { + this.OnUPidChanging(value); + this.SendPropertyChanging(); + this._UPid = value; + this.SendPropertyChanged("UPid"); + this.OnUPidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_weight", Storage="_Bj_weight", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_weight + { + get + { + return this._Bj_weight; + } + set + { + if ((this._Bj_weight != value)) + { + this.OnBj_weightChanging(value); + this.SendPropertyChanging(); + this._Bj_weight = value; + this.SendPropertyChanged("Bj_weight"); + this.OnBj_weightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_sp", Storage="_Bj_sp", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_sp + { + get + { + return this._Bj_sp; + } + set + { + if ((this._Bj_sp != value)) + { + this.OnBj_spChanging(value); + this.SendPropertyChanging(); + this._Bj_sp = value; + this.SendPropertyChanged("Bj_sp"); + this.OnBj_spChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_pm", Storage="_Bj_pm", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_pm + { + get + { + return this._Bj_pm; + } + set + { + if ((this._Bj_pm != value)) + { + this.OnBj_pmChanging(value); + this.SendPropertyChanging(); + this._Bj_pm = value; + this.SendPropertyChanged("Bj_pm"); + this.OnBj_pmChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_im", Storage="_Bj_im", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_im + { + get + { + return this._Bj_im; + } + set + { + if ((this._Bj_im != value)) + { + this.OnBj_imChanging(value); + this.SendPropertyChanging(); + this._Bj_im = value; + this.SendPropertyChanged("Bj_im"); + this.OnBj_imChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_wt", Storage="_Bj_wt", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_wt + { + get + { + return this._Bj_wt; + } + set + { + if ((this._Bj_wt != value)) + { + this.OnBj_wtChanging(value); + this.SendPropertyChanging(); + this._Bj_wt = value; + this.SendPropertyChanged("Bj_wt"); + this.OnBj_wtChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_ys", Storage="_Bj_ys", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_ys + { + get + { + return this._Bj_ys; + } + set + { + if ((this._Bj_ys != value)) + { + this.OnBj_ysChanging(value); + this.SendPropertyChanging(); + this._Bj_ys = value; + this.SendPropertyChanged("Bj_ys"); + this.OnBj_ysChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_sb", Storage="_Bj_sb", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_sb + { + get + { + return this._Bj_sb; + } + set + { + if ((this._Bj_sb != value)) + { + this.OnBj_sbChanging(value); + this.SendPropertyChanging(); + this._Bj_sb = value; + this.SendPropertyChanged("Bj_sb"); + this.OnBj_sbChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_cl", Storage="_Bj_cl", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_cl + { + get + { + return this._Bj_cl; + } + set + { + if ((this._Bj_cl != value)) + { + this.OnBj_clChanging(value); + this.SendPropertyChanging(); + this._Bj_cl = value; + this.SendPropertyChanged("Bj_cl"); + this.OnBj_clChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_fy", Storage="_Bj_fy", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_fy + { + get + { + return this._Bj_fy; + } + set + { + if ((this._Bj_fy != value)) + { + this.OnBj_fyChanging(value); + this.SendPropertyChanging(); + this._Bj_fy = value; + this.SendPropertyChanged("Bj_fy"); + this.OnBj_fyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_zllr", Storage="_Bj_zllr", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_zllr + { + get + { + return this._Bj_zllr; + } + set + { + if ((this._Bj_zllr != value)) + { + this.OnBj_zllrChanging(value); + this.SendPropertyChanging(); + this._Bj_zllr = value; + this.SendPropertyChanged("Bj_zllr"); + this.OnBj_zllrChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bj_uir", Storage="_Bj_uir", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Bj_uir + { + get + { + return this._Bj_uir; + } + set + { + if ((this._Bj_uir != value)) + { + this.OnBj_uirChanging(value); + this.SendPropertyChanging(); + this._Bj_uir = value; + this.SendPropertyChanged("Bj_uir"); + this.OnBj_uirChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YYPID", DbType="NVarChar(150)", UpdateCheck=UpdateCheck.Never)] + public string YYPID + { + get + { + return this._YYPID; + } + set + { + if ((this._YYPID != value)) + { + this.OnYYPIDChanging(value); + this.SendPropertyChanging(); + this._YYPID = value; + this.SendPropertyChanged("YYPID"); + this.OnYYPIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Cl_W_MaterialStorageM.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialStorageM.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_CL_W_MAS", Storage="_Cl_W_MaterialStorageS", ThisKey="StorageSheetMID", OtherKey="StorageSheetMID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialStorageS + { + get + { + return this._Cl_W_MaterialStorageS; + } + set + { + this._Cl_W_MaterialStorageS.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_SYS_USER", Storage="_Sys_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)] + public Sys_User Sys_User + { + get + { + return this._Sys_User.Entity; + } + set + { + Sys_User previousValue = this._Sys_User.Entity; + if (((previousValue != value) + || (this._Sys_User.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Sys_User.Entity = null; + previousValue.Cl_W_MaterialStorageM.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialStorageM.Add(this); + this._UserId = value.UserId; + } + else + { + this._UserId = default(string); + } + this.SendPropertyChanged("Sys_User"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_MaterialStorageS(Cl_W_MaterialStorageS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialStorageM = this; + } + + private void detach_Cl_W_MaterialStorageS(Cl_W_MaterialStorageS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialStorageM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialStoragem_hj")] + public partial class Cl_W_MaterialStoragem_hj : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _StorageHJMID; + + private string _StorageSheetCode; + + private string _UserId; + + private System.Nullable _UserTime; + + private string _Approval; + + private string _OutInMark; + + private string _IsOk; + + private string _Acceptman; + + private System.Nullable _Accepttime; + + private string _APid; + + private string _UPid; + + private string _Specialityid; + + private string _InstallationId; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntitySet _Cl_W_MaterialStorageS_hj; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnStorageHJMIDChanging(string value); + partial void OnStorageHJMIDChanged(); + partial void OnStorageSheetCodeChanging(string value); + partial void OnStorageSheetCodeChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnApprovalChanging(string value); + partial void OnApprovalChanged(); + partial void OnOutInMarkChanging(string value); + partial void OnOutInMarkChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnAcceptmanChanging(string value); + partial void OnAcceptmanChanged(); + partial void OnAccepttimeChanging(System.Nullable value); + partial void OnAccepttimeChanged(); + partial void OnAPidChanging(string value); + partial void OnAPidChanged(); + partial void OnUPidChanging(string value); + partial void OnUPidChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_W_MaterialStoragem_hj() + { + this._Cl_W_MaterialStorageS_hj = new EntitySet(new Action(this.attach_Cl_W_MaterialStorageS_hj), new Action(this.detach_Cl_W_MaterialStorageS_hj)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageHJMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string StorageHJMID + { + get + { + return this._StorageHJMID; + } + set + { + if ((this._StorageHJMID != value)) + { + this.OnStorageHJMIDChanging(value); + this.SendPropertyChanging(); + this._StorageHJMID = value; + this.SendPropertyChanged("StorageHJMID"); + this.OnStorageHJMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string StorageSheetCode + { + get + { + return this._StorageSheetCode; + } + set + { + if ((this._StorageSheetCode != value)) + { + this.OnStorageSheetCodeChanging(value); + this.SendPropertyChanging(); + this._StorageSheetCode = value; + this.SendPropertyChanged("StorageSheetCode"); + this.OnStorageSheetCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Approval", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string Approval + { + get + { + return this._Approval; + } + set + { + if ((this._Approval != value)) + { + this.OnApprovalChanging(value); + this.SendPropertyChanging(); + this._Approval = value; + this.SendPropertyChanged("Approval"); + this.OnApprovalChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutInMark", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string OutInMark + { + get + { + return this._OutInMark; + } + set + { + if ((this._OutInMark != value)) + { + this.OnOutInMarkChanging(value); + this.SendPropertyChanging(); + this._OutInMark = value; + this.SendPropertyChanged("OutInMark"); + this.OnOutInMarkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="acceptman", Storage="_Acceptman", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Acceptman + { + get + { + return this._Acceptman; + } + set + { + if ((this._Acceptman != value)) + { + this.OnAcceptmanChanging(value); + this.SendPropertyChanging(); + this._Acceptman = value; + this.SendPropertyChanged("Acceptman"); + this.OnAcceptmanChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="accepttime", Storage="_Accepttime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Accepttime + { + get + { + return this._Accepttime; + } + set + { + if ((this._Accepttime != value)) + { + this.OnAccepttimeChanging(value); + this.SendPropertyChanging(); + this._Accepttime = value; + this.SendPropertyChanged("Accepttime"); + this.OnAccepttimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_APid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string APid + { + get + { + return this._APid; + } + set + { + if ((this._APid != value)) + { + this.OnAPidChanging(value); + this.SendPropertyChanging(); + this._APid = value; + this.SendPropertyChanged("APid"); + this.OnAPidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UPid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string UPid + { + get + { + return this._UPid; + } + set + { + if ((this._UPid != value)) + { + this.OnUPidChanging(value); + this.SendPropertyChanging(); + this._UPid = value; + this.SendPropertyChanged("UPid"); + this.OnUPidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_MHJ_REFERENCE_CL_SHJ", Storage="_Cl_W_MaterialStorageS_hj", ThisKey="StorageHJMID", OtherKey="StorageHJMID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialStorageS_hj + { + get + { + return this._Cl_W_MaterialStorageS_hj; + } + set + { + this._Cl_W_MaterialStorageS_hj.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_MaterialStorageS_hj(Cl_W_MaterialStorageS_hj entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialStoragem_hj = this; + } + + private void detach_Cl_W_MaterialStorageS_hj(Cl_W_MaterialStorageS_hj entity) + { + this.SendPropertyChanging(); + entity.Cl_W_MaterialStoragem_hj = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialStorageS")] + public partial class Cl_W_MaterialStorageS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _StorageSheetMID; + + private string _StorageSheetSID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private string _StorehouseName; + + private System.Nullable _StorageQuantity; + + private string _Manufacturer; + + private System.Nullable _TheoryWeight; + + private System.Nullable _ActualWeight; + + private string _OutStockProof; + + private System.Nullable _OutStockPrice; + + private string _SupplyChannel; + + private System.Nullable _NeedMeters; + + private System.Nullable _TheoryWeightT; + + private System.Nullable _ActualMeters; + + private System.Nullable _ActualWeight2; + + private string _WDRemarks; + + private string _CertificatesFactoryNo; + + private string _FurnaceBatchNo; + + private System.Nullable _Warranty; + + private string _RecordTableOptions; + + private string _RecordTableExport; + + private string _ListType; + + private string _IsCheck; + + private string _ExportEntrustmentForm; + + private string _ReexaminationReportNo; + + private string _EmergencyReleaseNo; + + private string _AcceptanceResult; + + private string _CertificateNo; + + private string _TypeName; + + private string _SumTypeName; + + private string _SP_MaterialQualityNO; + + private string _SP_Thickness1; + + private string _SP_Thickness2; + + private string _SP_Thickness3; + + private string _SP_Thickness4; + + private string _SP_PipeDiameterIn; + + private string _SP_PipeDiameterOut; + + private string _SP_Length; + + private string _SP_Remarks; + + private string _PM_ContractNo; + + private string _PM_PipeDiameterOut; + + private string _PM_PipeDiameterIn; + + private string _PM_Thickness; + + private string _PM_Other; + + private string _PM_Appearance; + + private string _IM_SizeDeviation; + + private string _IM_OtherDeviation; + + private string _IM_Appearance; + + private string _IM_OtherCheck; + + private string _CheckMan; + + private System.Nullable _CheckDate; + + private string _LiableMan; + + private System.Nullable _Liabledate; + + private string _ME_NDTName; + + private string _ME_NDTStandard; + + private string _ME_NDTRName; + + private string _ME_QualifiedRequirement; + + private string _ME_CheckThingNO; + + private string _ME_HeatStatus; + + private string _ME_EntrustUnit; + + private string _ME_EntrustMan; + + private System.Nullable _ME_EntrustDate; + + private string _ME_TestingUnit; + + private string _ME_TestingMan; + + private System.Nullable _ME_TestingDate; + + private string _Isa_Unit; + + private string _Isa_soft; + + private string _Isa_Accept; + + private string _Isa_Mutilation; + + private string _Isa_DeliveryMan; + + private string _Isa_CheckMan; + + private string _Isa_Remarks; + + private string _Isa_RecordMan; + + private System.Nullable _Isa_RecordDate; + + private string _PStCode; + + private string _SystemCode; + + private string _Wmaterialname; + + private string _Wspecificationtype; + + private string _Wstandardspecification; + + private string _WMaterialQuality; + + private string _Isa_hege; + + private string _W_lydw; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private string _Uir_tag; + + private string _Uir_contractno; + + private string _Uir_boxnum; + + private string _Uir_boxcode; + + private string _Uir_boxsheet; + + private System.Nullable _Shue; + + private System.Nullable _Bhsje; + + private EntityRef _Base_Project; + + private EntityRef _CL_B_Material; + + private EntityRef _Cl_W_MaterialStorageM; + + private EntityRef _CL_W_UIRecords; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnStorageSheetMIDChanging(string value); + partial void OnStorageSheetMIDChanged(); + partial void OnStorageSheetSIDChanging(string value); + partial void OnStorageSheetSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnStorehouseNameChanging(string value); + partial void OnStorehouseNameChanged(); + partial void OnStorageQuantityChanging(System.Nullable value); + partial void OnStorageQuantityChanged(); + partial void OnManufacturerChanging(string value); + partial void OnManufacturerChanged(); + partial void OnTheoryWeightChanging(System.Nullable value); + partial void OnTheoryWeightChanged(); + partial void OnActualWeightChanging(System.Nullable value); + partial void OnActualWeightChanged(); + partial void OnOutStockProofChanging(string value); + partial void OnOutStockProofChanged(); + partial void OnOutStockPriceChanging(System.Nullable value); + partial void OnOutStockPriceChanged(); + partial void OnSupplyChannelChanging(string value); + partial void OnSupplyChannelChanged(); + partial void OnNeedMetersChanging(System.Nullable value); + partial void OnNeedMetersChanged(); + partial void OnTheoryWeightTChanging(System.Nullable value); + partial void OnTheoryWeightTChanged(); + partial void OnActualMetersChanging(System.Nullable value); + partial void OnActualMetersChanged(); + partial void OnActualWeight2Changing(System.Nullable value); + partial void OnActualWeight2Changed(); + partial void OnWDRemarksChanging(string value); + partial void OnWDRemarksChanged(); + partial void OnCertificatesFactoryNoChanging(string value); + partial void OnCertificatesFactoryNoChanged(); + partial void OnFurnaceBatchNoChanging(string value); + partial void OnFurnaceBatchNoChanged(); + partial void OnWarrantyChanging(System.Nullable value); + partial void OnWarrantyChanged(); + partial void OnRecordTableOptionsChanging(string value); + partial void OnRecordTableOptionsChanged(); + partial void OnRecordTableExportChanging(string value); + partial void OnRecordTableExportChanged(); + partial void OnListTypeChanging(string value); + partial void OnListTypeChanged(); + partial void OnIsCheckChanging(string value); + partial void OnIsCheckChanged(); + partial void OnExportEntrustmentFormChanging(string value); + partial void OnExportEntrustmentFormChanged(); + partial void OnReexaminationReportNoChanging(string value); + partial void OnReexaminationReportNoChanged(); + partial void OnEmergencyReleaseNoChanging(string value); + partial void OnEmergencyReleaseNoChanged(); + partial void OnAcceptanceResultChanging(string value); + partial void OnAcceptanceResultChanged(); + partial void OnCertificateNoChanging(string value); + partial void OnCertificateNoChanged(); + partial void OnTypeNameChanging(string value); + partial void OnTypeNameChanged(); + partial void OnSumTypeNameChanging(string value); + partial void OnSumTypeNameChanged(); + partial void OnSP_MaterialQualityNOChanging(string value); + partial void OnSP_MaterialQualityNOChanged(); + partial void OnSP_Thickness1Changing(string value); + partial void OnSP_Thickness1Changed(); + partial void OnSP_Thickness2Changing(string value); + partial void OnSP_Thickness2Changed(); + partial void OnSP_Thickness3Changing(string value); + partial void OnSP_Thickness3Changed(); + partial void OnSP_Thickness4Changing(string value); + partial void OnSP_Thickness4Changed(); + partial void OnSP_PipeDiameterInChanging(string value); + partial void OnSP_PipeDiameterInChanged(); + partial void OnSP_PipeDiameterOutChanging(string value); + partial void OnSP_PipeDiameterOutChanged(); + partial void OnSP_LengthChanging(string value); + partial void OnSP_LengthChanged(); + partial void OnSP_RemarksChanging(string value); + partial void OnSP_RemarksChanged(); + partial void OnPM_ContractNoChanging(string value); + partial void OnPM_ContractNoChanged(); + partial void OnPM_PipeDiameterOutChanging(string value); + partial void OnPM_PipeDiameterOutChanged(); + partial void OnPM_PipeDiameterInChanging(string value); + partial void OnPM_PipeDiameterInChanged(); + partial void OnPM_ThicknessChanging(string value); + partial void OnPM_ThicknessChanged(); + partial void OnPM_OtherChanging(string value); + partial void OnPM_OtherChanged(); + partial void OnPM_AppearanceChanging(string value); + partial void OnPM_AppearanceChanged(); + partial void OnIM_SizeDeviationChanging(string value); + partial void OnIM_SizeDeviationChanged(); + partial void OnIM_OtherDeviationChanging(string value); + partial void OnIM_OtherDeviationChanged(); + partial void OnIM_AppearanceChanging(string value); + partial void OnIM_AppearanceChanged(); + partial void OnIM_OtherCheckChanging(string value); + partial void OnIM_OtherCheckChanged(); + partial void OnCheckManChanging(string value); + partial void OnCheckManChanged(); + partial void OnCheckDateChanging(System.Nullable value); + partial void OnCheckDateChanged(); + partial void OnLiableManChanging(string value); + partial void OnLiableManChanged(); + partial void OnLiabledateChanging(System.Nullable value); + partial void OnLiabledateChanged(); + partial void OnME_NDTNameChanging(string value); + partial void OnME_NDTNameChanged(); + partial void OnME_NDTStandardChanging(string value); + partial void OnME_NDTStandardChanged(); + partial void OnME_NDTRNameChanging(string value); + partial void OnME_NDTRNameChanged(); + partial void OnME_QualifiedRequirementChanging(string value); + partial void OnME_QualifiedRequirementChanged(); + partial void OnME_CheckThingNOChanging(string value); + partial void OnME_CheckThingNOChanged(); + partial void OnME_HeatStatusChanging(string value); + partial void OnME_HeatStatusChanged(); + partial void OnME_EntrustUnitChanging(string value); + partial void OnME_EntrustUnitChanged(); + partial void OnME_EntrustManChanging(string value); + partial void OnME_EntrustManChanged(); + partial void OnME_EntrustDateChanging(System.Nullable value); + partial void OnME_EntrustDateChanged(); + partial void OnME_TestingUnitChanging(string value); + partial void OnME_TestingUnitChanged(); + partial void OnME_TestingManChanging(string value); + partial void OnME_TestingManChanged(); + partial void OnME_TestingDateChanging(System.Nullable value); + partial void OnME_TestingDateChanged(); + partial void OnIsa_UnitChanging(string value); + partial void OnIsa_UnitChanged(); + partial void OnIsa_softChanging(string value); + partial void OnIsa_softChanged(); + partial void OnIsa_AcceptChanging(string value); + partial void OnIsa_AcceptChanged(); + partial void OnIsa_MutilationChanging(string value); + partial void OnIsa_MutilationChanged(); + partial void OnIsa_DeliveryManChanging(string value); + partial void OnIsa_DeliveryManChanged(); + partial void OnIsa_CheckManChanging(string value); + partial void OnIsa_CheckManChanged(); + partial void OnIsa_RemarksChanging(string value); + partial void OnIsa_RemarksChanged(); + partial void OnIsa_RecordManChanging(string value); + partial void OnIsa_RecordManChanged(); + partial void OnIsa_RecordDateChanging(System.Nullable value); + partial void OnIsa_RecordDateChanged(); + partial void OnPStCodeChanging(string value); + partial void OnPStCodeChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnWmaterialnameChanging(string value); + partial void OnWmaterialnameChanged(); + partial void OnWspecificationtypeChanging(string value); + partial void OnWspecificationtypeChanged(); + partial void OnWstandardspecificationChanging(string value); + partial void OnWstandardspecificationChanged(); + partial void OnWMaterialQualityChanging(string value); + partial void OnWMaterialQualityChanged(); + partial void OnIsa_hegeChanging(string value); + partial void OnIsa_hegeChanged(); + partial void OnW_lydwChanging(string value); + partial void OnW_lydwChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnUir_tagChanging(string value); + partial void OnUir_tagChanged(); + partial void OnUir_contractnoChanging(string value); + partial void OnUir_contractnoChanged(); + partial void OnUir_boxnumChanging(string value); + partial void OnUir_boxnumChanged(); + partial void OnUir_boxcodeChanging(string value); + partial void OnUir_boxcodeChanged(); + partial void OnUir_boxsheetChanging(string value); + partial void OnUir_boxsheetChanged(); + partial void OnShueChanging(System.Nullable value); + partial void OnShueChanged(); + partial void OnBhsjeChanging(System.Nullable value); + partial void OnBhsjeChanged(); + #endregion + + public Cl_W_MaterialStorageS() + { + this._Base_Project = default(EntityRef); + this._CL_B_Material = default(EntityRef); + this._Cl_W_MaterialStorageM = default(EntityRef); + this._CL_W_UIRecords = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string StorageSheetMID + { + get + { + return this._StorageSheetMID; + } + set + { + if ((this._StorageSheetMID != value)) + { + if (this._Cl_W_MaterialStorageM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnStorageSheetMIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetMID = value; + this.SendPropertyChanged("StorageSheetMID"); + this.OnStorageSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string StorageSheetSID + { + get + { + return this._StorageSheetSID; + } + set + { + if ((this._StorageSheetSID != value)) + { + this.OnStorageSheetSIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetSID = value; + this.SendPropertyChanged("StorageSheetSID"); + this.OnStorageSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + if (this._CL_B_Material.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorehouseName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string StorehouseName + { + get + { + return this._StorehouseName; + } + set + { + if ((this._StorehouseName != value)) + { + this.OnStorehouseNameChanging(value); + this.SendPropertyChanging(); + this._StorehouseName = value; + this.SendPropertyChanged("StorehouseName"); + this.OnStorehouseNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageQuantity", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable StorageQuantity + { + get + { + return this._StorageQuantity; + } + set + { + if ((this._StorageQuantity != value)) + { + this.OnStorageQuantityChanging(value); + this.SendPropertyChanging(); + this._StorageQuantity = value; + this.SendPropertyChanged("StorageQuantity"); + this.OnStorageQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Manufacturer", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string Manufacturer + { + get + { + return this._Manufacturer; + } + set + { + if ((this._Manufacturer != value)) + { + this.OnManufacturerChanging(value); + this.SendPropertyChanging(); + this._Manufacturer = value; + this.SendPropertyChanged("Manufacturer"); + this.OnManufacturerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable TheoryWeight + { + get + { + return this._TheoryWeight; + } + set + { + if ((this._TheoryWeight != value)) + { + this.OnTheoryWeightChanging(value); + this.SendPropertyChanging(); + this._TheoryWeight = value; + this.SendPropertyChanged("TheoryWeight"); + this.OnTheoryWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWeight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ActualWeight + { + get + { + return this._ActualWeight; + } + set + { + if ((this._ActualWeight != value)) + { + this.OnActualWeightChanging(value); + this.SendPropertyChanging(); + this._ActualWeight = value; + this.SendPropertyChanged("ActualWeight"); + this.OnActualWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutStockProof", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string OutStockProof + { + get + { + return this._OutStockProof; + } + set + { + if ((this._OutStockProof != value)) + { + this.OnOutStockProofChanging(value); + this.SendPropertyChanging(); + this._OutStockProof = value; + this.SendPropertyChanged("OutStockProof"); + this.OnOutStockProofChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutStockPrice", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OutStockPrice + { + get + { + return this._OutStockPrice; + } + set + { + if ((this._OutStockPrice != value)) + { + this.OnOutStockPriceChanging(value); + this.SendPropertyChanging(); + this._OutStockPrice = value; + this.SendPropertyChanged("OutStockPrice"); + this.OnOutStockPriceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupplyChannel", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SupplyChannel + { + get + { + return this._SupplyChannel; + } + set + { + if ((this._SupplyChannel != value)) + { + this.OnSupplyChannelChanging(value); + this.SendPropertyChanging(); + this._SupplyChannel = value; + this.SendPropertyChanged("SupplyChannel"); + this.OnSupplyChannelChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NeedMeters", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable NeedMeters + { + get + { + return this._NeedMeters; + } + set + { + if ((this._NeedMeters != value)) + { + this.OnNeedMetersChanging(value); + this.SendPropertyChanging(); + this._NeedMeters = value; + this.SendPropertyChanged("NeedMeters"); + this.OnNeedMetersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeightT", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable TheoryWeightT + { + get + { + return this._TheoryWeightT; + } + set + { + if ((this._TheoryWeightT != value)) + { + this.OnTheoryWeightTChanging(value); + this.SendPropertyChanging(); + this._TheoryWeightT = value; + this.SendPropertyChanged("TheoryWeightT"); + this.OnTheoryWeightTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualMeters", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ActualMeters + { + get + { + return this._ActualMeters; + } + set + { + if ((this._ActualMeters != value)) + { + this.OnActualMetersChanging(value); + this.SendPropertyChanging(); + this._ActualMeters = value; + this.SendPropertyChanged("ActualMeters"); + this.OnActualMetersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWeight2", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ActualWeight2 + { + get + { + return this._ActualWeight2; + } + set + { + if ((this._ActualWeight2 != value)) + { + this.OnActualWeight2Changing(value); + this.SendPropertyChanging(); + this._ActualWeight2 = value; + this.SendPropertyChanged("ActualWeight2"); + this.OnActualWeight2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WDRemarks", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string WDRemarks + { + get + { + return this._WDRemarks; + } + set + { + if ((this._WDRemarks != value)) + { + this.OnWDRemarksChanging(value); + this.SendPropertyChanging(); + this._WDRemarks = value; + this.SendPropertyChanged("WDRemarks"); + this.OnWDRemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificatesFactoryNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string CertificatesFactoryNo + { + get + { + return this._CertificatesFactoryNo; + } + set + { + if ((this._CertificatesFactoryNo != value)) + { + this.OnCertificatesFactoryNoChanging(value); + this.SendPropertyChanging(); + this._CertificatesFactoryNo = value; + this.SendPropertyChanged("CertificatesFactoryNo"); + this.OnCertificatesFactoryNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FurnaceBatchNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string FurnaceBatchNo + { + get + { + return this._FurnaceBatchNo; + } + set + { + if ((this._FurnaceBatchNo != value)) + { + this.OnFurnaceBatchNoChanging(value); + this.SendPropertyChanging(); + this._FurnaceBatchNo = value; + this.SendPropertyChanged("FurnaceBatchNo"); + this.OnFurnaceBatchNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Warranty", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Warranty + { + get + { + return this._Warranty; + } + set + { + if ((this._Warranty != value)) + { + this.OnWarrantyChanging(value); + this.SendPropertyChanging(); + this._Warranty = value; + this.SendPropertyChanged("Warranty"); + this.OnWarrantyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableOptions", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RecordTableOptions + { + get + { + return this._RecordTableOptions; + } + set + { + if ((this._RecordTableOptions != value)) + { + this.OnRecordTableOptionsChanging(value); + this.SendPropertyChanging(); + this._RecordTableOptions = value; + this.SendPropertyChanged("RecordTableOptions"); + this.OnRecordTableOptionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableExport", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RecordTableExport + { + get + { + return this._RecordTableExport; + } + set + { + if ((this._RecordTableExport != value)) + { + this.OnRecordTableExportChanging(value); + this.SendPropertyChanging(); + this._RecordTableExport = value; + this.SendPropertyChanged("RecordTableExport"); + this.OnRecordTableExportChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ListType", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ListType + { + get + { + return this._ListType; + } + set + { + if ((this._ListType != value)) + { + this.OnListTypeChanging(value); + this.SendPropertyChanging(); + this._ListType = value; + this.SendPropertyChanged("ListType"); + this.OnListTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheck", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsCheck + { + get + { + return this._IsCheck; + } + set + { + if ((this._IsCheck != value)) + { + this.OnIsCheckChanging(value); + this.SendPropertyChanging(); + this._IsCheck = value; + this.SendPropertyChanged("IsCheck"); + this.OnIsCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExportEntrustmentForm", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ExportEntrustmentForm + { + get + { + return this._ExportEntrustmentForm; + } + set + { + if ((this._ExportEntrustmentForm != value)) + { + this.OnExportEntrustmentFormChanging(value); + this.SendPropertyChanging(); + this._ExportEntrustmentForm = value; + this.SendPropertyChanged("ExportEntrustmentForm"); + this.OnExportEntrustmentFormChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReexaminationReportNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ReexaminationReportNo + { + get + { + return this._ReexaminationReportNo; + } + set + { + if ((this._ReexaminationReportNo != value)) + { + this.OnReexaminationReportNoChanging(value); + this.SendPropertyChanging(); + this._ReexaminationReportNo = value; + this.SendPropertyChanged("ReexaminationReportNo"); + this.OnReexaminationReportNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyReleaseNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string EmergencyReleaseNo + { + get + { + return this._EmergencyReleaseNo; + } + set + { + if ((this._EmergencyReleaseNo != value)) + { + this.OnEmergencyReleaseNoChanging(value); + this.SendPropertyChanging(); + this._EmergencyReleaseNo = value; + this.SendPropertyChanged("EmergencyReleaseNo"); + this.OnEmergencyReleaseNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcceptanceResult", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string AcceptanceResult + { + get + { + return this._AcceptanceResult; + } + set + { + if ((this._AcceptanceResult != value)) + { + this.OnAcceptanceResultChanging(value); + this.SendPropertyChanging(); + this._AcceptanceResult = value; + this.SendPropertyChanged("AcceptanceResult"); + this.OnAcceptanceResultChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificateNo + { + get + { + return this._CertificateNo; + } + set + { + if ((this._CertificateNo != value)) + { + this.OnCertificateNoChanging(value); + this.SendPropertyChanging(); + this._CertificateNo = value; + this.SendPropertyChanged("CertificateNo"); + this.OnCertificateNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string TypeName + { + get + { + return this._TypeName; + } + set + { + if ((this._TypeName != value)) + { + this.OnTypeNameChanging(value); + this.SendPropertyChanging(); + this._TypeName = value; + this.SendPropertyChanged("TypeName"); + this.OnTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SumTypeName + { + get + { + return this._SumTypeName; + } + set + { + if ((this._SumTypeName != value)) + { + this.OnSumTypeNameChanging(value); + this.SendPropertyChanging(); + this._SumTypeName = value; + this.SendPropertyChanged("SumTypeName"); + this.OnSumTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_MaterialQualityNO", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SP_MaterialQualityNO + { + get + { + return this._SP_MaterialQualityNO; + } + set + { + if ((this._SP_MaterialQualityNO != value)) + { + this.OnSP_MaterialQualityNOChanging(value); + this.SendPropertyChanging(); + this._SP_MaterialQualityNO = value; + this.SendPropertyChanged("SP_MaterialQualityNO"); + this.OnSP_MaterialQualityNOChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness1", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness1 + { + get + { + return this._SP_Thickness1; + } + set + { + if ((this._SP_Thickness1 != value)) + { + this.OnSP_Thickness1Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness1 = value; + this.SendPropertyChanged("SP_Thickness1"); + this.OnSP_Thickness1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness2", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness2 + { + get + { + return this._SP_Thickness2; + } + set + { + if ((this._SP_Thickness2 != value)) + { + this.OnSP_Thickness2Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness2 = value; + this.SendPropertyChanged("SP_Thickness2"); + this.OnSP_Thickness2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness3", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness3 + { + get + { + return this._SP_Thickness3; + } + set + { + if ((this._SP_Thickness3 != value)) + { + this.OnSP_Thickness3Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness3 = value; + this.SendPropertyChanged("SP_Thickness3"); + this.OnSP_Thickness3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness4", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness4 + { + get + { + return this._SP_Thickness4; + } + set + { + if ((this._SP_Thickness4 != value)) + { + this.OnSP_Thickness4Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness4 = value; + this.SendPropertyChanged("SP_Thickness4"); + this.OnSP_Thickness4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_PipeDiameterIn", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_PipeDiameterIn + { + get + { + return this._SP_PipeDiameterIn; + } + set + { + if ((this._SP_PipeDiameterIn != value)) + { + this.OnSP_PipeDiameterInChanging(value); + this.SendPropertyChanging(); + this._SP_PipeDiameterIn = value; + this.SendPropertyChanged("SP_PipeDiameterIn"); + this.OnSP_PipeDiameterInChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_PipeDiameterOut", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_PipeDiameterOut + { + get + { + return this._SP_PipeDiameterOut; + } + set + { + if ((this._SP_PipeDiameterOut != value)) + { + this.OnSP_PipeDiameterOutChanging(value); + this.SendPropertyChanging(); + this._SP_PipeDiameterOut = value; + this.SendPropertyChanged("SP_PipeDiameterOut"); + this.OnSP_PipeDiameterOutChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Length", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Length + { + get + { + return this._SP_Length; + } + set + { + if ((this._SP_Length != value)) + { + this.OnSP_LengthChanging(value); + this.SendPropertyChanging(); + this._SP_Length = value; + this.SendPropertyChanged("SP_Length"); + this.OnSP_LengthChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Remarks", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string SP_Remarks + { + get + { + return this._SP_Remarks; + } + set + { + if ((this._SP_Remarks != value)) + { + this.OnSP_RemarksChanging(value); + this.SendPropertyChanging(); + this._SP_Remarks = value; + this.SendPropertyChanged("SP_Remarks"); + this.OnSP_RemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_ContractNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PM_ContractNo + { + get + { + return this._PM_ContractNo; + } + set + { + if ((this._PM_ContractNo != value)) + { + this.OnPM_ContractNoChanging(value); + this.SendPropertyChanging(); + this._PM_ContractNo = value; + this.SendPropertyChanged("PM_ContractNo"); + this.OnPM_ContractNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_PipeDiameterOut", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PM_PipeDiameterOut + { + get + { + return this._PM_PipeDiameterOut; + } + set + { + if ((this._PM_PipeDiameterOut != value)) + { + this.OnPM_PipeDiameterOutChanging(value); + this.SendPropertyChanging(); + this._PM_PipeDiameterOut = value; + this.SendPropertyChanged("PM_PipeDiameterOut"); + this.OnPM_PipeDiameterOutChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_PipeDiameterIn", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PM_PipeDiameterIn + { + get + { + return this._PM_PipeDiameterIn; + } + set + { + if ((this._PM_PipeDiameterIn != value)) + { + this.OnPM_PipeDiameterInChanging(value); + this.SendPropertyChanging(); + this._PM_PipeDiameterIn = value; + this.SendPropertyChanged("PM_PipeDiameterIn"); + this.OnPM_PipeDiameterInChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Thickness", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PM_Thickness + { + get + { + return this._PM_Thickness; + } + set + { + if ((this._PM_Thickness != value)) + { + this.OnPM_ThicknessChanging(value); + this.SendPropertyChanging(); + this._PM_Thickness = value; + this.SendPropertyChanged("PM_Thickness"); + this.OnPM_ThicknessChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Other", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PM_Other + { + get + { + return this._PM_Other; + } + set + { + if ((this._PM_Other != value)) + { + this.OnPM_OtherChanging(value); + this.SendPropertyChanging(); + this._PM_Other = value; + this.SendPropertyChanged("PM_Other"); + this.OnPM_OtherChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Appearance", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string PM_Appearance + { + get + { + return this._PM_Appearance; + } + set + { + if ((this._PM_Appearance != value)) + { + this.OnPM_AppearanceChanging(value); + this.SendPropertyChanging(); + this._PM_Appearance = value; + this.SendPropertyChanged("PM_Appearance"); + this.OnPM_AppearanceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_SizeDeviation", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string IM_SizeDeviation + { + get + { + return this._IM_SizeDeviation; + } + set + { + if ((this._IM_SizeDeviation != value)) + { + this.OnIM_SizeDeviationChanging(value); + this.SendPropertyChanging(); + this._IM_SizeDeviation = value; + this.SendPropertyChanged("IM_SizeDeviation"); + this.OnIM_SizeDeviationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_OtherDeviation", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string IM_OtherDeviation + { + get + { + return this._IM_OtherDeviation; + } + set + { + if ((this._IM_OtherDeviation != value)) + { + this.OnIM_OtherDeviationChanging(value); + this.SendPropertyChanging(); + this._IM_OtherDeviation = value; + this.SendPropertyChanged("IM_OtherDeviation"); + this.OnIM_OtherDeviationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_Appearance", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string IM_Appearance + { + get + { + return this._IM_Appearance; + } + set + { + if ((this._IM_Appearance != value)) + { + this.OnIM_AppearanceChanging(value); + this.SendPropertyChanging(); + this._IM_Appearance = value; + this.SendPropertyChanged("IM_Appearance"); + this.OnIM_AppearanceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_OtherCheck", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string IM_OtherCheck + { + get + { + return this._IM_OtherCheck; + } + set + { + if ((this._IM_OtherCheck != value)) + { + this.OnIM_OtherCheckChanging(value); + this.SendPropertyChanging(); + this._IM_OtherCheck = value; + this.SendPropertyChanged("IM_OtherCheck"); + this.OnIM_OtherCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string CheckMan + { + get + { + return this._CheckMan; + } + set + { + if ((this._CheckMan != value)) + { + this.OnCheckManChanging(value); + this.SendPropertyChanging(); + this._CheckMan = value; + this.SendPropertyChanged("CheckMan"); + this.OnCheckManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable CheckDate + { + get + { + return this._CheckDate; + } + set + { + if ((this._CheckDate != value)) + { + this.OnCheckDateChanging(value); + this.SendPropertyChanging(); + this._CheckDate = value; + this.SendPropertyChanged("CheckDate"); + this.OnCheckDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LiableMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string LiableMan + { + get + { + return this._LiableMan; + } + set + { + if ((this._LiableMan != value)) + { + this.OnLiableManChanging(value); + this.SendPropertyChanging(); + this._LiableMan = value; + this.SendPropertyChanged("LiableMan"); + this.OnLiableManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Liabledate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Liabledate + { + get + { + return this._Liabledate; + } + set + { + if ((this._Liabledate != value)) + { + this.OnLiabledateChanging(value); + this.SendPropertyChanging(); + this._Liabledate = value; + this.SendPropertyChanged("Liabledate"); + this.OnLiabledateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_NDTName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_NDTName + { + get + { + return this._ME_NDTName; + } + set + { + if ((this._ME_NDTName != value)) + { + this.OnME_NDTNameChanging(value); + this.SendPropertyChanging(); + this._ME_NDTName = value; + this.SendPropertyChanged("ME_NDTName"); + this.OnME_NDTNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_NDTStandard", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_NDTStandard + { + get + { + return this._ME_NDTStandard; + } + set + { + if ((this._ME_NDTStandard != value)) + { + this.OnME_NDTStandardChanging(value); + this.SendPropertyChanging(); + this._ME_NDTStandard = value; + this.SendPropertyChanged("ME_NDTStandard"); + this.OnME_NDTStandardChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_NDTRName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_NDTRName + { + get + { + return this._ME_NDTRName; + } + set + { + if ((this._ME_NDTRName != value)) + { + this.OnME_NDTRNameChanging(value); + this.SendPropertyChanging(); + this._ME_NDTRName = value; + this.SendPropertyChanged("ME_NDTRName"); + this.OnME_NDTRNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_QualifiedRequirement", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_QualifiedRequirement + { + get + { + return this._ME_QualifiedRequirement; + } + set + { + if ((this._ME_QualifiedRequirement != value)) + { + this.OnME_QualifiedRequirementChanging(value); + this.SendPropertyChanging(); + this._ME_QualifiedRequirement = value; + this.SendPropertyChanged("ME_QualifiedRequirement"); + this.OnME_QualifiedRequirementChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_CheckThingNO", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_CheckThingNO + { + get + { + return this._ME_CheckThingNO; + } + set + { + if ((this._ME_CheckThingNO != value)) + { + this.OnME_CheckThingNOChanging(value); + this.SendPropertyChanging(); + this._ME_CheckThingNO = value; + this.SendPropertyChanged("ME_CheckThingNO"); + this.OnME_CheckThingNOChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_HeatStatus", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_HeatStatus + { + get + { + return this._ME_HeatStatus; + } + set + { + if ((this._ME_HeatStatus != value)) + { + this.OnME_HeatStatusChanging(value); + this.SendPropertyChanging(); + this._ME_HeatStatus = value; + this.SendPropertyChanged("ME_HeatStatus"); + this.OnME_HeatStatusChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_EntrustUnit", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_EntrustUnit + { + get + { + return this._ME_EntrustUnit; + } + set + { + if ((this._ME_EntrustUnit != value)) + { + this.OnME_EntrustUnitChanging(value); + this.SendPropertyChanging(); + this._ME_EntrustUnit = value; + this.SendPropertyChanged("ME_EntrustUnit"); + this.OnME_EntrustUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_EntrustMan", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_EntrustMan + { + get + { + return this._ME_EntrustMan; + } + set + { + if ((this._ME_EntrustMan != value)) + { + this.OnME_EntrustManChanging(value); + this.SendPropertyChanging(); + this._ME_EntrustMan = value; + this.SendPropertyChanged("ME_EntrustMan"); + this.OnME_EntrustManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_EntrustDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ME_EntrustDate + { + get + { + return this._ME_EntrustDate; + } + set + { + if ((this._ME_EntrustDate != value)) + { + this.OnME_EntrustDateChanging(value); + this.SendPropertyChanging(); + this._ME_EntrustDate = value; + this.SendPropertyChanged("ME_EntrustDate"); + this.OnME_EntrustDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_TestingUnit", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_TestingUnit + { + get + { + return this._ME_TestingUnit; + } + set + { + if ((this._ME_TestingUnit != value)) + { + this.OnME_TestingUnitChanging(value); + this.SendPropertyChanging(); + this._ME_TestingUnit = value; + this.SendPropertyChanged("ME_TestingUnit"); + this.OnME_TestingUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_TestingMan", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_TestingMan + { + get + { + return this._ME_TestingMan; + } + set + { + if ((this._ME_TestingMan != value)) + { + this.OnME_TestingManChanging(value); + this.SendPropertyChanging(); + this._ME_TestingMan = value; + this.SendPropertyChanged("ME_TestingMan"); + this.OnME_TestingManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_TestingDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ME_TestingDate + { + get + { + return this._ME_TestingDate; + } + set + { + if ((this._ME_TestingDate != value)) + { + this.OnME_TestingDateChanging(value); + this.SendPropertyChanging(); + this._ME_TestingDate = value; + this.SendPropertyChanged("ME_TestingDate"); + this.OnME_TestingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Unit", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Unit + { + get + { + return this._Isa_Unit; + } + set + { + if ((this._Isa_Unit != value)) + { + this.OnIsa_UnitChanging(value); + this.SendPropertyChanging(); + this._Isa_Unit = value; + this.SendPropertyChanged("Isa_Unit"); + this.OnIsa_UnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_soft", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Isa_soft + { + get + { + return this._Isa_soft; + } + set + { + if ((this._Isa_soft != value)) + { + this.OnIsa_softChanging(value); + this.SendPropertyChanging(); + this._Isa_soft = value; + this.SendPropertyChanged("Isa_soft"); + this.OnIsa_softChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Accept", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Accept + { + get + { + return this._Isa_Accept; + } + set + { + if ((this._Isa_Accept != value)) + { + this.OnIsa_AcceptChanging(value); + this.SendPropertyChanging(); + this._Isa_Accept = value; + this.SendPropertyChanged("Isa_Accept"); + this.OnIsa_AcceptChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Mutilation", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Mutilation + { + get + { + return this._Isa_Mutilation; + } + set + { + if ((this._Isa_Mutilation != value)) + { + this.OnIsa_MutilationChanging(value); + this.SendPropertyChanging(); + this._Isa_Mutilation = value; + this.SendPropertyChanged("Isa_Mutilation"); + this.OnIsa_MutilationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_DeliveryMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_DeliveryMan + { + get + { + return this._Isa_DeliveryMan; + } + set + { + if ((this._Isa_DeliveryMan != value)) + { + this.OnIsa_DeliveryManChanging(value); + this.SendPropertyChanging(); + this._Isa_DeliveryMan = value; + this.SendPropertyChanged("Isa_DeliveryMan"); + this.OnIsa_DeliveryManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_CheckMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_CheckMan + { + get + { + return this._Isa_CheckMan; + } + set + { + if ((this._Isa_CheckMan != value)) + { + this.OnIsa_CheckManChanging(value); + this.SendPropertyChanging(); + this._Isa_CheckMan = value; + this.SendPropertyChanged("Isa_CheckMan"); + this.OnIsa_CheckManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Remarks", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Remarks + { + get + { + return this._Isa_Remarks; + } + set + { + if ((this._Isa_Remarks != value)) + { + this.OnIsa_RemarksChanging(value); + this.SendPropertyChanging(); + this._Isa_Remarks = value; + this.SendPropertyChanged("Isa_Remarks"); + this.OnIsa_RemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_RecordMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_RecordMan + { + get + { + return this._Isa_RecordMan; + } + set + { + if ((this._Isa_RecordMan != value)) + { + this.OnIsa_RecordManChanging(value); + this.SendPropertyChanging(); + this._Isa_RecordMan = value; + this.SendPropertyChanged("Isa_RecordMan"); + this.OnIsa_RecordManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_RecordDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Isa_RecordDate + { + get + { + return this._Isa_RecordDate; + } + set + { + if ((this._Isa_RecordDate != value)) + { + this.OnIsa_RecordDateChanging(value); + this.SendPropertyChanging(); + this._Isa_RecordDate = value; + this.SendPropertyChanged("Isa_RecordDate"); + this.OnIsa_RecordDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PStCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PStCode + { + get + { + return this._PStCode; + } + set + { + if ((this._PStCode != value)) + { + this.OnPStCodeChanging(value); + this.SendPropertyChanging(); + this._PStCode = value; + this.SendPropertyChanged("PStCode"); + this.OnPStCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Wmaterialname", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string Wmaterialname + { + get + { + return this._Wmaterialname; + } + set + { + if ((this._Wmaterialname != value)) + { + this.OnWmaterialnameChanging(value); + this.SendPropertyChanging(); + this._Wmaterialname = value; + this.SendPropertyChanged("Wmaterialname"); + this.OnWmaterialnameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Wspecificationtype", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string Wspecificationtype + { + get + { + return this._Wspecificationtype; + } + set + { + if ((this._Wspecificationtype != value)) + { + this.OnWspecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Wspecificationtype = value; + this.SendPropertyChanged("Wspecificationtype"); + this.OnWspecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Wstandardspecification", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string Wstandardspecification + { + get + { + return this._Wstandardspecification; + } + set + { + if ((this._Wstandardspecification != value)) + { + this.OnWstandardspecificationChanging(value); + this.SendPropertyChanging(); + this._Wstandardspecification = value; + this.SendPropertyChanged("Wstandardspecification"); + this.OnWstandardspecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WMaterialQuality", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string WMaterialQuality + { + get + { + return this._WMaterialQuality; + } + set + { + if ((this._WMaterialQuality != value)) + { + this.OnWMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._WMaterialQuality = value; + this.SendPropertyChanged("WMaterialQuality"); + this.OnWMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_hege", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_hege + { + get + { + return this._Isa_hege; + } + set + { + if ((this._Isa_hege != value)) + { + this.OnIsa_hegeChanging(value); + this.SendPropertyChanging(); + this._Isa_hege = value; + this.SendPropertyChanged("Isa_hege"); + this.OnIsa_hegeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_W_lydw", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string W_lydw + { + get + { + return this._W_lydw; + } + set + { + if ((this._W_lydw != value)) + { + this.OnW_lydwChanging(value); + this.SendPropertyChanging(); + this._W_lydw = value; + this.SendPropertyChanged("W_lydw"); + this.OnW_lydwChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="uir_tag", Storage="_Uir_tag", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Uir_tag + { + get + { + return this._Uir_tag; + } + set + { + if ((this._Uir_tag != value)) + { + this.OnUir_tagChanging(value); + this.SendPropertyChanging(); + this._Uir_tag = value; + this.SendPropertyChanged("Uir_tag"); + this.OnUir_tagChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="uir_contractno", Storage="_Uir_contractno", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Uir_contractno + { + get + { + return this._Uir_contractno; + } + set + { + if ((this._Uir_contractno != value)) + { + this.OnUir_contractnoChanging(value); + this.SendPropertyChanging(); + this._Uir_contractno = value; + this.SendPropertyChanged("Uir_contractno"); + this.OnUir_contractnoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="uir_boxnum", Storage="_Uir_boxnum", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Uir_boxnum + { + get + { + return this._Uir_boxnum; + } + set + { + if ((this._Uir_boxnum != value)) + { + this.OnUir_boxnumChanging(value); + this.SendPropertyChanging(); + this._Uir_boxnum = value; + this.SendPropertyChanged("Uir_boxnum"); + this.OnUir_boxnumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="uir_boxcode", Storage="_Uir_boxcode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Uir_boxcode + { + get + { + return this._Uir_boxcode; + } + set + { + if ((this._Uir_boxcode != value)) + { + this.OnUir_boxcodeChanging(value); + this.SendPropertyChanging(); + this._Uir_boxcode = value; + this.SendPropertyChanged("Uir_boxcode"); + this.OnUir_boxcodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="uir_boxsheet", Storage="_Uir_boxsheet", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Uir_boxsheet + { + get + { + return this._Uir_boxsheet; + } + set + { + if ((this._Uir_boxsheet != value)) + { + this.OnUir_boxsheetChanging(value); + this.SendPropertyChanging(); + this._Uir_boxsheet = value; + this.SendPropertyChanged("Uir_boxsheet"); + this.OnUir_boxsheetChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="shue", Storage="_Shue", DbType="Decimal(15,2)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Shue + { + get + { + return this._Shue; + } + set + { + if ((this._Shue != value)) + { + this.OnShueChanging(value); + this.SendPropertyChanging(); + this._Shue = value; + this.SendPropertyChanged("Shue"); + this.OnShueChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="bhsje", Storage="_Bhsje", DbType="Decimal(15,2)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Bhsje + { + get + { + return this._Bhsje; + } + set + { + if ((this._Bhsje != value)) + { + this.OnBhsjeChanging(value); + this.SendPropertyChanging(); + this._Bhsje = value; + this.SendPropertyChanged("Bhsje"); + this.OnBhsjeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAS_REFERENCE_BASE_PRO", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.Cl_W_MaterialStorageS.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialStorageS.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAS_REFERENCE_CL_B_MAT", Storage="_CL_B_Material", ThisKey="MaterialID", OtherKey="MaterialID", IsForeignKey=true)] + public CL_B_Material CL_B_Material + { + get + { + return this._CL_B_Material.Entity; + } + set + { + CL_B_Material previousValue = this._CL_B_Material.Entity; + if (((previousValue != value) + || (this._CL_B_Material.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._CL_B_Material.Entity = null; + previousValue.Cl_W_MaterialStorageS.Remove(this); + } + this._CL_B_Material.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialStorageS.Add(this); + this._MaterialID = value.MaterialID; + } + else + { + this._MaterialID = default(string); + } + this.SendPropertyChanged("CL_B_Material"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_CL_W_MAS", Storage="_Cl_W_MaterialStorageM", ThisKey="StorageSheetMID", OtherKey="StorageSheetMID", IsForeignKey=true)] + public Cl_W_MaterialStorageM Cl_W_MaterialStorageM + { + get + { + return this._Cl_W_MaterialStorageM.Entity; + } + set + { + Cl_W_MaterialStorageM previousValue = this._Cl_W_MaterialStorageM.Entity; + if (((previousValue != value) + || (this._Cl_W_MaterialStorageM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_MaterialStorageM.Entity = null; + previousValue.Cl_W_MaterialStorageS.Remove(this); + } + this._Cl_W_MaterialStorageM.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialStorageS.Add(this); + this._StorageSheetMID = value.StorageSheetMID; + } + else + { + this._StorageSheetMID = default(string); + } + this.SendPropertyChanged("Cl_W_MaterialStorageM"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_UIR_REFERENCE_CL_W_MAT", Storage="_CL_W_UIRecords", ThisKey="StorageSheetSID", OtherKey="StorageSheetSID", IsUnique=true, IsForeignKey=false, DeleteRule="NO ACTION")] + public CL_W_UIRecords CL_W_UIRecords + { + get + { + return this._CL_W_UIRecords.Entity; + } + set + { + CL_W_UIRecords previousValue = this._CL_W_UIRecords.Entity; + if (((previousValue != value) + || (this._CL_W_UIRecords.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._CL_W_UIRecords.Entity = null; + previousValue.Cl_W_MaterialStorageS = null; + } + this._CL_W_UIRecords.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialStorageS = this; + } + this.SendPropertyChanged("CL_W_UIRecords"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_MaterialStorageS_hj")] + public partial class Cl_W_MaterialStorageS_hj : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _StorageHJSID; + + private string _StorageHJMID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private string _StorehouseName; + + private System.Nullable _StorageQuantity; + + private string _Manufacturer; + + private System.Nullable _TheoryWeight; + + private System.Nullable _ActualWeight; + + private string _OutStockProof; + + private System.Nullable _OutStockPrice; + + private string _SupplyChannel; + + private System.Nullable _NeedMeters; + + private System.Nullable _TheoryWeightT; + + private System.Nullable _ActualMeters; + + private System.Nullable _ActualWeight2; + + private string _WDRemarks; + + private string _CertificatesFactoryNo; + + private string _FurnaceBatchNo; + + private System.Nullable _Warranty; + + private string _RecordTableOptions; + + private string _RecordTableExport; + + private string _ListType; + + private string _IsCheck; + + private string _ExportEntrustmentForm; + + private string _ReexaminationReportNo; + + private string _EmergencyReleaseNo; + + private string _AcceptanceResult; + + private string _CertificateNo; + + private string _TypeName; + + private string _SumTypeName; + + private string _SP_MaterialQualityNO; + + private string _SP_Thickness1; + + private string _SP_Thickness2; + + private string _SP_Thickness3; + + private string _SP_Thickness4; + + private string _SP_PipeDiameterIn; + + private string _SP_PipeDiameterOut; + + private string _SP_Length; + + private string _SP_Remarks; + + private string _PM_ContractNo; + + private System.Nullable _PM_PipeDiameterOut; + + private System.Nullable _PM_PipeDiameterIn; + + private System.Nullable _PM_Thickness; + + private System.Nullable _PM_Other; + + private string _PM_Appearance; + + private System.Nullable _IM_SizeDeviation; + + private System.Nullable _IM_OtherDeviation; + + private string _IM_Appearance; + + private string _IM_OtherCheck; + + private string _CheckMan; + + private System.Nullable _CheckDate; + + private string _LiableMan; + + private System.Nullable _Liabledate; + + private string _ME_NDTName; + + private string _ME_NDTStandard; + + private string _ME_NDTRName; + + private string _ME_QualifiedRequirement; + + private string _ME_CheckThingNO; + + private string _ME_HeatStatus; + + private string _ME_EntrustUnit; + + private string _ME_EntrustMan; + + private System.Nullable _ME_EntrustDate; + + private string _ME_TestingUnit; + + private string _ME_TestingMan; + + private System.Nullable _ME_TestingDate; + + private string _Isa_Unit; + + private string _Isa_soft; + + private string _Isa_Accept; + + private string _Isa_Mutilation; + + private string _Isa_DeliveryMan; + + private string _Isa_CheckMan; + + private string _Isa_Remarks; + + private string _Isa_RecordMan; + + private System.Nullable _Isa_RecordDate; + + private string _PStCode; + + private string _SystemCode; + + private string _StorageSheetSID; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Cl_W_MaterialStoragem_hj; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnStorageHJSIDChanging(string value); + partial void OnStorageHJSIDChanged(); + partial void OnStorageHJMIDChanging(string value); + partial void OnStorageHJMIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnStorehouseNameChanging(string value); + partial void OnStorehouseNameChanged(); + partial void OnStorageQuantityChanging(System.Nullable value); + partial void OnStorageQuantityChanged(); + partial void OnManufacturerChanging(string value); + partial void OnManufacturerChanged(); + partial void OnTheoryWeightChanging(System.Nullable value); + partial void OnTheoryWeightChanged(); + partial void OnActualWeightChanging(System.Nullable value); + partial void OnActualWeightChanged(); + partial void OnOutStockProofChanging(string value); + partial void OnOutStockProofChanged(); + partial void OnOutStockPriceChanging(System.Nullable value); + partial void OnOutStockPriceChanged(); + partial void OnSupplyChannelChanging(string value); + partial void OnSupplyChannelChanged(); + partial void OnNeedMetersChanging(System.Nullable value); + partial void OnNeedMetersChanged(); + partial void OnTheoryWeightTChanging(System.Nullable value); + partial void OnTheoryWeightTChanged(); + partial void OnActualMetersChanging(System.Nullable value); + partial void OnActualMetersChanged(); + partial void OnActualWeight2Changing(System.Nullable value); + partial void OnActualWeight2Changed(); + partial void OnWDRemarksChanging(string value); + partial void OnWDRemarksChanged(); + partial void OnCertificatesFactoryNoChanging(string value); + partial void OnCertificatesFactoryNoChanged(); + partial void OnFurnaceBatchNoChanging(string value); + partial void OnFurnaceBatchNoChanged(); + partial void OnWarrantyChanging(System.Nullable value); + partial void OnWarrantyChanged(); + partial void OnRecordTableOptionsChanging(string value); + partial void OnRecordTableOptionsChanged(); + partial void OnRecordTableExportChanging(string value); + partial void OnRecordTableExportChanged(); + partial void OnListTypeChanging(string value); + partial void OnListTypeChanged(); + partial void OnIsCheckChanging(string value); + partial void OnIsCheckChanged(); + partial void OnExportEntrustmentFormChanging(string value); + partial void OnExportEntrustmentFormChanged(); + partial void OnReexaminationReportNoChanging(string value); + partial void OnReexaminationReportNoChanged(); + partial void OnEmergencyReleaseNoChanging(string value); + partial void OnEmergencyReleaseNoChanged(); + partial void OnAcceptanceResultChanging(string value); + partial void OnAcceptanceResultChanged(); + partial void OnCertificateNoChanging(string value); + partial void OnCertificateNoChanged(); + partial void OnTypeNameChanging(string value); + partial void OnTypeNameChanged(); + partial void OnSumTypeNameChanging(string value); + partial void OnSumTypeNameChanged(); + partial void OnSP_MaterialQualityNOChanging(string value); + partial void OnSP_MaterialQualityNOChanged(); + partial void OnSP_Thickness1Changing(string value); + partial void OnSP_Thickness1Changed(); + partial void OnSP_Thickness2Changing(string value); + partial void OnSP_Thickness2Changed(); + partial void OnSP_Thickness3Changing(string value); + partial void OnSP_Thickness3Changed(); + partial void OnSP_Thickness4Changing(string value); + partial void OnSP_Thickness4Changed(); + partial void OnSP_PipeDiameterInChanging(string value); + partial void OnSP_PipeDiameterInChanged(); + partial void OnSP_PipeDiameterOutChanging(string value); + partial void OnSP_PipeDiameterOutChanged(); + partial void OnSP_LengthChanging(string value); + partial void OnSP_LengthChanged(); + partial void OnSP_RemarksChanging(string value); + partial void OnSP_RemarksChanged(); + partial void OnPM_ContractNoChanging(string value); + partial void OnPM_ContractNoChanged(); + partial void OnPM_PipeDiameterOutChanging(System.Nullable value); + partial void OnPM_PipeDiameterOutChanged(); + partial void OnPM_PipeDiameterInChanging(System.Nullable value); + partial void OnPM_PipeDiameterInChanged(); + partial void OnPM_ThicknessChanging(System.Nullable value); + partial void OnPM_ThicknessChanged(); + partial void OnPM_OtherChanging(System.Nullable value); + partial void OnPM_OtherChanged(); + partial void OnPM_AppearanceChanging(string value); + partial void OnPM_AppearanceChanged(); + partial void OnIM_SizeDeviationChanging(System.Nullable value); + partial void OnIM_SizeDeviationChanged(); + partial void OnIM_OtherDeviationChanging(System.Nullable value); + partial void OnIM_OtherDeviationChanged(); + partial void OnIM_AppearanceChanging(string value); + partial void OnIM_AppearanceChanged(); + partial void OnIM_OtherCheckChanging(string value); + partial void OnIM_OtherCheckChanged(); + partial void OnCheckManChanging(string value); + partial void OnCheckManChanged(); + partial void OnCheckDateChanging(System.Nullable value); + partial void OnCheckDateChanged(); + partial void OnLiableManChanging(string value); + partial void OnLiableManChanged(); + partial void OnLiabledateChanging(System.Nullable value); + partial void OnLiabledateChanged(); + partial void OnME_NDTNameChanging(string value); + partial void OnME_NDTNameChanged(); + partial void OnME_NDTStandardChanging(string value); + partial void OnME_NDTStandardChanged(); + partial void OnME_NDTRNameChanging(string value); + partial void OnME_NDTRNameChanged(); + partial void OnME_QualifiedRequirementChanging(string value); + partial void OnME_QualifiedRequirementChanged(); + partial void OnME_CheckThingNOChanging(string value); + partial void OnME_CheckThingNOChanged(); + partial void OnME_HeatStatusChanging(string value); + partial void OnME_HeatStatusChanged(); + partial void OnME_EntrustUnitChanging(string value); + partial void OnME_EntrustUnitChanged(); + partial void OnME_EntrustManChanging(string value); + partial void OnME_EntrustManChanged(); + partial void OnME_EntrustDateChanging(System.Nullable value); + partial void OnME_EntrustDateChanged(); + partial void OnME_TestingUnitChanging(string value); + partial void OnME_TestingUnitChanged(); + partial void OnME_TestingManChanging(string value); + partial void OnME_TestingManChanged(); + partial void OnME_TestingDateChanging(System.Nullable value); + partial void OnME_TestingDateChanged(); + partial void OnIsa_UnitChanging(string value); + partial void OnIsa_UnitChanged(); + partial void OnIsa_softChanging(string value); + partial void OnIsa_softChanged(); + partial void OnIsa_AcceptChanging(string value); + partial void OnIsa_AcceptChanged(); + partial void OnIsa_MutilationChanging(string value); + partial void OnIsa_MutilationChanged(); + partial void OnIsa_DeliveryManChanging(string value); + partial void OnIsa_DeliveryManChanged(); + partial void OnIsa_CheckManChanging(string value); + partial void OnIsa_CheckManChanged(); + partial void OnIsa_RemarksChanging(string value); + partial void OnIsa_RemarksChanged(); + partial void OnIsa_RecordManChanging(string value); + partial void OnIsa_RecordManChanged(); + partial void OnIsa_RecordDateChanging(System.Nullable value); + partial void OnIsa_RecordDateChanged(); + partial void OnPStCodeChanging(string value); + partial void OnPStCodeChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnStorageSheetSIDChanging(string value); + partial void OnStorageSheetSIDChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_W_MaterialStorageS_hj() + { + this._Cl_W_MaterialStoragem_hj = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageHJSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string StorageHJSID + { + get + { + return this._StorageHJSID; + } + set + { + if ((this._StorageHJSID != value)) + { + this.OnStorageHJSIDChanging(value); + this.SendPropertyChanging(); + this._StorageHJSID = value; + this.SendPropertyChanged("StorageHJSID"); + this.OnStorageHJSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageHJMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string StorageHJMID + { + get + { + return this._StorageHJMID; + } + set + { + if ((this._StorageHJMID != value)) + { + if (this._Cl_W_MaterialStoragem_hj.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnStorageHJMIDChanging(value); + this.SendPropertyChanging(); + this._StorageHJMID = value; + this.SendPropertyChanged("StorageHJMID"); + this.OnStorageHJMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorehouseName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string StorehouseName + { + get + { + return this._StorehouseName; + } + set + { + if ((this._StorehouseName != value)) + { + this.OnStorehouseNameChanging(value); + this.SendPropertyChanging(); + this._StorehouseName = value; + this.SendPropertyChanged("StorehouseName"); + this.OnStorehouseNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageQuantity", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable StorageQuantity + { + get + { + return this._StorageQuantity; + } + set + { + if ((this._StorageQuantity != value)) + { + this.OnStorageQuantityChanging(value); + this.SendPropertyChanging(); + this._StorageQuantity = value; + this.SendPropertyChanged("StorageQuantity"); + this.OnStorageQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Manufacturer", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string Manufacturer + { + get + { + return this._Manufacturer; + } + set + { + if ((this._Manufacturer != value)) + { + this.OnManufacturerChanging(value); + this.SendPropertyChanging(); + this._Manufacturer = value; + this.SendPropertyChanged("Manufacturer"); + this.OnManufacturerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable TheoryWeight + { + get + { + return this._TheoryWeight; + } + set + { + if ((this._TheoryWeight != value)) + { + this.OnTheoryWeightChanging(value); + this.SendPropertyChanging(); + this._TheoryWeight = value; + this.SendPropertyChanged("TheoryWeight"); + this.OnTheoryWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWeight", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ActualWeight + { + get + { + return this._ActualWeight; + } + set + { + if ((this._ActualWeight != value)) + { + this.OnActualWeightChanging(value); + this.SendPropertyChanging(); + this._ActualWeight = value; + this.SendPropertyChanged("ActualWeight"); + this.OnActualWeightChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutStockProof", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string OutStockProof + { + get + { + return this._OutStockProof; + } + set + { + if ((this._OutStockProof != value)) + { + this.OnOutStockProofChanging(value); + this.SendPropertyChanging(); + this._OutStockProof = value; + this.SendPropertyChanged("OutStockProof"); + this.OnOutStockProofChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutStockPrice", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OutStockPrice + { + get + { + return this._OutStockPrice; + } + set + { + if ((this._OutStockPrice != value)) + { + this.OnOutStockPriceChanging(value); + this.SendPropertyChanging(); + this._OutStockPrice = value; + this.SendPropertyChanged("OutStockPrice"); + this.OnOutStockPriceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupplyChannel", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SupplyChannel + { + get + { + return this._SupplyChannel; + } + set + { + if ((this._SupplyChannel != value)) + { + this.OnSupplyChannelChanging(value); + this.SendPropertyChanging(); + this._SupplyChannel = value; + this.SendPropertyChanged("SupplyChannel"); + this.OnSupplyChannelChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NeedMeters", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable NeedMeters + { + get + { + return this._NeedMeters; + } + set + { + if ((this._NeedMeters != value)) + { + this.OnNeedMetersChanging(value); + this.SendPropertyChanging(); + this._NeedMeters = value; + this.SendPropertyChanged("NeedMeters"); + this.OnNeedMetersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TheoryWeightT", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable TheoryWeightT + { + get + { + return this._TheoryWeightT; + } + set + { + if ((this._TheoryWeightT != value)) + { + this.OnTheoryWeightTChanging(value); + this.SendPropertyChanging(); + this._TheoryWeightT = value; + this.SendPropertyChanged("TheoryWeightT"); + this.OnTheoryWeightTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualMeters", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ActualMeters + { + get + { + return this._ActualMeters; + } + set + { + if ((this._ActualMeters != value)) + { + this.OnActualMetersChanging(value); + this.SendPropertyChanging(); + this._ActualMeters = value; + this.SendPropertyChanged("ActualMeters"); + this.OnActualMetersChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ActualWeight2", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ActualWeight2 + { + get + { + return this._ActualWeight2; + } + set + { + if ((this._ActualWeight2 != value)) + { + this.OnActualWeight2Changing(value); + this.SendPropertyChanging(); + this._ActualWeight2 = value; + this.SendPropertyChanged("ActualWeight2"); + this.OnActualWeight2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WDRemarks", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string WDRemarks + { + get + { + return this._WDRemarks; + } + set + { + if ((this._WDRemarks != value)) + { + this.OnWDRemarksChanging(value); + this.SendPropertyChanging(); + this._WDRemarks = value; + this.SendPropertyChanged("WDRemarks"); + this.OnWDRemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificatesFactoryNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string CertificatesFactoryNo + { + get + { + return this._CertificatesFactoryNo; + } + set + { + if ((this._CertificatesFactoryNo != value)) + { + this.OnCertificatesFactoryNoChanging(value); + this.SendPropertyChanging(); + this._CertificatesFactoryNo = value; + this.SendPropertyChanged("CertificatesFactoryNo"); + this.OnCertificatesFactoryNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FurnaceBatchNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string FurnaceBatchNo + { + get + { + return this._FurnaceBatchNo; + } + set + { + if ((this._FurnaceBatchNo != value)) + { + this.OnFurnaceBatchNoChanging(value); + this.SendPropertyChanging(); + this._FurnaceBatchNo = value; + this.SendPropertyChanged("FurnaceBatchNo"); + this.OnFurnaceBatchNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Warranty", DbType="Decimal(4,0)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Warranty + { + get + { + return this._Warranty; + } + set + { + if ((this._Warranty != value)) + { + this.OnWarrantyChanging(value); + this.SendPropertyChanging(); + this._Warranty = value; + this.SendPropertyChanged("Warranty"); + this.OnWarrantyChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableOptions", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RecordTableOptions + { + get + { + return this._RecordTableOptions; + } + set + { + if ((this._RecordTableOptions != value)) + { + this.OnRecordTableOptionsChanging(value); + this.SendPropertyChanging(); + this._RecordTableOptions = value; + this.SendPropertyChanged("RecordTableOptions"); + this.OnRecordTableOptionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordTableExport", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RecordTableExport + { + get + { + return this._RecordTableExport; + } + set + { + if ((this._RecordTableExport != value)) + { + this.OnRecordTableExportChanging(value); + this.SendPropertyChanging(); + this._RecordTableExport = value; + this.SendPropertyChanged("RecordTableExport"); + this.OnRecordTableExportChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ListType", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ListType + { + get + { + return this._ListType; + } + set + { + if ((this._ListType != value)) + { + this.OnListTypeChanging(value); + this.SendPropertyChanging(); + this._ListType = value; + this.SendPropertyChanged("ListType"); + this.OnListTypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsCheck", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsCheck + { + get + { + return this._IsCheck; + } + set + { + if ((this._IsCheck != value)) + { + this.OnIsCheckChanging(value); + this.SendPropertyChanging(); + this._IsCheck = value; + this.SendPropertyChanged("IsCheck"); + this.OnIsCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExportEntrustmentForm", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ExportEntrustmentForm + { + get + { + return this._ExportEntrustmentForm; + } + set + { + if ((this._ExportEntrustmentForm != value)) + { + this.OnExportEntrustmentFormChanging(value); + this.SendPropertyChanging(); + this._ExportEntrustmentForm = value; + this.SendPropertyChanged("ExportEntrustmentForm"); + this.OnExportEntrustmentFormChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReexaminationReportNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ReexaminationReportNo + { + get + { + return this._ReexaminationReportNo; + } + set + { + if ((this._ReexaminationReportNo != value)) + { + this.OnReexaminationReportNoChanging(value); + this.SendPropertyChanging(); + this._ReexaminationReportNo = value; + this.SendPropertyChanged("ReexaminationReportNo"); + this.OnReexaminationReportNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmergencyReleaseNo", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string EmergencyReleaseNo + { + get + { + return this._EmergencyReleaseNo; + } + set + { + if ((this._EmergencyReleaseNo != value)) + { + this.OnEmergencyReleaseNoChanging(value); + this.SendPropertyChanging(); + this._EmergencyReleaseNo = value; + this.SendPropertyChanged("EmergencyReleaseNo"); + this.OnEmergencyReleaseNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcceptanceResult", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string AcceptanceResult + { + get + { + return this._AcceptanceResult; + } + set + { + if ((this._AcceptanceResult != value)) + { + this.OnAcceptanceResultChanging(value); + this.SendPropertyChanging(); + this._AcceptanceResult = value; + this.SendPropertyChanged("AcceptanceResult"); + this.OnAcceptanceResultChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificateNo + { + get + { + return this._CertificateNo; + } + set + { + if ((this._CertificateNo != value)) + { + this.OnCertificateNoChanging(value); + this.SendPropertyChanging(); + this._CertificateNo = value; + this.SendPropertyChanged("CertificateNo"); + this.OnCertificateNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string TypeName + { + get + { + return this._TypeName; + } + set + { + if ((this._TypeName != value)) + { + this.OnTypeNameChanging(value); + this.SendPropertyChanging(); + this._TypeName = value; + this.SendPropertyChanged("TypeName"); + this.OnTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SumTypeName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SumTypeName + { + get + { + return this._SumTypeName; + } + set + { + if ((this._SumTypeName != value)) + { + this.OnSumTypeNameChanging(value); + this.SendPropertyChanging(); + this._SumTypeName = value; + this.SendPropertyChanged("SumTypeName"); + this.OnSumTypeNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_MaterialQualityNO", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SP_MaterialQualityNO + { + get + { + return this._SP_MaterialQualityNO; + } + set + { + if ((this._SP_MaterialQualityNO != value)) + { + this.OnSP_MaterialQualityNOChanging(value); + this.SendPropertyChanging(); + this._SP_MaterialQualityNO = value; + this.SendPropertyChanged("SP_MaterialQualityNO"); + this.OnSP_MaterialQualityNOChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness1", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness1 + { + get + { + return this._SP_Thickness1; + } + set + { + if ((this._SP_Thickness1 != value)) + { + this.OnSP_Thickness1Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness1 = value; + this.SendPropertyChanged("SP_Thickness1"); + this.OnSP_Thickness1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness2", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness2 + { + get + { + return this._SP_Thickness2; + } + set + { + if ((this._SP_Thickness2 != value)) + { + this.OnSP_Thickness2Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness2 = value; + this.SendPropertyChanged("SP_Thickness2"); + this.OnSP_Thickness2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness3", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness3 + { + get + { + return this._SP_Thickness3; + } + set + { + if ((this._SP_Thickness3 != value)) + { + this.OnSP_Thickness3Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness3 = value; + this.SendPropertyChanged("SP_Thickness3"); + this.OnSP_Thickness3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Thickness4", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Thickness4 + { + get + { + return this._SP_Thickness4; + } + set + { + if ((this._SP_Thickness4 != value)) + { + this.OnSP_Thickness4Changing(value); + this.SendPropertyChanging(); + this._SP_Thickness4 = value; + this.SendPropertyChanged("SP_Thickness4"); + this.OnSP_Thickness4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_PipeDiameterIn", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_PipeDiameterIn + { + get + { + return this._SP_PipeDiameterIn; + } + set + { + if ((this._SP_PipeDiameterIn != value)) + { + this.OnSP_PipeDiameterInChanging(value); + this.SendPropertyChanging(); + this._SP_PipeDiameterIn = value; + this.SendPropertyChanged("SP_PipeDiameterIn"); + this.OnSP_PipeDiameterInChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_PipeDiameterOut", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_PipeDiameterOut + { + get + { + return this._SP_PipeDiameterOut; + } + set + { + if ((this._SP_PipeDiameterOut != value)) + { + this.OnSP_PipeDiameterOutChanging(value); + this.SendPropertyChanging(); + this._SP_PipeDiameterOut = value; + this.SendPropertyChanged("SP_PipeDiameterOut"); + this.OnSP_PipeDiameterOutChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Length", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string SP_Length + { + get + { + return this._SP_Length; + } + set + { + if ((this._SP_Length != value)) + { + this.OnSP_LengthChanging(value); + this.SendPropertyChanging(); + this._SP_Length = value; + this.SendPropertyChanged("SP_Length"); + this.OnSP_LengthChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SP_Remarks", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string SP_Remarks + { + get + { + return this._SP_Remarks; + } + set + { + if ((this._SP_Remarks != value)) + { + this.OnSP_RemarksChanging(value); + this.SendPropertyChanging(); + this._SP_Remarks = value; + this.SendPropertyChanged("SP_Remarks"); + this.OnSP_RemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_ContractNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PM_ContractNo + { + get + { + return this._PM_ContractNo; + } + set + { + if ((this._PM_ContractNo != value)) + { + this.OnPM_ContractNoChanging(value); + this.SendPropertyChanging(); + this._PM_ContractNo = value; + this.SendPropertyChanged("PM_ContractNo"); + this.OnPM_ContractNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_PipeDiameterOut", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable PM_PipeDiameterOut + { + get + { + return this._PM_PipeDiameterOut; + } + set + { + if ((this._PM_PipeDiameterOut != value)) + { + this.OnPM_PipeDiameterOutChanging(value); + this.SendPropertyChanging(); + this._PM_PipeDiameterOut = value; + this.SendPropertyChanged("PM_PipeDiameterOut"); + this.OnPM_PipeDiameterOutChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_PipeDiameterIn", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable PM_PipeDiameterIn + { + get + { + return this._PM_PipeDiameterIn; + } + set + { + if ((this._PM_PipeDiameterIn != value)) + { + this.OnPM_PipeDiameterInChanging(value); + this.SendPropertyChanging(); + this._PM_PipeDiameterIn = value; + this.SendPropertyChanged("PM_PipeDiameterIn"); + this.OnPM_PipeDiameterInChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Thickness", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable PM_Thickness + { + get + { + return this._PM_Thickness; + } + set + { + if ((this._PM_Thickness != value)) + { + this.OnPM_ThicknessChanging(value); + this.SendPropertyChanging(); + this._PM_Thickness = value; + this.SendPropertyChanged("PM_Thickness"); + this.OnPM_ThicknessChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Other", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable PM_Other + { + get + { + return this._PM_Other; + } + set + { + if ((this._PM_Other != value)) + { + this.OnPM_OtherChanging(value); + this.SendPropertyChanging(); + this._PM_Other = value; + this.SendPropertyChanged("PM_Other"); + this.OnPM_OtherChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PM_Appearance", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string PM_Appearance + { + get + { + return this._PM_Appearance; + } + set + { + if ((this._PM_Appearance != value)) + { + this.OnPM_AppearanceChanging(value); + this.SendPropertyChanging(); + this._PM_Appearance = value; + this.SendPropertyChanged("PM_Appearance"); + this.OnPM_AppearanceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_SizeDeviation", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable IM_SizeDeviation + { + get + { + return this._IM_SizeDeviation; + } + set + { + if ((this._IM_SizeDeviation != value)) + { + this.OnIM_SizeDeviationChanging(value); + this.SendPropertyChanging(); + this._IM_SizeDeviation = value; + this.SendPropertyChanged("IM_SizeDeviation"); + this.OnIM_SizeDeviationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_OtherDeviation", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable IM_OtherDeviation + { + get + { + return this._IM_OtherDeviation; + } + set + { + if ((this._IM_OtherDeviation != value)) + { + this.OnIM_OtherDeviationChanging(value); + this.SendPropertyChanging(); + this._IM_OtherDeviation = value; + this.SendPropertyChanged("IM_OtherDeviation"); + this.OnIM_OtherDeviationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_Appearance", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string IM_Appearance + { + get + { + return this._IM_Appearance; + } + set + { + if ((this._IM_Appearance != value)) + { + this.OnIM_AppearanceChanging(value); + this.SendPropertyChanging(); + this._IM_Appearance = value; + this.SendPropertyChanged("IM_Appearance"); + this.OnIM_AppearanceChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IM_OtherCheck", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string IM_OtherCheck + { + get + { + return this._IM_OtherCheck; + } + set + { + if ((this._IM_OtherCheck != value)) + { + this.OnIM_OtherCheckChanging(value); + this.SendPropertyChanging(); + this._IM_OtherCheck = value; + this.SendPropertyChanged("IM_OtherCheck"); + this.OnIM_OtherCheckChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string CheckMan + { + get + { + return this._CheckMan; + } + set + { + if ((this._CheckMan != value)) + { + this.OnCheckManChanging(value); + this.SendPropertyChanging(); + this._CheckMan = value; + this.SendPropertyChanged("CheckMan"); + this.OnCheckManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable CheckDate + { + get + { + return this._CheckDate; + } + set + { + if ((this._CheckDate != value)) + { + this.OnCheckDateChanging(value); + this.SendPropertyChanging(); + this._CheckDate = value; + this.SendPropertyChanged("CheckDate"); + this.OnCheckDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LiableMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string LiableMan + { + get + { + return this._LiableMan; + } + set + { + if ((this._LiableMan != value)) + { + this.OnLiableManChanging(value); + this.SendPropertyChanging(); + this._LiableMan = value; + this.SendPropertyChanged("LiableMan"); + this.OnLiableManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Liabledate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Liabledate + { + get + { + return this._Liabledate; + } + set + { + if ((this._Liabledate != value)) + { + this.OnLiabledateChanging(value); + this.SendPropertyChanging(); + this._Liabledate = value; + this.SendPropertyChanged("Liabledate"); + this.OnLiabledateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_NDTName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_NDTName + { + get + { + return this._ME_NDTName; + } + set + { + if ((this._ME_NDTName != value)) + { + this.OnME_NDTNameChanging(value); + this.SendPropertyChanging(); + this._ME_NDTName = value; + this.SendPropertyChanged("ME_NDTName"); + this.OnME_NDTNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_NDTStandard", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_NDTStandard + { + get + { + return this._ME_NDTStandard; + } + set + { + if ((this._ME_NDTStandard != value)) + { + this.OnME_NDTStandardChanging(value); + this.SendPropertyChanging(); + this._ME_NDTStandard = value; + this.SendPropertyChanged("ME_NDTStandard"); + this.OnME_NDTStandardChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_NDTRName", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_NDTRName + { + get + { + return this._ME_NDTRName; + } + set + { + if ((this._ME_NDTRName != value)) + { + this.OnME_NDTRNameChanging(value); + this.SendPropertyChanging(); + this._ME_NDTRName = value; + this.SendPropertyChanged("ME_NDTRName"); + this.OnME_NDTRNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_QualifiedRequirement", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_QualifiedRequirement + { + get + { + return this._ME_QualifiedRequirement; + } + set + { + if ((this._ME_QualifiedRequirement != value)) + { + this.OnME_QualifiedRequirementChanging(value); + this.SendPropertyChanging(); + this._ME_QualifiedRequirement = value; + this.SendPropertyChanged("ME_QualifiedRequirement"); + this.OnME_QualifiedRequirementChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_CheckThingNO", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_CheckThingNO + { + get + { + return this._ME_CheckThingNO; + } + set + { + if ((this._ME_CheckThingNO != value)) + { + this.OnME_CheckThingNOChanging(value); + this.SendPropertyChanging(); + this._ME_CheckThingNO = value; + this.SendPropertyChanged("ME_CheckThingNO"); + this.OnME_CheckThingNOChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_HeatStatus", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string ME_HeatStatus + { + get + { + return this._ME_HeatStatus; + } + set + { + if ((this._ME_HeatStatus != value)) + { + this.OnME_HeatStatusChanging(value); + this.SendPropertyChanging(); + this._ME_HeatStatus = value; + this.SendPropertyChanged("ME_HeatStatus"); + this.OnME_HeatStatusChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_EntrustUnit", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_EntrustUnit + { + get + { + return this._ME_EntrustUnit; + } + set + { + if ((this._ME_EntrustUnit != value)) + { + this.OnME_EntrustUnitChanging(value); + this.SendPropertyChanging(); + this._ME_EntrustUnit = value; + this.SendPropertyChanged("ME_EntrustUnit"); + this.OnME_EntrustUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_EntrustMan", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_EntrustMan + { + get + { + return this._ME_EntrustMan; + } + set + { + if ((this._ME_EntrustMan != value)) + { + this.OnME_EntrustManChanging(value); + this.SendPropertyChanging(); + this._ME_EntrustMan = value; + this.SendPropertyChanged("ME_EntrustMan"); + this.OnME_EntrustManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_EntrustDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ME_EntrustDate + { + get + { + return this._ME_EntrustDate; + } + set + { + if ((this._ME_EntrustDate != value)) + { + this.OnME_EntrustDateChanging(value); + this.SendPropertyChanging(); + this._ME_EntrustDate = value; + this.SendPropertyChanged("ME_EntrustDate"); + this.OnME_EntrustDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_TestingUnit", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_TestingUnit + { + get + { + return this._ME_TestingUnit; + } + set + { + if ((this._ME_TestingUnit != value)) + { + this.OnME_TestingUnitChanging(value); + this.SendPropertyChanging(); + this._ME_TestingUnit = value; + this.SendPropertyChanged("ME_TestingUnit"); + this.OnME_TestingUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_TestingMan", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string ME_TestingMan + { + get + { + return this._ME_TestingMan; + } + set + { + if ((this._ME_TestingMan != value)) + { + this.OnME_TestingManChanging(value); + this.SendPropertyChanging(); + this._ME_TestingMan = value; + this.SendPropertyChanged("ME_TestingMan"); + this.OnME_TestingManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ME_TestingDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ME_TestingDate + { + get + { + return this._ME_TestingDate; + } + set + { + if ((this._ME_TestingDate != value)) + { + this.OnME_TestingDateChanging(value); + this.SendPropertyChanging(); + this._ME_TestingDate = value; + this.SendPropertyChanged("ME_TestingDate"); + this.OnME_TestingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Unit", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Unit + { + get + { + return this._Isa_Unit; + } + set + { + if ((this._Isa_Unit != value)) + { + this.OnIsa_UnitChanging(value); + this.SendPropertyChanging(); + this._Isa_Unit = value; + this.SendPropertyChanged("Isa_Unit"); + this.OnIsa_UnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_soft", DbType="NVarChar(2)", UpdateCheck=UpdateCheck.Never)] + public string Isa_soft + { + get + { + return this._Isa_soft; + } + set + { + if ((this._Isa_soft != value)) + { + this.OnIsa_softChanging(value); + this.SendPropertyChanging(); + this._Isa_soft = value; + this.SendPropertyChanged("Isa_soft"); + this.OnIsa_softChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Accept", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Accept + { + get + { + return this._Isa_Accept; + } + set + { + if ((this._Isa_Accept != value)) + { + this.OnIsa_AcceptChanging(value); + this.SendPropertyChanging(); + this._Isa_Accept = value; + this.SendPropertyChanged("Isa_Accept"); + this.OnIsa_AcceptChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Mutilation", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Mutilation + { + get + { + return this._Isa_Mutilation; + } + set + { + if ((this._Isa_Mutilation != value)) + { + this.OnIsa_MutilationChanging(value); + this.SendPropertyChanging(); + this._Isa_Mutilation = value; + this.SendPropertyChanged("Isa_Mutilation"); + this.OnIsa_MutilationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_DeliveryMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_DeliveryMan + { + get + { + return this._Isa_DeliveryMan; + } + set + { + if ((this._Isa_DeliveryMan != value)) + { + this.OnIsa_DeliveryManChanging(value); + this.SendPropertyChanging(); + this._Isa_DeliveryMan = value; + this.SendPropertyChanged("Isa_DeliveryMan"); + this.OnIsa_DeliveryManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_CheckMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_CheckMan + { + get + { + return this._Isa_CheckMan; + } + set + { + if ((this._Isa_CheckMan != value)) + { + this.OnIsa_CheckManChanging(value); + this.SendPropertyChanging(); + this._Isa_CheckMan = value; + this.SendPropertyChanged("Isa_CheckMan"); + this.OnIsa_CheckManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_Remarks", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string Isa_Remarks + { + get + { + return this._Isa_Remarks; + } + set + { + if ((this._Isa_Remarks != value)) + { + this.OnIsa_RemarksChanging(value); + this.SendPropertyChanging(); + this._Isa_Remarks = value; + this.SendPropertyChanged("Isa_Remarks"); + this.OnIsa_RemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_RecordMan", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string Isa_RecordMan + { + get + { + return this._Isa_RecordMan; + } + set + { + if ((this._Isa_RecordMan != value)) + { + this.OnIsa_RecordManChanging(value); + this.SendPropertyChanging(); + this._Isa_RecordMan = value; + this.SendPropertyChanged("Isa_RecordMan"); + this.OnIsa_RecordManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Isa_RecordDate", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Isa_RecordDate + { + get + { + return this._Isa_RecordDate; + } + set + { + if ((this._Isa_RecordDate != value)) + { + this.OnIsa_RecordDateChanging(value); + this.SendPropertyChanging(); + this._Isa_RecordDate = value; + this.SendPropertyChanged("Isa_RecordDate"); + this.OnIsa_RecordDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PStCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PStCode + { + get + { + return this._PStCode; + } + set + { + if ((this._PStCode != value)) + { + this.OnPStCodeChanging(value); + this.SendPropertyChanging(); + this._PStCode = value; + this.SendPropertyChanged("PStCode"); + this.OnPStCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetSID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string StorageSheetSID + { + get + { + return this._StorageSheetSID; + } + set + { + if ((this._StorageSheetSID != value)) + { + this.OnStorageSheetSIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetSID = value; + this.SendPropertyChanged("StorageSheetSID"); + this.OnStorageSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_MHJ_REFERENCE_CL_SHJ", Storage="_Cl_W_MaterialStoragem_hj", ThisKey="StorageHJMID", OtherKey="StorageHJMID", IsForeignKey=true)] + public Cl_W_MaterialStoragem_hj Cl_W_MaterialStoragem_hj + { + get + { + return this._Cl_W_MaterialStoragem_hj.Entity; + } + set + { + Cl_W_MaterialStoragem_hj previousValue = this._Cl_W_MaterialStoragem_hj.Entity; + if (((previousValue != value) + || (this._Cl_W_MaterialStoragem_hj.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_MaterialStoragem_hj.Entity = null; + previousValue.Cl_W_MaterialStorageS_hj.Remove(this); + } + this._Cl_W_MaterialStoragem_hj.Entity = value; + if ((value != null)) + { + value.Cl_W_MaterialStorageS_hj.Add(this); + this._StorageHJMID = value.StorageHJMID; + } + else + { + this._StorageHJMID = default(string); + } + this.SendPropertyChanged("Cl_W_MaterialStoragem_hj"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_PurchaseSheetm")] + public partial class Cl_W_PurchaseSheetm : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _PSMID; + + private string _PStCode; + + private string _Supplier; + + private string _UserId; + + private System.Nullable _UserTime; + + private string _DepNo; + + private string _Requisitioner; + + private string _RequisitionReasons; + + private string _Remarks; + + private string _Specialityid; + + private string _InstallationId; + + private string _IsOk; + + private string _PStNBH; + + private string _ISupload; + + private System.Data.Linq.Binary _Last_modified; + + private EntitySet _Cl_W_PurchaseSheets; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPSMIDChanging(string value); + partial void OnPSMIDChanged(); + partial void OnPStCodeChanging(string value); + partial void OnPStCodeChanged(); + partial void OnSupplierChanging(string value); + partial void OnSupplierChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnDepNoChanging(string value); + partial void OnDepNoChanged(); + partial void OnRequisitionerChanging(string value); + partial void OnRequisitionerChanged(); + partial void OnRequisitionReasonsChanging(string value); + partial void OnRequisitionReasonsChanged(); + partial void OnRemarksChanging(string value); + partial void OnRemarksChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnPStNBHChanging(string value); + partial void OnPStNBHChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + #endregion + + public Cl_W_PurchaseSheetm() + { + this._Cl_W_PurchaseSheets = new EntitySet(new Action(this.attach_Cl_W_PurchaseSheets), new Action(this.detach_Cl_W_PurchaseSheets)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PSMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string PSMID + { + get + { + return this._PSMID; + } + set + { + if ((this._PSMID != value)) + { + this.OnPSMIDChanging(value); + this.SendPropertyChanging(); + this._PSMID = value; + this.SendPropertyChanged("PSMID"); + this.OnPSMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PStCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PStCode + { + get + { + return this._PStCode; + } + set + { + if ((this._PStCode != value)) + { + this.OnPStCodeChanging(value); + this.SendPropertyChanging(); + this._PStCode = value; + this.SendPropertyChanged("PStCode"); + this.OnPStCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Supplier", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string Supplier + { + get + { + return this._Supplier; + } + set + { + if ((this._Supplier != value)) + { + this.OnSupplierChanging(value); + this.SendPropertyChanging(); + this._Supplier = value; + this.SendPropertyChanged("Supplier"); + this.OnSupplierChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string DepNo + { + get + { + return this._DepNo; + } + set + { + if ((this._DepNo != value)) + { + this.OnDepNoChanging(value); + this.SendPropertyChanging(); + this._DepNo = value; + this.SendPropertyChanged("DepNo"); + this.OnDepNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requisitioner", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Requisitioner + { + get + { + return this._Requisitioner; + } + set + { + if ((this._Requisitioner != value)) + { + this.OnRequisitionerChanging(value); + this.SendPropertyChanging(); + this._Requisitioner = value; + this.SendPropertyChanged("Requisitioner"); + this.OnRequisitionerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="requisitionReasons", Storage="_RequisitionReasons", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string RequisitionReasons + { + get + { + return this._RequisitionReasons; + } + set + { + if ((this._RequisitionReasons != value)) + { + this.OnRequisitionReasonsChanging(value); + this.SendPropertyChanging(); + this._RequisitionReasons = value; + this.SendPropertyChanged("RequisitionReasons"); + this.OnRequisitionReasonsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remarks", DbType="NVarChar(200)", UpdateCheck=UpdateCheck.Never)] + public string Remarks + { + get + { + return this._Remarks; + } + set + { + if ((this._Remarks != value)) + { + this.OnRemarksChanging(value); + this.SendPropertyChanging(); + this._Remarks = value; + this.SendPropertyChanged("Remarks"); + this.OnRemarksChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PStNBH", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PStNBH + { + get + { + return this._PStNBH; + } + set + { + if ((this._PStNBH != value)) + { + this.OnPStNBHChanging(value); + this.SendPropertyChanging(); + this._PStNBH = value; + this.SendPropertyChanged("PStNBH"); + this.OnPStNBHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_PUR_REFERENCE_CL_W_PUR", Storage="_Cl_W_PurchaseSheets", ThisKey="PSMID", OtherKey="PSMID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_PurchaseSheets + { + get + { + return this._Cl_W_PurchaseSheets; + } + set + { + this._Cl_W_PurchaseSheets.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_PurchaseSheets(Cl_W_PurchaseSheets entity) + { + this.SendPropertyChanging(); + entity.Cl_W_PurchaseSheetm = this; + } + + private void detach_Cl_W_PurchaseSheets(Cl_W_PurchaseSheets entity) + { + this.SendPropertyChanging(); + entity.Cl_W_PurchaseSheetm = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_PurchaseSheets")] + public partial class Cl_W_PurchaseSheets : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private System.Nullable _Soft; + + private string _MaterialCode; + + private string _Spec; + + private string _TechnicalConditions; + + private string _Unit; + + private string _SystemCode; + + private string _ClassificationCode; + + private string _MaterialName; + + private string _Specificationtype; + + private string _StandardSpecification; + + private string _MaterialQuality; + + private string _SpecialNote; + + private System.Nullable _PQuantity; + + private string _FirstpartyCode; + + private string _ProjectId; + + private string _PSMID; + + private string _PSSID; + + private string _MaterialID; + + private string _Specialityid; + + private string _InstallationId; + + private string _ISupload; + + private System.Data.Linq.Binary _Last_modified; + + private EntityRef _Cl_W_PurchaseSheetm; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnMaterialCodeChanging(string value); + partial void OnMaterialCodeChanged(); + partial void OnSpecChanging(string value); + partial void OnSpecChanged(); + partial void OnTechnicalConditionsChanging(string value); + partial void OnTechnicalConditionsChanged(); + partial void OnUnitChanging(string value); + partial void OnUnitChanged(); + partial void OnSystemCodeChanging(string value); + partial void OnSystemCodeChanged(); + partial void OnClassificationCodeChanging(string value); + partial void OnClassificationCodeChanged(); + partial void OnMaterialNameChanging(string value); + partial void OnMaterialNameChanged(); + partial void OnSpecificationtypeChanging(string value); + partial void OnSpecificationtypeChanged(); + partial void OnStandardSpecificationChanging(string value); + partial void OnStandardSpecificationChanged(); + partial void OnMaterialQualityChanging(string value); + partial void OnMaterialQualityChanged(); + partial void OnSpecialNoteChanging(string value); + partial void OnSpecialNoteChanged(); + partial void OnPQuantityChanging(System.Nullable value); + partial void OnPQuantityChanged(); + partial void OnFirstpartyCodeChanging(string value); + partial void OnFirstpartyCodeChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPSMIDChanging(string value); + partial void OnPSMIDChanged(); + partial void OnPSSIDChanging(string value); + partial void OnPSSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSpecialityidChanging(string value); + partial void OnSpecialityidChanged(); + partial void OnInstallationIdChanging(string value); + partial void OnInstallationIdChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + #endregion + + public Cl_W_PurchaseSheets() + { + this._Cl_W_PurchaseSheetm = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialCode + { + get + { + return this._MaterialCode; + } + set + { + if ((this._MaterialCode != value)) + { + this.OnMaterialCodeChanging(value); + this.SendPropertyChanging(); + this._MaterialCode = value; + this.SendPropertyChanged("MaterialCode"); + this.OnMaterialCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spec", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Spec + { + get + { + return this._Spec; + } + set + { + if ((this._Spec != value)) + { + this.OnSpecChanging(value); + this.SendPropertyChanging(); + this._Spec = value; + this.SendPropertyChanged("Spec"); + this.OnSpecChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnicalConditions", DbType="NVarChar(1000)", UpdateCheck=UpdateCheck.Never)] + public string TechnicalConditions + { + get + { + return this._TechnicalConditions; + } + set + { + if ((this._TechnicalConditions != value)) + { + this.OnTechnicalConditionsChanging(value); + this.SendPropertyChanging(); + this._TechnicalConditions = value; + this.SendPropertyChanged("TechnicalConditions"); + this.OnTechnicalConditionsChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Unit", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Unit + { + get + { + return this._Unit; + } + set + { + if ((this._Unit != value)) + { + this.OnUnitChanging(value); + this.SendPropertyChanging(); + this._Unit = value; + this.SendPropertyChanged("Unit"); + this.OnUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemCode", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string SystemCode + { + get + { + return this._SystemCode; + } + set + { + if ((this._SystemCode != value)) + { + this.OnSystemCodeChanging(value); + this.SendPropertyChanging(); + this._SystemCode = value; + this.SendPropertyChanged("SystemCode"); + this.OnSystemCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClassificationCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ClassificationCode + { + get + { + return this._ClassificationCode; + } + set + { + if ((this._ClassificationCode != value)) + { + this.OnClassificationCodeChanging(value); + this.SendPropertyChanging(); + this._ClassificationCode = value; + this.SendPropertyChanged("ClassificationCode"); + this.OnClassificationCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialName + { + get + { + return this._MaterialName; + } + set + { + if ((this._MaterialName != value)) + { + this.OnMaterialNameChanging(value); + this.SendPropertyChanging(); + this._MaterialName = value; + this.SendPropertyChanged("MaterialName"); + this.OnMaterialNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specificationtype", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string Specificationtype + { + get + { + return this._Specificationtype; + } + set + { + if ((this._Specificationtype != value)) + { + this.OnSpecificationtypeChanging(value); + this.SendPropertyChanging(); + this._Specificationtype = value; + this.SendPropertyChanged("Specificationtype"); + this.OnSpecificationtypeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StandardSpecification", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string StandardSpecification + { + get + { + return this._StandardSpecification; + } + set + { + if ((this._StandardSpecification != value)) + { + this.OnStandardSpecificationChanging(value); + this.SendPropertyChanging(); + this._StandardSpecification = value; + this.SendPropertyChanged("StandardSpecification"); + this.OnStandardSpecificationChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialQuality", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string MaterialQuality + { + get + { + return this._MaterialQuality; + } + set + { + if ((this._MaterialQuality != value)) + { + this.OnMaterialQualityChanging(value); + this.SendPropertyChanging(); + this._MaterialQuality = value; + this.SendPropertyChanged("MaterialQuality"); + this.OnMaterialQualityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialNote", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialNote + { + get + { + return this._SpecialNote; + } + set + { + if ((this._SpecialNote != value)) + { + this.OnSpecialNoteChanging(value); + this.SendPropertyChanging(); + this._SpecialNote = value; + this.SendPropertyChanged("SpecialNote"); + this.OnSpecialNoteChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PQuantity", DbType="Decimal(18,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable PQuantity + { + get + { + return this._PQuantity; + } + set + { + if ((this._PQuantity != value)) + { + this.OnPQuantityChanging(value); + this.SendPropertyChanging(); + this._PQuantity = value; + this.SendPropertyChanged("PQuantity"); + this.OnPQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FirstpartyCode", DbType="NVarChar(20)", UpdateCheck=UpdateCheck.Never)] + public string FirstpartyCode + { + get + { + return this._FirstpartyCode; + } + set + { + if ((this._FirstpartyCode != value)) + { + this.OnFirstpartyCodeChanging(value); + this.SendPropertyChanging(); + this._FirstpartyCode = value; + this.SendPropertyChanged("FirstpartyCode"); + this.OnFirstpartyCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PSMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string PSMID + { + get + { + return this._PSMID; + } + set + { + if ((this._PSMID != value)) + { + if (this._Cl_W_PurchaseSheetm.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnPSMIDChanging(value); + this.SendPropertyChanging(); + this._PSMID = value; + this.SendPropertyChanged("PSMID"); + this.OnPSMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PSSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string PSSID + { + get + { + return this._PSSID; + } + set + { + if ((this._PSSID != value)) + { + this.OnPSSIDChanging(value); + this.SendPropertyChanging(); + this._PSSID = value; + this.SendPropertyChanged("PSSID"); + this.OnPSSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Specialityid", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string Specialityid + { + get + { + return this._Specialityid; + } + set + { + if ((this._Specialityid != value)) + { + this.OnSpecialityidChanging(value); + this.SendPropertyChanging(); + this._Specialityid = value; + this.SendPropertyChanged("Specialityid"); + this.OnSpecialityidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string InstallationId + { + get + { + return this._InstallationId; + } + set + { + if ((this._InstallationId != value)) + { + this.OnInstallationIdChanging(value); + this.SendPropertyChanging(); + this._InstallationId = value; + this.SendPropertyChanged("InstallationId"); + this.OnInstallationIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_PUR_REFERENCE_CL_W_PUR", Storage="_Cl_W_PurchaseSheetm", ThisKey="PSMID", OtherKey="PSMID", IsForeignKey=true)] + public Cl_W_PurchaseSheetm Cl_W_PurchaseSheetm + { + get + { + return this._Cl_W_PurchaseSheetm.Entity; + } + set + { + Cl_W_PurchaseSheetm previousValue = this._Cl_W_PurchaseSheetm.Entity; + if (((previousValue != value) + || (this._Cl_W_PurchaseSheetm.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_PurchaseSheetm.Entity = null; + previousValue.Cl_W_PurchaseSheets.Remove(this); + } + this._Cl_W_PurchaseSheetm.Entity = value; + if ((value != null)) + { + value.Cl_W_PurchaseSheets.Add(this); + this._PSMID = value.PSMID; + } + else + { + this._PSMID = default(string); + } + this.SendPropertyChanged("Cl_W_PurchaseSheetm"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_SingleLineOutM")] + public partial class Cl_W_SingleLineOutM : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _UnitId; + + private string _SingleLineOutMID; + + private string _SingleLineOutCode; + + private string _RecordMan; + + private System.Nullable _UserTime; + + private string _ApprovalMan; + + private System.Nullable _ApprovalTime; + + private string _OkMan; + + private System.Nullable _OkTime; + + private string _IsOk; + + private string _LC_ApprovalMan; + + private string _LC_OkMan; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntitySet _Cl_W_SingleLineOutS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnSingleLineOutMIDChanging(string value); + partial void OnSingleLineOutMIDChanged(); + partial void OnSingleLineOutCodeChanging(string value); + partial void OnSingleLineOutCodeChanged(); + partial void OnRecordManChanging(string value); + partial void OnRecordManChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnApprovalManChanging(string value); + partial void OnApprovalManChanged(); + partial void OnApprovalTimeChanging(System.Nullable value); + partial void OnApprovalTimeChanged(); + partial void OnOkManChanging(string value); + partial void OnOkManChanged(); + partial void OnOkTimeChanging(System.Nullable value); + partial void OnOkTimeChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnLC_ApprovalManChanging(string value); + partial void OnLC_ApprovalManChanged(); + partial void OnLC_OkManChanging(string value); + partial void OnLC_OkManChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_W_SingleLineOutM() + { + this._Cl_W_SingleLineOutS = new EntitySet(new Action(this.attach_Cl_W_SingleLineOutS), new Action(this.detach_Cl_W_SingleLineOutS)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineOutMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SingleLineOutMID + { + get + { + return this._SingleLineOutMID; + } + set + { + if ((this._SingleLineOutMID != value)) + { + this.OnSingleLineOutMIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineOutMID = value; + this.SendPropertyChanged("SingleLineOutMID"); + this.OnSingleLineOutMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineOutCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SingleLineOutCode + { + get + { + return this._SingleLineOutCode; + } + set + { + if ((this._SingleLineOutCode != value)) + { + this.OnSingleLineOutCodeChanging(value); + this.SendPropertyChanging(); + this._SingleLineOutCode = value; + this.SendPropertyChanged("SingleLineOutCode"); + this.OnSingleLineOutCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RecordMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string RecordMan + { + get + { + return this._RecordMan; + } + set + { + if ((this._RecordMan != value)) + { + this.OnRecordManChanging(value); + this.SendPropertyChanging(); + this._RecordMan = value; + this.SendPropertyChanged("RecordMan"); + this.OnRecordManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ApprovalMan + { + get + { + return this._ApprovalMan; + } + set + { + if ((this._ApprovalMan != value)) + { + this.OnApprovalManChanging(value); + this.SendPropertyChanging(); + this._ApprovalMan = value; + this.SendPropertyChanged("ApprovalMan"); + this.OnApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovalTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ApprovalTime + { + get + { + return this._ApprovalTime; + } + set + { + if ((this._ApprovalTime != value)) + { + this.OnApprovalTimeChanging(value); + this.SendPropertyChanging(); + this._ApprovalTime = value; + this.SendPropertyChanged("ApprovalTime"); + this.OnApprovalTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OkMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string OkMan + { + get + { + return this._OkMan; + } + set + { + if ((this._OkMan != value)) + { + this.OnOkManChanging(value); + this.SendPropertyChanging(); + this._OkMan = value; + this.SendPropertyChanged("OkMan"); + this.OnOkManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OkTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable OkTime + { + get + { + return this._OkTime; + } + set + { + if ((this._OkTime != value)) + { + this.OnOkTimeChanging(value); + this.SendPropertyChanging(); + this._OkTime = value; + this.SendPropertyChanged("OkTime"); + this.OnOkTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LC_ApprovalMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string LC_ApprovalMan + { + get + { + return this._LC_ApprovalMan; + } + set + { + if ((this._LC_ApprovalMan != value)) + { + this.OnLC_ApprovalManChanging(value); + this.SendPropertyChanging(); + this._LC_ApprovalMan = value; + this.SendPropertyChanged("LC_ApprovalMan"); + this.OnLC_ApprovalManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LC_OkMan", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string LC_OkMan + { + get + { + return this._LC_OkMan; + } + set + { + if ((this._LC_OkMan != value)) + { + this.OnLC_OkManChanging(value); + this.SendPropertyChanging(); + this._LC_OkMan = value; + this.SendPropertyChanged("LC_OkMan"); + this.OnLC_OkManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_SIN_REFERENCE_CL_W_SIN", Storage="_Cl_W_SingleLineOutS", ThisKey="SingleLineOutMID", OtherKey="SingleLineOutMID", DeleteRule="NO ACTION")] + public EntitySet Cl_W_SingleLineOutS + { + get + { + return this._Cl_W_SingleLineOutS; + } + set + { + this._Cl_W_SingleLineOutS.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_Cl_W_SingleLineOutS(Cl_W_SingleLineOutS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_SingleLineOutM = this; + } + + private void detach_Cl_W_SingleLineOutS(Cl_W_SingleLineOutS entity) + { + this.SendPropertyChanging(); + entity.Cl_W_SingleLineOutM = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_SingleLineOutS")] + public partial class Cl_W_SingleLineOutS : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _SingleLineOutMID; + + private string _SingleLineOutSID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private System.Nullable _Quantity; + + private string _CertificatesFactoryNo; + + private string _FurnaceBatchNo; + + private string _CertificateSelfNo; + + private string _SingleLineSID; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Cl_W_SingleLineOutM; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSingleLineOutMIDChanging(string value); + partial void OnSingleLineOutMIDChanged(); + partial void OnSingleLineOutSIDChanging(string value); + partial void OnSingleLineOutSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnCertificatesFactoryNoChanging(string value); + partial void OnCertificatesFactoryNoChanged(); + partial void OnFurnaceBatchNoChanging(string value); + partial void OnFurnaceBatchNoChanged(); + partial void OnCertificateSelfNoChanging(string value); + partial void OnCertificateSelfNoChanged(); + partial void OnSingleLineSIDChanging(string value); + partial void OnSingleLineSIDChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_W_SingleLineOutS() + { + this._Cl_W_SingleLineOutM = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineOutMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string SingleLineOutMID + { + get + { + return this._SingleLineOutMID; + } + set + { + if ((this._SingleLineOutMID != value)) + { + if (this._Cl_W_SingleLineOutM.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnSingleLineOutMIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineOutMID = value; + this.SendPropertyChanged("SingleLineOutMID"); + this.OnSingleLineOutMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineOutSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SingleLineOutSID + { + get + { + return this._SingleLineOutSID; + } + set + { + if ((this._SingleLineOutSID != value)) + { + this.OnSingleLineOutSIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineOutSID = value; + this.SendPropertyChanged("SingleLineOutSID"); + this.OnSingleLineOutSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificatesFactoryNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificatesFactoryNo + { + get + { + return this._CertificatesFactoryNo; + } + set + { + if ((this._CertificatesFactoryNo != value)) + { + this.OnCertificatesFactoryNoChanging(value); + this.SendPropertyChanging(); + this._CertificatesFactoryNo = value; + this.SendPropertyChanged("CertificatesFactoryNo"); + this.OnCertificatesFactoryNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FurnaceBatchNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string FurnaceBatchNo + { + get + { + return this._FurnaceBatchNo; + } + set + { + if ((this._FurnaceBatchNo != value)) + { + this.OnFurnaceBatchNoChanging(value); + this.SendPropertyChanging(); + this._FurnaceBatchNo = value; + this.SendPropertyChanged("FurnaceBatchNo"); + this.OnFurnaceBatchNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateSelfNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificateSelfNo + { + get + { + return this._CertificateSelfNo; + } + set + { + if ((this._CertificateSelfNo != value)) + { + this.OnCertificateSelfNoChanging(value); + this.SendPropertyChanging(); + this._CertificateSelfNo = value; + this.SendPropertyChanged("CertificateSelfNo"); + this.OnCertificateSelfNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineSID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string SingleLineSID + { + get + { + return this._SingleLineSID; + } + set + { + if ((this._SingleLineSID != value)) + { + this.OnSingleLineSIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineSID = value; + this.SendPropertyChanged("SingleLineSID"); + this.OnSingleLineSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_SIN_REFERENCE_CL_W_SIN", Storage="_Cl_W_SingleLineOutM", ThisKey="SingleLineOutMID", OtherKey="SingleLineOutMID", IsForeignKey=true)] + public Cl_W_SingleLineOutM Cl_W_SingleLineOutM + { + get + { + return this._Cl_W_SingleLineOutM.Entity; + } + set + { + Cl_W_SingleLineOutM previousValue = this._Cl_W_SingleLineOutM.Entity; + if (((previousValue != value) + || (this._Cl_W_SingleLineOutM.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_SingleLineOutM.Entity = null; + previousValue.Cl_W_SingleLineOutS.Remove(this); + } + this._Cl_W_SingleLineOutM.Entity = value; + if ((value != null)) + { + value.Cl_W_SingleLineOutS.Add(this); + this._SingleLineOutMID = value.SingleLineOutMID; + } + else + { + this._SingleLineOutMID = default(string); + } + this.SendPropertyChanged("Cl_W_SingleLineOutM"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Cl_W_SingleLineOutT")] + public partial class Cl_W_SingleLineOutT : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _SingleLineOutMID; + + private string _SingleLineOutSID; + + private string _MaterialID; + + private System.Nullable _Soft; + + private System.Nullable _Quantity; + + private string _CertificatesFactoryNo; + + private string _FurnaceBatchNo; + + private string _CertificateSelfNo; + + private string _SingleLineSID; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSingleLineOutMIDChanging(string value); + partial void OnSingleLineOutMIDChanged(); + partial void OnSingleLineOutSIDChanging(string value); + partial void OnSingleLineOutSIDChanged(); + partial void OnMaterialIDChanging(string value); + partial void OnMaterialIDChanged(); + partial void OnSoftChanging(System.Nullable value); + partial void OnSoftChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnCertificatesFactoryNoChanging(string value); + partial void OnCertificatesFactoryNoChanged(); + partial void OnFurnaceBatchNoChanging(string value); + partial void OnFurnaceBatchNoChanged(); + partial void OnCertificateSelfNoChanging(string value); + partial void OnCertificateSelfNoChanged(); + partial void OnSingleLineSIDChanging(string value); + partial void OnSingleLineSIDChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public Cl_W_SingleLineOutT() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineOutMID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string SingleLineOutMID + { + get + { + return this._SingleLineOutMID; + } + set + { + if ((this._SingleLineOutMID != value)) + { + this.OnSingleLineOutMIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineOutMID = value; + this.SendPropertyChanged("SingleLineOutMID"); + this.OnSingleLineOutMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineOutSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string SingleLineOutSID + { + get + { + return this._SingleLineOutSID; + } + set + { + if ((this._SingleLineOutSID != value)) + { + this.OnSingleLineOutSIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineOutSID = value; + this.SendPropertyChanged("SingleLineOutSID"); + this.OnSingleLineOutSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string MaterialID + { + get + { + return this._MaterialID; + } + set + { + if ((this._MaterialID != value)) + { + this.OnMaterialIDChanging(value); + this.SendPropertyChanging(); + this._MaterialID = value; + this.SendPropertyChanged("MaterialID"); + this.OnMaterialIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Soft", DbType="Int", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Soft + { + get + { + return this._Soft; + } + set + { + if ((this._Soft != value)) + { + this.OnSoftChanging(value); + this.SendPropertyChanging(); + this._Soft = value; + this.SendPropertyChanged("Soft"); + this.OnSoftChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity", DbType="Decimal(10,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificatesFactoryNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificatesFactoryNo + { + get + { + return this._CertificatesFactoryNo; + } + set + { + if ((this._CertificatesFactoryNo != value)) + { + this.OnCertificatesFactoryNoChanging(value); + this.SendPropertyChanging(); + this._CertificatesFactoryNo = value; + this.SendPropertyChanged("CertificatesFactoryNo"); + this.OnCertificatesFactoryNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FurnaceBatchNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string FurnaceBatchNo + { + get + { + return this._FurnaceBatchNo; + } + set + { + if ((this._FurnaceBatchNo != value)) + { + this.OnFurnaceBatchNoChanging(value); + this.SendPropertyChanging(); + this._FurnaceBatchNo = value; + this.SendPropertyChanged("FurnaceBatchNo"); + this.OnFurnaceBatchNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CertificateSelfNo", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string CertificateSelfNo + { + get + { + return this._CertificateSelfNo; + } + set + { + if ((this._CertificateSelfNo != value)) + { + this.OnCertificateSelfNoChanging(value); + this.SendPropertyChanging(); + this._CertificateSelfNo = value; + this.SendPropertyChanged("CertificateSelfNo"); + this.OnCertificateSelfNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SingleLineSID", DbType="Char(36)", UpdateCheck=UpdateCheck.Never)] + public string SingleLineSID + { + get + { + return this._SingleLineSID; + } + set + { + if ((this._SingleLineSID != value)) + { + this.OnSingleLineSIDChanging(value); + this.SendPropertyChanging(); + this._SingleLineSID = value; + this.SendPropertyChanged("SingleLineSID"); + this.OnSingleLineSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_W_StorageAccept")] + public partial class CL_W_StorageAccept : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _StorageAcceptMID; + + private string _StorageAcceptCode; + + private string _StorageSheetMID; + + private string _UserId; + + private System.Nullable _UserTime; + + private string _IsOk; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnStorageAcceptMIDChanging(string value); + partial void OnStorageAcceptMIDChanged(); + partial void OnStorageAcceptCodeChanging(string value); + partial void OnStorageAcceptCodeChanged(); + partial void OnStorageSheetMIDChanging(string value); + partial void OnStorageSheetMIDChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnUserTimeChanging(System.Nullable value); + partial void OnUserTimeChanged(); + partial void OnIsOkChanging(string value); + partial void OnIsOkChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_W_StorageAccept() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageAcceptMID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string StorageAcceptMID + { + get + { + return this._StorageAcceptMID; + } + set + { + if ((this._StorageAcceptMID != value)) + { + this.OnStorageAcceptMIDChanging(value); + this.SendPropertyChanging(); + this._StorageAcceptMID = value; + this.SendPropertyChanged("StorageAcceptMID"); + this.OnStorageAcceptMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageAcceptCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string StorageAcceptCode + { + get + { + return this._StorageAcceptCode; + } + set + { + if ((this._StorageAcceptCode != value)) + { + this.OnStorageAcceptCodeChanging(value); + this.SendPropertyChanging(); + this._StorageAcceptCode = value; + this.SendPropertyChanged("StorageAcceptCode"); + this.OnStorageAcceptCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetMID", DbType="Char(36) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string StorageSheetMID + { + get + { + return this._StorageSheetMID; + } + set + { + if ((this._StorageSheetMID != value)) + { + this.OnStorageSheetMIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetMID = value; + this.SendPropertyChanged("StorageSheetMID"); + this.OnStorageSheetMIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable UserTime + { + get + { + return this._UserTime; + } + set + { + if ((this._UserTime != value)) + { + this.OnUserTimeChanging(value); + this.SendPropertyChanging(); + this._UserTime = value; + this.SendPropertyChanged("UserTime"); + this.OnUserTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOk", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string IsOk + { + get + { + return this._IsOk; + } + set + { + if ((this._IsOk != value)) + { + this.OnIsOkChanging(value); + this.SendPropertyChanging(); + this._IsOk = value; + this.SendPropertyChanged("IsOk"); + this.OnIsOkChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CL_W_UIRecords")] + public partial class CL_W_UIRecords : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _StorageSheetSID; + + private string _ProjectName; + + private string _ContractNO; + + private System.Nullable _BoxNum; + + private string _BoxCode; + + private string _Boxsheet; + + private string _NoDamage; + + private string _YesDamage; + + private string _SpecsAccord; + + private string _SpecsNoAccord; + + private string _QuantityAccord; + + private string _QuantityNoAccord; + + private string _NoDefect; + + private string _YesDefect; + + private string _QualityYes; + + private string _QualityNo; + + private string _TechnologyYes; + + private string _TechnologyNo; + + private string _Opinion; + + private string _RandomDataName1; + + private string _RandomDataName2; + + private string _RandomDataName3; + + private System.Nullable _RandomDataNuber1; + + private System.Nullable _RandomDataNuber2; + + private System.Nullable _RandomDataNuber3; + + private string _RandomDataAcceptUnit1; + + private string _RandomDataAcceptUnit2; + + private string _RandomDataAcceptUnit; + + private string _RandomDataAcceptMan1; + + private string _RandomDataAcceptMan2; + + private string _RandomDataAcceptMan3; + + private string _SpecialToolName1; + + private string _SpecialToolName2; + + private string _SpecialToolName3; + + private System.Nullable _SpecialToolNuber1; + + private System.Nullable _SpecialToolNuber2; + + private System.Nullable _SpecialToolNuber3; + + private string _SpecialToolAcceptUnit1; + + private string _SpecialToolAcceptUnit2; + + private string _SpecialToolAcceptUnit3; + + private string _SpecialToolAcceptMan1; + + private string _SpecialToolAcceptMan2; + + private string _SpecialToolAcceptMan3; + + private string _BuildUnitName; + + private System.Nullable _BuildUnitTime; + + private string _SuperviseUnitName; + + private System.Nullable _SuperviseUnitTime; + + private string _EPCName; + + private System.Nullable _EPCTime; + + private string _ConstructionUnitName; + + private System.Nullable _ConstructionUnitTime; + + private string _PurchasingUnitName; + + private System.Nullable _PurchasingUnitTime; + + private string _Tag; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntityRef _Cl_W_MaterialStorageS; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnStorageSheetSIDChanging(string value); + partial void OnStorageSheetSIDChanged(); + partial void OnProjectNameChanging(string value); + partial void OnProjectNameChanged(); + partial void OnContractNOChanging(string value); + partial void OnContractNOChanged(); + partial void OnBoxNumChanging(System.Nullable value); + partial void OnBoxNumChanged(); + partial void OnBoxCodeChanging(string value); + partial void OnBoxCodeChanged(); + partial void OnBoxsheetChanging(string value); + partial void OnBoxsheetChanged(); + partial void OnNoDamageChanging(string value); + partial void OnNoDamageChanged(); + partial void OnYesDamageChanging(string value); + partial void OnYesDamageChanged(); + partial void OnSpecsAccordChanging(string value); + partial void OnSpecsAccordChanged(); + partial void OnSpecsNoAccordChanging(string value); + partial void OnSpecsNoAccordChanged(); + partial void OnQuantityAccordChanging(string value); + partial void OnQuantityAccordChanged(); + partial void OnQuantityNoAccordChanging(string value); + partial void OnQuantityNoAccordChanged(); + partial void OnNoDefectChanging(string value); + partial void OnNoDefectChanged(); + partial void OnYesDefectChanging(string value); + partial void OnYesDefectChanged(); + partial void OnQualityYesChanging(string value); + partial void OnQualityYesChanged(); + partial void OnQualityNoChanging(string value); + partial void OnQualityNoChanged(); + partial void OnTechnologyYesChanging(string value); + partial void OnTechnologyYesChanged(); + partial void OnTechnologyNoChanging(string value); + partial void OnTechnologyNoChanged(); + partial void OnOpinionChanging(string value); + partial void OnOpinionChanged(); + partial void OnRandomDataName1Changing(string value); + partial void OnRandomDataName1Changed(); + partial void OnRandomDataName2Changing(string value); + partial void OnRandomDataName2Changed(); + partial void OnRandomDataName3Changing(string value); + partial void OnRandomDataName3Changed(); + partial void OnRandomDataNuber1Changing(System.Nullable value); + partial void OnRandomDataNuber1Changed(); + partial void OnRandomDataNuber2Changing(System.Nullable value); + partial void OnRandomDataNuber2Changed(); + partial void OnRandomDataNuber3Changing(System.Nullable value); + partial void OnRandomDataNuber3Changed(); + partial void OnRandomDataAcceptUnit1Changing(string value); + partial void OnRandomDataAcceptUnit1Changed(); + partial void OnRandomDataAcceptUnit2Changing(string value); + partial void OnRandomDataAcceptUnit2Changed(); + partial void OnRandomDataAcceptUnitChanging(string value); + partial void OnRandomDataAcceptUnitChanged(); + partial void OnRandomDataAcceptMan1Changing(string value); + partial void OnRandomDataAcceptMan1Changed(); + partial void OnRandomDataAcceptMan2Changing(string value); + partial void OnRandomDataAcceptMan2Changed(); + partial void OnRandomDataAcceptMan3Changing(string value); + partial void OnRandomDataAcceptMan3Changed(); + partial void OnSpecialToolName1Changing(string value); + partial void OnSpecialToolName1Changed(); + partial void OnSpecialToolName2Changing(string value); + partial void OnSpecialToolName2Changed(); + partial void OnSpecialToolName3Changing(string value); + partial void OnSpecialToolName3Changed(); + partial void OnSpecialToolNuber1Changing(System.Nullable value); + partial void OnSpecialToolNuber1Changed(); + partial void OnSpecialToolNuber2Changing(System.Nullable value); + partial void OnSpecialToolNuber2Changed(); + partial void OnSpecialToolNuber3Changing(System.Nullable value); + partial void OnSpecialToolNuber3Changed(); + partial void OnSpecialToolAcceptUnit1Changing(string value); + partial void OnSpecialToolAcceptUnit1Changed(); + partial void OnSpecialToolAcceptUnit2Changing(string value); + partial void OnSpecialToolAcceptUnit2Changed(); + partial void OnSpecialToolAcceptUnit3Changing(string value); + partial void OnSpecialToolAcceptUnit3Changed(); + partial void OnSpecialToolAcceptMan1Changing(string value); + partial void OnSpecialToolAcceptMan1Changed(); + partial void OnSpecialToolAcceptMan2Changing(string value); + partial void OnSpecialToolAcceptMan2Changed(); + partial void OnSpecialToolAcceptMan3Changing(string value); + partial void OnSpecialToolAcceptMan3Changed(); + partial void OnBuildUnitNameChanging(string value); + partial void OnBuildUnitNameChanged(); + partial void OnBuildUnitTimeChanging(System.Nullable value); + partial void OnBuildUnitTimeChanged(); + partial void OnSuperviseUnitNameChanging(string value); + partial void OnSuperviseUnitNameChanged(); + partial void OnSuperviseUnitTimeChanging(System.Nullable value); + partial void OnSuperviseUnitTimeChanged(); + partial void OnEPCNameChanging(string value); + partial void OnEPCNameChanged(); + partial void OnEPCTimeChanging(System.Nullable value); + partial void OnEPCTimeChanged(); + partial void OnConstructionUnitNameChanging(string value); + partial void OnConstructionUnitNameChanged(); + partial void OnConstructionUnitTimeChanging(System.Nullable value); + partial void OnConstructionUnitTimeChanged(); + partial void OnPurchasingUnitNameChanging(string value); + partial void OnPurchasingUnitNameChanged(); + partial void OnPurchasingUnitTimeChanging(System.Nullable value); + partial void OnPurchasingUnitTimeChanged(); + partial void OnTagChanging(string value); + partial void OnTagChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public CL_W_UIRecords() + { + this._Cl_W_MaterialStorageS = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StorageSheetSID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string StorageSheetSID + { + get + { + return this._StorageSheetSID; + } + set + { + if ((this._StorageSheetSID != value)) + { + if (this._Cl_W_MaterialStorageS.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnStorageSheetSIDChanging(value); + this.SendPropertyChanging(); + this._StorageSheetSID = value; + this.SendPropertyChanged("StorageSheetSID"); + this.OnStorageSheetSIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(150)", UpdateCheck=UpdateCheck.Never)] + public string ProjectName + { + get + { + return this._ProjectName; + } + set + { + if ((this._ProjectName != value)) + { + this.OnProjectNameChanging(value); + this.SendPropertyChanging(); + this._ProjectName = value; + this.SendPropertyChanged("ProjectName"); + this.OnProjectNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractNO", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ContractNO + { + get + { + return this._ContractNO; + } + set + { + if ((this._ContractNO != value)) + { + this.OnContractNOChanging(value); + this.SendPropertyChanging(); + this._ContractNO = value; + this.SendPropertyChanged("ContractNO"); + this.OnContractNOChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BoxNum", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable BoxNum + { + get + { + return this._BoxNum; + } + set + { + if ((this._BoxNum != value)) + { + this.OnBoxNumChanging(value); + this.SendPropertyChanging(); + this._BoxNum = value; + this.SendPropertyChanged("BoxNum"); + this.OnBoxNumChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BoxCode", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string BoxCode + { + get + { + return this._BoxCode; + } + set + { + if ((this._BoxCode != value)) + { + this.OnBoxCodeChanging(value); + this.SendPropertyChanging(); + this._BoxCode = value; + this.SendPropertyChanged("BoxCode"); + this.OnBoxCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Boxsheet", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Boxsheet + { + get + { + return this._Boxsheet; + } + set + { + if ((this._Boxsheet != value)) + { + this.OnBoxsheetChanging(value); + this.SendPropertyChanging(); + this._Boxsheet = value; + this.SendPropertyChanged("Boxsheet"); + this.OnBoxsheetChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NoDamage", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string NoDamage + { + get + { + return this._NoDamage; + } + set + { + if ((this._NoDamage != value)) + { + this.OnNoDamageChanging(value); + this.SendPropertyChanging(); + this._NoDamage = value; + this.SendPropertyChanged("NoDamage"); + this.OnNoDamageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YesDamage", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string YesDamage + { + get + { + return this._YesDamage; + } + set + { + if ((this._YesDamage != value)) + { + this.OnYesDamageChanging(value); + this.SendPropertyChanging(); + this._YesDamage = value; + this.SendPropertyChanged("YesDamage"); + this.OnYesDamageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecsAccord", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string SpecsAccord + { + get + { + return this._SpecsAccord; + } + set + { + if ((this._SpecsAccord != value)) + { + this.OnSpecsAccordChanging(value); + this.SendPropertyChanging(); + this._SpecsAccord = value; + this.SendPropertyChanged("SpecsAccord"); + this.OnSpecsAccordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecsNoAccord", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string SpecsNoAccord + { + get + { + return this._SpecsNoAccord; + } + set + { + if ((this._SpecsNoAccord != value)) + { + this.OnSpecsNoAccordChanging(value); + this.SendPropertyChanging(); + this._SpecsNoAccord = value; + this.SendPropertyChanged("SpecsNoAccord"); + this.OnSpecsNoAccordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QuantityAccord", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string QuantityAccord + { + get + { + return this._QuantityAccord; + } + set + { + if ((this._QuantityAccord != value)) + { + this.OnQuantityAccordChanging(value); + this.SendPropertyChanging(); + this._QuantityAccord = value; + this.SendPropertyChanged("QuantityAccord"); + this.OnQuantityAccordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QuantityNoAccord", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string QuantityNoAccord + { + get + { + return this._QuantityNoAccord; + } + set + { + if ((this._QuantityNoAccord != value)) + { + this.OnQuantityNoAccordChanging(value); + this.SendPropertyChanging(); + this._QuantityNoAccord = value; + this.SendPropertyChanged("QuantityNoAccord"); + this.OnQuantityNoAccordChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NoDefect", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string NoDefect + { + get + { + return this._NoDefect; + } + set + { + if ((this._NoDefect != value)) + { + this.OnNoDefectChanging(value); + this.SendPropertyChanging(); + this._NoDefect = value; + this.SendPropertyChanged("NoDefect"); + this.OnNoDefectChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_YesDefect", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string YesDefect + { + get + { + return this._YesDefect; + } + set + { + if ((this._YesDefect != value)) + { + this.OnYesDefectChanging(value); + this.SendPropertyChanging(); + this._YesDefect = value; + this.SendPropertyChanged("YesDefect"); + this.OnYesDefectChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityYes", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string QualityYes + { + get + { + return this._QualityYes; + } + set + { + if ((this._QualityYes != value)) + { + this.OnQualityYesChanging(value); + this.SendPropertyChanging(); + this._QualityYes = value; + this.SendPropertyChanged("QualityYes"); + this.OnQualityYesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualityNo", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string QualityNo + { + get + { + return this._QualityNo; + } + set + { + if ((this._QualityNo != value)) + { + this.OnQualityNoChanging(value); + this.SendPropertyChanging(); + this._QualityNo = value; + this.SendPropertyChanged("QualityNo"); + this.OnQualityNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnologyYes", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string TechnologyYes + { + get + { + return this._TechnologyYes; + } + set + { + if ((this._TechnologyYes != value)) + { + this.OnTechnologyYesChanging(value); + this.SendPropertyChanging(); + this._TechnologyYes = value; + this.SendPropertyChanged("TechnologyYes"); + this.OnTechnologyYesChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TechnologyNo", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string TechnologyNo + { + get + { + return this._TechnologyNo; + } + set + { + if ((this._TechnologyNo != value)) + { + this.OnTechnologyNoChanging(value); + this.SendPropertyChanging(); + this._TechnologyNo = value; + this.SendPropertyChanged("TechnologyNo"); + this.OnTechnologyNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Opinion", DbType="NVarChar(250)", UpdateCheck=UpdateCheck.Never)] + public string Opinion + { + get + { + return this._Opinion; + } + set + { + if ((this._Opinion != value)) + { + this.OnOpinionChanging(value); + this.SendPropertyChanging(); + this._Opinion = value; + this.SendPropertyChanged("Opinion"); + this.OnOpinionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataName1", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataName1 + { + get + { + return this._RandomDataName1; + } + set + { + if ((this._RandomDataName1 != value)) + { + this.OnRandomDataName1Changing(value); + this.SendPropertyChanging(); + this._RandomDataName1 = value; + this.SendPropertyChanged("RandomDataName1"); + this.OnRandomDataName1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataName2", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataName2 + { + get + { + return this._RandomDataName2; + } + set + { + if ((this._RandomDataName2 != value)) + { + this.OnRandomDataName2Changing(value); + this.SendPropertyChanging(); + this._RandomDataName2 = value; + this.SendPropertyChanged("RandomDataName2"); + this.OnRandomDataName2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataName3", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataName3 + { + get + { + return this._RandomDataName3; + } + set + { + if ((this._RandomDataName3 != value)) + { + this.OnRandomDataName3Changing(value); + this.SendPropertyChanging(); + this._RandomDataName3 = value; + this.SendPropertyChanged("RandomDataName3"); + this.OnRandomDataName3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataNuber1", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable RandomDataNuber1 + { + get + { + return this._RandomDataNuber1; + } + set + { + if ((this._RandomDataNuber1 != value)) + { + this.OnRandomDataNuber1Changing(value); + this.SendPropertyChanging(); + this._RandomDataNuber1 = value; + this.SendPropertyChanged("RandomDataNuber1"); + this.OnRandomDataNuber1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataNuber2", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable RandomDataNuber2 + { + get + { + return this._RandomDataNuber2; + } + set + { + if ((this._RandomDataNuber2 != value)) + { + this.OnRandomDataNuber2Changing(value); + this.SendPropertyChanging(); + this._RandomDataNuber2 = value; + this.SendPropertyChanged("RandomDataNuber2"); + this.OnRandomDataNuber2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataNuber3", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable RandomDataNuber3 + { + get + { + return this._RandomDataNuber3; + } + set + { + if ((this._RandomDataNuber3 != value)) + { + this.OnRandomDataNuber3Changing(value); + this.SendPropertyChanging(); + this._RandomDataNuber3 = value; + this.SendPropertyChanged("RandomDataNuber3"); + this.OnRandomDataNuber3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataAcceptUnit1", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataAcceptUnit1 + { + get + { + return this._RandomDataAcceptUnit1; + } + set + { + if ((this._RandomDataAcceptUnit1 != value)) + { + this.OnRandomDataAcceptUnit1Changing(value); + this.SendPropertyChanging(); + this._RandomDataAcceptUnit1 = value; + this.SendPropertyChanged("RandomDataAcceptUnit1"); + this.OnRandomDataAcceptUnit1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataAcceptUnit2", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataAcceptUnit2 + { + get + { + return this._RandomDataAcceptUnit2; + } + set + { + if ((this._RandomDataAcceptUnit2 != value)) + { + this.OnRandomDataAcceptUnit2Changing(value); + this.SendPropertyChanging(); + this._RandomDataAcceptUnit2 = value; + this.SendPropertyChanged("RandomDataAcceptUnit2"); + this.OnRandomDataAcceptUnit2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataAcceptUnit", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataAcceptUnit + { + get + { + return this._RandomDataAcceptUnit; + } + set + { + if ((this._RandomDataAcceptUnit != value)) + { + this.OnRandomDataAcceptUnitChanging(value); + this.SendPropertyChanging(); + this._RandomDataAcceptUnit = value; + this.SendPropertyChanged("RandomDataAcceptUnit"); + this.OnRandomDataAcceptUnitChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataAcceptMan1", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataAcceptMan1 + { + get + { + return this._RandomDataAcceptMan1; + } + set + { + if ((this._RandomDataAcceptMan1 != value)) + { + this.OnRandomDataAcceptMan1Changing(value); + this.SendPropertyChanging(); + this._RandomDataAcceptMan1 = value; + this.SendPropertyChanged("RandomDataAcceptMan1"); + this.OnRandomDataAcceptMan1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataAcceptMan2", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataAcceptMan2 + { + get + { + return this._RandomDataAcceptMan2; + } + set + { + if ((this._RandomDataAcceptMan2 != value)) + { + this.OnRandomDataAcceptMan2Changing(value); + this.SendPropertyChanging(); + this._RandomDataAcceptMan2 = value; + this.SendPropertyChanged("RandomDataAcceptMan2"); + this.OnRandomDataAcceptMan2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RandomDataAcceptMan3", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string RandomDataAcceptMan3 + { + get + { + return this._RandomDataAcceptMan3; + } + set + { + if ((this._RandomDataAcceptMan3 != value)) + { + this.OnRandomDataAcceptMan3Changing(value); + this.SendPropertyChanging(); + this._RandomDataAcceptMan3 = value; + this.SendPropertyChanged("RandomDataAcceptMan3"); + this.OnRandomDataAcceptMan3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolName1", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolName1 + { + get + { + return this._SpecialToolName1; + } + set + { + if ((this._SpecialToolName1 != value)) + { + this.OnSpecialToolName1Changing(value); + this.SendPropertyChanging(); + this._SpecialToolName1 = value; + this.SendPropertyChanged("SpecialToolName1"); + this.OnSpecialToolName1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolName2", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolName2 + { + get + { + return this._SpecialToolName2; + } + set + { + if ((this._SpecialToolName2 != value)) + { + this.OnSpecialToolName2Changing(value); + this.SendPropertyChanging(); + this._SpecialToolName2 = value; + this.SendPropertyChanged("SpecialToolName2"); + this.OnSpecialToolName2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolName3", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolName3 + { + get + { + return this._SpecialToolName3; + } + set + { + if ((this._SpecialToolName3 != value)) + { + this.OnSpecialToolName3Changing(value); + this.SendPropertyChanging(); + this._SpecialToolName3 = value; + this.SendPropertyChanged("SpecialToolName3"); + this.OnSpecialToolName3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolNuber1", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable SpecialToolNuber1 + { + get + { + return this._SpecialToolNuber1; + } + set + { + if ((this._SpecialToolNuber1 != value)) + { + this.OnSpecialToolNuber1Changing(value); + this.SendPropertyChanging(); + this._SpecialToolNuber1 = value; + this.SendPropertyChanged("SpecialToolNuber1"); + this.OnSpecialToolNuber1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolNuber2", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable SpecialToolNuber2 + { + get + { + return this._SpecialToolNuber2; + } + set + { + if ((this._SpecialToolNuber2 != value)) + { + this.OnSpecialToolNuber2Changing(value); + this.SendPropertyChanging(); + this._SpecialToolNuber2 = value; + this.SendPropertyChanged("SpecialToolNuber2"); + this.OnSpecialToolNuber2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolNuber3", DbType="Decimal(15,4)", UpdateCheck=UpdateCheck.Never)] + public System.Nullable SpecialToolNuber3 + { + get + { + return this._SpecialToolNuber3; + } + set + { + if ((this._SpecialToolNuber3 != value)) + { + this.OnSpecialToolNuber3Changing(value); + this.SendPropertyChanging(); + this._SpecialToolNuber3 = value; + this.SendPropertyChanged("SpecialToolNuber3"); + this.OnSpecialToolNuber3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolAcceptUnit1", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolAcceptUnit1 + { + get + { + return this._SpecialToolAcceptUnit1; + } + set + { + if ((this._SpecialToolAcceptUnit1 != value)) + { + this.OnSpecialToolAcceptUnit1Changing(value); + this.SendPropertyChanging(); + this._SpecialToolAcceptUnit1 = value; + this.SendPropertyChanged("SpecialToolAcceptUnit1"); + this.OnSpecialToolAcceptUnit1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolAcceptUnit2", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolAcceptUnit2 + { + get + { + return this._SpecialToolAcceptUnit2; + } + set + { + if ((this._SpecialToolAcceptUnit2 != value)) + { + this.OnSpecialToolAcceptUnit2Changing(value); + this.SendPropertyChanging(); + this._SpecialToolAcceptUnit2 = value; + this.SendPropertyChanged("SpecialToolAcceptUnit2"); + this.OnSpecialToolAcceptUnit2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolAcceptUnit3", DbType="NVarChar(100)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolAcceptUnit3 + { + get + { + return this._SpecialToolAcceptUnit3; + } + set + { + if ((this._SpecialToolAcceptUnit3 != value)) + { + this.OnSpecialToolAcceptUnit3Changing(value); + this.SendPropertyChanging(); + this._SpecialToolAcceptUnit3 = value; + this.SendPropertyChanged("SpecialToolAcceptUnit3"); + this.OnSpecialToolAcceptUnit3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolAcceptMan1", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolAcceptMan1 + { + get + { + return this._SpecialToolAcceptMan1; + } + set + { + if ((this._SpecialToolAcceptMan1 != value)) + { + this.OnSpecialToolAcceptMan1Changing(value); + this.SendPropertyChanging(); + this._SpecialToolAcceptMan1 = value; + this.SendPropertyChanged("SpecialToolAcceptMan1"); + this.OnSpecialToolAcceptMan1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolAcceptMan2", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolAcceptMan2 + { + get + { + return this._SpecialToolAcceptMan2; + } + set + { + if ((this._SpecialToolAcceptMan2 != value)) + { + this.OnSpecialToolAcceptMan2Changing(value); + this.SendPropertyChanging(); + this._SpecialToolAcceptMan2 = value; + this.SendPropertyChanged("SpecialToolAcceptMan2"); + this.OnSpecialToolAcceptMan2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpecialToolAcceptMan3", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SpecialToolAcceptMan3 + { + get + { + return this._SpecialToolAcceptMan3; + } + set + { + if ((this._SpecialToolAcceptMan3 != value)) + { + this.OnSpecialToolAcceptMan3Changing(value); + this.SendPropertyChanging(); + this._SpecialToolAcceptMan3 = value; + this.SendPropertyChanged("SpecialToolAcceptMan3"); + this.OnSpecialToolAcceptMan3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BuildUnitName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string BuildUnitName + { + get + { + return this._BuildUnitName; + } + set + { + if ((this._BuildUnitName != value)) + { + this.OnBuildUnitNameChanging(value); + this.SendPropertyChanging(); + this._BuildUnitName = value; + this.SendPropertyChanged("BuildUnitName"); + this.OnBuildUnitNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BuildUnitTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable BuildUnitTime + { + get + { + return this._BuildUnitTime; + } + set + { + if ((this._BuildUnitTime != value)) + { + this.OnBuildUnitTimeChanging(value); + this.SendPropertyChanging(); + this._BuildUnitTime = value; + this.SendPropertyChanged("BuildUnitTime"); + this.OnBuildUnitTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperviseUnitName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string SuperviseUnitName + { + get + { + return this._SuperviseUnitName; + } + set + { + if ((this._SuperviseUnitName != value)) + { + this.OnSuperviseUnitNameChanging(value); + this.SendPropertyChanging(); + this._SuperviseUnitName = value; + this.SendPropertyChanged("SuperviseUnitName"); + this.OnSuperviseUnitNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SuperviseUnitTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable SuperviseUnitTime + { + get + { + return this._SuperviseUnitTime; + } + set + { + if ((this._SuperviseUnitTime != value)) + { + this.OnSuperviseUnitTimeChanging(value); + this.SendPropertyChanging(); + this._SuperviseUnitTime = value; + this.SendPropertyChanged("SuperviseUnitTime"); + this.OnSuperviseUnitTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EPCName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string EPCName + { + get + { + return this._EPCName; + } + set + { + if ((this._EPCName != value)) + { + this.OnEPCNameChanging(value); + this.SendPropertyChanging(); + this._EPCName = value; + this.SendPropertyChanged("EPCName"); + this.OnEPCNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EPCTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable EPCTime + { + get + { + return this._EPCTime; + } + set + { + if ((this._EPCTime != value)) + { + this.OnEPCTimeChanging(value); + this.SendPropertyChanging(); + this._EPCTime = value; + this.SendPropertyChanged("EPCTime"); + this.OnEPCTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionUnitName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string ConstructionUnitName + { + get + { + return this._ConstructionUnitName; + } + set + { + if ((this._ConstructionUnitName != value)) + { + this.OnConstructionUnitNameChanging(value); + this.SendPropertyChanging(); + this._ConstructionUnitName = value; + this.SendPropertyChanged("ConstructionUnitName"); + this.OnConstructionUnitNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ConstructionUnitTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable ConstructionUnitTime + { + get + { + return this._ConstructionUnitTime; + } + set + { + if ((this._ConstructionUnitTime != value)) + { + this.OnConstructionUnitTimeChanging(value); + this.SendPropertyChanging(); + this._ConstructionUnitTime = value; + this.SendPropertyChanged("ConstructionUnitTime"); + this.OnConstructionUnitTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PurchasingUnitName", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string PurchasingUnitName + { + get + { + return this._PurchasingUnitName; + } + set + { + if ((this._PurchasingUnitName != value)) + { + this.OnPurchasingUnitNameChanging(value); + this.SendPropertyChanging(); + this._PurchasingUnitName = value; + this.SendPropertyChanged("PurchasingUnitName"); + this.OnPurchasingUnitNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PurchasingUnitTime", DbType="DateTime", UpdateCheck=UpdateCheck.Never)] + public System.Nullable PurchasingUnitTime + { + get + { + return this._PurchasingUnitTime; + } + set + { + if ((this._PurchasingUnitTime != value)) + { + this.OnPurchasingUnitTimeChanging(value); + this.SendPropertyChanging(); + this._PurchasingUnitTime = value; + this.SendPropertyChanged("PurchasingUnitTime"); + this.OnPurchasingUnitTimeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tag", DbType="NVarChar(50)", UpdateCheck=UpdateCheck.Never)] + public string Tag + { + get + { + return this._Tag; + } + set + { + if ((this._Tag != value)) + { + this.OnTagChanging(value); + this.SendPropertyChanging(); + this._Tag = value; + this.SendPropertyChanged("Tag"); + this.OnTagChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_UIR_REFERENCE_CL_W_MAT", Storage="_Cl_W_MaterialStorageS", ThisKey="StorageSheetSID", OtherKey="StorageSheetSID", IsForeignKey=true)] + public Cl_W_MaterialStorageS Cl_W_MaterialStorageS + { + get + { + return this._Cl_W_MaterialStorageS.Entity; + } + set + { + Cl_W_MaterialStorageS previousValue = this._Cl_W_MaterialStorageS.Entity; + if (((previousValue != value) + || (this._Cl_W_MaterialStorageS.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Cl_W_MaterialStorageS.Entity = null; + previousValue.CL_W_UIRecords = null; + } + this._Cl_W_MaterialStorageS.Entity = value; + if ((value != null)) + { + value.CL_W_UIRecords = this; + this._StorageSheetSID = value.StorageSheetSID; + } + else + { + this._StorageSheetSID = default(string); + } + this.SendPropertyChanged("Cl_W_MaterialStorageS"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Comprehensive_ContactList")] public partial class Comprehensive_ContactList : INotifyPropertyChanging, INotifyPropertyChanged { @@ -208359,6 +234019,10 @@ namespace Model private string _UpState; + private string _HandleState; + + private string _HandleMan; + private EntityRef _Base_Unit; #region 鍙墿灞曟ф柟娉曞畾涔 @@ -208405,6 +234069,10 @@ namespace Model partial void OnJobSuggestionChanged(); partial void OnUpStateChanging(string value); partial void OnUpStateChanged(); + partial void OnHandleStateChanging(string value); + partial void OnHandleStateChanged(); + partial void OnHandleManChanging(string value); + partial void OnHandleManChanged(); #endregion public Information_QualityWorkSummaryReport() @@ -208577,7 +234245,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Performance", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Performance", DbType="NVarChar(500)")] public string Performance { get @@ -208597,7 +234265,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentSituation", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentSituation", DbType="NVarChar(500)")] public string AccidentSituation { get @@ -208617,7 +234285,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Awards", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Awards", DbType="NVarChar(500)")] public string Awards { get @@ -208637,7 +234305,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkDevelopment", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkDevelopment", DbType="NVarChar(500)")] public string WorkDevelopment { get @@ -208657,7 +234325,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonnelTraining", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonnelTraining", DbType="NVarChar(500)")] public string PersonnelTraining { get @@ -208677,7 +234345,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckSituation", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckSituation", DbType="NVarChar(500)")] public string CheckSituation { get @@ -208697,7 +234365,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagementActivity", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagementActivity", DbType="NVarChar(500)")] public string ManagementActivity { get @@ -208717,7 +234385,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkExperience", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkExperience", DbType="NVarChar(500)")] public string WorkExperience { get @@ -208737,7 +234405,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Countermeasures", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Countermeasures", DbType="NVarChar(500)")] public string Countermeasures { get @@ -208757,7 +234425,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NextYearWorkPlan", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NextYearWorkPlan", DbType="NVarChar(500)")] public string NextYearWorkPlan { get @@ -208777,7 +234445,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobSuggestion", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobSuggestion", DbType="NVarChar(500)")] public string JobSuggestion { get @@ -208817,6 +234485,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleState", DbType="Char(1)")] + public string HandleState + { + get + { + return this._HandleState; + } + set + { + if ((this._HandleState != value)) + { + this.OnHandleStateChanging(value); + this.SendPropertyChanging(); + this._HandleState = value; + this.SendPropertyChanged("HandleState"); + this.OnHandleStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleMan", DbType="NVarChar(50)")] + public string HandleMan + { + get + { + return this._HandleMan; + } + set + { + if ((this._HandleMan != value)) + { + this.OnHandleManChanging(value); + this.SendPropertyChanging(); + this._HandleMan = value; + this.SendPropertyChanged("HandleMan"); + this.OnHandleManChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Information_QualityWorkSummaryReport_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] public Base_Unit Base_Unit { @@ -213555,6 +239263,10 @@ namespace Model private string _UpState; + private string _HandleState; + + private string _HandleMan; + private EntityRef _Base_Unit; #region 鍙墿灞曟ф柟娉曞畾涔 @@ -213603,6 +239315,10 @@ namespace Model partial void OnJobSuggestionChanged(); partial void OnUpStateChanging(string value); partial void OnUpStateChanged(); + partial void OnHandleStateChanging(string value); + partial void OnHandleStateChanged(); + partial void OnHandleManChanging(string value); + partial void OnHandleManChanged(); #endregion public Information_WorkSummaryReport() @@ -213795,7 +239511,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyObjectives", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SafetyObjectives", DbType="NVarChar(500)")] public string SafetyObjectives { get @@ -213815,7 +239531,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentSituation", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccidentSituation", DbType="NVarChar(500)")] public string AccidentSituation { get @@ -213835,7 +239551,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Awards", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Awards", DbType="NVarChar(500)")] public string Awards { get @@ -213855,7 +239571,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkDevelopment", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkDevelopment", DbType="NVarChar(500)")] public string WorkDevelopment { get @@ -213875,7 +239591,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonnelTraining", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PersonnelTraining", DbType="NVarChar(500)")] public string PersonnelTraining { get @@ -213895,7 +239611,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GovernanceSituation", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GovernanceSituation", DbType="NVarChar(500)")] public string GovernanceSituation { get @@ -213915,7 +239631,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagementActivity", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ManagementActivity", DbType="NVarChar(500)")] public string ManagementActivity { get @@ -213935,7 +239651,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkExperience", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkExperience", DbType="NVarChar(500)")] public string WorkExperience { get @@ -213955,7 +239671,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Countermeasures", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Countermeasures", DbType="NVarChar(500)")] public string Countermeasures { get @@ -213975,7 +239691,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NextYearWorkPlan", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NextYearWorkPlan", DbType="NVarChar(500)")] public string NextYearWorkPlan { get @@ -213995,7 +239711,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobSuggestion", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobSuggestion", DbType="NVarChar(500)")] public string JobSuggestion { get @@ -214035,6 +239751,46 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleState", DbType="Char(1)")] + public string HandleState + { + get + { + return this._HandleState; + } + set + { + if ((this._HandleState != value)) + { + this.OnHandleStateChanging(value); + this.SendPropertyChanging(); + this._HandleState = value; + this.SendPropertyChanged("HandleState"); + this.OnHandleStateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleMan", DbType="NVarChar(50)")] + public string HandleMan + { + get + { + return this._HandleMan; + } + set + { + if ((this._HandleMan != value)) + { + this.OnHandleManChanging(value); + this.SendPropertyChanging(); + this._HandleMan = value; + this.SendPropertyChanged("HandleMan"); + this.OnHandleManChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Information_WorkSummaryReport_Base_Unit", Storage="_Base_Unit", ThisKey="UnitId", OtherKey="UnitId", IsForeignKey=true)] public Base_Unit Base_Unit { @@ -229122,7 +254878,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckMan", DbType="VarChar(100)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckMan", DbType="VarChar(255)")] public string CheckMan { get @@ -367065,6 +392821,92 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.sys_admin")] + public partial class Sys_admin : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Adminid; + + private string _Adminpassword; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnAdminidChanging(string value); + partial void OnAdminidChanged(); + partial void OnAdminpasswordChanging(string value); + partial void OnAdminpasswordChanged(); + #endregion + + public Sys_admin() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="adminid", Storage="_Adminid", DbType="Char(1) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Adminid + { + get + { + return this._Adminid; + } + set + { + if ((this._Adminid != value)) + { + this.OnAdminidChanging(value); + this.SendPropertyChanging(); + this._Adminid = value; + this.SendPropertyChanged("Adminid"); + this.OnAdminidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="adminpassword", Storage="_Adminpassword", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string Adminpassword + { + get + { + return this._Adminpassword; + } + set + { + if ((this._Adminpassword != value)) + { + this.OnAdminpasswordChanging(value); + this.SendPropertyChanging(); + this._Adminpassword = value; + this.SendPropertyChanged("Adminpassword"); + this.OnAdminpasswordChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_ButtonPower")] public partial class Sys_ButtonPower : INotifyPropertyChanging, INotifyPropertyChanged { @@ -370605,6 +396447,710 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYS_GROUP")] + public partial class SYS_GROUP : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _GROUPID; + + private string _GROUPCode; + + private string _GROUPName; + + private string _GB; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + private EntitySet _SYS_GROUP_USER; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnGROUPIDChanging(string value); + partial void OnGROUPIDChanged(); + partial void OnGROUPCodeChanging(string value); + partial void OnGROUPCodeChanged(); + partial void OnGROUPNameChanging(string value); + partial void OnGROUPNameChanged(); + partial void OnGBChanging(string value); + partial void OnGBChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public SYS_GROUP() + { + this._SYS_GROUP_USER = new EntitySet(new Action(this.attach_SYS_GROUP_USER), new Action(this.detach_SYS_GROUP_USER)); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GROUPID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string GROUPID + { + get + { + return this._GROUPID; + } + set + { + if ((this._GROUPID != value)) + { + this.OnGROUPIDChanging(value); + this.SendPropertyChanging(); + this._GROUPID = value; + this.SendPropertyChanged("GROUPID"); + this.OnGROUPIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GROUPCode", DbType="VarChar(2) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string GROUPCode + { + get + { + return this._GROUPCode; + } + set + { + if ((this._GROUPCode != value)) + { + this.OnGROUPCodeChanging(value); + this.SendPropertyChanging(); + this._GROUPCode = value; + this.SendPropertyChanged("GROUPCode"); + this.OnGROUPCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GROUPName", DbType="VarChar(10) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string GROUPName + { + get + { + return this._GROUPName; + } + set + { + if ((this._GROUPName != value)) + { + this.OnGROUPNameChanging(value); + this.SendPropertyChanging(); + this._GROUPName = value; + this.SendPropertyChanged("GROUPName"); + this.OnGROUPNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GB", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string GB + { + get + { + return this._GB; + } + set + { + if ((this._GB != value)) + { + this.OnGBChanging(value); + this.SendPropertyChanging(); + this._GB = value; + this.SendPropertyChanged("GB"); + this.OnGBChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYS_GROU_REFERENCE_SYS_GROU", Storage="_SYS_GROUP_USER", ThisKey="GROUPID", OtherKey="GROUPID", DeleteRule="NO ACTION")] + public EntitySet SYS_GROUP_USER + { + get + { + return this._SYS_GROUP_USER; + } + set + { + this._SYS_GROUP_USER.Assign(value); + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + private void attach_SYS_GROUP_USER(SYS_GROUP_USER entity) + { + this.SendPropertyChanging(); + entity.SYS_GROUP = this; + } + + private void detach_SYS_GROUP_USER(SYS_GROUP_USER entity) + { + this.SendPropertyChanging(); + entity.SYS_GROUP = null; + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYS_GROUP_LC")] + public partial class SYS_GROUP_LC : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _AuthorityID; + + private string _ProjectId; + + private string _GROUPID; + + private string _TAG_CODE; + + private System.Data.Linq.Binary _Last_modified; + + private string _ISupload; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnAuthorityIDChanging(string value); + partial void OnAuthorityIDChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnGROUPIDChanging(string value); + partial void OnGROUPIDChanged(); + partial void OnTAG_CODEChanging(string value); + partial void OnTAG_CODEChanged(); + partial void OnLast_modifiedChanging(System.Data.Linq.Binary value); + partial void OnLast_modifiedChanged(); + partial void OnISuploadChanging(string value); + partial void OnISuploadChanged(); + #endregion + + public SYS_GROUP_LC() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuthorityID", DbType="NVarChar(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true, UpdateCheck=UpdateCheck.Never)] + public string AuthorityID + { + get + { + return this._AuthorityID; + } + set + { + if ((this._AuthorityID != value)) + { + this.OnAuthorityIDChanging(value); + this.SendPropertyChanging(); + this._AuthorityID = value; + this.SendPropertyChanged("AuthorityID"); + this.OnAuthorityIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GROUPID", DbType="Char(36) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string GROUPID + { + get + { + return this._GROUPID; + } + set + { + if ((this._GROUPID != value)) + { + this.OnGROUPIDChanging(value); + this.SendPropertyChanging(); + this._GROUPID = value; + this.SendPropertyChanged("GROUPID"); + this.OnGROUPIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TAG_CODE", DbType="VarChar(10) NOT NULL", CanBeNull=false, UpdateCheck=UpdateCheck.Never)] + public string TAG_CODE + { + get + { + return this._TAG_CODE; + } + set + { + if ((this._TAG_CODE != value)) + { + this.OnTAG_CODEChanging(value); + this.SendPropertyChanging(); + this._TAG_CODE = value; + this.SendPropertyChanged("TAG_CODE"); + this.OnTAG_CODEChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="last_modified", Storage="_Last_modified", AutoSync=AutoSync.Always, DbType="rowversion", CanBeNull=true, IsDbGenerated=true, IsVersion=true, UpdateCheck=UpdateCheck.Never)] + public System.Data.Linq.Binary Last_modified + { + get + { + return this._Last_modified; + } + set + { + if ((this._Last_modified != value)) + { + this.OnLast_modifiedChanging(value); + this.SendPropertyChanging(); + this._Last_modified = value; + this.SendPropertyChanged("Last_modified"); + this.OnLast_modifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ISupload", DbType="Char(1)", UpdateCheck=UpdateCheck.Never)] + public string ISupload + { + get + { + return this._ISupload; + } + set + { + if ((this._ISupload != value)) + { + this.OnISuploadChanging(value); + this.SendPropertyChanging(); + this._ISupload = value; + this.SendPropertyChanged("ISupload"); + this.OnISuploadChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYS_GROUP_USER")] + public partial class SYS_GROUP_USER : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectId; + + private string _UserId; + + private string _GROUPID; + + private string _USE_COLUMN1; + + private string _USE_COLUMN2; + + private string _USE_COLUMN3; + + private string _USE_COLUMN4; + + private EntityRef _SYS_GROUP; + + private EntityRef _Sys_User; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnGROUPIDChanging(string value); + partial void OnGROUPIDChanged(); + partial void OnUSE_COLUMN1Changing(string value); + partial void OnUSE_COLUMN1Changed(); + partial void OnUSE_COLUMN2Changing(string value); + partial void OnUSE_COLUMN2Changed(); + partial void OnUSE_COLUMN3Changing(string value); + partial void OnUSE_COLUMN3Changed(); + partial void OnUSE_COLUMN4Changing(string value); + partial void OnUSE_COLUMN4Changed(); + #endregion + + public SYS_GROUP_USER() + { + this._SYS_GROUP = default(EntityRef); + this._Sys_User = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + if (this._Sys_User.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GROUPID", DbType="Char(36) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string GROUPID + { + get + { + return this._GROUPID; + } + set + { + if ((this._GROUPID != value)) + { + if (this._SYS_GROUP.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnGROUPIDChanging(value); + this.SendPropertyChanging(); + this._GROUPID = value; + this.SendPropertyChanged("GROUPID"); + this.OnGROUPIDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_USE_COLUMN1", DbType="VarChar(70)")] + public string USE_COLUMN1 + { + get + { + return this._USE_COLUMN1; + } + set + { + if ((this._USE_COLUMN1 != value)) + { + this.OnUSE_COLUMN1Changing(value); + this.SendPropertyChanging(); + this._USE_COLUMN1 = value; + this.SendPropertyChanged("USE_COLUMN1"); + this.OnUSE_COLUMN1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_USE_COLUMN2", DbType="VarChar(70)")] + public string USE_COLUMN2 + { + get + { + return this._USE_COLUMN2; + } + set + { + if ((this._USE_COLUMN2 != value)) + { + this.OnUSE_COLUMN2Changing(value); + this.SendPropertyChanging(); + this._USE_COLUMN2 = value; + this.SendPropertyChanged("USE_COLUMN2"); + this.OnUSE_COLUMN2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_USE_COLUMN3", DbType="VarChar(70)")] + public string USE_COLUMN3 + { + get + { + return this._USE_COLUMN3; + } + set + { + if ((this._USE_COLUMN3 != value)) + { + this.OnUSE_COLUMN3Changing(value); + this.SendPropertyChanging(); + this._USE_COLUMN3 = value; + this.SendPropertyChanged("USE_COLUMN3"); + this.OnUSE_COLUMN3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_USE_COLUMN4", DbType="VarChar(70)")] + public string USE_COLUMN4 + { + get + { + return this._USE_COLUMN4; + } + set + { + if ((this._USE_COLUMN4 != value)) + { + this.OnUSE_COLUMN4Changing(value); + this.SendPropertyChanging(); + this._USE_COLUMN4 = value; + this.SendPropertyChanged("USE_COLUMN4"); + this.OnUSE_COLUMN4Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYS_GROU_REFERENCE_SYS_GROU", Storage="_SYS_GROUP", ThisKey="GROUPID", OtherKey="GROUPID", IsForeignKey=true)] + public SYS_GROUP SYS_GROUP + { + get + { + return this._SYS_GROUP.Entity; + } + set + { + SYS_GROUP previousValue = this._SYS_GROUP.Entity; + if (((previousValue != value) + || (this._SYS_GROUP.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._SYS_GROUP.Entity = null; + previousValue.SYS_GROUP_USER.Remove(this); + } + this._SYS_GROUP.Entity = value; + if ((value != null)) + { + value.SYS_GROUP_USER.Add(this); + this._GROUPID = value.GROUPID; + } + else + { + this._GROUPID = default(string); + } + this.SendPropertyChanged("SYS_GROUP"); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYS_GROU_REFERENCE_SYS_USER", Storage="_Sys_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)] + public Sys_User Sys_User + { + get + { + return this._Sys_User.Entity; + } + set + { + Sys_User previousValue = this._Sys_User.Entity; + if (((previousValue != value) + || (this._Sys_User.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Sys_User.Entity = null; + previousValue.SYS_GROUP_USER.Remove(this); + } + this._Sys_User.Entity = value; + if ((value != null)) + { + value.SYS_GROUP_USER.Add(this); + this._UserId = value.UserId; + } + else + { + this._UserId = default(string); + } + this.SendPropertyChanged("Sys_User"); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_HttpLog")] public partial class Sys_HttpLog : INotifyPropertyChanging, INotifyPropertyChanged { @@ -374911,6 +401457,10 @@ namespace Model private EntitySet _Check_ViolationPerson; + private EntitySet _CL_T_AreaMaterialM; + + private EntitySet _Cl_W_MaterialStorageM; + private EntitySet _Comprehensive_DataDistribution; private EntitySet _Comprehensive_DataReceiving; @@ -375377,6 +401927,8 @@ namespace Model private EntitySet _Sys_FlowOperate; + private EntitySet _SYS_GROUP_USER; + private EntitySet _Sys_Log; private EntitySet _Sys_RoleItem; @@ -375632,6 +402184,8 @@ namespace Model this._Check_SupervisionNotice_Sys_User1 = new EntitySet(new Action(this.attach_Check_SupervisionNotice_Sys_User1), new Action(this.detach_Check_SupervisionNotice_Sys_User1)); this._Check_TechnicalContactListApprove = new EntitySet(new Action(this.attach_Check_TechnicalContactListApprove), new Action(this.detach_Check_TechnicalContactListApprove)); this._Check_ViolationPerson = new EntitySet(new Action(this.attach_Check_ViolationPerson), new Action(this.detach_Check_ViolationPerson)); + this._CL_T_AreaMaterialM = new EntitySet(new Action(this.attach_CL_T_AreaMaterialM), new Action(this.detach_CL_T_AreaMaterialM)); + this._Cl_W_MaterialStorageM = new EntitySet(new Action(this.attach_Cl_W_MaterialStorageM), new Action(this.detach_Cl_W_MaterialStorageM)); this._Comprehensive_DataDistribution = new EntitySet(new Action(this.attach_Comprehensive_DataDistribution), new Action(this.detach_Comprehensive_DataDistribution)); this._Comprehensive_DataReceiving = new EntitySet(new Action(this.attach_Comprehensive_DataReceiving), new Action(this.detach_Comprehensive_DataReceiving)); this._Comprehensive_DesignChangeOrder = new EntitySet(new Action(this.attach_Comprehensive_DesignChangeOrder), new Action(this.detach_Comprehensive_DesignChangeOrder)); @@ -375865,6 +402419,7 @@ namespace Model this._Solution_SolutionTemplate = new EntitySet(new Action(this.attach_Solution_SolutionTemplate), new Action(this.detach_Solution_SolutionTemplate)); this._Sys_DataInTemp = new EntitySet(new Action(this.attach_Sys_DataInTemp), new Action(this.detach_Sys_DataInTemp)); this._Sys_FlowOperate = new EntitySet(new Action(this.attach_Sys_FlowOperate), new Action(this.detach_Sys_FlowOperate)); + this._SYS_GROUP_USER = new EntitySet(new Action(this.attach_SYS_GROUP_USER), new Action(this.detach_SYS_GROUP_USER)); this._Sys_Log = new EntitySet(new Action(this.attach_Sys_Log), new Action(this.detach_Sys_Log)); this._Sys_RoleItem = new EntitySet(new Action(this.attach_Sys_RoleItem), new Action(this.detach_Sys_RoleItem)); this._Base_Depart = default(EntityRef); @@ -377859,6 +404414,32 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_T_ARE_REFERENCE_SYS_USER", Storage="_CL_T_AreaMaterialM", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")] + public EntitySet CL_T_AreaMaterialM + { + get + { + return this._CL_T_AreaMaterialM; + } + set + { + this._CL_T_AreaMaterialM.Assign(value); + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_CL_W_MAT_REFERENCE_SYS_USER", Storage="_Cl_W_MaterialStorageM", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")] + public EntitySet Cl_W_MaterialStorageM + { + get + { + return this._Cl_W_MaterialStorageM; + } + set + { + this._Cl_W_MaterialStorageM.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Comprehensive_DataDistribution_Sys_User", Storage="_Comprehensive_DataDistribution", ThisKey="UserId", OtherKey="CompileMan", DeleteRule="NO ACTION")] public EntitySet Comprehensive_DataDistribution { @@ -380888,6 +407469,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYS_GROU_REFERENCE_SYS_USER", Storage="_SYS_GROUP_USER", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")] + public EntitySet SYS_GROUP_USER + { + get + { + return this._SYS_GROUP_USER; + } + set + { + this._SYS_GROUP_USER.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Sys_Log_Sys_User", Storage="_Sys_Log", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")] public EntitySet Sys_Log { @@ -382216,6 +408810,30 @@ namespace Model entity.Sys_User = null; } + private void attach_CL_T_AreaMaterialM(CL_T_AreaMaterialM entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_CL_T_AreaMaterialM(CL_T_AreaMaterialM entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + + private void attach_Cl_W_MaterialStorageM(Cl_W_MaterialStorageM entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_Cl_W_MaterialStorageM(Cl_W_MaterialStorageM entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_Comprehensive_DataDistribution(Comprehensive_DataDistribution entity) { this.SendPropertyChanging(); @@ -385012,6 +411630,18 @@ namespace Model entity.Sys_User = null; } + private void attach_SYS_GROUP_USER(SYS_GROUP_USER entity) + { + this.SendPropertyChanging(); + entity.Sys_User = this; + } + + private void detach_SYS_GROUP_USER(SYS_GROUP_USER entity) + { + this.SendPropertyChanging(); + entity.Sys_User = null; + } + private void attach_Sys_Log(Sys_Log entity) { this.SendPropertyChanging(); @@ -385397,6 +412027,164 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYS_UseRole")] + public partial class SYS_UseRole : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _URid; + + private string _ProjectId; + + private string _UnitId; + + private string _UserId; + + private string _RoleId; + + #region 鍙墿灞曟ф柟娉曞畾涔 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnURidChanging(string value); + partial void OnURidChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnUnitIdChanging(string value); + partial void OnUnitIdChanged(); + partial void OnUserIdChanging(string value); + partial void OnUserIdChanged(); + partial void OnRoleIdChanging(string value); + partial void OnRoleIdChanged(); + #endregion + + public SYS_UseRole() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_URid", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string URid + { + get + { + return this._URid; + } + set + { + if ((this._URid != value)) + { + this.OnURidChanging(value); + this.SendPropertyChanging(); + this._URid = value; + this.SendPropertyChanged("URid"); + this.OnURidChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this.OnUnitIdChanging(value); + this.SendPropertyChanging(); + this._UnitId = value; + this.SendPropertyChanged("UnitId"); + this.OnUnitIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this.OnUserIdChanging(value); + this.SendPropertyChanging(); + this._UserId = value; + this.SendPropertyChanged("UserId"); + this.OnUserIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="NVarChar(50)")] + public string RoleId + { + get + { + return this._RoleId; + } + set + { + if ((this._RoleId != value)) + { + this.OnRoleIdChanging(value); + this.SendPropertyChanging(); + this._RoleId = value; + this.SendPropertyChanged("RoleId"); + this.OnRoleIdChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Sys_UserRead")] public partial class Sys_UserRead : INotifyPropertyChanging, INotifyPropertyChanged { @@ -413391,6 +440179,285 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.V_user_cl")] + public partial class V_user_cl + { + + private string _URid; + + private string _ProjectId; + + private string _ProjectName; + + private string _ProjectCode; + + private string _UnitId; + + private string _UserId; + + private string _RoleId; + + private string _GROUPName; + + private string _UserName; + + private string _UnitName; + + private string _Account; + + private string _IdCard; + + private string _MdUserCode; + + private string _Password; + + private string _Cl_password; + + public V_user_cl() + { + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_URid", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string URid + { + get + { + return this._URid; + } + set + { + if ((this._URid != value)) + { + this._URid = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this._ProjectId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectName", DbType="NVarChar(200)")] + public string ProjectName + { + get + { + return this._ProjectName; + } + set + { + if ((this._ProjectName != value)) + { + this._ProjectName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectCode", DbType="NVarChar(50)")] + public string ProjectCode + { + get + { + return this._ProjectCode; + } + set + { + if ((this._ProjectCode != value)) + { + this._ProjectCode = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")] + public string UnitId + { + get + { + return this._UnitId; + } + set + { + if ((this._UnitId != value)) + { + this._UnitId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string UserId + { + get + { + return this._UserId; + } + set + { + if ((this._UserId != value)) + { + this._UserId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RoleId", DbType="NVarChar(50)")] + public string RoleId + { + get + { + return this._RoleId; + } + set + { + if ((this._RoleId != value)) + { + this._RoleId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GROUPName", DbType="VarChar(10)")] + public string GROUPName + { + get + { + return this._GROUPName; + } + set + { + if ((this._GROUPName != value)) + { + this._GROUPName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserName", DbType="NVarChar(50)")] + public string UserName + { + get + { + return this._UserName; + } + set + { + if ((this._UserName != value)) + { + this._UserName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitName", DbType="NVarChar(200)")] + public string UnitName + { + get + { + return this._UnitName; + } + set + { + if ((this._UnitName != value)) + { + this._UnitName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Account", DbType="NVarChar(50)")] + public string Account + { + get + { + return this._Account; + } + set + { + if ((this._Account != value)) + { + this._Account = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IdCard", DbType="NVarChar(50)")] + public string IdCard + { + get + { + return this._IdCard; + } + set + { + if ((this._IdCard != value)) + { + this._IdCard = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MdUserCode", DbType="NVarChar(50)")] + public string MdUserCode + { + get + { + return this._MdUserCode; + } + set + { + if ((this._MdUserCode != value)) + { + this._MdUserCode = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Password", DbType="NVarChar(50)")] + public string Password + { + get + { + return this._Password; + } + set + { + if ((this._Password != value)) + { + this._Password = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Name="cl_password", Storage="_Cl_password", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string Cl_password + { + get + { + return this._Cl_password; + } + set + { + if ((this._Cl_password != value)) + { + this._Cl_password = value; + } + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_ActionPlan_ManagerRule")] public partial class View_ActionPlan_ManagerRule { diff --git a/SGGL/SGGL.sln b/SGGL/SGGL.sln index be62a95..78abc4f 100644 --- a/SGGL/SGGL.sln +++ b/SGGL/SGGL.sln @@ -1,9 +1,12 @@ 锘 Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.35213.121 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34701.34 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FineUIPro.Web", "FineUIPro.Web\FineUIPro.Web.csproj", "{C88D3156-2D56-4DB0-922E-1995FB61C9BD}" + ProjectSection(ProjectDependencies) = postProject + {B3F63538-AB8A-45C6-B572-ACA5426DB0DE} = {B3F63538-AB8A-45C6-B572-ACA5426DB0DE} + EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BLL", "BLL\BLL.csproj", "{BBC7282A-9E2B-4BD6-9C6D-333CEFC6F332}" EndProject diff --git a/SGGL/WebAPI/Controllers/CQMS/CheckListController.cs b/SGGL/WebAPI/Controllers/CQMS/CheckListController.cs index f07d3e2..591aebd 100644 --- a/SGGL/WebAPI/Controllers/CQMS/CheckListController.cs +++ b/SGGL/WebAPI/Controllers/CQMS/CheckListController.cs @@ -4,18 +4,62 @@ using System.Collections.Generic; using System; using BLL; using System.Linq; +using static WebAPI.Controllers.HSSE.ImageRecognitionController; namespace Mvc.Controllers { public class CheckListController : ApiController { + #region 鏍规嵁椤圭洰鏃ユ湡鑾峰彇宸℃璁板綍 + [HttpGet] + public Model.ResponeData GetCheckList(string projectId, string checkDate) + { + var responeData = new Model.ResponeData(); + + try + { + DateTime mdate = Funs.GetNewDateTimeOrNow(checkDate); + var list = Funs.DB.Check_CheckControl.Where(q => q.CheckDate.Value.Year == mdate.Year + && q.CheckDate.Value.Month == mdate.Month + && q.CheckDate.Value.Day == mdate.Day); + if(string.IsNullOrEmpty(projectId)&& projectId!=null) + { + list = list.Where(p=>p.ProjectId == projectId); + } + responeData.data = list.OrderBy(x=>x.CheckDate).ToList().Select(x => new + { + CheckControlCode = x.CheckControlCode, // ID + DocCode = x.DocCode, // 缂栧彿 + ProjectId = x.ProjectId, // 椤圭洰ID + ProjectName = Funs.DB.Base_Project.FirstOrDefault(p => p.ProjectId == x.ProjectId).ProjectName, + CheckMan = x.CheckMan, // 宸℃浜篒D + CheckManName = (from y in Funs.DB.Sys_User where y.UserId == x.CheckMan select y.UserName).First(),// 宸℃浜 + CheckDate = String.Format("{0:yyyy-MM-dd}", x.CheckDate), // 宸℃鏃ユ湡 + QuestionType = x.QuestionType, // 闂绫诲瀷 + QuestionTypeName = Funs.DB.Base_QualityQuestionType.FirstOrDefault(e => e.QualityQuestionTypeId == x.QuestionType).QualityQuestionType, + States = x.State, + LimitDate = String.Format("{0:yyyy-MM-dd}", x.LimitDate), + QuestionDef = x.QuestionDef, + }); ; + + } + catch (Exception ex) + { + responeData.code = 0; + responeData.message = ex.Message; + } + + + return responeData; + } + #endregion // // 璐ㄩ噺宸℃ // GET: /Draw/ [HttpGet] - public ResponseData> Index(string projectId, int index, int page, string state, string name) + public ResponseData Index(string projectId, int index, int page, string state, string name) { - ResponseData> res = new ResponseData>(); + ResponseData res = new ResponseData(); try {res.successful = true; res.resultValue = BLL.CheckControlService.GetListDataForApi(state, name, projectId, index, page); @@ -30,6 +74,20 @@ namespace Mvc.Controllers return res; } + /// + /// 鏍规嵁code鑾峰彇璇︽儏 + /// + /// + /// + public ResponseData GetCheckControl(string code) + { + ResponseData res = new ResponseData(); + object checkControl = BLL.CheckControlService.GetCheckControlForApi(code); + res.successful = true; + res.resultValue = checkControl; + return res; + } + [HttpGet] public ResponseData Conut(string projectId, string searchWord, string unitId = null, string unitWork = null, string problemType = null, string professional = null, string dateA = null, string dateZ = null) { @@ -48,19 +106,7 @@ namespace Mvc.Controllers return res; } - /// - /// 鏍规嵁code鑾峰彇璇︽儏 - /// - /// - /// - public ResponseData GetCheckControl(string code) - { - ResponseData res = new ResponseData(); - Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControlForApi(code); - res.successful = true; - res.resultValue = BeanUtil.CopyOjbect(checkControl, true); - return res; - } + /// /// 鏍规嵁code鑾峰彇 瀹℃牳璁板綍 /// @@ -92,24 +138,15 @@ namespace Mvc.Controllers { if (string.IsNullOrEmpty(CheckControl.DocCode)) { - string prefix = BLL.ProjectService.GetProjectByProjectId(CheckControl.ProjectId).ProjectCode + "-QC-TCC-XJ-"; - CheckControl.DocCode = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.Check_CheckControl", "DocCode",CheckControl.ProjectId, prefix); + CheckControl.DocCode = BLL.SQLHelper.RunProcNewId("SpGetNewCode5ByProjectId", "dbo.Check_CheckControl", "DocCode",CheckControl.ProjectId, "QXJ-"); } CheckControl.CheckControlCode = Guid.NewGuid().ToString(); BLL.CheckControlService.AddCheckControlForApi(CheckControl); - //BLL.AttachFileService.updateAttachFile(CheckControl.ReAttachUrl, CheckControl.CheckControlCode+"r", Const.CheckListMenuId); - //BLL.AttachFileService.updateAttachFile(CheckControl.AttachUrl, CheckControl.CheckControlCode, Const.CheckListMenuId); - SaveAttachFile(CheckControl.CheckControlCode + "r", BLL.Const.CheckListMenuId, CheckControl.ReAttachUrl); - SaveAttachFile(CheckControl.CheckControlCode, BLL.Const.CheckListMenuId, CheckControl.AttachUrl); res.resultValue = CheckControl.CheckControlCode; } else { BLL.CheckControlService.UpdateCheckControlForApi(CheckControl); - //BLL.AttachFileService.updateAttachFile(CheckControl.ReAttachUrl, CheckControl.CheckControlCode + "r", Const.CheckListMenuId); - //BLL.AttachFileService.updateAttachFile(CheckControl.AttachUrl, CheckControl.CheckControlCode, Const.CheckListMenuId); - SaveAttachFile(CheckControl.CheckControlCode + "r", BLL.Const.CheckListMenuId, CheckControl.ReAttachUrl); - SaveAttachFile(CheckControl.CheckControlCode, BLL.Const.CheckListMenuId, CheckControl.AttachUrl); res.resultValue = CheckControl.CheckControlCode; } diff --git a/SGGL/WebAPI/Controllers/CQMS/WBSController.cs b/SGGL/WebAPI/Controllers/CQMS/WBSController.cs index 3f61b55..a551fb7 100644 --- a/SGGL/WebAPI/Controllers/CQMS/WBSController.cs +++ b/SGGL/WebAPI/Controllers/CQMS/WBSController.cs @@ -25,12 +25,12 @@ namespace Mvc.Controllers /// [HttpGet] - public ResponseData> GetGroupProjectName(int ProjectQualityType) + public ResponseData> GetGroupProjectName(string Keyword, int PageNumber = 1, int PageSize=15 ) { ResponseData> res = new ResponseData>(); res.successful = true; - res.resultValue = BLL.ProjectQualityService.GetGroupProjectName(ProjectQualityType); + res.resultValue = BLL.ProjectQualityService.GetGroupProjectName( PageNumber, PageSize, Keyword); return res; } @@ -41,11 +41,11 @@ namespace Mvc.Controllers /// [HttpGet] - public ResponseData> GetGroupProjectQualityDes(string projectName) + public ResponseData> GetGroupProjectQualityDes(string projectName, string keyword = "") { ResponseData> res = new ResponseData>(); res.successful = true; - res.resultValue = BLL.ProjectQualityService.GetGroupProjectQualityDes(projectName); + res.resultValue = BLL.ProjectQualityService.GetGroupProjectQualityDes(projectName, keyword); return res; } diff --git a/SGGL/WebAPI/Controllers/HSSE/RectifyController.cs b/SGGL/WebAPI/Controllers/HSSE/RectifyController.cs index 83e8d10..0a0c6a0 100644 --- a/SGGL/WebAPI/Controllers/HSSE/RectifyController.cs +++ b/SGGL/WebAPI/Controllers/HSSE/RectifyController.cs @@ -15,6 +15,7 @@ namespace WebAPI.Controllers.HSSE try { var query = (from x in Funs.DB.Technique_Rectify + where x.IsEndLever == true select new { x.RectifyId, diff --git a/SGGL/WebAPI/Controllers/HSSE/SafetyInspectionController.cs b/SGGL/WebAPI/Controllers/HSSE/SafetyInspectionController.cs index 3bbaad0..2d5c4d0 100644 --- a/SGGL/WebAPI/Controllers/HSSE/SafetyInspectionController.cs +++ b/SGGL/WebAPI/Controllers/HSSE/SafetyInspectionController.cs @@ -62,12 +62,12 @@ namespace WebAPI.Controllers.HSSE #endregion #region 鑾峰彇涓撴涓婚」鍒楄〃 - public Model.ResponeData getInspectionList(string ProjectId, string States, int PageNumber, int PageSize) + public Model.ResponeData getInspectionList(string ProjectId, string States, int PageNumber, int PageSize, string type = "1") { var responeData = new Model.ResponeData(); try { - responeData.data = Inspect_InspectionService.GetInspectionList(ProjectId, States, PageNumber, PageSize); + responeData.data = Inspect_InspectionService.GetInspectionList(ProjectId, type, States, PageNumber, PageSize); } catch (Exception ex) { @@ -122,7 +122,7 @@ namespace WebAPI.Controllers.HSSE #endregion #region 鏍规嵁椤圭洰鍜屾鏌ユ棩鏈熻幏鍙栦笓妫 锛堝叕鍙哥骇鏌ヨ锛 - public Model.ResponeData getInspectionByProjectIdAndCheckDate(string projectId, string checkDate) + public Model.ResponeData getInspectionByProjectIdAndCheckDate(string projectId, string checkDate, string type) { var responeData = new Model.ResponeData(); try @@ -130,6 +130,7 @@ namespace WebAPI.Controllers.HSSE DateTime mdate = Funs.GetNewDateTimeOrNow(checkDate); var getDataLists = (from x in Funs.DB.Inspect_Inspection + where x.InspectType == type select new InspectionDto { InspectionId = x.InspectionId, @@ -151,9 +152,9 @@ namespace WebAPI.Controllers.HSSE where a.InspectionId == x.InspectionId select a).Count().ToString(), }); - if (!string.IsNullOrEmpty(projectId)) + if (!string.IsNullOrEmpty(projectId)&&projectId!=null) { - getDataLists = getDataLists.Where(q => q.ProjectId == projectId&&q.InspectType == "1"); + getDataLists = getDataLists.Where(q => q.ProjectId == projectId); } getDataLists = getDataLists.Where(q => q.CreateTime.Value.Year == mdate.Year