protected override void PopulateControl() { base.PopulateControl(); // Set the cost codes to those applicable to the currently selected selling company this.RecType.DataSource = WorkflowRecType.FetchAll().OrderBy(recType => recType.RecType); this.RecType.DataBind(); this.RecType.FieldValue = this.DataSource.RecType; this.Group.DataSource = Workflow.FetchAllByRecType(this.RecType.FieldValue).Select(wf => wf.Group ?? "").Distinct(); this.RunDatetime.FieldValue = this.DataSource.RunDatetime.ToString(); this.LastRunDttime.FieldValue = this.DataSource.LastRunDttime.ToString(); if (this.RunDatetime.FieldValue == null) { this.RunDatetime.FieldValue = NormalTime.ToString(); } }
public TimeTransition(int prior, Transition trans, StateID state, int leftTime) : base(prior, trans, state) { normalTime = new NormalTime(leftTime); }