0414-001
This commit is contained in:
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 |
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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")
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 查询事件
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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="培训人数" >
|
||||
|
||||
@@ -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, "查看试卷 - ")));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 "
|
||||
|
||||
@@ -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%">
|
||||
|
||||
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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" >
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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>
|
||||
|
||||
+619
-1182
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
+146
-101
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user