Skip to content

Instantly share code, notes, and snippets.

@hasokeric
hasokeric / EpicorGetMemoBO.cs
Last active February 27, 2019 08:25
Epicor GetMemo
private string GetMemo(string QuoteNum)
{
//
// Ice.Contracts.Lib.BOReader Must be Added to Assembly
//
Ice.Proxy.Lib.BOReaderImpl bor = WCFServiceSupport.CreateImpl<Ice.Proxy.Lib.BOReaderImpl>((Ice.Core.Session)oTrans.Session, Epicor.ServiceModel.Channels.ImplBase<Ice.Contracts.BOReaderSvcContract>.UriPath);
string whereClause = string.Format(" Key1 = '{0}' and RelatedToFile = 'Quote'", QuoteNum);
DataSet dsMemo = bor.GetRows("Ice:BO:Memo", whereClause, string.Empty);
if (dsMemo.Tables[0].Rows.Count > 0)
@hasokeric
hasokeric / EpicorBPMTips.cs
Created September 11, 2018 11:43
Epicor BPM Tips
//
// BPM Execution
//
Pre-Processing —The actions are executed before the base method is executed. After the actions are finished, the system executes the base method.
Base Processing —The actions are executed in place of the base method. The base method is never executed.
Post-Processing —The actions are executed after the base method has executed completely.
//
// ICE Triggers
@hasokeric
hasokeric / EpicorSHA256OneWayHashing.cs
Created September 2, 2018 02:06
Creating Your Own Epicor Password Hashing - SHA256
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Security.Cryptography;
namespace ConsoleApplication2
{
class Program
@gaearon
gaearon / modern_js.md
Last active June 11, 2024 07:33
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@hasokeric
hasokeric / EpicorOnlineHelpURLs.txt
Last active January 18, 2019 07:14
Epicor Online Help URLs
10.2.200 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.2.200/Help/enu/Standard/snm_enu.htm
10.2.100 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.2.100/Help/enu/Standard/snm_enu.htm
10.1.600 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.1.600/Help/enu/Standard/snm_enu.htm
10.1.500 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.1.500/Help/enu/Standard/snm_enu.htm
10.1.400 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.1.400/Help/enu/Standard/snm_enu.htm
10.0.700 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.0.700/Help/enu/Standard/snm_enu.htm
10.0.600 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.0.600/Help/enu/Standard/snm_enu.htm
9.05.702 - https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%209/9.05/9.05.702/Help/enu/Standar
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
@hasokeric
hasokeric / FormLoadContextValue.cs
Created May 25, 2018 23:44
Accept Launch Opts Context Value
//Gist File: Form Load Context Value
private void ReturnMtlForm_Load(object sender, EventArgs args)
{
btnGetLots.Enabled = false;
if (ReturnMtlForm.LaunchFormOptions.ContextValue != null)
{
// Get passed values
List<object> ctxVal = new List<object>();
@hasokeric
hasokeric / Epicor-LINQ-SQLFuncs.cs
Created May 11, 2018 21:53
BPM Double to String
var partTranRow =
(from ud07 in Db.UD07.With(LockHint.UpdLock)
join pt in Db.PartTran.With(LockHint.NoLock)
on new { ud07.Company, TranNum = ud07.Key1, TranType = "MFG-STK" } equals new { pt.Company, TranNum = System.Data.Objects.SqlClient.SqlFunctions.StringConvert((double)pt.TranNum).Trim(), TranType = pt.TranType }
where ud07.Company == callContextClient.CurrentCompany && ud07.Key3 == sSerialNum
select new { ud07, pt.TranNum, pt.TranType, PartTranCheckBox05 = pt.CheckBox05, pt.LotNum }
).FirstOrDefault();
@hasokeric
hasokeric / Epicor10_Dashboard_HidePanel.cs
Created May 3, 2018 12:56
Epicor 10 Dashboard Customization to Hide/Show Bottom Panel on Other Tabs. Not IDEAL, could use some refactoring and cleanup - but a quick hack.
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Ice.BO;
using Ice.UI;
using Ice.Lib;
using Ice.Adapters;
@hasokeric
hasokeric / Epicor_Tools_List.md
Last active December 20, 2020 14:05
Haso-Epicor-ToolsAdd-Sample

UltraToolbar

1 = MainMenu
2 = Standard Tools
3 = Navigation Toolbar

PopupMenuTool

1 = FileMenu