• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Business类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Business的典型用法代码示例。如果您正苦于以下问题:C# Business类的具体用法?C# Business怎么用?C# Business使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Business类属于命名空间,在下文中一共展示了Business类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SelezioneDocumentiAllegatiUI

        public SelezioneDocumentiAllegatiUI(Business.Interface.DocumentoFilter filterDocumenti)
        {
            InitializeComponent();
            inizializza();

            _filterDocumenti = filterDocumenti;
        }
开发者ID:gipasoft,项目名称:Sfera,代码行数:7,代码来源:SelezioneDocumentiAllegatiUI.cs


示例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;
        }
开发者ID:ngthanhducit,项目名称:TradingServer1502,代码行数:30,代码来源:DBWInvestorLog.cs


示例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;
        }
开发者ID:ericramses,项目名称:YPILIS,代码行数:30,代码来源:HPVReflexOrderRule14.cs


示例4: InitData

 private void InitData(Business.Meeting meeting)
 {
     foreach (ac.uk.brunel.contextaware.Note noteItem in meeting.Slides)
     {
         txtMeetingNotes.Text += noteItem.message + SEPARATOR;
     }
 }
开发者ID:kavithajagannathan,项目名称:brunelPhD,代码行数:7,代码来源:MeetingNotes.cs


示例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;
        }
开发者ID:ngthanhducit,项目名称:TradingServer1502,代码行数:30,代码来源:DBWInvestorGroup.cs


示例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;
 }
开发者ID:juncao,项目名称:StoreSalesRecordSystem,代码行数:9,代码来源:frmProducts.cs


示例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;
 }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:7,代码来源:ClientBillingFacility.cs


示例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;
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:30,代码来源:HPV1618ReflexOrderPAPNormalHPVPositive.cs


示例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;
        }
开发者ID:ngthanhducit,项目名称:TradingServer1502,代码行数:31,代码来源:Market.ExtractCommand.cs


示例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);
        }
开发者ID:xusun,项目名称:GalleryServerPro,代码行数:12,代码来源:ProfileController.cs


示例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;
        }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:25,代码来源:HPVReflexOrderRule13.cs


示例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;
                }
            }
        }
开发者ID:juanip,项目名称:tpnet,代码行数:28,代码来源:ModuloLogic.cs


示例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;
 }
开发者ID:WilliamCopland,项目名称:YPILIS,代码行数:60,代码来源:ResultViewFactory.cs


示例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;
        }
开发者ID:ngthanhducit,项目名称:TradingServer1502,代码行数:65,代码来源:DBWVirtualDealer.cs


示例15: AddGallery

        public static void AddGallery(Business.Gallery gallery)
        {
            if (gallery == null)
                throw new ArgumentNullException("gallery");

            gallery.Save();
        }
开发者ID:xusun,项目名称:GalleryServerPro,代码行数:7,代码来源:GalleryController.cs


示例16: AddNewInvestor

        /// <summary>
        /// 
        /// </summary>
        /// <param name="objInvestorProfile"></param>
        /// <returns></returns>
        internal int AddNewInvestor(Business.Investor objInvestor)
        {
            int Result = -1;
            System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(DBConnection.DBConnection.Connection);
            DSTableAdapters.InvestorTableAdapter adap = new DSTableAdapters.InvestorTableAdapter();
            DSTableAdapters.InvestorProfileTableAdapter adapInvestorProfile = new DSTableAdapters.InvestorProfileTableAdapter();

            try
            {
                conn.Open();
                adap.Connection = conn;
                adapInvestorProfile.Connection = conn;

                //string hashPwd = TradingServer.Model.ValidateCheck.GetEncodedString(objInvestor.PrimaryPwd);
                //string hashPwd = TradingServer.Model.ValidateCheck.Encrypt(objInvestor.PrimaryPwd);
                //string hashReadPwd = TradingServer.Model.ValidateCheck.GetEncodedString(objInvestor.ReadOnlyPwd);
                //string hashReadPwd = TradingServer.Model.ValidateCheck.Encrypt(objInvestor.ReadOnlyPwd);
                //string hashPhonePwd = TradingServer.Model.ValidateCheck.GetEncodedString(objInvestor.PhonePwd);
                //string hashPhonePwd = TradingServer.Model.ValidateCheck.Encrypt(objInvestor.PhonePwd);

                if ((objInvestor.InvestorStatusID == -1) && (objInvestor.InvestorGroupInstance.InvestorGroupID == -1) && (string.IsNullOrEmpty(objInvestor.AgentID)))
                {
                    Result = int.Parse(adap.AddNewInvestor(null, null, objInvestor.Balance, objInvestor.Credit, objInvestor.Code, objInvestor.PrimaryPwd, objInvestor.ReadOnlyPwd, objInvestor.PhonePwd,
                        true, objInvestor.TaxRate, objInvestor.Leverage, objInvestor.AllowChangePwd, objInvestor.ReadOnly, objInvestor.SendReport, "0", 0, "", objInvestor.RefInvestorID,
                        objInvestor.AgentRefID, "", "").ToString());
                }
                else
                {
                    int? resultFind = 0;
                    resultFind = adap.FindAgentWithAgentID(objInvestor.AgentID);
                    if (resultFind > 0)
                    {
                        Result = int.Parse(adap.AddNewInvestor(objInvestor.InvestorStatusID, objInvestor.InvestorGroupInstance.InvestorGroupID, objInvestor.Balance,
                            objInvestor.Credit, objInvestor.Code, objInvestor.PrimaryPwd, objInvestor.ReadOnlyPwd, objInvestor.PhonePwd, objInvestor.IsDisable, objInvestor.TaxRate, objInvestor.Leverage,
                            objInvestor.AllowChangePwd, objInvestor.ReadOnly, objInvestor.SendReport, objInvestor.AgentID, 0, "", objInvestor.RefInvestorID, objInvestor.AgentRefID, "", "").ToString());
                    }
                    else
                    {
                        Result = int.Parse(adap.AddNewInvestor(objInvestor.InvestorStatusID, objInvestor.InvestorGroupInstance.InvestorGroupID, objInvestor.Balance,
                            objInvestor.Credit, objInvestor.Code, objInvestor.PrimaryPwd, objInvestor.ReadOnlyPwd, objInvestor.PhonePwd, objInvestor.IsDisable, objInvestor.TaxRate, objInvestor.Leverage,
                            objInvestor.AllowChangePwd, objInvestor.ReadOnly, objInvestor.SendReport, "0", 0, "", objInvestor.RefInvestorID, objInvestor.AgentRefID, "", "").ToString());
                    }
                }

                //int.Parse(adapInvestorProfile.AddNewInvestorProfile(Result, objInvestor.Address, objInvestor.Phone, objInvestor.City, objInvestor.Country, objInvestor.Email,
                //                        objInvestor.ZipCode, objInvestor.RegisterDay, objInvestor.Comment, objInvestor.State, objInvestor.NickName).ToString());

            }
            catch (Exception ex)
            {
                return Result;
            }
            finally
            {
                adap.Connection.Close();
                conn.Close();
            }

            return Result;
        }
