20230630人员自定义卡号验证

This commit is contained in:
杨红卫 2023-06-30 16:24:19 +08:00
parent 5d70c6f745
commit f20df61fe5
12 changed files with 343 additions and 4049 deletions

View File

@ -181,17 +181,17 @@ INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandar
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),30,'文明施工','安全警示标志缺失或损坏未及时更换扣1分','现场查验',10,1,179); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),30,'文明施工','安全警示标志缺失或损坏未及时更换扣1分','现场查验',10,1,179);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),30,'文明施工','材料、构件堆码放不符合安全要求扣1分。','现场查验',10,1,180); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),30,'文明施工','材料、构件堆码放不符合安全要求扣1分。','现场查验',10,1,180);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),31,'环境卫生管理','食堂未按规定建立隔油池废水未经过滤排放扣1分','现场查验',10,1,181); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),31,'环境卫生管理','食堂未按规定建立隔油池废水未经过滤排放扣1分','现场查验',10,1,181);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),32,'环境卫生管理','食堂卫生、炊事人员证件不符合要求扣1分','现场查验',10,1,182); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),31,'环境卫生管理','食堂卫生、炊事人员证件不符合要求扣1分','现场查验',10,1,182);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),33,'环境卫生管理','作业人员宿舍不符合要求扣1分','现场查验',10,1,183); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),31,'环境卫生管理','作业人员宿舍不符合要求扣1分','现场查验',10,1,183);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),34,'环境卫生管理','未采取有效控制扬尘、施工噪声、废水的措施扣1分 ','现场查验',10,1,184); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),31,'环境卫生管理','未采取有效控制扬尘、施工噪声、废水的措施扣1分 ','现场查验',10,1,184);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),35,'环境卫生管理','有毒有害废弃物未按规定分类存放、回收扣1分','现场查验',10,1,185); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),31,'环境卫生管理','有毒有害废弃物未按规定分类存放、回收扣1分','现场查验',10,1,185);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),36,'环境卫生管理','未采取节约用水、用电和用料的措施扣1分。','现场查验',10,1,186); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),31,'环境卫生管理','未采取节约用水、用电和用料的措施扣1分。','现场查验',10,1,186);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),32,'消防管理','现场动火、用电区域灭火器配备不符合要求扣2分','现场查验',10,1,187); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),32,'消防管理','现场动火、用电区域灭火器配备不符合要求扣2分','现场查验',10,1,187);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),33,'消防管理','高处动火未采取防火花溅落措施扣1分','现场查验',10,1,188); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),32,'消防管理','高处动火未采取防火花溅落措施扣1分','现场查验',10,1,188);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),34,'消防管理','明火作业与易燃易爆品安全距离不符合要求扣1分','现场查验',10,1,189); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),32,'消防管理','明火作业与易燃易爆品安全距离不符合要求扣1分','现场查验',10,1,189);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),35,'消防管理','办公、生活临设区域消防器材配备不符合要求扣2分。','现场查验',10,1,190); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),32,'消防管理','办公、生活临设区域消防器材配备不符合要求扣2分。','现场查验',10,1,190);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),33,'临建设施','现场未按集团公司《工程项目现场临时设施标准》进行建设每一处扣1分','现场查验',10,1,191); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),33,'临建设施','现场未按集团公司《工程项目现场临时设施标准》进行建设每一处扣1分','现场查验',10,1,191);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),34,'临建设施','选址不当扣2分','现场查验',10,1,192); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),33,'临建设施','选址不当扣2分','现场查验',10,1,192);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),35,'临建设施','临建设施不符合消防、用电管理要求扣2分','现场查验',10,1,193); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),33,'临建设施','临建设施不符合消防、用电管理要求扣2分','现场查验',10,1,193);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),36,'临建设施','办公区、生活区、生产区未独立设置扣1分。','现场查验',10,1,194); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),33,'临建设施','办公区、生活区、生产区未独立设置扣1分。','现场查验',10,1,194);
INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),34,'其他','发现其他不符合安全生产法律、法规、标准、规范以及上级要求等事项每项扣2分。','现场查验',10,1,195); INSERT INTO ProjectSupervision_CheckTemplate(ID,SortIndex,CheckItem,CheckStandard,CheckMethod,BaseScore,Type,Indexs) VALUES (NEWID(),34,'其他','发现其他不符合安全生产法律、法规、标准、规范以及上级要求等事项每项扣2分。','现场查验',10,1,195);

View File

