Esempio n. 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            SuperKey = ApplicationCommon.GetSuperKey();
            SetId    = ApplicationCommon.GetSetId();

            if (!string.IsNullOrEmpty(SuperKey))
            {
                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(PrimaryEntity.Value(), SuperKey);

                foreach (var entityKey in lstEntityKeys)
                {
                    AddDetailControl(false, entityKey);

                    if (string.IsNullOrEmpty(DeleteIds))
                    {
                        DeleteIds = entityKey.ToString();
                    }
                    else
                    {
                        DeleteIds += ", " + entityKey.ToString();
                    }
                }
            }
            else if (SetId != 0)
            {
                AddDetailControl(true, SetId);

                DeleteIds = SetId.ToString();
            }

            ShowAuditHistory(true);
        }
Esempio n. 2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            SuperKey = ApplicationCommon.GetSuperKey();

            // should be client side ... maybe
            if (!string.IsNullOrEmpty(SuperKey))
            {
                BtnCancel.Visible = true;
                BtnUpdate.Visible = true;
                BtnClone.Visible  = false;

                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(PrimaryEntity.Value(), SuperKey);

                foreach (var entityKey in lstEntityKeys)
                {
                    AddUpdateControl(false, entityKey);
                }

                return;
            }

            SetId = ApplicationCommon.GetSetId();
            if (SetId != 0)
            {
                BtnUpdate.Visible = true;
                BtnCancel.Visible = true;
                BtnClone.Visible  = false;

                AddUpdateControl(true, SetId);
            }
        }
Esempio n. 3
0
        public ActionResult Edit(int id, bool?isMultiple)
        {
            var lstItems = new List <FunctionalityXFunctionalityDevelopmentStepDataModel>();

            if (isMultiple != null && isMultiple.Value)
            {
                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(SystemEntity.FunctionalityXFunctionalityDevelopmentStep.Value(), id.ToString());
                foreach (var itemId in lstEntityKeys)
                {
                    var obj = GetById(itemId);
                    lstItems.Add(GetById(itemId));
                    SetViewBagFunctionality(obj.FunctionalityId, obj.FunctionalityDevelopmentStepId);
                }
            }
            else
            {
                var obj = GetById(id);
                if (obj == null)
                {
                    return(HttpNotFound());
                }
                lstItems.Add(obj);
                SetViewBagFunctionality(obj.FunctionalityId, obj.FunctionalityDevelopmentStepId);
            }
            return(View(lstItems));
        }
Esempio n. 4
0
        //
        // GET: /DailyTaskItemQueue/Delete/5

        public ActionResult Delete(int id, bool?isMultiple)
        {
            var lstItems = new List <DailyTaskItemQueueDataModel>();

            if (isMultiple != null && isMultiple.Value)
            {
                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(SystemEntity.DailyTaskItemQueue.Value(), id.ToString());
                foreach (var itemId in lstEntityKeys)
                {
                    lstItems.Add(GetById(itemId));
                }
            }
            else
            {
                var obj = GetById(id);
                if (obj == null)
                {
                    return(HttpNotFound());
                }
                lstItems.Add(obj);
            }
            return(View(lstItems));
            //var obj = GetById(id);
            //if (obj == null)
            //{
            //	return HttpNotFound();
            //}
            //return View(obj);
        }
Esempio n. 5
0
        protected override DataTable GetData()
        {
            try
            {
                SuperKey = ApplicationCommon.GetSuperKey();
                SetId    = ApplicationCommon.GetSetId();

                var selectedrows = new DataTable();
                var applicationUserProfileImageMasterdata = new ApplicationUserProfileImageMasterDataModel();

                selectedrows = Framework.Components.ApplicationUser.ApplicationUserProfileImageMasterDataManager.GetDetails(applicationUserProfileImageMasterdata, SessionVariables.RequestProfile).Clone();
                if (!string.IsNullOrEmpty(SuperKey))
                {
                    var systemEntityTypeId = (int)PrimaryEntity;
                    var lstEntityKeys      = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey);

                    foreach (var entityKey in lstEntityKeys)
                    {
                        applicationUserProfileImageMasterdata.ApplicationUserProfileImageMasterId = entityKey;
                        var result = Framework.Components.ApplicationUser.ApplicationUserProfileImageMasterDataManager.GetDetails(applicationUserProfileImageMasterdata, SessionVariables.RequestProfile);
                        profileImage = ((byte[])(result.Rows[0][ApplicationUserProfileImageMasterDataModel.DataColumns.Image]));
                        selectedrows.ImportRow(result.Rows[0]);
                    }
                }
                else
                {
                    applicationUserProfileImageMasterdata.ApplicationUserProfileImageMasterId = SetId;
                    var result = Framework.Components.ApplicationUser.ApplicationUserProfileImageMasterDataManager.GetDetails(applicationUserProfileImageMasterdata, SessionVariables.RequestProfile);
                    profileImage = ((byte[])(result.Rows[0][ApplicationUserProfileImageMasterDataModel.DataColumns.Image]));
                    selectedrows.ImportRow(result.Rows[0]);
                }
                return(selectedrows);
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }

            return(null);
        }
