This commit is contained in:
gaofei 2022-04-14 11:15:34 +08:00
parent 274010da92
commit 8e73412eb6
49 changed files with 1609 additions and 2301 deletions

View File

@ -0,0 +1,52 @@
alter table [dbo].[Sys_Role] add CNProfessionalIds nvarchar(500) null
GO
alter table [dbo].[License_LicenseManager] add CNProfessionalId nvarchar(50) null
GO
alter table [dbo].[Check_RectifyNotices] add CNProfessionalId nvarchar(50) null
GO
alter table [dbo].[EduTrain_TrainRecord] add CNProfessionalId nvarchar(50) null
GO
alter table [dbo].[EduTrain_TrainRecord] add UnitWorkIds nvarchar(500) null
GO
ALTER VIEW [dbo].[View_License_LicenseManager]
AS
/*ÏÖ³¡°²È«Ðí¿ÉÖ¤*/
SELECT LicenseManager.LicenseManagerId,
LicenseManager.ProjectId,
LicenseManager.LicenseTypeId,
LicenseManager.LicenseManagerCode,
LicenseManager.LicenseManageName,
LicenseManager.UnitId,
LicenseManager.LicenseManageContents,
LicenseManager.CompileMan,
LicenseManager.CompileDate,
LicenseManager.CNProfessionalId,
CN.ProfessionalName,
LicenseManager.States,
Project.ProjectCode,
Project.ProjectName,
LicenseType.LicenseTypeName,
Unit.UnitName,
Users.UserName,
LicenseManager.WorkAreaId,
--WorkArea.WorkAreaName,
LicenseManager.StartDate,
LicenseManager.EndDate,
LicenseManager.ApplicantMan,
WorkAreaName = STUFF(( SELECT ',' + UnitWorkName FROM WBS_UnitWork
where PATINDEX('%,' + RTRIM(WBS_UnitWork.UnitWorkId) + ',%',',' + LicenseManager.WorkAreaId + ',')>0
ORDER BY PATINDEX('%,' + RTRIM(LicenseManager.WorkAreaId) + ',%',',' + LicenseManager.WorkAreaId + ',')
FOR XML PATH('')), 1, 1,'')
FROM dbo.License_LicenseManager AS LicenseManager
LEFT JOIN dbo.Base_Project AS Project ON Project.ProjectId = LicenseManager.ProjectId
LEFT JOIN dbo.Base_LicenseType AS LicenseType ON LicenseType.LicenseTypeId = LicenseManager.LicenseTypeId
LEFT JOIN dbo.Base_CNProfessional AS CN ON CN.CNProfessionalId = LicenseManager.CNProfessionalId
LEFT JOIN dbo.Base_Unit AS Unit ON Unit.UnitId = LicenseManager.UnitId
LEFT JOIN dbo.Sys_User AS Users ON Users.UserId = LicenseManager.CompileMan
LEFT JOIN dbo.WBS_UnitWork AS WorkArea ON WorkArea.UnitWorkId = LicenseManager.WorkAreaId
GO

View File

@ -42,6 +42,7 @@ namespace BLL
DutyPerson = rectifyNotice.DutyPerson,
CompleteDate = rectifyNotice.CompleteDate,
IsRectify = rectifyNotice.IsRectify,
CNProfessionalId=rectifyNotice.CNProfessionalId,
CheckPerson = rectifyNotice.CheckPerson,
DutyPersonId = rectifyNotice.DutyPersonId,
ReCheckDate = rectifyNotice.ReCheckDate,

View File

@ -40,8 +40,10 @@ namespace BLL
TrainStartDate = training.TrainStartDate,
TeachHour = training.TeachHour,
TeachMan = training.TeachMan,
CNProfessionalId = training.CNProfessionalId,
TeachAddress = training.TeachAddress,
Remark = training.Remark,
UnitWorkIds = training.UnitWorkIds,
AttachUrl = training.AttachUrl,
TrainTypeId = training.TrainTypeId,
TrainLevelId = training.TrainLevelId,
@ -62,7 +64,7 @@ namespace BLL
{
newTraining.TrainEndDate = training.TrainStartDate;
}
db.EduTrain_TrainRecord.InsertOnSubmit(newTraining);
db.SubmitChanges();
////增加一条编码记录
@ -83,6 +85,7 @@ namespace BLL
newTraining.TrainTitle = training.TrainTitle;
newTraining.TrainContent = training.TrainContent;
newTraining.TrainStartDate = training.TrainStartDate;
newTraining.CNProfessionalId = training.CNProfessionalId;
if (training.TrainEndDate.HasValue)
{
newTraining.TrainEndDate = training.TrainEndDate;
@ -93,6 +96,7 @@ namespace BLL
}
newTraining.TeachHour = training.TeachHour;
newTraining.TeachMan = training.TeachMan;
newTraining.UnitWorkIds = training.UnitWorkIds;
newTraining.TeachAddress = training.TeachAddress;
newTraining.Remark = training.Remark;
newTraining.AttachUrl = training.AttachUrl;
@ -104,7 +108,7 @@ namespace BLL
newTraining.FromRecordId = training.FromRecordId;
newTraining.WorkPostIds = training.WorkPostIds;
db.SubmitChanges();
}
}
}
/// <summary>

View File

@ -51,13 +51,14 @@ namespace BLL
UnitId = licenseManager.UnitId,
LicenseManageContents = licenseManager.LicenseManageContents,
ApplicantMan = licenseManager.ApplicantMan,
CNProfessionalId = licenseManager.CNProfessionalId,
CompileMan = licenseManager.CompileMan,
CompileDate = licenseManager.CompileDate,
States = licenseManager.States,
WorkAreaId = licenseManager.WorkAreaId,
StartDate = licenseManager.StartDate,
EndDate = licenseManager.EndDate,
WorkStates=licenseManager.WorkStates,
WorkStates = licenseManager.WorkStates,
};
db.License_LicenseManager.InsertOnSubmit(newLicenseManager);
db.SubmitChanges();
@ -82,6 +83,7 @@ namespace BLL
newLicenseManager.UnitId = licenseManager.UnitId;
newLicenseManager.LicenseManageContents = licenseManager.LicenseManageContents;
newLicenseManager.ApplicantMan = licenseManager.ApplicantMan;
newLicenseManager.CNProfessionalId = licenseManager.CNProfessionalId;
newLicenseManager.CompileDate = licenseManager.CompileDate;
newLicenseManager.States = licenseManager.States;
newLicenseManager.WorkAreaId = licenseManager.WorkAreaId;
@ -100,7 +102,7 @@ namespace BLL
{
Model.SGGLDB db = Funs.DB;
Model.License_LicenseManager licenseManager = db.License_LicenseManager.FirstOrDefault(e => e.LicenseManagerId == licenseManagerId);
if (licenseManager!=null)
if (licenseManager != null)
{
///删除编码表记录
BLL.CodeRecordsService.DeleteCodeRecordsByDataId(licenseManagerId);
@ -110,7 +112,7 @@ namespace BLL
if (flowOperate.Count() > 0)
{
BLL.CommonService.DeleteFlowOperateByID(licenseManager.LicenseManagerId); ////删除审核流程表
}
}
db.License_LicenseManager.DeleteOnSubmit(licenseManager);
db.SubmitChanges();
}

