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

C# BLL类代码示例

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

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



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

示例1: Add

 public void Add(BLL.GroupRole role)
 {
     string[] names = role.RoleName.Split('_');
     if (names.Length > 1)
     {
         switch (names[1].ToLower())
         {
             case "add":
                 AddRole = role;
                 break;
             case "edit":
                 EditRole = role;
                 break;
             case "delete":
                 DeleteRole = role;
                 break;
             case "view":
                 ViewRole = role;
                 break;
             case "reports":
                 ReportsRole = role;
                 break;
         }
     }
 }
开发者ID:ManEx,项目名称:WebManex,代码行数:25,代码来源:GroupsModel.cs


示例2: ChangeQueryRecordStatu

 /// <summary>
 /// 查询完WebService之后更新记录表
 /// </summary>
 /// <param name="cq">记录表对象</param>
 /// <param name="msg">查询之后的消息</param>
 private void ChangeQueryRecordStatu(BLL.Request.Request cq, string msg)
 {
     Model.QueryRecoder queryRecoder = cq.QueryRecoderModel;
     int queryDateInterval = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["QueryDateInterval"].Trim());
     if (queryRecoder != null)
     {
         try
         {
             if ((DateTime.Now - queryRecoder.AddDate).Days > queryDateInterval)
             {
                 //超时数据
                 queryRecoder.LastQueryDate = DateTime.Now;
                 queryRecoder.IsDel = true;
             }
             else
             {
                 //不超时数据
                 queryRecoder.LastQueryDate = DateTime.Now;
             }
             queryRecoder.QueryResult = ("&nbsp" + DateTime.Now.ToLocalTime() + " " + msg + queryRecoder.QueryResult);
             QueryRecoder q = new QueryRecoder();
             q.Update(queryRecoder);
         }
         catch (Exception ex)
         {
             Common.LogHelper.WriteError(ex);
         }
     }
 }
开发者ID:aj-hc,项目名称:SZY,代码行数:34,代码来源:NormalLisItems.cs


示例3: CurrentUserModel

 public CurrentUserModel(BLL.UserProfile user)
 {
     this.Owner = user.DefaultHub.HubOwner.Name;
     this.Name = user.DefaultHub.Name;
     this.DefaultHubId = user.DefaultHub.HubID;
     PossibleHubs = user.UserAllowedHubs;
 }
开发者ID:edgecomputing,项目名称:cats-hub-module,代码行数:7,代码来源:UserWarehouseModel.cs


示例4: ConfigureContext

 public void ConfigureContext(BLL.Models.CrawlerDB crawlerDB)
 {
     crawlerDB.Configuration.ProxyCreationEnabled = false;
     crawlerDB.Configuration.AutoDetectChangesEnabled = false;
     crawlerDB.Configuration.ValidateOnSaveEnabled = false;
     crawlerDB.Configuration.ProxyCreationEnabled = false;
 }
开发者ID:thiagopaivamed,项目名称:Crawler,代码行数:7,代码来源:ContextDB.cs


示例5: CreateDetailTransactionsForErrorCorrection

        public void CreateDetailTransactionsForErrorCorrection(Order order, BLL.PickList picklist,
                                        Issue stvLog, int receiptPalletId, int receiptID, User user, DateTime convertedEthDate
                                        , int newItemId, int newUnitId, int newManufacturerId, decimal pickedPack
                                        , decimal Convertedpack, int confirmationStatusId, bool changeExpiryDate
                                        , DateTime? ExpiryDate, bool changeBatchNo, string batchNo)
        {
            //Load the ReceivePallet First From that we Get the Information that We need
            ReceivePallet receivePalletOriginal = new ReceivePallet();
            receivePalletOriginal.LoadByPrimaryKey(receiptPalletId);

            ReceiveDoc receiveDocOriginal = new ReceiveDoc();
            receiveDocOriginal.LoadByPrimaryKey(receivePalletOriginal.ReceiveID);

            //Load ItemUnit Detail for For ItemUnit Change;
            ItemUnit newItemUnit = new ItemUnit();
            newItemUnit.LoadByPrimaryKey(newUnitId);

              // Generate PicklistDetail With OrderDetail information
            PickListService pickListService = new PickListService();
            PickListDetail pickListDetail = pickListService.CreatePicklistDetailWithOrder(receiveDocOriginal, receivePalletOriginal, order, picklist,
                                                          pickedPack);
            // Generate IssueDoc from picklistDetail and substract the quantity from receiveDoc
            IssueService issueService = new IssueService();
            issueService.CreateIssueFromPicklist(pickListDetail, order, convertedEthDate, stvLog, user);

            if (Convertedpack > 0)
            {
                //duplicate The ReceiveDoc and ReceiptPallet
                ReceiveService receiveService = new ReceiveService();
                receiveService.CloneReceiveForErrorCorrection(confirmationStatusId, receivePalletOriginal, receiveDocOriginal
                                                                , Convertedpack, user, newItemId
                                                                , receiveDocOriginal.StoreID, receiptID
                                                                , newManufacturerId, newItemUnit, convertedEthDate,changeExpiryDate,ExpiryDate,changeBatchNo,batchNo);
            }
        }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:35,代码来源:TransferService.cs


