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 SPS_OrderToCashSetup : CustomizationPlugin | |
{ | |
//This method executed right after website files were updated, but before website was restarted | |
//Method invoked on each cluster node in cluster environment | |
//Method invoked only if runtimecompilation is enabled | |
//Do not access custom code published to bin folder, it may not be loaded yet | |
public override void OnPublished() | |
{ | |
this.WriteLog("OnPublished Event"); | |
} |
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
#region Constructor | |
public ISPSOut846SendProcess() | |
{ | |
Customers.SetProcessAllCaption("Send All"); | |
Customers.SetProcessCaption("Send"); | |
Customers.SetProcessDelegate(SendData); | |
ISPSCustomerSettings settings = CustomerSettings.Current; | |
if (!(settings.OutboundInventoryAdviceEnabled ?? false)) | |
{ | |
throw new PXSetupNotEnteredException(ISPSMessages.FeatureNotEnbabled, typeof(ISPSCustomerSettings), "Outbound 846"); |
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
try | |
{ | |
new_package = Packages.Insert(new_package); | |
} | |
catch (Exception ex) | |
{ | |
PXProcessing<SOShipment>.SetError(RowIndex, ex.Message)); | |
return false; | |
} | |
//Uh-oh |
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
/*************************** | |
Check_Field_Lengths_InsertUpdate - Check incoming data for excessive string lengths and then insert/update. | |
Inputs | |
myCache - Data View Cache | |
mylist - List of DAC objects that corresponds to the myCache | |
Patrick Chen SPS Commerce | |
02-2022 | |
***************************/ |
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 void Test2() | |
{ | |
//Method I | |
foreach (var cust in PXSelect<BAccount, Where<ISPSCustomerExtension.iSPSEDICust, Equal<True>>>.Select(this)) | |
{ | |
foreach (BAccount child in | |
PXSelect<BAccount, Where<BAccount.parentBAccountID, Equal<Required<BAccount.parentBAccountID>>>> | |
.Select(this, mycustomer.BAccountID)) | |
{ | |
} |
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 void Test() | |
{ | |
//Method I | |
var soLineSplitsLinkedWithCurrentPO = | |
SelectFrom<SOLineSplit> | |
.Where<SOLineSplit.pOType.IsEqual<@P.AsString.ASCII>.And<SOLineSplit.pONbr.IsEqual<@P.AsString>>> | |
.AggregateTo<GroupBy<SOLineSplit.orderType>, GroupBy<SOLineSplit.orderNbr>> | |
.View.Select(this, row.OrderType, row.OrderNbr); | |
foreach (var item in soLineSplitsLinkedWithCurrentPO) | |
{ } |
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
/*************************** | |
DatabaseOperations - Code for communicating with MS Sql Server in order to perform a restore from backup. | |
Patrick Chen SPS Commerce | |
08-2020 | |
***************************/ | |
namespace TestAcumatica | |
{ | |
class DatabaseOperations |
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
[Serializable] | |
[PXCacheName("Warehouse Trading Partner")] | |
[PXTable(typeof(INSite.siteID), IsOptional = true)] | |
public class ISPSMapadocINSiteExtension : PXCacheExtension<INSite> | |
{ | |
#region Siteid | |
[PXDBInt(IsKey = true)] | |
[PXUIField(DisplayName = "Siteid")] | |
public virtual int? Siteid { get; set; } | |
public abstract class siteid : PX.Data.BQL.BqlInt.Field<siteid> { } |
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
/*************************** | |
Mod_RestoreDB - This class encapsulates the process of restoring Acumatica instance to clean state | |
1. Unpublish customizations to remove Web elements | |
2. Restore db backup | |
3. Log into the site | |
Patrick Chen SPS Commerce | |
04-2020 | |
***************************/ | |
namespace TestAcumatica |
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
/*************************** | |
Mod_SetupVars - Codebase that will tale config inputs and create variable object | |
Patrick Chen SPS Commerce | |
04-2020 | |
***************************/ | |
namespace TestAcumatica | |
{ | |
public class Mod_SetupVars |
NewerOlder