Skip to content

Instantly share code, notes, and snippets.

View smarenich's full-sized avatar

Sergey Marenich smarenich

View GitHub Profile
#region Processing
public static void ProcessRecords(List<ARRegister> records)
{
PXGraph graph = new PXGraph();
Boolean anyFailed = false;
foreach (ARRegister rec in records)
{
PXProcessing.SetCurrentItem(rec);
try
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using PX.Data;
using PX.Objects.AR;
using PX.Objects.GL;
using PX.Objects.CS;
using PX.Objects.CR;
using PX.Objects.SO;
<px:PXSplitContainer runat="server" SplitterPosition="250" ID="splitConditions" Orientation="Horizontal">
<AutoSize Enabled="true" Container="Window" />
<Template1>
<px:PXGrid runat="server" ID="grid11" Height="150px" SkinID="DetailsInTab" Width="100%" SyncPosition="True">
<AutoSize Enabled="True" MinHeight="150" />
<Levels>
<px:PXGridLevel DataMember="DataMember1">
<Columns></Columns>
</px:PXGridLevel>
</Levels>
using System;
using PX.Data;
using PX.Common;
namespace PX.Objects.CS
{
public class MyAutoNumberAttribute: PX.Objects.CS.AutoNumberAttribute
{
public MyAutoNumberAttribute(Type doctypeField, Type dateField)
:base(doctypeField, dateField)
using System;
using PX.Objects;
using PX.Data;
namespace PX.Data
{
public class LEPMaint_Extension : PXGraphExtension<LEPMaint>
{
#region Event Handlers
public PXAction<PX.Data.ListEntryPoint> ToggleActivation;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Linq;
using PX.Data;
using PX.Common;
using PX.Objects.AP.BQL;
using PX.Objects.CM;
public class SOOrderEntry_Extension : PXGraphExtension<SOOrderEntry>
{
#region Event Handlers
public PXAction<PX.Objects.SO.SOOrder> CreateReceipt;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "Create IN Receipt")]
protected void createReceipt()
{
INReceiptEntry graph = PXGraph.CreateInstance<INReceiptEntry>();
using System;
using PX.Data;
namespace Test
{
public class TwoGrids : PXGraph<TwoGrids, TwoGrids.MasterTable>
{
public PXFilter<MasterTable> MasterView;
public PXFilter<DetailsTableA> DetailsViewA;
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>DAC Field Template</Title>
<Author>Acumatica</Author>
<Description>Acumatica DAC Field Placeholder</Description>
<Shortcut>dac</Shortcut>
</Header>
if exists(select * from sys.triggers where parent_id = object_id('Users') and name = 'SuncUserPassword')
Drop trigger dbo.SuncUserPassword
GO
Create trigger dbo.SuncUserPassword on dbo.Users for Update as
Begin
declare @companyID int
select @companyID = CompanyID from inserted
Update u Set Password = i.Password from [dbo].[Users] u