protected override void ShowData(int fieldConfigurationId) { base.ShowData(fieldConfigurationId); oDetailButtonPanel.SetId = SetId; Clear(); var dataQuery = new FieldConfigurationDataModel(); dataQuery.FieldConfigurationId = fieldConfigurationId; var entityList = FieldConfigurationDataManager.GetEntityDetails(dataQuery, SessionVariables.RequestProfile, ApplicationCommon.ReturnAuditInfo); if (entityList.Count == 1) { foreach (var entityItem in entityList) { lblFieldConfigurationId.Text = entityItem.FieldConfigurationId.ToString(); lblName.Text = entityItem.Name; lblValue.Text = entityItem.Value; lblSystemEntityTypeId.Text = entityItem.SystemEntityTypeId.ToString(); lblWidth.Text = entityItem.Width.ToString(); lblFormatting.Text = entityItem.Formatting; lblControlType.Text = entityItem.ControlType; lblHorizontalAlignment.Text = entityItem.HorizontalAlignment; lblDisplayColumn.Text = entityItem.DisplayColumn.ToString(); lblCellCount.Text = entityItem.CellCount.ToString(); //oUpdateInfo.LoadText(entityItem.UpdatedDate, entityItem.UpdatedBy, entityItem.LastAction); oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.FieldConfiguration, fieldConfigurationId, "FieldConfiguration"); } } }
public JsonResult GetSearchFilterColumns() { var data = new FieldConfigurationDataModel(); data.SystemEntityTypeId = SystemEntity.FunctionalityXFunctionalityDevelopmentStep.Value(); data.FieldConfigurationModeId = SessionVariables.SearchControlColumnsModeId; var list = FieldConfigurationDataManager.GetEntityDetails(data, SessionVariables.RequestProfile, ApplicationCommon.ReturnAuditInfo); return(Json(list, JsonRequestBehavior.AllowGet)); }
public JsonResult GetSearchFilterColumns() { var data = new FieldConfigurationDataModel(); data.SystemEntityTypeId = SystemEntity.DailyTaskItemQueue.Value(); data.FieldConfigurationModeId = SessionVariables.SearchControlColumnsModeId; var list = FieldConfigurationDataManager.GetEntityDetails(data, SessionVariables.RequestProfile, ApplicationCommon.ReturnAuditInfo); list = list.OrderBy(item => item.GridViewPriority).ToList(); return Json(list, JsonRequestBehavior.AllowGet); }
public void LoadData(int fieldConfigurationId, bool showId) { // clear UI Clear(); // set up parameters var data = new FieldConfigurationDataModel(); data.FieldConfigurationId = fieldConfigurationId; // get data var items = FieldConfigurationDataManager.GetEntityDetails(data, SessionVariables.RequestProfile, ApplicationCommon.ReturnAuditInfo); // should only have single match if (items.Count != 1) { return; } var item = items[0]; txtFieldConfigurationId.Text = item.FieldConfigurationId.ToString(); txtName.Text = item.Name; txtApplication.Text = item.ApplicationId.ToString(); txtSystemEntityTypeId.Text = item.SystemEntityTypeId.ToString(); drpSystemEntityTypeList.SelectedValue = item.SystemEntityTypeId.ToString(); txtDisplayName.Text = item.FieldConfigurationDisplayName; txtName.Text = item.Name; txtValue.InnerText = item.Value; txtWidth.Text = item.Width.ToString(); txtFormatting.Text = item.Formatting; txtControlType.Text = item.ControlType; txtHorizontalAlignment.Text = item.HorizontalAlignment; txtGridViewPriority.Text = item.GridViewPriority.ToString(); txtDetailsViewPriority.Text = item.DetailsViewPriority.ToString(); ddlFieldConfigurationMode.SelectedValue = item.FieldConfigurationModeId.ToString(); txtFieldConfigurationMode.Text = item.FieldConfigurationModeId.ToString(); txtDisplayColumn.Text = item.DisplayColumn.ToString(); txtCellCount.Text = item.CellCount.ToString(); var applicationData = new ApplicationDataModel(); applicationData.ApplicationId = item.ApplicationId; var appDatas = ApplicationDataManager.GetDetails(applicationData, SessionVariables.RequestProfile); //drpApplicationList.SelectedValue = appDatas.Rows[0][ApplicationDataModel.DataColumns.Name].ToString(); if (!showId) { txtFieldConfigurationId.Text = item.FieldConfigurationId.ToString(); txtDisplayName.Enabled = false; //PlaceHolderAuditHistory.Visible = true; // only show Audit History in case of Update page, not for Clone. oHistoryList.Setup(PrimaryEntity, fieldConfigurationId, PrimaryEntityKey); } else { txtFieldConfigurationId.Text = String.Empty; } //oUpdateInfo.LoadText(item.UpdatedDate, item.UpdatedBy, item.LastAction); }