修改施工方案和关键事项
This commit is contained in:
@@ -103,18 +103,16 @@
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="150px" ColumnID="User_ReceiveID" DataField="User_ReceiveID" SortField="User_ReceiveID"
|
||||
FieldType="String" HeaderText="接受人" HeaderTextAlign="Center" TextAlign="Left" >
|
||||
FieldType="String" HeaderText="跟踪人" HeaderTextAlign="Center" TextAlign="Left" >
|
||||
</f:RenderField>
|
||||
|
||||
<f:RenderField Width="150px" ColumnID="User_Acceptance" DataField="User_Acceptance"
|
||||
FieldType="String" HeaderText="验收人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
FieldType="String" HeaderText="责任人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="username" DataField="username"
|
||||
FieldType="String" HeaderText="提出人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="AttachUrl" DataField="AttachUrl"
|
||||
FieldType="String" HeaderText="附件" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
|
||||
<%-- <f:TemplateField ColumnID="Certificate" Width="250px" HeaderText="职业资格证书" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# ConvertCertificateName(Eval("UserId")) %>'></asp:Label>
|
||||
|
||||
@@ -221,7 +221,18 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
return;
|
||||
}
|
||||
string Id = Grid1.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("GJSXListEdit.aspx?EditType=Edit&Id={0}", Id, "编辑 - ")));
|
||||
var gjsx = BLL.GJSXService.GetGJSXById(Id);
|
||||
//必须是责任人、提出人、跟踪人才能修改
|
||||
if (gjsx.User_Acceptance.Contains(this.CurrUser.UserId)
|
||||
|| gjsx.UserID.Contains(this.CurrUser.UserId) ||
|
||||
gjsx.User_ReceiveID.Contains(this.CurrUser.UserId))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("GJSXListEdit.aspx?EditType=Edit&Id={0}", Id, "编辑 - ")));
|
||||
}
|
||||
else {
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("GJSXListEdit.aspx?EditType=See&Id={0}", Id),"查看 - "));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#region 判断是否可删除
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
<title>编辑员工</title>
|
||||
<%-- <link href="../../res/css/common.css" rel="stylesheet" type="text/css" />--%>
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
@@ -49,18 +52,52 @@
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="DropUser_Acceptance" runat="server" Label="验收人" MaxLength="50" LabelWidth="110px" EnableCheckBoxSelect="true" EnableMultiSelect="true">
|
||||
<f:DropDownList ID="DropUser_Acceptance" runat="server" Label="责任人" MaxLength="50" LabelWidth="110px"
|
||||
EnableCheckBoxSelect="true" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="Date_CompleteDate" runat="server" Label="要求完成日期"
|
||||
<f:DatePicker ID="Date_CompleteDate" runat="server" Label="要求完成日期" ShowRedStar="true"
|
||||
LabelWidth="110px">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="DropUser_ReceiveID" runat="server" Label="接受人" MaxLength="50" LabelWidth="110px" EnableCheckBoxSelect="true" EnableMultiSelect="true"
|
||||
<f:DropDownList ID="DropUser_ReceiveID" runat="server" Label="跟踪人" MaxLength="50" LabelWidth="110px"
|
||||
EnableCheckBoxSelect="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="DropUser_ReceiveID_TextChanged" AutoPostBack="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownBox runat="server" ID="drpCsUsers" MultiSelectSeparator="," AutoPostBack="true" LabelWidth="120px"
|
||||
Label="抄送人员" EmptyText="请从下拉表格中选择" EnableMultiSelect="true" MatchFieldWidth="false">
|
||||
<PopPanel>
|
||||
<f:Grid ID="Grid4" Width="800px" Height="300px" Hidden="true"
|
||||
DataIDField="UserId" DataTextField="UserName" EnableMultiSelect="true" KeepCurrentSelection="true"
|
||||
PageSize="100" ShowBorder="true" ShowHeader="false"
|
||||
AllowPaging="true" IsDatabasePaging="true" runat="server" EnableCheckBoxSelect="true"
|
||||
DataKeyNames="UserId" OnPageIndexChange="Grid4_PageIndexChange"
|
||||
AllowSorting="true" SortField="UserName" SortDirection="ASC"
|
||||
OnSort="Grid4_Sort">
|
||||
<Columns>
|
||||
<f:RowNumberField />
|
||||
<f:BoundField Width="200px" DataField="UserName" SortField="UserName" DataFormatString="{0}"
|
||||
HeaderText="姓名" />
|
||||
</Columns>
|
||||
<Toolbars>
|
||||
<f:Toolbar runat="server" Position="Top">
|
||||
<Items>
|
||||
<f:TwinTriggerBox Width="300px" runat="server" EmptyText="在姓名中查找" ShowLabel="false" ID="ttbSearch4"
|
||||
ShowTrigger1="false" OnTrigger1Click="ttbSearch_Trigger1Click4" OnTrigger2Click="ttbSearch_Trigger2Click4"
|
||||
Trigger1Icon="Clear" Trigger2Icon="Search">
|
||||
</f:TwinTriggerBox>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Grid>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<%-- <f:FormRow>
|
||||
<Items>
|
||||
|
||||
<f:RadioButtonList ID="rblState" runat="server" Label="状态" LabelWidth="110px" Enabled="false">
|
||||
@@ -68,17 +105,17 @@
|
||||
<f:RadioItem Value="2" Text="正在进行" />
|
||||
<f:RadioItem Value="0" Text="关闭" />
|
||||
</f:RadioButtonList>
|
||||
<%-- <f:DatePicker ID="Date_CloseDate" runat="server" Label="关闭日期"
|
||||
<f:DatePicker ID="Date_CloseDate" runat="server" Label="关闭日期"
|
||||
LabelWidth="110px" >
|
||||
</f:DatePicker> --%>
|
||||
</f:DatePicker>
|
||||
|
||||
<f:RadioButtonList runat="server" ID="lblIsManyPeople" Label="是否需要多人处理"
|
||||
ShowRedStar="true" AutoPostBack="true" Hidden="true" LabelWidth="200px">
|
||||
<f:RadioItem Text="是" Value="1" />
|
||||
<f:RadioItem Text="是" Value="1" Selected="true"/>
|
||||
<f:RadioItem Text="否" Value="2" />
|
||||
</f:RadioButtonList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</f:FormRow>--%>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtDetail" runat="server" Height="100px" Label="事项描述" MaxLength="1000">
|
||||
@@ -92,24 +129,36 @@
|
||||
</f:FormRow>
|
||||
|
||||
|
||||
<f:FormRow ID="Progress_detail">
|
||||
<f:FormRow ID="Progress_detail" Hidden="true">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel2" Title="关键事项进展" ShowBorder="true"
|
||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
runat="server">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar131" Position="Top" runat="server" ToolbarAlign="Right" CssClass="Toolbar2" Hidden="true">
|
||||
<Items>
|
||||
<f:Button ID="btnNewOtherManagement" Text="新增" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNew_Click" >
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
|
||||
<Items>
|
||||
<f:Grid ID="Grid2" ShowBorder="true" ShowHeader="false" Title="关键事项进展" EnableCollapse="false"
|
||||
runat="server" BoxFlex="1" DataKeyNames="cuid" EnableColumnLines="true" IsFluid="true"
|
||||
DataIDField="cuid" SortField="cuid" AllowSorting="true"
|
||||
SortDirection="desc" AllowCellEditing="true" ClicksToEdit="2">
|
||||
runat="server" BoxFlex="1" DataKeyNames="Cuid" EnableColumnLines="true" IsFluid="true"
|
||||
DataIDField="Cuid" SortField="cuid" AllowSorting="true"
|
||||
SortDirection="desc" AllowCellEditing="true" ClicksToEdit="1" OnRowCommand="gvOperateComplianceObligations_RowCommand">
|
||||
|
||||
<Columns>
|
||||
<f:LinkButtonField Width="40px" ConfirmText="删除选中行?" ConfirmTarget="Parent" CommandName="Delete"
|
||||
ToolTip="删除" Icon="Delete" TextAlign="Center" />
|
||||
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
|
||||
TextAlign="Center" />
|
||||
<f:RenderField Width="120px" ColumnID="Progress_user" DataField="Progress_user" SortField="Progress_user"
|
||||
<f:RenderField Width="140px" ColumnID="Progress_user" DataField="Progress_user" SortField="Progress_user"
|
||||
FieldType="String" HeaderText="事项进展负责人" HeaderTextAlign="Center" TextAlign="Left" RendererFunction="renderProgress_user" >
|
||||
<Editor>
|
||||
<f:DropDownList ID="DropProgress_user" Required="true" runat="server">
|
||||
@@ -131,13 +180,11 @@
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="FilePath" DataField="FilePath" SortField="FilePath"
|
||||
FieldType="String" HeaderText="上传附件" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<Editor>
|
||||
<f:TextBox ID="TextBox1" Required="true" runat="server">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl" ColumnID="AttachUrl"
|
||||
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
|
||||
|
||||
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl1" ColumnID="AttachUrl1" Hidden="true"
|
||||
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
|
||||
|
||||
</Columns>
|
||||
|
||||
@@ -148,7 +195,7 @@
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow ID="nextProgress">
|
||||
<%-- <f:FormRow ID="nextProgress">
|
||||
<Items>
|
||||
<f:ContentPanel ID="ContentPanel3" Title="下一步流程" ShowBorder="true"
|
||||
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
|
||||
@@ -175,13 +222,21 @@
|
||||
</f:Form>
|
||||
</f:ContentPanel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</f:FormRow>--%>
|
||||
|
||||
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
|
||||
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1" MarginLeft="5px">
|
||||
</f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="Button1" ToolTip="关闭" Icon="SystemSaveNew" runat="server" OnClick="btnsubmit_Close" Hidden="true" >
|
||||
</f:Button>
|
||||
|
||||
<f:Button ID="btnsubmit" ToolTip="提交" Icon="SystemSaveNew" runat="server" OnClick="btnsubmit_Click" >
|
||||
</f:Button>
|
||||
<f:Button ID="btnSave" ToolTip="保存" Icon="SystemSave" runat="server"
|
||||
@@ -193,6 +248,11 @@
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
|
||||
<f:Window ID="Window1" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="880px"
|
||||
Height="500px">
|
||||
|
||||
@@ -62,6 +62,66 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
private static List<Model.GJSX_detail> GJSX_detail = new List<Model.GJSX_detail>();
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.DropUnitId.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropCNProfessional_ID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropQuestionTypeID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("问题类别!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_Acceptance.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择责任人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_ReceiveID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择跟踪人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.Date_CompleteDate.Text == "")
|
||||
{
|
||||
Alert.ShowInParent("请选择要求完成日期!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
string EditType = Request.Params["EditType"];
|
||||
if (EditType == "add")
|
||||
{
|
||||
save("1");
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Gjsx&menuId={1}",
|
||||
txtGJSXID.Text, BLL.Const.GJSXMenuId)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
private string[] GetUserNames(string Ids)
|
||||
{
|
||||
string[] arr = Ids.Split(',');
|
||||
var data = Funs.DB.Sys_User.Where(t => arr.Contains(t.UserId)).Select(t => t.UserName).ToList();
|
||||
if (data.Count > 0)
|
||||
return data.ToArray();
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 员工编辑页面
|
||||
/// </summary>
|
||||
@@ -71,6 +131,8 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
GetCheckManBindGrid4();
|
||||
GJSX_detail.Clear();
|
||||
string EditType = Request.Params["EditType"];
|
||||
string ID = Request.Params["ID"];
|
||||
Table = null;
|
||||
@@ -80,14 +142,19 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
//编号
|
||||
//问题类别
|
||||
QuestionTypeService.InitQuestionTypeDropDownList(this.DropQuestionTypeID, false);
|
||||
//验收人
|
||||
|
||||
//跟踪人 默认是自己
|
||||
UserService.InitUserDropDownList(DropUser_ReceiveID, CurrUser.LoginProjectId, false, string.Empty);
|
||||
//接收人
|
||||
DropUser_ReceiveID.SelectedValue = CurrUser.UserId;
|
||||
|
||||
//跟踪人 默认是自己
|
||||
UserService.InitUserDropDownList(DropUser_Acceptance, CurrUser.LoginProjectId, false, string.Empty);
|
||||
|
||||
//事项进展负责人
|
||||
UserService.InitUserDropDownList(DropProgress_user, CurrUser.LoginProjectId, false, string.Empty);
|
||||
//下一接受人
|
||||
UserService.InitUserDropDownList(DropNextRecipient, CurrUser.LoginProjectId, false, string.Empty);
|
||||
|
||||
////下一接受人
|
||||
//UserService.InitUserDropDownList(DropNextRecipient, CurrUser.LoginProjectId, false, string.Empty);
|
||||
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
if (EditType == "add")
|
||||
@@ -95,8 +162,8 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
txtGJSXID.Readonly = true;
|
||||
txtUserID.Readonly = true;
|
||||
//Date_CreateDate.Readonly = true;
|
||||
this.Progress_detail.Visible = false;
|
||||
this.nextProgress.Visible = false;
|
||||
//this.Progress_detail.Visible = false;
|
||||
//this.nextProgress.Visible = false;
|
||||
|
||||
|
||||
//编号
|
||||
@@ -137,8 +204,8 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
|
||||
if (EditType == "Edit") //添加事项进展
|
||||
{
|
||||
this.Progress_detail.Visible = true;
|
||||
this.nextProgress.Visible = true;
|
||||
//this.Progress_detail.Visible = true;
|
||||
//this.nextProgress.Visible = true;
|
||||
btnSave.Visible = false;
|
||||
TextIsEnable(false); //使文本不可编辑
|
||||
|
||||
@@ -158,7 +225,13 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
|
||||
//if (tb != null && tb.Rows.Count > 0)
|
||||
//{
|
||||
txtGJSXID.Text = gjsx.GJSXID;
|
||||
if (!string.IsNullOrEmpty(gjsx.CsUsers))
|
||||
{
|
||||
drpCsUsers.Values = gjsx.CsUsers.Split(',');
|
||||
drpCsUsers.Texts = GetUserNames(gjsx.CsUsers);
|
||||
}
|
||||
|
||||
txtGJSXID.Text = gjsx.GJSXID;
|
||||
DropUnitId.SelectedValue = gjsx.UnitId;
|
||||
if (!string.IsNullOrEmpty(gjsx.CNProfessional_ID))
|
||||
{
|
||||
@@ -179,7 +252,12 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
{
|
||||
List<string> list_User_ReceiveID = gjsx.User_ReceiveID.Split(',').ToList();
|
||||
DropUser_ReceiveID.SelectedValueArray = list_User_ReceiveID.ToArray();
|
||||
}
|
||||
//if (DropUser_ReceiveID.SelectedItemArray.Length > 1)
|
||||
//{
|
||||
// lblIsManyPeople.Hidden = false;
|
||||
// lblIsManyPeople.SelectedValue = gjsx.IsManypeople;
|
||||
//}
|
||||
}
|
||||
// Date_CloseDate.Text = tb.Rows[0]["CloseDate"].ToString();
|
||||
//txtDetail.Text = tb.Rows[0]["detail"].ToString();
|
||||
//txtUserID.Text = tb.Rows[0]["username"].ToString().Trim();
|
||||
@@ -196,7 +274,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
{
|
||||
Date_CompleteDate.Text = string.Format("{0:yyyy-MM-dd}", gjsx.CompleteDate);
|
||||
}
|
||||
rblState.SelectedValue = gjsx.State.ToString().Trim();
|
||||
//rblState.SelectedValue = gjsx.State.ToString().Trim();
|
||||
|
||||
//}
|
||||
|
||||
@@ -205,52 +283,116 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
{
|
||||
TextIsEnable(true);
|
||||
txtGJSXID.Readonly = true;
|
||||
this.Progress_detail.Visible = false;
|
||||
this.nextProgress.Visible = false;
|
||||
//this.Progress_detail.Visible = false;
|
||||
//this.nextProgress.Visible = false;
|
||||
Grid2Binging();
|
||||
}
|
||||
var state = BLL.GJSXService.GetGJSXById(txtGJSXID.Text).State.Trim();
|
||||
if (gjsx.UserID == this.CurrUser.UserId) //如果当前登录人是提出人
|
||||
{
|
||||
rblIsClosed.Visible = false;
|
||||
if (BLL.GJSXService.GetGJSXById(txtGJSXID.Text).State.Trim() == "1")
|
||||
//rblIsClosed.Visible = false;
|
||||
if (state == "1")
|
||||
{
|
||||
TextIsEnable(true);
|
||||
txtGJSXID.Readonly = true;
|
||||
txtUserID.Readonly = true;
|
||||
Date_CreateDate.Readonly = true;
|
||||
}
|
||||
|
||||
if (BLL.GJSXProcessService.GetGJSXProcessByGJSXIDAndUserId(this.txtGJSXID.Text, this.CurrUser.UserId) > 0)
|
||||
else if (state=="2")
|
||||
{
|
||||
Grid2Binging();
|
||||
Progress_detail.Hidden = false;
|
||||
btnsubmit.Hidden = true;
|
||||
Button1.Hidden = true;
|
||||
btnSave.Hidden = true;
|
||||
}
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(gjsx.User_ReceiveID) && gjsx.User_ReceiveID.Contains(this.CurrUser.UserId)) //接收者
|
||||
{
|
||||
rblIsClosed.Visible = false;
|
||||
btnSave.Visible = false;
|
||||
if (BLL.GJSXProcessService.GetGJSXProcessByGJSXIDAndUserId(this.txtGJSXID.Text, this.CurrUser.UserId) > 0)
|
||||
{
|
||||
else {
|
||||
btnSave.Visible = false;
|
||||
Progress_detail.Hidden = false;
|
||||
btnsubmit.Hidden = true;
|
||||
Button1.Hidden = false;
|
||||
|
||||
Grid2Binging();
|
||||
Grid2.AllColumns[0].Hidden = true;
|
||||
Grid2.AllColumns[5].Hidden = true;
|
||||
Grid2.AllColumns[6].Hidden = false;
|
||||
}
|
||||
|
||||
if (state == "0")
|
||||
{
|
||||
Button1.Hidden = true;
|
||||
}
|
||||
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(gjsx.User_ReceiveID) && gjsx.User_ReceiveID.Contains(this.CurrUser.UserId)) //跟踪人
|
||||
{
|
||||
if (state == "3")
|
||||
{
|
||||
Progress_detail.Hidden = false;
|
||||
btnSave.Visible = false;
|
||||
btnsubmit.Hidden = true;
|
||||
Button1.Hidden = false;
|
||||
|
||||
Grid2Binging();
|
||||
Grid2.AllColumns[0].Hidden = true;
|
||||
Grid2.AllColumns[5].Hidden = true;
|
||||
Grid2.AllColumns[6].Hidden = false;
|
||||
}
|
||||
else {
|
||||
Progress_detail.Hidden = false;
|
||||
btnSave.Visible = false;
|
||||
btnsubmit.Hidden = true;
|
||||
Button1.Hidden = true;
|
||||
}
|
||||
|
||||
if (state == "0") {
|
||||
Button1.Hidden = true;
|
||||
}
|
||||
//rblIsClosed.Visible = false;
|
||||
|
||||
|
||||
|
||||
//if (BLL.GJSXProcessService.GetGJSXProcessByGJSXIDAndUserId(this.txtGJSXID.Text, this.CurrUser.UserId) > 0)
|
||||
//{
|
||||
// Grid2Binging();
|
||||
//}
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(gjsx.User_Acceptance) && gjsx.User_Acceptance.Contains(this.CurrUser.UserId)) //如果当前登录人为责任人
|
||||
{
|
||||
if (state == "2")
|
||||
{
|
||||
Toolbar131.Hidden = false;
|
||||
Progress_detail.Hidden = false;
|
||||
btnSave.Visible = false;
|
||||
btnsubmit.Hidden = false;
|
||||
Button1.Hidden = true;
|
||||
}
|
||||
else {
|
||||
Progress_detail.Hidden = true;
|
||||
btnSave.Visible = false;
|
||||
btnsubmit.Hidden = true;
|
||||
Button1.Hidden = true;
|
||||
}
|
||||
|
||||
if (state=="0" || state=="3")
|
||||
{
|
||||
Progress_detail.Hidden = false;
|
||||
Grid2Binging();
|
||||
Grid2.AllColumns[0].Hidden = true;
|
||||
Grid2.AllColumns[5].Hidden = true;
|
||||
Grid2.AllColumns[6].Hidden = false;
|
||||
}
|
||||
}
|
||||
else //浏览者
|
||||
{
|
||||
Progress_detail.Hidden = false;
|
||||
this.Grid2.AllowCellEditing = false;// 禁止编辑
|
||||
Progress_detail.Enabled = false;
|
||||
this.nextProgress.Visible = false;
|
||||
//Progress_detail.Enabled = false;
|
||||
//this.nextProgress.Visible = false;
|
||||
btnSave.Visible = false;
|
||||
btnsubmit.Visible = false;
|
||||
Button1.Hidden = true;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(gjsx.User_Acceptance) && gjsx.User_Acceptance.Contains(this.CurrUser.UserId)) //如果当前登录人为验收人
|
||||
{
|
||||
rblIsClosed.Visible = true;
|
||||
btnSave.Visible = false;
|
||||
if (BLL.GJSXProcessService.GetGJSXProcessByGJSXIDAndUserId(this.txtGJSXID.Text, this.CurrUser.UserId) > 0)
|
||||
{
|
||||
Grid2Binging();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (BLL.GJSXService.GetGJSXById(this.txtGJSXID.Text).IsManypeople == "1")
|
||||
{
|
||||
@@ -281,21 +423,21 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
// this.nextProgress.Visible = true;
|
||||
// this.rblIsClosed.Visible = false;
|
||||
//}
|
||||
if (IsClosed_ManyPeople())
|
||||
{
|
||||
this.nextProgress.Visible = true;
|
||||
this.rblIsClosed.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.rblIsClosed.Visible = false;
|
||||
//if (IsClosed_ManyPeople())
|
||||
//{
|
||||
// this.nextProgress.Visible = true;
|
||||
// this.rblIsClosed.Visible = true;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// this.rblIsClosed.Visible = false;
|
||||
|
||||
}
|
||||
//}
|
||||
}
|
||||
if (BLL.GJSXService.GetGJSXById(this.txtGJSXID.Text).State.Trim() == "0")
|
||||
{
|
||||
Progress_detail.Enabled = false;
|
||||
nextProgress.Visible = false;
|
||||
//Progress_detail.Enabled = false;
|
||||
//nextProgress.Visible = false;
|
||||
btnsubmit.Visible = false;
|
||||
}
|
||||
|
||||
@@ -320,26 +462,27 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
DropUser_ReceiveID.Enabled = isStart;
|
||||
// Date_CloseDate.Enabled = isStart;
|
||||
txtDetail.Enabled = isStart;
|
||||
|
||||
drpCsUsers.Enabled = isStart;
|
||||
//lblIsManyPeople.Enabled = isStart;
|
||||
}
|
||||
|
||||
private void Grid2Binging()
|
||||
{
|
||||
GJSX_detail = BLL.GJSXItemService.GetGJSXDetailByGJSXID(txtGJSXID.Text);
|
||||
if (rblState.SelectedValue.Trim() == "2")
|
||||
{
|
||||
Model.GJSX_detail detail = new Model.GJSX_detail
|
||||
{
|
||||
Cuid = Guid.NewGuid().ToString(),
|
||||
GJSXID = txtGJSXID.Text,
|
||||
Progress_detail = "",
|
||||
FilePath = "",
|
||||
Progress_user = CurrUser.UserId,
|
||||
Date = DateTime.Parse(string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now))
|
||||
};
|
||||
//if (rblState.SelectedValue.Trim() == "2")
|
||||
//{
|
||||
// Model.GJSX_detail detail = new Model.GJSX_detail
|
||||
// {
|
||||
// Cuid = Guid.NewGuid().ToString(),
|
||||
// GJSXID = txtGJSXID.Text,
|
||||
// Progress_detail = "",
|
||||
// FilePath = "",
|
||||
// Progress_user = CurrUser.UserId,
|
||||
// Date = DateTime.Parse(string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now))
|
||||
// };
|
||||
|
||||
GJSX_detail.Add(detail);
|
||||
}
|
||||
// GJSX_detail.Add(detail);
|
||||
//}
|
||||
|
||||
|
||||
Grid2.RecordCount = GJSX_detail.Count;
|
||||
@@ -363,8 +506,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
// 姓名
|
||||
UpdateDataRow("Progress_detail", rowDict, rowData);
|
||||
|
||||
// 性别
|
||||
UpdateDataRow("FilePath", rowDict, rowData);
|
||||
|
||||
|
||||
}
|
||||
private DataRow FindRowByID(string rowID)
|
||||
@@ -372,7 +514,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
DataTable table = Table;
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
if (row["cuid"].ToString() == rowID)
|
||||
if (row["Cuid"].ToString() == rowID)
|
||||
{
|
||||
return row;
|
||||
}
|
||||
@@ -399,7 +541,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
_Detail.Progress_user = Table.Rows[i]["Progress_user"].ToString();
|
||||
_Detail.Date = DateTime.Parse(Table.Rows[i]["Date"].ToString());
|
||||
_Detail.Progress_detail = Table.Rows[i]["Progress_detail"].ToString();
|
||||
_Detail.FilePath = Table.Rows[i]["FilePath"].ToString();
|
||||
|
||||
|
||||
Model.GJSX_detail isExit_detail = BLL.GJSXItemService.GetGJSXMXById(_Detail.Cuid);
|
||||
|
||||
@@ -419,37 +561,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
}
|
||||
private void save(string state)
|
||||
{
|
||||
if (this.DropUnitId.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropCNProfessional_ID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropQuestionTypeID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("问题类别!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_Acceptance.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("验收人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_ReceiveID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择接受人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.Date_CompleteDate.Text == "")
|
||||
{
|
||||
Alert.ShowInParent("请选择要求完成日期!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Model.GJSX gjsx = new Model.GJSX();
|
||||
{
|
||||
@@ -461,11 +573,19 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
gjsx.UnitId = this.DropUnitId.SelectedValue;
|
||||
gjsx.State = state;
|
||||
//gjsx.QuestionTypeID = this.DropQuestionTypeID.SelectedValue;
|
||||
gjsx.IsManypeople = lblIsManyPeople.SelectedValue;
|
||||
//gjsx.IsManypeople = lblIsManyPeople.SelectedValue;
|
||||
gjsx.CompleteDate = DateTime.Parse(Date_CompleteDate.Text);
|
||||
gjsx.AttachUrl = "";
|
||||
}
|
||||
|
||||
//抄送人
|
||||
string sendUserIds = string.Empty;
|
||||
if (!string.IsNullOrEmpty(drpCsUsers.Value))
|
||||
{
|
||||
sendUserIds = string.Join(",", drpCsUsers.Values);
|
||||
}
|
||||
gjsx.CsUsers = sendUserIds;
|
||||
|
||||
foreach (var item in this.DropUser_ReceiveID.SelectedValueArray)
|
||||
{
|
||||
if (item != BLL.Const._Null)
|
||||
@@ -523,7 +643,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
}
|
||||
}
|
||||
|
||||
if (rblIsClosed.SelectedValue == "true")
|
||||
if (state == "0")
|
||||
{
|
||||
gjsx.CloseDate = DateTime.Now;
|
||||
}
|
||||
@@ -538,15 +658,15 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
GJSXService.UpdateGJSX(gjsx);
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
|
||||
}
|
||||
protected void DropUser_ReceiveID_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (DropUser_ReceiveID.SelectedItemArray.Length > 1)
|
||||
{
|
||||
lblIsManyPeople.Hidden = false;
|
||||
//if (DropUser_ReceiveID.SelectedItemArray.Length > 1)
|
||||
//{
|
||||
// lblIsManyPeople.Hidden = false;
|
||||
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
private bool IsClosed_ManyPeople()
|
||||
@@ -572,62 +692,118 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
/// <param name="e"></param>
|
||||
protected void btnsubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (rblIsClosed.SelectedValue == "true")
|
||||
if (this.DropUnitId.SelectedValue == Const._Null)
|
||||
{
|
||||
save("0");
|
||||
Alert.ShowInParent("请选择单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
if (this.DropCNProfessional_ID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropQuestionTypeID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("问题类别!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_Acceptance.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择责任人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_ReceiveID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择跟踪人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.Date_CompleteDate.Text == "")
|
||||
{
|
||||
Alert.ShowInParent("请选择要求完成日期!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//if (rblIsClosed.SelectedValue == "true")
|
||||
//{
|
||||
// save("0");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// save("2");
|
||||
//}
|
||||
|
||||
|
||||
//string nextreceuserid = DropNextRecipient.SelectedValue;
|
||||
|
||||
//BLL.GJSXProcessService.DeleteProcess(this.txtGJSXID.Text); //先删除
|
||||
//List<string> List_GJSXProcess = BLL.GJSXProcessService.GetProcessListByGJSXID(this.txtGJSXID.Text);
|
||||
//foreach (var item in this.DropUser_ReceiveID.SelectedValueArray)
|
||||
//{
|
||||
// if (item != BLL.Const._Null)
|
||||
// {
|
||||
// if (!List_GJSXProcess.Contains(item)) //不存在接收记录
|
||||
// {
|
||||
// Model.GJSX_Process gJSX_Process = new Model.GJSX_Process()
|
||||
// {
|
||||
// ProcessID = Guid.NewGuid().ToString(),
|
||||
// GJSXID = txtGJSXID.Text,
|
||||
// UserId = item
|
||||
// };
|
||||
// BLL.GJSXProcessService.AddProcess(gJSX_Process); //后添加
|
||||
// }
|
||||
|
||||
// }
|
||||
//}
|
||||
|
||||
string EditType = Request.Params["EditType"];
|
||||
|
||||
if (EditType == "add")
|
||||
{
|
||||
save("2");
|
||||
}
|
||||
|
||||
|
||||
string nextreceuserid = DropNextRecipient.SelectedValue;
|
||||
|
||||
BLL.GJSXProcessService.DeleteProcess(this.txtGJSXID.Text); //先删除
|
||||
List<string> List_GJSXProcess = BLL.GJSXProcessService.GetProcessListByGJSXID(this.txtGJSXID.Text);
|
||||
foreach (var item in this.DropUser_ReceiveID.SelectedValueArray)
|
||||
{
|
||||
if (item != BLL.Const._Null)
|
||||
else {
|
||||
//责任人的时候保存关键事项
|
||||
var gjsx = BLL.GJSXService.GetGJSXById(txtGJSXID.Text);
|
||||
if (gjsx.User_Acceptance.Contains(this.CurrUser.UserId))
|
||||
{
|
||||
if (!List_GJSXProcess.Contains(item)) //不存在接收记录
|
||||
{
|
||||
Model.GJSX_Process gJSX_Process = new Model.GJSX_Process()
|
||||
{
|
||||
ProcessID = Guid.NewGuid().ToString(),
|
||||
GJSXID = txtGJSXID.Text,
|
||||
UserId = item
|
||||
};
|
||||
BLL.GJSXProcessService.AddProcess(gJSX_Process); //后添加
|
||||
}
|
||||
|
||||
save("3");
|
||||
OperateComplianceObligationsCSort();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
//if (nextreceuserid != null)
|
||||
//{
|
||||
// Model.GJSX gJSX = BLL.GJSXService.GetGJSXById(txtGJSXID.Text);
|
||||
// if (!gJSX.User_ReceiveID.Contains(nextreceuserid))
|
||||
// {
|
||||
// gJSX.User_ReceiveID += "," + nextreceuserid;
|
||||
// BLL.GJSXService.UpdateGJSX(gJSX);
|
||||
// Model.GJSX_Process gJSX_Process = new Model.GJSX_Process()
|
||||
// {
|
||||
// ProcessID = Guid.NewGuid().ToString(),
|
||||
// GJSXID = txtGJSXID.Text,
|
||||
// UserId = nextreceuserid
|
||||
// };
|
||||
// BLL.GJSXProcessService.AddProcess(gJSX_Process);
|
||||
// }
|
||||
|
||||
if (Table != null)
|
||||
{
|
||||
Grid2.GetModifiedDict();
|
||||
Grid2Save(Grid2);
|
||||
}
|
||||
//}
|
||||
|
||||
if (nextreceuserid != null)
|
||||
{
|
||||
Model.GJSX gJSX = BLL.GJSXService.GetGJSXById(txtGJSXID.Text);
|
||||
if (!gJSX.User_ReceiveID.Contains(nextreceuserid))
|
||||
{
|
||||
gJSX.User_ReceiveID += "," + nextreceuserid;
|
||||
BLL.GJSXService.UpdateGJSX(gJSX);
|
||||
Model.GJSX_Process gJSX_Process = new Model.GJSX_Process()
|
||||
{
|
||||
ProcessID = Guid.NewGuid().ToString(),
|
||||
GJSXID = txtGJSXID.Text,
|
||||
UserId = nextreceuserid
|
||||
};
|
||||
BLL.GJSXProcessService.AddProcess(gJSX_Process);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnsubmit_Close(object sender, EventArgs e) {
|
||||
save("0");
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
|
||||
@@ -638,7 +814,38 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.DropUnitId.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择单位!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropCNProfessional_ID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropQuestionTypeID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("问题类别!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_Acceptance.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择责任人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_ReceiveID.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择跟踪人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.Date_CompleteDate.Text == "")
|
||||
{
|
||||
Alert.ShowInParent("请选择要求完成日期!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
save("1");
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
|
||||
}
|
||||
|
||||
@@ -656,7 +863,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
}
|
||||
else
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PersonSetMenuId);
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.GJSXMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd) || buttonList.Contains(BLL.Const.BtnModify))
|
||||
@@ -698,6 +905,156 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载抄送人员
|
||||
private void GetCheckManBindGrid4()
|
||||
{
|
||||
var tb = GetCheckManSource4();
|
||||
// 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount)
|
||||
Grid4.RecordCount = tb.Rows.Count;
|
||||
|
||||
// 2.获取当前分页数据
|
||||
var table = this.GetPagedDataTable(Grid4, tb);
|
||||
|
||||
// 3.绑定到Grid
|
||||
Grid4.DataSource = table;
|
||||
Grid4.DataBind();
|
||||
}
|
||||
|
||||
private DataTable GetCheckManSource4()
|
||||
{
|
||||
string sortField = Grid4.SortField;
|
||||
string sortDirection = Grid4.SortDirection;
|
||||
|
||||
var userList = (from x in Funs.DB.Sys_User
|
||||
join y in Funs.DB.Project_ProjectUnit
|
||||
on x.UnitId equals y.UnitId
|
||||
join p in Funs.DB.Project_ProjectUser
|
||||
on x.UserId equals p.UserId
|
||||
where p.ProjectId == CurrUser.LoginProjectId &&
|
||||
y.ProjectId == CurrUser.LoginProjectId
|
||||
orderby x.UserCode
|
||||
select x);
|
||||
|
||||
DataTable table2 = LINQToDataTable(userList);
|
||||
DataView view2 = table2.DefaultView;
|
||||
view2.Sort = String.Format("{0} {1}", sortField, sortDirection);
|
||||
|
||||
string searchKeyword = ttbSearch4.Text.Trim();
|
||||
if (!String.IsNullOrEmpty(searchKeyword) && ttbSearch4.ShowTrigger1)
|
||||
{
|
||||
view2.RowFilter = String.Format(" UserName LIKE '%{0}%'", searchKeyword);
|
||||
}
|
||||
|
||||
return view2.ToTable();
|
||||
}
|
||||
|
||||
protected void ttbSearch_Trigger1Click4(object sender, EventArgs e)
|
||||
{
|
||||
ttbSearch4.ShowTrigger1 = true;
|
||||
GetCheckManBindGrid4();
|
||||
}
|
||||
protected void Grid4_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid4.PageIndex = e.NewPageIndex;
|
||||
GetCheckManBindGrid4();
|
||||
}
|
||||
protected void Grid4_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
Grid4.SortDirection = e.SortDirection;
|
||||
Grid4.SortField = e.SortField;
|
||||
GetCheckManBindGrid4();
|
||||
}
|
||||
protected void ttbSearch_Trigger2Click4(object sender, EventArgs e)
|
||||
{
|
||||
ttbSearch4.ShowTrigger1 = true;
|
||||
GetCheckManBindGrid4();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 关键事项
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
jerqueSaveComplianceObligationsCList();
|
||||
Model.GJSX_detail complianceObligationsC = new Model.GJSX_detail
|
||||
{
|
||||
Cuid = SQLHelper.GetNewID(typeof(Model.Solution_CQMSConstructSolutionApprove_Item))
|
||||
};
|
||||
GJSX_detail.Add(complianceObligationsC);
|
||||
this.Grid2.DataSource = GJSX_detail;
|
||||
this.Grid2.DataBind();
|
||||
}
|
||||
|
||||
protected void gvOperateComplianceObligations_RowCommand(object sender, GridCommandEventArgs e)
|
||||
{
|
||||
jerqueSaveComplianceObligationsCList();
|
||||
string rowID = this.Grid2.DataKeys[e.RowIndex][0].ToString();
|
||||
if (e.CommandName == "Delete")
|
||||
{
|
||||
foreach (var item in GJSX_detail)
|
||||
{
|
||||
if (item.Cuid == rowID)
|
||||
{
|
||||
GJSX_detail.Remove(item);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Grid2.DataSource = GJSX_detail;
|
||||
Grid2.DataBind();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
else if (e.CommandName == "AttachUrl")
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=1&toKeyId={0}&path=FileUpload/Gjsx&menuId={1}",
|
||||
rowID, BLL.Const.GJSXMenuId)));
|
||||
}
|
||||
else if (e.CommandName == "AttachUrl1")
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/Gjsx&menuId={1}",
|
||||
rowID, BLL.Const.GJSXMenuId)));
|
||||
}
|
||||
}
|
||||
|
||||
private void OperateComplianceObligationsCSort()
|
||||
{
|
||||
var list = Funs.DB.GJSX_detail.Where(x => x.GJSXID == txtGJSXID.Text).ToList();
|
||||
if (list.Count>0)
|
||||
{
|
||||
Funs.DB.GJSX_detail.DeleteAllOnSubmit(list);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
jerqueSaveComplianceObligationsCList();
|
||||
foreach (Model.GJSX_detail coc in GJSX_detail)
|
||||
{
|
||||
coc.GJSXID = txtGJSXID.Text;
|
||||
BLL.GJSXItemService.AddGJSXMX(coc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void jerqueSaveComplianceObligationsCList()
|
||||
{
|
||||
GJSX_detail.Clear();
|
||||
JArray mergedData = Grid2.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
var hazardSort = new Model.GJSX_detail
|
||||
{
|
||||
Cuid = this.Grid2.Rows[i].DataKeys[0].ToString(),
|
||||
Progress_user= values.Value<string>("Progress_user").ToString(),
|
||||
Progress_detail = values.Value<string>("Progress_detail").ToString(),
|
||||
};
|
||||
if (!string.IsNullOrEmpty(values.Value<string>("Date").ToString()))
|
||||
{
|
||||
hazardSort.Date = Convert.ToDateTime(values.Value<string>("Date").ToString());
|
||||
}
|
||||
GJSX_detail.Add(hazardSort);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+102
-91
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
|
||||
|
||||
public partial class GJSXListEdit {
|
||||
|
||||
namespace FineUIPro.Web.PZHGL.GJSX
|
||||
{
|
||||
|
||||
|
||||
public partial class GJSXListEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel1 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Form_edit 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form_edit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtGJSXID 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtGJSXID;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DropUnitId 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropUnitId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DropCNProfessional_ID 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropCNProfessional_ID;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUserID 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUserID;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Date_CreateDate 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker Date_CreateDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DropQuestionTypeID 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropQuestionTypeID;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DropUser_Acceptance 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropUser_Acceptance;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Date_CompleteDate 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker Date_CompleteDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DropUser_ReceiveID 控件。
|
||||
/// </summary>
|
||||
@@ -137,25 +139,34 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropUser_ReceiveID;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rblState 控件。
|
||||
/// drpCsUsers 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblState;
|
||||
|
||||
protected global::FineUIPro.DropDownBox drpCsUsers;
|
||||
|
||||
/// <summary>
|
||||
/// lblIsManyPeople 控件。
|
||||
/// Grid4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList lblIsManyPeople;
|
||||
|
||||
protected global::FineUIPro.Grid Grid4;
|
||||
|
||||
/// <summary>
|
||||
/// ttbSearch4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TwinTriggerBox ttbSearch4;
|
||||
|
||||
/// <summary>
|
||||
/// txtDetail 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +175,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtDetail;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Progress_detail 控件。
|
||||
/// </summary>
|
||||
@@ -173,7 +184,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow Progress_detail;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel2 控件。
|
||||
/// </summary>
|
||||
@@ -182,7 +193,25 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar131 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar131;
|
||||
|
||||
/// <summary>
|
||||
/// btnNewOtherManagement 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNewOtherManagement;
|
||||
|
||||
/// <summary>
|
||||
/// Form2 控件。
|
||||
/// </summary>
|
||||
@@ -191,7 +220,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid2 控件。
|
||||
/// </summary>
|
||||
@@ -200,7 +229,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DropProgress_user 控件。
|
||||
/// </summary>
|
||||
@@ -209,7 +238,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropProgress_user;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// DatePicker1 控件。
|
||||
/// </summary>
|
||||
@@ -218,7 +247,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker DatePicker1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// tbxEditorName 控件。
|
||||
/// </summary>
|
||||
@@ -227,61 +256,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox tbxEditorName;
|
||||
|
||||
/// <summary>
|
||||
/// TextBox1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox TextBox1;
|
||||
|
||||
/// <summary>
|
||||
/// nextProgress 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FormRow nextProgress;
|
||||
|
||||
/// <summary>
|
||||
/// ContentPanel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ContentPanel ContentPanel3;
|
||||
|
||||
/// <summary>
|
||||
/// Form3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// rblIsClosed 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblIsClosed;
|
||||
|
||||
/// <summary>
|
||||
/// DropNextRecipient 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropNextRecipient;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -290,7 +265,34 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// Button1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button Button1;
|
||||
|
||||
/// <summary>
|
||||
/// btnsubmit 控件。
|
||||
/// </summary>
|
||||
@@ -299,7 +301,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnsubmit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -308,7 +310,7 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
@@ -317,7 +319,16 @@ namespace FineUIPro.Web.PZHGL.GJSX {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user