当前位置: 首页>>代码示例>>C#>>正文


C# PXCache.GetStatus方法代码示例

本文整理汇总了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;
				}
			}
		}
开发者ID:PavelMPD,项目名称:SimpleProjects,代码行数:22,代码来源:ARAccess.cs

示例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;
				}
			}
		}
开发者ID:PavelMPD,项目名称:SimpleProjects,代码行数:22,代码来源:INAccess.cs

示例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;
					}
				}
			}
		}
开发者ID:PavelMPD,项目名称:SimpleProjects,代码行数:16,代码来源:INAccess.cs

示例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;
					}
				}
			}
		}
开发者ID:PavelMPD,项目名称:SimpleProjects,代码行数:16,代码来源:INAccess.cs

示例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;
				}
			}
		}
开发者ID:PavelMPD,项目名称:SimpleProjects,代码行数:22,代码来源:APAccess.cs

示例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);
				}
			}
		}
开发者ID:PavelMPD,项目名称:SimpleProjects,代码行数:14,代码来源:SOInvoiceEntry.cs


注:本文中的PXCache.GetStatus方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。