开发者ID:ngthanhducit,项目名称:TradingServer1502,代码行数:65,代码来源:DBWInvestor.cs


示例17: SetBusiness

 public void SetBusiness(Business bus)
 {
     myBusiness = bus;
     adName.text = bus.name;
     adDesc.text = bus.desc;
     adLogo.mainTexture = bus.logo;
 }
开发者ID:uvcteam,项目名称:univercity3d_uofo,代码行数:7,代码来源:NGUIAd.cs


示例18: AddNewInvestorProfile

        /// <summary>
        /// 
        /// </summary>
        /// <param name="objInvestor"></param>
        /// <returns></returns>
        internal int AddNewInvestorProfile(Business.Investor objInvestor)
        {
            int Result = -1;
            System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(DBConnection.DBConnection.Connection);
            DSTableAdapters.InvestorProfileTableAdapter adap = new DSTableAdapters.InvestorProfileTableAdapter();

            try
            {
                conn.Open();
                adap.Connection = conn;
                Result = int.Parse(adap.AddNewInvestorProfile(objInvestor.InvestorID, objInvestor.Address, objInvestor.Phone, objInvestor.City,
                                            objInvestor.Country, objInvestor.Email, objInvestor.ZipCode, objInvestor.RegisterDay,
                                            objInvestor.InvestorComment, objInvestor.State, objInvestor.NickName, objInvestor.IDPassport).ToString());
            }
            catch (Exception ex)
            {
                return -1;
            }
            finally
            {
                adap.Connection.Close();
                conn.Close();
            }

            return Result;
        }
开发者ID:ngthanhducit,项目名称:TradingServer1502,代码行数:31,代码来源:DBWInvestor.cs


示例19: createURLNotification

        public void createURLNotification(string url, 
Business.AppointmentVO appVO)
        {
            string subject = "";
            if(appVO._Id != null)
                subject = appVO._Subject;
            notificationURL = url;
            _notification = new Notification();
            _notification.Caption = "News: ";
            _notification.Critical = false;
            //
            StringBuilder HTMLString = new StringBuilder();
            HTMLString.Append("<html><body>");
            HTMLString.Append("<font color=\"#0000FF\">Information); availiable for:</font><br>");
            HTMLString.Append("<font color=\"#0000FF\"><b>Appointment: " + subject + "</b></font><br/>");
            HTMLString.Append("<form method=\"GET\" action=notify>");
            HTMLString.Append("<br/><input type=button name='show' value='Show info'>");
            HTMLString.Append("<input type=button name='cancel' value='Cancel'/>");
            HTMLString.Append("</body></html>");
            _notification.Text = HTMLString.ToString();
            //
            _notification.BalloonChanged += new
            BalloonChangedEventHandler(_notification_BalloonChanged);
            _notification.ResponseSubmitted += new
            ResponseSubmittedEventHandler(_notification_ResponseSubmitted);
            _notification.InitialDuration = 20;
            _notification.Visible = true;
        }
开发者ID:kavithajagannathan,项目名称:brunelPhD,代码行数:28,代码来源:GenerationHandler.cs


示例20: AddProjectToCroolProject

        private void AddProjectToCroolProject(Business.Entities.CroolProject croolProject, Project p)
        {
            string projectName = string.IsNullOrEmpty(p.FullName) ? p.Name : p.FullName;

            if (!string.IsNullOrEmpty(projectName))
            {
                int lastSlash = projectName.LastIndexOf('\\');
                lastSlash = lastSlash == -1 ? 0 : lastSlash;
                string pathToProject = projectName;

                if (lastSlash != 0)
                {
                    pathToProject = projectName.Substring(0, lastSlash);
                }

                var project = new Business.Entities.Project
                {
                    Name = p.UniqueName
                };

                croolProject.Projects.Add(project);

                this.LoadProjectFiles(croolProject, p.ProjectItems, project, pathToProject);
            }
        }
开发者ID:soniku,项目名称:Crool,代码行数:25,代码来源:MyControl.cs



注:本文中的Business类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Business.OrderIdParser类代码示例发布时间:2022-05-24
下一篇:
C# BusConfiguration类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap