/// <summary> /// 新增菜单 /// </summary> /// <param name="Config"></param> /// <returns></returns> public int InsertPermissionDirectory(PermissionDirectory Config) { Dictionary <string, object> keyValuePairs = Config.ToDictionary(); keyValuePairs.Remove("Id"); return(aideIPermissionDirectory.Insert(keyValuePairs)); }
/// <summary> /// 写入操作日志 /// </summary> /// <param name="log"></param> /// <returns></returns> public int InsertBaseLog(BaseLog log) { Dictionary <string, object> keyValuePairs = log.ToDictionary(); keyValuePairs.Remove("ID"); return(aideIBaseLog.Insert(keyValuePairs)); }
/// <summary> /// 新增新闻 /// </summary> /// <param name="news"></param> public void InsertNews(News news) { DataRow dr = aideNewsProvider.NewRow( ); dr[News._NewsID] = news.NewsID; dr[News._PopID] = news.PopID; dr[News._Subject] = news.Subject; dr[News._Subject1] = news.Subject1; dr[News._OnTop] = news.OnTop; dr[News._OnTopAll] = news.OnTopAll; dr[News._IsElite] = news.IsElite; dr[News._IsHot] = news.IsHot; dr[News._IsLock] = news.IsLock; dr[News._IsDelete] = news.IsDelete; dr[News._IsLinks] = news.IsLinks; dr[News._LinkUrl] = news.LinkUrl; dr[News._Body] = news.Body; dr[News._FormattedBody] = news.FormattedBody; dr[News._HighLight] = news.HighLight; dr[News._ClassID] = news.ClassID; dr[News._UserID] = news.UserID; dr[News._IssueIP] = news.IssueIP; dr[News._LastModifyIP] = news.LastModifyIP; dr[News._IssueDate] = news.IssueDate; dr[News._LastModifyDate] = news.LastModifyDate; aideNewsProvider.Insert(dr); }
/// <summary> /// 新增权限 /// </summary> /// <param name="info"></param> /// <returns></returns> public int InsertAllocationDirectory(AllocationDirectory info) { Dictionary <string, object> keyValuePairs = info.ToDictionary(); keyValuePairs.Remove("Id"); return(aideIAllocationDirectory.Insert(keyValuePairs)); }
/// <summary> /// 账号申诉 /// </summary> /// <param name="lossReport">申诉实体</param> public void SaveLossReport(LossReport lossReport) { DataRow dr = aideLossReport.NewRow(); dr[LossReport._ReportNo] = lossReport.ReportNo; dr[LossReport._ReportEmail] = lossReport.ReportEmail; dr[LossReport._Accounts] = lossReport.Accounts; dr[LossReport._RegisterDate] = lossReport.RegisterDate; dr[LossReport._Compellation] = lossReport.Compellation; dr[LossReport._PassportID] = lossReport.PassportID; dr[LossReport._MobilePhone] = lossReport.MobilePhone; dr[LossReport._OldNickName1] = lossReport.OldNickName1; dr[LossReport._OldNickName2] = lossReport.OldNickName2; dr[LossReport._OldNickName3] = lossReport.OldNickName3; dr[LossReport._OldLogonPass1] = lossReport.OldLogonPass1; dr[LossReport._OldLogonPass2] = lossReport.OldLogonPass2; dr[LossReport._OldLogonPass3] = lossReport.OldLogonPass3; dr[LossReport._ReportIP] = lossReport.ReportIP; dr[LossReport._Random] = lossReport.Random; dr[LossReport._GameID] = lossReport.GameID; dr[LossReport._UserID] = lossReport.UserID; dr[LossReport._OldQuestion1] = lossReport.OldQuestion1; dr[LossReport._OldResponse1] = lossReport.OldResponse1; dr[LossReport._OldQuestion2] = lossReport.OldQuestion2; dr[LossReport._OldResponse2] = lossReport.OldResponse2; dr[LossReport._OldQuestion3] = lossReport.OldQuestion3; dr[LossReport._OldResponse3] = lossReport.OldResponse3; dr[LossReport._SuppInfo] = lossReport.SuppInfo; dr[LossReport._FixedPhone] = lossReport.FixedPhone; dr[LossReport._ProcessStatus] = lossReport.ProcessStatus; dr[LossReport._OverDate] = lossReport.OverDate; dr[LossReport._ReportDate] = lossReport.ReportDate; dr[LossReport._SendCount] = lossReport.SendCount; aideLossReport.Insert(dr); }
public void InsertNews(News news) { DataRow dataRow = aideNewsProvider.NewRow(); dataRow["NewsID"] = news.NewsID; dataRow["PopID"] = news.PopID; dataRow["Subject"] = news.Subject; dataRow["Subject1"] = news.Subject1; dataRow["OnTop"] = news.OnTop; dataRow["OnTopAll"] = news.OnTopAll; dataRow["IsElite"] = news.IsElite; dataRow["IsHot"] = news.IsHot; dataRow["IsLock"] = news.IsLock; dataRow["IsDelete"] = news.IsDelete; dataRow["IsLinks"] = news.IsLinks; dataRow["LinkUrl"] = news.LinkUrl; dataRow["Body"] = news.Body; dataRow["FormattedBody"] = news.FormattedBody; dataRow["HighLight"] = news.HighLight; dataRow["ClassID"] = news.ClassID; dataRow["GameRange"] = news.GameRange; dataRow["ImageUrl"] = news.ImageUrl; dataRow["UserID"] = news.UserID; dataRow["IssueIP"] = news.IssueIP; dataRow["LastModifyIP"] = news.LastModifyIP; dataRow["IssueDate"] = news.IssueDate; dataRow["LastModifyDate"] = news.LastModifyDate; dataRow["SortID"] = 0; aideNewsProvider.Insert(dataRow); }
/// <summary> /// 新增后台管理用户 /// </summary> /// <param name="info"></param> /// <returns></returns> public int InsertBaseUser(BaseUser info) { Dictionary <string, object> keyValuePairs = info.ToDictionary(); keyValuePairs.Remove("ID"); return(aideIBaseUser.Insert(keyValuePairs)); }
public void InsertReward(Reward info) { DataRow dr = aideReward.NewRow(); dr[Reward._price] = info.Price; dr[Reward._addTime] = info.AddTime; aideReward.Insert(dr); }
public void InsertRole(Base_Roles role) { DataRow dataRow = aideRoleProvider.NewRow(); dataRow["RoleID"] = role.RoleID; dataRow["RoleName"] = role.RoleName; dataRow["Description"] = role.Description; aideRoleProvider.Insert(dataRow); }
/// <summary> /// 新增角色 /// </summary> /// <param name="role"></param> public void InsertRole(Base_Roles role) { DataRow dr = aideRoleProvider.NewRow(); dr[Base_Roles._RoleID] = role.RoleID; dr[Base_Roles._RoleName] = role.RoleName; dr[Base_Roles._Description] = role.Description; aideRoleProvider.Insert(dr); }
public void InsertAwardTypeInfo(AwardType awardType) { DataRow dataRow = aideAwardTypeProvider.NewRow(); dataRow["TypeName"] = awardType.TypeName; dataRow["ParentID"] = awardType.ParentID; dataRow["SortID"] = awardType.SortID; dataRow["Nullity"] = awardType.Nullity; dataRow["CollectDate"] = awardType.CollectDate; aideAwardTypeProvider.Insert(dataRow); }
public void InsertRecordAccountsExpend(RecordAccountsExpend actExpend) { DataRow dataRow = aideRecordAccountsExpendProvider.NewRow(); dataRow["ReAccounts"] = actExpend.ReAccounts; dataRow["UserID"] = actExpend.UserID; dataRow["ClientIP"] = actExpend.ClientIP; dataRow["OperMasterID"] = actExpend.OperMasterID; dataRow["CollectDate"] = DateTime.Now; aideRecordAccountsExpendProvider.Insert(dataRow); }
/// <summary> /// 新增一条记录 /// </summary> /// <param name="actExpend"></param> public void InsertRecordAccountsExpend(RecordAccountsExpend actExpend) { DataRow dr = aideRecordAccountsExpendProvider.NewRow(); dr[RecordAccountsExpend._ReAccounts] = actExpend.ReAccounts; dr[RecordAccountsExpend._UserID] = actExpend.UserID; dr[RecordAccountsExpend._ClientIP] = actExpend.ClientIP; dr[RecordAccountsExpend._OperMasterID] = actExpend.OperMasterID; dr[RecordAccountsExpend._CollectDate] = DateTime.Now; aideRecordAccountsExpendProvider.Insert(dr); }
public void InsertRolePermission(Base_RolePermission rolePermission) { DataRow dataRow = aideRolePermissionProvider.NewRow(); dataRow["RoleID"] = rolePermission.RoleID; dataRow["ModuleID"] = rolePermission.ModuleID; dataRow["ManagerPermission"] = rolePermission.ManagerPermission; dataRow["OperationPermission"] = rolePermission.OperationPermission; dataRow["StateFlag"] = rolePermission.StateFlag; aideRolePermissionProvider.Insert(dataRow); }
/// <summary> /// 新增角色权限 /// </summary> /// <param name="rolePermission"></param> public void InsertRolePermission(Base_RolePermission rolePermission) { DataRow dr = aideRolePermissionProvider.NewRow(); dr[Base_RolePermission._RoleID] = rolePermission.RoleID; dr[Base_RolePermission._ModuleID] = rolePermission.ModuleID; dr[Base_RolePermission._ManagerPermission] = rolePermission.ManagerPermission; dr[Base_RolePermission._OperationPermission] = rolePermission.OperationPermission; dr[Base_RolePermission._StateFlag] = rolePermission.StateFlag; aideRolePermissionProvider.Insert(dr); }
/// <summary> /// 新增一条限制字符信息 /// </summary> /// <param name="content"></param> public void InsertConfineContent(ConfineContent content) { DataRow dr = aideConfineContentProvider.NewRow(); dr[ConfineContent._String] = content.String; if (!content.EnjoinOverDate.Equals(Convert.ToDateTime("1900-01-01"))) { dr[ConfineContent._EnjoinOverDate] = content.EnjoinOverDate; } dr[ConfineContent._CollectDate] = DateTime.Now; aideConfineContentProvider.Insert(dr); }
/// <summary> /// 新增一条记录 /// </summary> /// <param name="pwExpend"></param> public void InsertRecordPasswdExpend(RecordPasswdExpend pwExpend) { DataRow dr = aideRecordPasswdExpendProvider.NewRow(); dr[RecordPasswdExpend._ReLogonPasswd] = pwExpend.ReLogonPasswd; dr[RecordPasswdExpend._ReInsurePasswd] = pwExpend.ReInsurePasswd; dr[RecordPasswdExpend._UserID] = pwExpend.UserID; dr[RecordPasswdExpend._ClientIP] = pwExpend.ClientIP; dr[RecordPasswdExpend._OperMasterID] = pwExpend.OperMasterID; dr[RecordPasswdExpend._CollectDate] = DateTime.Now; aideRecordPasswdExpendProvider.Insert(dr); }
/// <summary> /// 新增游戏类型 /// </summary> /// <param name="gameGameItem"></param> public void InsertGameTypeItem(GameTypeItem gameTypeItem) { DataRow dr = aideGameTypeItemProvider.NewRow(); dr[GameTypeItem._TypeID] = gameTypeItem.TypeID; dr[GameTypeItem._SortID] = gameTypeItem.SortID; dr[GameTypeItem._TypeName] = gameTypeItem.TypeName; dr[GameTypeItem._JoinID] = gameTypeItem.JoinID; dr[GameTypeItem._Nullity] = gameTypeItem.Nullity; aideGameTypeItemProvider.Insert(dr); }
public void InsertRecordPasswdExpend(RecordPasswdExpend pwExpend) { DataRow dataRow = aideRecordPasswdExpendProvider.NewRow(); dataRow["ReLogonPasswd"] = pwExpend.ReLogonPasswd; dataRow["ReInsurePasswd"] = pwExpend.ReInsurePasswd; dataRow["UserID"] = pwExpend.UserID; dataRow["ClientIP"] = pwExpend.ClientIP; dataRow["OperMasterID"] = pwExpend.OperMasterID; dataRow["CollectDate"] = DateTime.Now; aideRecordPasswdExpendProvider.Insert(dataRow); }
public void InsertRecordGrantTreasure(RecordGrantTreasure grantTreasure) { DataRow dataRow = aideRecordGrantTreasureProvider.NewRow(); dataRow["MasterID"] = grantTreasure.MasterID; dataRow["CurGold"] = grantTreasure.CurGold; dataRow["UserID"] = grantTreasure.UserID; dataRow["ClientIP"] = grantTreasure.ClientIP; dataRow["AddGold"] = grantTreasure.AddGold; dataRow["Reason"] = grantTreasure.Reason; dataRow["CollectDate"] = DateTime.Now; aideRecordGrantTreasureProvider.Insert(dataRow); }
/// <summary> /// 新增问题 /// </summary> /// <param name="gameIssue"></param> public void InsertGameIssue(GameIssueInfo gameIssue) { DataRow dr = aideGameIssueProvider.NewRow( ); dr[GameIssueInfo._IssueID] = gameIssue.IssueID; dr[GameIssueInfo._IssueTitle] = gameIssue.IssueTitle; dr[GameIssueInfo._IssueContent] = gameIssue.IssueContent; dr[GameIssueInfo._Nullity] = gameIssue.Nullity; dr[GameIssueInfo._CollectDate] = gameIssue.CollectDate; dr[GameIssueInfo._ModifyDate] = gameIssue.ModifyDate; aideGameIssueProvider.Insert(dr); }
public void InsertRecordGrantExperience(RecordGrantExperience grantExperience) { DataRow dataRow = aideRecordGrantExperienceProvider.NewRow(); dataRow["MasterID"] = grantExperience.MasterID; dataRow["CurExperience"] = grantExperience.CurExperience; dataRow["UserID"] = grantExperience.UserID; dataRow["ClientIP"] = grantExperience.ClientIP; dataRow["AddExperience"] = grantExperience.AddExperience; dataRow["Reason"] = grantExperience.Reason; dataRow["CollectDate"] = DateTime.Now; aideRecordGrantExperienceProvider.Insert(dataRow); }
/// <summary> /// 新增一条赠送经验记录 /// </summary> /// <param name="grantExperience"></param> public void InsertRecordGrantExperience(RecordGrantExperience grantExperience) { DataRow dr = aideRecordGrantExperienceProvider.NewRow(); dr[RecordGrantExperience._MasterID] = grantExperience.MasterID; dr[RecordGrantExperience._CurExperience] = grantExperience.CurExperience; dr[RecordGrantExperience._UserID] = grantExperience.UserID; dr[RecordGrantExperience._ClientIP] = grantExperience.ClientIP; dr[RecordGrantExperience._AddExperience] = grantExperience.AddExperience; dr[RecordGrantExperience._Reason] = grantExperience.Reason; dr[RecordGrantExperience._CollectDate] = DateTime.Now; aideRecordGrantExperienceProvider.Insert(dr); }
/// <summary> /// 新增一条赠送会员记录 /// </summary> /// <param name="grantMember"></param> public void InsertRecordGrantMember(RecordGrantMember grantMember) { DataRow dr = aideRecordGrantMemberProvider.NewRow(); dr[RecordGrantMember._MasterID] = grantMember.MasterID; dr[RecordGrantMember._GrantCardType] = grantMember.GrantCardType; dr[RecordGrantMember._UserID] = grantMember.UserID; dr[RecordGrantMember._ClientIP] = grantMember.ClientIP; dr[RecordGrantMember._MemberDays] = grantMember.MemberDays; dr[RecordGrantMember._Reason] = grantMember.Reason; dr[RecordGrantMember._CollectDate] = DateTime.Now; aideRecordGrantMemberProvider.Insert(dr); }
/// <summary> /// 新增一条赠送金币记录 /// </summary> /// <param name="grantTreasure"></param> public void InsertRecordGrantTreasure(RecordGrantTreasure grantTreasure) { DataRow dr = aideRecordGrantTreasureProvider.NewRow(); dr[RecordGrantTreasure._MasterID] = grantTreasure.MasterID; dr[RecordGrantTreasure._CurGold] = grantTreasure.CurGold; dr[RecordGrantTreasure._UserID] = grantTreasure.UserID; dr[RecordGrantTreasure._ClientIP] = grantTreasure.ClientIP; dr[RecordGrantTreasure._AddGold] = grantTreasure.AddGold; dr[RecordGrantTreasure._Reason] = grantTreasure.Reason; dr[RecordGrantTreasure._CollectDate] = DateTime.Now; aideRecordGrantTreasureProvider.Insert(dr); }
public void InsertRecordGrantMember(RecordGrantMember grantMember) { DataRow dataRow = aideRecordGrantMemberProvider.NewRow(); dataRow["MasterID"] = grantMember.MasterID; dataRow["GrantCardType"] = grantMember.GrantCardType; dataRow["UserID"] = grantMember.UserID; dataRow["ClientIP"] = grantMember.ClientIP; dataRow["MemberDays"] = grantMember.MemberDays; dataRow["Reason"] = grantMember.Reason; dataRow["CollectDate"] = DateTime.Now; aideRecordGrantMemberProvider.Insert(dataRow); }
/// <summary> /// 新增机器信息 /// </summary> /// <param name="station"></param> public void InsertDataBase(DataBaseInfo dataBase) { DataRow dr = aideDataBaseInfoProvider.NewRow(); dr[DataBaseInfo._DBAddr] = dataBase.DBAddr; dr[DataBaseInfo._DBPort] = dataBase.DBPort; dr[DataBaseInfo._DBUser] = dataBase.DBUser; dr[DataBaseInfo._DBPassword] = dataBase.DBPassword; dr[DataBaseInfo._MachineID] = dataBase.MachineID; dr[DataBaseInfo._Information] = dataBase.Information; aideDataBaseInfoProvider.Insert(dr); }
/// <summary> /// 新增实卡类型 /// </summary> /// <param name="globalLivcard"></param> public void InsertGlobalLivcard(GlobalLivcard globalLivcard) { DataRow dr = aideGlobalLivcardProvider.NewRow( ); dr[GlobalLivcard._CardName] = globalLivcard.CardName; dr[GlobalLivcard._CardPrice] = globalLivcard.CardPrice; dr[GlobalLivcard._CardGold] = globalLivcard.CardGold; dr[GlobalLivcard._MemberOrder] = globalLivcard.MemberOrder; dr[GlobalLivcard._MemberDays] = globalLivcard.MemberDays; dr[GlobalLivcard._UserRight] = globalLivcard.UserRight; dr[GlobalLivcard._ServiceRight] = globalLivcard.ServiceRight; aideGlobalLivcardProvider.Insert(dr); }
public void InsertGameIssue(GameIssueInfo gameIssue) { DataRow dataRow = aideGameIssueProvider.NewRow(); dataRow["IssueID"] = gameIssue.IssueID; dataRow["IssueTitle"] = gameIssue.IssueTitle; dataRow["IssueContent"] = gameIssue.IssueContent; dataRow["TypeID"] = gameIssue.TypeID; dataRow["Nullity"] = gameIssue.Nullity; dataRow["Hot"] = gameIssue.Hot; dataRow["CollectDate"] = gameIssue.CollectDate; dataRow["ModifyDate"] = gameIssue.ModifyDate; aideGameIssueProvider.Insert(dataRow); }
/// <summary> /// 新增比赛 /// </summary> /// <param name="gameMatch"></param> public void InsertMatchInfo(MatchInfo gameMatch) { DataRow dr = aideMatchInfoProvider.NewRow( ); dr[MatchInfo._MatchID] = gameMatch.MatchID; dr[MatchInfo._MatchName] = gameMatch.MatchName; dr[MatchInfo._MatchSummary] = gameMatch.MatchSummary; dr[MatchInfo._MatchContent] = gameMatch.MatchContent; dr[MatchInfo._MatchDate] = gameMatch.MatchDate; dr[MatchInfo._MatchStatus] = gameMatch.MatchStatus; dr[MatchInfo._Nullity] = gameMatch.Nullity; dr[MatchInfo._CollectDate] = gameMatch.CollectDate; aideMatchInfoProvider.Insert(dr); }