成达修改20230724
This commit is contained in:
@@ -679,9 +679,9 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
approve.ApproveDate = DateTime.Now.AddMinutes(1);
|
||||
}
|
||||
BLL.CheckFineApproveService.AddCheckFineApprove(approve);
|
||||
//APICommonService.SendSubscribeMessage(approve.ApproveMan, "质量巡检问题待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
if (saveType == "save")
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "质量罚款单待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
if (saveType == "save")
|
||||
{
|
||||
checkControl.SaveHandleMan = this.drpHandleMan.SelectedValue;
|
||||
}
|
||||
@@ -721,7 +721,7 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
approve.ApproveType = this.drpHandleType.SelectedValue;
|
||||
|
||||
BLL.CheckFineApproveService.AddCheckFineApprove(approve);
|
||||
//APICommonService.SendSubscribeMessage(approve.ApproveMan, "质量巡检问题待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
APICommonService.SendSubscribeMessage(approve.ApproveMan, "质量罚款单待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" runat="server" Label="施工分包商" Required="true" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" Required="true" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px"></f:DropDownList>
|
||||
<f:DropDownList ID="drpCNProfessionalId" runat="server" Label="专业" Required="true" ShowRedStar="true" LabelAlign="Right" LabelWidth="130px" Enabled="false"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
||||
@@ -39,8 +39,9 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
drpAudit.DataTextField = "UserName";
|
||||
this.drpAudit.DataSource = userList.ToList();
|
||||
this.drpAudit.DataBind();
|
||||
Funs.FineUIPleaseSelect(drpAudit);
|
||||
|
||||
this.hdInspectionNoticeId.Text = Request.Params["inspectionId"];
|
||||
this.hdInspectionNoticeId.Text = Request.Params["inspectionId"];
|
||||
this.agree.Hidden = true;
|
||||
this.options.Hidden = true;
|
||||
this.Panel1.Hidden = true;
|
||||
@@ -116,10 +117,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
this.Panel1.Hidden = false;
|
||||
this.options.Hidden = false;
|
||||
this.drpAudit.Hidden = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -155,8 +153,12 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
Alert.ShowInTop("请先选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
Model.ProcessControl_InspectionManagement inspectionManagement = new Model.ProcessControl_InspectionManagement();
|
||||
if (this.drpAudit.Hidden==false && this.drpAudit.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请先选择专业工程师!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.ProcessControl_InspectionManagement inspectionManagement = new Model.ProcessControl_InspectionManagement();
|
||||
inspectionManagement.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (this.drpUnit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
|
||||
@@ -175,14 +175,7 @@
|
||||
<f:TextArea ID="txtUnqualifiedOption" runat="server" Enabled="false" Label="整改建议" LabelAlign="Right" MaxLength="1000" Hidden="true"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items >
|
||||
<f:DropDownList runat="server" Width="300px" Label="专业工程师确认" LabelWidth="130px" ID="drpAudit" ShowRedStar="true" Required="true" EmptyText="--请选择--" >
|
||||
</f:DropDownList>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
if (!IsPostBack)
|
||||
{
|
||||
GetButtonPower();
|
||||
BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);//施工分包商
|
||||
BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);//施工分包商
|
||||
drpUnit.DataValueField = "UnitId";
|
||||
drpUnit.DataTextField = "UnitName";
|
||||
|
||||
@@ -52,23 +52,10 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
//抄送单位
|
||||
gvCCUnit.DataSource = UnitService.GetUnitByProjectIdList(CurrUser.LoginProjectId);
|
||||
gvCCUnit.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();
|
||||
this.hdInspectionNoticeId.Text = Request.Params["inspectionId"];
|
||||
this.hdInspectionNoticeId.Text = Request.Params["inspectionId"];
|
||||
if (!string.IsNullOrEmpty(this.hdInspectionNoticeId.Text))
|
||||
{
|
||||
Model.ProcessControl_InspectionManagement inspectionManagement = BLL.InspectionManagementService.GetInspectionManagementById(this.hdInspectionNoticeId.Text.Trim());
|
||||
@@ -107,11 +94,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
if (!string.IsNullOrEmpty(inspectionManagement.CCUnitIds))
|
||||
{
|
||||
txtCCUnit.Values = inspectionManagement.CCUnitIds.Split(',');
|
||||
}
|
||||
if (!string.IsNullOrEmpty(inspectionManagement.AuditMan))
|
||||
{
|
||||
drpAudit.SelectedValue = inspectionManagement.AuditMan;
|
||||
}
|
||||
}
|
||||
if (inspectionManagement.PlanComplateDate != null)
|
||||
{
|
||||
this.dpPlanComplateDate.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss}", inspectionManagement.PlanComplateDate);
|
||||
@@ -123,7 +106,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
this.Grid1.DataSource = BLL.InspectionManagementDetailService.GetInspectionDetails(this.hdInspectionNoticeId.Text.Trim());
|
||||
this.Grid1.DataBind();
|
||||
|
||||
if (inspectionManagement.Status == "3" ||(inspectionManagement.Status=="2" && inspectionManagement.AuditMan!=CurrUser.UserId)||(inspectionManagement.Status=="1"&&inspectionManagement.CompileMan!=CurrUser.UserId))
|
||||
if (inspectionManagement.Status == "3" ||(inspectionManagement.Status=="1"&&inspectionManagement.CompileMan!=CurrUser.UserId))
|
||||
{
|
||||
this.drpWorkArea.Enabled = false;
|
||||
this.drpUnit.Enabled = false;
|
||||
@@ -138,30 +121,9 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
this.btnSubmit.Hidden = true;
|
||||
this.btnSave.Hidden = true;
|
||||
this.txtCCUnit.Enabled = false;
|
||||
this.drpAudit.Enabled = false;
|
||||
this.Grid1.Columns[9].Hidden = true;
|
||||
}
|
||||
else if(inspectionManagement.Status == "2" && inspectionManagement.AuditMan == CurrUser.UserId)
|
||||
{
|
||||
this.drpWorkArea.Enabled = false;
|
||||
this.drpUnit.Enabled = false;
|
||||
this.drpCNProfessionalId.Enabled = false;
|
||||
this.txtNoticeCode.Enabled = false;
|
||||
this.txtAcceptanceSite.Enabled = false;
|
||||
this.txtAcceptanceCheckMan.Enabled = false;
|
||||
this.dpPlanComplateDate.Enabled = false;
|
||||
this.drpMainSendUnit.Enabled = false;
|
||||
this.txtCCUnit.EnableEdit = false;
|
||||
this.Toolbar4.Hidden = true;
|
||||
this.txtCCUnit.Enabled = false;
|
||||
this.Grid1.Columns[9].Hidden = true;
|
||||
this.btnSubmit.ToolTip = "确认";
|
||||
this.btnSubmit.Text = "确认";
|
||||
this.dpRePlanComplateDate.Hidden = false;
|
||||
this.dpRePlanComplateDate.Enabled = false;
|
||||
this.btnSave.Hidden = true;
|
||||
this.drpAudit.Hidden = true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -197,8 +159,8 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
{
|
||||
Alert.ShowInTop("请先选择专业!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.Grid1.Rows.Count == 0)
|
||||
}
|
||||
if (this.Grid1.Rows.Count == 0)
|
||||
{
|
||||
Alert.ShowInTop("请先选择共检内容!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
@@ -226,8 +188,10 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
inspectionManagement.NoticeCode = this.txtNoticeCode.Text.Trim();
|
||||
inspectionManagement.AcceptanceSite = this.txtAcceptanceSite.Text.Trim();
|
||||
inspectionManagement.AcceptanceCheckMan = this.txtAcceptanceCheckMan.Text.Trim();
|
||||
inspectionManagement.Status = "2";
|
||||
if (!string.IsNullOrEmpty(this.dpPlanComplateDate.Text.Trim()))
|
||||
inspectionManagement.Status = "3";
|
||||
inspectionManagement.AuditMan = this.CurrUser.UserId;
|
||||
|
||||
if (!string.IsNullOrEmpty(this.dpPlanComplateDate.Text.Trim()))
|
||||
{
|
||||
inspectionManagement.PlanComplateDate = Convert.ToDateTime(this.dpPlanComplateDate.Text.Trim());
|
||||
}
|
||||
@@ -235,10 +199,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
{
|
||||
inspectionManagement.RePlanComplateDate = Convert.ToDateTime(this.dpRePlanComplateDate.Text.Trim());
|
||||
}
|
||||
if (this.drpAudit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
inspectionManagement.AuditMan = drpAudit.SelectedValue;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(Request.Params["inspectionId"]))
|
||||
{
|
||||
inspectionManagement.CompileMan = this.CurrUser.UserId;
|
||||
@@ -259,19 +220,9 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
Model.ProcessControl_InspectionManagement oldInspectionManagement = BLL.InspectionManagementService.GetInspectionManagementById(this.hdInspectionNoticeId.Text.Trim());
|
||||
inspectionManagement.AttachUrl2 = oldInspectionManagement.AttachUrl2;
|
||||
inspectionManagement.InspectionCode = oldInspectionManagement.InspectionCode;
|
||||
|
||||
inspectionManagement.InspectionId = this.hdInspectionNoticeId.Text.Trim();
|
||||
if (oldInspectionManagement.Status == "2")
|
||||
{
|
||||
inspectionManagement.Status = "3";
|
||||
}
|
||||
if (oldInspectionManagement.AuditMan != inspectionManagement.AuditMan)
|
||||
{
|
||||
changeAudit = true;
|
||||
inspectionManagement.Status = "2";
|
||||
}
|
||||
|
||||
BLL.InspectionManagementService.UpdateInspectionManagement(inspectionManagement);
|
||||
inspectionManagement.InspectionId = this.hdInspectionNoticeId.Text.Trim();
|
||||
inspectionManagement.Status = "3";
|
||||
BLL.InspectionManagementService.UpdateInspectionManagement(inspectionManagement);
|
||||
BLL.InspectionManagementDetailService.DeleteAllInspectionDetail(inspectionManagement.InspectionId);
|
||||
}
|
||||
var details = jerqueSaveList();
|
||||
@@ -280,18 +231,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
detail.InspectionId = inspectionManagement.InspectionId;
|
||||
BLL.InspectionManagementDetailService.AddInspectionDetail(detail);
|
||||
}
|
||||
if (inspectionManagement.Status == "2")
|
||||
{
|
||||
APICommonService.SendSubscribeMessage(inspectionManagement.AuditMan, "控制点通知单待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
|
||||
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
APICommonService.SendSubscribeMessage(inspectionManagement.CompileMan, "控制点通知单已确认", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now));
|
||||
|
||||
ShowNotify("确认成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#region 保存
|
||||
@@ -346,10 +286,6 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
{
|
||||
inspectionManagement.PlanComplateDate = Convert.ToDateTime(this.dpPlanComplateDate.Text.Trim());
|
||||
}
|
||||
if (this.drpAudit.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
inspectionManagement.AuditMan = drpAudit.SelectedValue;
|
||||
}
|
||||
if (string.IsNullOrEmpty(Request.Params["inspectionId"]))
|
||||
{
|
||||
inspectionManagement.CompileMan = this.CurrUser.UserId;
|
||||
@@ -369,12 +305,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
{
|
||||
Model.ProcessControl_InspectionManagement oldInspectionManagement = BLL.InspectionManagementService.GetInspectionManagementById(this.hdInspectionNoticeId.Text.Trim());
|
||||
inspectionManagement.AttachUrl2 = oldInspectionManagement.AttachUrl2;
|
||||
inspectionManagement.InspectionId = this.hdInspectionNoticeId.Text.Trim();
|
||||
if (oldInspectionManagement.Status == "2")
|
||||
{
|
||||
inspectionManagement.Status = "2";
|
||||
|
||||
}
|
||||
inspectionManagement.InspectionId = this.hdInspectionNoticeId.Text.Trim();
|
||||
BLL.InspectionManagementService.UpdateInspectionManagement(inspectionManagement);
|
||||
BLL.InspectionManagementDetailService.DeleteAllInspectionDetail(inspectionManagement.InspectionId);
|
||||
}
|
||||
|
||||
+243
-252
@@ -11,286 +11,277 @@ namespace FineUIPro.Web.CQMS.ProcessControl
|
||||
{
|
||||
|
||||
|
||||
public partial class InspectionNoticeEdit
|
||||
{
|
||||
public partial class InspectionNoticeEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// drpWorkArea 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWorkArea;
|
||||
/// <summary>
|
||||
/// drpWorkArea 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWorkArea;
|
||||
|
||||
/// <summary>
|
||||
/// drpCNProfessionalId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCNProfessionalId;
|
||||
/// <summary>
|
||||
/// drpCNProfessionalId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCNProfessionalId;
|
||||
|
||||
/// <summary>
|
||||
/// txtNoticeCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtNoticeCode;
|
||||
/// <summary>
|
||||
/// txtNoticeCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtNoticeCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtAcceptanceSite 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAcceptanceSite;
|
||||
/// <summary>
|
||||
/// txtAcceptanceSite 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAcceptanceSite;
|
||||
|
||||
/// <summary>
|
||||
/// txtAcceptanceCheckMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAcceptanceCheckMan;
|
||||
/// <summary>
|
||||
/// txtAcceptanceCheckMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAcceptanceCheckMan;
|
||||
|
||||
/// <summary>
|
||||
/// dpPlanComplateDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker dpPlanComplateDate;
|
||||
/// <summary>
|
||||
/// dpPlanComplateDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker dpPlanComplateDate;
|
||||
|
||||
/// <summary>
|
||||
/// dpRePlanComplateDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker dpRePlanComplateDate;
|
||||
/// <summary>
|
||||
/// dpRePlanComplateDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker dpRePlanComplateDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpMainSendUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpMainSendUnit;
|
||||
/// <summary>
|
||||
/// drpMainSendUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpMainSendUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtCCUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownBox txtCCUnit;
|
||||
/// <summary>
|
||||
/// txtCCUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownBox txtCCUnit;
|
||||
|
||||
/// <summary>
|
||||
/// gvCCUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvCCUnit;
|
||||
/// <summary>
|
||||
/// gvCCUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid gvCCUnit;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar4;
|
||||
/// <summary>
|
||||
/// Toolbar4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar4;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label3;
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label5;
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label4;
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnqualifiedReason 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtUnqualifiedReason;
|
||||
/// <summary>
|
||||
/// txtUnqualifiedReason 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtUnqualifiedReason;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnqualifiedOption 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtUnqualifiedOption;
|
||||
/// <summary>
|
||||
/// txtUnqualifiedOption 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtUnqualifiedOption;
|
||||
|
||||
/// <summary>
|
||||
/// drpAudit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpAudit;
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
/// <summary>
|
||||
/// hdItemsString 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdItemsString;
|
||||
|
||||
/// <summary>
|
||||
/// hdItemsString 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdItemsString;
|
||||
/// <summary>
|
||||
/// hdInspectionNoticeId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdInspectionNoticeId;
|
||||
|
||||
/// <summary>
|
||||
/// hdInspectionNoticeId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdInspectionNoticeId;
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSubmit;
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,10 +53,10 @@
|
||||
<f:RenderField Width="70px" ColumnID="BreakdownCode" DataField="BreakdownCode" FieldType="String"
|
||||
HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="质量控制点检查、检测项" ColumnID="BreakdownName" DataField="BreakdownName" HeaderTextAlign="Center" TextAlign="Left" Width="320px"
|
||||
<f:RenderField HeaderText="质量控制点检查、检测项" ColumnID="BreakdownName" DataField="BreakdownName" HeaderTextAlign="Center" TextAlign="Left" Width="150px"
|
||||
FieldType="String">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="执行依据或规范" ColumnID="Basis" DataField="Basis" HeaderTextAlign="Center" TextAlign="Left"
|
||||
<f:RenderField HeaderText="执行依据或规范" ColumnID="Basis" DataField="Basis" HeaderTextAlign="Center" TextAlign="Left" Width="400px"
|
||||
FieldType="String">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="质量检查要点" ColumnID="CheckPoints" DataField="CheckPoints"
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="BreakdownId" AllowSorting="true" EnableColumnLines="true"
|
||||
SortField="BreakdownCode" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" KeepCurrentSelection="true"
|
||||
SortField="SortIndex" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" KeepCurrentSelection="true"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" ForceFit="true" OnRowCommand="Grid1_RowCommand"
|
||||
ShowSelectedCell="true" DataIDField="BreakdownId" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="100" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange">
|
||||
|
||||
@@ -576,8 +576,8 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT BreakdownId,BreakdownCode,BreakdownName,Basis,CheckPoints,RecordAndCode,Class,FenBao,WuHuan,JianLi,YeZhu,Remark,ModelURL"
|
||||
+ @" FROM WBS_Breakdown ";
|
||||
string strSql = @"SELECT BreakdownId,BreakdownCode,BreakdownName,Basis,CheckPoints,RecordAndCode,Class,FenBao,WuHuan,JianLi,YeZhu,Remark,ModelURL,SortIndex
|
||||
FROM WBS_Breakdown ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " where DivisionId = @DivisionId ";
|
||||
listStr.Add(new SqlParameter("@DivisionId", this.trWBS.SelectedNodeID));
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="BreakdownProjectId" AllowSorting="true" EnableColumnLines="true"
|
||||
SortField="BreakdownCode" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" EnableCheckBoxSelect="true" KeepCurrentSelection="true"
|
||||
SortField="SortIndex" SortDirection="ASC" AllowCellEditing="true" ClicksToEdit="1" EnableCheckBoxSelect="true" KeepCurrentSelection="true"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" ForceFit="true" OnRowCommand="Grid1_RowCommand"
|
||||
ShowSelectedCell="true" DataIDField="BreakdownProjectId" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="100" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange">
|
||||
|
||||
@@ -10,6 +10,7 @@ using System.IO;
|
||||
using System.Data.SqlClient;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
using Model;
|
||||
|
||||
namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
@@ -388,14 +389,20 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||
{
|
||||
if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
SelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
else
|
||||
{
|
||||
NoSelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
if (!SelectedList.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
SelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!NoSelectedList.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
NoSelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
}
|
||||
string divisionProjectId = this.trWBS.SelectedNode.NodeID;
|
||||
var temp = BLL.DivisionProjectService.GetDivisionProjectById(divisionProjectId);
|
||||
@@ -799,8 +806,12 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT BreakdownProjectId,BreakdownCode,BreakdownName,Basis,CheckPoints,RecordAndCode,Class,FenBao,WuHuan,JianLi,YeZhu,Remark,ModelURL"
|
||||
+ @" FROM WBS_BreakdownProject ";
|
||||
WBS_BreakdownProject d=null;
|
||||
|
||||
d.SortIndex = 0;
|
||||
|
||||
string strSql = @"SELECT BreakdownProjectId,BreakdownCode,BreakdownName,Basis,CheckPoints,RecordAndCode,Class,FenBao,WuHuan,JianLi,YeZhu,Remark,ModelURL,SortIndex"
|
||||
+ @" FROM WBS_BreakdownProject ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " where DivisionProjectId = @DivisionProjectId and ProjectId=@ProjectId";
|
||||
listStr.Add(new SqlParameter("@DivisionProjectId", this.trWBS.SelectedNodeID));
|
||||
@@ -1280,23 +1291,27 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
#region 保存事件
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||
{
|
||||
if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
SelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
else
|
||||
{
|
||||
NoSelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
foreach (var item in SelectedList.Distinct())
|
||||
{
|
||||
Model.WBS_BreakdownProject breakdownProject = BLL.BreakdownProjectService.GetBreakdownProjectById(item);
|
||||
breakdownProject.IsSelected = true;
|
||||
BLL.BreakdownProjectService.UpdateBreakdownProject(breakdownProject);
|
||||
}
|
||||
var gridIds = this.Grid1.Rows.Select(x => x.RowID).ToList<string>();
|
||||
SelectedList.RemoveAll(x=>gridIds.Contains(x));
|
||||
|
||||
for (int i = 0; i < this.Grid1.Rows.Count; i++)
|
||||
{
|
||||
if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
if (!SelectedList.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
SelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!NoSelectedList.Contains(this.Grid1.Rows[i].RowID))
|
||||
{
|
||||
NoSelectedList.Add(this.Grid1.Rows[i].RowID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NoSelectedList = NoSelectedList.Distinct().ToList();
|
||||
var q = NoSelectedList.Distinct().ToList();
|
||||
foreach (var item in q)
|
||||
@@ -1314,11 +1329,44 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
Model.WBS_BreakdownProject breakdownProject = BLL.BreakdownProjectService.GetBreakdownProjectById(item);
|
||||
breakdownProject.IsSelected = null;
|
||||
BLL.BreakdownProjectService.UpdateBreakdownProject(breakdownProject);
|
||||
}
|
||||
Alert.ShowInTop("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
#endregion
|
||||
Model.WBS_DivisionProject divisionProject = BLL.DivisionProjectService.GetDivisionProjectById(breakdownProject.DivisionProjectId);
|
||||
divisionProject.IsSelected = false;
|
||||
checknode(this.trWBS.Nodes.ToArray(), breakdownProject.DivisionProjectId, false);
|
||||
BLL.DivisionProjectService.UpdateDivisionProject(divisionProject);
|
||||
this.UpdateParentDivision(divisionProject.SuperDivisionId, false);
|
||||
}
|
||||
|
||||
|
||||
foreach (var item in SelectedList.Distinct())
|
||||
{
|
||||
Model.WBS_BreakdownProject breakdownProject = BLL.BreakdownProjectService.GetBreakdownProjectById(item);
|
||||
breakdownProject.IsSelected = true;
|
||||
BLL.BreakdownProjectService.UpdateBreakdownProject(breakdownProject);
|
||||
Model.WBS_DivisionProject divisionProject = BLL.DivisionProjectService.GetDivisionProjectById(breakdownProject.DivisionProjectId);
|
||||
checknode(this.trWBS.Nodes.ToArray(), breakdownProject.DivisionProjectId, true);
|
||||
divisionProject.IsSelected = true;
|
||||
BLL.DivisionProjectService.UpdateDivisionProject(divisionProject);
|
||||
this.UpdateParentDivision(divisionProject.SuperDivisionId, true);
|
||||
}
|
||||
|
||||
|
||||
Alert.ShowInTop("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
#endregion
|
||||
private void checknode(TreeNode[] nodes, string nodeId, bool check)
|
||||
{
|
||||
foreach (var node in nodes)
|
||||
{
|
||||
if (node.NodeID == nodeId)
|
||||
{
|
||||
node.Checked = check;
|
||||
}
|
||||
if (node.Nodes.Count > 0)
|
||||
{
|
||||
checknode(node.Nodes.ToArray(), nodeId, check);
|
||||
}
|
||||
}
|
||||
}
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
|
||||
Reference in New Issue
Block a user