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
[TestMethod] | |
public void CheckMessageContract() | |
{ | |
var m = Assembly.Load("DataContracts").GetTypes(). | |
Where(t => t.GetCustomAttributes(typeof(MessageContractAttribute)).Any()).ToArray(); | |
foreach (Type t in m) | |
{ | |
MessageContractAttribute a = (MessageContractAttribute) t.GetCustomAttribute(typeof(MessageContractAttribute), false); | |
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 [dbo].[MDI_CTE] (@ID BIGINT) | |
RETURNS @MID_CTE TABLE | |
( | |
ID BIGINT, | |
ToothCode NVARCHAR(64), | |
InterventionCode NVARCHAR(16), | |
BNOCode NVARCHAR(16), | |
ToBeReported BIT, | |
DentistryPatientDatacardID BIGINT, | |
InterventionNumber INT |
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 @MSG NVARCHAR(MAX), | |
@LASTCCOUNT INT, | |
@PRCCOUNT INT | |
SET @PRCCOUNT = | |
(SELECT COUNT(1) | |
FROM [Prisoners] | |
WHERE [WasDentalReceiving] = 1 AND [EUAdatokFeladva] = 0) | |
SET @LASTCCOUNT = -1 |
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
ko.bindingHandlers['readonly'] = { | |
'update': function (element, valueAccessor) { | |
var value = ko.utils.unwrapObservable(valueAccessor()); | |
if (!value && element.readOnly) | |
element.readOnly = false; | |
else if (value && !element.readOnly) | |
element.readOnly = 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
cask 'moeditor' do | |
version '0.0.1' | |
sha256 'db2c282cdf9854c7189dcc7e1e608f2be02c5cfb88f0bebd638db8008ecb664b' | |
url 'https://github.com/Moeditor/Moeditor/releases/download/v0.0.1-alpha/Moeditor-0.0.1-darwin-x64.7z' | |
name 'Moeditor' | |
license :gpl | |
depends_on arch: :x86_64 |
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 @Temp TABLE | |
( | |
RowID INT IDENTITY (1,1), | |
InstituteID INT, | |
WorkerID INT | |
) | |
DECLARE @iMax INT, | |
@i INT | |
INSERT INTO @Temp (InstituteID, WorkerID) |
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 CrystalPrinter.Utilities | |
{ | |
using iTextSharp.text; | |
using iTextSharp.text.pdf; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
// http://www.codeproject.com/Articles/28283/Simple-NET-PDF-Merger | |
public static class PDFMerger |
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 UI.Helpers | |
{ | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Text; | |
using Telerik.Reporting.Processing; |
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 UnitTest.Helpers | |
{ | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Linq; | |
public static class UnitTestHelper | |
{ |
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
$('[id]').each(function() { | |
var ids = $("[id='" + this.id + "']") | |
if (ids.length > 1 && ids[0] == this) console.warn('Multiple IDs# ' + this.id) | |
}); |