View File

@ -60,6 +60,7 @@
RoleCode = role.RoleCode,
RoleName = role.RoleName,
Def = role.Def,
CNProfessionalIds=role.CNProfessionalIds,
IsSystemBuilt = role.IsSystemBuilt,
IsOffice = role.IsOffice,
RoleType=role.RoleType,
@ -83,6 +84,7 @@
updateRole.RoleCode = role.RoleCode;
updateRole.RoleName = role.RoleName;
updateRole.Def = role.Def;
updateRole.CNProfessionalIds = role.CNProfessionalIds;
updateRole.IsOffice = role.IsOffice;
updateRole.RoleType = role.RoleType;
db.SubmitChanges();

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -254,6 +254,7 @@
<Content Include="CLGL\SubUnit.aspx" />
<Content Include="CLGL\Supplier.aspx" />
<Content Include="common\mainI.aspx" />
<Content Include="common\mainIV.aspx" />
<Content Include="common\mainMenu_DigitalSite.aspx" />
<Content Include="common\mainMenu_HJGL.aspx" />
<Content Include="common\mainMenu_Party.aspx" />
@ -6051,6 +6052,13 @@
<Compile Include="common\mainI.aspx.designer.cs">
<DependentUpon>mainI.aspx</DependentUpon>
</Compile>
<Compile Include="common\mainIV.aspx.cs">
<DependentUpon>mainIV.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="common\mainIV.aspx.designer.cs">
<DependentUpon>mainIV.aspx</DependentUpon>
</Compile>
<Compile Include="common\mainMenu_DigitalSite.aspx.cs">
<DependentUpon>mainMenu_DigitalSite.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -80,6 +80,9 @@
SortField="WorkAreaName" FieldType="String" HeaderText="单位工程" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ProfessionalName" DataField="ProfessionalName" FieldType="String" HeaderText="专业" TextAlign="Left"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField Width="240px" ColumnID="UnitName" DataField="UnitName" ExpandUnusedSpace="true"
SortField="UnitName" FieldType="String" HeaderText="受检单位名称" TextAlign="Left" HeaderTextAlign="Center">
</f:RenderField>

View File

@ -74,13 +74,14 @@ namespace FineUIPro.Web.HSSE.Check
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT R.RectifyNoticesId,R.ProjectId,R.RectifyNoticesCode,R.UnitId ,Unit.UnitName,R.WorkAreaId,R.CheckManNames,R.CheckManIds
string strSql = @"SELECT R.RectifyNoticesId,R.ProjectId,R.RectifyNoticesCode,R.UnitId ,CN.ProfessionalName,Unit.UnitName,R.WorkAreaId,R.CheckManNames,R.CheckManIds
,WorkAreaName= STUFF(( SELECT ',' + UnitWorkName FROM dbo.WBS_UnitWork where PATINDEX('%,' + RTRIM(UnitWorkId) + ',%',',' +R.WorkAreaId + ',')>0 FOR XML PATH('')), 1, 1,''),CheckPersonName= (STUFF(( SELECT ',' + UserName FROM dbo.Sys_User where PATINDEX('%,' + RTRIM(UserId) + ',%',',' +R.CheckManIds+ ',')>0 FOR XML PATH('')), 1, 1,'')+ (CASE WHEN CheckManNames IS NOT NULL AND CheckManNames !='' THEN ','+ CheckManNames ELSE '' END)),R.DutyPerson,R.CheckedDate,DutyPerson.UserName AS DutyPersonName,R.DutyPersonTime,R.CompleteDate
,(CASE WHEN States = 0 THEN '['+CompileMan.UserName+']' WHEN States = 1 THEN '['+SignMan.UserName+']' WHEN States = 2 THEN '['+DutyPerson.UserName+']' WHEN States = 3 THEN '['+UnitHeadMan.UserName+']' WHEN States = 4 THEN '['+CheckPerson.UserName+']' WHEN States = 5 THEN '' ELSE '' END) AS StatesName
FROM Check_RectifyNotices AS R
LEFT JOIN Base_Project AS Project ON Project.ProjectId = R.ProjectId
LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = R.UnitId
LEFT JOIN Sys_User AS CompileMan ON CompileMan.UserId=R.CompleteManId
LEFT JOIN Base_CNProfessional AS CN ON CN.CNProfessionalId=R.CNProfessionalId
LEFT JOIN Sys_User AS SignMan ON SignMan.UserId=R.SignPerson
LEFT JOIN Sys_User AS DutyPerson ON DutyPerson.UserId = R.DutyPersonId
LEFT JOIN Sys_User AS UnitHeadMan ON UnitHeadMan.UserId = R.UnitHeadManId

View File

@ -63,7 +63,7 @@
<f:ListItem Text="较大" Value="2" />
<f:ListItem Text="重大" Value="3" />
</f:DropDownList>
<f:Label runat="server" ></f:Label>
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelAlign="Right"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>

View File

