修改关键事项

This commit is contained in:
潘鸿锋 2024-12-11 09:52:23 +08:00
parent 8a443d509a
commit 88067caa9c
2 changed files with 37 additions and 8 deletions

View File

@ -19321,7 +19321,7 @@
</FlavorProperties> </FlavorProperties>
</VisualStudio> </VisualStudio>
</ProjectExtensions> </ProjectExtensions>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">

View File

@ -345,6 +345,10 @@ namespace FineUIPro.Web.PZHGL.GJSX
} }
if (state == "0") { if (state == "0") {
Grid2.AllColumns[0].Hidden = true;
Grid2.AllColumns[5].Hidden = true;
Grid2.AllColumns[6].Hidden = false;
Grid2Binging();
Button1.Hidden = true; Button1.Hidden = true;
} }
//rblIsClosed.Visible = false; //rblIsClosed.Visible = false;
@ -792,19 +796,44 @@ namespace FineUIPro.Web.PZHGL.GJSX
string EditType = Request.Params["EditType"]; string EditType = Request.Params["EditType"];
if (EditType == "add") string ID = Request.Params["ID"];
if (string.IsNullOrEmpty(ID))
{ {
save("2"); save("2");
} }
else { else
//责任人的时候保存关键事项 {
var gjsx = BLL.GJSXService.GetGJSXById(txtGJSXID.Text); var model = GJSXService.GetGJSXById(ID);
if (gjsx.User_Acceptance.Contains(this.CurrUser.UserId)) var state = model.State.Trim();
if (state == "1")
{ {
save("3"); save("2");
OperateComplianceObligationsCSort(); }
else {
//责任人的时候保存关键事项
var gjsx = BLL.GJSXService.GetGJSXById(txtGJSXID.Text);
if (gjsx.User_Acceptance.Contains(this.CurrUser.UserId))
{
save("3");
OperateComplianceObligationsCSort();
}
} }
} }
//if (EditType == "add")
//{
// save("2");
//}
//else {
// //责任人的时候保存关键事项
// var gjsx = BLL.GJSXService.GetGJSXById(txtGJSXID.Text);
// if (gjsx.User_Acceptance.Contains(this.CurrUser.UserId))
// {
// save("3");
// OperateComplianceObligationsCSort();
// }
//}
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference()); PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());