Skip to content

Instantly share code, notes, and snippets.

View hasokeric's full-sized avatar
👋

Haso Keric hasokeric

👋
View GitHub Profile
/**************************************************************************
* OSM2GEO - OSM to GeoJSON converter
* OSM to GeoJSON converter takes in a .osm XML file as input and produces
* corresponding GeoJSON object.
*
* AUTHOR: P.Arunmozhi <aruntheguy@gmail.com>
* DATE : 26 / Nov / 2011
* LICENSE : WTFPL - Do What The Fuck You Want To Public License
* LICENSE URL: http://sam.zoy.org/wtfpl/
*
Event::listen('404', function()
{
$username = URI::segment(1);
$user = User::where_username($username)
->where_type('account')
->first();
if ($user != null) {
if ($user->username != '') {
DEF VAR vWorkstation AS CHAR NO-UNDO.
FIND FIRST LicUser WHERE LicUser.CurUserID = dcd-userid NO-LOCK.
ASSIGN vWorkstation = STRING(LicUser.ClientComputerName) + " " + STRING(LicUser.ClientTerminalID).
ASSIGN ttJobTravParam.WorkstationID = vWorkstation.
@hasokeric
hasokeric / gist:10378963
Created April 10, 2014 12:53
Epicor - Checking Part Details in Order Entry
// **************************************************
// Custom code for SalesOrderForm
// Created: 4/9/2014 7:29:23 AM
// **************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Epicor.Mfg.BO;

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
// Execute BAQ with parameter
using (var session = new Epicor.Mfg.Core.Session("user", "secret", "AppServerDC://server:port"))
{
// DynamnicQuery for BAQ
var dynamicQuery = new Epicor.Mfg.BO.DynamicQuery(session.ConnectionPool);
// Build Parameters DS
QueryExecutionDataSet executionDS = new QueryExecutionDataSet();
// Actual parameter row
@hasokeric
hasokeric / Epicor UD Panel Titles
Created March 23, 2015 18:55
Epicor Change UD Panel Titles
/**
* Change Epicor Panel Default titles
*
* @type Custom Function
* @return void
*/
public void ChangePanelTitles()
{
// Initialize Variables for Title Changing
Infragistics.Win.UltraWinDock.DockableWindow dockWindow;
@hasokeric
hasokeric / Epicor KeyField
Created March 23, 2015 18:57
Epicor KeyField Tab or Enter Action
/**
* Add Support for the KeyField to trigger something
* when the keyboard is triggered. (Does not come out of the box)
*
* @type Custom Function
* @return void
*/
private void txtKeyField_KeyDown(object sender, System.Windows.Forms.KeyEventArgs args)
{
@hasokeric
hasokeric / Epicor EpiConsole Debugging
Created March 23, 2015 18:58
EpiConsole shows a Command Prompt Window for Debugging purposes
internal static class EpiConsole
{
public static void Start()
{
IntPtr hw = GetConsoleWindow();
if (hw == IntPtr.Zero) AllocConsole();
Console.Clear();
ShowWindow(hw, 8);
Debug.Listeners.Clear();
TextWriterTraceListener writer = new TextWriterTraceListener(System.Console.Out);
@hasokeric
hasokeric / Epicor Check Negative Inventory
Created March 23, 2015 19:00
Epicor oTrans.adapter.NegativeInventoryTest
/**
* Check for Negative Inventory, Epicor does Check for this however we have no control
* wether we should play the ERROR sound or not unless we check and play the sound
* before Epicor makes a Dialog Box appear
*
* @var partNum
* @var lotNum
* @var qty
* @type Custom Function
* @return bool