This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
Screen screen = new Screen(); | |
screen.CookieContainer = new System.Net.CookieContainer(); | |
screen.Timeout = 10000000; | |
screen.Login("admin@Demo", "123"); | |
string invoiceNbr = "AR004916"; | |
Content schema = screen.GetSchema(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using APQuickCheck = PX.Objects.AP.Standalone.APQuickCheck; | |
using CRLocation = PX.Objects.CR.Standalone.Location; | |
using IRegister = PX.Objects.CM.IRegister; | |
using PX.Common; | |
using PX.Data.EP; | |
using PX.Data; | |
using PX.Objects.AP.BQL; | |
using PX.Objects.AP; | |
using PX.Objects.CM; | |
using PX.Objects.Common; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<data-set> | |
<relations format-version="3" relations-version="20160530" main-table="GIDesign"> | |
<link from="GIFilter (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GIGroupBy (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GIMassAction (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GIMassUpdateField (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GINavigationScreen (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GINavigationParameter (DesignID, ScreenID)" to="GINavigationScreen (DesignID, ScreenID)" /> | |
<link from="GIOn (DesignID, RelationNbr)" to="GIRelation (DesignID, LineNbr)" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmployeeActivitiesEntry_Extension : PXGraphExtension<EmployeeActivitiesEntry> | |
{ | |
public PXAction<EmployeeActivitiesEntry.PMTimeActivityFilter> GenerateTimeCards; | |
[PXButton(CommitChanges = true)] | |
[PXUIField(DisplayName = "Generate Time Cards")] | |
protected virtual IEnumerable generateTimeCards(PXAdapter adapter) | |
{ | |
EmployeeActivitiesEntry.PMTimeActivityFilter filter = Base.Filter.Current; | |
if (filter.OwnerID == null) return adapter.Get(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using PX.Data; | |
using PX.Objects.AR; | |
using PX.SM; | |
using PX.Objects.EP; | |
namespace PX.Objects.SO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<data-set> | |
<relations format-version="3" relations-version="20160530" main-table="GIDesign"> | |
<link from="GIFilter (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GIGroupBy (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GIMassAction (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GIMassUpdateField (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GINavigationScreen (DesignID)" to="GIDesign (DesignID)" /> | |
<link from="GINavigationParameter (DesignID, ScreenID)" to="GINavigationScreen (DesignID, ScreenID)" /> | |
<link from="GIOn (DesignID, RelationNbr)" to="GIRelation (DesignID, LineNbr)" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PXReportRequiredException ex = null; | |
if(row.ARRefNumber != null) | |
{ | |
Dictionary<string, string> dictionary = new Dictionary<string, string>(); | |
dictionary["DocType"] = row.ARDocType; | |
dictionary["RefNbr"] = row.ARRefNumber; | |
ex = PXReportRequiredException.CombineReport(ex, row.ARBatchNumber == null ? "AR610500" : "AR622000", dictionary, false); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ARReleaseProcessExt : PXGraphExtension<ARReleaseProcess> | |
{ | |
private WeakReference<JournalEntry> je; | |
public override void Initialize() | |
{ | |
base.Initialize(); | |
PXGraph.InstanceCreated.AddHandler<JournalEntry>(delegate(JournalEntry graph) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using PX.Data; | |
using Customization; | |
namespace PX.Objects.PM | |
{ | |
public class Initialization : CustomizationPlugin | |
{ | |
public override void OnPublished() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using PX.Common; | |
using PX.Data.EP; | |
using PX.Data; | |
using PX.Objects.CM; | |
using PX.Objects.CR; | |
using PX.Objects.CS; | |
using PX.Objects.GL; | |
using PX.Objects; | |
using System.Collections.Generic; | |
using System; |