本文整理汇总了C#中Business类的典型用法代码示例。如果您正苦于以下问题:C# Business类的具体用法?C# Business怎么用?C# Business使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Business类属于命名空间,在下文中一共展示了Business类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SelezioneDocumentiAllegatiUI
public SelezioneDocumentiAllegatiUI(Business.Interface.DocumentoFilter filterDocumenti)
{
InitializeComponent();
inizializza();
_filterDocumenti = filterDocumenti;
}
示例2: AddNewInvestorLog
/// <summary>
///
/// </summary>
/// <param name="objInvestorLog"></param>
/// <returns></returns>
internal int AddNewInvestorLog(Business.InvestorLog objInvestorLog)
{
int Result = -1;
System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(DBConnection.DBConnection.Connection);
DSTableAdapters.InvestorLogTableAdapter adap = new DSTableAdapters.InvestorLogTableAdapter();
try
{
conn.Open();
adap.Connection = conn;
Result = int.Parse(adap.AddNewInvestorLog(objInvestorLog.InvestorInstance.InvestorID, objInvestorLog.Time, objInvestorLog.IP, objInvestorLog.Message,
objInvestorLog.Status).ToString());
}
catch (Exception ex)
{
return -1;
}
finally
{
adap.Connection.Close();
conn.Close();
}
return Result;
}
示例3: IsRequired
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder)
{
bool result = false;
YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrep = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest();
if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrep.PanelSetId) == true)
{
YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrep.PanelSetId);
if (panelSetOrderCytology.Final == true)
{
if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsDiagnosisThreeOrBetter(panelSetOrderCytology.ResultCode) == true)
{
YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId);
Nullable<DateTime> dateOfLastHPV = patientHistory.GetDateOfPreviousHpv(accessionOrder.AccessionDate.Value);
if (dateOfLastHPV.HasValue == true)
{
if (dateOfLastHPV < DateTime.Today.AddDays(-330))
{
result = true;
}
}
else
{
result = true;
}
}
}
}
return result;
}
示例4: InitData
private void InitData(Business.Meeting meeting)
{
foreach (ac.uk.brunel.contextaware.Note noteItem in meeting.Slides)
{
txtMeetingNotes.Text += noteItem.message + SEPARATOR;
}
}
示例5: AddNewInvestorGroup
/// <summary>
///
/// </summary>
/// <param name="objInvestorGroup"></param>
/// <returns></returns>
internal int AddNewInvestorGroup(Business.InvestorGroup objInvestorGroup)
{
int Result = -1;
System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(DBConnection.DBConnection.Connection);
DSTableAdapters.InvestorGroupTableAdapter adap = new DSTableAdapters.InvestorGroupTableAdapter();
try
{
conn.Open();
adap.Connection = conn;
Result = int.Parse(adap.AddNewInvestorGroup(objInvestorGroup.Name, objInvestorGroup.Owner, objInvestorGroup.DefautDeposite).ToString());
}
catch (Exception ex)
{
return -1;
}
finally
{
adap.Connection.Close();
conn.Close();
}
return Result;
}
示例6: frmProducts
// This constructor will take a product ID and display that product's information
// This form will show edit buttons
public frmProducts(String EditingItemID, Business business)
{
this.business = business;
this.EditingItemID = EditingItemID;
InitializeComponent();
this.Text = "Editing: PorductID " + EditingItemID;
}
示例7: ClientBillingFacility
public ClientBillingFacility(Facility performaingFacility, Facility defaultBillingFacility, Business.Client.Model.ClientGroupClientCollection clientGroupClientCollection, string facilityComponent)
{
this.m_PerformingFacility = performaingFacility;
this.m_DefaultBillingFacility = defaultBillingFacility;
this.m_ClientGroupClientCollection = clientGroupClientCollection;
this.m_FacilityComponent = facilityComponent;
}
示例8: IsRequired
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder)
{
bool result = false;
YellowstonePathology.Business.Test.HPV.HPVTest panelSetHPV = new YellowstonePathology.Business.Test.HPV.HPVTest();
YellowstonePathology.Business.Test.HPV1618.HPV1618Test panelSetHPV1618 = new YellowstonePathology.Business.Test.HPV1618.HPV1618Test();
YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrepPap = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest();
if(accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrepPap.PanelSetId) == true)
{
YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelsetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrepPap.PanelSetId);
if (panelsetOrderCytology.Final == true)
{
string papResultCode = panelsetOrderCytology.ResultCode;
if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeNormal(papResultCode) == true || YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeReactive(papResultCode) == true)
{
if (accessionOrder.PanelSetOrderCollection.Exists(panelSetHPV.PanelSetId) == true)
{
YellowstonePathology.Business.Test.HPV.HPVTestOrder hpvTestOrder = (YellowstonePathology.Business.Test.HPV.HPVTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetHPV.PanelSetId);
if (hpvTestOrder.ResultCode == YellowstonePathology.Business.Test.HPV.HPVResult.OveralResultCodePositive)
{
result = true;
}
}
}
}
}
return result;
}
示例9: SelectSymbolByIDReferenceInSymbolList
/// <summary>
///
/// </summary>
/// <param name="objSymbol"></param>
/// <param name="SymbolID"></param>
/// <returns></returns>
public string SelectSymbolByIDReferenceInSymbolList(Business.Symbol objSymbol, int SymbolID)
{
string result = string.Empty;
if (objSymbol != null)
{
int count = objSymbol.RefSymbol.Count;
for (int i = 0; i < count; i++)
{
if (objSymbol.RefSymbol[i].SymbolID == SymbolID)
{
result = objSymbol.RefSymbol[i].SymbolID.ToString() + "," + objSymbol.RefSymbol[i].SecurityID.ToString() + "," + objSymbol.SymbolID.ToString() + "," +
objSymbol.RefSymbol[i].MarketAreaRef.IMarketAreaID.ToString() + "," + objSymbol.RefSymbol[i].Name;
break;
}
if (objSymbol.RefSymbol[i].RefSymbol != null)
{
result += this.SelectSymbolByIDReferenceInSymbolList(objSymbol.RefSymbol[i], SymbolID);
}
}
}
return result;
}
示例10: DeleteProfileForGallery
/// <summary>
/// Permanently delete the profile records associated with the specified <paramref name="gallery" />.
/// </summary>
/// <param name="gallery">The gallery.</param>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="gallery" /> is null.</exception>
public static void DeleteProfileForGallery(Business.Gallery gallery)
{
if (gallery == null)
throw new ArgumentNullException("gallery");
Factory.GetDataProvider().Profile_DeleteProfilesForGallery(gallery.GalleryId);
}
示例11: IsRequired
public override bool IsRequired(Business.Test.AccessionOrder accessionOrder)
{
bool result = false;
YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest panelSetThinPrep = new YellowstonePathology.Business.Test.ThinPrepPap.ThinPrepPapTest();
if (accessionOrder.PanelSetOrderCollection.Exists(panelSetThinPrep.PanelSetId) == true)
{
YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology panelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(panelSetThinPrep.PanelSetId);
if (panelSetOrderCytology.Final == true)
{
if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeNormal(panelSetOrderCytology.ResultCode) == true ||
YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeReactive(panelSetOrderCytology.ResultCode) == true)
{
if (YellowstonePathology.Business.Cytology.Model.CytologyResultCode.IsResultCodeTZoneAbsent(panelSetOrderCytology.ResultCode) == true)
{
if (accessionOrder.PBirthdate < DateTime.Today.AddYears(-30))
{
result = true;
}
}
}
}
}
return result;
}
示例12: Add
public void Add(Business.Entity.Modulo Modulo)
{
using (AcademiaEntities context = new AcademiaEntities())
{
if(!validateDesc (Modulo.Descripcion))
{
throw new Exception();
}
modulo oMod ;
try
{
oMod = new modulo();
oMod.desc_modulo = Modulo.Descripcion;
context.modulos.Add(oMod);
context.SaveChanges();
}
catch (Exception ex)
{
throw ex;
}
finally
{
oMod = null;
}
}
}
示例13: GetResultView
public static IResultView GetResultView(string reportNo, Business.Test.AccessionOrder accessionOrder, int clientId, bool testing)
{
IResultView resultView = null;
switch (clientId)
{
case 558:
case 820:
case 723:
case 33:
case 1417:
case 650:
case 1421:
case 649:
case 230:
case 123:
case 126:
case 242:
case 253:
case 1313:
case 1096:
case 287:
case 968:
case 250:
case 57:
case 313:
case 1025:
case 1321:
case 25:
case 90:
case 505:
case 154:
case 184:
case 969:
case 1422:
case 1456:
case 1279:
case 67:
case 673:
case 149:
case 1119:
resultView = new Business.HL7View.EPIC.EpicResultView(reportNo, accessionOrder, testing);
break;
case 203: //Richard Taylor
case 1177: //Spring Creek
case 196: //Central Montana
case 209: //Laura Bennett
case 954: // Barb Miller
case 1471: //Marchion
//case 219:
resultView = new HL7View.CMMC.CMMCResultView(reportNo, accessionOrder);
break;
case 1337:
resultView = new HL7View.CDC.MTDohResultView(reportNo, accessionOrder);
break;
case 1203:
resultView = new HL7View.ECW.ECWResultView(reportNo, accessionOrder, testing);
break;
}
return resultView;
}
示例14: AddNewVirtualDealer
/// <summary>
///
/// </summary>
/// <param name="objVirtualDealer"></param>
/// <returns></returns>
internal string AddNewVirtualDealer(Business.VirtualDealer objVirtualDealer)
{
string result = "-1";
System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(DBConnection.DBConnection.Connection);
System.Data.SqlClient.SqlTransaction trans = null;
DSTableAdapters.VirtualDealerTableAdapter virtualDealerAdap = new DSTableAdapters.VirtualDealerTableAdapter();
DSTableAdapters.VirtualDealerConfigTableAdapter dealerConfigAdap = new DSTableAdapters.VirtualDealerConfigTableAdapter();
DSTableAdapters.IVirtualDealerTableAdapter iVirtualDealerAdap = new DSTableAdapters.IVirtualDealerTableAdapter();
try
{
conn.Open();
trans = conn.BeginTransaction();
virtualDealerAdap.Connection = conn;
virtualDealerAdap.Transaction = trans;
int id = int.Parse(virtualDealerAdap.AddNewVirtualDealer(objVirtualDealer.Name, "").ToString());
result = id.ToString();
if (id == -1)
{
throw new Exception("Data error");
}
dealerConfigAdap.Connection = conn;
dealerConfigAdap.Transaction = trans;
DateTime DateValue = DateTime.Parse("1753-01-01 00:00:00.000");
dealerConfigAdap.Insert(null, "Profit max pip", id, "VD01", -1, "NaN", objVirtualDealer.ProfitMaxPip.ToString(), DateValue);
dealerConfigAdap.Insert(null, "Loss max pip", id, "VD02", -1, "NaN", objVirtualDealer.LossMaxPip.ToString(), DateValue);
dealerConfigAdap.Insert(null, "Min volume", id, "VD03", -1, "NaN", objVirtualDealer.StartVolume.ToString(), DateValue);
dealerConfigAdap.Insert(null, "Max volume", id, "VD04", -1, "NaN", objVirtualDealer.EndVolume.ToString(), DateValue);
dealerConfigAdap.Insert(null, "Delay", id, "VD05", -1, "NaN", objVirtualDealer.Delay.ToString(), DateValue);
dealerConfigAdap.Insert(null, "Additional pip", id, "VD06", -1, "NaN", objVirtualDealer.AdditionalPip.ToString(), DateValue);
dealerConfigAdap.Insert(null, "Mode", id, "VD07", -1, "NaN", objVirtualDealer.Mode.ToString(), DateValue);
dealerConfigAdap.Insert(null, "IsEnable", id, "VD08", objVirtualDealer.IsEnable ? 1 : 0, "NaN", "NaN", DateValue);
dealerConfigAdap.Insert(null, "IsLimitAuto", id, "VD09", objVirtualDealer.IsLimitAuto ? 1 : 0, "NaN", "NaN", DateValue);
dealerConfigAdap.Insert(null, "IsStopAuto", id, "VD10", objVirtualDealer.IsStopAuto ? 1 : 0, "NaN", "NaN", DateValue);
dealerConfigAdap.Insert(null, "IsStopSlippage", id, "VD11", objVirtualDealer.IsStopSlippage ? 1 : 0, "NaN", "NaN", DateValue);
dealerConfigAdap.Insert(null, "GroupCondition", id, "VD12", -1, objVirtualDealer.GroupCondition, "NaN", DateValue);
dealerConfigAdap.Insert(null, "SymbolCodition", id, "VD13", -1, objVirtualDealer.SymbolCondition, "NaN", DateValue);
iVirtualDealerAdap.Connection = conn;
iVirtualDealerAdap.Transaction = trans;
for (int i = 0; i < objVirtualDealer.IVirtualDealer.Count; i++)
{
iVirtualDealerAdap.Insert(objVirtualDealer.IVirtualDealer[i].InvestorGroupID, objVirtualDealer.IVirtualDealer[i].SymbolID, id);
}
trans.Commit();
}
catch (Exception ex)
{
trans.Rollback();
return "Data error";
}
finally
{
virtualDealerAdap.Connection.Close();
dealerConfigAdap.Connection.Close();
iVirtualDealerAdap.Connection.Close();
conn.Close();
}
return result;
}
示例15: AddGallery
public static void AddGallery(Business.Gallery gallery)
{
if (gallery == null)
throw new ArgumentNullException("gallery");
gallery.Save();
}