Esempio n. 6
0
        protected override DataTable GetData()
        {
            try
            {
                SuperKey = ApplicationCommon.GetSuperKey();
                SetId    = ApplicationCommon.GetSetId();

                var selectedrows = new DataTable();

                var useCaseXUseCaseStepdata = new UseCaseXUseCaseStepDataModel();

                selectedrows = TaskTimeTracker.Components.BusinessLayer.RequirementAnalysis.UseCaseXUseCaseStepDataManager.GetDetails(useCaseXUseCaseStepdata, SessionVariables.RequestProfile).Clone();

                if (!string.IsNullOrEmpty(SuperKey))
                {
                    var systemEntityTypeId = (int)PrimaryEntity;
                    var lstEntityKeys      = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey);

                    foreach (var entityKey in lstEntityKeys)
                    {
                        useCaseXUseCaseStepdata.UseCaseXUseCaseStepId = entityKey;
                        var result = TaskTimeTracker.Components.BusinessLayer.RequirementAnalysis.UseCaseXUseCaseStepDataManager.GetDetails(useCaseXUseCaseStepdata, SessionVariables.RequestProfile);
                        selectedrows.ImportRow(result.Rows[0]);
                    }
                }
                else if (SetId != 0)
                {
                    useCaseXUseCaseStepdata.UseCaseXUseCaseStepId = SetId;
                    var result = TaskTimeTracker.Components.BusinessLayer.RequirementAnalysis.UseCaseXUseCaseStepDataManager.GetDetails(useCaseXUseCaseStepdata, SessionVariables.RequestProfile);
                    selectedrows.ImportRow(result.Rows[0]);
                }
                return(selectedrows);
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
            return(null);
        }
Esempio n. 7
0
        protected override DataTable GetData()
        {
            try
            {
                SuperKey = ApplicationCommon.GetSuperKey();
                SetId    = ApplicationCommon.GetSetId();

                var selectedrows = new DataTable();
                var functionalityImageAttributedata = new FunctionalityImageAttributeDataModel();

                selectedrows = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityImageAttributeDataManager.GetDetails(functionalityImageAttributedata, SessionVariables.RequestProfile).Clone();

                if (!string.IsNullOrEmpty(SuperKey))
                {
                    var systemEntityTypeId = (int)PrimaryEntity;
                    var lstEntityKeys      = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey);

                    foreach (var entityKey in lstEntityKeys)
                    {
                        functionalityImageAttributedata.FunctionalityImageId = entityKey;
                        var result = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityImageAttributeDataManager.GetDetails(functionalityImageAttributedata, SessionVariables.RequestProfile);
                        selectedrows.ImportRow(result.Rows[0]);
                    }
                }
                else if (SetId != 0)
                {
                    var key = SetId;
                    functionalityImageAttributedata.FunctionalityImageAttributeId = key;
                    var result = TaskTimeTracker.Components.Module.ApplicationDevelopment.FunctionalityImageAttributeDataManager.GetDetails(functionalityImageAttributedata, SessionVariables.RequestProfile);
                    selectedrows.ImportRow(result.Rows[0]);
                }
                return(selectedrows);
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
            return(null);
        }
