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
static container EFDocumentXML2Binary(str XMLDoc) | |
{ | |
System.Xml.XmlDocument xmlDoc; | |
System.IO.MemoryStream ms; | |
SysOutgoingEmailData outgoingEmailData; | |
container data; | |
str strdata; | |
BinData binData; |
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.Linq; | |
using System.Text; | |
namespace QuebrarLinhas | |
{ | |
public class QuebradorDeLinhas | |
{ | |
private string texto; |
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; | |
namespace test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
new TestStock().testStock(); | |
Console.ReadKey(); |
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
static void jobEmail(Args _args) | |
{ | |
System.Net.Mail.SmtpClient mailClient; | |
System.Net.NetworkCredential credentials; | |
System.Net.Mail.MailMessage mailMessage; | |
; | |
mailClient = new System.Net.Mail.SmtpClient(); | |
mailClient.set_DeliveryMethod(System.Net.Mail.SmtpDeliveryMethod::Network); | |
mailClient.set_Host('smtp.domain.com'); |
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 void sendEmail() | |
{ | |
SmtpClient client = new SmtpClient(); | |
client.DeliveryMethod = SmtpDeliveryMethod.Network; | |
client.Host = "smtp.domain.com"; | |
client.Port = 587; | |
// setup Smtp authentication | |
System.Net.NetworkCredential credentials = | |
new System.Net.NetworkCredential("user@domain.com", "password"); |
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
client static Bitmap barCode(str _data) | |
{ | |
System.Drawing.Bitmap barCode; | |
System.Drawing.Font font; | |
System.Drawing.Graphics graphics; | |
System.Drawing.SizeF dataSize; | |
System.String data; | |
System.Drawing.Brush brush; | |
System.IO.MemoryStream stream; | |
Image barCodeImage; |
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
jQuery.extend(jQuery.validator.methods, { | |
date: function (value, element) { | |
return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value); | |
}, | |
number: function (value, element) { | |
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value); | |
} | |
}); |
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
try | |
{ | |
/* CODE */ | |
} | |
} | |
catch (System.ServiceModel.FaultException<DAXLIMSInteg.SalesService.AifFault> axe) | |
{ | |
var errorMsg = new StringBuilder(); | |
foreach (var item in axe.Detail.InfologMessageList) | |
{ |
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
firewall-cmd --permanent --add-port=3389/tcp | |
dnf install xrdp | |
systemctl enable xrdp |
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 void postJournal(CustTransOpenMobilePaym_AX4B _mobilePaym) | |
{ | |
CustVendOpenTransManager manager; | |
LedgerJournalCheckPost ledgerJournalCheckPost; | |
NumberSeq numberSeq; | |
ledgerJournalTrans ledgerJournalTrans; | |
ledgerJournalTable ledgerJournalTable; | |
AxLedgerJournalTrans axLedgerJournalTrans; | |
QueryRun qRun = new QueryRun(custTransQuery); | |
CustTrans custTrans; |
OlderNewer