@ -46,6 +46,8 @@ namespace FineUIPro.Web.HSSE.Check
BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpSignPerson, this.CurrUser.LoginProjectId, Const.UnitId_CWCEC, true);
///检察人员
BLL.UserService.InitFlowOperateControlUserDropDownList(this.drpCheckMan, this.CurrUser.LoginProjectId, null, true);
//专业
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);
//Funs.FineUIPleaseSelect(drpIsRectify);
RectifyNoticesId = Request.Params["RectifyNoticesId"];
var getRectifyNotices = RectifyNoticesService.GetRectifyNoticesById(RectifyNoticesId);
@ -65,6 +67,10 @@ namespace FineUIPro.Web.HSSE.Check
this.drpCheckMan.SelectedValueArray = getRectifyNotices.CheckManIds.Split(',');
}
this.txtCheckPerson.Text = getRectifyNotices.CheckManNames;
if (!string.IsNullOrEmpty(getRectifyNotices.CNProfessionalId))
{
this.drpCNProfessionalId.SelectedValue = getRectifyNotices.CNProfessionalId;
}
this.txtRectifyNoticesCode.Text = getRectifyNotices.RectifyNoticesCode;
this.txtCheckedDate.Text = getRectifyNotices.CheckedDate.ToString();
if (!string.IsNullOrEmpty(getRectifyNotices.SignPerson))
@ -254,7 +260,10 @@ namespace FineUIPro.Web.HSSE.Check
return;
}
}
if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null)
{
newRectifyNotices.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
}
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
{
newRectifyNotices.UnitId = this.drpUnitId.SelectedValue;

View File

@ -156,6 +156,15 @@ namespace FineUIPro.Web.HSSE.Check {
/// </remarks>
protected global::FineUIPro.DropDownList drpHiddenHazardType;
/// <summary>
/// drpCNProfessionalId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCNProfessionalId;
/// <summary>
/// Grid1 控件。
/// </summary>

View File

@ -49,6 +49,8 @@
</f:TextBox>
<f:TextBox ID="drpHiddenHazardType" runat="server" Label="隐患类别" LabelWidth="110px" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtProfessionalName" runat="server" Label="专业" LabelWidth="110px" Readonly="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>

View File

@ -22,7 +22,7 @@ namespace FineUIPro.Web.HSSE.Check
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
{
this.RectifyNoticesId = Request.Params["RectifyNoticesId"];
if (!string.IsNullOrEmpty(RectifyNoticesId))
{
@ -35,7 +35,12 @@ namespace FineUIPro.Web.HSSE.Check
this.txtWorkAreaId.Text = BLL.UnitWorkService.GetUnitWorkName(getRectifyNotices.WorkAreaId);
this.txtCheckPerson.Text = getRectifyNotices.CheckManNames;
this.txtRectifyNoticesCode.Text = getRectifyNotices.RectifyNoticesCode;
this.txtCheckedDate.Text =string.Format("{0:yyyy-MM-dd}",getRectifyNotices.CheckedDate);
this.txtCheckedDate.Text = string.Format("{0:yyyy-MM-dd}", getRectifyNotices.CheckedDate);
Model.Base_CNProfessional cn = BLL.CNProfessionalService.GetCNProfessional(getRectifyNotices.CNProfessionalId);
if (cn != null)
{
this.txtProfessionalName.Text = cn.ProfessionalName;
}
this.drpHiddenHazardType.Text = "一般";
if (getRectifyNotices.HiddenHazardType == "2")
{

View File

@ -120,6 +120,15 @@ namespace FineUIPro.Web.HSSE.Check {
/// </remarks>
protected global::FineUIPro.TextBox drpHiddenHazardType;
/// <summary>
/// txtProfessionalName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProfessionalName;
/// <summary>
/// Grid1 控件。
/// </summary>

View File

@ -74,6 +74,12 @@
<asp:Label ID="lblUnitId" runat="server" Text='<%# ConvertUnitName(Eval("UnitIds")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="UnitWork" Width="300px" HeaderText="单位工程" HeaderTextAlign="Center"
TextAlign="left">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# ConvertUnitWorkName(Eval("UnitWorkIds")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="110px" ColumnID="TrainTypeName" DataField="TrainTypeName" SortField="TrainTypeName"
FieldType="String" HeaderText="培训类型" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
@ -84,6 +90,9 @@
SortField="TrainStartDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="培训日期" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="ProfessionalName" DataField="ProfessionalName" SortField="ProfessionalName"
FieldType="String" HeaderText="专业" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<%-- <f:RenderField Width="65px" ColumnID="TeachHour" DataField="TeachHour" SortField="TeachHour"
FieldType="Float" HeaderText="学时" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>

View File

@ -80,6 +80,8 @@ namespace FineUIPro.Web.HSSE.EduTrain
+ @",TrainRecord.TrainEndDate"
+ @",TrainRecord.TeachHour"
+ @",TrainRecord.TeachMan"
+ @",TrainRecord.UnitWorkIds"
+ @",CN.ProfessionalName"
+ @",TrainRecord.TrainPersonNum"
+ @",TrainingCode"
// + @",CodeRecords.Code AS TrainingCode"
@ -89,6 +91,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
+ @" LEFT JOIN Sys_FlowOperate AS FlowOperate ON TrainRecord.TrainingId=FlowOperate.DataId AND FlowOperate.IsClosed <> 1"
+ @" LEFT JOIN Sys_User AS OperateUser ON FlowOperate.OperaterId=OperateUser.UserId "
+ @" LEFT JOIN Base_TrainType AS TrainType ON TrainRecord.TrainTypeId=TrainType.TrainTypeId "
+ @" LEFT JOIN Base_CNProfessional AS CN ON TrainRecord.CNProfessionalId=CN.CNProfessionalId "
+ @" LEFT JOIN Base_TrainLevel AS TrainLevel ON TrainRecord.TrainLevelId=TrainLevel.TrainLevelId "
+ @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON TrainRecord.TrainingId=CodeRecords.DataId WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
@ -459,6 +462,36 @@ namespace FineUIPro.Web.HSSE.EduTrain
}
return unitName;
}
/// <summary>
/// 获取单位工程名称
/// </summary>
/// <param name="unitIds"></param>
/// <returns></returns>
protected string ConvertUnitWorkName(object unitWorkIds)
{
string unitWorkName = string.Empty;
if (unitWorkIds != null)
{
List<string> infos = unitWorkIds.ToString().Split(',').ToList();
if (infos.Count() > 0)
{
foreach (var item in infos)
{
Model.WBS_UnitWork unitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(item);
if (unitWork != null)
{
unitWorkName += unitWork.UnitWorkName + ",";
}
}
if (!string.IsNullOrEmpty(unitWorkName))
{
unitWorkName = unitWorkName.Substring(0, unitWorkName.LastIndexOf(","));
}
}
}
return unitWorkName;
}
#endregion
#region

View File

@ -174,6 +174,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblUnitId;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>

View File

@ -42,12 +42,15 @@
<Items>
<f:TextBox ID="txtTrainTitle" runat="server" Label="标题" MaxLength="200" >
</f:TextBox>
<f:DropDownList ID="drpUnitWork" runat="server" Label="单位工程" EnableCheckBoxSelect="true" EnableMultiSelect="true">
</f:DropDownList>
<f:TextBox ID="txtTeachAddress" runat="server" Label="培训地点" MaxLength="100">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelAlign="Right"></f:DropDownList>
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="培训日期" ID="txtTrainStartDate">
</f:DatePicker>
<f:NumberBox ID="txtTrainPersonNum" NoDecimal="true" NoNegative="true" MinValue="0" Readonly="true" runat="server" Label="培训人数" >

View File

@ -23,7 +23,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
ViewState["TrainingId"] = value;
}
}
/// <summary>
/// 主键
/// </summary>
@ -84,6 +84,14 @@ namespace FineUIPro.Web.HSSE.EduTrain
this.InitDropDownList();
}
this.txtTrainingCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.TrainingId);
if (!string.IsNullOrEmpty(trainRecord.CNProfessionalId))
{
this.drpCNProfessionalId.SelectedValue = trainRecord.CNProfessionalId;
}
if (!string.IsNullOrEmpty(trainRecord.UnitWorkIds))
{
this.drpUnitWork.SelectedValueArray = trainRecord.UnitWorkIds.Split(',');
}
if (!string.IsNullOrEmpty(trainRecord.TrainTypeId))
{
this.drpTrainType.SelectedValue = trainRecord.TrainTypeId;
@ -163,7 +171,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
isRed = false;
}
if(isRed)
if (isRed)
{
var getRecordDetail = trainRecordDetails.FirstOrDefault(x => x.TrainDetailId == trainDetailId);
if (getRecordDetail != null && !string.IsNullOrEmpty(this.TestPlanId)) ////未参加过培训的人员
@ -172,7 +180,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
if (getTestRecord != null)
{
isRed = false;
}
}
}
}
if (isRed)
@ -193,6 +201,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
TrainLevelService.InitTrainLevelDropDownList(this.drpTrainLevel, true);
//培训单位
UnitService.InitUnitDropDownList(this.drpUnits, this.ProjectId, false);
//专业
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);
//单位工程
BLL.UnitWorkService.InitUnitWorkDownList(this.drpUnitWork, this.CurrUser.LoginProjectId, true);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPostIds, true);
this.drpUnits.SelectedValue = this.CurrUser.UnitId;
}
@ -204,7 +216,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSelect_Click(object sender, EventArgs e)
{
{
if (string.IsNullOrEmpty(this.TrainingId))
{
this.SaveData(BLL.Const.BtnSave);
@ -297,10 +309,15 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
trainRecord.TrainTypeId = this.drpTrainType.SelectedValue;
}
trainRecord.UnitWorkIds = Funs.GetStringByArray(this.drpUnitWork.SelectedValueArray);
if (this.drpTrainLevel.SelectedValue != BLL.Const._Null)
{
trainRecord.TrainLevelId = this.drpTrainLevel.SelectedValue;
}
}
if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null)
{
trainRecord.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
}
//培训单位
string unitIds = string.Empty;
foreach (var item in this.drpUnits.SelectedValueArray)
@ -378,7 +395,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
BLL.EduTrain_TrainRecordDetailService.UpdateTrainDetail(detail);
}
}
if (i == 0)
{
////保存流程审核数据
@ -417,7 +434,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
}
this.Grid1DataBind();
this.txtTrainPersonNum.Text = trainRecordDetails.Count.ToString();
this.txtTrainPersonNum.Text = trainRecordDetails.Count.ToString();
this.ShowNotify("删除数据成功!(表格数据已重新绑定)");
}
}
@ -471,7 +488,7 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("TrainTestView.aspx?TrainDetailId={0}", rowID, "查看试卷 - ")));
}
}
}
}

