Skip to content

Instantly share code, notes, and snippets.

View codereflection's full-sized avatar

Jeff Schumacher codereflection

View GitHub Profile
protected string NameOnCreditCard="";
protected string BillingStAdd="";
protected string BillingCity="";
protected string BillingZipCode="";
protected string BillingState="";
protected string BillingEmailAdd="";
protected string BillingPhNo="";
protected string BillingCardType="";
protected string BillingCardNo="";
protected string BillingExpDate="";
public class BusinessCardInfoUtility
{
public static int AddBusinessCardInfo(BusinessCardInfo bci)
{
string sprocName = "SC_CreateBusinessCardInfoTwo";
int intBusinessCardId = Convert.ToInt32(SqlHelper.ExecuteScalar(Global.ConnString, sprocName,
bci.CustomerId, bci.BusinessCardDesignID, bci.BCardHtmlBlock, bci.CompanyName, bci.CompanyMessage,
bci.FullName, bci.JobTitle, bci.AddressLine1, bci.AddressLine2, bci.State,
bci.AddressLine3, bci.Phone, bci.Fax, bci.PhoneTwo, bci.PhoneThree, bci.PhoneTypeOne, bci.PhoneTypeTwo, bci.PhoneTypeThree, bci.PhoneTypeFour, bci.Email, bci.Website, bci.CreatedBy,
bci.CreatedDate, bci.UpdatedBy, bci.UpdatedDate));
public class BusinessCardInfo
{
protected int businessCardId;
protected int customerID;
protected int businessCardDesignID;
protected string bCardHtmlBlock;
protected string companyName;
protected string companyMessage;
protected string fullName;
protected string jobTitle;
<UserSettings>
<ApplicationIdentity version="10.0"/>
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/>
</ToolsOptions>
<Category name="Database Tools" RegisteredName="Database Tools"/>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package">
<PropertyValue name="Version">2</PropertyValue>
<FontsAndColors Version="2.0">
<itext>
<paragraph>
<chunk style="font-weight:bold;">OMG HAI!!!</chunk>
</paragraph>
<table width="100%" widths="1">
<row>
<cell>I can haz a cell!</cell>
</row>
</table>
<itext>
<paragraph>
<chunk style="font-weight:bold;">OMG HAI!!!</chunk>
</paragraph>
<table width="100%" widths="1">
<row>
<cell>I can haz a cell!</cell>
</row>
</table>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ITEXT SYSTEM "itext.dtd">
<itext>
<paragraph leading="18.0" font="unknown" align="Default">
Please visit my
<anchor leading="18.0" font="Helvetica" size="12.0" fontstyle="normal, underline" red="0" green="0" blue="255" name="top" reference="http://www.lowagie.com/iText/">
<chunk font="Helvetica" size="12.0" fontstyle="normal, underline" red="0" green="0" blue="255">website (external reference)</chunk>
</anchor>
</paragraph>
<paragraph leading="18.0" font="unknown" align="Default">
using System;
using Castle.MonoRail.Framework;
using System.Xml.Serialization;
namespace Ris.Operations.Oats.Presentation.Attributes
{
[AttributeUsage(AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = false)]
public class XlsReturnBinderAttribute : Attribute, IReturnBinder
{
private IEngineContext engineContext;
public class TickerSummaryViewModel
{
public string Ticker { get; set; }
public decimal CrimsQuantity { get; set; }
public decimal EmsQuantity { get; set; }
public decimal Difference
{
get { return CrimsQuantity - EmsQuantity; }
set { throw new NotImplementedException("I only have a setter because the XmlSerializer is stupid, please ignore me."); }
<?xml version="1.0"?>
<TickerSummaryReportViewModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TradeDate>2010-06-21T00:00:00</TradeDate>
<Summaries>
<TickerSummaryViewModel>
<Ticker>ADBE</Ticker>
<CrimsQuantity>62000.0000</CrimsQuantity>
<EmsQuantity>724050.0000</EmsQuantity>
<Difference>-662050.0000</Difference>
</TickerSummaryViewModel>