@ -3,10 +3,13 @@ using Microsoft.SqlServer.Dts.Runtime;
using Model; using Model;
using NPOI.HSSF.Record.Aggregates; using NPOI.HSSF.Record.Aggregates;
using NPOI.SS.Formula.PTG; using NPOI.SS.Formula.PTG;
using NPOI.XWPF.UserModel;
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Windows.Controls.Primitives;
using WIA;
namespace BLL namespace BLL
{ {
@ -661,8 +664,26 @@ namespace BLL
var item = db.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == sitePersonId); var item = db.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == sitePersonId);
if (item != null) if (item != null)
{ {
var isNull = db.EduTrain_TrainRecordDetail.FirstOrDefault(x => x.PersonId == item.PersonId && x.CheckResult == true); bool isok = false;
if (isNull != null) ////参加过培训的人员 int getPassScores = SysConstSetService.getPassScore();
var getTestT = db.Training_TestRecord.FirstOrDefault(x => x.ProjectId == item.ProjectId && x.TestScores >= getPassScores && x.TestManId==item.PersonId);
if (getTestT != null)
{
isok = true;
}
else
{
var isNull = (from x in db.EduTrain_TrainRecord
join y in db.EduTrain_TrainRecordDetail on x.TrainingId equals y.TrainingId
where x.ProjectId == item.ProjectId && y.PersonId == item.PersonId && y.CheckResult == true
select x);
if (isNull.Count() > 0)
{
isok = true;
}
}
if (isok) ////参加过培训的人员
{ {
string prefix = UnitService.GetUnitCodeByUnitId(item.UnitId) + "-"; string prefix = UnitService.GetUnitCodeByUnitId(item.UnitId) + "-";
var getCarPerson = db.SitePerson_Person.Where(x => x.ProjectId == item.ProjectId && x.CardNo.Contains(prefix) && x.CardNo.Length > 5); var getCarPerson = db.SitePerson_Person.Where(x => x.ProjectId == item.ProjectId && x.CardNo.Contains(prefix) && x.CardNo.Length > 5);
@ -954,6 +975,29 @@ namespace BLL
{ {
info += "身份证号码不正确!"; info += "身份证号码不正确!";
} }
if (!string.IsNullOrEmpty(person.CardNo))
{
var getSite = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.ProjectId == person.ProjectId && x.CardNo == person.CardNo && x.SitePersonId != person.SitePersonId);
if (getSite != null)
{
info += "卡号已存在!";
}
string prefix = UnitService.GetUnitCodeByUnitId(person.UnitId) + "-";
if (person.CardNo.Contains(prefix))
{
var getInt = Funs.GetNewInt(person.CardNo.Substring(person.CardNo.Length - 5));
if (!getInt.HasValue)
{
info += "卡号应为单位代码+'-'+五位流水号!";
}
}
else
{
info += "卡号应为单位代码+'-'+五位流水号!";
}
}
return info; return info;
} }

View File

@ -642,7 +642,9 @@ namespace BLL
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{ {
List<Model.Person_Persons> list = new List<Model.Person_Persons>(); List<Model.Person_Persons> list = new List<Model.Person_Persons>();
var getPersons = from x in db.Person_Persons select x; var getPersons = from x in db.Person_Persons
where x.IsPost == true
select x;
if (!string.IsNullOrEmpty(unitId)) if (!string.IsNullOrEmpty(unitId))
{ {
getPersons = getPersons.Where(x => x.UnitId == unitId); getPersons = getPersons.Where(x => x.UnitId == unitId);
@ -651,7 +653,7 @@ namespace BLL
{ {
getPersons = getPersons.Where(x => x.DepartId == DepartId); getPersons = getPersons.Where(x => x.DepartId == DepartId);
} }
list = getPersons.OrderBy(x=>x.UnitId).OrderBy(x=>x.PersonName).ToList(); list = getPersons.OrderBy(x => x.UnitId).OrderBy(x => x.PersonName).ToList();
return list; return list;
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -13943,7 +13943,7 @@
<AutoAssignPort>True</AutoAssignPort> <AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>0</DevelopmentServerPort> <DevelopmentServerPort>0</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath> <DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:5423/</IISUrl> <IISUrl>http://localhost:10675/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication> <NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer> <UseCustomServer>False</UseCustomServer>
<CustomServerUrl> <CustomServerUrl>

View File

@ -70,10 +70,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
BLL.WorkPostService.InitWorkPostDropDownList(this.drpPost, true); BLL.WorkPostService.InitWorkPostDropDownList(this.drpPost, true);
this.InitTreeMenu();//加载树 this.InitTreeMenu();//加载树
if (this.CurrUser.PersonId == Const.hfnbdId || this.CurrUser.PersonId == Const.sysglyId) //if (this.CurrUser.PersonId == Const.hfnbdId || this.CurrUser.PersonId == Const.sysglyId)
{ //{
this.btnRefresh.Hidden = false; // this.btnRefresh.Hidden = false;
} //}
} }
} }
@ -510,6 +510,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
this.btnNew.Hidden = false; this.btnNew.Hidden = false;
this.btnImport.Hidden = false; this.btnImport.Hidden = false;
this.btnPersonOut.Hidden = false; this.btnPersonOut.Hidden = false;
this.btnRefresh.Hidden = false;
} }
if (buttonList.Contains(BLL.Const.BtnModify)) if (buttonList.Contains(BLL.Const.BtnModify))
{ {

View File

@ -163,11 +163,11 @@
</f:Panel> </f:Panel>
<f:Window ID="Window1" Title="检查通知维护" Hidden="true" EnableIFrame="true" EnableMaximize="true" <f:Window ID="Window1" Title="检查通知维护" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true" Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="800px" Height="500px"> Width="900px" Height="500px">
</f:Window> </f:Window>
<f:Window ID="WindowTeam" Title="维护检查工作组" Hidden="true" EnableIFrame="true" EnableMaximize="true" <f:Window ID="WindowTeam" Title="维护检查工作组" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="WindowTeam_Close" IsModal="true" Target="Self" EnableResize="true" runat="server" OnClose="WindowTeam_Close" IsModal="true"
Width="800px" Height="500px"> Width="900px" Height="500px">
</f:Window> </f:Window>
<%--<f:Window ID="Window3" Title="查看" ShowHeader="false" Hidden="true" EnableIFrame="true" EnableMaximize="true" <%--<f:Window ID="Window3" Title="查看" ShowHeader="false" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" IsModal="true" Target="Self" EnableResize="true" runat="server" IsModal="true"

View File

@ -4,88 +4,87 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑检查通知单</title> <title>编辑检查通知单</title>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" /> <link href="../res/css/common.css" rel="stylesheet" type="text/css" />
<script src="../res/js/jquery-3.3.1.min.js" type="text/javascript"></script> <script src="../res/js/jquery-3.3.1.min.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" /> <f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" <f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right"> BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="130px">
<Rows> <Rows>
<f:FormRow> <f:FormRow>
<Items> <Items>
<f:TextBox ID="txtCheckTeamLeaderName" runat="server" Label="检查组长" LabelWidth="120px" <f:DropDownList ID="drpUnit" runat="server" Label="单位"
ShowRedStar="true" Required="true" AutoPostBack="true" OnTextChanged="txtCheckTeamLeaderName_TextChanged"> AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged"
</f:TextBox> EnableEdit="true" Required="true" ShowRedStar="true" >
<f:DropDownList ID="drpSex" runat="server" Label="性别" LabelWidth="120px" > </f:DropDownList>
<f:ListItem Value="男" Text="男" Selected="true"/> <f:DropDownList ID="drpDepart" runat="server" Label="部门"
<f:ListItem Value="女" Text="女"/> AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged"
</f:DropDownList> EnableEdit="true" Required="true" ShowRedStar="true" >
</Items> </f:DropDownList>
</f:FormRow> </Items>
<f:FormRow> </f:FormRow>
<Items> <f:FormRow>
<f:DropDownList ID="drpUnit" runat="server" Label="检查组长单位" <Items>
EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="120px" > <f:DropDownList ID="drpCheckTeamLeader" runat="server" Label="检查组长" ShowRedStar="true" Required="true"
</f:DropDownList> EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpCheckTeamLeader_SelectedIndexChanged">
</f:DropDownList>
</Items> <f:DropDownList ID="drpSex" runat="server" Label="性别" >
</f:FormRow> <f:ListItem Value="男" Text="男" Selected="true" />
<f:FormRow> <f:ListItem Value="女" Text="女" />
<Items> </f:DropDownList>
<f:DropDownList ID="drpSubjectProject" runat="server" Label="受检项目" </Items>
EnableEdit="true" Required="true" ShowRedStar="true" LabelWidth="120px" </f:FormRow>
AutoPostBack="true" OnSelectedIndexChanged="drpSubjectProject_OnSelectedIndexChanged"> <f:FormRow>
</f:DropDownList> <Items>
</Items> <f:DropDownList ID="drpSubjectProject" runat="server" Label="受检项目"
</f:FormRow> EnableEdit="true" Required="true" ShowRedStar="true"
<%--<f:FormRow> AutoPostBack="true" OnSelectedIndexChanged="drpSubjectProject_OnSelectedIndexChanged">
<Items> </f:DropDownList>
<f:TextBox ID="txtSubjectObject" runat="server" MarginLeft="120px" Height="40px" EmptyText="项目部名称" MaxLength="500"> </Items>
</f:TextBox> </f:FormRow>
</Items> <f:FormRow>
</f:FormRow>--%> <Items>
<f:FormRow> <f:TextArea ID="txtSubjectUnitAdd" runat="server" Label="受检项目地址" Height="40px">
<Items> </f:TextArea>
<f:TextArea ID="txtSubjectUnitAdd" runat="server" Label="受检项目地址" LabelWidth="120px" Height="40px"> </Items>
</f:TextArea> </f:FormRow>
</Items> <f:FormRow>
</f:FormRow> <Items>
<f:FormRow> <f:DropDownList ID="drpSubjectUnitMan" runat="server" Label="受检项目负责人" ShowRedStar="true" Required="true"
<Items> EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpSubjectUnitMan_SelectedIndexChanged">
<f:TextBox ID="txtSubjectUnitMan" runat="server" Label="受检项目负责人" LabelWidth="120px"> </f:DropDownList>
</f:TextBox> <f:TextBox ID="txtSubjectUnitTel" runat="server" Label="负责人电话" LabelWidth="150px">
<f:TextBox ID="txtSubjectUnitTel" runat="server" Label="受检项目负责人电话" LabelWidth="150px"> </f:TextBox>
</f:TextBox> </Items>
</Items> </f:FormRow>
</f:FormRow> <f:FormRow>
<f:FormRow> <Items>
<Items> <f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Required="true" ShowRedStar="true"
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Required="true" ShowRedStar="true" Label="检查日期" ID="txtCheckStartTime" >
Label="检查日期" ID="txtCheckStartTime" LabelWidth="120px"> </f:DatePicker>
</f:DatePicker> <f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Required="true" ShowRedStar="true"
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Required="true" ShowRedStar="true" Label="至" ID="txtCheckEndTime" LabelWidth="50px">
Label="至" ID="txtCheckEndTime" LabelWidth="50px"> </f:DatePicker>
</f:DatePicker> </Items>
</Items> </f:FormRow>
</f:FormRow> </Rows>
</Rows> <Toolbars>
<Toolbars> <f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server"> <Items>
<Items> <f:HiddenField runat="server" ID="hdUserId"></f:HiddenField>
<f:HiddenField runat="server" ID="hdUserId"></f:HiddenField> <f:ToolbarFill runat="server"></f:ToolbarFill>
<f:ToolbarFill runat="server"></f:ToolbarFill> <f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存数据" ValidateForms="SimpleForm1"
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存数据" ValidateForms="SimpleForm1" OnClick="btnSave_Click" Hidden="true">
OnClick="btnSave_Click" Hidden="true"> </f:Button>
</f:Button> </Items>
</Items> </f:Toolbar>
</f:Toolbar> </Toolbars>
</Toolbars> </f:Form>
</f:Form>
</form> </form>
<%--<script src="../res/js/hook.js" type="text/javascript"></script>--%> <%--<script src="../res/js/hook.js" type="text/javascript"></script>--%>
</body> </body>
</html> </html>

View File

@ -33,10 +33,12 @@ namespace FineUIPro.Web.OfficeCheck.Check
{ {
if (!IsPostBack) if (!IsPostBack)
{ {
this.GetButtonPower(); this.GetButtonPower();
BLL.ProjectService.InitAllProjectDropDownList(this.drpSubjectProject, true);
BLL.UnitService.InitSeDinAndCNCECUnitDropDownList(this.drpUnit, false); BLL.UnitService.InitSeDinAndCNCECUnitDropDownList(this.drpUnit, false);
BLL.DepartService.InitDepartDropDownList(this.drpDepart, true);
this.drpDepart.SelectedValue = Const.Depart_constructionId;
BLL.Person_PersonsService.InitUserUnitIdDepartIdDropDownList(this.drpCheckTeamLeader, this.drpUnit.SelectedValue, string.Empty, true);
BLL.ProjectService.InitProjectDropDownList(this.drpSubjectProject, true);
this.CheckNoticeId = Request.Params["CheckNoticeId"]; this.CheckNoticeId = Request.Params["CheckNoticeId"];
if (!string.IsNullOrEmpty(this.CheckNoticeId)) if (!string.IsNullOrEmpty(this.CheckNoticeId))
@ -50,11 +52,13 @@ namespace FineUIPro.Web.OfficeCheck.Check
{ {
this.drpSubjectProject.SelectedValue = checkNotice.SubjectProjectId; this.drpSubjectProject.SelectedValue = checkNotice.SubjectProjectId;
} }
this.txtSubjectUnitMan.Text = checkNotice.SubjectUnitMan; SitePerson_PersonService.InitSitePersonDropDownList(this.drpSubjectUnitMan, this.drpSubjectProject.SelectedValue, Const.sedinId, null, null, true);
// this.txtSubjectUnitMan.Text = checkNotice.SubjectUnitMan;
this.txtSubjectUnitAdd.Text = checkNotice.SubjectUnitAdd; this.txtSubjectUnitAdd.Text = checkNotice.SubjectUnitAdd;
this.txtSubjectUnitTel.Text = checkNotice.SubjectUnitTel; this.txtSubjectUnitTel.Text = checkNotice.SubjectUnitTel;
//this.txtSubjectObject.Text = checkNotice.SubjectObject; //this.txtSubjectObject.Text = checkNotice.SubjectObject;
this.txtCheckTeamLeaderName.Text = checkNotice.CheckTeamLeaderName; // this.txtCheckTeamLeaderName.Text = checkNotice.CheckTeamLeaderName;
if (!string.IsNullOrEmpty(checkNotice.UnitId)) if (!string.IsNullOrEmpty(checkNotice.UnitId))
{ {
this.drpUnit.SelectedValue = checkNotice.UnitId; this.drpUnit.SelectedValue = checkNotice.UnitId;
@ -81,24 +85,24 @@ namespace FineUIPro.Web.OfficeCheck.Check
/// <param name="e"></param> /// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e) protected void btnSave_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(this.txtCheckTeamLeaderName.Text)) if (this.drpCheckTeamLeader.SelectedValue != Const._Null)
{ {
ShowNotify("请先填写检查组长!", MessageBoxIcon.Warning); ShowNotify("请先填写检查组长!", MessageBoxIcon.Warning);
return; return;
} }
Model.ProjectSupervision_CheckNotice newCheckNotice = new Model.ProjectSupervision_CheckNotice(); Model.ProjectSupervision_CheckNotice newCheckNotice = new Model.ProjectSupervision_CheckNotice();
if (this.drpSubjectProject.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpSubjectProject.SelectedValue))
{
newCheckNotice.SubjectProjectId = this.drpSubjectProject.SelectedValue;
}
newCheckNotice.SubjectUnitAdd = this.txtSubjectUnitAdd.Text.Trim(); newCheckNotice.SubjectUnitAdd = this.txtSubjectUnitAdd.Text.Trim();
newCheckNotice.SubjectUnitMan = this.txtSubjectUnitMan.Text.Trim(); // newCheckNotice.SubjectUnitMan = this.txtSubjectUnitMan.Text.Trim();
newCheckNotice.SubjectUnitTel = this.txtSubjectUnitTel.Text.Trim(); newCheckNotice.SubjectUnitTel = this.txtSubjectUnitTel.Text.Trim();
newCheckNotice.CheckStartTime = Funs.GetNewDateTime(this.txtCheckStartTime.Text).Value; newCheckNotice.CheckStartTime = Funs.GetNewDateTime(this.txtCheckStartTime.Text).Value;
newCheckNotice.CheckEndTime = Funs.GetNewDateTime(this.txtCheckEndTime.Text).Value; newCheckNotice.CheckEndTime = Funs.GetNewDateTime(this.txtCheckEndTime.Text).Value;
newCheckNotice.CompileMan = this.CurrUser.PersonId; newCheckNotice.CompileMan = this.CurrUser.PersonId;
newCheckNotice.CompileDate = DateTime.Now; newCheckNotice.CompileDate = DateTime.Now;
newCheckNotice.CheckTeamLeaderName = this.txtCheckTeamLeaderName.Text.Trim(); newCheckNotice.CheckTeamLeaderName = this.drpCheckTeamLeader.SelectedText;
if (this.drpSubjectProject.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpSubjectProject.SelectedValue))
{
newCheckNotice.SubjectProjectId = this.drpSubjectProject.SelectedValue;
}
if (this.drpSex.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpSex.SelectedValue)) if (this.drpSex.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpSex.SelectedValue))
{ {
newCheckNotice.SexName = this.drpSex.SelectedValue; newCheckNotice.SexName = this.drpSex.SelectedValue;
@ -114,7 +118,7 @@ namespace FineUIPro.Web.OfficeCheck.Check
if (string.IsNullOrEmpty(this.CheckNoticeId)) if (string.IsNullOrEmpty(this.CheckNoticeId))
{ {
newCheckNotice.CheckNoticeId = SQLHelper.GetNewID(typeof(Model.ProjectSupervision_CheckNotice)); newCheckNotice.CheckNoticeId = SQLHelper.GetNewID();
BLL.CheckNoticeService.AddCheckNotice(newCheckNotice); BLL.CheckNoticeService.AddCheckNotice(newCheckNotice);
BLL.LogService.AddSys_Log(this.CurrUser, newCheckNotice.CheckTeamLeaderName, newCheckNotice.CheckNoticeId, BLL.Const.CheckNoticeMenuId, BLL.Const.BtnAdd); BLL.LogService.AddSys_Log(this.CurrUser, newCheckNotice.CheckTeamLeaderName, newCheckNotice.CheckNoticeId, BLL.Const.CheckNoticeMenuId, BLL.Const.BtnAdd);
} }
@ -141,8 +145,9 @@ namespace FineUIPro.Web.OfficeCheck.Check
var units = BLL.ProjectService.GetProjectByProjectId(this.drpSubjectProject.SelectedValue); var units = BLL.ProjectService.GetProjectByProjectId(this.drpSubjectProject.SelectedValue);
if (units != null) if (units != null)
{ {
this.txtSubjectUnitAdd.Text = units.ProjectAddress; this.txtSubjectUnitAdd.Text = units.ProjectAddress;
} }
SitePerson_PersonService.InitSitePersonDropDownList(this.drpSubjectUnitMan, this.drpSubjectProject.SelectedValue, Const.UnitId_SEDIN, null, null, true);
} }
#endregion #endregion
@ -165,27 +170,43 @@ namespace FineUIPro.Web.OfficeCheck.Check
} }
#endregion #endregion
#region Text改变事件 protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
{
}
/// <summary> /// <summary>
/// 检查组长事件 /// 组长
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
protected void txtCheckTeamLeaderName_TextChanged(object sender, EventArgs e) protected void drpCheckTeamLeader_SelectedIndexChanged(object sender, EventArgs e)
{ {
this.drpUnit.Enabled = true; if (this.drpCheckTeamLeader.SelectedValue != Const._Null)
var sysUser = BLL.Person_PersonsService.GetPersonsByName(this.txtCheckTeamLeaderName.Text.Trim());
if (sysUser != null)
{ {
if (!string.IsNullOrEmpty(sysUser.UnitId)) var getperson = Person_PersonsService.GetPerson_PersonsById(this.drpCheckTeamLeader.SelectedValue);
if (getperson != null)
{ {
this.drpUnit.SelectedValue = sysUser.UnitId; this.drpSex.SelectedValue = (getperson.Sex == "2" ? "女" : "男");
this.drpUnit.Enabled = false;
} }
this.hdUserId.Text = sysUser.PersonId;
this.drpSex.SelectedValue = sysUser.Sex;
} }
} }
#endregion
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpSubjectUnitMan_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.drpSubjectUnitMan.SelectedValue != Const._Null)
{
var getperson = Person_PersonsService.GetPerson_PersonsById(this.drpSubjectUnitMan.SelectedValue);
if (getperson != null)
{
this.txtSubjectUnitTel.Text = getperson.Telephone;
}
}
}
} }
} }

