public override void GetDataFromControls(object obj) { Infra.Common.Workflow o = (Infra.Common.Workflow)obj; //o.WorkflowID = FieldGetValue.ToInt32(WorkflowIDTextBox.Text, WorkflowIDLabel.Text); o.WorkflowCode = FieldGetValue.ToString(WorkflowCodeTextBox.Text, WorkflowCodeLabel.Text, 50); o.WorkflowTitle = FieldGetValue.ToString(WorkflowTitleTextBox.Text, WorkflowTitleLabel.Text, 100); o.EntityName = FieldGetValue.ToString(EntityNameTextBox.Text, EntityNameLabel.Text, 100); o.EntityTitle = FieldGetValue.ToString(EntityTitleTextBox.Text, EntityTitleLabel.Text, 100); o.Version = FieldGetValue.ToInt32(VersionTextBox.Text, VersionLabel.Text); o.TypeFullName = FieldGetValue.ToString(TypeFullNameTextBox.Text, TypeFullNameLabel.Text, 1000); }
public override void GetDataFromControls(object obj) { TaskAction o = (TaskAction)obj; //o.TaskActionID = FieldGetValue.ToInt32(TaskActionIDTextBox.Text, TaskActionIDLabel.Text); o.TaskID = FieldGetValue.ToInt32(TaskIDComboBox.SelectedValue, TaskIDLabel.Text); o.ToTaskID = FieldGetValue.ToInt32(ToTaskIDComboBox.SelectedValue, ToTaskIDLabel.Text); o.TaskActionCode = FieldGetValue.ToString(TaskActionCodeTextBox.Text, TaskActionCodeLabel.Text, 100); o.TaskActionTitle = FieldGetValue.ToString(TaskActionTitleTextBox.Text, TaskActionTitleLabel.Text, 100); o.HasProgramming = FieldGetValue.ToBoolean(HasProgrammingComboBox.SelectedItem.Value, HasProgrammingLabel.Text); }
public override void GetDataFromControls(object obj) { Task o = (Task)obj; //o.TaskID = FieldGetValue.ToInt32(TaskIDTextBox.Text, TaskIDLabel.Text); o.WorkflowID = FieldGetValue.ToInt32(WorkflowIDComboBox.SelectedValue, WorkflowIDLabel.Text); o.TaskCode = FieldGetValue.ToString(TaskCodeTextBox.Text, TaskCodeLabel.Text, 100); o.TaskTitle = FieldGetValue.ToString(TaskTitleTextBox.Text, TaskTitleLabel.Text, 100); o.EntityUrl = FieldGetValue.ToString(EntityUrlTextBox.Text, EntityUrlLabel.Text, 500); o.NumberOrder = FieldGetValue.ToInt32(NumberOrderTextBox.Text, NumberOrderLabel.Text); if (IsUpdateMode) { o.TaskGuid = Guid.NewGuid(); } o.TaskTypeID = FieldGetValue.ToInt32(TaskTypeIDComboBox.SelectedValue, TaskTypeIDLabel.Text); o.PerformerID = FieldGetValue.ToString(PerformerIDTextBox.Text, PerformerIDLabel.Text, 200); o.HasProgramming = FieldGetValue.ToBoolean(HasProgrammingComboBox.SelectedValue, HasProgrammingLabel.Text); }