Example #1
0
        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);
        }
Example #2
0
        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);
        }