Current Directory:
\\10.5.0.10\iis\Sites\goprint2.com\www\
Contents:
Directories:
App_Code
App_Data
App_GlobalResources
App_LocalResources
App_WebReferences
articles
aspnet_client
Bin
common
designer
dillners
images
img
includes
kwikkopy
order_centre
printthree
RadControls
update
WebServices
Files:
about_us.aspx | Download
about_us.aspx.vb | Download
contact_us.aspx | Download
contact_us.aspx.vb | Download
create_user.aspx | Download
create_user.aspx.vb | Download
Default.aspx | Download
Default.aspx.vb | Download
discount.aspx | Download
discount.aspx.vb | Download
domain_activation.aspx | Download
domain_activation.aspx.vb | Download
downloadPD.aspx | Download
downloadPD.aspx.vb | Download
download_error.aspx | Download
download_error.aspx.vb | Download
email_policy.aspx | Download
email_policy.aspx.vb | Download
error_page.aspx | Download
error_page.aspx.vb | Download
faq.aspx | Download
faq.aspx.vb | Download
favicon.ico | Download
FileNotFound.htm | Download
generate_print_driver_step1.aspx | Download
generate_print_driver_step1.aspx.vb | Download
generate_print_driver_step2.aspx | Download
generate_print_driver_step2.aspx.vb | Download
generate_print_driver_step3.aspx | Download
generate_print_driver_step3.aspx.vb | Download
Global.asax | Download
header.fla | Download
header.swf | Download
home.aspx | Download
home.aspx.vb | Download
jsincluding.js | Download
login.aspx | Download
login.aspx.vb | Download
marcelito.txt | Download
packages.aspx | Download
packages.aspx.vb | Download
password_recovery.aspx | Download
password_recovery.aspx.vb | Download
PrintIt.master | Download
PrintIt.master.vb | Download
PrintIt.sitemap | Download
PrintItEs.sitemap | Download
PrintItFr.sitemap | Download
PrintIt_CreateUser.master | Download
PrintIt_CreateUser.master.vb | Download
PrintIt_OutSide.master | Download
PrintIt_OutSide.master.vb | Download
privacy_policy.aspx | Download
privacy_policy.aspx.vb | Download
proba.aspx | Download
proba.aspx.vb | Download
robots.txt | Download
sample.txt | Download
show_sess_par.aspx | Download
show_sess_par.aspx.vb | Download
site_map.aspx | Download
site_map.aspx.vb | Download
site_map.xml | Download
sRacadUploader.jar | Download
sRacadUploader_last.jar | Download
terms_and_conditions.aspx | Download
terms_and_conditions.aspx.vb | Download
terms_of_service.aspx | Download
terms_of_service.aspx.vb | Download
test.txt | Download
testimonials.aspx | Download
testimonials.aspx.vb | Download
TextDraw.html | Download
udraw-designer-widescreen-ui.zip | Download
web.config | Download
websites-for-printers.aspx | Download
websites-for-printers.aspx.vb | Download
File Preview:
Partial Class order_centre_process_upload
Inherits System.Web.UI.Page
Private _goPrint2Adapter As New com.racadtech.services.GoPrint2Client()
Private _webWS As New WebWS()
Public ReadOnly Property GoPrint2Adapter() As com.racadtech.services.GoPrint2Client
Get
Return _goPrint2Adapter
End Get
End Property
Public ReadOnly Property MasterKey() As String
Get
Return "877k31hg333-d03423332wq-312dkazlfs-433398j543"
End Get
End Property
Public ReadOnly Property CurrentActivationId() As String
Get
Return _webWS.GetActivationIdByStoreId(Session("StoreId")).ToString()
End Get
End Property
Public ReadOnly Property CurrentUser() As String
Get
Return System.Web.HttpContext.Current.User.Identity.Name.ToString()
End Get
End Property
Public ReadOnly Property CurrentUserId() As String
Get
Return Membership.GetUser(CurrentUser).ProviderUserKey.ToString()
End Get
End Property
Public ReadOnly Property CurrentCustomerId() As String
Get
If Not Session("CustomerId") Is Nothing Then
Return Session("CustomerId")
Else
Return _webWS.GetCustomerIdByUserId(CurrentUserId)
End If
End Get
End Property
Public ReadOnly Property CurrentInterfaceSettings() As com.racadtech.services.PrintDriverInterface
Get
Return GoPrint2Adapter.GetPrintDriverInterface(MasterKey, CurrentActivationId)
End Get
End Property
Public ReadOnly Property BaseImageURL() As String
Get
If Not Session("BaseImageURL") Is Nothing Then
Return Session("BaseImageURL")
Else
Return "themes/orange/"
End If
End Get
End Property
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Request.QueryString("UploadId") IsNot Nothing Then
Dim _uploadId As String = Request.QueryString("UploadId").ToString()
Dim _javaUploadTempLocation As String = ConfigurationManager.AppSettings("PrintItTempDataPath").ToString() & "\" & Request.QueryString("UploadId").ToString()
Dim _allFiles As String()
Dim _file As String
If Session("TempJobId") Is Nothing Then
Response.Redirect("login.aspx?ex=3")
End If
If System.IO.Directory.Exists(_javaUploadTempLocation) Then
_allFiles = System.IO.Directory.GetFiles(_javaUploadTempLocation)
' removing zip list files used by uploader to resume folders
For Each _file In _allFiles
Dim _fileName As String = _file.Substring((_javaUploadTempLocation.Length + 1), (_file.Length - _javaUploadTempLocation.Length - 1))
If _fileName.Substring(0, 7) = "gsezip_" Then
Try
System.IO.File.Delete(_file)
Catch ex As Exception
End Try
End If
Next
_allFiles = System.IO.Directory.GetFiles(_javaUploadTempLocation)
Dim _files As String = ""
For Each _file In _allFiles
Dim _fileObject As New System.IO.FileInfo(_file)
Dim _fileName As String = _fileObject.Name
Dim _fileSize As String = _fileObject.Length
_files = _files & _fileName & "@@@" & _fileSize & "%%%"
Next
Dim _jobId As String = Session("TempJobId")
Session("JobId") = _jobId
GoPrint2Adapter.UpdateNewJobFiles(_jobId, CurrentCustomerId, CurrentActivationId, _
_files, "t", "f", "applet", MasterKey)
Dim result As String = GoPrint2Adapter.UpdateJobFilesSetDownloadIdFromHttpUpload(_uploadId, _jobId, _
CurrentActivationId, MasterKey)
Dim message As String = "JobID: " & _jobId & "<br>"
message += "Result: " & result
'com.racadtech.Framework.Util.Mail.SMTPClient.sendMail(New String() {"amram@racadtech.com"}, "Applet Debug", message, True, "support@racadtech.com")
If (result.ToLower().StartsWith("false")) Then
com.racadtech.Framework.Util.Mail.SMTPClient.sendMail(New String() {"support@racadtech.com"}, "FAILED APPLET UPLOAD!!!", message, True, "support@racadtech.com")
End If
Session("TempJobId") = Nothing
Dim script As String = "<SCRIPT LANGUAGE='JavaScript'>window.onload=top.location.href = 'thank_you.aspx';</SCRIPT>"
ClientScript.RegisterClientScriptBlock(Me.GetType(), "ClientScript", script)
Else
Session("TempJobId") = Nothing
Response.Redirect("login.aspx?ex=1")
End If
Else
Session("TempJobId") = Nothing
Response.Redirect("login.aspx?ex=2")
End If
End Sub
End Class