A set of gists for re-use throughout various Epicor customizations.
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
private void SetExtendedProperties() | |
{ | |
// Begin Wizard Added EpiDataView Initialization | |
EpiDataView edvUDCodes = ((EpiDataView)(this.oTrans.EpiDataViews["UDCodes"])); | |
// End Wizard Added EpiDataView Initialization | |
// Begin Wizard Added Conditional Block | |
if (edvUDCodes.dataView.Table.Columns.Contains("Number01")) | |
{ | |
// Begin Wizard Added ExtendedProperty Settings: edvUDCodes-Number01 |
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
private void grdName_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args) | |
{ | |
foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn col in grdName.DisplayLayout.Bands[0].Columns) | |
{ | |
if(col.Key == "DB_Col_Name_1") | |
{ | |
col.Header.Caption = "Column Name 1"; | |
col.Width = 100; | |
col.Header.VisiblePosition = 1; | |
} |
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
var myShipVia = (from ShipVia_row in ttShipHead | |
where ShipVia_row.ShipViaCode=="12345" | |
select ShipVia_row).FirstOrDefault(); | |
if (myShipVia!=null) | |
{ | |
ShipViaDisabled = myShipVia.UDField<bool>("Disabled_c"); | |
} | |
/* |
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
// Add a reference to Ice.Core.Session dll | |
private string company; | |
private string plantId; | |
private string userId; | |
public void InitializeCustomCode() | |
{ | |
... | |
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
// Created QuoteAdt Record which lists changes we made | |
// | |
// 12/13/2016 HK: Initial Epicor 10 Conversion | |
// 12/26/2016 HK: Final Conversion Tasks - Ready for E10 | |
// | |
const string bpmName = "Quote.Update.PRE.CreateAuditRecord"; | |
Ice.Diagnostics.Log.WriteEntry(String.Format("[ {0} ] START", bpmName)); | |
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
private void oTrans_adapter_BeforeAdapterMethod(object sender, BeforeAdapterMethodArgs args) | |
{ | |
switch (args.MethodName) | |
{ | |
case "GetRows": | |
{ | |
System.Collections.ArrayList myCols; | |
EpiSearchColumn col1; | |
// Paramters: Data Column Name, Column Header Text, Width, Is Result, Position | |
col1 = new EpiSearchColumn("Key1", "a", -1, true, 0); |
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
using System.Reflection; | |
public class Script | |
{ | |
Infragistics.Win.UltraWinDock.UltraDockManager dock; | |
public void InitializeCustomCode() | |
{ |
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
JobEntryAdapter adapterJobEntry = new JobEntryAdapter(this.oTrans); | |
adapterJobEntry.BOConnect(); | |
DataSet dsJobDetails = adapterJobEntry.GetData(jobNum); | |
DataRow dr = adapterJobEntry.JobEntryData.JobHead.Rows[0]; | |
dr.BeginEdit(); | |
dr["FieldName_c"] = newValue; |
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
/* | |
Get an Epicor Client from WCF | |
Required Dll: | |
Epicor.ServiceModel | |
Erp.Contract.BO.Customer (or whatever BO you need) | |
System.ServiceModel | |
Usage: |