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
Private WithEvents sFTP As WeOnlyDo.Client.FtpDLX | |
Private Sub ConnectAndGetFile() | |
Try | |
If sFTP.State = WeOnlyDo.Client.States.Receiving Or sFTP.State = WeOnlyDo.Client.States.Connected Then | |
sFTP.Abort() | |
End If | |
sFTP = New WeOnlyDo.Client.FtpDLX | |
_status = Enums.eStatus.Downloading | |
sFTP.LicenseKey = "RAYJ-S8Y9-RTRE-EKZS" |
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
''' <summary> | |
''' Determines whether database connection valid [the specified connection string]. | |
''' </summary> | |
''' <param name="ConnectionString">The connection string.</param> | |
''' <returns> | |
''' <c>true</c> if [is database connection valid] [the specified connection string]; otherwise, <c>false</c>. | |
''' </returns> | |
Public Function IsDatabaseConnectionValid(ByVal ConnectionString As String) As Boolean | |
Try | |
Using cn As New SqlClient.SqlConnection(ConnectionString) |
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
Public Module scanning | |
Public Function scanImage() As Byte() | |
Dim fileScanned As Integer = 0 | |
Dim filepath As String = String.Format("{0}\RXImage.png", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)) | |
EZTwain.SetAppTitle("Script Assist 9") | |
Call EZTwain.SetVendorKey("RS Software", -469019609) | |
Call EZTwain.SetHideUI(False) | |
Call EZTwain.SetFileAppendFlag(False) | |
Call EZTwain.SetMultiTransfer(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
'This is how you use the Scanning Library | |
'Create A New Instance of the Scanning Lib | |
Dim scanner As New RSScanningLibrary.Scan | |
'[Optional] Set you applications Title | |
scanner.ApplicationTitle = "Application Title" | |
'[Optional] Set the default Scanning Device | |
scanner.SetDefaultTwainDevice |
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
//This was written as an exercise for a friend for a CFD class | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
namespace CenterOfGravity | |
{ | |
class Program | |
{ |
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.Linq; | |
using System.Xml.Linq; | |
public class Foo | |
{ | |
public static void Main() | |
{ | |
XDocument test = new XDocument(); | |
//SetValue(test, "thing3", new object[] {"Root", "Blargh", "Node3", "ChildNode"}); |
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.Linq; | |
using System.Xml.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Diagnostics; | |
//This class is simply used as a demonsration on how to use the extensions | |
public class Foo | |
{ | |
public static void Main() |
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 | |
RXInfo.Patient, | |
RXInfo.Number, | |
Facility.Name, | |
RxInfo.RefillNumber | |
From scriptassist.RXInfo AS RXInfo | |
Left Join scriptAssist.Patient As PatientT On PatientT.PatientId = RXInfo.PatientID | |
Left Join scriptAssist.Facility On Facility.FacilityID = PatientT.FacilityID | |
Where | |
RXInfo.Schedule In ('2','3','4','5') |
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
<html> | |
<script type="text/javascript"> | |
function countToFiveBillion(counter, num){ | |
if(num < 5000000000) | |
{ | |
num++; | |
if(num % 18700 == 0){ | |
counter.innerHTML = num; | |
setTimeout(function() {countToFiveBillion(counter, num)}, 1); | |
} else { |
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
USE [RxDataSQL] | |
GO | |
/****** Object: StoredProcedure [scriptassist].[getPrice] Script Date: 12/16/2011 12:15:15 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER Procedure [scriptassist].[getPrice] |
OlderNewer