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
| // --------------------------------------------------------------------------------------- | |
| // HELPER FUNCTIONS | |
| // --------------------------------------------------------------------------------------- | |
| /** | |
| * Rounds & Converts a value | |
| * | |
| * @type Custom Function | |
| * @return decimal |
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
| use the Framework: | |
| Epicor.Mfg.UI.FrameWork.FormFunctions.IsRunningInIDE() | |
| IsNum | |
| IsDate | |
| GetImageFromLocalList | |
| GetSessionFromSender | |
| GetAvailableAdapters | |
| buildKeyList | |
| SendShortcutListToEmail |
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
| /* bling.js */ | |
| window.$ = document.querySelectorAll.bind(document) | |
| Node.prototype.on = window.on = function (name, fn) { | |
| this.addEventListener(name, fn) | |
| } | |
| NodeList.prototype.__proto__ = Array.prototype |
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
| function get_quarter_dates_array($quarter) | |
| { | |
| $date_start = "%Y-01-01"; | |
| $date_end = "%Y-03-31"; | |
| switch ($quarter) | |
| { | |
| case 1: | |
| $date_start = "%Y-01-01"; | |
| $date_end = "%Y-03-31"; |
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
| // ************************************************** | |
| // Custom code for UD100Form | |
| // Created: 2/11/2014 10:24:37 AM | |
| // ************************************************** | |
| using System; | |
| using System.Drawing; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Diagnostics; | |
| using System.Windows.Forms; |
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 Epicor.Customization.Bpm; | |
| using Epicor.Data; | |
| using Epicor.Hosting; | |
| using Epicor.Utilities; | |
| using Erp.Contracts; | |
| using Erp.Tables; | |
| using Erp.Tablesets; | |
| using Ice; | |
| using Ice.Contracts; | |
| using Ice.ExtendedData; |
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
| OUTPUT TO "C:\quotes.csv" PAGE-SIZE 0. | |
| EXPORT DELIMITER ";" | |
| "QuoteNum" | |
| "ROWID". | |
| FOR EACH QuoteHed NO-LOCK: | |
| EXPORT DELIMITER ";" | |
| string(QuoteHed.QuoteNum) | |
| string(ROWID(QuoteHed)). | |
| END. |
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
| #!/usr/bin/env php | |
| <?php | |
| // Script to postpone your own email. Parses IMAP folders and moves emails to a folder named "Today" | |
| // Run this from a crontab, for example at 6 AM | |
| // BSD License | |
| // (C) Carlos Fenollosa, 2011-2016 | |
| // Read more about this script: http://cfenollosa.com/blog/a-simple-script-to-postpone-your-own-email.html | |
| // Please leave comments and feedback for bugs and ideas! |
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
| 'Called for every label that is printed. | |
| '================================================ | |
| ' Used to Set All Label Changes at once for speed | |
| '================================================ | |
| Dim btNamedSubString | |
| btNamedSubString = "" | |
| '================================================ |
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
| public static string ConvertSecondsToTime(int secondsSinceMidnight) | |
| { | |
| // Initialize Variables | |
| int hour = 0, minutes = 0, seconds = 0; | |
| decimal hourSecondsLeftOver = 0; | |
| // Get Hour | |
| hour = (int) secondsSinceMidnight / 3600; | |
| hourSecondsLeftOver = (decimal) secondsSinceMidnight - (hour * 3600); |