[プロジェクトタスク]画面に対して、グリッドを付けた新しいタブが追加されました。カスタムタブでグリッドの行が消える
PXidをグラフ拡張に対してフィルタ処理するために使用するprojectidとtaskidを保持するカスタムテーブルを作成しました。
タブに切り替えると、行が正しく表示され、1秒後に消えますか?それはCurrent.TaskIdとCurrent.ProjectIdのような値があるかのようです。私はここで
public class ProjectTaskEntryExt : PXGraphExtension<ProjectTaskEntry>
{
public PXSelect<UsrMAXXTaskEmployees,
Where<UsrMAXXTaskEmployees.projectID, Equal<Current<PMTask.projectID>>,
And<UsrMAXXTaskEmployees.taskID, Equal<Current<PMTask.taskID>>>>> BudgetEmployees;
#region Event Handlers
protected void UsrMAXXTaskEmployees_RowInserting(PXCache cache, PXRowInsertingEventArgs e, PXRowInserting InvokeBaseHandler)
{
if (InvokeBaseHandler != null)
InvokeBaseHandler(cache, e);
var row = (UsrMAXXTaskEmployees)e.Row;
if (row != null)
{
row.ProjectID = Base.Task.Current.ProjectID;
row.TaskID = Base.Task.Current.TaskID;
}
}
public override void Initialize()
{
base.Initialize();
}
#endregion
}
拡張
マイグラフを、それを設定する方法をHERESに
を、私は100にグリッド上の高さを設定し、テーブルのための私のカスタムDAC
public class UsrMAXXTaskEmployees : IBqlTable
{
#region Selected
public abstract class selected : IBqlField
{ }
[PXBool]
[PXUIField(DisplayName = "Selected")]
public virtual bool? Selected { get; set; }
#endregion
#region ID
public abstract class iD : PX.Data.IBqlField
{
}
protected int? _ID;
[PXDBIdentity(IsKey = true)]
[PXUIField(Enabled = false)]
public virtual int? ID
{
get
{
return this._ID;
}
set
{
this._ID = value;
}
}
#endregion
#region EmployeeID
public abstract class employeeId : PX.Data.IBqlField
{
}
protected String _EmployeeId;
[PXDBString()]
[PXUIField(DisplayName = "Employee")]
[PXSelector(
typeof(Search<PX.Objects.EP.EPEmployee.acctCD>),
typeof(PX.Objects.EP.EPEmployee.acctCD),
typeof(PX.Objects.EP.EPEmployee.acctName),
DescriptionField = typeof(PX.Objects.EP.EPEmployee.acctName))]
public virtual String EmployeeId
{
get
{
return this._EmployeeId;
}
set
{
this._EmployeeId = value;
}
}
#endregion
#region StartDate
public abstract class startDate : PX.Data.IBqlField
{
}
protected DateTime? _StartDate;
[PXDBDate()]
[PXDefault(typeof(AccessInfo.businessDate))]
[PXUIField(DisplayName = "Start Date")]
public virtual DateTime? StartDate
{
get
{
return this._StartDate;
}
set
{
this._StartDate = value;
}
}
#endregion
#region EndDate
public abstract class endDate : PX.Data.IBqlField
{
}
protected DateTime? _EndDate;
[PXDBDate()]
[PXUIField(DisplayName = "End Date")]
public virtual DateTime? EndDate
{
get
{
return this._EndDate;
}
set
{
this._EndDate = value;
}
}
#endregion
#region ProjectID
public abstract class projectID : PX.Data.IBqlField
{
}
protected int? _ProjectID;
[PXDBInt()]
[PXDBDefault(typeof(PX.Objects.PM.PMProject.contractID))]
[PXUIField(DisplayName = "Project")]
public virtual int? ProjectID
{
get
{
return this._ProjectID;
}
set
{
this._ProjectID = value;
}
}
#endregion
#region TaskID
public abstract class taskID : PX.Data.IBqlField
{
}
protected int? _TaskID;
[PXDBInt()]
[PXDefault(0)]
[PXUIField(DisplayName = "Task")]
public virtual int? TaskID
{
get
{
return this._TaskID;
}
set
{
this._TaskID = value;
}
}
#endregion
}
はい、ありがとう – GrayFoxNZ