Esempio n. 1
0
        protected override void ShowData(int taskXDeliverableArtifactId)
        {
            base.ShowData(taskXDeliverableArtifactId);

            oDetailButtonPanel.SetId = SetId;

            Clear();

            var dataQuery = new TaskXDeliverableArtifactDataModel();

            dataQuery.TaskXDeliverableArtifactId = taskXDeliverableArtifactId;

            var entityList = TaskXDeliverableArtifactDataManager.GetEntityDetails(dataQuery, SessionVariables.RequestProfile);

            if (entityList.Count == 1)
            {
                foreach (var entityItem in entityList)
                {
                    lblTaskXDeliverableArtifactId.Text = entityItem.TaskXDeliverableArtifactId.ToString();
                    lblTask.Text = entityItem.Task.ToString();
                    lblDeliverableArtifacts.Text      = entityItem.DeliverableArtifact.ToString();
                    lblDeliverableArtifactStatus.Text = entityItem.DeliverableArtifactStatus.ToString();

                    oUpdateInfo.LoadText(entityItem.UpdatedDate, entityItem.UpdatedBy, entityItem.LastAction);

                    oHistoryList.Setup((int)SystemEntity.TaskXDeliverableArtifact, taskXDeliverableArtifactId, "TaskXDeliverableArtifact");
                }
            }
        }
Esempio n. 2
0
        private DataTable GetData(string name)
        {
            var data = new TaskXDeliverableArtifactDataModel();
            var dt   = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile);

            return(dt);
        }
Esempio n. 3
0
        private void RemoveByStatus(int statusId)
        {
            var data = new TaskXDeliverableArtifactDataModel();

            data.DeliverableArtifactStatusId = statusId;
            TaskXDeliverableArtifactDataManager.Delete(data, SessionVariables.RequestProfile);
        }
Esempio n. 4
0
        protected override void Update(Dictionary <string, string> values)
        {
            var data = new TaskXDeliverableArtifactDataModel();

            PropertyMapper.CopyProperties(data, values);

            TaskXDeliverableArtifactDataManager.Update(data, SessionVariables.RequestProfile);
            base.Update(values);
        }
Esempio n. 5
0
        protected override DataTable GetEntityData(int?entityKey)
        {
            var TaskXDeliverableArtifactdata = new TaskXDeliverableArtifactDataModel();

            TaskXDeliverableArtifactdata.TaskXDeliverableArtifactId = entityKey;
            var results = TaskXDeliverableArtifactDataManager.Search(TaskXDeliverableArtifactdata, SessionVariables.RequestProfile);

            return(results);
        }
Esempio n. 6
0
        private DataTable GetData()
        {
            // TODO: on all export pages
            var data = new TaskXDeliverableArtifactDataModel();

            var dt = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile);

            return(dt);
        }
Esempio n. 7
0
        private void SaveTaskXDeliverableArtifact(int taskId, int deliverableArtifactId, int statuslId)
        {
            //Components.BusinessLayer.TaskXDeliverableArtifact.DeleteByTask(taskId, AuditId);
            var data = new TaskXDeliverableArtifactDataModel();

            data.TaskId = taskId;
            data.DeliverableArtifactId       = deliverableArtifactId;
            data.DeliverableArtifactStatusId = statuslId;
            TaskXDeliverableArtifactDataManager.Create(data, SessionVariables.RequestProfile);
        }
Esempio n. 8
0
        protected void InsertData()
        {
            var data = new TaskXDeliverableArtifactDataModel();

            data.TaskXDeliverableArtifactId = myGenericControl.TaskXDeliverableArtifactId;
            data.TaskId = myGenericControl.TaskId;
            data.DeliverableArtifactStatusId = myGenericControl.DeliverableArtifactStatusId;
            data.DeliverableArtifactId       = myGenericControl.DeliverableArtifactsId;

            TaskXDeliverableArtifactDataManager.Create(data, SessionVariables.RequestProfile);
        }
Esempio n. 9
0
        private DataTable GetDeliverableArtifactData(int taskId)
        {
            var dt       = TaskXDeliverableArtifactDataManager.GetByTask(taskId, SessionVariables.RequestProfile.AuditId);
            var fdt      = DeliverableArtifactDataManager.GetList(SessionVariables.RequestProfile);
            var resultdt = fdt.Clone();

            foreach (DataRow row in dt.Rows)
            {
                var rows = fdt.Select("DeliverableArtifactId = " + row[DeliverableArtifactDataModel.DataColumns.DeliverableArtifactId]);
                resultdt.ImportRow(rows[0]);
            }
            return(resultdt);
        }
Esempio n. 10
0
        private int GetNextValidId(int tempId)
        {
            var dt = TaskXDeliverableArtifactDataManager.GetList(SessionVariables.RequestProfile);

            foreach (DataRow dr in dt.Rows)
            {
                if (dr[TaskXDeliverableArtifactDataModel.DataColumns.TaskXDeliverableArtifactId].ToString().Equals(tempId.ToString()))
                {
                    tempId -= 1;
                    return(GetNextValidId(tempId));
                }
            }

            return(tempId);
        }
