This file contains 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 Geocoding.Google; | |
using Nop.Core.Data; | |
using Nop.Services.Configuration; | |
using Nop.Services.Logging; | |
using Nop.Services.Tasks; | |
using SevenSpikes.Nop.Plugins.StoreLocator.Domain.Shops; | |
using System; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text.RegularExpressions; |
This file contains 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
<!-- Widget: admin_header_before --> | |
<script type="text/javascript"> | |
$(function () { | |
var importButton = $('<a href="#" class="k-button">Import</a>').click(function (e) { | |
e.preventDefault(); | |
var window = $("#importexcel-window"); | |
if (!window.data("kendoWindow")) { | |
window.kendoWindow({ | |
modal: true, |
This file contains 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 SAPbouiCOM; | |
using System.Globalization; | |
using System.Text.RegularExpressions; | |
namespace SboHelpers | |
{ | |
public static class SboItemExtensions | |
{ | |
public static MoneyField GetMoney(this EditText editText) | |
{ |
This file contains 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
CREATE FUNCTION SBODateTimeToSQLDateTime | |
( | |
@Date datetime, @Time smallint | |
) | |
RETURNS datetime | |
AS | |
BEGIN | |
DECLARE | |
@Hour smallint = CAST(SUBSTRING(CAST(@Time as varchar(4)), 1, 2) AS smallint), | |
@Minute smallint = CAST(SUBSTRING(CAST(@Time as varchar(4)), 3, 2) AS smallint) |
This file contains 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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using CrystalDecisions.CrystalReports.Engine; | |
using CrystalDecisions.Shared; | |
using ITCO.SboAddon.Framework; | |
namespace MyAddon | |
{ |
This file contains 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
SELECT | |
CAST(SUBSTRING(RIGHT('0'+ CAST([Time] AS varchar), 6), 1, 2) + ':' + | |
SUBSTRING(RIGHT('0'+ CAST([Time] AS varchar), 6), 3, 2) + ':' + | |
SUBSTRING(RIGHT('0'+ CAST([Time] AS varchar), 6), 5, 2) AS time) | |
FROM [USR5] | |
ORDER BY [Time] |
This file contains 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.Collections.Generic; | |
using System.Linq; | |
using Nop.Core; | |
using Nop.Core.Data; | |
using Nop.Core.Domain.Common; | |
using Nop.Core.Infrastructure; | |
using Nop.Services.Common; | |
namespace Nop.Plugin.MyPlugin | |
{ |
This file contains 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
namespace Nop.Web.Framework.Controllers | |
{ | |
using System; | |
using System.Web.Mvc; | |
using Core.Domain.Security; | |
using Core.Infrastructure; | |
using Services.Security; | |
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple=true)] | |
public class PermissionRecordValidation : FilterAttribute, IAuthorizationFilter |
This file contains 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
DECLARE @Now date = GETDATE() | |
SELECT | |
@Now AS [Today], | |
DATEADD(MONTH, DATEDIFF(MONTH,0,@Now)-0, 0) AS [Current_From], | |
DATEADD(DAY,-1,DATEADD(MONTH, DATEDIFF(MONTH,0,@Now)+1,0)) AS [Current_To], | |
DATEADD(MONTH, DATEDIFF(MONTH,0,@Now)-1, 0) AS [LastMonth_From], | |
DATEADD(DAY,-1,DATEADD(MONTH, DATEDIFF(MONTH,0,@Now)+0,0)) AS [LastMonth_To], | |
DATEADD(MONTH, DATEDIFF(MONTH,0,@Now)-2, 0) AS [LastMonth2_From], |
This file contains 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; | |
using System.ComponentModel; | |
using System.Globalization; | |
public static class TypeConverter | |
{ | |
public static T To<T>(this object value) | |
{ | |
return (T)To(value, typeof(T)); | |
} |
OlderNewer