From ba4e383388f521b1bd9f8cf83bec55d6940db264 Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Thu, 16 Mar 2023 19:28:52 +0800 Subject: [PATCH] 2023-2-16 --- .../Common/FileManager/FileManagerService.cs | 2 + .../CQMS/Comprehensive/DesignDetails.aspx | 8 +- .../DesignDetails.aspx.designer.cs | 9 - .../CQMS/Comprehensive/DesignDetailsEdit.aspx | 8 +- .../Comprehensive/DesignDetailsEdit.aspx.cs | 374 +++++++-------- .../DesignDetailsEdit.aspx.designer.cs | 54 --- .../Comprehensive/InspectionEquipment.aspx | 8 +- .../InspectionEquipment.aspx.designer.cs | 9 - .../InspectionEquipmentEdit.aspx | 10 +- .../InspectionEquipmentEdit.aspx.cs | 364 +++++++-------- .../InspectionEquipmentEdit.aspx.designer.cs | 54 --- .../CQMS/Comprehensive/NCRManagement.aspx | 8 +- .../NCRManagement.aspx.designer.cs | 9 - .../CQMS/Comprehensive/NCRManagementEdit.aspx | 8 +- .../Comprehensive/NCRManagementEdit.aspx.cs | 428 +++++++++--------- .../NCRManagementEdit.aspx.designer.cs | 54 --- .../CQMS/Comprehensive/PressurePipe.aspx | 8 +- .../PressurePipe.aspx.designer.cs | 9 - .../CQMS/Comprehensive/PressurePipeEdit.aspx | 8 +- .../Comprehensive/PressurePipeEdit.aspx.cs | 384 ++++++++-------- .../PressurePipeEdit.aspx.designer.cs | 54 --- .../CQMS/Comprehensive/QualityAccident.aspx | 8 +- .../QualityAccident.aspx.designer.cs | 9 - .../Comprehensive/QualityAccidentEdit.aspx | 8 +- .../Comprehensive/QualityAccidentEdit.aspx.cs | 366 +++++++-------- .../QualityAccidentEdit.aspx.designer.cs | 54 --- .../CQMS/Comprehensive/SpecialEquipment.aspx | 8 +- .../SpecialEquipment.aspx.designer.cs | 9 - .../Comprehensive/SpecialEquipmentEdit.aspx | 8 +- .../SpecialEquipmentEdit.aspx.cs | 378 ++++++++-------- .../SpecialEquipmentEdit.aspx.designer.cs | 54 --- SGGL/FineUIPro.Web/CQMS/ZLCH/Zlglgd.aspx.cs | 2 +- .../CQMS/ZLCH/ZlglgdEdit.aspx.cs | 1 + SGGL/FineUIPro.Web/CQMS/ZLCH/Zlgltx.aspx.cs | 2 +- .../CQMS/ZLCH/ZlgltxEdit.aspx.cs | 1 + SGGL/FineUIPro.Web/CQMS/ZLCH/Zlssjh.aspx.cs | 2 +- .../CQMS/ZLCH/ZlssjhEdit.aspx.cs | 1 + .../PZHGL/ProjectData/ProjectMap.aspx | 8 +- .../ProjectData/ProjectMap.aspx.designer.cs | 69 +-- .../PZHGL/SGCH/XmsgGlgdEdit.aspx.cs | 1 - SGGL/FineUIPro.Web/res/index/css/home.css | 325 ++++++------- SGGL/Model/Model.cs | 24 + 42 files changed, 1442 insertions(+), 1766 deletions(-) diff --git a/SGGL/BLL/Common/FileManager/FileManagerService.cs b/SGGL/BLL/Common/FileManager/FileManagerService.cs index 09d5b9fb..54b96071 100644 --- a/SGGL/BLL/Common/FileManager/FileManagerService.cs +++ b/SGGL/BLL/Common/FileManager/FileManagerService.cs @@ -32,6 +32,7 @@ namespace BLL newFile.Remark = file.Remark; newFile.AttachUrl = file.AttachUrl; newFile.ToMenu = file.ToMenu; + newFile.ProjectId = file.ProjectId; Funs.DB.Common_FileManager.InsertOnSubmit(newFile); Funs.DB.SubmitChanges(); } @@ -50,6 +51,7 @@ namespace BLL newFile.UploadDate = file.UploadDate; newFile.ToMenu = file.ToMenu; newFile.Remark = file.Remark; + newFile.ProjectId = file.ProjectId; newFile.AttachUrl = file.AttachUrl; Funs.DB.SubmitChanges(); } diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx index 8717852e..51994c85 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetails.aspx @@ -58,13 +58,13 @@ - + <%-- - - + --%> + <%-- --%> protected global::System.Web.UI.WebControls.Label Label1; - /// - /// txtStatus 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label txtStatus; - /// /// lbtnFileUrl 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx index 1a93c431..0af6227e 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx @@ -52,7 +52,7 @@ - + <%-- @@ -77,7 +77,7 @@ - + --%> @@ -88,8 +88,8 @@ - - + <%-- + --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.cs index 7bf6a295..1ddcf0d7 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.cs @@ -38,11 +38,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive BLL.UnitWorkService.InitUnitWorkDownList(this.drpUnitWorks, this.CurrUser.LoginProjectId, false); BLL.UnitService.InitUnitDownList(this.drpUnitIds, this.CurrUser.LoginProjectId, false); LoadAuditSelect(); - this.agree.Hidden = true; - this.options.Hidden = true; + //this.agree.Hidden = true; + //this.options.Hidden = true; this.btnSave.Hidden = true; - this.btnSubmit.Hidden = true; + //this.btnSubmit.Hidden = true; this.DesignDetailsId = Request.Params["DesignDetailsId"]; Model.Comprehensive_DesignDetails designDetails = BLL.DesignDetailsService.GetDesignDetailsById(this.DesignDetailsId); if (designDetails != null) @@ -74,7 +74,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { //重新编制 编制人 可以 显示 提交 保存按钮 if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && designDetails.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; }//审核状态 审核人 可以显示 提交 保存按钮 else if (currApprove.ApproveType == BLL.Const.Comprehensive_Audit && currApprove.ApproveMan == CurrUser.UserId) @@ -82,9 +82,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive //审核状态不可编辑 Readonly(); - this.agree.Hidden = false; - this.options.Hidden = false; - this.btnSubmit.Hidden = false; + //this.agree.Hidden = false; + //this.options.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } }//没有当前审核人,已完成状态 或者 待提交状态 @@ -92,7 +92,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { if (designDetails.Status == BLL.Const.Comprehensive_Compile && designDetails.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } } @@ -103,7 +103,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { this.txtDetailsDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); this.btnSave.Hidden = false; - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; } } } @@ -121,7 +121,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.drpUnitIds.Readonly = true; this.drpUnitWorks.Readonly = true; - this.drpAudit.Readonly = true; + //this.drpAudit.Readonly = true; //this.btnAttach.Enabled = false; @@ -142,10 +142,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId where p.RoleId.Contains(Const.ZBCNEngineer) select new { UserId = x.UserId, UserName = x.UserName }; - drpAudit.DataValueField = "UserId"; - drpAudit.DataTextField = "UserName"; - this.drpAudit.DataSource = userList.ToList(); - this.drpAudit.DataBind(); + //drpAudit.DataValueField = "UserId"; + //drpAudit.DataTextField = "UserName"; + //this.drpAudit.DataSource = userList.ToList(); + //this.drpAudit.DataBind(); } #endregion @@ -165,10 +165,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive } Model.Comprehensive_DesignDetails designDetails = new Model.Comprehensive_DesignDetails(); designDetails.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - designDetails.AuditMan = drpAudit.SelectedValue; - } //审核人 + //if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + //{ + // designDetails.AuditMan = drpAudit.SelectedValue; + //} //审核人 if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null) { designDetails.CNProfessionalId = this.drpCNProfessionalId.SelectedValue; @@ -246,192 +246,192 @@ namespace FineUIPro.Web.CQMS.Comprehensive } - protected void btnSubmit_Click(object sender, EventArgs e) - { - if (drpCNProfessionalId.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning); - return; - } - Model.Comprehensive_DesignDetails designDetails = new Model.Comprehensive_DesignDetails(); - designDetails.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - designDetails.AuditMan = drpAudit.SelectedValue; - } //审核人 - if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null) - { - designDetails.CNProfessionalId = this.drpCNProfessionalId.SelectedValue; - } - designDetails.DesignDetailsCode = this.txtDesignDetailsCode.Text.Trim(); - designDetails.DetailsMan = this.txtDetailsMan.Text.Trim(); - if (!string.IsNullOrEmpty(this.txtDetailsDate.Text)) - { - designDetails.DetailsDate = Convert.ToDateTime(this.txtDetailsDate.Text); - } - string ids = string.Empty; - var lists = this.drpUnitWorks.SelectedValueArray; - foreach (var item in lists) - { - ids += item + ","; - } - if (!string.IsNullOrEmpty(ids)) - { - ids = ids.Substring(0, ids.LastIndexOf(",")); - } - designDetails.UnitWorkId = ids; + //protected void btnSubmit_Click(object sender, EventArgs e) + //{ + // if (drpCNProfessionalId.SelectedValue == BLL.Const._Null) + // { + // Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning); + // return; + // } + // Model.Comprehensive_DesignDetails designDetails = new Model.Comprehensive_DesignDetails(); + // designDetails.ProjectId = this.CurrUser.LoginProjectId; + // if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + // { + // designDetails.AuditMan = drpAudit.SelectedValue; + // } //审核人 + // if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null) + // { + // designDetails.CNProfessionalId = this.drpCNProfessionalId.SelectedValue; + // } + // designDetails.DesignDetailsCode = this.txtDesignDetailsCode.Text.Trim(); + // designDetails.DetailsMan = this.txtDetailsMan.Text.Trim(); + // if (!string.IsNullOrEmpty(this.txtDetailsDate.Text)) + // { + // designDetails.DetailsDate = Convert.ToDateTime(this.txtDetailsDate.Text); + // } + // string ids = string.Empty; + // var lists = this.drpUnitWorks.SelectedValueArray; + // foreach (var item in lists) + // { + // ids += item + ","; + // } + // if (!string.IsNullOrEmpty(ids)) + // { + // ids = ids.Substring(0, ids.LastIndexOf(",")); + // } + // designDetails.UnitWorkId = ids; - string unitIds = string.Empty; - var units = this.drpUnitIds.SelectedValueArray; - foreach (var item in units) - { - unitIds += item + ","; - } - if (!string.IsNullOrEmpty(unitIds)) - { - unitIds = unitIds.Substring(0, unitIds.LastIndexOf(",")); - } - designDetails.UnitName = unitIds; - if (string.IsNullOrEmpty(this.DesignDetailsId)) - { - if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) - { - designDetails.DesignDetailsId = this.hdAttachUrl.Text; - } - else - { - designDetails.DesignDetailsId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDetails)); - this.hdAttachUrl.Text = designDetails.DesignDetailsId; - } + // string unitIds = string.Empty; + // var units = this.drpUnitIds.SelectedValueArray; + // foreach (var item in units) + // { + // unitIds += item + ","; + // } + // if (!string.IsNullOrEmpty(unitIds)) + // { + // unitIds = unitIds.Substring(0, unitIds.LastIndexOf(",")); + // } + // designDetails.UnitName = unitIds; + // if (string.IsNullOrEmpty(this.DesignDetailsId)) + // { + // if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) + // { + // designDetails.DesignDetailsId = this.hdAttachUrl.Text; + // } + // else + // { + // designDetails.DesignDetailsId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDetails)); + // this.hdAttachUrl.Text = designDetails.DesignDetailsId; + // } - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDetails.DesignDetailsId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - designDetails.CompileMan = this.CurrUser.UserId; - designDetails.CompileDate = DateTime.Now; - designDetails.Status = BLL.Const.Comprehensive_Audit; - BLL.DesignDetailsService.AddDesignDetails(designDetails); - } - else - { - designDetails.DesignDetailsId = this.DesignDetailsId; - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DesignDetailsId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - var oldDesignDetails = Funs.DB.Comprehensive_DesignDetails.Where(u => u.DesignDetailsId == this.DesignDetailsId).FirstOrDefault(); - if (oldDesignDetails == null) //数据库没有记录 直接点提交 当前状态为 审核状态 - { - designDetails.CompileMan = this.CurrUser.UserId; - designDetails.CompileDate = DateTime.Now; - designDetails.Status = BLL.Const.Comprehensive_Audit; - BLL.DesignDetailsService.AddDesignDetails(designDetails); - } - else - { - designDetails.CompileMan = oldDesignDetails.CompileMan; - designDetails.CompileDate = oldDesignDetails.CompileDate; - if (oldDesignDetails.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 - { - designDetails.Status = BLL.Const.Comprehensive_Audit; - } - else if (oldDesignDetails.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 - { - designDetails.Status = BLL.Const.Comprehensive_Audit; - } - else //审核状态 提交 变 完成 或者 重新编制 - { - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) - { - designDetails.Status = BLL.Const.Comprehensive_Complete; - } - else - { - designDetails.Status = BLL.Const.Comprehensive_ReCompile; - } - } + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == designDetails.DesignDetailsId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // designDetails.CompileMan = this.CurrUser.UserId; + // designDetails.CompileDate = DateTime.Now; + // designDetails.Status = BLL.Const.Comprehensive_Audit; + // BLL.DesignDetailsService.AddDesignDetails(designDetails); + // } + // else + // { + // designDetails.DesignDetailsId = this.DesignDetailsId; + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.DesignDetailsId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // var oldDesignDetails = Funs.DB.Comprehensive_DesignDetails.Where(u => u.DesignDetailsId == this.DesignDetailsId).FirstOrDefault(); + // if (oldDesignDetails == null) //数据库没有记录 直接点提交 当前状态为 审核状态 + // { + // designDetails.CompileMan = this.CurrUser.UserId; + // designDetails.CompileDate = DateTime.Now; + // designDetails.Status = BLL.Const.Comprehensive_Audit; + // BLL.DesignDetailsService.AddDesignDetails(designDetails); + // } + // else + // { + // designDetails.CompileMan = oldDesignDetails.CompileMan; + // designDetails.CompileDate = oldDesignDetails.CompileDate; + // if (oldDesignDetails.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 + // { + // designDetails.Status = BLL.Const.Comprehensive_Audit; + // } + // else if (oldDesignDetails.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 + // { + // designDetails.Status = BLL.Const.Comprehensive_Audit; + // } + // else //审核状态 提交 变 完成 或者 重新编制 + // { + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) + // { + // designDetails.Status = BLL.Const.Comprehensive_Complete; + // } + // else + // { + // designDetails.Status = BLL.Const.Comprehensive_ReCompile; + // } + // } - BLL.DesignDetailsService.UpdateDesignDetails(designDetails); + // BLL.DesignDetailsService.UpdateDesignDetails(designDetails); - } + // } - } - #region 审核记录 + // } + // #region 审核记录 - var currApprove = DesignDetailsApproveService.GetCurrentApprove(designDetails.DesignDetailsId); - if (currApprove == null) //为获取到为 当前编制状态 直接提交 - { - var approve = new Model.Comprehensive_DesignDetailsApprove(); - approve.DesignDetailsId = designDetails.DesignDetailsId; - approve.ApproveMan = this.CurrUser.UserId; - approve.ApproveType = Const.Comprehensive_Compile; - approve.ApproveDate = DateTime.Now; - DesignDetailsApproveService.EditApprove(approve); //新增编制记录 + // var currApprove = DesignDetailsApproveService.GetCurrentApprove(designDetails.DesignDetailsId); + // if (currApprove == null) //为获取到为 当前编制状态 直接提交 + // { + // var approve = new Model.Comprehensive_DesignDetailsApprove(); + // approve.DesignDetailsId = designDetails.DesignDetailsId; + // approve.ApproveMan = this.CurrUser.UserId; + // approve.ApproveType = Const.Comprehensive_Compile; + // approve.ApproveDate = DateTime.Now; + // DesignDetailsApproveService.EditApprove(approve); //新增编制记录 - Model.Comprehensive_DesignDetailsApprove newApprove = new Model.Comprehensive_DesignDetailsApprove(); - newApprove.DesignDetailsId = designDetails.DesignDetailsId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - DesignDetailsApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // Model.Comprehensive_DesignDetailsApprove newApprove = new Model.Comprehensive_DesignDetailsApprove(); + // newApprove.DesignDetailsId = designDetails.DesignDetailsId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // DesignDetailsApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else if (currApprove.ApproveMan == CurrUser.UserId) - { - if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) - { - currApprove.ApproveDate = DateTime.Now; - //currApprove.IsAgree = true; - DesignDetailsApproveService.EditApprove(currApprove); //新增专业工程师审核记录 - Model.Comprehensive_DesignDetailsApprove newApprove = new Model.Comprehensive_DesignDetailsApprove(); - newApprove.DesignDetailsId = designDetails.DesignDetailsId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - DesignDetailsApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else - { - currApprove.ApproveDate = DateTime.Now; //更新审核时间 - currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - currApprove.ApproveIdea = this.txtidea.Text; - DesignDetailsApproveService.EditApprove(currApprove); + // } + // else if (currApprove.ApproveMan == CurrUser.UserId) + // { + // if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) + // { + // currApprove.ApproveDate = DateTime.Now; + // //currApprove.IsAgree = true; + // DesignDetailsApproveService.EditApprove(currApprove); //新增专业工程师审核记录 + // Model.Comprehensive_DesignDetailsApprove newApprove = new Model.Comprehensive_DesignDetailsApprove(); + // newApprove.DesignDetailsId = designDetails.DesignDetailsId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // DesignDetailsApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // } + // else + // { + // currApprove.ApproveDate = DateTime.Now; //更新审核时间 + // currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); + // currApprove.ApproveIdea = this.txtidea.Text; + // DesignDetailsApproveService.EditApprove(currApprove); - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 - { - Model.Comprehensive_DesignDetailsApprove reApprove = new Model.Comprehensive_DesignDetailsApprove(); - reApprove.DesignDetailsId = currApprove.DesignDetailsId; - reApprove.ApproveDate = DateTime.Now.AddSeconds(10); - reApprove.ApproveMan = CurrUser.UserId; - reApprove.ApproveType = Const.Comprehensive_Complete; - // reApprove.ApproveIdea = txtidea.Text; - DesignDetailsApproveService.EditApprove(reApprove); - } - else - { - Model.Comprehensive_DesignDetailsApprove reApprove = new Model.Comprehensive_DesignDetailsApprove(); - reApprove.DesignDetailsId = currApprove.DesignDetailsId; - reApprove.ApproveMan = designDetails.CompileMan; - reApprove.ApproveType = Const.Comprehensive_ReCompile; - DesignDetailsApproveService.EditApprove(reApprove); - } - } - } + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 + // { + // Model.Comprehensive_DesignDetailsApprove reApprove = new Model.Comprehensive_DesignDetailsApprove(); + // reApprove.DesignDetailsId = currApprove.DesignDetailsId; + // reApprove.ApproveDate = DateTime.Now.AddSeconds(10); + // reApprove.ApproveMan = CurrUser.UserId; + // reApprove.ApproveType = Const.Comprehensive_Complete; + // // reApprove.ApproveIdea = txtidea.Text; + // DesignDetailsApproveService.EditApprove(reApprove); + // } + // else + // { + // Model.Comprehensive_DesignDetailsApprove reApprove = new Model.Comprehensive_DesignDetailsApprove(); + // reApprove.DesignDetailsId = currApprove.DesignDetailsId; + // reApprove.ApproveMan = designDetails.CompileMan; + // reApprove.ApproveType = Const.Comprehensive_ReCompile; + // DesignDetailsApproveService.EditApprove(reApprove); + // } + // } + // } - #endregion + // #endregion - ShowNotify("保存成功!", MessageBoxIcon.Success); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } + // ShowNotify("保存成功!", MessageBoxIcon.Success); + // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + //} #endregion diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.designer.cs index cd901ad5..a1d07333 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/DesignDetailsEdit.aspx.designer.cs @@ -122,51 +122,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnAttach; - /// - /// drpAudit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpAudit; - - /// - /// agree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow agree; - - /// - /// rblIsAgree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rblIsAgree; - - /// - /// options 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow options; - - /// - /// txtidea 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtidea; - /// /// Toolbar1 控件。 /// @@ -194,15 +149,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnSave; - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx index 5cffb821..42820b27 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx @@ -86,14 +86,14 @@ HeaderTextAlign="Center" Width="120px"> - + <%-- - + --%> - + <%-- --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx.designer.cs index 594e3ac8..9320d721 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipment.aspx.designer.cs @@ -140,15 +140,6 @@ namespace FineUIPro.Web.Comprehensive /// protected global::System.Web.UI.WebControls.Label lblPageIndex; - /// - /// txtStatus 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label txtStatus; - /// /// lbtnFileUrl 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx index 0f66f28d..3438dedb 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx @@ -80,9 +80,9 @@ - + <%-- - + @@ -103,7 +103,7 @@ - + --%> @@ -116,8 +116,8 @@ - - + <%-- + --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.cs index 2b2de08a..0c33c68d 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.cs @@ -40,10 +40,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true); BLL.InspectionEquipmentService.InitAttributeDropDownList(this.drpAttribute, true); LoadAuditSelect(); - this.agree.Hidden = true; - this.options.Hidden = true; + //this.agree.Hidden = true; + //this.options.Hidden = true; this.btnSave.Hidden = true; - this.btnSubmit.Hidden = true; + //this.btnSubmit.Hidden = true; this.InspectionEquipmentId = Request.Params["InspectionEquipmentId"]; var inspectionEquipment = BLL.InspectionEquipmentService.GetInspectionEquipmentById(this.InspectionEquipmentId); if (inspectionEquipment != null) @@ -86,7 +86,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { //重新编制 编制人 可以 显示 提交 保存按钮 if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && inspectionEquipment.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; }//审核状态 审核人 可以显示 提交 保存按钮 else if (currApprove.ApproveType== BLL.Const.Comprehensive_Audit&&currApprove.ApproveMan== CurrUser.UserId) @@ -103,13 +103,13 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.txtRemarkCode.Readonly = true; this.txtEquipmentNo.Readonly = true; this.txtUsedPlace.Readonly = true; - this.drpAudit.Readonly = true; + //this.drpAudit.Readonly = true; this.txtSamplingCount.Readonly = true; this.txtCounts.Readonly = true; - this.agree.Hidden = false; - this.options.Hidden = false; - this.btnSubmit.Hidden = false; + //this.agree.Hidden = false; + //this.options.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } }//没有当前审核人,已完成状态 或者 待提交状态 @@ -117,7 +117,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { if(inspectionEquipment.Status == BLL.Const.Comprehensive_Compile && inspectionEquipment.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + // this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } } @@ -172,7 +172,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { this.txtInspectionDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); this.btnSave.Hidden = false; - this.btnSubmit.Hidden = false; + // this.btnSubmit.Hidden = false; } } } @@ -193,7 +193,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.txtRemarkCode.Readonly = true; this.txtEquipmentNo.Readonly = true; this.txtUsedPlace.Readonly = true; - this.drpAudit.Readonly = true; + // this.drpAudit.Readonly = true; this.txtSamplingCount.Readonly = true; this.txtCounts.Readonly = true; //this.btnAttach.Enabled = false; @@ -207,19 +207,19 @@ namespace FineUIPro.Web.CQMS.Comprehensive public void LoadAuditSelect() { - var db = Funs.DB; - var userList = from x in db.Sys_User - join y in db.Project_ProjectUnit - on x.UnitId equals y.UnitId - join p in db.Project_ProjectUser - on x.UserId equals p.UserId - where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId - where p.RoleId.Contains(Const.ZBCNEngineer) - select new { UserId = x.UserId, UserName = x.UserName }; - drpAudit.DataValueField = "UserId"; - drpAudit.DataTextField = "UserName"; - this.drpAudit.DataSource = userList.ToList(); - this.drpAudit.DataBind(); + //var db = Funs.DB; + //var userList = from x in db.Sys_User + // join y in db.Project_ProjectUnit + // on x.UnitId equals y.UnitId + // join p in db.Project_ProjectUser + // on x.UserId equals p.UserId + // where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId + // where p.RoleId.Contains(Const.ZBCNEngineer) + // select new { UserId = x.UserId, UserName = x.UserName }; + //drpAudit.DataValueField = "UserId"; + //drpAudit.DataTextField = "UserName"; + //this.drpAudit.DataSource = userList.ToList(); + //this.drpAudit.DataBind(); } #endregion @@ -255,10 +255,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive newInspectionEquipment.SamplingCount = this.txtSamplingCount.Text.Trim(); newInspectionEquipment.UsedPlace = this.txtUsedPlace.Text.Trim(); - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - newInspectionEquipment.AuditMan = drpAudit.SelectedValue; - } //审核人 + //if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + //{ + // newInspectionEquipment.AuditMan = drpAudit.SelectedValue; + //} //审核人 if (this.drpAttribute.SelectedValue != BLL.Const._Null) { @@ -354,181 +354,181 @@ namespace FineUIPro.Web.CQMS.Comprehensive #endregion - protected void btnSubmit_Click(object sender, EventArgs e) - { - if (this.drpUnitId.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择报验单位!", MessageBoxIcon.Warning); - return; - } + //protected void btnSubmit_Click(object sender, EventArgs e) + //{ + // if (this.drpUnitId.SelectedValue == BLL.Const._Null) + // { + // Alert.ShowInTop("请选择报验单位!", MessageBoxIcon.Warning); + // return; + // } - Model.Comprehensive_InspectionEquipment newInspectionEquipment = new Model.Comprehensive_InspectionEquipment(); - newInspectionEquipment.ProjectId = this.CurrUser.LoginProjectId; - newInspectionEquipment.UnitId = this.drpUnitId.SelectedValue; - newInspectionEquipment.InspectionCode = this.txtInspectionCode.Text.Trim(); - if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null) - { - newInspectionEquipment.CNProfessionalId = this.drpCNProfessionalId.SelectedValue; - } - newInspectionEquipment.InspectionName = this.txtInspectionName.Text.Trim(); - newInspectionEquipment.Specifications = this.txtSpecifications.Text.Trim(); - newInspectionEquipment.Supplier = this.txtSupplier.Text.Trim(); - newInspectionEquipment.EquipmentNO = this.txtEquipmentNo.Text.Trim(); - newInspectionEquipment.RemarkCode = this.txtRemarkCode.Text.Trim(); - newInspectionEquipment.Counts = this.txtCounts.Text.Trim(); - newInspectionEquipment.SamplingCount = this.txtSamplingCount.Text.Trim(); - newInspectionEquipment.UsedPlace = this.txtUsedPlace.Text.Trim(); + // Model.Comprehensive_InspectionEquipment newInspectionEquipment = new Model.Comprehensive_InspectionEquipment(); + // newInspectionEquipment.ProjectId = this.CurrUser.LoginProjectId; + // newInspectionEquipment.UnitId = this.drpUnitId.SelectedValue; + // newInspectionEquipment.InspectionCode = this.txtInspectionCode.Text.Trim(); + // if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null) + // { + // newInspectionEquipment.CNProfessionalId = this.drpCNProfessionalId.SelectedValue; + // } + // newInspectionEquipment.InspectionName = this.txtInspectionName.Text.Trim(); + // newInspectionEquipment.Specifications = this.txtSpecifications.Text.Trim(); + // newInspectionEquipment.Supplier = this.txtSupplier.Text.Trim(); + // newInspectionEquipment.EquipmentNO = this.txtEquipmentNo.Text.Trim(); + // newInspectionEquipment.RemarkCode = this.txtRemarkCode.Text.Trim(); + // newInspectionEquipment.Counts = this.txtCounts.Text.Trim(); + // newInspectionEquipment.SamplingCount = this.txtSamplingCount.Text.Trim(); + // newInspectionEquipment.UsedPlace = this.txtUsedPlace.Text.Trim(); - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - newInspectionEquipment.AuditMan = drpAudit.SelectedValue; - } //审核人 + // if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + // { + // newInspectionEquipment.AuditMan = drpAudit.SelectedValue; + // } //审核人 - if (this.drpAttribute.SelectedValue != BLL.Const._Null) - { - newInspectionEquipment.Attribute = this.drpAttribute.SelectedValue; - } - if (this.drpSamplingResult.SelectedValue != BLL.Const._Null) - { - newInspectionEquipment.SamplingResult = this.drpSamplingResult.SelectedValue; - } - if (!string.IsNullOrEmpty(this.txtInspectionDate.Text)) - { - newInspectionEquipment.InspectionDate = Convert.ToDateTime(this.txtInspectionDate.Text); - } + // if (this.drpAttribute.SelectedValue != BLL.Const._Null) + // { + // newInspectionEquipment.Attribute = this.drpAttribute.SelectedValue; + // } + // if (this.drpSamplingResult.SelectedValue != BLL.Const._Null) + // { + // newInspectionEquipment.SamplingResult = this.drpSamplingResult.SelectedValue; + // } + // if (!string.IsNullOrEmpty(this.txtInspectionDate.Text)) + // { + // newInspectionEquipment.InspectionDate = Convert.ToDateTime(this.txtInspectionDate.Text); + // } - if (string.IsNullOrEmpty(this.InspectionEquipmentId)) - { - newInspectionEquipment.CompileMan = this.CurrUser.UserId; - newInspectionEquipment.CompileDate = DateTime.Now; - newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; - newInspectionEquipment.InspectionEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionPerson)); + // if (string.IsNullOrEmpty(this.InspectionEquipmentId)) + // { + // newInspectionEquipment.CompileMan = this.CurrUser.UserId; + // newInspectionEquipment.CompileDate = DateTime.Now; + // newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; + // newInspectionEquipment.InspectionEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_InspectionPerson)); - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == newInspectionEquipment.InspectionEquipmentId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == newInspectionEquipment.InspectionEquipmentId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } - BLL.InspectionEquipmentService.AddInspectionEquipment(newInspectionEquipment); - } - else - { - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionEquipmentId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - newInspectionEquipment.InspectionEquipmentId = this.InspectionEquipmentId; - var oldInspectionEquipment = Funs.DB.Comprehensive_InspectionEquipment.Where(u => u.InspectionEquipmentId == this.InspectionEquipmentId).FirstOrDefault(); - if (oldInspectionEquipment == null) //数据库没有记录 直接点提交 当前状态为 审核状态 - { - newInspectionEquipment.CompileMan = this.CurrUser.UserId; - newInspectionEquipment.CompileDate = DateTime.Now; - newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; - BLL.InspectionEquipmentService.AddInspectionEquipment(newInspectionEquipment); - } - else - { - newInspectionEquipment.CompileMan = oldInspectionEquipment.CompileMan; - newInspectionEquipment.CompileDate = oldInspectionEquipment.CompileDate; - if(oldInspectionEquipment.Status==BLL.Const.Comprehensive_Compile)//编制状态提交变审核 - { - newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; - } - else if (oldInspectionEquipment.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 - { - newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; - } - else //审核状态 提交 变 完成 或者 重新编制 - { - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) - { - newInspectionEquipment.Status = BLL.Const.Comprehensive_Complete; - } - else - { - newInspectionEquipment.Status = BLL.Const.Comprehensive_ReCompile; - } - } + // BLL.InspectionEquipmentService.AddInspectionEquipment(newInspectionEquipment); + // } + // else + // { + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.InspectionEquipmentId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // newInspectionEquipment.InspectionEquipmentId = this.InspectionEquipmentId; + // var oldInspectionEquipment = Funs.DB.Comprehensive_InspectionEquipment.Where(u => u.InspectionEquipmentId == this.InspectionEquipmentId).FirstOrDefault(); + // if (oldInspectionEquipment == null) //数据库没有记录 直接点提交 当前状态为 审核状态 + // { + // newInspectionEquipment.CompileMan = this.CurrUser.UserId; + // newInspectionEquipment.CompileDate = DateTime.Now; + // newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; + // BLL.InspectionEquipmentService.AddInspectionEquipment(newInspectionEquipment); + // } + // else + // { + // newInspectionEquipment.CompileMan = oldInspectionEquipment.CompileMan; + // newInspectionEquipment.CompileDate = oldInspectionEquipment.CompileDate; + // if(oldInspectionEquipment.Status==BLL.Const.Comprehensive_Compile)//编制状态提交变审核 + // { + // newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; + // } + // else if (oldInspectionEquipment.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 + // { + // newInspectionEquipment.Status = BLL.Const.Comprehensive_Audit; + // } + // else //审核状态 提交 变 完成 或者 重新编制 + // { + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) + // { + // newInspectionEquipment.Status = BLL.Const.Comprehensive_Complete; + // } + // else + // { + // newInspectionEquipment.Status = BLL.Const.Comprehensive_ReCompile; + // } + // } - BLL.InspectionEquipmentService.UpdateInspectionEquipment(newInspectionEquipment); + // BLL.InspectionEquipmentService.UpdateInspectionEquipment(newInspectionEquipment); - } + // } - } + // } - #region 审核记录 + // #region 审核记录 - var currApprove = InspectionEquipmentApproveService.GetCurrentApprove(newInspectionEquipment.InspectionEquipmentId); - if (currApprove == null) //为获取到为 当前编制状态 直接提交 - { - var approve = new Model.Comprehensive_InspectionEquipmentApprove(); - approve.InspectionEquipmentId = newInspectionEquipment.InspectionEquipmentId; - approve.ApproveMan = this.CurrUser.UserId; - approve.ApproveType = Const.Comprehensive_Compile; - approve.ApproveDate = DateTime.Now; - InspectionEquipmentApproveService.EditApprove(approve); //新增编制记录 + // var currApprove = InspectionEquipmentApproveService.GetCurrentApprove(newInspectionEquipment.InspectionEquipmentId); + // if (currApprove == null) //为获取到为 当前编制状态 直接提交 + // { + // var approve = new Model.Comprehensive_InspectionEquipmentApprove(); + // approve.InspectionEquipmentId = newInspectionEquipment.InspectionEquipmentId; + // approve.ApproveMan = this.CurrUser.UserId; + // approve.ApproveType = Const.Comprehensive_Compile; + // approve.ApproveDate = DateTime.Now; + // InspectionEquipmentApproveService.EditApprove(approve); //新增编制记录 - Model.Comprehensive_InspectionEquipmentApprove newApprove = new Model.Comprehensive_InspectionEquipmentApprove(); - newApprove.InspectionEquipmentId = newInspectionEquipment.InspectionEquipmentId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - InspectionEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // Model.Comprehensive_InspectionEquipmentApprove newApprove = new Model.Comprehensive_InspectionEquipmentApprove(); + // newApprove.InspectionEquipmentId = newInspectionEquipment.InspectionEquipmentId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // InspectionEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - }else if (currApprove.ApproveMan == CurrUser.UserId) - { - if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) - { - currApprove.ApproveDate = DateTime.Now; - //currApprove.IsAgree = true; - InspectionEquipmentApproveService.EditApprove(currApprove); //新增专业工程师审核记录 - Model.Comprehensive_InspectionEquipmentApprove newApprove = new Model.Comprehensive_InspectionEquipmentApprove(); - newApprove.InspectionEquipmentId = newInspectionEquipment.InspectionEquipmentId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - InspectionEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else - { - currApprove.ApproveDate = DateTime.Now; //更新审核时间 - currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - currApprove.ApproveIdea = this.txtidea.Text; - InspectionEquipmentApproveService.EditApprove(currApprove); + // }else if (currApprove.ApproveMan == CurrUser.UserId) + // { + // if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) + // { + // currApprove.ApproveDate = DateTime.Now; + // //currApprove.IsAgree = true; + // InspectionEquipmentApproveService.EditApprove(currApprove); //新增专业工程师审核记录 + // Model.Comprehensive_InspectionEquipmentApprove newApprove = new Model.Comprehensive_InspectionEquipmentApprove(); + // newApprove.InspectionEquipmentId = newInspectionEquipment.InspectionEquipmentId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // InspectionEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // } + // else + // { + // currApprove.ApproveDate = DateTime.Now; //更新审核时间 + // currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); + // currApprove.ApproveIdea = this.txtidea.Text; + // InspectionEquipmentApproveService.EditApprove(currApprove); - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 - { - Model.Comprehensive_InspectionEquipmentApprove reApprove = new Model.Comprehensive_InspectionEquipmentApprove(); - reApprove.InspectionEquipmentId = currApprove.InspectionEquipmentId; - reApprove.ApproveDate = DateTime.Now.AddSeconds(10); - reApprove.ApproveMan = CurrUser.UserId; - reApprove.ApproveType = Const.Comprehensive_Complete; - //reApprove.ApproveIdea = txtidea.Text; - InspectionEquipmentApproveService.EditApprove(reApprove); - } - else - { - Model.Comprehensive_InspectionEquipmentApprove reApprove = new Model.Comprehensive_InspectionEquipmentApprove(); - reApprove.InspectionEquipmentId = currApprove.InspectionEquipmentId; - reApprove.ApproveMan = newInspectionEquipment.CompileMan; - reApprove.ApproveType = Const.Comprehensive_ReCompile; - InspectionEquipmentApproveService.EditApprove(reApprove); - } - } - } + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 + // { + // Model.Comprehensive_InspectionEquipmentApprove reApprove = new Model.Comprehensive_InspectionEquipmentApprove(); + // reApprove.InspectionEquipmentId = currApprove.InspectionEquipmentId; + // reApprove.ApproveDate = DateTime.Now.AddSeconds(10); + // reApprove.ApproveMan = CurrUser.UserId; + // reApprove.ApproveType = Const.Comprehensive_Complete; + // //reApprove.ApproveIdea = txtidea.Text; + // InspectionEquipmentApproveService.EditApprove(reApprove); + // } + // else + // { + // Model.Comprehensive_InspectionEquipmentApprove reApprove = new Model.Comprehensive_InspectionEquipmentApprove(); + // reApprove.InspectionEquipmentId = currApprove.InspectionEquipmentId; + // reApprove.ApproveMan = newInspectionEquipment.CompileMan; + // reApprove.ApproveType = Const.Comprehensive_ReCompile; + // InspectionEquipmentApproveService.EditApprove(reApprove); + // } + // } + // } - #endregion + // #endregion - ShowNotify("保存成功!", MessageBoxIcon.Success); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } + // ShowNotify("保存成功!", MessageBoxIcon.Success); + // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + //} #region 附件上传 diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.designer.cs index 58934b6d..e99575e8 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionEquipmentEdit.aspx.designer.cs @@ -194,51 +194,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnAttach; - /// - /// drpAudit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpAudit; - - /// - /// agree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow agree; - - /// - /// rblIsAgree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rblIsAgree; - - /// - /// options 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow options; - - /// - /// txtidea 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtidea; - /// /// Toolbar1 控件。 /// @@ -266,15 +221,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnSave; - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagement.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagement.aspx index 2b1151b8..bf29f761 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagement.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagement.aspx @@ -81,13 +81,13 @@ - + <%-- - - + --%> + <%----%> protected global::System.Web.UI.WebControls.Label Label3; - /// - /// txtStatus 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label txtStatus; - /// /// lbtnFileUrl 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx index 715392b9..7a2c0a60 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx @@ -74,7 +74,7 @@ - + <%-- @@ -99,7 +99,7 @@ - + --%> @@ -110,8 +110,8 @@ - - + <%-- + --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs index 42973649..4da95d85 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.cs @@ -40,11 +40,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive BLL.UnitService.InitUnitDownList(this.drpSendUnit, this.CurrUser.LoginProjectId, true); BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true); LoadAuditSelect(); - this.agree.Hidden = true; - this.options.Hidden = true; + //this.agree.Hidden = true; + //this.options.Hidden = true; this.btnSave.Hidden = true; - this.btnSubmit.Hidden = true; + //this.btnSubmit.Hidden = true; this.NCRManagementId = Request.Params["NCRManagementId"]; Model.Comprehensive_NCRManagement nCRManagement = BLL.NCRManagementService.GetNCRManagementById(this.NCRManagementId); if (nCRManagement != null) @@ -90,7 +90,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { //重新编制 编制人 可以 显示 提交 保存按钮 if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && nCRManagement.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; }//审核状态 审核人 可以显示 提交 保存按钮 else if (currApprove.ApproveType == BLL.Const.Comprehensive_Audit && currApprove.ApproveMan == CurrUser.UserId) @@ -98,9 +98,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive //审核状态不可编辑 Readonly(); - this.agree.Hidden = false; - this.options.Hidden = false; - this.btnSubmit.Hidden = false; + //this.agree.Hidden = false; + //this.options.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } }//没有当前审核人,已完成状态 或者 待提交状态 @@ -108,7 +108,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { if (nCRManagement.Status == BLL.Const.Comprehensive_Compile && nCRManagement.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } } @@ -121,7 +121,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.txtClosedDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); this.txtCompleteDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); this.btnSave.Hidden = false; - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; } } } @@ -143,7 +143,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.drpSendUnit.Readonly = true; this.drpUnitIds.Readonly = true; this.drpUnitWorkIds.Readonly = true; - this.drpAudit.Readonly = true; + //this.drpAudit.Readonly = true; //this.btnAttach.Enabled = false; @@ -155,19 +155,19 @@ namespace FineUIPro.Web.CQMS.Comprehensive public void LoadAuditSelect() { - var db = Funs.DB; - var userList = from x in db.Sys_User - join y in db.Project_ProjectUnit - on x.UnitId equals y.UnitId - join p in db.Project_ProjectUser - on x.UserId equals p.UserId - where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId - where p.RoleId.Contains(Const.ZBCNEngineer) - select new { UserId = x.UserId, UserName = x.UserName }; - drpAudit.DataValueField = "UserId"; - drpAudit.DataTextField = "UserName"; - this.drpAudit.DataSource = userList.ToList(); - this.drpAudit.DataBind(); + //var db = Funs.DB; + //var userList = from x in db.Sys_User + // join y in db.Project_ProjectUnit + // on x.UnitId equals y.UnitId + // join p in db.Project_ProjectUser + // on x.UserId equals p.UserId + // where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId + // where p.RoleId.Contains(Const.ZBCNEngineer) + // select new { UserId = x.UserId, UserName = x.UserName }; + //drpAudit.DataValueField = "UserId"; + //drpAudit.DataTextField = "UserName"; + //this.drpAudit.DataSource = userList.ToList(); + //this.drpAudit.DataBind(); } @@ -193,10 +193,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive } Model.Comprehensive_NCRManagement nCRManagement = new Model.Comprehensive_NCRManagement(); nCRManagement.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - nCRManagement.AuditMan = drpAudit.SelectedValue; - } //审核人 + //if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + //{ + // nCRManagement.AuditMan = drpAudit.SelectedValue; + //} //审核人 if (this.drpSendUnit.SelectedValue != BLL.Const._Null) { nCRManagement.SendUnit = this.drpSendUnit.SelectedValue; @@ -290,207 +290,207 @@ namespace FineUIPro.Web.CQMS.Comprehensive } - protected void btnSubmit_Click(object sender, EventArgs e) - { - if (this.drpSendUnit.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择发出单位!", MessageBoxIcon.Warning); - return; - } - if (drpCNProfessionalId.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning); - return; - } - Model.Comprehensive_NCRManagement nCRManagement = new Model.Comprehensive_NCRManagement(); - nCRManagement.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - nCRManagement.AuditMan = drpAudit.SelectedValue; - } //审核人 - if (this.drpSendUnit.SelectedValue != BLL.Const._Null) - { - nCRManagement.SendUnit = this.drpSendUnit.SelectedValue; - } - if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null) - { - nCRManagement.CNProfessionalId = this.drpCNProfessionalId.SelectedValue; - } - nCRManagement.NCRCode = this.txtNCRCode.Text.Trim(); - nCRManagement.Contents = this.txtContents.Text.Trim(); - if (!string.IsNullOrEmpty(this.txtIssuedDate.Text)) - { - nCRManagement.IssuedDate = Convert.ToDateTime(this.txtIssuedDate.Text); - } + //protected void btnSubmit_Click(object sender, EventArgs e) + //{ + // if (this.drpSendUnit.SelectedValue == BLL.Const._Null) + // { + // Alert.ShowInTop("请选择发出单位!", MessageBoxIcon.Warning); + // return; + // } + // if (drpCNProfessionalId.SelectedValue == BLL.Const._Null) + // { + // Alert.ShowInTop("请选择专业!", MessageBoxIcon.Warning); + // return; + // } + // Model.Comprehensive_NCRManagement nCRManagement = new Model.Comprehensive_NCRManagement(); + // nCRManagement.ProjectId = this.CurrUser.LoginProjectId; + // if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + // { + // nCRManagement.AuditMan = drpAudit.SelectedValue; + // } //审核人 + // if (this.drpSendUnit.SelectedValue != BLL.Const._Null) + // { + // nCRManagement.SendUnit = this.drpSendUnit.SelectedValue; + // } + // if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null) + // { + // nCRManagement.CNProfessionalId = this.drpCNProfessionalId.SelectedValue; + // } + // nCRManagement.NCRCode = this.txtNCRCode.Text.Trim(); + // nCRManagement.Contents = this.txtContents.Text.Trim(); + // if (!string.IsNullOrEmpty(this.txtIssuedDate.Text)) + // { + // nCRManagement.IssuedDate = Convert.ToDateTime(this.txtIssuedDate.Text); + // } - if (!string.IsNullOrEmpty(this.txtClosedDate.Text)) - { - nCRManagement.ClosedDate = Convert.ToDateTime(this.txtClosedDate.Text); - } - if (!string.IsNullOrEmpty(this.txtCompleteDate.Text)) - { - nCRManagement.CompleteDate = Convert.ToDateTime(this.txtCompleteDate.Text); - } - nCRManagement.ResponsibleMan = this.txtResponsibleMan.Text.Trim(); - nCRManagement.ImplementationFrontState = this.txtImplementationFrontState.Text.Trim(); - string ids = string.Empty; - var lists = this.drpUnitWorkIds.SelectedValueArray; - foreach (var item in lists) - { - ids += item + ","; - } - if (!string.IsNullOrEmpty(ids)) - { - ids = ids.Substring(0, ids.LastIndexOf(",")); - } - nCRManagement.UnitWorkId = ids; + // if (!string.IsNullOrEmpty(this.txtClosedDate.Text)) + // { + // nCRManagement.ClosedDate = Convert.ToDateTime(this.txtClosedDate.Text); + // } + // if (!string.IsNullOrEmpty(this.txtCompleteDate.Text)) + // { + // nCRManagement.CompleteDate = Convert.ToDateTime(this.txtCompleteDate.Text); + // } + // nCRManagement.ResponsibleMan = this.txtResponsibleMan.Text.Trim(); + // nCRManagement.ImplementationFrontState = this.txtImplementationFrontState.Text.Trim(); + // string ids = string.Empty; + // var lists = this.drpUnitWorkIds.SelectedValueArray; + // foreach (var item in lists) + // { + // ids += item + ","; + // } + // if (!string.IsNullOrEmpty(ids)) + // { + // ids = ids.Substring(0, ids.LastIndexOf(",")); + // } + // nCRManagement.UnitWorkId = ids; - string unitIds = string.Empty; - var unitList = this.drpUnitIds.SelectedValueArray; - foreach (var item in unitList) - { - unitIds += item + ","; - } - if (!string.IsNullOrEmpty(unitIds)) - { - unitIds = unitIds.Substring(0, unitIds.LastIndexOf(",")); - } - nCRManagement.ReceiveUnit = unitIds; - if (string.IsNullOrEmpty(this.NCRManagementId)) - { - if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) - { - nCRManagement.NCRManagementId = this.hdAttachUrl.Text; - } - else - { - nCRManagement.NCRManagementId = SQLHelper.GetNewID(typeof(Model.Comprehensive_NCRManagement)); - this.hdAttachUrl.Text = nCRManagement.NCRManagementId; - } - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == nCRManagement.NCRManagementId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - nCRManagement.CompileMan = this.CurrUser.UserId; - nCRManagement.Status = BLL.Const.Comprehensive_Audit; - BLL.NCRManagementService.AddNCRManagement(nCRManagement); - } - else - { - nCRManagement.NCRManagementId = this.NCRManagementId; - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.NCRManagementId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - //BLL.NCRManagementService.UpdateNCRManagement(nCRManagement); - var oldNCRManagement = Funs.DB.Comprehensive_NCRManagement.Where(u => u.NCRManagementId == this.NCRManagementId).FirstOrDefault(); - if (oldNCRManagement == null) //数据库没有记录 直接点提交 当前状态为 审核状态 - { - nCRManagement.CompileMan = this.CurrUser.UserId; - nCRManagement.Status = BLL.Const.Comprehensive_Audit; - BLL.NCRManagementService.AddNCRManagement(nCRManagement); - } - else - { - nCRManagement.CompileMan = oldNCRManagement.CompileMan; - if (oldNCRManagement.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 - { - nCRManagement.Status = BLL.Const.Comprehensive_Audit; - } - else if (oldNCRManagement.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 - { - nCRManagement.Status = BLL.Const.Comprehensive_Audit; - } - else //审核状态 提交 变 完成 或者 重新编制 - { - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) - { - nCRManagement.Status = BLL.Const.Comprehensive_Complete; - } - else - { - nCRManagement.Status = BLL.Const.Comprehensive_ReCompile; - } - } + // string unitIds = string.Empty; + // var unitList = this.drpUnitIds.SelectedValueArray; + // foreach (var item in unitList) + // { + // unitIds += item + ","; + // } + // if (!string.IsNullOrEmpty(unitIds)) + // { + // unitIds = unitIds.Substring(0, unitIds.LastIndexOf(",")); + // } + // nCRManagement.ReceiveUnit = unitIds; + // if (string.IsNullOrEmpty(this.NCRManagementId)) + // { + // if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) + // { + // nCRManagement.NCRManagementId = this.hdAttachUrl.Text; + // } + // else + // { + // nCRManagement.NCRManagementId = SQLHelper.GetNewID(typeof(Model.Comprehensive_NCRManagement)); + // this.hdAttachUrl.Text = nCRManagement.NCRManagementId; + // } + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == nCRManagement.NCRManagementId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // nCRManagement.CompileMan = this.CurrUser.UserId; + // nCRManagement.Status = BLL.Const.Comprehensive_Audit; + // BLL.NCRManagementService.AddNCRManagement(nCRManagement); + // } + // else + // { + // nCRManagement.NCRManagementId = this.NCRManagementId; + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.NCRManagementId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // //BLL.NCRManagementService.UpdateNCRManagement(nCRManagement); + // var oldNCRManagement = Funs.DB.Comprehensive_NCRManagement.Where(u => u.NCRManagementId == this.NCRManagementId).FirstOrDefault(); + // if (oldNCRManagement == null) //数据库没有记录 直接点提交 当前状态为 审核状态 + // { + // nCRManagement.CompileMan = this.CurrUser.UserId; + // nCRManagement.Status = BLL.Const.Comprehensive_Audit; + // BLL.NCRManagementService.AddNCRManagement(nCRManagement); + // } + // else + // { + // nCRManagement.CompileMan = oldNCRManagement.CompileMan; + // if (oldNCRManagement.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 + // { + // nCRManagement.Status = BLL.Const.Comprehensive_Audit; + // } + // else if (oldNCRManagement.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 + // { + // nCRManagement.Status = BLL.Const.Comprehensive_Audit; + // } + // else //审核状态 提交 变 完成 或者 重新编制 + // { + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) + // { + // nCRManagement.Status = BLL.Const.Comprehensive_Complete; + // } + // else + // { + // nCRManagement.Status = BLL.Const.Comprehensive_ReCompile; + // } + // } - BLL.NCRManagementService.UpdateNCRManagement(nCRManagement); + // BLL.NCRManagementService.UpdateNCRManagement(nCRManagement); - } + // } - } - #region 审核记录 + // } + // #region 审核记录 - var currApprove = NCRManagementApproveService.GetCurrentApprove(nCRManagement.NCRManagementId); - if (currApprove == null) //为获取到为 当前编制状态 直接提交 - { - var approve = new Model.Comprehensive_NCRManagementApprove(); - approve.NCRManagementId = nCRManagement.NCRManagementId; - approve.ApproveMan = this.CurrUser.UserId; - approve.ApproveType = Const.Comprehensive_Compile; - approve.ApproveDate = DateTime.Now; - NCRManagementApproveService.EditApprove(approve); //新增编制记录 + // var currApprove = NCRManagementApproveService.GetCurrentApprove(nCRManagement.NCRManagementId); + // if (currApprove == null) //为获取到为 当前编制状态 直接提交 + // { + // var approve = new Model.Comprehensive_NCRManagementApprove(); + // approve.NCRManagementId = nCRManagement.NCRManagementId; + // approve.ApproveMan = this.CurrUser.UserId; + // approve.ApproveType = Const.Comprehensive_Compile; + // approve.ApproveDate = DateTime.Now; + // NCRManagementApproveService.EditApprove(approve); //新增编制记录 - Model.Comprehensive_NCRManagementApprove newApprove = new Model.Comprehensive_NCRManagementApprove(); - newApprove.NCRManagementId = nCRManagement.NCRManagementId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - NCRManagementApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // Model.Comprehensive_NCRManagementApprove newApprove = new Model.Comprehensive_NCRManagementApprove(); + // newApprove.NCRManagementId = nCRManagement.NCRManagementId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // NCRManagementApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else if (currApprove.ApproveMan == CurrUser.UserId) - { - if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) - { - currApprove.ApproveDate = DateTime.Now; - //currApprove.IsAgree = true; - NCRManagementApproveService.EditApprove(currApprove); //新增专业工程师审核记录 - Model.Comprehensive_NCRManagementApprove newApprove = new Model.Comprehensive_NCRManagementApprove(); - newApprove.NCRManagementId = nCRManagement.NCRManagementId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - NCRManagementApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else - { - currApprove.ApproveDate = DateTime.Now; //更新审核时间 - currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - currApprove.ApproveIdea = this.txtidea.Text; - NCRManagementApproveService.EditApprove(currApprove); + // } + // else if (currApprove.ApproveMan == CurrUser.UserId) + // { + // if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) + // { + // currApprove.ApproveDate = DateTime.Now; + // //currApprove.IsAgree = true; + // NCRManagementApproveService.EditApprove(currApprove); //新增专业工程师审核记录 + // Model.Comprehensive_NCRManagementApprove newApprove = new Model.Comprehensive_NCRManagementApprove(); + // newApprove.NCRManagementId = nCRManagement.NCRManagementId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // NCRManagementApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // } + // else + // { + // currApprove.ApproveDate = DateTime.Now; //更新审核时间 + // currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); + // currApprove.ApproveIdea = this.txtidea.Text; + // NCRManagementApproveService.EditApprove(currApprove); - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 - { - Model.Comprehensive_NCRManagementApprove reApprove = new Model.Comprehensive_NCRManagementApprove(); - reApprove.NCRManagementId = currApprove.NCRManagementId; - reApprove.ApproveDate = DateTime.Now.AddSeconds(10); - reApprove.ApproveMan = CurrUser.UserId; - reApprove.ApproveType = Const.Comprehensive_Complete; - // reApprove.ApproveIdea = txtidea.Text; - NCRManagementApproveService.EditApprove(reApprove); - } - else - { - Model.Comprehensive_NCRManagementApprove reApprove = new Model.Comprehensive_NCRManagementApprove(); - reApprove.NCRManagementId = currApprove.NCRManagementId; - reApprove.ApproveMan = nCRManagement.CompileMan; - reApprove.ApproveType = Const.Comprehensive_ReCompile; - NCRManagementApproveService.EditApprove(reApprove); - } - } - } + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 + // { + // Model.Comprehensive_NCRManagementApprove reApprove = new Model.Comprehensive_NCRManagementApprove(); + // reApprove.NCRManagementId = currApprove.NCRManagementId; + // reApprove.ApproveDate = DateTime.Now.AddSeconds(10); + // reApprove.ApproveMan = CurrUser.UserId; + // reApprove.ApproveType = Const.Comprehensive_Complete; + // // reApprove.ApproveIdea = txtidea.Text; + // NCRManagementApproveService.EditApprove(reApprove); + // } + // else + // { + // Model.Comprehensive_NCRManagementApprove reApprove = new Model.Comprehensive_NCRManagementApprove(); + // reApprove.NCRManagementId = currApprove.NCRManagementId; + // reApprove.ApproveMan = nCRManagement.CompileMan; + // reApprove.ApproveType = Const.Comprehensive_ReCompile; + // NCRManagementApproveService.EditApprove(reApprove); + // } + // } + // } - #endregion + // #endregion - ShowNotify("保存成功!", MessageBoxIcon.Success); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } - #endregion + // ShowNotify("保存成功!", MessageBoxIcon.Success); + // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + //} + #endregion #region 附件上传 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs index 750d2e35..205a638b 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/NCRManagementEdit.aspx.designer.cs @@ -167,51 +167,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnAttach; - /// - /// drpAudit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpAudit; - - /// - /// agree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow agree; - - /// - /// rblIsAgree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rblIsAgree; - - /// - /// options 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow options; - - /// - /// txtidea 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtidea; - /// /// Toolbar1 控件。 /// @@ -239,15 +194,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnSave; - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipe.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipe.aspx index ce707619..55071bae 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipe.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipe.aspx @@ -61,13 +61,13 @@ - + <%-- - - + --%> + <%----%> protected global::System.Web.UI.WebControls.Label lblPageIndex; - /// - /// txtStatus 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label txtStatus; - /// /// lbtnFileUrl 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx index b05676cd..e499438c 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx @@ -53,7 +53,7 @@ - + <%-- @@ -77,7 +77,7 @@ - + --%> @@ -88,8 +88,8 @@ - - + <%-- + --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs index 9d98027a..63b65cff 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.cs @@ -37,11 +37,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive GetButtonPower(); BLL.UnitService.InitUnitDownList(this.drpUnit, this.CurrUser.LoginProjectId, true); LoadAuditSelect(); - this.agree.Hidden = true; - this.options.Hidden = true; + //this.agree.Hidden = true; + //this.options.Hidden = true; this.btnSave.Hidden = true; - this.btnSubmit.Hidden = true; + //this.btnSubmit.Hidden = true; this.PressurePipeId = Request.Params["PressurePipeId"]; Model.Comprehensive_PressurePipe pressurePipe = BLL.PressurePipeService.GetPressurePipeById(this.PressurePipeId); if (pressurePipe != null) @@ -65,7 +65,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { //重新编制 编制人 可以 显示 提交 保存按钮 if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && pressurePipe.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; }//审核状态 审核人 可以显示 提交 保存按钮 else if (currApprove.ApproveType == BLL.Const.Comprehensive_Audit && currApprove.ApproveMan == CurrUser.UserId) @@ -73,9 +73,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive //审核状态不可编辑 Readonly(); - this.agree.Hidden = false; - this.options.Hidden = false; - this.btnSubmit.Hidden = false; + //this.agree.Hidden = false; + //this.options.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } }//没有当前审核人,已完成状态 或者 待提交状态 @@ -83,7 +83,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { if (pressurePipe.Status == BLL.Const.Comprehensive_Compile && pressurePipe.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } } @@ -93,7 +93,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive else { this.btnSave.Hidden = false; - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; } } } @@ -112,7 +112,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.txtPressurePipeNumber.Readonly = true; this.drpUnit.Readonly = true; - this.drpAudit.Readonly = true; + //this.drpAudit.Readonly = true; //this.btnAttach.Enabled = false; @@ -125,19 +125,19 @@ namespace FineUIPro.Web.CQMS.Comprehensive public void LoadAuditSelect() { - var db = Funs.DB; - var userList = from x in db.Sys_User - join y in db.Project_ProjectUnit - on x.UnitId equals y.UnitId - join p in db.Project_ProjectUser - on x.UserId equals p.UserId - where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId - where p.RoleId.Contains(Const.ZBCNEngineer) - select new { UserId = x.UserId, UserName = x.UserName }; - drpAudit.DataValueField = "UserId"; - drpAudit.DataTextField = "UserName"; - this.drpAudit.DataSource = userList.ToList(); - this.drpAudit.DataBind(); + //var db = Funs.DB; + //var userList = from x in db.Sys_User + // join y in db.Project_ProjectUnit + // on x.UnitId equals y.UnitId + // join p in db.Project_ProjectUser + // on x.UserId equals p.UserId + // where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId + // where p.RoleId.Contains(Const.ZBCNEngineer) + // select new { UserId = x.UserId, UserName = x.UserName }; + //drpAudit.DataValueField = "UserId"; + //drpAudit.DataTextField = "UserName"; + //this.drpAudit.DataSource = userList.ToList(); + //this.drpAudit.DataBind(); } #endregion @@ -157,10 +157,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive } Model.Comprehensive_PressurePipe pressurePipe = new Model.Comprehensive_PressurePipe(); pressurePipe.Projctid = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - pressurePipe.AuditMan = drpAudit.SelectedValue; - } //审核人 + //if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + //{ + // pressurePipe.AuditMan = drpAudit.SelectedValue; + //} //审核人 if (!string.IsNullOrEmpty(this.txtEstimateNumber.Text)) { pressurePipe.EstimateNumber = Convert.ToInt32(this.txtEstimateNumber.Text); @@ -234,184 +234,184 @@ namespace FineUIPro.Web.CQMS.Comprehensive } - protected void btnSubmit_Click(object sender, EventArgs e) - { - if (drpUnit.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning); - return; - } - Model.Comprehensive_PressurePipe pressurePipe = new Model.Comprehensive_PressurePipe(); - pressurePipe.Projctid = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - pressurePipe.AuditMan = drpAudit.SelectedValue; - } //审核人 - if (!string.IsNullOrEmpty(this.txtEstimateNumber.Text)) - { - pressurePipe.EstimateNumber = Convert.ToInt32(this.txtEstimateNumber.Text); - } - if (this.drpUnit.SelectedValue != BLL.Const._Null) - { - pressurePipe.UnitId = this.drpUnit.SelectedValue; - } - if (!string.IsNullOrEmpty(this.txtActualNumber.Text)) - { - pressurePipe.ActualNumber = Convert.ToInt32(this.txtActualNumber.Text); - } - if (!string.IsNullOrEmpty(this.txtPackageNumber.Text)) - { - pressurePipe.PackageNumber = Convert.ToInt32(this.txtPackageNumber.Text); - } - if (!string.IsNullOrEmpty(this.txtCompletePackageNumber.Text)) - { - pressurePipe.CompletePackageNumber = Convert.ToInt32(this.txtCompletePackageNumber.Text); - } - if (!string.IsNullOrEmpty(this.txtPressurePipeNumber.Text)) - { - pressurePipe.PressurePipeNumber = Convert.ToInt32(this.txtPressurePipeNumber.Text); - } - if (!string.IsNullOrEmpty(this.txtIssuedReportNumber.Text)) - { - pressurePipe.IssuedReportNumber = Convert.ToInt32(this.txtIssuedReportNumber.Text); - } - if (string.IsNullOrEmpty(this.PressurePipeId)) - { - if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) - { - pressurePipe.PressurePipeId = this.hdAttachUrl.Text; - } - else - { - pressurePipe.PressurePipeId = SQLHelper.GetNewID(typeof(Model.Comprehensive_PressurePipe)); - this.hdAttachUrl.Text = pressurePipe.PressurePipeId; - } - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.PressurePipeId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - pressurePipe.CompileMan = this.CurrUser.UserId; - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - BLL.PressurePipeService.AddPressurePipe(pressurePipe); - } - else - { - pressurePipe.PressurePipeId = this.PressurePipeId; - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.PressurePipeId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - // BLL.PressurePipeService.UpdatePressurePipe(pressurePipe); - var oldPressurePipe = Funs.DB.Comprehensive_PressurePipe.Where(u => u.PressurePipeId == this.PressurePipeId).FirstOrDefault(); - if (oldPressurePipe == null) //数据库没有记录 直接点提交 当前状态为 审核状态 - { - pressurePipe.CompileMan = this.CurrUser.UserId; - //pressurePipe.CompileDate = DateTime.Now; - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - BLL.PressurePipeService.AddPressurePipe(pressurePipe); - } - else - { - pressurePipe.CompileMan = oldPressurePipe.CompileMan; - //pressurePipe.CompileDate = oldPressurePipe.CompileDate; - if (oldPressurePipe.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 - { - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - } - else if (oldPressurePipe.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 - { - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - } - else //审核状态 提交 变 完成 或者 重新编制 - { - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) - { - pressurePipe.Status = BLL.Const.Comprehensive_Complete; - } - else - { - pressurePipe.Status = BLL.Const.Comprehensive_ReCompile; - } - } + //protected void btnSubmit_Click(object sender, EventArgs e) + //{ + // if (drpUnit.SelectedValue == BLL.Const._Null) + // { + // Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning); + // return; + // } + // Model.Comprehensive_PressurePipe pressurePipe = new Model.Comprehensive_PressurePipe(); + // pressurePipe.Projctid = this.CurrUser.LoginProjectId; + // if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + // { + // pressurePipe.AuditMan = drpAudit.SelectedValue; + // } //审核人 + // if (!string.IsNullOrEmpty(this.txtEstimateNumber.Text)) + // { + // pressurePipe.EstimateNumber = Convert.ToInt32(this.txtEstimateNumber.Text); + // } + // if (this.drpUnit.SelectedValue != BLL.Const._Null) + // { + // pressurePipe.UnitId = this.drpUnit.SelectedValue; + // } + // if (!string.IsNullOrEmpty(this.txtActualNumber.Text)) + // { + // pressurePipe.ActualNumber = Convert.ToInt32(this.txtActualNumber.Text); + // } + // if (!string.IsNullOrEmpty(this.txtPackageNumber.Text)) + // { + // pressurePipe.PackageNumber = Convert.ToInt32(this.txtPackageNumber.Text); + // } + // if (!string.IsNullOrEmpty(this.txtCompletePackageNumber.Text)) + // { + // pressurePipe.CompletePackageNumber = Convert.ToInt32(this.txtCompletePackageNumber.Text); + // } + // if (!string.IsNullOrEmpty(this.txtPressurePipeNumber.Text)) + // { + // pressurePipe.PressurePipeNumber = Convert.ToInt32(this.txtPressurePipeNumber.Text); + // } + // if (!string.IsNullOrEmpty(this.txtIssuedReportNumber.Text)) + // { + // pressurePipe.IssuedReportNumber = Convert.ToInt32(this.txtIssuedReportNumber.Text); + // } + // if (string.IsNullOrEmpty(this.PressurePipeId)) + // { + // if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) + // { + // pressurePipe.PressurePipeId = this.hdAttachUrl.Text; + // } + // else + // { + // pressurePipe.PressurePipeId = SQLHelper.GetNewID(typeof(Model.Comprehensive_PressurePipe)); + // this.hdAttachUrl.Text = pressurePipe.PressurePipeId; + // } + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.PressurePipeId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // pressurePipe.CompileMan = this.CurrUser.UserId; + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // BLL.PressurePipeService.AddPressurePipe(pressurePipe); + // } + // else + // { + // pressurePipe.PressurePipeId = this.PressurePipeId; + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.PressurePipeId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // // BLL.PressurePipeService.UpdatePressurePipe(pressurePipe); + // var oldPressurePipe = Funs.DB.Comprehensive_PressurePipe.Where(u => u.PressurePipeId == this.PressurePipeId).FirstOrDefault(); + // if (oldPressurePipe == null) //数据库没有记录 直接点提交 当前状态为 审核状态 + // { + // pressurePipe.CompileMan = this.CurrUser.UserId; + // //pressurePipe.CompileDate = DateTime.Now; + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // BLL.PressurePipeService.AddPressurePipe(pressurePipe); + // } + // else + // { + // pressurePipe.CompileMan = oldPressurePipe.CompileMan; + // //pressurePipe.CompileDate = oldPressurePipe.CompileDate; + // if (oldPressurePipe.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 + // { + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // } + // else if (oldPressurePipe.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 + // { + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // } + // else //审核状态 提交 变 完成 或者 重新编制 + // { + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) + // { + // pressurePipe.Status = BLL.Const.Comprehensive_Complete; + // } + // else + // { + // pressurePipe.Status = BLL.Const.Comprehensive_ReCompile; + // } + // } - BLL.PressurePipeService.UpdatePressurePipe(pressurePipe); + // BLL.PressurePipeService.UpdatePressurePipe(pressurePipe); - } + // } - } - #region 审核记录 + // } + // #region 审核记录 - var currApprove = PressurePipeApproveService.GetCurrentApprove(pressurePipe.PressurePipeId); - if (currApprove == null) //为获取到为 当前编制状态 直接提交 - { - var approve = new Model.Comprehensive_PressurePipeApprove(); - approve.PressurePipeId = pressurePipe.PressurePipeId; - approve.ApproveMan = this.CurrUser.UserId; - approve.ApproveType = Const.Comprehensive_Compile; - approve.ApproveDate = DateTime.Now; - PressurePipeApproveService.EditApprove(approve); //新增编制记录 + // var currApprove = PressurePipeApproveService.GetCurrentApprove(pressurePipe.PressurePipeId); + // if (currApprove == null) //为获取到为 当前编制状态 直接提交 + // { + // var approve = new Model.Comprehensive_PressurePipeApprove(); + // approve.PressurePipeId = pressurePipe.PressurePipeId; + // approve.ApproveMan = this.CurrUser.UserId; + // approve.ApproveType = Const.Comprehensive_Compile; + // approve.ApproveDate = DateTime.Now; + // PressurePipeApproveService.EditApprove(approve); //新增编制记录 - Model.Comprehensive_PressurePipeApprove newApprove = new Model.Comprehensive_PressurePipeApprove(); - newApprove.PressurePipeId = pressurePipe.PressurePipeId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - PressurePipeApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // Model.Comprehensive_PressurePipeApprove newApprove = new Model.Comprehensive_PressurePipeApprove(); + // newApprove.PressurePipeId = pressurePipe.PressurePipeId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // PressurePipeApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else if (currApprove.ApproveMan == CurrUser.UserId) - { - if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) - { - currApprove.ApproveDate = DateTime.Now; - //currApprove.IsAgree = true; - PressurePipeApproveService.EditApprove(currApprove); //新增专业工程师审核记录 - Model.Comprehensive_PressurePipeApprove newApprove = new Model.Comprehensive_PressurePipeApprove(); - newApprove.PressurePipeId = pressurePipe.PressurePipeId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - PressurePipeApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else - { - currApprove.ApproveDate = DateTime.Now; //更新审核时间 - currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - currApprove.ApproveIdea = this.txtidea.Text; - PressurePipeApproveService.EditApprove(currApprove); + // } + // else if (currApprove.ApproveMan == CurrUser.UserId) + // { + // if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) + // { + // currApprove.ApproveDate = DateTime.Now; + // //currApprove.IsAgree = true; + // PressurePipeApproveService.EditApprove(currApprove); //新增专业工程师审核记录 + // Model.Comprehensive_PressurePipeApprove newApprove = new Model.Comprehensive_PressurePipeApprove(); + // newApprove.PressurePipeId = pressurePipe.PressurePipeId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // PressurePipeApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // } + // else + // { + // currApprove.ApproveDate = DateTime.Now; //更新审核时间 + // currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); + // currApprove.ApproveIdea = this.txtidea.Text; + // PressurePipeApproveService.EditApprove(currApprove); - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 - { - Model.Comprehensive_PressurePipeApprove reApprove = new Model.Comprehensive_PressurePipeApprove(); - reApprove.PressurePipeId = currApprove.PressurePipeId; - reApprove.ApproveDate = DateTime.Now.AddSeconds(10); - reApprove.ApproveMan = CurrUser.UserId; - reApprove.ApproveType = Const.Comprehensive_Complete; - // reApprove.ApproveIdea = txtidea.Text; - PressurePipeApproveService.EditApprove(reApprove); - } - else - { - Model.Comprehensive_PressurePipeApprove reApprove = new Model.Comprehensive_PressurePipeApprove(); - reApprove.PressurePipeId = currApprove.PressurePipeId; - reApprove.ApproveMan = pressurePipe.CompileMan; - reApprove.ApproveType = Const.Comprehensive_ReCompile; - PressurePipeApproveService.EditApprove(reApprove); - } - } - } + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 + // { + // Model.Comprehensive_PressurePipeApprove reApprove = new Model.Comprehensive_PressurePipeApprove(); + // reApprove.PressurePipeId = currApprove.PressurePipeId; + // reApprove.ApproveDate = DateTime.Now.AddSeconds(10); + // reApprove.ApproveMan = CurrUser.UserId; + // reApprove.ApproveType = Const.Comprehensive_Complete; + // // reApprove.ApproveIdea = txtidea.Text; + // PressurePipeApproveService.EditApprove(reApprove); + // } + // else + // { + // Model.Comprehensive_PressurePipeApprove reApprove = new Model.Comprehensive_PressurePipeApprove(); + // reApprove.PressurePipeId = currApprove.PressurePipeId; + // reApprove.ApproveMan = pressurePipe.CompileMan; + // reApprove.ApproveType = Const.Comprehensive_ReCompile; + // PressurePipeApproveService.EditApprove(reApprove); + // } + // } + // } - #endregion + // #endregion - ShowNotify("保存成功!", MessageBoxIcon.Success); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } + // ShowNotify("保存成功!", MessageBoxIcon.Success); + // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + //} #endregion diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs index b88bc8b1..86519535 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/PressurePipeEdit.aspx.designer.cs @@ -131,51 +131,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnAttach; - /// - /// drpAudit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpAudit; - - /// - /// agree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow agree; - - /// - /// rblIsAgree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rblIsAgree; - - /// - /// options 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow options; - - /// - /// txtidea 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtidea; - /// /// Toolbar1 控件。 /// @@ -203,15 +158,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnSave; - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccident.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccident.aspx index 50c1f667..6142d3bf 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccident.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccident.aspx @@ -61,13 +61,13 @@ - + <%-- - - + --%> + <%----%> protected global::System.Web.UI.WebControls.Label Label2; - /// - /// txtStatus 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label txtStatus; - /// /// lbtnFileUrl 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx index c90a35b8..2f58725e 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx @@ -63,7 +63,7 @@ - + <%-- @@ -87,7 +87,7 @@ - + --%> @@ -103,8 +103,8 @@ - - + <%-- + --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.cs index 697382a8..e717cb29 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.cs @@ -38,10 +38,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive BLL.UnitWorkService.InitUnitWorkDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, false); BLL.UnitService.InitUnitDownList(this.drpUnit, this.CurrUser.LoginProjectId, true); LoadAuditSelect(); - this.agree.Hidden = true; - this.options.Hidden = true; + //this.agree.Hidden = true; + //this.options.Hidden = true; this.btnSave.Hidden = true; - this.btnSubmit.Hidden = true; + //this.btnSubmit.Hidden = true; this.QualityAccidentId = Request.Params["QualityAccidentId"]; Model.Comprehensive_QualityAccident pressurePipe = BLL.QualityAccidentService.GetQualityAccidentById(this.QualityAccidentId); @@ -66,7 +66,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { //重新编制 编制人 可以 显示 提交 保存按钮 if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && pressurePipe.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; }//审核状态 审核人 可以显示 提交 保存按钮 else if (currApprove.ApproveType == BLL.Const.Comprehensive_Audit && currApprove.ApproveMan == CurrUser.UserId) @@ -74,9 +74,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive //审核状态不可编辑 Readonly(); - this.agree.Hidden = false; - this.options.Hidden = false; - this.btnSubmit.Hidden = false; + //this.agree.Hidden = false; + //this.options.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } }//没有当前审核人,已完成状态 或者 待提交状态 @@ -84,7 +84,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { if (pressurePipe.Status == BLL.Const.Comprehensive_Compile && pressurePipe.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } } @@ -94,7 +94,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { this.txtTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); this.btnSave.Hidden = false; - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; } } } @@ -112,7 +112,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.txtTime.Readonly = true; this.drpUnit.Readonly = true; this.drpUnitWorkId.Readonly = true; - this.drpAudit.Readonly = true; + //this.drpAudit.Readonly = true; //this.btnAttach.Enabled = false; } @@ -132,10 +132,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId where p.RoleId.Contains(Const.ZBCNEngineer) select new { UserId = x.UserId, UserName = x.UserName }; - drpAudit.DataValueField = "UserId"; - drpAudit.DataTextField = "UserName"; - this.drpAudit.DataSource = userList.ToList(); - this.drpAudit.DataBind(); + //drpAudit.DataValueField = "UserId"; + //drpAudit.DataTextField = "UserName"; + //this.drpAudit.DataSource = userList.ToList(); + //this.drpAudit.DataBind(); } #endregion @@ -151,10 +151,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive { Model.Comprehensive_QualityAccident pressurePipe = new Model.Comprehensive_QualityAccident(); pressurePipe.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - pressurePipe.AuditMan = drpAudit.SelectedValue; - } //审核人 + //if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + //{ + // pressurePipe.AuditMan = drpAudit.SelectedValue; + //} //审核人 if (!string.IsNullOrEmpty(this.txtTime.Text)) { pressurePipe.Time = Convert.ToDateTime(this.txtTime.Text); @@ -230,185 +230,185 @@ namespace FineUIPro.Web.CQMS.Comprehensive } - protected void btnSubmit_Click(object sender, EventArgs e) - { - if (drpUnit.SelectedValue != BLL.Const._Null) - { - Model.Comprehensive_QualityAccident pressurePipe = new Model.Comprehensive_QualityAccident(); - pressurePipe.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - pressurePipe.AuditMan = drpAudit.SelectedValue; - } //审核人 - if (!string.IsNullOrEmpty(this.txtTime.Text)) - { - pressurePipe.Time = Convert.ToDateTime(this.txtTime.Text); - } - else - { - pressurePipe.Time = DateTime.Now; - } - pressurePipe.Place = this.txtPlace.Text; - pressurePipe.DirectEconomicLoss = this.txtDirectEconomicLoss.Text; - pressurePipe.RemedialMeasures = this.txtRemedialMeasures.Text; - pressurePipe.ResponsibilityDetermination = this.txtResponsibilityDetermination.Text; - pressurePipe.CorrectiveActions = this.txtCorrectiveActions.Text; - pressurePipe.UnitId = this.drpUnit.SelectedValue; - string ids = string.Empty; - var lists = this.drpUnitWorkId.SelectedValueArray; - foreach (var item in lists) - { - ids += item + ","; - } - if (!string.IsNullOrEmpty(ids)) - { - ids = ids.Substring(0, ids.LastIndexOf(",")); - } - pressurePipe.UnitWorkId = ids; - if (string.IsNullOrEmpty(this.QualityAccidentId)) - { - if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) - { - pressurePipe.QualityAccidentId = this.hdAttachUrl.Text; - } - else - { - pressurePipe.QualityAccidentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_QualityAccident)); - this.hdAttachUrl.Text = pressurePipe.QualityAccidentId; - } - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.QualityAccidentId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - pressurePipe.CompileMan = this.CurrUser.UserId; - pressurePipe.CompileDate = DateTime.Now; - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - BLL.QualityAccidentService.AddQualityAccident(pressurePipe); - } - else - { - pressurePipe.QualityAccidentId = this.QualityAccidentId; - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.QualityAccidentId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - // BLL.QualityAccidentService.UpdateQualityAccident(pressurePipe); + //protected void btnSubmit_Click(object sender, EventArgs e) + //{ + // if (drpUnit.SelectedValue != BLL.Const._Null) + // { + // Model.Comprehensive_QualityAccident pressurePipe = new Model.Comprehensive_QualityAccident(); + // pressurePipe.ProjectId = this.CurrUser.LoginProjectId; + // if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + // { + // pressurePipe.AuditMan = drpAudit.SelectedValue; + // } //审核人 + // if (!string.IsNullOrEmpty(this.txtTime.Text)) + // { + // pressurePipe.Time = Convert.ToDateTime(this.txtTime.Text); + // } + // else + // { + // pressurePipe.Time = DateTime.Now; + // } + // pressurePipe.Place = this.txtPlace.Text; + // pressurePipe.DirectEconomicLoss = this.txtDirectEconomicLoss.Text; + // pressurePipe.RemedialMeasures = this.txtRemedialMeasures.Text; + // pressurePipe.ResponsibilityDetermination = this.txtResponsibilityDetermination.Text; + // pressurePipe.CorrectiveActions = this.txtCorrectiveActions.Text; + // pressurePipe.UnitId = this.drpUnit.SelectedValue; + // string ids = string.Empty; + // var lists = this.drpUnitWorkId.SelectedValueArray; + // foreach (var item in lists) + // { + // ids += item + ","; + // } + // if (!string.IsNullOrEmpty(ids)) + // { + // ids = ids.Substring(0, ids.LastIndexOf(",")); + // } + // pressurePipe.UnitWorkId = ids; + // if (string.IsNullOrEmpty(this.QualityAccidentId)) + // { + // if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) + // { + // pressurePipe.QualityAccidentId = this.hdAttachUrl.Text; + // } + // else + // { + // pressurePipe.QualityAccidentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_QualityAccident)); + // this.hdAttachUrl.Text = pressurePipe.QualityAccidentId; + // } + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == pressurePipe.QualityAccidentId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // pressurePipe.CompileMan = this.CurrUser.UserId; + // pressurePipe.CompileDate = DateTime.Now; + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // BLL.QualityAccidentService.AddQualityAccident(pressurePipe); + // } + // else + // { + // pressurePipe.QualityAccidentId = this.QualityAccidentId; + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.QualityAccidentId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // // BLL.QualityAccidentService.UpdateQualityAccident(pressurePipe); - var oldQualityAccident = Funs.DB.Comprehensive_QualityAccident.Where(u => u.QualityAccidentId == this.QualityAccidentId).FirstOrDefault(); - if (oldQualityAccident == null) //数据库没有记录 直接点提交 当前状态为 审核状态 - { - pressurePipe.CompileMan = this.CurrUser.UserId; - pressurePipe.CompileDate = DateTime.Now; - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - BLL.QualityAccidentService.AddQualityAccident(pressurePipe); - } - else - { - pressurePipe.CompileMan = oldQualityAccident.CompileMan; - pressurePipe.CompileDate = oldQualityAccident.CompileDate; - if (oldQualityAccident.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 - { - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - } - else if (oldQualityAccident.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 - { - pressurePipe.Status = BLL.Const.Comprehensive_Audit; - } - else //审核状态 提交 变 完成 或者 重新编制 - { - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) - { - pressurePipe.Status = BLL.Const.Comprehensive_Complete; - } - else - { - pressurePipe.Status = BLL.Const.Comprehensive_ReCompile; - } - } + // var oldQualityAccident = Funs.DB.Comprehensive_QualityAccident.Where(u => u.QualityAccidentId == this.QualityAccidentId).FirstOrDefault(); + // if (oldQualityAccident == null) //数据库没有记录 直接点提交 当前状态为 审核状态 + // { + // pressurePipe.CompileMan = this.CurrUser.UserId; + // pressurePipe.CompileDate = DateTime.Now; + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // BLL.QualityAccidentService.AddQualityAccident(pressurePipe); + // } + // else + // { + // pressurePipe.CompileMan = oldQualityAccident.CompileMan; + // pressurePipe.CompileDate = oldQualityAccident.CompileDate; + // if (oldQualityAccident.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 + // { + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // } + // else if (oldQualityAccident.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 + // { + // pressurePipe.Status = BLL.Const.Comprehensive_Audit; + // } + // else //审核状态 提交 变 完成 或者 重新编制 + // { + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) + // { + // pressurePipe.Status = BLL.Const.Comprehensive_Complete; + // } + // else + // { + // pressurePipe.Status = BLL.Const.Comprehensive_ReCompile; + // } + // } - BLL.QualityAccidentService.UpdateQualityAccident(pressurePipe); + // BLL.QualityAccidentService.UpdateQualityAccident(pressurePipe); - } + // } - } - #region 审核记录 + // } + // #region 审核记录 - var currApprove = QualityAccidentApproveService.GetCurrentApprove(pressurePipe.QualityAccidentId); - if (currApprove == null) //为获取到为 当前编制状态 直接提交 - { - var approve = new Model.Comprehensive_QualityAccidentApprove(); - approve.QualityAccidentId = pressurePipe.QualityAccidentId; - approve.ApproveMan = this.CurrUser.UserId; - approve.ApproveType = Const.Comprehensive_Compile; - approve.ApproveDate = DateTime.Now; - QualityAccidentApproveService.EditApprove(approve); //新增编制记录 + // var currApprove = QualityAccidentApproveService.GetCurrentApprove(pressurePipe.QualityAccidentId); + // if (currApprove == null) //为获取到为 当前编制状态 直接提交 + // { + // var approve = new Model.Comprehensive_QualityAccidentApprove(); + // approve.QualityAccidentId = pressurePipe.QualityAccidentId; + // approve.ApproveMan = this.CurrUser.UserId; + // approve.ApproveType = Const.Comprehensive_Compile; + // approve.ApproveDate = DateTime.Now; + // QualityAccidentApproveService.EditApprove(approve); //新增编制记录 - Model.Comprehensive_QualityAccidentApprove newApprove = new Model.Comprehensive_QualityAccidentApprove(); - newApprove.QualityAccidentId = pressurePipe.QualityAccidentId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - QualityAccidentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // Model.Comprehensive_QualityAccidentApprove newApprove = new Model.Comprehensive_QualityAccidentApprove(); + // newApprove.QualityAccidentId = pressurePipe.QualityAccidentId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // QualityAccidentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else if (currApprove.ApproveMan == CurrUser.UserId) - { - if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) - { - currApprove.ApproveDate = DateTime.Now; - //currApprove.IsAgree = true; - QualityAccidentApproveService.EditApprove(currApprove); //新增专业工程师审核记录 - Model.Comprehensive_QualityAccidentApprove newApprove = new Model.Comprehensive_QualityAccidentApprove(); - newApprove.QualityAccidentId = pressurePipe.QualityAccidentId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - QualityAccidentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else - { - currApprove.ApproveDate = DateTime.Now; //更新审核时间 - currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - currApprove.ApproveIdea = this.txtidea.Text; - QualityAccidentApproveService.EditApprove(currApprove); + // } + // else if (currApprove.ApproveMan == CurrUser.UserId) + // { + // if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) + // { + // currApprove.ApproveDate = DateTime.Now; + // //currApprove.IsAgree = true; + // QualityAccidentApproveService.EditApprove(currApprove); //新增专业工程师审核记录 + // Model.Comprehensive_QualityAccidentApprove newApprove = new Model.Comprehensive_QualityAccidentApprove(); + // newApprove.QualityAccidentId = pressurePipe.QualityAccidentId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // QualityAccidentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // } + // else + // { + // currApprove.ApproveDate = DateTime.Now; //更新审核时间 + // currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); + // currApprove.ApproveIdea = this.txtidea.Text; + // QualityAccidentApproveService.EditApprove(currApprove); - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 - { - Model.Comprehensive_QualityAccidentApprove reApprove = new Model.Comprehensive_QualityAccidentApprove(); - reApprove.QualityAccidentId = currApprove.QualityAccidentId; - reApprove.ApproveDate = DateTime.Now.AddSeconds(10); - reApprove.ApproveMan = CurrUser.UserId; - reApprove.ApproveType = Const.Comprehensive_Complete; - reApprove.ApproveIdea = txtidea.Text; - QualityAccidentApproveService.EditApprove(reApprove); - } - else - { - Model.Comprehensive_QualityAccidentApprove reApprove = new Model.Comprehensive_QualityAccidentApprove(); - reApprove.QualityAccidentId = currApprove.QualityAccidentId; - reApprove.ApproveMan = pressurePipe.CompileMan; - reApprove.ApproveType = Const.Comprehensive_ReCompile; - QualityAccidentApproveService.EditApprove(reApprove); - } - } - } + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 + // { + // Model.Comprehensive_QualityAccidentApprove reApprove = new Model.Comprehensive_QualityAccidentApprove(); + // reApprove.QualityAccidentId = currApprove.QualityAccidentId; + // reApprove.ApproveDate = DateTime.Now.AddSeconds(10); + // reApprove.ApproveMan = CurrUser.UserId; + // reApprove.ApproveType = Const.Comprehensive_Complete; + // reApprove.ApproveIdea = txtidea.Text; + // QualityAccidentApproveService.EditApprove(reApprove); + // } + // else + // { + // Model.Comprehensive_QualityAccidentApprove reApprove = new Model.Comprehensive_QualityAccidentApprove(); + // reApprove.QualityAccidentId = currApprove.QualityAccidentId; + // reApprove.ApproveMan = pressurePipe.CompileMan; + // reApprove.ApproveType = Const.Comprehensive_ReCompile; + // QualityAccidentApproveService.EditApprove(reApprove); + // } + // } + // } - #endregion + // #endregion - ShowNotify("保存成功!", MessageBoxIcon.Success); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } - else - { - Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning); - } - } + // ShowNotify("保存成功!", MessageBoxIcon.Success); + // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + // } + // else + // { + // Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning); + // } + //} #endregion diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.designer.cs index ff9a189a..cd1696ec 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/QualityAccidentEdit.aspx.designer.cs @@ -140,51 +140,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnAttach; - /// - /// drpAudit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpAudit; - - /// - /// agree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow agree; - - /// - /// rblIsAgree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rblIsAgree; - - /// - /// options 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow options; - - /// - /// txtidea 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtidea; - /// /// Toolbar1 控件。 /// @@ -221,15 +176,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnSave; - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx index c067a6d0..3e429a78 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipment.aspx @@ -60,13 +60,13 @@ - + <%-- - - + --%> + <%----%> protected global::System.Web.UI.WebControls.Label lblPageIndex; - /// - /// txtStatus 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.Label txtStatus; - /// /// lbtnFileUrl 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx index 683ffd57..154dfd46 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx @@ -47,7 +47,7 @@ - + <%-- @@ -71,7 +71,7 @@ - + --%> @@ -82,8 +82,8 @@ - - + <%-- + --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs index 0ce2b789..fcb66590 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.cs @@ -40,11 +40,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive BLL.SpecialEquipmentService.InitSpecialEquipmentDropDownList(this.drpEquipmentId, true, true); LoadAuditSelect(); - this.agree.Hidden = true; - this.options.Hidden = true; + //this.agree.Hidden = true; + //this.options.Hidden = true; this.btnSave.Hidden = true; - this.btnSubmit.Hidden = true; + //this.btnSubmit.Hidden = true; Model.Comprehensive_SpecialEquipment specialEquipment = BLL.SpecialEquipmentServices.GetEquipmentById(this.SpecialEquipmentId); if (specialEquipment != null) { @@ -69,7 +69,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { //重新编制 编制人 可以 显示 提交 保存按钮 if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile && specialEquipment.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; }//审核状态 审核人 可以显示 提交 保存按钮 else if (currApprove.ApproveType == BLL.Const.Comprehensive_Audit && currApprove.ApproveMan == CurrUser.UserId) @@ -77,9 +77,9 @@ namespace FineUIPro.Web.CQMS.Comprehensive //审核状态不可编辑 Readonly(); - this.agree.Hidden = false; - this.options.Hidden = false; - this.btnSubmit.Hidden = false; + //this.agree.Hidden = false; + //this.options.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } }//没有当前审核人,已完成状态 或者 待提交状态 @@ -87,7 +87,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive { if (specialEquipment.Status == BLL.Const.Comprehensive_Compile && specialEquipment.CompileMan == CurrUser.UserId) { - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; this.btnSave.Hidden = false; } } @@ -97,7 +97,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive else { this.btnSave.Hidden = false; - this.btnSubmit.Hidden = false; + //this.btnSubmit.Hidden = false; } } @@ -117,7 +117,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive this.drpEquipmentId.Readonly = true; this.drpUnit.Readonly = true; - this.drpAudit.Readonly = true; + //this.drpAudit.Readonly = true; // this.btnAttach.Enabled = false; @@ -130,19 +130,19 @@ namespace FineUIPro.Web.CQMS.Comprehensive public void LoadAuditSelect() { - var db = Funs.DB; - var userList = from x in db.Sys_User - join y in db.Project_ProjectUnit - on x.UnitId equals y.UnitId - join p in db.Project_ProjectUser - on x.UserId equals p.UserId - where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId - where p.RoleId.Contains(Const.ZBCNEngineer) - select new { UserId = x.UserId, UserName = x.UserName }; - drpAudit.DataValueField = "UserId"; - drpAudit.DataTextField = "UserName"; - this.drpAudit.DataSource = userList.ToList(); - this.drpAudit.DataBind(); + //var db = Funs.DB; + //var userList = from x in db.Sys_User + // join y in db.Project_ProjectUnit + // on x.UnitId equals y.UnitId + // join p in db.Project_ProjectUser + // on x.UserId equals p.UserId + // where y.UnitId == Const.UnitId_CD && p.ProjectId == CurrUser.LoginProjectId && y.ProjectId == CurrUser.LoginProjectId + // where p.RoleId.Contains(Const.ZBCNEngineer) + // select new { UserId = x.UserId, UserName = x.UserName }; + //drpAudit.DataValueField = "UserId"; + //drpAudit.DataTextField = "UserName"; + //this.drpAudit.DataSource = userList.ToList(); + //this.drpAudit.DataBind(); } #endregion @@ -162,10 +162,10 @@ namespace FineUIPro.Web.CQMS.Comprehensive } Model.Comprehensive_SpecialEquipment specialEquipment = new Model.Comprehensive_SpecialEquipment(); specialEquipment.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - specialEquipment.AuditMan = drpAudit.SelectedValue; - } //审核人 + //if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + //{ + // specialEquipment.AuditMan = drpAudit.SelectedValue; + //} //审核人 if (!string.IsNullOrEmpty(this.txtSunNumber.Text)) { specialEquipment.SunNumber = Convert.ToInt32(this.txtSunNumber.Text); @@ -234,180 +234,180 @@ namespace FineUIPro.Web.CQMS.Comprehensive } - protected void btnSubmit_Click(object sender, EventArgs e) - { - if (drpUnit.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning); - return; - } - Model.Comprehensive_SpecialEquipment specialEquipment = new Model.Comprehensive_SpecialEquipment(); - specialEquipment.ProjectId = this.CurrUser.LoginProjectId; - if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) - { - specialEquipment.AuditMan = drpAudit.SelectedValue; - } //审核人 - if (!string.IsNullOrEmpty(this.txtSunNumber.Text)) - { - specialEquipment.SunNumber = Convert.ToInt32(this.txtSunNumber.Text); - } - if (this.drpUnit.SelectedValue != BLL.Const._Null) - { - specialEquipment.UnitId = this.drpUnit.SelectedValue; - } - if (this.drpEquipmentId.SelectedValue != BLL.Const._Null) - { - specialEquipment.EquipmentId = this.drpEquipmentId.SelectedValue; - } - if (!string.IsNullOrEmpty(this.txtSubmitDataNumber.Text)) - { - specialEquipment.SubmitDataNumber = Convert.ToInt32(this.txtSubmitDataNumber.Text); - } - if (!string.IsNullOrEmpty(this.txtMonitoringReportNumber.Text)) - { - specialEquipment.MonitoringReportNumber = Convert.ToInt32(this.txtMonitoringReportNumber.Text); - } - if (!string.IsNullOrEmpty(this.txtInformNumber.Text)) - { - specialEquipment.InformNumber = Convert.ToInt32(this.txtInformNumber.Text); - } - if (string.IsNullOrEmpty(this.SpecialEquipmentId)) - { - if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) - { - specialEquipment.SpecialEquipmentId = this.hdAttachUrl.Text; - } - else - { - specialEquipment.SpecialEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_SpecialEquipment)); - this.hdAttachUrl.Text = specialEquipment.SpecialEquipmentId; - } - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == specialEquipment.SpecialEquipmentId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - specialEquipment.CompileMan = this.CurrUser.UserId; - specialEquipment.Status = BLL.Const.Comprehensive_Audit; - BLL.SpecialEquipmentServices.AddEquipment(specialEquipment); - } - else - { - specialEquipment.SpecialEquipmentId = this.SpecialEquipmentId; - var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.SpecialEquipmentId); - if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) - { - Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); - return; - } - // BLL.SpecialEquipmentServices.UpdateEquipment(specialEquipment); - var oldSpecialEquipment = Funs.DB.Comprehensive_SpecialEquipment.Where(u => u.SpecialEquipmentId == this.SpecialEquipmentId).FirstOrDefault(); - if (oldSpecialEquipment == null) //数据库没有记录 直接点提交 当前状态为 审核状态 - { - specialEquipment.CompileMan = this.CurrUser.UserId; - //specialEquipment.CompileDate = DateTime.Now; - specialEquipment.Status = BLL.Const.Comprehensive_Audit; - BLL.SpecialEquipmentServices.AddEquipment(specialEquipment); - } - else - { - specialEquipment.CompileMan = oldSpecialEquipment.CompileMan; - //specialEquipment.CompileDate = oldSpecialEquipment.CompileDate; - if (oldSpecialEquipment.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 - { - specialEquipment.Status = BLL.Const.Comprehensive_Audit; - } - else if (oldSpecialEquipment.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 - { - specialEquipment.Status = BLL.Const.Comprehensive_Audit; - } - else //审核状态 提交 变 完成 或者 重新编制 - { - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) - { - specialEquipment.Status = BLL.Const.Comprehensive_Complete; - } - else - { - specialEquipment.Status = BLL.Const.Comprehensive_ReCompile; - } - } + //protected void btnSubmit_Click(object sender, EventArgs e) + //{ + // if (drpUnit.SelectedValue == BLL.Const._Null) + // { + // Alert.ShowInTop("请选择所属单位!", MessageBoxIcon.Warning); + // return; + // } + // Model.Comprehensive_SpecialEquipment specialEquipment = new Model.Comprehensive_SpecialEquipment(); + // specialEquipment.ProjectId = this.CurrUser.LoginProjectId; + // if (!string.IsNullOrEmpty(this.drpAudit.SelectedValue)) + // { + // specialEquipment.AuditMan = drpAudit.SelectedValue; + // } //审核人 + // if (!string.IsNullOrEmpty(this.txtSunNumber.Text)) + // { + // specialEquipment.SunNumber = Convert.ToInt32(this.txtSunNumber.Text); + // } + // if (this.drpUnit.SelectedValue != BLL.Const._Null) + // { + // specialEquipment.UnitId = this.drpUnit.SelectedValue; + // } + // if (this.drpEquipmentId.SelectedValue != BLL.Const._Null) + // { + // specialEquipment.EquipmentId = this.drpEquipmentId.SelectedValue; + // } + // if (!string.IsNullOrEmpty(this.txtSubmitDataNumber.Text)) + // { + // specialEquipment.SubmitDataNumber = Convert.ToInt32(this.txtSubmitDataNumber.Text); + // } + // if (!string.IsNullOrEmpty(this.txtMonitoringReportNumber.Text)) + // { + // specialEquipment.MonitoringReportNumber = Convert.ToInt32(this.txtMonitoringReportNumber.Text); + // } + // if (!string.IsNullOrEmpty(this.txtInformNumber.Text)) + // { + // specialEquipment.InformNumber = Convert.ToInt32(this.txtInformNumber.Text); + // } + // if (string.IsNullOrEmpty(this.SpecialEquipmentId)) + // { + // if (!string.IsNullOrEmpty(this.hdAttachUrl.Text)) + // { + // specialEquipment.SpecialEquipmentId = this.hdAttachUrl.Text; + // } + // else + // { + // specialEquipment.SpecialEquipmentId = SQLHelper.GetNewID(typeof(Model.Comprehensive_SpecialEquipment)); + // this.hdAttachUrl.Text = specialEquipment.SpecialEquipmentId; + // } + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == specialEquipment.SpecialEquipmentId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // specialEquipment.CompileMan = this.CurrUser.UserId; + // specialEquipment.Status = BLL.Const.Comprehensive_Audit; + // BLL.SpecialEquipmentServices.AddEquipment(specialEquipment); + // } + // else + // { + // specialEquipment.SpecialEquipmentId = this.SpecialEquipmentId; + // var sour = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == this.SpecialEquipmentId); + // if (sour == null || string.IsNullOrEmpty(sour.AttachUrl)) + // { + // Alert.ShowInTop("请上传附件!", MessageBoxIcon.Warning); + // return; + // } + // // BLL.SpecialEquipmentServices.UpdateEquipment(specialEquipment); + // var oldSpecialEquipment = Funs.DB.Comprehensive_SpecialEquipment.Where(u => u.SpecialEquipmentId == this.SpecialEquipmentId).FirstOrDefault(); + // if (oldSpecialEquipment == null) //数据库没有记录 直接点提交 当前状态为 审核状态 + // { + // specialEquipment.CompileMan = this.CurrUser.UserId; + // //specialEquipment.CompileDate = DateTime.Now; + // specialEquipment.Status = BLL.Const.Comprehensive_Audit; + // BLL.SpecialEquipmentServices.AddEquipment(specialEquipment); + // } + // else + // { + // specialEquipment.CompileMan = oldSpecialEquipment.CompileMan; + // //specialEquipment.CompileDate = oldSpecialEquipment.CompileDate; + // if (oldSpecialEquipment.Status == BLL.Const.Comprehensive_Compile)//编制状态提交变审核 + // { + // specialEquipment.Status = BLL.Const.Comprehensive_Audit; + // } + // else if (oldSpecialEquipment.Status == BLL.Const.Comprehensive_ReCompile)//重新编制状态提交变审核 + // { + // specialEquipment.Status = BLL.Const.Comprehensive_Audit; + // } + // else //审核状态 提交 变 完成 或者 重新编制 + // { + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) + // { + // specialEquipment.Status = BLL.Const.Comprehensive_Complete; + // } + // else + // { + // specialEquipment.Status = BLL.Const.Comprehensive_ReCompile; + // } + // } - BLL.SpecialEquipmentServices.UpdateEquipment(specialEquipment); + // BLL.SpecialEquipmentServices.UpdateEquipment(specialEquipment); - } + // } - } - #region 审核记录 + // } + // #region 审核记录 - var currApprove = SpecialEquipmentApproveService.GetCurrentApprove(specialEquipment.SpecialEquipmentId); - if (currApprove == null) //为获取到为 当前编制状态 直接提交 - { - var approve = new Model.Comprehensive_SpecialEquipmentApprove(); - approve.SpecialEquipmentId = specialEquipment.SpecialEquipmentId; - approve.ApproveMan = this.CurrUser.UserId; - approve.ApproveType = Const.Comprehensive_Compile; - approve.ApproveDate = DateTime.Now; - SpecialEquipmentApproveService.EditApprove(approve); //新增编制记录 + // var currApprove = SpecialEquipmentApproveService.GetCurrentApprove(specialEquipment.SpecialEquipmentId); + // if (currApprove == null) //为获取到为 当前编制状态 直接提交 + // { + // var approve = new Model.Comprehensive_SpecialEquipmentApprove(); + // approve.SpecialEquipmentId = specialEquipment.SpecialEquipmentId; + // approve.ApproveMan = this.CurrUser.UserId; + // approve.ApproveType = Const.Comprehensive_Compile; + // approve.ApproveDate = DateTime.Now; + // SpecialEquipmentApproveService.EditApprove(approve); //新增编制记录 - Model.Comprehensive_SpecialEquipmentApprove newApprove = new Model.Comprehensive_SpecialEquipmentApprove(); - newApprove.SpecialEquipmentId = specialEquipment.SpecialEquipmentId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - SpecialEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // Model.Comprehensive_SpecialEquipmentApprove newApprove = new Model.Comprehensive_SpecialEquipmentApprove(); + // newApprove.SpecialEquipmentId = specialEquipment.SpecialEquipmentId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // SpecialEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else if (currApprove.ApproveMan == CurrUser.UserId) - { - if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) - { - currApprove.ApproveDate = DateTime.Now; - //currApprove.IsAgree = true; - SpecialEquipmentApproveService.EditApprove(currApprove); //新增专业工程师审核记录 - Model.Comprehensive_SpecialEquipmentApprove newApprove = new Model.Comprehensive_SpecialEquipmentApprove(); - newApprove.SpecialEquipmentId = specialEquipment.SpecialEquipmentId; - newApprove.ApproveMan = this.drpAudit.SelectedValue; - newApprove.ApproveType = Const.InspectionManagement_Audit; - SpecialEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 - } - else - { - currApprove.ApproveDate = DateTime.Now; //更新审核时间 - currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - currApprove.ApproveIdea = this.txtidea.Text; - SpecialEquipmentApproveService.EditApprove(currApprove); + // } + // else if (currApprove.ApproveMan == CurrUser.UserId) + // { + // if (currApprove.ApproveType == BLL.Const.Comprehensive_ReCompile) + // { + // currApprove.ApproveDate = DateTime.Now; + // //currApprove.IsAgree = true; + // SpecialEquipmentApproveService.EditApprove(currApprove); //新增专业工程师审核记录 + // Model.Comprehensive_SpecialEquipmentApprove newApprove = new Model.Comprehensive_SpecialEquipmentApprove(); + // newApprove.SpecialEquipmentId = specialEquipment.SpecialEquipmentId; + // newApprove.ApproveMan = this.drpAudit.SelectedValue; + // newApprove.ApproveType = Const.InspectionManagement_Audit; + // SpecialEquipmentApproveService.EditApprove(newApprove); //新增专业工程师审核记录 + // } + // else + // { + // currApprove.ApproveDate = DateTime.Now; //更新审核时间 + // currApprove.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); + // currApprove.ApproveIdea = this.txtidea.Text; + // SpecialEquipmentApproveService.EditApprove(currApprove); - if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 - { - Model.Comprehensive_SpecialEquipmentApprove reApprove = new Model.Comprehensive_SpecialEquipmentApprove(); - reApprove.SpecialEquipmentId = currApprove.SpecialEquipmentId; - reApprove.ApproveDate = DateTime.Now.AddSeconds(10); - reApprove.ApproveMan = CurrUser.UserId; - reApprove.ApproveType = Const.Comprehensive_Complete; - reApprove.ApproveIdea = txtidea.Text; - SpecialEquipmentApproveService.EditApprove(reApprove); - } - else - { - Model.Comprehensive_SpecialEquipmentApprove reApprove = new Model.Comprehensive_SpecialEquipmentApprove(); - reApprove.SpecialEquipmentId = currApprove.SpecialEquipmentId; - reApprove.ApproveMan = specialEquipment.CompileMan; - reApprove.ApproveType = Const.Comprehensive_ReCompile; - SpecialEquipmentApproveService.EditApprove(reApprove); - } - } - } + // if (Convert.ToBoolean(rblIsAgree.SelectedValue)) //同意时 审批完成 + // { + // Model.Comprehensive_SpecialEquipmentApprove reApprove = new Model.Comprehensive_SpecialEquipmentApprove(); + // reApprove.SpecialEquipmentId = currApprove.SpecialEquipmentId; + // reApprove.ApproveDate = DateTime.Now.AddSeconds(10); + // reApprove.ApproveMan = CurrUser.UserId; + // reApprove.ApproveType = Const.Comprehensive_Complete; + // reApprove.ApproveIdea = txtidea.Text; + // SpecialEquipmentApproveService.EditApprove(reApprove); + // } + // else + // { + // Model.Comprehensive_SpecialEquipmentApprove reApprove = new Model.Comprehensive_SpecialEquipmentApprove(); + // reApprove.SpecialEquipmentId = currApprove.SpecialEquipmentId; + // reApprove.ApproveMan = specialEquipment.CompileMan; + // reApprove.ApproveType = Const.Comprehensive_ReCompile; + // SpecialEquipmentApproveService.EditApprove(reApprove); + // } + // } + // } - #endregion + // #endregion - ShowNotify("保存成功!", MessageBoxIcon.Success); - PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); - } - #endregion + // ShowNotify("保存成功!", MessageBoxIcon.Success); + // PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + //} + #endregion #region 附件上传 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs index 5ad26ed9..72eab6fe 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/SpecialEquipmentEdit.aspx.designer.cs @@ -122,51 +122,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnAttach; - /// - /// drpAudit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpAudit; - - /// - /// agree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow agree; - - /// - /// rblIsAgree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.RadioButtonList rblIsAgree; - - /// - /// options 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.FormRow options; - - /// - /// txtidea 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextArea txtidea; - /// /// Toolbar1 控件。 /// @@ -194,15 +149,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive /// protected global::FineUIPro.Button btnSave; - /// - /// btnSubmit 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSubmit; - /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlglgd.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlglgd.aspx.cs index a5653930..1de9d14d 100644 --- a/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlglgd.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlglgd.aspx.cs @@ -31,7 +31,7 @@ namespace FineUIPro.Web.CQMS.ZLCH U.UserName AS UploadManName FROM dbo.Common_FileManager AS t LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan - WHERE ToMenu='32' "; + WHERE ToMenu='32' and t.projectId='" + CurrUser.LoginProjectId+"' "; List listStr = new List(); if (!string.IsNullOrEmpty(txtFileName.Text)) diff --git a/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlglgdEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlglgdEdit.aspx.cs index 9ff0e702..621d6b35 100644 --- a/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlglgdEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlglgdEdit.aspx.cs @@ -62,6 +62,7 @@ namespace FineUIPro.Web.CQMS.ZLCH { temp.UploadMan = this.drpUploadMan.SelectedValue; } + temp.ProjectId = this.CurrUser.LoginProjectId; temp.UploadDate = Funs.GetNewDateTime(this.txtUploadDate.Text.Trim()); temp.ToMenu = "32"; temp.Remark = this.txtRemark.Text.Trim(); diff --git a/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlgltx.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlgltx.aspx.cs index 57a63fd6..2b5e2bef 100644 --- a/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlgltx.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlgltx.aspx.cs @@ -31,7 +31,7 @@ namespace FineUIPro.Web.CQMS.ZLCH U.UserName AS UploadManName FROM dbo.Common_FileManager AS t LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan - WHERE ToMenu='31' "; + WHERE ToMenu='31' and t.projectId='" + CurrUser.LoginProjectId+"' "; List listStr = new List(); if (!string.IsNullOrEmpty(txtFileName.Text)) diff --git a/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlgltxEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlgltxEdit.aspx.cs index bbf7550f..52bb4154 100644 --- a/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlgltxEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlgltxEdit.aspx.cs @@ -62,6 +62,7 @@ namespace FineUIPro.Web.CQMS.ZLCH { temp.UploadMan = this.drpUploadMan.SelectedValue; } + temp.ProjectId = this.CurrUser.LoginProjectId; temp.UploadDate = Funs.GetNewDateTime(this.txtUploadDate.Text.Trim()); temp.ToMenu = "31"; temp.Remark = this.txtRemark.Text.Trim(); diff --git a/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlssjh.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlssjh.aspx.cs index 238a81ee..b60639d8 100644 --- a/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlssjh.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ZLCH/Zlssjh.aspx.cs @@ -31,7 +31,7 @@ namespace FineUIPro.Web.CQMS.ZLCH U.UserName AS UploadManName FROM dbo.Common_FileManager AS t LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan - WHERE ToMenu='33' "; + WHERE ToMenu='33' and t.projectId='" + CurrUser.LoginProjectId+"' "; List listStr = new List(); if (!string.IsNullOrEmpty(txtFileName.Text)) diff --git a/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlssjhEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlssjhEdit.aspx.cs index 6e3a8980..bccacef2 100644 --- a/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlssjhEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ZLCH/ZlssjhEdit.aspx.cs @@ -49,6 +49,7 @@ namespace FineUIPro.Web.CQMS.ZLCH { string fileId = Request.Params["fileId"]; Model.Common_FileManager temp = new Model.Common_FileManager(); + temp.ProjectId = this.CurrUser.LoginProjectId; if (txtFileName.Text == string.Empty) { ShowNotify("名称不能为空!", MessageBoxIcon.Warning); diff --git a/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx b/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx index 487701ea..2f2362f1 100644 --- a/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx +++ b/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx @@ -60,7 +60,13 @@ - + + + + + + diff --git a/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx.designer.cs b/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx.designer.cs index c9bbb88e..31ef2652 100644 --- a/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/PZHGL/ProjectData/ProjectMap.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.PZHGL.ProjectData { - - - public partial class ProjectMap { - +namespace FineUIPro.Web.PZHGL.ProjectData +{ + + + public partial class ProjectMap + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// drpProject 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownBox drpProject; - + /// /// Grid2 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid2; - + /// /// Toolbar1 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// txtProjectName 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectName; - + /// /// txtProjectCode 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectCode; - + /// /// cbType 控件。 /// @@ -110,7 +112,16 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.RadioButtonList cbType; - + + /// + /// lbtnFileUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl; + /// /// txtTitle 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtTitle; - + /// /// ToolbarFill1 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnNew 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// btnOut 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnOut; - + /// /// lblNumber 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblNumber; - + /// /// lblShortContentDef 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblShortContentDef; - + /// /// ToolbarSeparator1 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// WindowAtt 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window WindowAtt; - + /// /// Menu1 控件。 /// @@ -218,7 +229,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuEdit 控件。 /// @@ -227,7 +238,7 @@ namespace FineUIPro.Web.PZHGL.ProjectData { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + /// /// btnMenuDelete 控件。 /// diff --git a/SGGL/FineUIPro.Web/PZHGL/SGCH/XmsgGlgdEdit.aspx.cs b/SGGL/FineUIPro.Web/PZHGL/SGCH/XmsgGlgdEdit.aspx.cs index 72d635d5..8bebbaa2 100644 --- a/SGGL/FineUIPro.Web/PZHGL/SGCH/XmsgGlgdEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/PZHGL/SGCH/XmsgGlgdEdit.aspx.cs @@ -26,7 +26,6 @@ namespace FineUIPro.Web.PZHGL.SGCH if (t != null) { this.txtFileName.Text = t.FileName; - if (!string.IsNullOrEmpty(t.UploadMan)) { this.drpUploadMan.SelectedValue = t.UploadMan; diff --git a/SGGL/FineUIPro.Web/res/index/css/home.css b/SGGL/FineUIPro.Web/res/index/css/home.css index 50a5c796..7560786e 100644 --- a/SGGL/FineUIPro.Web/res/index/css/home.css +++ b/SGGL/FineUIPro.Web/res/index/css/home.css @@ -1,4 +1,4 @@ -* { +* { box-sizing: border-box; } @@ -40,17 +40,20 @@ body { padding: 15px 15px 20px; box-sizing: border-box; } + .logowrap { position: absolute; left: 0; top: -24px; } -.logowrap .logo{ - height: 35px; - width: 252px; - background: url(../images/logo.png) center center no-repeat; - background-size: 100% 100%; -} + + .logowrap .logo { + height: 35px; + width: 252px; + background: url(../images/logo.png) center center no-repeat; + background-size: 100% 100%; + } + .item-big { display: block !important; font-size: 18px; @@ -207,27 +210,26 @@ body { box-shadow: 0 0 10px rgb(0,162,233); } -.tab-wrap-tit{ - +.tab-wrap-tit { } -.tab-wrap-tit .tab { - font-size: 12px; - display: flex; - display: -webkit-flex; -} + .tab-wrap-tit .tab { + font-size: 12px; + display: flex; + display: -webkit-flex; + } -.tab-wrap-tit .tab .t-item { - cursor: pointer; - width: 48px; - text-align: center; - /*color: #fff;*/ -} + .tab-wrap-tit .tab .t-item { + cursor: pointer; + width: 48px; + text-align: center; + /*color: #fff;*/ + } -.tab-wrap-tit .tab .t-item:first-child { - /*border-top-left-radius: 4px; + .tab-wrap-tit .tab .t-item:first-child { + /*border-top-left-radius: 4px; border-bottom-left-radius: 4px;*/ -} + } .tab-wrap .tab .t-item:last-child { /*border-top-right-radius: 4px; @@ -260,28 +262,28 @@ body { display: -webkit-flex; } - .tab-wrap .tab .t-item { - cursor: pointer; - width: auto; - text-align: center; - color: #fff; - padding: 5px; - } - - .tab-wrap .tab .t-item:first-child { - border-top-left-radius: 4px; - border-bottom-left-radius: 4px; - } - - .tab-wrap .tab .t-item:last-child { - border-top-right-radius: 4px; - border-bottom-right-radius: 4px; + .tab-wrap .tab .t-item { + cursor: pointer; + width: auto; + text-align: center; + color: #fff; + padding: 5px; } - .tab-wrap .tab .spline { - width: 0; - border-left: 1px solid rgba(0,162,233,1); - } + .tab-wrap .tab .t-item:first-child { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; + } + + .tab-wrap .tab .t-item:last-child { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; + } + + .tab-wrap .tab .spline { + width: 0; + border-left: 1px solid rgba(0,162,233,1); + } .tab-wrap .tab .active { /*color: #333;*/ @@ -295,11 +297,11 @@ body { } .content-ul .c-item { - cursor:pointer; + cursor: pointer; display: flex; overflow: hidden; max-width: 100%; - font-size:12px; + font-size: 12px; /* margin-bottom: 8px; */ } @@ -315,8 +317,8 @@ body { white-space: nowrap; text-overflow: ellipsis; word-break: keep-all; - display:flex; - align-items:center; + display: flex; + align-items: center; } .content-ul .c-item .time { @@ -480,14 +482,14 @@ body { .flex { display: -webkit-flex; - /* °汾﷨: Chrome 21+ */ + /* �°汾�﷨: Chrome 21+ */ display: flex; - /* °汾﷨: Opera 12.1, Firefox 22+ */ + /* �°汾�﷨: Opera 12.1, Firefox 22+ */ /*display: -webkit-box; - /* ϰ汾﷨: Safari, iOS, Android browser, older WebKit browsers. */ display: -moz-box; - /* ϰ汾﷨: Firefox (buggy) */ + /* �ϰ汾�﷨: Safari, iOS, Android browser, older WebKit browsers. */ display: -moz-box; + /* �ϰ汾�﷨: Firefox (buggy) */ display: -ms-flexbox; - /* ϰ汾﷨: IE 10 */ + /* ��ϰ汾�﷨: IE 10 */ } .flex1 { @@ -557,29 +559,29 @@ body { .pdlrb { padding: 0 10px 10px !important; } -/* ԲDZ */ +/* Բ�DZ����� */ .bg-item { position: relative; width: 100%; border: 2px solid rgb(0,162,233); margin-bottom: 10px; box-shadow: rgb(0,162,233) 0px 0px 50px inset; - border-radius:10px; + border-radius: 10px; } -.bg-item:last-child { - margin-bottom: 0; -} -/* ɫ */ + .bg-item:last-child { + margin-bottom: 0; + } +/* ����ɫ������ */ .tab-content { color: #fff; margin-top: 10px; - font-size:12px; + font-size: 12px; } -.tab-content .tab-i { - margin-top: 10px; -} + .tab-content .tab-i { + margin-top: 10px; + } .tab-content .txt { width: 90px; @@ -587,9 +589,9 @@ body { font-size: 12px; } -.tab-content .line-wrap { - align-items: center; -} + .tab-content .line-wrap { + align-items: center; + } .tab-content .line-item { flex: 1; @@ -600,21 +602,23 @@ body { height: 20px; } -.tab-content .line-item > div { - border-radius: 10px; - content: ''; - height: 100%; - position: absolute; - left: 0; - top: 0; - z-index: 91; - background-color: #1BCD34; - width: 10%; -} -.tab-content .per { - margin-left: 10px; - width: 40px; -} + .tab-content .line-item > div { + border-radius: 10px; + content: ''; + height: 100%; + position: absolute; + left: 0; + top: 0; + z-index: 91; + background-color: #1BCD34; + width: 10%; + } + + .tab-content .per { + margin-left: 10px; + width: 40px; + } + .line-item .normal { background-color: #1BCD34 !important; } @@ -622,6 +626,7 @@ body { .line-item .warn { background-color: #C71D26 !important; } + .row1 { font-size: 12px; color: #fff; @@ -631,38 +636,42 @@ body { margin-top: 5px; padding: 0 5px; } + .row1 span.num { font-size: 20px; margin-right: 10px; } + .row2 { color: #fff; font-size: 12px; align-items: center; -} - .row2 .txt { - } -.row2 .item-txt-list { - width: 100%; -} + .row2 .txt { + } -.row2 .item-txt-list .txt-tit { - width: 70px; -} + .row2 .item-txt-list { + width: 100%; + } -.row2 .item-txt-list .fixtt { - letter-spacing: 4px; -} + .row2 .item-txt-list .txt-tit { + width: 70px; + } + + .row2 .item-txt-list .fixtt { + letter-spacing: 4px; + } + + .row2 .item-txt-list:last-child { + margin-bottom: 0; + } -.row2 .item-txt-list:last-child { - margin-bottom: 0; -} @font-face { font-family: 'digifacewide'; src: url('font/digifacewide.ttf'); } + .specialNum { font-family: digifacewide; } @@ -673,72 +682,72 @@ body { padding: 10px; } -.content-wrap-1 .item { -} - -.content-wrap-1 .item .tit { - color: #fff; - position: relative; - font-size: 10px; - padding-left: 6px; - margin-bottom: 5px; -} - -.content-wrap-1 .item .tit:before { - content: ''; - position: absolute; - top: 50%; - left: 0; - display: inline-block; - width: 0; - height: 0; - border: 1px solid #fff; -} - -.content-wrap-1 .item .content-1 { - width: 100%; - height: 100%; - margin-bottom: 5px; - align-items: flex-end; - padding-left:10px; -} - -.content-wrap-1 .item .content-1 .cc-num-wrap { - height: 100%; - justify-content: space-around; -} - - .content-wrap-1 .item .content-1 .cc-num-wrap .cc-num { - color: #fdc006; - /*background-color: #4967AD;*/ - font-size: 32px; - padding: 0 2px; - display: flex; - align-items: center; - justify-content: center; + .content-wrap-1 .item { } -.content-wrap-1 .item .content-1 .unit { - font-size: 10px; - color: #fff; -} + .content-wrap-1 .item .tit { + color: #fff; + position: relative; + font-size: 10px; + padding-left: 6px; + margin-bottom: 5px; + } -.content-wrap-1 .item .content { - justify-content: space-between; - padding: 0 10px; - align-items:center; -} + .content-wrap-1 .item .tit:before { + content: ''; + position: absolute; + top: 50%; + left: 0; + display: inline-block; + width: 0; + height: 0; + border: 1px solid #fff; + } -.content-wrap-1 .item .content .t-item { - color: #fff; -} + .content-wrap-1 .item .content-1 { + width: 100%; + height: 100%; + margin-bottom: 5px; + align-items: flex-end; + padding-left: 10px; + } - .content-wrap-1 .item .content .t-item .c-num { - color: #abd373; - font-size: 24px; - } + .content-wrap-1 .item .content-1 .cc-num-wrap { + height: 100%; + justify-content: space-around; + } -.content-wrap-1 .item .content .t-item .c-txt { - color: #fff; - font-size: 10px; -} \ No newline at end of file + .content-wrap-1 .item .content-1 .cc-num-wrap .cc-num { + color: #fdc006; + /*background-color: #4967AD;*/ + font-size: 32px; + padding: 0 2px; + display: flex; + align-items: center; + justify-content: center; + } + + .content-wrap-1 .item .content-1 .unit { + font-size: 10px; + color: #fff; + } + + .content-wrap-1 .item .content { + justify-content: space-between; + padding: 0 10px; + align-items: center; + } + + .content-wrap-1 .item .content .t-item { + color: #fff; + } + + .content-wrap-1 .item .content .t-item .c-num { + color: #abd373; + font-size: 24px; + } + + .content-wrap-1 .item .content .t-item .c-txt { + color: #fff; + font-size: 10px; + } diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 9fd578f9..ecc436ae 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -79636,6 +79636,8 @@ namespace Model private string _Remark; + private string _ProjectId; + private EntityRef _Sys_User; #region 可扩展性方法定义 @@ -79656,6 +79658,8 @@ namespace Model partial void OnToMenuChanged(); partial void OnRemarkChanging(string value); partial void OnRemarkChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); #endregion public Common_FileManager() @@ -79808,6 +79812,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Common_FileManager_Sys_User", Storage="_Sys_User", ThisKey="UploadMan", OtherKey="UserId", IsForeignKey=true)] public Sys_User Sys_User {