20221019 人员派遣功能实现
This commit is contained in:
@@ -7,21 +7,6 @@ namespace FineUIPro.Web.Person
|
||||
{
|
||||
public partial class DepartPerson : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 页面
|
||||
/// </summary>
|
||||
//public int? PageSize
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return (int?)ViewState["PageSize"];
|
||||
// }
|
||||
// set
|
||||
// {
|
||||
// ViewState["PageSize"] = value;
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
@@ -63,6 +48,18 @@ namespace FineUIPro.Web.Person
|
||||
ShowNotify("您没有权限!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
if (commandName == "dispatch")
|
||||
{
|
||||
if (!this.btnMenuEdit.Hidden)
|
||||
{
|
||||
////人员直接派遣时候
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectPersonEdit.aspx?PersonId={0}&Type=P", personId, "查看 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("您没有权限!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
else if (commandName == "details")
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("PersonView.aspx?PersonId={0}", personId, "查看 - ")));
|
||||
@@ -134,6 +131,7 @@ namespace FineUIPro.Web.Person
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
this.btnMenuDispatch.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
@@ -302,5 +300,30 @@ namespace FineUIPro.Web.Person
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 派遣
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDispatch_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
var getPerson = Person_PersonsService.GetPerson_PersonsById(Grid1.SelectedRowID);
|
||||
if (getPerson != null && getPerson.IsPost == true && getPerson.CurrentProjectId == null)
|
||||
{
|
||||
////人员直接派遣时候
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ProjectPersonEdit.aspx?PersonId={0}&Type=P", Grid1.SelectedRowID, "查看 - ")));
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInParent("请选择在岗且不在项目的人员派遣!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user