数据穿透新增页面
This commit is contained in:
@@ -46,12 +46,15 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
superviseCheckReportItems.Clear();
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
if (Request.Params["type"] != "-1")
|
||||
{
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
}
|
||||
|
||||
BLL.ProjectService.InitProjectDropDownList(this.ddlProjectId, true);
|
||||
BLL.UnitService.InitUnitDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, true);
|
||||
|
||||
Funs.FineUIPleaseSelect(this.drpCheckType);
|
||||
this.SuperviseCheckReportId = Request.Params["SuperviseCheckReportId"];
|
||||
var superviseCheckReport = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(this.SuperviseCheckReportId);
|
||||
if (superviseCheckReport != null)
|
||||
@@ -61,6 +64,10 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
{
|
||||
this.dpkCheckDate.Text = string.Format("{0:yyyy-MM-dd}", superviseCheckReport.CheckDate);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(superviseCheckReport.CheckType))
|
||||
{
|
||||
this.drpCheckType.SelectedValue = superviseCheckReport.CheckType;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(superviseCheckReport.ProjectId))
|
||||
{
|
||||
this.ddlProjectId.SelectedValue = superviseCheckReport.ProjectId;
|
||||
@@ -69,7 +76,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
BLL.UnitService.InitUnitDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, true);
|
||||
if (!string.IsNullOrEmpty(superviseCheckReport.UnitId))
|
||||
{
|
||||
this.ddlProjectId.SelectedValue = superviseCheckReport.UnitId;
|
||||
this.ddlUnitId.SelectedValue = superviseCheckReport.UnitId;
|
||||
}
|
||||
}
|
||||
this.txtCheckTeam.Text = superviseCheckReport.CheckTeam;
|
||||
@@ -102,9 +109,11 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
var item = superviseCheckReportItems.FirstOrDefault(x => x.SuperviseCheckReportItemId == Grid1.Rows[i].Values[7].ToString());
|
||||
if (item != null)
|
||||
{
|
||||
CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected");
|
||||
if (item.IsSelected == true)
|
||||
{
|
||||
Grid1.Rows[i].Values[6] = "True";
|
||||
//Grid1.Rows[i].Values[6] = "True";
|
||||
checkField.SetCheckedState(i, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -258,6 +267,11 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("检查类别不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Supervise_SuperviseCheckReport superviseCheckReport = new Model.Supervise_SuperviseCheckReport
|
||||
{
|
||||
SuperviseCheckReportCode = this.txtSuperviseCheckReportCode.Text.Trim()
|
||||
@@ -266,6 +280,10 @@ namespace FineUIPro.Web.ZHGL.Supervise
|
||||
{
|
||||
superviseCheckReport.CheckDate = Convert.ToDateTime(this.dpkCheckDate.Text.Trim());
|
||||
}
|
||||
if (this.drpCheckType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
superviseCheckReport.CheckType = this.drpCheckType.SelectedValue;
|
||||
}
|
||||
if (this.ddlProjectId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
superviseCheckReport.ProjectId = this.ddlProjectId.SelectedValue;
|
||||
|
||||
Reference in New Issue
Block a user