本文整理汇总了C#中PXCache.GetStatus方法的典型用法代码示例。如果您正苦于以下问题:C# PXCache.GetStatus方法的具体用法?C# PXCache.GetStatus怎么用?C# PXCache.GetStatus使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PXCache
的用法示例。
在下文中一共展示了PXCache.GetStatus方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Customer_RowSelected
protected virtual void Customer_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
{
Customer cust = e.Row as Customer;
if (cust != null && sender.GetStatus(cust) == PXEntryStatus.Notchanged)
{
if (cust.GroupMask != null)
{
foreach (byte b in cust.GroupMask)
{
if (b != 0x00)
{
cust.Included = true;
return;
}
}
}
else
{
cust.Included = true;
}
}
}
示例2: InventoryItem_RowSelected
protected virtual void InventoryItem_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
{
InventoryItem item = e.Row as InventoryItem;
if (item != null && sender.GetStatus(item) == PXEntryStatus.Notchanged)
{
if (item.GroupMask != null)
{
foreach (byte b in item.GroupMask)
{
if (b != 0x00)
{
item.Included = true;
return;
}
}
}
else
{
item.Included = true;
}
}
}
示例3: INItemClass_RowSelected
protected virtual void INItemClass_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
{
INItemClass cLass = e.Row as INItemClass;
PX.SM.RelationGroup group = Group.Current;
if (cLass != null && cLass.GroupMask != null && group != null && group.GroupMask != null
&& sender.GetStatus(cLass) == PXEntryStatus.Notchanged)
{
for (int i = 0; i < cLass.GroupMask.Length && i < group.GroupMask.Length; i++)
{
if (group.GroupMask[i] != 0x00 && (cLass.GroupMask[i] & group.GroupMask[i]) == group.GroupMask[i])
{
cLass.Included = true;
}
}
}
}
示例4: INSite_RowSelected
protected virtual void INSite_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
{
INSite site = e.Row as INSite;
PX.SM.RelationGroup group = Group.Current;
if (site != null && site.GroupMask != null && group != null && group.GroupMask != null
&& sender.GetStatus(site) == PXEntryStatus.Notchanged)
{
for (int i = 0; i < site.GroupMask.Length && i < group.GroupMask.Length; i++)
{
if (group.GroupMask[i] != 0x00 && (site.GroupMask[i] & group.GroupMask[i]) == group.GroupMask[i])
{
site.Included = true;
}
}
}
}
示例5: Vendor_RowSelected
protected virtual void Vendor_RowSelected(PXCache sender, PXRowSelectedEventArgs e)
{
Vendor vend = e.Row as Vendor;
if (vend != null && sender.GetStatus(vend) == PXEntryStatus.Notchanged)
{
if (vend.GroupMask != null)
{
foreach (byte b in vend.GroupMask)
{
if (b != 0x00)
{
vend.Included = true;
return;
}
}
}
else
{
vend.Included = true;
}
}
}
示例6: SOInvoice_RowSelecting
protected virtual void SOInvoice_RowSelecting(PXCache sender, PXRowSelectingEventArgs e)
{
if (e.Row != null && e.IsReadOnly == false && ((SOInvoice)e.Row).CuryPaymentTotal == null)
{
using (new PXConnectionScope())
{
bool IsReadOnly = (sender.GetStatus(e.Row) == PXEntryStatus.Notchanged);
PXFormulaAttribute.CalcAggregate<ARAdjust.curyAdjdAmt>(Adjustments.Cache, e.Row, IsReadOnly);
sender.RaiseFieldUpdated<SOInvoice.curyPaymentTotal>(e.Row, null);
PXDBCurrencyAttribute.CalcBaseValues<SOInvoice.curyPaymentTotal>(sender, e.Row);
}
}
}