/// <summary> /// Handles the loading of the module setting for this control /// </summary> public override void LoadSettings() { try { if (!IsPostBack) { Localize(); var settings = new ObserverOfScienceSettings(this.ModuleId, this.TabModuleId); // var tc = new TermController(); termsSelector.PortalId = PortalId; termsSelector.Terms = new List <Term>(); // ни один из термов не выбран termsSelector.DataBind(); if (!string.IsNullOrWhiteSpace(settings.Template)) { txtCountInvention.Text = settings.CountInvention.ToString(); txtLenghtText.Text = settings.LenghtText.ToString(); } } } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }
/// <summary> /// Handles the loading of the module setting for this control /// </summary> public override void LoadSettings() { try { if (!IsPostBack) { Localize (); var settings = new ObserverOfScienceSettings (this.ModuleId, this.TabModuleId); // var tc = new TermController(); termsSelector.PortalId = PortalId; termsSelector.Terms = new List<Term>(); // ни один из термов не выбран termsSelector.DataBind(); if (!string.IsNullOrWhiteSpace (settings.Template)) { txtCountInvention.Text = settings.CountInvention.ToString(); txtLenghtText.Text = settings.LenghtText.ToString(); } } } catch (Exception ex) { Exceptions.ProcessModuleLoadException (this, ex); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { var settings = new ObserverOfScienceSettings(ModuleId, TabModuleId); var ctrl = new ObserverOfScienceController(); var items = ctrl.GetList <ObserverOfScienceInfo>(); // List<ObserverOfScienceInfo> new_items =new List<ObserverOfScienceInfo>(); n = settings.LenghtText; // for(int i=0; i < Math.Min(n,items.Count); i++) // new_items.Add (items[i]); // // items = new_items; // bind the data lstObserverOfScience.DataSource = items; lstObserverOfScience.DataBind() //привязать данные из таблици inventioninfo к таблице observer of sciensinfo //поменять Invention на ObserverOfScienceInfo //править айтем дата баленд менять связи ; } } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }
/// <summary> /// handles updating the module settings for this control /// </summary> public override void UpdateSettings() { try { var settings = new ObserverOfScienceSettings(this.ModuleId, this.TabModuleId); settings.LenghtText = int.Parse(txtLenghtText.Text); settings.CountInvention = int.Parse(txtCountInvention.Text); } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }
/// <summary> /// handles updating the module settings for this control /// </summary> public override void UpdateSettings() { try { var settings = new ObserverOfScienceSettings (this.ModuleId, this.TabModuleId); settings.LenghtText =int.Parse( txtLenghtText.Text); settings.CountInvention = int.Parse(txtCountInvention.Text); } catch (Exception ex) { Exceptions.ProcessModuleLoadException (this, ex); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { var settings = new ObserverOfScienceSettings(ModuleId, TabModuleId); var ctrl = new ObserverOfScienceController (); var items = ctrl.GetList<ObserverOfScienceInfo>(); // List<ObserverOfScienceInfo> new_items =new List<ObserverOfScienceInfo>(); n = settings.LenghtText; // for(int i=0; i < Math.Min(n,items.Count); i++) // new_items.Add (items[i]); // // items = new_items; // bind the data lstObserverOfScience.DataSource = items; lstObserverOfScience.DataBind () //привязать данные из таблици inventioninfo к таблице observer of sciensinfo //поменять Invention на ObserverOfScienceInfo //править айтем дата баленд менять связи ; } } catch (Exception ex) { Exceptions.ProcessModuleLoadException (this, ex); } }