Esempio n. 11
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         string[] deleteIndexList = DeleteIds.Split(',');
         foreach (string index in deleteIndexList)
         {
             var data = new TaskXDeliverableArtifactDataModel();
             data.TaskXDeliverableArtifactId = int.Parse(index);
             TaskXDeliverableArtifactDataManager.Delete(data, SessionVariables.RequestProfile);
         }
         DeleteAndRedirect();
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
Esempio n. 12
0
        public void LoadData(int TaskXDeliverableArtifactId, bool showId)
        {
            var data = new TaskXDeliverableArtifactDataModel();

            data.TaskXDeliverableArtifactId = TaskXDeliverableArtifactId;
            var oTaskXDeliverableArtifactTable = TaskXDeliverableArtifactDataManager.GetDetails(data, SessionVariables.RequestProfile);

            if (oTaskXDeliverableArtifactTable.Rows.Count == 1)
            {
                var row = oTaskXDeliverableArtifactTable.Rows[0];

                if (!showId)
                {
                    txtTaskXDeliverableArtifactId.Text = Convert.ToString(row[TaskXDeliverableArtifactDataModel.DataColumns.TaskXDeliverableArtifactId]);

                    dynAuditHistory.Visible = true;

                    // only show Audit History in case of Update page, not for Clone.
                    oHistoryList.Setup((int)SystemEntity.TaskXDeliverableArtifact, TaskXDeliverableArtifactId, "TaskXDeliverableArtifact");
                    dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "TaskXDeliverableArtifact");
                }
                else
                {
                    txtTaskXDeliverableArtifactId.Text = String.Empty;
                }
                txtDeliverableArtifactsId.Text = Convert.ToString(row[TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId]);
                txtTaskId.Text = Convert.ToString(row[TaskXDeliverableArtifactDataModel.DataColumns.TaskId]);
                txtDeliverableArtifactStatusId.Text = Convert.ToString(row[TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId]);

                drpDeliverableArtifactStatusList.SelectedValue = Convert.ToString(row[TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId]);
                drpTaskList.SelectedValue = Convert.ToString(row[TaskXDeliverableArtifactDataModel.DataColumns.TaskId]);
                drpDeliverableArtifactsList.SelectedValue = Convert.ToString(row[TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId]);
            }
            else
            {
                txtTaskXDeliverableArtifactId.Text = String.Empty;
                txtTaskId.Text = String.Empty;
                txtDeliverableArtifactStatusId.Text = String.Empty;
                txtDeliverableArtifactsId.Text      = String.Empty;
            }
        }
Esempio n. 13
0
        protected override DataTable GetData()
        {
            try
            {
                SuperKey = ApplicationCommon.GetSuperKey();
                SetId    = ApplicationCommon.GetSetId();

                var selectedrows = new DataTable();
                var taskXDeliverableArtifactdata = new TaskXDeliverableArtifactDataModel();

                selectedrows = TaskXDeliverableArtifactDataManager.GetDetails(taskXDeliverableArtifactdata, SessionVariables.RequestProfile).Clone();
                if (!string.IsNullOrEmpty(SuperKey))
                {
                    var systemEntityTypeId = (int)PrimaryEntity;
                    var lstEntityKeys      = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey);

                    foreach (var entityKey in lstEntityKeys)
                    {
                        taskXDeliverableArtifactdata.TaskXDeliverableArtifactId = entityKey;
                        var result = TaskXDeliverableArtifactDataManager.GetDetails(taskXDeliverableArtifactdata, SessionVariables.RequestProfile);
                        selectedrows.ImportRow(result.Rows[0]);
                    }
                }
                else
                {
                    taskXDeliverableArtifactdata.TaskXDeliverableArtifactId = SetId;
                    var result = TaskXDeliverableArtifactDataManager.GetDetails(taskXDeliverableArtifactdata, SessionVariables.RequestProfile);
                    selectedrows.ImportRow(result.Rows[0]);
                }
                return(selectedrows);
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }

            return(null);
        }
Esempio n. 14
0
        protected override DataTable UpdateData()
        {
            var UpdatedData = new DataTable();

            var data = new TaskXDeliverableArtifactDataModel();

            UpdatedData = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile).Clone();
            for (var i = 0; i < SelectedData.Rows.Count; i++)
            {
                data.TaskXDeliverableArtifactId =
                    Convert.ToInt32(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.TaskXDeliverableArtifactId].ToString());
                data.TaskId =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.TaskId))
                                        ? int.Parse(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.TaskId))
                                        : int.Parse(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.TaskId].ToString());
                data.DeliverableArtifactId =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId))
                                        ? int.Parse(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId))
                                        : int.Parse(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactId].ToString());

                data.DeliverableArtifactStatusId =
                    !string.IsNullOrEmpty(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId))
                                                                ? int.Parse(CheckAndGetRepeaterTextBoxValue(TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId).ToString())
                                                                : int.Parse(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.DeliverableArtifactStatusId].ToString());

                TaskXDeliverableArtifactDataManager.Update(data, SessionVariables.RequestProfile);
                data = new TaskXDeliverableArtifactDataModel();
                data.TaskXDeliverableArtifactId = Convert.ToInt32(SelectedData.Rows[i][TaskXDeliverableArtifactDataModel.DataColumns.TaskXDeliverableArtifactId].ToString());
                var dt = TaskXDeliverableArtifactDataManager.Search(data, SessionVariables.RequestProfile);

                if (dt.Rows.Count == 1)
                {
                    UpdatedData.ImportRow(dt.Rows[0]);
                }
            }
            return(UpdatedData);
        }
Esempio n. 15
0
        private DataTable GetAssociatedDeliverableArtifact(int taskId)
        {
            var dt = TaskXDeliverableArtifactDataManager.GetByTask(taskId, SessionVariables.RequestProfile.AuditId);

            return(dt);
        }
Esempio n. 16
0
        protected override DataTable GetData()
        {
            var dt = TaskXDeliverableArtifactDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile);

            return(dt);
        }