/// <summary> /// F81003_s the list selection category. /// </summary> /// <param name="userId">The user id.</param> /// <returns>selection catalog dataset</returns> public static F81003SelectionCatalogData F81003_ListSelectionCategory(int userId) { F81003SelectionCatalogData selectionCatalogData = new F81003SelectionCatalogData(); Hashtable ht = new Hashtable(); ht.Add("@UserID", userId); Utility.LoadDataSet(selectionCatalogData.ListSelectionCategory, "f81003_pclst_SelectionCategory", ht); return(selectionCatalogData); }
/// <summary> /// F81003_s the get selection catalog details. /// </summary> /// <param name="catalogId">The catalog id.</param> /// <returns>selection catalog dataset</returns> public static F81003SelectionCatalogData F81003_GetSelectionCatalogDetails(int catalogId) { F81003SelectionCatalogData selectionCatalogData = new F81003SelectionCatalogData(); Hashtable ht = new Hashtable(); ht.Add("@CatalogID", catalogId); Utility.LoadDataSet(selectionCatalogData.GetSelectionCatalog, "f81003_pcget_SelectionCatalog", ht); return(selectionCatalogData); }
/// <summary> /// Loads the category combo values. /// </summary> private void LoadCategoryComboValues() { F81003SelectionCatalogData categoryData = new F81003SelectionCatalogData(); categoryData = this.form81003Control.WorkItem.F81003_ListSelectionCategory(TerraScanCommon.UserId); if (categoryData.ListSelectionCategory.Rows.Count > 0) { //// load the data into combo box. this.CategoryComboBox.DataSource = categoryData.ListSelectionCategory; this.CategoryComboBox.DisplayMember = categoryData.ListSelectionCategory.VCategoryColumn.ColumnName; this.CategoryComboBox.ValueMember = categoryData.ListSelectionCategory.CategoryIDColumn.ColumnName; this.CategoryComboBox.SelectedValue = this.categoryIdentity; } }
/// <summary> /// Populates the selection catalog details. /// </summary> private void PopulateSelectionCatalogDetails() { this.pageLoadStatus = true; this.selectionCatalogData = this.form81003Control.WorkItem.F81003_GetSelectionCatalogDetails(this.keyId); if (this.selectionCatalogData.GetSelectionCatalog.Rows.Count > 0) { this.ControlLock(false || !this.permissionFields.editPermission || !this.formMasterPermissionEdit); this.EnableControls(false || !this.permissionFields.editPermission || !this.formMasterPermissionEdit); int.TryParse(this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.CategoryIDColumn.ColumnName].ToString(), out this.categoryIdentity); this.CategoryComboBox.SelectedValue = this.categoryIdentity; this.CatalogIDTextBox.Text = this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.CatalogIDColumn.ColumnName].ToString(); this.catalogIdentity = Convert.ToInt32(this.CatalogIDTextBox.Text.Trim()); this.SelectionTextBox.Text = this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.SelectionColumn.ColumnName].ToString(); this.UnitsTextBox.Text = this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.UnitsColumn.ColumnName].ToString(); this.EffectiveDateTextBox.Text = this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.EffectiveDateColumn.ColumnName].ToString(); bool flagMultiplyChecked; bool.TryParse(this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.MultiplyColumn.ColumnName].ToString(), out flagMultiplyChecked); this.MultiplyCheckBox.Checked = flagMultiplyChecked; this.UnitFeeTextBox.Text = this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.UnitFeeColumn.ColumnName].ToString(); this.FeeCalculationTextBox.Text = this.selectionCatalogData.GetSelectionCatalog.Rows[0][this.selectionCatalogData.GetSelectionCatalog.FeeCalcColumn.ColumnName].ToString(); } else { this.EnableControls(true); this.ControlLock(true); } this.pageMode = TerraScanCommon.PageModeTypes.View; this.pageLoadStatus = false; }