示例6: CallContentEvent

 private void CallContentEvent(BLL.HadithContentExt Content,int Index)
 {
     // Event will be null if there are no subscribers
     if (ContentSelectEvent != null)
     {
         ContentSelectEvent(Content,Index);
     }
 }
开发者ID:Gravicode,项目名称:Al-Hadith,代码行数:8,代码来源:ListContent.xaml.cs


示例7: Add

 public void Add(BLL.BusinessObjects.UITemplate entity)
 {
     using (_UITemplateRepository = new GenericRepository<DAL.DataEntities.UITemplate>())
     {
         _UITemplateRepository.Add((DAL.DataEntities.UITemplate)entity.InnerEntity);
         _UITemplateRepository.SaveChanges();
     }
 }
开发者ID:dswingle,项目名称:openconfigurator,代码行数:8,代码来源:UITemplateService.cs


示例8: CallSearchEvent

 private void CallSearchEvent(BLL.SearchItem Search)
 {
     // Event will be null if there are no subscribers
     if (SearchSelectEvent != null)
     {
         SearchSelectEvent(Search);
     }
 }
开发者ID:Gravicode,项目名称:Al-Hadith,代码行数:8,代码来源:SearchPanel.xaml.cs


示例9: Insert

 public BLL.Model.Entity.Head Insert(BLL.Model.Entity.Head entity)
 {
     DALHead dalhead = GetDALHead(entity);
     _db.AddToHeads(dalhead);
     _db.SaveChanges();
     entity.Id = dalhead.ID;
     return entity;
 }
开发者ID:nhrobin,项目名称:SmartAccount,代码行数:8,代码来源:HeadRepository.cs


示例10: SetDay

        public void SetDay(BLL.CalendarDay day)
        {
            lbl_Date.Content = day.Date.ToString("dddd, MMMM d yyyy");

            txbl_EventList.Text = "";

            ListEvents(day.Events);
        }
开发者ID:LanceDH,项目名称:WoWCalendar,代码行数:8,代码来源:Tooltip.xaml.cs


示例11: CallBookmarkEvent

 private void CallBookmarkEvent(BLL.BookmarkExt Bookmark)
 {
     // Event will be null if there are no subscribers
     if (BookmarkSelectEvent != null)
     {
         BookmarkSelectEvent(Bookmark);
     }
 }
开发者ID:Gravicode,项目名称:Al-Hadith,代码行数:8,代码来源:ListBookmark.xaml.cs


示例12: CallJuzEvent

 private void CallJuzEvent(BLL.quran_data.JuzData Juz)
 {
     // Event will be null if there are no subscribers
     if (JuzSelectEvent != null)
     {
         JuzSelectEvent(Juz);
     }
 }
开发者ID:Gravicode,项目名称:QFE,代码行数:8,代码来源:ListJuz.xaml.cs


示例13: SQLServerBase

 public SQLServerBase(BLL.ConnectionStringHelper connectionString)
 {
     _connectionString = connectionString;
     _serverName = connectionString.ServerName;
     _databaseName = connectionString.DatabaseName;
     _userName = connectionString.UserName;
     _password = connectionString.Password;
 }
开发者ID:uQr,项目名称:Visual-NHibernate,代码行数:8,代码来源:SQLServerBase.cs


