Esempio n. 1
0
        /// <summary>
        /// //获取ID=“MenuTextbox”中的值,调用后台方法生成Xml数据包
        /// //生成“文本菜单”按钮的回复Xml数据包
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button_Click_SetUpTextMenu(object sender, EventArgs e)
        {
            string a;
            System.Collections.Specialized.NameValueCollection nc = new System.Collections.Specialized.NameValueCollection(Request.Form);
            a = nc.GetValues("MenuTextbox")[0].ToString();

            AdministrateXml adxml = new AdministrateXml();
            adxml.SetUpAddTextMenuXmlPage(a);
        }
Esempio n. 2
0
        /// <summary>
        /// 获取菜单功能内容填写模块的数据,然后调用后台方法生成XmlPage
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button_Click_MenuTextFunction(object sender, EventArgs e)
        {
            string a;
            System.Collections.Specialized.NameValueCollection na = new System.Collections.Specialized.NameValueCollection(Request.Form);
            a = na.GetValues("FunctionComBox")[0].ToString();

            string b;
            System.Collections.Specialized.NameValueCollection nb = new System.Collections.Specialized.NameValueCollection(Request.Form);
            b = nb.GetValues("FunctionUser")[0].ToString();

            string c;
            System.Collections.Specialized.NameValueCollection nc = new System.Collections.Specialized.NameValueCollection(Request.Form);
            c = nc.GetValues("FunctionTextBox")[0].ToString();

            AdministrateXml adxml = new AdministrateXml();
            adxml.SetUpMenuTextFunctionXmlPage(a, b, c);
        }
Esempio n. 3
0
 //创建菜单按钮Xml数据包
 /// <summary>
 /// *根据“name”和对应的“text”生成了第三个按钮所需的Xml数据包
 /// </summary>
 /// <param name="text"></param>
 /// <param name="name"></param>
 public void Establish_Xml(string text, string name)
 {
     if (name == "BB")
     {
         AdministrateXml ax = new AdministrateXml();
         ax.SetUpXml(text, name);
     }
     if (name == "Keybord")
     {
         AdministrateXml ax = new AdministrateXml();
         ax.SetUpXml(text, name);
     }
     if (name == "Panda")
     {
         AdministrateXml ax = new AdministrateXml();
         ax.SetUpXml(text, name);
     }
 }