本文整理汇总了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;
}
}
}
示例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 = (" " + DateTime.Now.ToLocalTime() + " " + msg + queryRecoder.QueryResult);
QueryRecoder q = new QueryRecoder();
q.Update(queryRecoder);
}
catch (Exception ex)
{
Common.LogHelper.WriteError(ex);
}
}
}
示例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;
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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();
}
}
示例8: CallSearchEvent
private void CallSearchEvent(BLL.SearchItem Search)
{
// Event will be null if there are no subscribers
if (SearchSelectEvent != null)
{
SearchSelectEvent(Search);
}
}
示例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;
}
示例10: SetDay
public void SetDay(BLL.CalendarDay day)
{
lbl_Date.Content = day.Date.ToString("dddd, MMMM d yyyy");
txbl_EventList.Text = "";
ListEvents(day.Events);
}
示例11: CallBookmarkEvent
private void CallBookmarkEvent(BLL.BookmarkExt Bookmark)
{
// Event will be null if there are no subscribers
if (BookmarkSelectEvent != null)
{
BookmarkSelectEvent(Bookmark);
}
}
示例12: CallJuzEvent
private void CallJuzEvent(BLL.quran_data.JuzData Juz)
{
// Event will be null if there are no subscribers
if (JuzSelectEvent != null)
{
JuzSelectEvent(Juz);
}
}
示例13: SQLServerBase
public SQLServerBase(BLL.ConnectionStringHelper connectionString)
{
_connectionString = connectionString;
_serverName = connectionString.ServerName;
_databaseName = connectionString.DatabaseName;
_userName = connectionString.UserName;
_password = connectionString.Password;
}
示例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();
}
示例15: Index
public ActionResult Index(BLL.Models.User user)
{
if (ModelState.IsValid)
{
ModelState.AddModelError("PseudoOk", T4ResX.Sample.Localization.Models.User.PseudoOk);
}
return View(user);
}