示例14: Save

 public string Save(BLL.gigade.Model.OrderSlave orderSlave)
 {
     orderSlave.Replace4MySQL();
     StringBuilder strSql = new StringBuilder("insert into order_slave(`slave_id`,`order_id`,`vendor_id`,`slave_product_subtotal`,`slave_amount`,");
     strSql.Append("`slave_status`,`slave_note`,`slave_ipfrom`)values({0},{1},");
     strSql.AppendFormat("{0},{1},", orderSlave.Vendor_Id, orderSlave.Slave_Product_Subtotal);
     strSql.AppendFormat("{0},{1},'{2}','{3}')", orderSlave.Slave_Amount, orderSlave.Slave_Status, orderSlave.Slave_Note, orderSlave.Slave_Ipfrom);
     return strSql.ToString();
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:9,代码来源:OrderSlaveDao.cs


示例15: Index

        public ActionResult Index(BLL.Models.User user)
        {
            if (ModelState.IsValid)
            {
                ModelState.AddModelError("PseudoOk", T4ResX.Sample.Localization.Models.User.PseudoOk);
            }

            return View(user);
        }
开发者ID:itechnology,项目名称:T4ResX,代码行数:9,代码来源:HomeController.cs


示例16: Start

        public static void Start(List<ReceiptItem> receiptItems, List<Reward> eligibleRewards)
        {
            PrintInput(receiptItems, eligibleRewards);

            BLL bll = new BLL(receiptItems, eligibleRewards);
            PayLoad bestRewards = bll.Run();

            PrintOutput(bestRewards);
        }
开发者ID:rodchar,项目名称:csgen,代码行数:9,代码来源:Program.cs


示例17: SaveUserLife

        public string SaveUserLife(BLL.gigade.Model.UserLife model)
        {
            model.Replace4MySQL();
            StringBuilder sql = new StringBuilder();

            sql.AppendFormat(@"insert into user_life (user_id,info_type, info_code,info_name,remark,kdate,kuser) values('{0}','{1}','{2}','{3}','{4}','{5}','{6}');",
                model.user_id, model.info_type, model.info_code, model.info_name, model.remark, model.kdate, model.kuser);

            return sql.ToString();
        }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:10,代码来源:UserLifeDao.cs


示例18: Log

 public static void Log(BLL.Issue issue,BLL.Receipt receipt,decimal conversionfactor)
 {
     var errorCorrection = new ErrorCorrection();
     errorCorrection.AddNew();
     errorCorrection.UserID = CurrentContext.LoggedInUser.ID;
     errorCorrection.IssueID = issue.ID;
     errorCorrection.ReceiptID = receipt.ID;
     errorCorrection.ConversionFactor = conversionfactor;
     errorCorrection.Save();
 }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:10,代码来源:ErrorCorrection.cs


示例19: FieldChange

        /// <summary>
        /// Initializes a new instance of the <see cref="FieldChange"/> class.
        /// </summary>
        /// <param name="audit">The audit.</param>
        /// <param name="proprtyName">Name of the proprty.</param>
        public FieldChange(BLL.Audit audit, string proprtyName)
        {
            //  this.ChangeDate = audit.DateTime;
            BLL.UserProfile user = BLL.UserProfile.GetUserById(audit.LoginID);
            this.ChangedBy = (user != null) ? user.UserName : "Anonymous";
            this.FieldName = proprtyName;

            this.PreviousValue = audit.OldValue;
            this.ChangedValue = audit.NewValue;
        }
开发者ID:FishAbe,项目名称:cats-hub-module,代码行数:15,代码来源:Audit.cs


示例20: Update

 public bool Update(BLL.Model.Entity.Head entity)
 {
     DALHead dalHead = GetDALHead(entity.Name);
     if (dalHead == null) return false;
     //dalHead.Name = entity.Name;
     dalHead.Type = entity.Type.ToString();
     dalHead.Description = entity.Description;
     dalHead.IsActive = entity.IsActive;
     return _db.SaveChanges() > 0;
 }
开发者ID:nhrobin,项目名称:SmartAccount,代码行数:10,代码来源:HeadRepository.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# BLL.article类代码示例发布时间:2022-05-24
下一篇:
C# BITMAPINFO类代码示例发布时间: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