Exemple #1
0
        public override object CallFunction(string cMenuId, string cMenuName, string cAuthId, string cCmdLine)
        {
            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");
            System.Threading.Thread.CurrentThread.CurrentCulture   = new System.Globalization.CultureInfo("zh-CN");


            if (cMenuId.Trim().ToLower() == "TH_ETS_01".ToLower())
            {
                //根据菜单读取自定义控件
                INetUserControl mycontrol = new GL_CodeCreater();

                base.ShowEmbedControl(mycontrol, cMenuId, true);
            }

            if (cMenuId.Trim().ToLower() == "TH_ETS_02".ToLower())
            {
                //根据菜单读取自定义控件
                INetUserControl mycontrol = new GL_accvoucheCreater();

                base.ShowEmbedControl(mycontrol, cMenuId, true);
            }


            return(null);
        }
Exemple #2
0
        public override object CallFunction(string cMenuId, string cMenuName, string cAuthId, string cCmdLine)
        {
            if (cMenuId == "TH_1")
            {
                //根据菜单读取自定义控件
                INetUserControl mycontrol = new GL_CodeCreater();

                base.ShowEmbedControl(mycontrol, cMenuId, true);
            }

            if (cMenuId == "TH_2")
            {
                //根据菜单读取自定义控件
                INetUserControl mycontrol = new GL_accvouchCreater();

                base.ShowEmbedControl(mycontrol, cMenuId, true);
            }

            if (cMenuId == "TH_3")
            {
                //根据菜单读取自定义控件
                INetUserControl mycontrol = new GL_accvouchToJPCreater();

                base.ShowEmbedControl(mycontrol, cMenuId, true);
            }

            return(null);
        }