This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
This file contains hidden or 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
// <auto-generated> | |
// This code was generated by a tool. Any changes made manually will be lost | |
// the next time this code is regenerated. | |
// </auto-generated> | |
using (var updater = this.getDataUpdater("Erp", "LaborDtl")) | |
{ | |
var ttResultQuery = ttResults | |
.Where(row => !string.IsNullOrEmpty(row.RowMod) && row.RowMod != "P"); |
This file contains hidden or 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
this.grdPaymentSched.DisplayLayout.BandsSerializer.Add(ultraGridBand1); | |
this.grdPaymentSched.DisplayLayout.MaxBandDepth = 1; | |
this.grdPaymentSched.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False; | |
this.grdPaymentSched.DisplayLayout.Override.AllowMultiCellOperations = ((Infragistics.Win.UltraWinGrid.AllowMultiCellOperation)((Infragistics.Win.UltraWinGrid.AllowMultiCellOperation.Copy | Infragistics.Win.UltraWinGrid.AllowMultiCellOperation.CopyWithHeaders))); | |
this.grdPaymentSched.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle; | |
this.grdPaymentSched.DisplayLayout.ViewStyle = Infragistics.Win.UltraWinGrid.ViewStyle.SingleBand; | |
this.grdPaymentSched.DocCurrencyCols = new string[0]; | |
this.grdPaymentSched.EpiAllowPaste = false; | |
this.grdPaymentSched.EpiAllowPasteInsert = false; | |
this.grdPaymentSched.EpiAutoFit = false; |
This file contains hidden or 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
/// <summary> | |
/// Helper to check if Part Number Generator Module is Enabled | |
/// </summary> | |
public bool GetIsPNGEnabled() | |
{ | |
MessageBox.Show(Convert.ToString(GetCompanyValue<bool>("XaSyst", "PNGEnabled_c"))); | |
MessageBox.Show(GetCompanyValue<string>("XaSyst", "DefaultPlant")); | |
string sValue; | |
if (TryGetCompanyValue<string>("XaSyst", "DefaultPlant", out sValue)) |
This file contains hidden or 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
if (!string.IsNullOrEmpty(id)) | |
{ | |
int counter = 0; | |
string sPartNum = id + "-"; | |
bool recSelected; | |
//string whereClause = "[PartList].[PartNum] = (SELECT TOP 1 [PartNum] FROM [Erp].[Part] WHERE [Part].[Company] = [PartList].[Company] AND [Part].[PartNum] LIKE '" + sPartNum + "%' and 12345=12345 ORDER BY [PartNum] DESC)"; | |
string whereClause = "PartNum LIKE '" + sPartNum + "%' BY CreatedOn DESC"; | |
//nextSeq.ToString().PadLeft(5, '0'); | |
// Current company only |
This file contains hidden or 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, "SysAgentAdapter", "Rows", string.Empty); | |
if (searchReslts is DataSet) { | |
DataSet searchDS = (DataSet) searchReslts; | |
if (searchDS.Tables[0].Rows.Count > 0) { | |
username = searchDS.Tables["SysAgent"].Rows[0]["SysUserID"].ToString(); | |
password = searchDS.Tables["SysAgent"].Rows[0]["SysPassWord"].ToString(); | |
} | |
} |