View File

@ -84,6 +84,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.TextBox txtTrainTitle;
/// <summary>
/// drpUnitWork 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitWork;
/// <summary>
/// txtTeachAddress 控件。
/// </summary>
@ -93,6 +102,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.TextBox txtTeachAddress;
/// <summary>
/// drpCNProfessionalId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCNProfessionalId;
/// <summary>
/// txtTrainStartDate 控件。
/// </summary>

View File

@ -41,16 +41,20 @@
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="33% 67%">
<f:FormRow>
<Items>
<f:TextBox ID="txtTrainTitle" runat="server" Label="标题" MaxLength="200" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtUnitWork" runat="server" Label="单位工程" MaxLength="100" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtTeachAddress" runat="server" Label="培训地点" MaxLength="100" Readonly="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtProfessionalName" runat="server" Label="专业" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtTrainStartDate" runat="server" Label="培训日期" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtTrainPersonNum" runat="server" Label="培训人数" Readonly="true">

View File

@ -70,6 +70,15 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
this.txtTrainLevel.Text = trainLevel.TrainLevelName;
}
Model.Base_CNProfessional cn = BLL.CNProfessionalService.GetCNProfessional(trainRecord.CNProfessionalId);
if (cn != null)
{
this.txtProfessionalName.Text = cn.ProfessionalName;
}
if (!string.IsNullOrEmpty(trainRecord.UnitWorkIds))
{
this.txtUnitWork.Text = BLL.UnitWorkService.GetUnitWorkName(trainRecord.UnitWorkIds);
}
this.txtTrainTitle.Text = trainRecord.TrainTitle;
if (!string.IsNullOrEmpty(trainRecord.UnitIds))
{

View File

@ -84,6 +84,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.TextBox txtTrainTitle;
/// <summary>
/// txtUnitWork 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUnitWork;
/// <summary>
/// txtTeachAddress 控件。
/// </summary>
@ -93,6 +102,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.TextBox txtTeachAddress;
/// <summary>
/// txtProfessionalName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProfessionalName;
/// <summary>
/// txtTrainStartDate 控件。
/// </summary>

View File

@ -65,6 +65,9 @@
<f:RenderField Width="240px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
FieldType="String" HeaderText="申请单位" HeaderTextAlign="Center" TextAlign="Left" >
</f:RenderField>
<f:RenderField ColumnID="ProfessionalName" DataField="ProfessionalName" FieldType="String" HeaderText="专业" TextAlign="Left"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField Width="140px" ColumnID="WorkAreaName" DataField="WorkAreaName" SortField="WorkAreaName"
FieldType="String" HeaderText="单位工程" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>

View File

@ -68,7 +68,7 @@ namespace FineUIPro.Web.HSSE.License
/// </summary>
private void BindGrid()
{
string strSql = "SELECT LicenseManager.LicenseManagerId,LicenseManager.ProjectId,LicenseManager.LicenseTypeId,CodeRecords.Code AS LicenseManagerCode,LicenseManager.LicenseManageName,LicenseManager.UnitId,LicenseManager.LicenseManageContents,LicenseManager.CompileMan,LicenseManager.CompileDate,LicenseManager.States,LicenseManager.ProjectCode,LicenseManager.ProjectName,LicenseManager.LicenseTypeName,LicenseManager.UnitName,LicenseManager.UserName,LicenseManager.WorkAreaName,LicenseManager.StartDate,LicenseManager.EndDate"
string strSql = "SELECT LicenseManager.LicenseManagerId,LicenseManager.ProjectId,LicenseManager.LicenseTypeId,LicenseManager.ProfessionalName,CodeRecords.Code AS LicenseManagerCode,LicenseManager.LicenseManageName,LicenseManager.UnitId,LicenseManager.LicenseManageContents,LicenseManager.CompileMan,LicenseManager.CompileDate,LicenseManager.States,LicenseManager.ProjectCode,LicenseManager.ProjectName,LicenseManager.LicenseTypeName,LicenseManager.UnitName,LicenseManager.UserName,LicenseManager.WorkAreaName,LicenseManager.StartDate,LicenseManager.EndDate"
+ @" ,(CASE WHEN LicenseManager.States = " + BLL.Const.State_0 + " OR LicenseManager.States IS NULL THEN '待['+OperateUser.UserName+']提交' WHEN LicenseManager.States = " + BLL.Const.State_2 + " THEN '审核/审批完成' ELSE '待['+OperateUser.UserName+']办理' END) AS FlowOperateName"
+ @" FROM View_License_LicenseManager AS LicenseManager "
+ @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON LicenseManager.LicenseManagerId=CodeRecords.DataId "

View File

@ -16,7 +16,7 @@
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow ColumnWidths="34% 66%">
<f:FormRow>
<Items>
<f:TextBox ID="txtLicenseManagerCode" runat="server" Label="许可证编号" LabelAlign="Right"
MaxLength="50" Readonly="true">
@ -24,6 +24,7 @@
<f:DropDownList ID="drpUnitId" runat="server" Label="申请单位" LabelAlign="Right" Required="true"
ShowRedStar="true" ForceSelection="false" EnableEdit="true" FocusOnPageLoad="true">
</f:DropDownList>
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" LabelWidth="150px" LabelAlign="Right"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="34% 33% 33%">

View File

@ -67,6 +67,10 @@ namespace FineUIPro.Web.HSSE.License
{
this.drpUnitId.SelectedValue = licenseManager.UnitId;
}
if (!string.IsNullOrEmpty(licenseManager.CNProfessionalId))
{
this.drpCNProfessionalId.SelectedValue = licenseManager.CNProfessionalId;
}
if (!string.IsNullOrEmpty(licenseManager.LicenseTypeId))
{
this.drpLicenseTypeId.SelectedValue = licenseManager.LicenseTypeId;
@ -114,6 +118,7 @@ namespace FineUIPro.Web.HSSE.License
private void InitDropDownList()
{
UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);
LicenseTypeService.InitLicenseTypeDropDownList(this.drpLicenseTypeId, true);
UnitWorkService.InitUnitWorkDownList(this.drpWorkAreaId, this.ProjectId, false);
}
@ -177,7 +182,10 @@ namespace FineUIPro.Web.HSSE.License
{
licenseManager.UnitId = this.drpUnitId.SelectedValue;
}
if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null)
{
licenseManager.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
}
licenseManager.ApplicantMan = this.txtApplicantMan.Text.Trim();
if (!string.IsNullOrEmpty(this.drpWorkAreaId.SelectedValue))
{

View File

@ -57,6 +57,15 @@ namespace FineUIPro.Web.HSSE.License {
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitId;
/// <summary>
/// drpCNProfessionalId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCNProfessionalId;
/// <summary>
/// drpLicenseTypeId 控件。
/// </summary>

View File

@ -333,7 +333,44 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
this.Grid1.DataSource = dt;
this.Grid1.DataBind();
this.ChartEV.CreateMaryChart(dt, 820, 320, null);
decimal lastbcws = 0, bcws = 0, lastacwp = 0, acwp = 0, lastbcwp = 0, bcwp = 0;
for (int i = 0; i < dt.Rows.Count; i++)
{
dt.Rows[i]["本月已完工作实际费用-ACWP"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月已完工作实际费用-ACWP"].ToString()) / 10000;
dt.Rows[i]["本月已完工作预算费用-BCWP"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月已完工作预算费用-BCWP"].ToString()) / 10000;
dt.Rows[i]["本月计划工作预算费用-BCWS"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月计划工作预算费用-BCWS"].ToString()) / 10000;
bcws = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计计划工作预算费用-BCWS"].ToString());
acwp = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计已完工作实际费用-ACWP"].ToString());
bcwp = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计已完工作预算费用-BCWP"].ToString());
if (bcws == lastbcws)
{
dt.Rows[i]["累计计划工作预算费用-BCWS"] = DBNull.Value;
}
else
{
dt.Rows[i]["累计计划工作预算费用-BCWS"] = bcws / 10000;
}
if (acwp == lastacwp)
{
dt.Rows[i]["累计已完工作实际费用-ACWP"] = DBNull.Value;
}
else
{
dt.Rows[i]["累计已完工作实际费用-ACWP"] = acwp / 10000;
}
if (bcwp == lastbcwp)
{
dt.Rows[i]["累计已完工作预算费用-BCWP"] = DBNull.Value;
}
else
{
dt.Rows[i]["累计已完工作预算费用-BCWP"] = bcwp / 10000;
}
lastbcws = bcws;
lastacwp = acwp;
lastbcwp = bcwp;
}
this.ChartEV.CreateMaryChart(dt, 1020, 420, null);
}
else
{
@ -349,7 +386,44 @@ namespace FineUIPro.Web.JDGL.CostAnalysis
DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
this.Grid1.DataSource = dt;
this.Grid1.DataBind();
this.ChartEV.CreateMaryChart(dt, 820, 320, null);
decimal lastbcws = 0, bcws = 0, lastacwp = 0, acwp = 0, lastbcwp = 0, bcwp = 0;
for (int i = 0; i < dt.Rows.Count; i++)
{
dt.Rows[i]["本月已完工作实际费用-ACWP"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月已完工作实际费用-ACWP"].ToString()) / 10000;
dt.Rows[i]["本月已完工作预算费用-BCWP"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月已完工作预算费用-BCWP"].ToString()) / 10000;
dt.Rows[i]["本月计划工作预算费用-BCWS"] = Funs.GetNewDecimalOrZero(dt.Rows[i]["本月计划工作预算费用-BCWS"].ToString()) / 10000;
bcws = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计计划工作预算费用-BCWS"].ToString());
acwp = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计已完工作实际费用-ACWP"].ToString());
bcwp = Funs.GetNewDecimalOrZero(dt.Rows[i]["累计已完工作预算费用-BCWP"].ToString());
if (bcws == lastbcws)
{
dt.Rows[i]["累计计划工作预算费用-BCWS"] = DBNull.Value;
}
else
{
dt.Rows[i]["累计计划工作预算费用-BCWS"] = bcws / 10000;
}
if (acwp == lastacwp)
{
dt.Rows[i]["累计已完工作实际费用-ACWP"] = DBNull.Value;
}
else
{
dt.Rows[i]["累计已完工作实际费用-ACWP"] = acwp / 10000;
}
if (bcwp == lastbcwp)
{
dt.Rows[i]["累计已完工作预算费用-BCWP"] = DBNull.Value;
}
else
{
dt.Rows[i]["累计已完工作预算费用-BCWP"] = bcwp / 10000;
}
lastbcws = bcws;
lastacwp = acwp;
lastbcwp = bcwp;
}
this.ChartEV.CreateMaryChart(dt, 1020, 420, null);
}
}
#endregion

View File

@ -154,6 +154,8 @@
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
Hidden="true" runat="server" Text="编辑" Icon="Pencil">
</f:MenuButton>
<f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?" OnClick="btnMenuDel_Click" Hidden="true">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/jscript">

View File

@ -99,6 +99,10 @@ namespace FineUIPro.Web.PZHGL.GJSX
{
this.btnMenuEdit.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnMenuDel.Hidden = false;
}
}
}
#endregion
@ -109,7 +113,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuDelete_Click(object sender, EventArgs e)
protected void btnMenuDel_Click(object sender, EventArgs e)
{
this.DeleteData();
}
@ -125,19 +129,13 @@ namespace FineUIPro.Web.PZHGL.GJSX
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var user = BLL.UserService.GetUserByUserId(rowID);
if (user != null)
var gjsx = BLL.GJSXService.GetGJSXById(rowID);
if (gjsx != null)
{
string cont = judgementDelete(rowID);
if (string.IsNullOrEmpty(cont))
{
BLL.LogService.AddSys_Log(this.CurrUser, user.UserCode, user.UserId, BLL.Const.GJSXMenuId, BLL.Const.BtnDelete);
BLL.GJSXService.DeleteGJSXById(rowID);
}
else
{
strShowNotify += "人员:" + user.UserName + cont;
}
BLL.LogService.AddSys_Log(this.CurrUser, gjsx.Detail, gjsx.GJSXID, BLL.Const.GJSXMenuId, BLL.Const.BtnDelete);
BLL.GJSXItemService.DeleteGJSXMXByGJSXID(rowID);
BLL.GJSXProcessService.DeleteProcess(rowID);
BLL.GJSXService.DeleteGJSXById(rowID);
}
}

View File

@ -137,5 +137,14 @@ namespace FineUIPro.Web.PZHGL.GJSX {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel;
}
}

View File

@ -446,7 +446,6 @@ namespace FineUIPro.Web.PZHGL.GJSX
gjsx.Detail = txtDetail.Text;
gjsx.UserID = BLL.UserService.GetUserByUserName(txtUserID.Text).UserId;
gjsx.CreateDate = DateTime.Parse(this.Date_CreateDate.Text);
gjsx.CNProfessional_ID = this.DropCNProfessional_ID.SelectedValue;
gjsx.ProjectId = this.CurrUser.LoginProjectId;
gjsx.UnitId = this.DropUnitId.SelectedValue;
gjsx.State = state;

View File

@ -51,6 +51,11 @@
SortField="RoleType" FieldType="String" HeaderText="级别" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:TemplateField Width="200px" ColumnID="CNProfessionalIds" HeaderText="专业" TextAlign="Left" HeaderTextAlign="Center">
<ItemTemplate>
<asp:Label ID="lbtnPro" runat="server" Text='<%# ConvertCN(Eval("CNProfessionalIds")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:CheckBoxField Width="100px" RenderAsStaticField="true" TextAlign="Center" DataField="IsSystemBuilt" HeaderText="内置" />
<f:RenderField ColumnID="Def" DataField="Def" SortField="Def" FieldType="String" Width="150px"
HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left" >

View File

@ -15,7 +15,7 @@
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
{
if (!IsPostBack)
{
////权限按钮方法
@ -37,16 +37,16 @@
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT Roles.RoleId,Roles.RoleName,Roles.RoleCode,Roles.Def,Roles.IsSystemBuilt"
string strSql = @"SELECT Roles.RoleId,Roles.RoleName,Roles.RoleCode,Roles.Def,Roles.RoleType,Roles.CNProfessionalIds,Roles.IsSystemBuilt"
+ @" ,(CASE WHEN IsOffice=1 THEN '本部角色' ELSE '项目角色' END) AS IsOfficeName"
+ @" FROM dbo.Sys_Role AS Roles "
+ @" FROM dbo.Sys_Role AS Roles "
+ @" WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.txtRoleName.Text.Trim()))
{
strSql += " AND RoleName LIKE @RoleName";
listStr.Add(new SqlParameter("@RoleName", "%" + this.txtRoleName.Text.Trim() + "%"));
}
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@ -55,7 +55,7 @@
Grid1.DataSource = table;
Grid1.DataBind();
}
#region
/// <summary>
/// 右键删除事件
@ -84,7 +84,7 @@
{
BLL.LogService.AddSys_Log(this.CurrUser, roles.RoleCode, roles.RoleId, Const.RoleMenuId, Const.BtnDelete);
BLL.RoleService.DeleteRole(rowID);
}
}
}
@ -102,7 +102,7 @@
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
{
BindGrid();
}
@ -128,6 +128,28 @@
}
#endregion
protected string ConvertCN(object CNProfessionalIds)
{
string cnName = string.Empty;
if (CNProfessionalIds != null)
{
var strs = CNProfessionalIds.ToString().Split(',');
foreach (var item in strs)
{
var cn = BLL.CNProfessionalService.GetCNProfessional(item);
if (cn != null)
{
cnName += cn.ProfessionalName + ",";
}
}
if (!string.IsNullOrEmpty(cnName))
{
cnName = cnName.Substring(0, cnName.Length - 1);
}
}
return cnName;
}
/// <summary>
/// Grid行双击事件
/// </summary>
@ -160,15 +182,15 @@
}
string Id = Grid1.SelectedRowID;
var roles = BLL.RoleService.GetRoleByRoleId(Id);
if (roles != null && (!roles.IsSystemBuilt.HasValue || roles.IsSystemBuilt == false || this.CurrUser.UserId == BLL.Const.sysglyId ))
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RoleListEdit.aspx?roleId={0}", Id, "编辑 - ")));
}
else
{
Alert.ShowInParent("系统内置角色不允许再修改!", MessageBoxIcon.Warning);
return;
}
//if (roles != null && (!roles.IsSystemBuilt.HasValue || roles.IsSystemBuilt == false || this.CurrUser.UserId == BLL.Const.sysglyId ))
//{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("RoleListEdit.aspx?roleId={0}", Id, "编辑 - ")));
//}
//else
//{
// Alert.ShowInParent("系统内置角色不允许再修改!", MessageBoxIcon.Warning);
// return;
//}
}
#region
@ -188,7 +210,7 @@
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnMenuEdit.Hidden = false;
this.btnMenuEdit.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
@ -222,7 +244,7 @@
{
content = "该角色已在【用户信息】中使用,不能删除!";
}
if (string.IsNullOrEmpty(content))
{
return true;

View File

@ -93,6 +93,15 @@ namespace FineUIPro.Web.SysManage {
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// lbtnPro 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lbtnPro;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>

View File

@ -37,6 +37,8 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList runat="server" ID="drpCNProfessional" Label="专业" LabelWidth="90px" EnableMultiSelect="true">
</f:DropDownList>
<f:TextBox ID="txtDef" runat="server" Label="备注" MaxLength="100" LabelWidth="90px"></f:TextBox>
</Items>
</f:FormRow>

View File

@ -35,6 +35,7 @@ namespace FineUIPro.Web.SysManage
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.RoleId = Request.Params["roleId"];
Funs.FineUIPleaseSelect(this.drpRoleType);
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessional, true);
///权限
this.GetButtonPower();
if (!string.IsNullOrEmpty(this.RoleId))
@ -43,7 +44,7 @@ namespace FineUIPro.Web.SysManage
if (role != null)
{
this.txtRoleCode.Text = role.RoleCode;
this.txtRoleName.Text = role.RoleName;
this.txtRoleName.Text = role.RoleName;
this.txtDef.Text = role.Def;
if (role.IsOffice == true)
{
@ -53,6 +54,10 @@ namespace FineUIPro.Web.SysManage
{
this.drpRoleType.SelectedValue = role.RoleType;
}
if (!string.IsNullOrEmpty(role.CNProfessionalIds))
{
this.drpCNProfessional.SelectedValueArray = role.CNProfessionalIds.Split(',');
}
}
}
else
@ -76,7 +81,7 @@ namespace FineUIPro.Web.SysManage
if (buttonList.Contains(BLL.Const.BtnSave))
{
this.btnSave.Hidden = false;
}
}
}
}
#endregion
@ -106,6 +111,19 @@ namespace FineUIPro.Web.SysManage
{
newRole.RoleType = this.drpRoleType.SelectedValue;
}
string cnProfessionalIds = string.Empty;
foreach (var item in this.drpCNProfessional.SelectedValueArray)
{
if (item != BLL.Const._Null)
{
cnProfessionalIds += item + ",";
}
}
if (!string.IsNullOrEmpty(cnProfessionalIds))
{
cnProfessionalIds = cnProfessionalIds.Substring(0, cnProfessionalIds.Length-1);
}
newRole.CNProfessionalIds = cnProfessionalIds;
if (string.IsNullOrEmpty(this.RoleId))
{
newRole.RoleId = SQLHelper.GetNewID(typeof(Model.Sys_Role));

View File

@ -75,6 +75,15 @@ namespace FineUIPro.Web.SysManage {
/// </remarks>
protected global::FineUIPro.DropDownList drpRoleType;
/// <summary>
/// drpCNProfessional 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCNProfessional;
/// <summary>
/// txtDef 控件。
/// </summary>

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -21,105 +21,6 @@ namespace FineUIPro.Web.common {
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
/// <summary>
/// divPNum8 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum8;
/// <summary>
/// divPNum7 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum7;
/// <summary>
/// divPNum6 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum6;
/// <summary>
/// divPNum5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum5;
/// <summary>
/// divPNum4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum4;
/// <summary>
/// divPNum3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum3;
/// <summary>
/// divPNum2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum2;
/// <summary>
/// divPNum1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPNum1;
/// <summary>
/// divAllRectify 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divAllRectify;
/// <summary>
/// divCRectify 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divCRectify;
/// <summary>
/// divUCRectify 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divUCRectify;
/// <summary>
/// hdNoticeId 控件。
/// </summary>
@ -130,12 +31,156 @@ namespace FineUIPro.Web.common {
protected global::System.Web.UI.WebControls.HiddenField hdNoticeId;
/// <summary>
/// ImageButton1 控件。
/// imgBtn 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.ImageButton ImageButton1;
protected global::System.Web.UI.WebControls.Button imgBtn;
/// <summary>
/// swiper2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl swiper2;
/// <summary>
/// divZY 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divZY;
/// <summary>
/// divYH 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divYH;
/// <summary>
/// divRGS 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divRGS;
/// <summary>
/// divQT 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divQT;
/// <summary>
/// divPX 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPX;
/// <summary>
/// divZLWT 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divZLWT;
/// <summary>
/// divZLGJ 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divZLGJ;
/// <summary>
/// divYS 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divYS;
/// <summary>
/// divHG 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divHG;
/// <summary>
/// divJGZL 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divJGZL;
/// <summary>
/// divNCR 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divNCR;
/// <summary>
/// divBG 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divBG;
/// <summary>
/// divQZ 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divQZ;
/// <summary>
/// divMonth 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divMonth;
/// <summary>
/// divGZL 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divGZL;
}
}

View File

@ -36,9 +36,10 @@ namespace FineUIPro.Web.common
var getTrainRecord = from x in db.EduTrain_TrainRecord where x.ProjectId == this.CurrUser.LoginProjectId select x;
this.divPX.InnerHtml = getTrainRecord.Count().ToString();
//质量问题
var inspectionManagements = from x in db.ProcessControl_InspectionManagement where x.ProjectId == this.CurrUser.LoginProjectId select x;
this.divZLWT.InnerHtml = inspectionManagements.Count().ToString();
var checkList = from x in db.Check_CheckControl where x.ProjectId == this.CurrUser.LoginProjectId select x;
this.divZLWT.InnerHtml = checkList.Count().ToString();
//质量共检数据
var inspectionManagements = from x in db.ProcessControl_InspectionManagement where x.ProjectId == this.CurrUser.LoginProjectId select x;
this.divZLGJ.InnerHtml = inspectionManagements.Count().ToString();
//验收数据
this.divYS.InnerHtml = inspectionManagements.Count(x => x.IsOnceQualified == true).ToString();

View File

@ -596,9 +596,36 @@ namespace FineUIPro.Web
this.CurrUser.LoginProjectId = this.drpProject.SelectedValue;
this.XmlDataSource1.DataFile = "common/Menu_Personal.xml";
this.leftPanel.Hidden = true;
if (this.CurrUser.RoleType == Const.Role_III || this.CurrUser.RoleType == Const.Role_IV)
var projectUser = BLL.ProjectUserService.GetProjectUserByUserIdProjectId(this.CurrUser.LoginProjectId, this.CurrUser.UserId);
if (projectUser != null)
{
this.Tab1.IFrameUrl = "~/common/mainIII.aspx";
string roleTypes = string.Empty;
string roleCNs = string.Empty;
string[] roles = projectUser.RoleId.Split(',');
foreach (var item in roles)
{
var role = BLL.RoleService.GetRoleByRoleId(item);
if (role != null && !string.IsNullOrEmpty(role.RoleType))
{
roleTypes = role.RoleType + ",";
}
if (role != null && !string.IsNullOrEmpty(role.CNProfessionalIds))
{
roleCNs = role.CNProfessionalIds + ",";
}
}
if (roleTypes.Contains(Const.Role_III))
{
this.Tab1.IFrameUrl = "~/common/mainIII.aspx?roleCNs=" + roleCNs;
}
else if (roleTypes.Contains(Const.Role_IV))
{
this.Tab1.IFrameUrl = "~/common/mainIV.aspx?roleCNs=" + roleCNs + "&unitWorkIds=" + projectUser.WorkAreaId;
}
else
{
this.Tab1.IFrameUrl = "~/common/mainProject.aspx";
}
}
else
{

View File

@ -65718,6 +65718,8 @@ namespace Model
private string _CheckManIds;
private string _CNProfessionalId;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Base_Unit> _Base_Unit;
@ -65820,6 +65822,8 @@ namespace Model
partial void OnStatesChanged();
partial void OnCheckManIdsChanging(string value);
partial void OnCheckManIdsChanged();
partial void OnCNProfessionalIdChanging(string value);
partial void OnCNProfessionalIdChanged();
#endregion
public Check_RectifyNotices()
@ -66619,6 +66623,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")]
public string CNProfessionalId
{
get
{
return this._CNProfessionalId;
}
set
{
if ((this._CNProfessionalId != value))
{
this.OnCNProfessionalIdChanging(value);
this.SendPropertyChanging();
this._CNProfessionalId = value;
this.SendPropertyChanged("CNProfessionalId");
this.OnCNProfessionalIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Check_RectifyNotices_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@ -110435,6 +110459,10 @@ namespace Model
private string _PlanId;
private string _CNProfessionalId;
private string _UnitWorkIds;
private EntitySet<EduTrain_TrainRecordDetail> _EduTrain_TrainRecordDetail;
private EntityRef<Base_Project> _Base_Project;
@ -110493,6 +110521,10 @@ namespace Model
partial void OnWorkPostIdsChanged();
partial void OnPlanIdChanging(string value);
partial void OnPlanIdChanged();
partial void OnCNProfessionalIdChanging(string value);
partial void OnCNProfessionalIdChanged();
partial void OnUnitWorkIdsChanging(string value);
partial void OnUnitWorkIdsChanged();
#endregion
public EduTrain_TrainRecord()
@ -110942,6 +110974,46 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")]
public string CNProfessionalId
{
get
{
return this._CNProfessionalId;
}
set
{
if ((this._CNProfessionalId != value))
{
this.OnCNProfessionalIdChanging(value);
this.SendPropertyChanging();
this._CNProfessionalId = value;
this.SendPropertyChanged("CNProfessionalId");
this.OnCNProfessionalIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkIds", DbType="NVarChar(500)")]
public string UnitWorkIds
{
get
{
return this._UnitWorkIds;
}
set
{
if ((this._UnitWorkIds != value))
{
this.OnUnitWorkIdsChanging(value);
this.SendPropertyChanging();
this._UnitWorkIds = value;
this.SendPropertyChanged("UnitWorkIds");
this.OnUnitWorkIdsChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_EduTrain_TrainDetail_EduTrain_Training", Storage="_EduTrain_TrainRecordDetail", ThisKey="TrainingId", OtherKey="TrainingId", DeleteRule="NO ACTION")]
public EntitySet<EduTrain_TrainRecordDetail> EduTrain_TrainRecordDetail
{
@ -170318,6 +170390,8 @@ namespace Model
private string _WorkStates;
private string _CNProfessionalId;
private EntityRef<Base_LicenseType> _Base_LicenseType;
private EntityRef<Base_Project> _Base_Project;
@ -170360,6 +170434,8 @@ namespace Model
partial void OnApplicantManChanged();
partial void OnWorkStatesChanging(string value);
partial void OnWorkStatesChanged();
partial void OnCNProfessionalIdChanging(string value);
partial void OnCNProfessionalIdChanged();
#endregion
public License_LicenseManager()
@ -170687,6 +170763,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")]
public string CNProfessionalId
{
get
{
return this._CNProfessionalId;
}
set
{
if ((this._CNProfessionalId != value))
{
this.OnCNProfessionalIdChanging(value);
this.SendPropertyChanging();
this._CNProfessionalId = value;
this.SendPropertyChanged("CNProfessionalId");
this.OnCNProfessionalIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_License_LicenseManager_Base_LicenseType", Storage="_Base_LicenseType", ThisKey="LicenseTypeId", OtherKey="LicenseTypeId", IsForeignKey=true)]
public Base_LicenseType Base_LicenseType
{
@ -253001,7 +253097,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(2000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")]
public string Address
{
get
@ -253065,7 +253161,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(200)")]
public string WorkAreaName
{
get
@ -270472,6 +270568,8 @@ namespace Model
private System.Nullable<bool> _IsAuditFlow;
private string _CNProfessionalIds;
private EntitySet<Person_QuarterCheck> _Person_QuarterCheck;
private EntitySet<Sys_ButtonPower> _Sys_ButtonPower;
@ -270498,6 +270596,8 @@ namespace Model
partial void OnRoleTypeChanged();
partial void OnIsAuditFlowChanging(System.Nullable<bool> value);
partial void OnIsAuditFlowChanged();
partial void OnCNProfessionalIdsChanging(string value);
partial void OnCNProfessionalIdsChanged();
#endregion
public Sys_Role()
@ -270668,6 +270768,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalIds", DbType="NVarChar(500)")]
public string CNProfessionalIds
{
get
{
return this._CNProfessionalIds;
}
set
{
if ((this._CNProfessionalIds != value))
{
this.OnCNProfessionalIdsChanging(value);
this.SendPropertyChanging();
this._CNProfessionalIds = value;
this.SendPropertyChanged("CNProfessionalIds");
this.OnCNProfessionalIdsChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_QuarterCheck_Sys_Role", Storage="_Person_QuarterCheck", ThisKey="RoleId", OtherKey="RoleId", DeleteRule="NO ACTION")]
public EntitySet<Person_QuarterCheck> Person_QuarterCheck
{
@ -329368,6 +329488,10 @@ namespace Model
private System.Nullable<System.DateTime> _CompileDate;
private string _CNProfessionalId;
private string _ProfessionalName;
private string _States;
private string _ProjectCode;
@ -329538,6 +329662,38 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")]
public string CNProfessionalId
{
get
{
return this._CNProfessionalId;
}
set
{
if ((this._CNProfessionalId != value))
{
this._CNProfessionalId = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProfessionalName", DbType="NVarChar(30)")]
public string ProfessionalName
{
get
{
return this._ProfessionalName;
}
set
{
if ((this._ProfessionalName != value))
{
this._ProfessionalName = value;
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_States", DbType="Char(1)")]
public string States
{
@ -334874,7 +335030,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(2000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Address", DbType="NVarChar(200)")]
public string Address
{
get
@ -334890,7 +335046,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkAreaName", DbType="NVarChar(200)")]
public string WorkAreaName
{
get