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
// Erp.SerialNo.Update.PRE.ValidateVIN | |
// | |
// IsVehicleRefCat? Custom Condition | |
foreach (var ttSerialRow in ttSerialNo.Where(x => x.Added())) | |
{ | |
bool isVehiclePart = | |
(from p in Db.Part.With(LockHint.NoLock) | |
where p.Company == ttSerialRow.Company | |
&& p.PartNum == ttSerialRow.PartNum |
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
object searchReslts = ProcessCaller.PerformSearch(oTrans.EpiBaseForm, "JobEntryAdapter", "List" /* or Rows */, "JobNum = '" + args.ProposedValue.ToString() + "'"); | |
if (searchReslts is DataSet) | |
{ | |
DataSet searchDS = (DataSet) searchReslts; | |
if (searchDS.Tables[0].Rows.Count > 0) | |
{ | |
string jobNum = searchDS.Tables[0].Rows[0]["JobNum"].ToString(); | |
string partNum = searchDS.Tables[0].Rows[0]["PartNum"].ToString(); |
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
// All types | |
// Production | |
// NonProduction | |
bool _isProd = (this.GetEnvironmentType() == Ice.Lib.Bpm.Model.EnvironmentType.Production) ; |
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
// Populate Job Costing Fields on InvcDtl when the Job is closed | |
// | |
// NOTES: | |
// Usually Job Closing Costs are populated when the Job is closed | |
// however if the Job has been closed before Invoicing the JC Costs | |
// are not populated. The manual is to open the job and close it again. | |
// Hence why this BPM was created to populate the JC Costs without | |
// having to open and close the job. | |
// |
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
SELECT * FROM Erp.KeyLast; | |
SELECT * FROM Erp.CompanySequence; | |
SELECT * FROM Ice.SysSequence; |
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
/** | |
* Initialize the File Trigger Watcher which will monitor the fullFilePath | |
* directory and when the BPM writes a new file it will read the file and | |
* based on the contents of the file we can do certain actions think of it as a | |
* bridge to have the BPM Communicate with our C# Code | |
* | |
* @type Custom Function | |
* @return void | |
*/ | |
private void InitializeFileTriggerWatcher() |
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
FeatureFlags.InAppNotifications = new Guid("79479C59-021B-40C4-A8D3-2F859FD8CD6B"); | |
FeatureFlags.CdcConfigureDeleteProcessedLogs = new Guid("380B0652-1C47-477F-B25F-C4937EB44185"); | |
FeatureFlags.EnableReportTaskRetry = new Guid("2B53219E-16E6-49ED-9195-66449046371F"); | |
FeatureFlags.EnforeceProcessCallingRules = new Guid("056D0F09-7058-4FED-A7D9-5B969D57FE6D"); | |
FeatureFlags.IdentityProvider = new Guid("8FA3AF1A-89B8-4978-8812-7245A02ACFF2"); | |
FeatureFlags.KineticUI = new Guid("1E17815F-1381-4D9E-B1BA-E57FC86625EE"); | |
FeatureFlags.ApiV2 = new Guid("4A9BF629-F65E-415C-BF18-8C10683C56DF"); | |
Add to your .sysconfig |
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
((Control)oTrans.KeyControl).Parent.SelectNextControl((Control)oTrans.KeyControl, true, true, true, true); |
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
// Epicor UBAQ C# - Invoke UBAQ from Customization | |
// Invoke UBAQ from Customization, shows how to add new Rows and then when Update is called they are Mass Updated (I do have Allow Multi Row Update on my BAQ, not sure if it matters). | |
public System.Data.DataSet xyz() | |
{ | |
// Declare and create an instance of the Adapter. | |
DynamicQueryAdapter adapterDynamicQuery = new DynamicQueryAdapter(this.oTrans); | |
adapterDynamicQuery.BOConnect(); | |
// Declare and Initialize Variables |