internal void GlobalStateSet() { // Base commands have been set. From here, commands will only be // modified on a per-item, non-persistent basis. PreSaveViewState(); _markState = MarkState.PostMarked; }
void Start() { State = MarkState.Normal; ring = GetComponentInChildren <RingLOD>(); var sphere = GetComponentInChildren <MarkingSphereShaderSwitcher>().gameObject; sphereMaterial = sphere.GetComponent <Renderer>().material; }
public void ClearMark() { if (_state != MarkState.None) { _state = MarkState.None; _output.RevertCursor(); _target.Invalidate(); _markCancelling = false; } }
//マウスの動きに従って状態通知 public void OnMouseMove(MouseEventArgs args) { MarkState previous = _state; _state = MarkState.None; if (_enabled && _output.CanSplit) { int x = args.X; int y = args.Y; if (Near(x, y, _output.SplitClientWidth / 2, MIN_DISTANCE)) { _state = MarkState.TopBottom; } else if (Near(x, y, _output.SplitClientWidth / 2, _output.SplitClientHeight - MIN_DISTANCE)) { _state = MarkState.TopBottom; } else if (Near(x, y, MIN_DISTANCE, _output.SplitClientHeight / 2)) { _state = MarkState.LeftRight; } else if (Near(x, y, _output.SplitClientWidth - MIN_DISTANCE, _output.SplitClientHeight / 2)) { _state = MarkState.LeftRight; } if (_state == MarkState.None) { _markCancelling = false; //マウス移動の結果分割用意でなくなった場合キャンセル解除 } else if (_markCancelling) { _state = MarkState.None; //キャンセル発動中 } } //状態変化があったら if (previous != _state) { _target.Invalidate(); //再描画を促す if (_state == MarkState.None) { _output.RevertCursor(); } else { _output.OverrideCursor(Cursors.Hand); } } }
public SMSRecordList() { InitializeComponent(); this.Loaded += new RoutedEventHandler(SMSRecordList_Loaded); ser.GetListByHQLCompleted += new EventHandler <SMSRecordService.GetListByHQLCompletedEventArgs>(ser_GetListByHQLCompleted); ser.DeleteByIdCompleted += new EventHandler <SMSRecordService.DeleteByIdCompletedEventArgs>(ser_DeleteByIdCompleted); ser.GetListByHQLWithPagingCompleted += new EventHandler <SMSRecordService.GetListByHQLWithPagingCompletedEventArgs>(ser_GetListByHQLWithPagingCompleted); LoadWorkTypes(); LoadStation(); LoadGradeType(); cboxMark.ItemsSource = MarkState.CreateAry(); dateStart.SelectedDate = DateTime.Now.AddDays(-7); dateEnd.SelectedDate = DateTime.Now; getData(); this.gv.AddHandler(GridViewCellBase.CellDoubleClickEvent, new EventHandler <RadRoutedEventArgs>(OnCellDoubleClick), true); }
public List<MarkRecord> GetMarksCreatedForMeByState(string to, MarkState state) { string sqlQuery = "select * from dbo.Rating where [To] = @To and [State] = @State"; var param = new { To = to, State = state }; using (DbConnection connection = connectionFactory.Create()) { return connection.Query<MarkInternal>(sqlQuery, param) .Select(InternalToContract) .ToList(); } }
private static MarkRecord GetNewMarkRecord(MarkState markState = MarkState.Edite) { return new MarkRecord { From = from, To = to, DateCreated = DateTime.Now, Sate = markState, Marks = new Marks { Cooperation = new Mark { MarkLevel = MarkLevel.O, Comment = "comment" }, Discipline = new Mark { MarkLevel = MarkLevel.O, Comment = "comment" }, Evolution = new Mark { MarkLevel = MarkLevel.O, Comment = "comment" }, Initiative = new Mark { MarkLevel = MarkLevel.O, Comment = "comment" }, Productivity = new Mark { MarkLevel = MarkLevel.O, Comment = "comment" }, ProfessionalSkills = new Mark { MarkLevel = MarkLevel.O, Comment = "comment" }, Quality = new Mark { MarkLevel = MarkLevel.O, Comment = "comment" } } }; }
//�}�E�X�̓����ɏ]���ď�Ԓʒm public void OnMouseMove(MouseEventArgs args) { MarkState previous = _state; _state = MarkState.None; if (_enabled && _output.CanSplit) { int x = args.X; int y = args.Y; if (Near(x, y, _output.SplitClientWidth / 2, MIN_DISTANCE)) _state = MarkState.TopBottom; else if (Near(x, y, _output.SplitClientWidth / 2, _output.SplitClientHeight - MIN_DISTANCE)) _state = MarkState.TopBottom; else if (Near(x, y, MIN_DISTANCE, _output.SplitClientHeight / 2)) _state = MarkState.LeftRight; else if (Near(x, y, _output.SplitClientWidth - MIN_DISTANCE, _output.SplitClientHeight / 2)) _state = MarkState.LeftRight; if (_state == MarkState.None) _markCancelling = false; //�}�E�X�ړ��̌��ʕ����p�ӂłȂ��Ȃ����ꍇ�L�����Z����� else if (_markCancelling) _state = MarkState.None; //�L�����Z�������� } //��ԕω����������� if (previous != _state) { _target.Invalidate(); //�ĕ`��𑣂� if (_state == MarkState.None) _output.RevertCursor(); else _output.OverrideCursor(Cursors.Hand); } }
public void ClearMark() { if (_state != MarkState.None) { _state = MarkState.None; _output.RevertCursor(); _target.Invalidate(); _markCancelling = false; } }
/// <internalonly/> protected void TrackViewState() { _markState = MarkState.Marked; }
internal void GlobalStateSet() { // Base commands have been set. From here, commands will only be // modified on a per-item, non-persistent basis. PreSaveViewState(); _markState = MarkState.PostMarked; }
private void BuildHql() { StringBuilder hql = new StringBuilder(); hql.Append(string.Format(" from SMSRecord as r where 1=1 ")); if (dateStart.SelectedDate != null) { DateTime tmp = dateStart.SelectedDate.Value; DateTime start = new DateTime(tmp.Year, tmp.Month, tmp.Day, 0, 0, 0); hql.Append(string.Format(" and r.WorkDate >= '{0}' ", start)); } if (dateEnd.SelectedDate != null) { DateTime tmp = dateEnd.SelectedDate.Value; DateTime end = new DateTime(tmp.Year, tmp.Month, tmp.Day, 23, 59, 59); hql.Append(string.Format(" and r.WorkDate <= '{0}' ", end)); } if (cboxOper.SelectedItem != null) { Officer off = cboxOper.SelectedItem as Officer; if (off != null) { hql.Append(" and r.WorkOfficer.Id=" + off.Id); } } if (cboxMark.SelectedItem != null) { MarkState mark = cboxMark.SelectedItem as MarkState; if (mark != null) { hql.Append(" and r.IsResponse =" + mark.IsMark); } } if (cboxContent.SelectedItem != null) { WorkType wt = cboxContent.SelectedItem as WorkType; if (wt != null) { hql.Append(" and r.WorkType.Id =" + wt.Id); } } if (cboxStation.SelectedItem != null) { Organization org = cboxStation.SelectedItem as Organization; if (org != null) { hql.Append(" and r.Organization.Id =" + org.Id); } } if (cboxGradeType.SelectedItem != null) { GradeType grade = cboxGradeType.SelectedItem as GradeType; if (grade != null) { hql.Append(" and r.GradeType.Id =" + grade.Id); } } if (!string.IsNullOrEmpty(cboxName.Text)) { hql.Append(" and r.PersonName like '%" + cboxName.Text + "%'"); } queryCondition = new QueryCondition(); string hqlStr = hql.ToString(); queryCondition.HQL = "select r " + hqlStr + " order by r.WorkDate desc"; queryCondition.TotalHQL = "select count(r) " + hqlStr; queryCondition.MaxResults = PageSize; }
//マウスの動きに従って状態通知 public void OnMouseMove(MouseEventArgs args) { MarkState previous = _state; _state = MarkState.None; if (_enabled && _output.CanSplit) { int x = args.X; int y = args.Y; if (Near(x, y, _output.SplitClientWidth / 2, MIN_DISTANCE)) _state = MarkState.TopBottom; else if (Near(x, y, _output.SplitClientWidth / 2, _output.SplitClientHeight - MIN_DISTANCE)) _state = MarkState.TopBottom; else if (Near(x, y, MIN_DISTANCE, _output.SplitClientHeight / 2)) _state = MarkState.LeftRight; else if (Near(x, y, _output.SplitClientWidth - MIN_DISTANCE, _output.SplitClientHeight / 2)) _state = MarkState.LeftRight; if (_state == MarkState.None) _markCancelling = false; //マウス移動の結果分割用意でなくなった場合キャンセル解除 else if (_markCancelling) _state = MarkState.None; //キャンセル発動中 } //状態変化があったら if (previous != _state) { _target.Invalidate(); //再描画を促す if (_state == MarkState.None) _output.RevertCursor(); else _output.OverrideCursor(Cursors.Hand); } }
/// <internalonly/> protected void TrackViewState() { _markState = MarkState.Marked; }
void IStateManager.TrackViewState() { _markState = MarkState.Marked; }