Example #1
0
        /// <summary>
        /// Save the Presentation.Table settings to the settings file
        /// </summary>
        /// <param name="tableNode">XML-node for the Presentation.Table settings</param>
        public void Save(XmlNode tableNode)
        {
            string  xpath;
            XmlNode node;

            xpath = "./tableTransformation";
            SettingsHelper.SetSettingValue(xpath, tableNode, TableTransformation.ToString());

            xpath = "./defaultLayout";
            SettingsHelper.SetSettingValue(xpath, tableNode, DefaultLayout.ToString());

            xpath = "./maxColumns";
            SettingsHelper.SetSettingValue(xpath, tableNode, MaxColumns.ToString());

            xpath = "./maxRows";
            SettingsHelper.SetSettingValue(xpath, tableNode, MaxRows.ToString());

            xpath = "./titleVisible";
            SettingsHelper.SetSettingValue(xpath, tableNode, TitleVisible.ToString());

            xpath = "./useStickyHeaderFullscreen";
            SettingsHelper.SetSettingValue(xpath, tableNode, UseStickyHeaderFullscreen.ToString());


            xpath = "./attributes";
            node  = SettingsHelper.GetNode(tableNode, xpath);
            _attributeSettings.Save(node);
        }
Example #2
0
    public string GetNumberOfPriorityReplens(string Priority)
    {
        int MaxRows;

        DbCon     = new DatabaseConnection();
        conString = DbCon.GetConString();
        DbCon.connection_String = conString;
        DbCon.Sql = "select _rid_ from Move_queue where type='replen' and priority='" + Priority + "'";
        ds        = DbCon.GetConnection;
        MaxRows   = ds.Tables[0].Rows.Count;


        return(MaxRows.ToString());
    }
Example #3
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + OperationHandle.GetHashCode();
                hashcode = (hashcode * 397) + Orientation.GetHashCode();
                hashcode = (hashcode * 397) + MaxRows.GetHashCode();
                if (__isset.fetchType)
                {
                    hashcode = (hashcode * 397) + FetchType.GetHashCode();
                }
            }
            return(hashcode);
        }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (SourceUrl != null)
            {
                String url = ResolveUrl(SourceUrl);
                //url = url + (url.Contains('?') ? "&lang=" : "?lang=") + ((BasePage)Page).Language;

                String _params = "\'" + this.ClientID + "', '"
                                 + txtInput.ClientID + "', '"
                                 + results.ClientID + "', '"
                                 + MaxRows.ToString() + "', '"
                                 + url + "\'";

                main.Attributes["onfocus"]             = "pfHandleLookupKeypress(" + _params + ")";
                main.Attributes["onblur"]              = "pfHideLookupResults('" + results.ClientID + "')";
                txtInput.Attributes["onfocus"]         = "pfHandleLookupKeypress(" + _params + ")";
                txtInput.Attributes["onkeypress"]      = "return pfHandleLookupKeypress2(" + _params + ", event)";
                txtInput.Attributes["onkeyup"]         = "return pfHandleLookupKeypress3(" + _params + ")";
                txtInput.Attributes["onchange"]        = "pfHandleLookupKeypress(" + _params + ")";
                txtInput.Attributes["onblur"]          = "setTimeout(function(){pfHideLookupResults('" + results.ClientID + "')},100)";
                hdSelectedValue.Attributes["onchange"] = OnClientValueChanged;
            }
        }