安全报表增加系统外工时统计
This commit is contained in:
@@ -35,7 +35,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpUnitType, ConstValue.Group_ProjectUnitType, true);
|
||||
BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpIdcardType, "ZHENGJIAN_TYPE", true);
|
||||
this.ProjectUnitId = Request.QueryString["ProjectUnitId"];
|
||||
@@ -86,15 +86,19 @@ namespace FineUIPro.Web.ProjectData
|
||||
this.nbPlanCostB.Text = projectUnit.PlanCostB.ToString();
|
||||
}
|
||||
this.txtContractRange.Text = projectUnit.ContractRange;
|
||||
if (projectUnit.IsSynchro==true)
|
||||
if (projectUnit.IsSynchro == true)
|
||||
{
|
||||
this.ckIsSynchro.Checked = true;
|
||||
}
|
||||
if (projectUnit.IsOutSideUnit == true)
|
||||
{
|
||||
this.ckIsOutSideUnit.Checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 保存数据
|
||||
/// </summary>
|
||||
@@ -122,6 +126,14 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
newProjectUnit.IsSynchro = null;
|
||||
}
|
||||
if (this.ckIsOutSideUnit.Checked)
|
||||
{
|
||||
newProjectUnit.IsOutSideUnit = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
newProjectUnit.IsOutSideUnit = null;
|
||||
}
|
||||
BLL.ProjectUnitService.UpdateProjectUnit(newProjectUnit);
|
||||
Model.Base_Unit unit = BLL.UnitService.GetUnitByUnitId(newProjectUnit.UnitId);
|
||||
if (unit != null)
|
||||
@@ -143,6 +155,6 @@ namespace FineUIPro.Web.ProjectData
|
||||
// 2. 关闭本窗体,然后回发父窗体
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user