View File

@ -7,11 +7,13 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.OfficeCheck.Check { namespace FineUIPro.Web.OfficeCheck.Check
{
public partial class CheckNoticeEdit {
public partial class CheckNoticeEdit
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
/// </summary> /// </summary>
@ -20,7 +22,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1; protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary> /// <summary>
/// PageManager1 控件。 /// PageManager1 控件。
/// </summary> /// </summary>
@ -29,7 +31,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary> /// <summary>
/// SimpleForm1 控件。 /// SimpleForm1 控件。
/// </summary> /// </summary>
@ -38,25 +40,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Form SimpleForm1; protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtCheckTeamLeaderName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCheckTeamLeaderName;
/// <summary>
/// drpSex 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpSex;
/// <summary> /// <summary>
/// drpUnit 控件。 /// drpUnit 控件。
/// </summary> /// </summary>
@ -65,7 +49,34 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpUnit; protected global::FineUIPro.DropDownList drpUnit;
/// <summary>
/// drpDepart 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpDepart;
/// <summary>
/// drpCheckTeamLeader 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckTeamLeader;
/// <summary>
/// drpSex 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpSex;
/// <summary> /// <summary>
/// drpSubjectProject 控件。 /// drpSubjectProject 控件。
/// </summary> /// </summary>
@ -74,7 +85,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DropDownList drpSubjectProject; protected global::FineUIPro.DropDownList drpSubjectProject;
/// <summary> /// <summary>
/// txtSubjectUnitAdd 控件。 /// txtSubjectUnitAdd 控件。
/// </summary> /// </summary>
@ -83,16 +94,16 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextArea txtSubjectUnitAdd; protected global::FineUIPro.TextArea txtSubjectUnitAdd;
/// <summary> /// <summary>
/// txtSubjectUnitMan 控件。 /// drpSubjectUnitMan 控件。
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtSubjectUnitMan; protected global::FineUIPro.DropDownList drpSubjectUnitMan;
/// <summary> /// <summary>
/// txtSubjectUnitTel 控件。 /// txtSubjectUnitTel 控件。
/// </summary> /// </summary>
@ -101,7 +112,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtSubjectUnitTel; protected global::FineUIPro.TextBox txtSubjectUnitTel;
/// <summary> /// <summary>
/// txtCheckStartTime 控件。 /// txtCheckStartTime 控件。
/// </summary> /// </summary>
@ -110,7 +121,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DatePicker txtCheckStartTime; protected global::FineUIPro.DatePicker txtCheckStartTime;
/// <summary> /// <summary>
/// txtCheckEndTime 控件。 /// txtCheckEndTime 控件。
/// </summary> /// </summary>
@ -119,7 +130,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.DatePicker txtCheckEndTime; protected global::FineUIPro.DatePicker txtCheckEndTime;
/// <summary> /// <summary>
/// Toolbar1 控件。 /// Toolbar1 控件。
/// </summary> /// </summary>
@ -128,7 +139,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.Toolbar Toolbar1; protected global::FineUIPro.Toolbar Toolbar1;
/// <summary> /// <summary>
/// hdUserId 控件。 /// hdUserId 控件。
/// </summary> /// </summary>
@ -137,7 +148,7 @@ namespace FineUIPro.Web.OfficeCheck.Check {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.HiddenField hdUserId; protected global::FineUIPro.HiddenField hdUserId;
/// <summary> /// <summary>
/// btnSave 控件。 /// btnSave 控件。
/// </summary> /// </summary>

View File

@ -752,7 +752,16 @@ namespace FineUIPro.Web.Person
} }
else else
{ {
Alert.ShowInParent(personInfo ?? "" + projectPersonInfo ?? "", MessageBoxIcon.Warning); string info="提示:";
if (!string.IsNullOrEmpty(personInfo))
{
info += personInfo;
}
if (!string.IsNullOrEmpty(projectPersonInfo))
{
info += projectPersonInfo;
}
Alert.ShowInParent(info, MessageBoxIcon.Warning);
} }
} }
#endregion #endregion