Esempio n. 8
0
        protected override DataTable GetData()
        {
            try
            {
                SuperKey = ApplicationCommon.GetSuperKey();
                SetId = ApplicationCommon.GetSetId();

                var selectedrows = new DataTable();
                var notificationRegistrardata = new NotificationRegistrarDataModel();

				selectedrows = Framework.Components.EventMonitoring.NotificationRegistrarDataManager.GetDetails(notificationRegistrardata, SessionVariables.RequestProfile).Clone();
                if (!string.IsNullOrEmpty(SuperKey))
                {
                    var systemEntityTypeId = (int)PrimaryEntity;
                    var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(systemEntityTypeId, SuperKey);

                    foreach (var entityKey in lstEntityKeys)
                    {
                        notificationRegistrardata.NotificationRegistrarId = entityKey;
						var result = Framework.Components.EventMonitoring.NotificationRegistrarDataManager.GetDetails(notificationRegistrardata, SessionVariables.RequestProfile);
                        selectedrows.ImportRow(result.Rows[0]);
                    }
                }
                else
                {
                    notificationRegistrardata.NotificationRegistrarId = SetId;
					var result = Framework.Components.EventMonitoring.NotificationRegistrarDataManager.GetDetails(notificationRegistrardata, SessionVariables.RequestProfile);
                    selectedrows.ImportRow(result.Rows[0]);

                }
                return selectedrows;
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }

            return null;
        }
Esempio n. 9
0
        protected override DataTable GetData()
        {
            try
            {
                SuperKey = ApplicationCommon.GetSuperKey();
                SetId    = ApplicationCommon.GetSetId();

                var selectedrows = new DataTable();
                var taskPackageXOwnerXTaskdata = new TaskPackageXOwnerXTaskDataModel();

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

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

            return(null);
        }
Esempio n. 10
0
        protected override DataTable GetData()
        {
            try
            {
                var superKey = ApplicationCommon.GetSuperKey();
                var setId    = ApplicationCommon.GetSetId();

                var selectedrows = new DataTable();
                var skillXPersonXSkillLeveldata = new DataModel.TaskTimeTracker.Competency.SkillXPersonXSkillLevelDataModel();

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

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

            return(null);
        }
Esempio n. 11
0
        //
        // GET: /ReleaseNoteBusinessDifficulty/Delete/5

        public ActionResult Delete(int id, bool?isMultiple)
        {
            var lstItems = new List <ReleaseNoteBusinessDifficultyDataModel>();

            if (isMultiple != null && isMultiple.Value)
            {
                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(SystemEntity.ReleaseNoteBusinessDifficulty.Value(), id.ToString());
                foreach (var itemId in lstEntityKeys)
                {
                    lstItems.Add(GetById(itemId));
                }
            }
            else
            {
                var obj = GetById(id);
                if (obj == null)
                {
                    return(HttpNotFound());
                }
                lstItems.Add(obj);
            }
            return(View(lstItems));
        }
Esempio n. 12
0
        //
        // GET: /ScheduleDetailActivityCategory/Edit/5

        public ActionResult Edit(int id, bool?isMultiple)
        {
            var lstItems = new List <ScheduleDetailActivityCategoryDataModel>();

            if (isMultiple != null && isMultiple.Value)
            {
                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(SystemEntity.ScheduleDetailActivityCategory.Value(), id.ToString());
                foreach (var itemId in lstEntityKeys)
                {
                    lstItems.Add(GetById(itemId));
                }
            }
            else
            {
                var obj = GetById(id);
                if (obj == null)
                {
                    return(HttpNotFound());
                }
                lstItems.Add(obj);
            }
            return(View(lstItems));
        }
Esempio n. 13
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            SuperKey = ApplicationCommon.GetSuperKey();

            if (!string.IsNullOrEmpty(SuperKey))
            {
                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(PrimaryEntity.Value(), SuperKey);

                foreach (var entityKey in lstEntityKeys)
                {
                    AddDetailControl(false, entityKey);
                }

                return;
            }

            SetId = ApplicationCommon.GetSetId();
            if (SetId != 0)
            {
                AddDetailControl(true, SetId);
            }
        }
Esempio n. 14
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            ViewName = "CommonUpdate";

            DynamicUpdatePanelCore.AddColumns(GetColumns());
            SuperKey = ApplicationCommon.GetSuperKey();
            SetId    = ApplicationCommon.GetSetId();

            var results = GetEntityData(null).Clone();

            if (!string.IsNullOrEmpty(SuperKey))
            {
                var lstEntityKeys = ApplicationCommon.GetSuperKeyDetails(PrimaryEntity.Value(), SuperKey);

                foreach (var entityKey in lstEntityKeys)
                {
                    var dt = GetEntityData(entityKey);
                    if (dt.Rows.Count == 1)
                    {
                        results.ImportRow(dt.Rows[0]);
                    }
                }
            }
            else
            {
                var dt = GetEntityData(SetId);
                if (dt.Rows.Count == 1)
                {
                    results.ImportRow(dt.Rows[0]);
                }
            }
            SelectedData = results.Copy();

            DynamicUpdatePanelCore.SetUp(GetColumns(), PrimaryEntityKey, GetData());
        }