Skip to content

Instantly share code, notes, and snippets.

View dperussina's full-sized avatar

Daniel Perussina dperussina

  • FragilePAK
  • Unknown
View GitHub Profile
-- ================================================
-- Template generated from Template Explorer using:
-- Create Procedure (New Menu).SQL
--
-- Use the Specify Values for Template Parameters
-- command (Ctrl-Shift-M) to fill in the parameter
-- values below.
--
-- This block of comments will not be included in
-- the definition of the procedure.
var orders = [1243, 567, 98978]
var orderCount = orders.length - 1;
var cache = [];
// This version will apply duplicate messages
orders.forEach(function(element, iteration, array) {
// Gets All messages for each Child
cache = GetAllMessages(orders[itteration]);
// Applies messages to all orders every iteration
ApplyMessagesToOrders(cache);
var dev = false;
module.exports.get = function (url, callback) {
var options = {
type: 'GET',
// url: 'http://rating.agentgrid.net' + url,
dataType: 'json',
success: success,
error: error
};
if(dev == true){
//1000 rows
xhr.get('URL', function(err, data){
if(err){
//do this
return;
}
buildTable(data);
{
"ldWindow": {
"startDate": "2017-10-07",
"startTime": "09:00",
"endDate": "2017-10-07",
"endTime": "17:00"
},
"ulWindow": {
"startDate": "2017-10-09",
"startTime": "09:00",
DECLARE @orders TABLE (
Id varchar(26)
)
INSERT INTO @orders
VALUES ('Pro1'), ('PRO2'); --replace this with Pro#'s
SELECT
ordr.PartnerPrimaryOrderID,
ordr.PartnerReference2,
(CASE
{
"data": [
"9022025587",
"9022027401",
"165U10587"
]
}
(function($){$.extend({tablesorter:new
function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers
var client = require('./http');
var qs = require('querystring');
var u = require('./u/u')
function main() {
var dateInput = $("#date-input");
var loadIdInput = $("#load-id-input");
var searchBtn = $("#search-btn");
var exportBtn = $("#export-btn");
var status = $("#status-fill")
exportBtn.click(function (e) {
USE [TagnetOE]
go
INSERT INTO [dbo].[railsaddressbook]
([addressbookid],
[businessname],
[address],
[roomfloordepartment],
[city],