成达修改20230724
This commit is contained in:
@@ -392,27 +392,27 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
this.EditData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
private void EditData()
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
private void EditData()
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
this.PersonId = Grid1.SelectedRowID;
|
||||
string id = this.tvProjectAndUnit.SelectedNodeID;
|
||||
string[] str = id.Split('|');
|
||||
if (str.Count() > 1)
|
||||
{
|
||||
string unitId = id.Split('|')[0];
|
||||
string projectId = id.Split('|')[1];
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonListEdit.aspx?PersonId={0}&&ProjectId={1}&&UnitId={2}", this.PersonId, projectId, unitId, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
this.PersonId = Grid1.SelectedRowID;
|
||||
var person = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.PersonId == PersonId);
|
||||
|
||||
if (person != null)
|
||||
{
|
||||
string unitId = person.UnitId;
|
||||
string projectId = person.ProjectId;
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonListEdit.aspx?PersonId={0}&&ProjectId={1}&&UnitId={2}", this.PersonId, projectId, unitId, "编辑 - ")));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid双击事件
|
||||
|
||||
Reference in New Issue
Block a user