private string value_Validate(string name, VarientType type, string value)
        {
            GlobalVarients gvs = new GlobalVarients();

            gvs.Add(new GlobalVarient(name, type, value));

            ScriptHelper sh = new ScriptHelper();

            sh.AddScript(sh.VarientString(gvs));
            sh.References.Add(ExecutePath + "UFIDA.U8.UAP.Services.ReportData.dll");
            sh.References.Add(ExecutePath + "UFIDA.U8.UAP.Services.ReportElements.dll");
            sh.References.Add(ExecutePath + "UFIDA.U8.UAP.Services.ReportFilterService.dll");
            sh.OutputAssembly = null;
            CompilerResults cr = sh.Compile();

            if (cr.Errors.Count > 0)
            {
                return(UFIDA.U8.UAP.Services.ReportResource.U8ResService.GetResString("U8.UAP.Services.ReportElements.Tx10", System.Threading.Thread.CurrentThread.CurrentUICulture.Name));
            }

            try
            {
                ITest test = ((ITest)ScriptHelper.FindInterface(cr.CompiledAssembly, "UFIDA.U8.UAP.Services.DynamicReportComponent.DRCtmp.Global"));
                test.DataHelper = _datahelper;
                test.Test();
            }
            catch
            {
                return(UFIDA.U8.UAP.Services.ReportResource.U8ResService.GetResString("U8.UAP.Services.ReportElements.Tx11", System.Threading.Thread.CurrentThread.CurrentUICulture.Name));
            }
            return("");
        }
        public object Clone()
        {
            GlobalVarients gvs = new GlobalVarients();

            foreach (GlobalVarient gv in this)
            {
                gvs.Add(gv.Clone() as GlobalVarient);
            }
            return(gvs);
        }