View File

@ -18137,6 +18137,8 @@ namespace Model
private EntitySet<Person_TrainingPerson> _Person_TrainingPerson; private EntitySet<Person_TrainingPerson> _Person_TrainingPerson;
private EntitySet<ProjectSupervision_CheckNotice> _ProjectSupervision_CheckNotice;
private EntitySet<Test_TestRecord> _Test_TestRecord; private EntitySet<Test_TestRecord> _Test_TestRecord;
#region #region
@ -18158,6 +18160,7 @@ namespace Model
this._PHTGL_Contract = new EntitySet<PHTGL_Contract>(new Action<PHTGL_Contract>(this.attach_PHTGL_Contract), new Action<PHTGL_Contract>(this.detach_PHTGL_Contract)); this._PHTGL_Contract = new EntitySet<PHTGL_Contract>(new Action<PHTGL_Contract>(this.attach_PHTGL_Contract), new Action<PHTGL_Contract>(this.detach_PHTGL_Contract));
this._Person_Persons = new EntitySet<Person_Persons>(new Action<Person_Persons>(this.attach_Person_Persons), new Action<Person_Persons>(this.detach_Person_Persons)); this._Person_Persons = new EntitySet<Person_Persons>(new Action<Person_Persons>(this.attach_Person_Persons), new Action<Person_Persons>(this.detach_Person_Persons));
this._Person_TrainingPerson = new EntitySet<Person_TrainingPerson>(new Action<Person_TrainingPerson>(this.attach_Person_TrainingPerson), new Action<Person_TrainingPerson>(this.detach_Person_TrainingPerson)); this._Person_TrainingPerson = new EntitySet<Person_TrainingPerson>(new Action<Person_TrainingPerson>(this.attach_Person_TrainingPerson), new Action<Person_TrainingPerson>(this.detach_Person_TrainingPerson));
this._ProjectSupervision_CheckNotice = new EntitySet<ProjectSupervision_CheckNotice>(new Action<ProjectSupervision_CheckNotice>(this.attach_ProjectSupervision_CheckNotice), new Action<ProjectSupervision_CheckNotice>(this.detach_ProjectSupervision_CheckNotice));
this._Test_TestRecord = new EntitySet<Test_TestRecord>(new Action<Test_TestRecord>(this.attach_Test_TestRecord), new Action<Test_TestRecord>(this.detach_Test_TestRecord)); this._Test_TestRecord = new EntitySet<Test_TestRecord>(new Action<Test_TestRecord>(this.attach_Test_TestRecord), new Action<Test_TestRecord>(this.detach_Test_TestRecord));
OnCreated(); OnCreated();
} }
@ -18281,6 +18284,19 @@ namespace Model
} }
} }
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProjectSupervision_CheckNotice_Base_Depart", Storage="_ProjectSupervision_CheckNotice", ThisKey="DepartId", OtherKey="DepartId", DeleteRule="NO ACTION")]
public EntitySet<ProjectSupervision_CheckNotice> ProjectSupervision_CheckNotice
{
get
{
return this._ProjectSupervision_CheckNotice;
}
set
{
this._ProjectSupervision_CheckNotice.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Test_TestRecord_Base_Depart", Storage="_Test_TestRecord", ThisKey="DepartId", OtherKey="DepartId", DeleteRule="NO ACTION")] [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Test_TestRecord_Base_Depart", Storage="_Test_TestRecord", ThisKey="DepartId", OtherKey="DepartId", DeleteRule="NO ACTION")]
public EntitySet<Test_TestRecord> Test_TestRecord public EntitySet<Test_TestRecord> Test_TestRecord
{ {
@ -18350,6 +18366,18 @@ namespace Model
entity.Base_Depart = null; entity.Base_Depart = null;
} }
private void attach_ProjectSupervision_CheckNotice(ProjectSupervision_CheckNotice entity)
{
this.SendPropertyChanging();
entity.Base_Depart = this;
}
private void detach_ProjectSupervision_CheckNotice(ProjectSupervision_CheckNotice entity)
{
this.SendPropertyChanging();
entity.Base_Depart = null;
}
private void attach_Test_TestRecord(Test_TestRecord entity) private void attach_Test_TestRecord(Test_TestRecord entity)
{ {
this.SendPropertyChanging(); this.SendPropertyChanging();
@ -195095,8 +195123,12 @@ namespace Model
private string _SubjectProjectId; private string _SubjectProjectId;
private string _DepartId;
private EntitySet<ProjectSupervision_Check1> _ProjectSupervision_Check1; private EntitySet<ProjectSupervision_Check1> _ProjectSupervision_Check1;
private EntityRef<Base_Depart> _Base_Depart;
private EntityRef<Base_Project> _Base_Project; private EntityRef<Base_Project> _Base_Project;
private EntityRef<Base_Unit> _Base_Unit; private EntityRef<Base_Unit> _Base_Unit;
@ -195143,11 +195175,14 @@ namespace Model
partial void OnSexNameChanged(); partial void OnSexNameChanged();
partial void OnSubjectProjectIdChanging(string value); partial void OnSubjectProjectIdChanging(string value);
partial void OnSubjectProjectIdChanged(); partial void OnSubjectProjectIdChanged();
partial void OnDepartIdChanging(string value);
partial void OnDepartIdChanged();
#endregion #endregion
public ProjectSupervision_CheckNotice() public ProjectSupervision_CheckNotice()
{ {
this._ProjectSupervision_Check1 = new EntitySet<ProjectSupervision_Check1>(new Action<ProjectSupervision_Check1>(this.attach_ProjectSupervision_Check1), new Action<ProjectSupervision_Check1>(this.detach_ProjectSupervision_Check1)); this._ProjectSupervision_Check1 = new EntitySet<ProjectSupervision_Check1>(new Action<ProjectSupervision_Check1>(this.attach_ProjectSupervision_Check1), new Action<ProjectSupervision_Check1>(this.detach_ProjectSupervision_Check1));
this._Base_Depart = default(EntityRef<Base_Depart>);
this._Base_Project = default(EntityRef<Base_Project>); this._Base_Project = default(EntityRef<Base_Project>);
this._Base_Unit = default(EntityRef<Base_Unit>); this._Base_Unit = default(EntityRef<Base_Unit>);
this._Person_Persons = default(EntityRef<Person_Persons>); this._Person_Persons = default(EntityRef<Person_Persons>);
@ -195435,6 +195470,30 @@ namespace Model
} }
} }
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartId", DbType="NVarChar(50)")]
public string DepartId
{
get
{
return this._DepartId;
}
set
{
if ((this._DepartId != value))
{
if (this._Base_Depart.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnDepartIdChanging(value);
this.SendPropertyChanging();
this._DepartId = value;
this.SendPropertyChanged("DepartId");
this.OnDepartIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProjectSupervision_Check1_ProjectSupervision_CheckNotice", Storage="_ProjectSupervision_Check1", ThisKey="CheckNoticeId", OtherKey="CheckNoticeId", DeleteRule="NO ACTION")] [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProjectSupervision_Check1_ProjectSupervision_CheckNotice", Storage="_ProjectSupervision_Check1", ThisKey="CheckNoticeId", OtherKey="CheckNoticeId", DeleteRule="NO ACTION")]
public EntitySet<ProjectSupervision_Check1> ProjectSupervision_Check1 public EntitySet<ProjectSupervision_Check1> ProjectSupervision_Check1
{ {
@ -195448,6 +195507,40 @@ namespace Model
} }
} }
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProjectSupervision_CheckNotice_Base_Depart", Storage="_Base_Depart", ThisKey="DepartId", OtherKey="DepartId", IsForeignKey=true)]
public Base_Depart Base_Depart
{
get
{
return this._Base_Depart.Entity;
}
set
{
Base_Depart previousValue = this._Base_Depart.Entity;
if (((previousValue != value)
|| (this._Base_Depart.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Base_Depart.Entity = null;
previousValue.ProjectSupervision_CheckNotice.Remove(this);
}
this._Base_Depart.Entity = value;
if ((value != null))
{
value.ProjectSupervision_CheckNotice.Add(this);
this._DepartId = value.DepartId;
}
else
{
this._DepartId = default(string);
}
this.SendPropertyChanged("Base_Depart");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProjectSupervision_CheckNotice_Base_Project", Storage="_Base_Project", ThisKey="SubjectProjectId", OtherKey="ProjectId", IsForeignKey=true)] [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_ProjectSupervision_CheckNotice_Base_Project", Storage="_Base_Project", ThisKey="SubjectProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project public Base_Project Base_Project
{ {