修改设计交底发起
This commit is contained in:
@@ -190,6 +190,15 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 关闭窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 发起设计交底(树节点)
|
||||
/// </summary>
|
||||
@@ -213,21 +222,12 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
join y in Funs.DB.WBS_WorkPackage on x.UnitWorkId equals y.UnitWorkId
|
||||
where y.WorkPackageId == this.trWBS.SelectedNodeID
|
||||
select x).FirstOrDefault();
|
||||
Model.Technical_TechnicalDisclose technicalDisclose = new Model.Technical_TechnicalDisclose();
|
||||
technicalDisclose.TechnicalDiscloseId = SQLHelper.GetNewID();
|
||||
technicalDisclose.ProjectId = this.CurrUser.LoginProjectId;
|
||||
string unitWorkId = string.Empty;
|
||||
if (unitWork != null)
|
||||
{
|
||||
technicalDisclose.UnitId = unitWork.UnitId;
|
||||
technicalDisclose.UnitWorkId = unitWork.UnitWorkId;
|
||||
unitWorkId = unitWork.UnitWorkId;
|
||||
}
|
||||
technicalDisclose.DataId = this.trWBS.SelectedNodeID;
|
||||
technicalDisclose.DiscloseName = this.trWBS.SelectedNode.Text;
|
||||
technicalDisclose.State = "0"; //未交底
|
||||
technicalDisclose.CompileMan = this.CurrUser.PersonId;
|
||||
technicalDisclose.CompileDate = DateTime.Now;
|
||||
BLL.CQMS_TechnicalDiscloseService.AddTechnicalDisclose(technicalDisclose);
|
||||
ShowNotify("发起成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SelectUnit.aspx?UnitWorkId={0}&DataId={1}", unitWorkId, this.trWBS.SelectedNodeID, "导入 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -279,22 +279,12 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
join y in Funs.DB.WBS_WorkPackage on x.UnitWorkId equals y.UnitWorkId
|
||||
where y.WorkPackageId == this.trWBS.SelectedNodeID
|
||||
select x).FirstOrDefault();
|
||||
var controlItemAndCycle = BLL.ControlItemAndCycleService.GetControlItemAndCycleById(id);
|
||||
Model.Technical_TechnicalDisclose technicalDisclose = new Model.Technical_TechnicalDisclose();
|
||||
technicalDisclose.TechnicalDiscloseId = SQLHelper.GetNewID();
|
||||
technicalDisclose.ProjectId = this.CurrUser.LoginProjectId;
|
||||
string unitWorkId = string.Empty;
|
||||
if (unitWork != null)
|
||||
{
|
||||
technicalDisclose.UnitId = unitWork.UnitId;
|
||||
technicalDisclose.UnitWorkId = unitWork.UnitWorkId;
|
||||
unitWorkId = unitWork.UnitWorkId;
|
||||
}
|
||||
technicalDisclose.DataId = id;
|
||||
technicalDisclose.DiscloseName = controlItemAndCycle.ControlItemContent;
|
||||
technicalDisclose.State = "0"; //未交底
|
||||
technicalDisclose.CompileMan = this.CurrUser.PersonId;
|
||||
technicalDisclose.CompileDate = DateTime.Now;
|
||||
BLL.CQMS_TechnicalDiscloseService.AddTechnicalDisclose(technicalDisclose);
|
||||
ShowNotify("发起成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SelectUnit.aspx?UnitWorkId={0}&DataId={1}", unitWorkId, id, "导入 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user