当前位置: 首页>>代码示例>>C#>>正文


C# BLL类代码示例

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


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


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