internal override long?GetFirstConflictedChangeGroup(ChangeStatus status) { Guid sessionUniqueId = new Guid(Session.SessionUniqueId); using (RuntimeEntityModel context = RuntimeEntityModel.CreateInstance()) { int statusVal = (int)status; var query = (from cg in context.RTChangeGroupSet where cg.SessionUniqueId.Equals(sessionUniqueId) && cg.SourceUniqueId.Equals(SourceId) && cg.Status == statusVal && cg.ContainsBackloggedAction orderby cg.Id select cg.Id).Take(1); if (query.Count() > 0) { return(query.First()); } else { return(null); } } }
private void statusTextBox_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == Key.Enter) { ChangeStatus.Focus(); } }
private void Notify() { ChangeStatus?.Invoke(this, new ChangeStatusEventArgs() { Status = this.statusOpc }); }
public PluginStatusCollectionChangedEventArgs(IPluginStatusCollection c, ChangeStatus action, Guid pluginID, ConfigPluginStatus status) { Collection = c; Action = action; PluginID = pluginID; Status = status; }
/// <summary> /// Initializes a new <see cref="ServiceRequirementCollectionChangedEventArgs"/>. /// </summary> /// <param name="c">The collection that changed.</param> /// <param name="action">The <see cref="ChangeStatus"/>.</param> /// <param name="assemblyQualifiedName">The service identifier concerned.</param> /// <param name="requirement">The <see cref="RunningRequirement"/> of the changed service.</param> public ServiceRequirementCollectionChangedEventArgs( IServiceRequirementCollection c, ChangeStatus action, string assemblyQualifiedName, RunningRequirement requirement ) { Collection = c; Action = action; AssemblyQualifiedName = assemblyQualifiedName; Requirement = requirement; }
public async Task <ActionResult> SaveChangedStatus(ChangeStatus ChangeSts, CardnAccNo _CardNAcct) { ChangeSts._CardnAccNo = _CardNAcct; var _SaveChangedStatus = await CardHolderService.StatusSave(ChangeSts, GetUserId); return(Json(new { resultCd = _SaveChangedStatus }, JsonRequestBehavior.AllowGet)); }
public PluginStatusCollectionChangedEventArgs( IPluginStatusCollection c, ChangeStatus action, Guid pluginID, ConfigPluginStatus status ) { Collection = c; Action = action; PluginID = pluginID; Status = status; }
internal static T AsTrackable <T>(this T target, ChangeStatus status, Action <T> notifyParentListItemCanceled, bool makeComplexPropertiesTrackable, bool makeCollectionPropertiesTrackable) where T : class { //if T was ICollection<T> it would of gone to one of the other overloads if (target as ICollection != null) { throw new InvalidOperationException("Only IList<T>, List<T> and ICollection<T> are supported"); } var changeTrackingInterceptor = new ChangeTrackingInterceptor <T>(status); var notifyPropertyChangedInterceptor = new NotifyPropertyChangedInterceptor <T>(changeTrackingInterceptor); var editableObjectInterceptor = new EditableObjectInterceptor <T>(notifyParentListItemCanceled); var complexPropertyInterceptor = new ComplexPropertyInterceptor <T>(makeComplexPropertiesTrackable, makeCollectionPropertiesTrackable); var collectionPropertyInterceptor = new CollectionPropertyInterceptor <T>(makeComplexPropertiesTrackable, makeCollectionPropertiesTrackable); object proxy = _ProxyGenerator.CreateClassProxyWithTarget(typeof(T), new[] { typeof(IChangeTrackableInternal), typeof(IChangeTrackable <T>), typeof(IChangeTrackingManager), typeof(IComplexPropertyTrackable), typeof(ICollectionPropertyTrackable), typeof(IEditableObject), typeof(System.ComponentModel.INotifyPropertyChanged) }, target, GetOptions(typeof(T)), notifyPropertyChangedInterceptor, changeTrackingInterceptor, editableObjectInterceptor, complexPropertyInterceptor, collectionPropertyInterceptor); CopyFields(source: target, target: proxy); notifyPropertyChangedInterceptor.IsInitialized = true; changeTrackingInterceptor.IsInitialized = true; editableObjectInterceptor.IsInitialized = true; complexPropertyInterceptor.IsInitialized = true; collectionPropertyInterceptor.IsInitialized = true; return((T)proxy); }
private void AcceptChanges(object proxy, List <object> parents) { if (_ChangeTrackingStatus == ChangeStatus.Deleted) { throw new InvalidOperationException("Can not call AcceptChanges on deleted object"); } ChangeStatus changeTrackingStatusWhenStarted = _ChangeTrackingStatus; parents = parents ?? new List <object>(20) { proxy }; foreach (var child in Utils.GetChildren <System.ComponentModel.IRevertibleChangeTracking>(proxy, parents)) { if (child is IRevertibleChangeTrackingInternal childInternal) { childInternal.AcceptChanges(parents); } else { child.AcceptChanges(); } } _OriginalValueDictionary.Clear(); SetAndRaiseStatusChanged(proxy, parents, setStatusEvenIfStatsAddedOrDeleted: true); bool anythingChanged = changeTrackingStatusWhenStarted != _ChangeTrackingStatus; if (anythingChanged) { RaiseChangePropertiesChanged(proxy); } }
private void ChangeStatus_Click(object sender, RoutedEventArgs e) { ChangeStatus changeStatus = new ChangeStatus(); changeStatus.Show(); this.Close(); }
/// <summary> /// Raises event 'ChangeStatus' /// </summary> protected virtual void OnChangeStatus() { if (ChangeStatus != null) { ChangeStatus.Invoke(this, System.EventArgs.Empty); } }
public ActionResult ChangeStatus(ChangeStatus model, string searchQueryId = null) { if (!ModelState.IsValid) { return(Json(RenderRazorViewToString("ChangeStatus", model), JsonRequestBehavior.AllowGet)); } UserTableViewModel updatedUser; User user; using (var transaction = ContextManager.NewTransaction()) { userService.ChangeStatus(model.StatusId, model.UserId, User.Id); transaction.Commit(); user = userService.Get(model.UserId); updatedUser = Mapper.Map <UserTableViewModel>( userService.Search(new UserQuery { Id = model.UserId }).SingleOrDefault()); } if (model.StatusId == EnumHelper.GetStatusIdByEnum(UserStatus.Active)) { userMailService.SendChangePasswordMail(user); } RefreshGridItem(searchQueryId, updatedUser, x => x.Id == updatedUser.Id); return(Json( new { success = true, refreshgrid = true, searchqueryid = searchQueryId }, JsonRequestBehavior.AllowGet)); }
/// <summary> /// Initializes a new <see cref="ServiceRequirementCollectionChangingEventArgs"/>. /// </summary> /// <param name="c">The collection that is changing.</param> /// <param name="action">The <see cref="ChangeStatus"/>.</param> /// <param name="assemblyQualifiedName">The service identifier concerned.</param> /// <param name="requirement">The <see cref="RunningRequirement"/> of the changing service.</param> public ServiceRequirementCollectionChangingEventArgs(IServiceRequirementCollection c, ChangeStatus action, string assemblyQualifiedName, RunningRequirement requirement) { Collection = c; Action = action; AssemblyQualifiedName = assemblyQualifiedName; Requirement = requirement; }
internal ChangeTrackingInterceptor(ChangeStatus status) { _OriginalValueDictionary = new Dictionary <string, object>(); _StatusChangedEventHandlers = new Dictionary <string, Delegate>(); _StatusChangedEventHandlersLock = new object(); _ChangeTrackingStatus = status; }
/// <summary> /// Initializes a new <see cref="PluginRequirementCollectionChangingEventArgs"/>. /// </summary> /// <param name="c">The collection that is changing.</param> /// <param name="action">The <see cref="ChangeStatus"/>.</param> /// <param name="pluginId">The plugin identifier concerned.</param> /// <param name="requirement">The <see cref="RunningRequirement"/> of the changed <paramref name="pluginId"/>.</param> public PluginRequirementCollectionChangingEventArgs( IPluginRequirementCollection c, ChangeStatus action, Guid pluginId, RunningRequirement requirement ) { Collection = c; Action = action; PluginId = pluginId; Requirement = requirement; }
private void OnEntityChanged(object entity, PropertyChangedEventArgs args) { if (Status < ChangeStatus.Updated) { Status = ChangeStatus.Updated; } }
public object ChangeStatus(ChangeStatus model) { ResponseDetails responseDetails = new ResponseDetails(); try { BugViewModel bug = bugService.Get(model.Id); bug.StatusId = model.StatusId; if (model.StatusId == 2004) { // if you are changing bug status to open => we need to change project status to under development ProjectViewModel project = projectService.Get(bug.ProjectId); project.ProjectStatusId = 1004; projectService.Update(project); } else if (model.StatusId == 2005) { // if you are changing bug status to Fixed => we need to change project status to under finished ProjectViewModel project = projectService.Get(bug.ProjectId); project.ProjectStatusId = 1007; projectService.Update(project); } bugService.Update(bug); responseDetails = Helper.SetResponseDetails("Bug status updated successfully.", true, null, MessageType.Success); } catch (Exception ex) { responseDetails = Helper.SetResponseDetails("Exception encountered : " + ex.Message, false, ex, MessageType.Error); } return(responseDetails); }
public static T AsTrackable <T>(this T target, ChangeStatus status = ChangeStatus.Unchanged, bool makeComplexPropertiesTrackable = true, bool makeCollectionPropertiesTrackable = true) where T : class { Graph graph = new Graph(); T trackable = AsTrackable(target, status, null, makeComplexPropertiesTrackable, makeCollectionPropertiesTrackable, graph); return(trackable); }
/************************************* * Created by: dandy * Created on: 07 06, 2017 * Function: StatusSave * Purpose: StatusSave * Inputs: changeStatusDto,userId * Returns: SaveAcctSignUpResponse *************************************/ public async Task <SaveAcctSignUpResponse> StatusSave(ChangeStatus changeStatusModel, string userId) { Logger.Info("Invoking StatusSave function"); var response = new SaveAcctSignUpResponse() { Status = ResponseStatus.Failure, }; try { using (var scope = Container.BeginLifetimeScope()) { var cardHolderDAO = scope.Resolve <ICardHolderDAO>(); var controlDAO = scope.Resolve <IControlDAO>(); var changeStatusDto = Mapper.Map <ChangeStatus, ChangeStatusDTO>(changeStatusModel); var result = await cardHolderDAO.StatusSave(changeStatusDto, userId); var message = await controlDAO.GetMessageCode(result); response.desp = message.Descp; response.flag = message.Flag; } response.Status = ResponseStatus.Success; } catch (Exception ex) { string msg = string.Format("Error in StatusSave: detail:{0}", ex.Message); Logger.Error(msg, ex); response.Status = ResponseStatus.Exception; response.flag = 1; response.Message = msg; } return(response); }
public void Add(string filename, ChangeStatus changeStatus, Guid where) { lock (((System.Collections.ICollection)Elems).SyncRoot) { if (!Elems.ContainsKey(filename)) { if (changeStatus == ChangeStatus.Identical) { // don't bother adding for Identical return; } Elems.Add(filename, new FooChangeSetElem(filename, RepositoryIDs)); } if (Elems[filename].ChangeStatus[where] != changeStatus) { Elems[filename].ChangeStatus[where] = changeStatus; if (CollectionChanged != null) { CollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, filename)); } } } }
/// <summary> /// Initializes a new <see cref="PluginRequirementCollectionChangingEventArgs"/>. /// </summary> /// <param name="c">The collection that is changing.</param> /// <param name="action">The <see cref="ChangeStatus"/>.</param> /// <param name="pluginId">The plugin identifier concerned.</param> /// <param name="requirement">The <see cref="RunningRequirement"/> of the changed <paramref name="pluginId"/>.</param> public PluginRequirementCollectionChangingEventArgs(IPluginRequirementCollection c, ChangeStatus action, Guid pluginId, RunningRequirement requirement) { Collection = c; Action = action; PluginId = pluginId; Requirement = requirement; }
/// <summary> /// Hangfire job to send Change Status message to One stop. /// </summary> public async Task SendChangeStatusRest(PerformContext hangfireContext, string licenceGuidRaw, OneStopHubStatusChange statusChange, string queueItemId) { IDynamicsClient dynamicsClient = DynamicsSetupUtil.SetupDynamics(_configuration); if (hangfireContext != null) { hangfireContext.WriteLine("Starting OneStop REST ChangeStatus Job."); } string licenceGuid = Utils.ParseGuid(licenceGuidRaw); //prepare soap content var req = new ChangeStatus(); var licence = dynamicsClient.GetLicenceByIdWithChildren(licenceGuid); if (hangfireContext != null && licence != null) { hangfireContext.WriteLine($"Got Licence {licenceGuid}."); } if (licence == null) { if (hangfireContext != null) { hangfireContext.WriteLine($"Unable to get licence {licenceGuid}."); } if (Log.Logger != null) { Log.Logger.Error($"Unable to get licence {licenceGuid}."); } } else { var innerXml = req.CreateXML(licence, statusChange); innerXml = _onestopRestClient.CleanXML(innerXml); if (Log.Logger != null) { Log.Logger.Information(innerXml); } if (hangfireContext != null) { hangfireContext.WriteLine(innerXml); } //send message to Onestop hub var outputXML = await _onestopRestClient.ReceiveFromPartner(innerXml); UpdateQueueItemForSend(dynamicsClient, hangfireContext, queueItemId, innerXml, outputXML); if (hangfireContext != null) { hangfireContext.WriteLine(outputXML); hangfireContext.WriteLine("End of OneStop REST ProgramAccountDetailsBroadcast Job."); } } }
public void menu() { Admin adm = new Admin(); User user = new User(); Console.WriteLine("Login as:\n1 - Admin\n2 - User\n0 - Exit"); Console.Write("Your choice is: "); choice = Int32.Parse(Console.ReadLine()); switch (choice) { case 1: { Console.Clear(); Console.Write("Enter login: "******"Enter password: "******"Arman" && adm.password == "Admin") { Console.WriteLine("1 - Change status\n2 - Add/Remove component\n0 - Exit"); Console.Write("Your choice is: "); choice = Int32.Parse(Console.ReadLine()); switch (choice) { case 1: { ChangeStatus.changeStatus(); break; } case 2: { AddRemoveComp.addRemoveComp(); break; } case 0: { break; } } } break; } case 2: { Console.Clear(); user.LogInAsUser(); break; } case 0: { break; } } }
internal void Change( ChangeStatus action, Guid pluginID, RunningRequirement requirement ) { if( Changed != null ) { PluginRequirementCollectionChangedEventArgs e = new PluginRequirementCollectionChangedEventArgs( this, action, pluginID, requirement ); Changed( this, e ); } }
internal EntityTracker(T entity) { reference = entity; //original = CloneEntity(entity); Status = ChangeStatus.Original; entity.PropertyChanged += OnEntityChanged; }
internal ChangeTrackingInterceptor(ChangeStatus status) { _OriginalValueDictionary = new Dictionary <string, object>(); _ChangedComplexOrCollectionProperties = new HashSet <string>(); _StatusChangedEventHandlers = new Dictionary <string, Delegate>(); _StatusChangedEventHandlersLock = new object(); _ChangeTrackingStatus = status; }
internal void Change( ChangeStatus changeAction, Guid pluginId, ConfigUserAction action ) { if( Changed != null ) { LiveUserConfigurationChangedEventArgs e = new LiveUserConfigurationChangedEventArgs( changeAction, pluginId, action ); Changed( this, e ); } }
internal void Change(ChangeStatus changeAction, Guid pluginId, ConfigUserAction action) { if (Changed != null) { LiveUserConfigurationChangedEventArgs e = new LiveUserConfigurationChangedEventArgs(changeAction, pluginId, action); Changed(this, e); } }
internal void Change(ChangeStatus action, string serviceAssemblyQualifiedName, RunningRequirement requirement) { if (Changed != null) { ServiceRequirementCollectionChangedEventArgs e = new ServiceRequirementCollectionChangedEventArgs(this, action, serviceAssemblyQualifiedName, requirement); Changed(this, e); } }
internal void Change(ChangeStatus action, Guid pluginID, RunningRequirement requirement) { if (Changed != null) { PluginRequirementCollectionChangedEventArgs e = new PluginRequirementCollectionChangedEventArgs(this, action, pluginID, requirement); Changed(this, e); } }
public async Task <JsonResult> FillData(string Prefix, string AcctNo, string AppcId, string ApplId) { switch (Prefix) { case "gen": var _GeData = (await ApplicantSignUpService.GetApplicantInfo(ApplId, AppcId, AcctNo)).cardAppcInfo; var CardData = new CardAppcInfoModel { CardType = await BaseService.GetCardType(AppcId, null, ApplId, AcctNo), PinInd = await BaseService.GetRefLib("PinInd"), SKDSNo = await BaseService.GetSKDS(ApplId, AcctNo), DialogueInd = await BaseService.GetRefLib("DialogueInd"), CurrentStatus = await BaseService.GetRefLib("AppcSts"), ProductUtilization = await BaseService.WebProductGroupSelect(), VehicleModel = await BaseService.GetRefLib("VehType"), CostCentre = !string.IsNullOrEmpty(ApplId) ? await BaseService.GetCostCentre(ApplId, "Appl", true) : await BaseService.GetCostCentre(AcctNo, "Acct", true), AnnualFee = await BaseService.GetFeeCd("ANN"), JoiningFee = await BaseService.GetFeeCd("JON"), BranchCd = await BaseService.GetRefLib("BranchCd"), DivisionCode = await BaseService.GetRefLib("DivisionCd"), DeptCd = await BaseService.GetRefLib("DeptCd"), CardMedia = await BaseService.GetCardMedia(), }; return(Json(new { Model = _GeData, Selects = CardData }, JsonRequestBehavior.AllowGet)); case "fin": var data = (await ApplicantSignUpService.GetFinancialInfo(AppcId)).cardFinancialInfo; return(Json(new { Model = data }, JsonRequestBehavior.AllowGet)); case "per": var _perData = (await CardHolderService.GetPersonInfo(Request.QueryString["EntityId"])).personalInfo; var perSelects = new PersonInfoModel { title = await BaseService.GetRefLib("Title"), IdType = await BaseService.GetRefLib("IcType"), AltIdType = await BaseService.GetRefLib("IcType"), gender = await BaseService.GetRefLib("Gender"), Occupation = await BaseService.GetRefLib("Occupation"), }; return(Json(new { Model = _perData, Selects = perSelects }, JsonRequestBehavior.AllowGet)); case "sts": var stsDetails = await CardHolderService.GetChangedAcctStsDetail(AcctNo, AppcId); var selecs = new ChangeStatus { CurrentStatus = await BaseService.GetRefLib("CardSts"), RefType = await BaseService.GetRefLib("EventType"), ReasonCode = await BaseService.GetRefLib("ReasonCd", "64"), ChangeStatusTo = await BaseService.GetRefLib("AcctSts", "") }; return(Json(new { Model = stsDetails.changeStatus, Selects = selecs }, JsonRequestBehavior.AllowGet)); default: HttpContext.Response.StatusCode = 404; return(Json(null, JsonRequestBehavior.AllowGet)); } }
internal void Change( ChangeStatus action, Guid pluginId, ConfigPluginStatus status ) { _holder.OnPluginStatusCollectionChanged( action, pluginId, status ); if( Changed != null ) { PluginStatusCollectionChangedEventArgs e = new PluginStatusCollectionChangedEventArgs( this, action, pluginId, status ); Changed( this, e ); } }
/// <summary>Snippet for GetChangeStatus</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetChangeStatus() { // Create client ChangeStatusServiceClient changeStatusServiceClient = ChangeStatusServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/changeStatus/[CHANGE_STATUS_ID]"; // Make the request ChangeStatus response = changeStatusServiceClient.GetChangeStatus(resourceName); }
internal void Change(ChangeStatus action, Guid pluginId, ConfigPluginStatus status) { _holder.OnPluginStatusCollectionChanged(action, pluginId, status); if (Changed != null) { PluginStatusCollectionChangedEventArgs e = new PluginStatusCollectionChangedEventArgs(this, action, pluginId, status); Changed(this, e); } }
/// <summary>Snippet for GetChangeStatus</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetChangeStatusResourceNames() { // Create client ChangeStatusServiceClient changeStatusServiceClient = ChangeStatusServiceClient.Create(); // Initialize request argument(s) ChangeStatusName resourceName = ChangeStatusName.FromCustomerChangeStatus("[CUSTOMER_ID]", "[CHANGE_STATUS_ID]"); // Make the request ChangeStatus response = changeStatusServiceClient.GetChangeStatus(resourceName); }
/// <summary> /// Update reference with new information from API /// </summary> /// <param name="entity"></param> internal void Update(T entity) { foreach (var prop in entity.GetType().GetProperties().Where(p => p.SetMethod != null)) { reference.GetType().GetProperty(prop.Name)?.SetMethod.Invoke(reference, new [] { prop.GetValue(prop) }); } Status = ChangeStatus.Original; }
private ChangeItem(ChangeStatus status, IUntypedReadableProperty property, XElement newValue, XElement oldValue, XName key, string description) { Status = status; Property = property; NewValue = newValue; OldValue = oldValue; Key = key; Description = description; }
internal bool CanChange( ChangeStatus action, Guid pluginId, ConfigPluginStatus status ) { if( Changing != null ) { PluginStatusCollectionChangingEventArgs eCancel = new PluginStatusCollectionChangingEventArgs( this, action, pluginId, status ); Changing( this, eCancel ); return !eCancel.Cancel; } return true; }
internal bool CanChange( ChangeStatus action, Guid pluginID, RunningRequirement requirement ) { if( Changing != null ) { PluginRequirementCollectionChangingEventArgs eCancel = new PluginRequirementCollectionChangingEventArgs( this, action, pluginID, requirement ); Changing( this, eCancel ); return !eCancel.Cancel; } return true; }
internal bool CanChange( ChangeStatus changeAction, Guid pluginId, ConfigUserAction action ) { if( Changing != null ) { LiveUserConfigurationChangingEventArgs eCancel = new LiveUserConfigurationChangingEventArgs( changeAction, pluginId, action ); Changing( this, eCancel ); return !eCancel.Cancel; } return true; }
/// <summary> /// Instantiates ChangeInfo with the parameterized properties /// </summary> /// <param name="id">The ID of the request. Use this ID to track when the change has completed across all Amazon Route 53 DNS servers.</param> /// <param name="status">The current state of the request. <code>PENDING</code> indicates that this request has not yet been applied to all Amazon Route 53 DNS servers. Valid Values: <code>PENDING</code> | <code>INSYNC</code></param> /// <param name="submittedAt">The date and time the change was submitted, in the format <code>YYYY-MM-DDThh:mm:ssZ</code>, as specified in the ISO 8601 standard (for example, 2009-11-19T19:37:58Z). The <code>Z</code> after the time indicates that the time is listed in Coordinated Universal Time (UTC), which is synonymous with Greenwich Mean Time in this context.</param> public ChangeInfo(string id, ChangeStatus status, DateTime submittedAt) { _id = id; _status = status; _submittedAt = submittedAt; }
private ConfigChangedEventArgs( object obj, IReadOnlyCollection<object> multiObj, IReadOnlyCollection<INamedVersionedUniqueId> multiPluginId, string key, object value, ChangeStatus status ) { Obj = obj; MultiObj = multiObj; MultiPluginId = multiPluginId; Key = key; Value = value; Status = status; }
public ConfigChangedEventArgs( IReadOnlyCollection<object> multiObj, bool allObjectsConcerned, IReadOnlyCollection<INamedVersionedUniqueId> multiPluginId, bool allPluginsConcerned, ChangeStatus status ) : this( null, multiObj, multiPluginId, null, null, status ) { IsAllPluginsConcerned = allPluginsConcerned; IsAllObjectsConcerned = allObjectsConcerned; }
public ConfigChangedEventArgs( object obj, INamedVersionedUniqueId pluginId, ChangeStatus status ) : this( obj, new ReadOnlyListMono<object>( obj ), new ReadOnlyListMono<INamedVersionedUniqueId>( pluginId ), null, null, status ) { }
public ConfigChangedEventArgs( object obj, IReadOnlyCollection<INamedVersionedUniqueId> multiPluginId, bool allPluginsConcerned, ChangeStatus status ) : this( obj, new ReadOnlyListMono<object>( obj ), multiPluginId, null, null, status ) { IsAllPluginsConcerned = allPluginsConcerned; }
internal void OnPluginStatusCollectionChanged( ChangeStatus action, Guid pluginId, ConfigPluginStatus status ) { OnCollectionChanged(); }
public ConfigChangedEventArgs( IObjectPluginAssociation a, IConfigEntry e, ChangeStatus status ) : this( a.Obj, new ReadOnlyListMono<object>( a.Obj ), new ReadOnlyListMono<INamedVersionedUniqueId>( a.PluginId ), e.Key, e.Value, status ) { }
public FileChange(String path, ChangeStatus status) { Path = path; Status = status; }
private void saveSearchResultDetailTable(int searchWordTable_Id, int dateTable_Id, string googleURL, string googleTitle, string googleChangeText, ChangeStatus googleChangeStatus, string yahooURL, string yahooTitle, string yahooChangeText, ChangeStatus yahooChangeStatus, string bingURL, string bingTitle, string bingChangeText, ChangeStatus bingChangeStatus) { using (SQLiteConnection cn = new SQLiteConnection(dbConnectionString)) { cn.Open(); using (SQLiteTransaction trans = cn.BeginTransaction()) { SQLiteCommand cmd = cn.CreateCommand(); cmd.CommandText = "SELECT SearchWordTable_Id FROM SearchResultDetailTable WHERE SearchWordTable_Id is (@SearchWordTable_Id)"; cmd.Parameters.Add("SearchWordTable_Id", System.Data.DbType.Int64); cmd.Parameters["SearchWordTable_Id"].Value = searchWordTable_Id; String sId = null; using (SQLiteDataReader reader = cmd.ExecuteReader()) { while (reader.Read()) { sId = reader["SearchWordTable_Id"].ToString(); } } if (sId != null) { cmd.CommandText = "UPDATE SearchResultDetailTable SET SearchWordTable_Id=(@SearchWordTable_Id), DateTable_Id=(@DateTable_Id), GoogleURL=(@GoogleURL), GoogleTitle=(@GoogleTitle), GoogleChangeText=(@GoogleChangeText), GoogleChangeStatus=(@GoogleChangeStatus), YahooURL=(@YahooURL), YahooTitle=(@YahooTitle), YahooChangeText=(@YahooChangeText), YahooChangeStatus=(@YahooChangeStatus), BingURL=(@BingURL), BingTitle=(@BingTitle), BingChangeText=(@BingChangeText), BingChangeStatus=(@BingChangeStatus) WHERE SearchWordTable_Id is (@SearchWordTable_Id)"; } else { cmd.CommandText = "INSERT INTO SearchResultDetailTable (SearchWordTable_Id, DateTable_Id, GoogleURL, GoogleTitle, GoogleChangeText, GoogleChangeStatus, YahooURL, YahooTitle, YahooChangeText, YahooChangeStatus, BingURL, BingTitle, BingChangeText, BingChangeStatus) VALUES (@SearchWordTable_Id, @DateTable_Id, @GoogleURL, @GoogleTitle, @GoogleChangeText, @GoogleChangeStatus, @YahooURL, @YahooTitle, @YahooChangeText, @YahooChangeStatus, @BingURL, @BingTitle, @BingChangeText, @BingChangeStatus)"; } cmd.Parameters.Add("SearchWordTable_Id", System.Data.DbType.Int64); cmd.Parameters.Add("DateTable_Id", System.Data.DbType.Int64); cmd.Parameters.Add("GoogleURL", System.Data.DbType.String); cmd.Parameters.Add("GoogleTitle", System.Data.DbType.String); cmd.Parameters.Add("GoogleChangeText", System.Data.DbType.String); cmd.Parameters.Add("GoogleChangeStatus", System.Data.DbType.Int64); cmd.Parameters.Add("YahooURL", System.Data.DbType.String); cmd.Parameters.Add("YahooTitle", System.Data.DbType.String); cmd.Parameters.Add("YahooChangeText", System.Data.DbType.String); cmd.Parameters.Add("YahooChangeStatus", System.Data.DbType.Int64); cmd.Parameters.Add("BingURL", System.Data.DbType.String); cmd.Parameters.Add("BingTitle", System.Data.DbType.String); cmd.Parameters.Add("BingChangeText", System.Data.DbType.String); cmd.Parameters.Add("BingChangeStatus", System.Data.DbType.Int64); cmd.Parameters["SearchWordTable_Id"].Value = searchWordTable_Id; cmd.Parameters["DateTable_Id"].Value = dateTable_Id; cmd.Parameters["GoogleURL"].Value = googleURL; cmd.Parameters["GoogleTitle"].Value = googleTitle; cmd.Parameters["GoogleChangeText"].Value = googleChangeText; cmd.Parameters["GoogleChangeStatus"].Value = googleChangeStatus; cmd.Parameters["YahooURL"].Value = yahooURL; cmd.Parameters["YahooTitle"].Value = yahooTitle; cmd.Parameters["YahooChangeText"].Value = yahooChangeText; cmd.Parameters["YahooChangeStatus"].Value = yahooChangeStatus; cmd.Parameters["BingURL"].Value = bingURL; cmd.Parameters["BingTitle"].Value = bingTitle; cmd.Parameters["BingChangeText"].Value = bingChangeText; cmd.Parameters["BingChangeStatus"].Value = bingChangeStatus; cmd.ExecuteNonQuery(); trans.Commit(); } } }
/// <summary> /// Creates a new instance of HistoryEntryBase. /// </summary> public HistoryEntryBase() { this.statusField = ChangeStatus.Done; }
private void setSellOnTopTab(int row, int column, string keywordPosition, string changeText, string searchVolumn, ChangeStatus rankStatus) { dataGridView1.Rows[row].Cells[column].Value = keywordPosition; dataGridView1.Rows[row].Cells[column + 1].Value = changeText; if (rankStatus == ChangeStatus.RANK_UP) { dataGridView1.Rows[row].Cells[column + 1].Style.ForeColor = Color.Blue; } else if (rankStatus == ChangeStatus.RANK_DOWN) { dataGridView1.Rows[row].Cells[column + 1].Style.ForeColor = Color.Red; } else { dataGridView1.Rows[row].Cells[column + 1].Style.ForeColor = Color.Black; } if (searchVolumn == null) { dataGridView1.Rows[row].Cells[column + 2].Value = ""; } else { dataGridView1.Rows[row].Cells[column + 2].Value = searchVolumn; } }
private string createChangeString(string newPosition, object currentPosition, ref ChangeStatus changeStatus) { String changeString = null; int newInt, currentInt, changeInt = 0; if (newPosition == null) { newPosition = "n/a"; } if (newPosition == "n/a" || newPosition == "-") { newInt = -1; } else { newInt = int.Parse(newPosition); } if (currentPosition == null) { currentPosition = "n/a"; } if (currentPosition.ToString() == "n/a" || currentPosition.ToString() == "-") { currentInt = -1; } else { currentInt = Convert.ToInt32(currentPosition); } if (newInt != -1 && currentInt != -1) { changeInt = newInt - currentInt; } if (newInt == -1 && currentInt == -1) { changeInt = 0; } if (newInt == -1 && currentInt != -1) { changeInt = 1; } if (newInt != -1 && currentInt == -1) { changeInt = -1; } if (changeInt > 0) { changeString = currentPosition.ToString() + " ↘ " + newPosition; changeStatus = ChangeStatus.RANK_DOWN; } else if (changeInt == 0) { changeString = currentPosition.ToString() + " → " + newPosition; changeStatus = ChangeStatus.RANK_STABLE; } else { changeString = currentPosition.ToString() + " ↗ " + newPosition; changeStatus = ChangeStatus.RANK_UP; } return changeString; }
public LiveUserConfigurationChangingEventArgs( ChangeStatus changeAction, Guid pluginID, ConfigUserAction action ) { ChangeAction = changeAction; PluginID = pluginID; Action = action; }
public ConfigChangedEventArgs( IReadOnlyCollection<object> multiObj, bool allObjectsConcerned, INamedVersionedUniqueId pluginId, ChangeStatus status ) : this( null, multiObj, new ReadOnlyListMono<INamedVersionedUniqueId>( pluginId ), null, null, status ) { IsAllObjectsConcerned = allObjectsConcerned; }
private void HandleChangeStatus(ChangeStatus msg) { _status = msg.Status; _heartbeatActor.Tell(new HeartbeatActor.ChangeStatus(msg.Status)); }