예제 #1
0
        private void AddModuleItemToTree(TreeViewItem parent, SystemModule module)
        {
            var item = new TreeViewItem();
            var ckb  = new CheckBox();

            ckb.IsChecked    = false;
            ckb.Content      = module.ModuleName;
            item.Header      = ckb;
            item.DataContext = module;
            if (parent == null)
            {
                UserRightsTree.Items.Add(item);
            }
            else
            {
                parent.Items.Add(item);
            }
            if (module.Children != null && module.Children.Count > 0)
            {
                foreach (var child in module.Children)
                {
                    AddModuleItemToTree(item, child);
                }
                item.IsExpanded = true;
            }
        }
예제 #2
0
        public JsonResult GetTree()
        {
            List <SystemModule> list  = treebll.GetList("0");
            List <SystemModule> trees = new List <SystemModule>();

            if (list != null && list.Count > 0)
            {
                foreach (var item in list)
                {
                    SystemModule TreeModel = new SystemModule();
                    TreeModel.children   = new List <SystemModule>();
                    TreeModel.ModuleId   = item.ModuleId;
                    TreeModel.attributes = item.attributes;
                    TreeModel.text       = item.text;
                    TreeModel.state      = "open";

                    var treeson = getTree(item.ModuleId);
                    if (treeson != null && treeson.Count > 0)
                    {
                        TreeModel.children.AddRange(treeson);
                    }
                    trees.Add(TreeModel);
                }
            }
            var json = trees.ToArray();

            return(Json(json, JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public List <SystemModule> getTree(string pid)
        {
            List <SystemModule> modelList = new List <SystemModule>();
            var list = treebll.GetList(pid);

            if (list.Count > 0)
            {
                foreach (var item in list)
                {
                    SystemModule model = new SystemModule();
                    model.children = new List <SystemModule>();
                    model.ModuleId = item.ModuleId;
                    model.text     = item.text;
                    model.state    = "closed";

                    model.attributes = item.attributes;
                    var sonTree = getTree(item.ModuleId);
                    if (sonTree != null)
                    {
                        model.children.AddRange(sonTree);
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
예제 #4
0
        private void InitializeComponent()
        {
            _module1        = new SystemModule();
            _module2        = new SystemAspNetModule();
            _module3        = new WorkflowTesterModule();
            _module4        = new WorkflowTesterAspNetModule();
            _sqlConnection1 = new SqlConnection();
            ((ISupportInitialize)(this)).BeginInit();
            //
            // sqlConnection1
            //
            _sqlConnection1.ConnectionString =
                @"Integrated Security=SSPI;Pooling=false;Data Source=.\SQLEXPRESS;Initial Catalog=WorkflowTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            //
            // WorkflowTesterAspNetApplication
            //
            ApplicationName = "WorkflowTester";
            Connection      = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_module4);

            DatabaseVersionMismatch += WorkflowTesterAspNetApplication_DatabaseVersionMismatch;
            ((ISupportInitialize)(this)).EndInit();
        }
예제 #5
0
    private void thePageBind()
    {
        if (this._InfoRow != null)
        {
            this.tbx_memo.Text  = this._InfoRow["memo"].ToString();
            this.tbx_mkdm.Text  = this._InfoRow["mkdm"].ToString();
            this.tbx_sql.Text   = this._InfoRow["sql"].ToString();
            this.tbx_title.Text = this._InfoRow["title"].ToString();
            this.tbx_url.Text   = this._InfoRow["url"].ToString();
            bool flag = (bool)this._InfoRow["Isvalid"];
            if (flag)
            {
                this.rdi_Y.Checked = true;
                this.rdi_N.Checked = false;
            }
            else
            {
                this.rdi_Y.Checked = false;
                this.rdi_N.Checked = true;
            }
            this.btn_Delete.Visible = true;
            return;
        }
        DataTable oneModule = SystemModule.GetOneModule(this._mkdm);
        DataRow   dataRow   = oneModule.Rows[0];

        this.tbx_memo.Text      = com.jwsoft.pm.entpm.action.WaitingJob.GetFullModuleName(this._mkdm);
        this.tbx_mkdm.Text      = this._mkdm;
        this.tbx_sql.Text       = "";
        this.tbx_title.Text     = dataRow["v_mkmc"].ToString();
        this.tbx_url.Text       = dataRow["v_cdlj"].ToString();
        this.rdi_Y.Checked      = true;
        this.rdi_N.Checked      = false;
        this.btn_Delete.Visible = false;
    }
예제 #6
0
 void InitializeComponent()
 {
     module1                      = new SystemModule();
     module2                      = new SystemAspNetModule();
     module3                      = new AuditTrailTesterModule();
     module4                      = new AuditTrailTesterAspNetModule();
     sqlConnection1               = new SqlConnection();
     auditTrailModule1            = new AuditTrailModule();
     securityModule1              = new SecurityModule();
     validationModule1            = new ValidationModule();
     conditionalAppearanceModule1 = new ConditionalAppearanceModule();
     logicModule1                 = new LogicModule();
     xpandAuditTrailModule1       = new XpandAuditTrailModule();
     securityStrategyComplex1     = new SecurityStrategyComplex();
     authenticationStandard1      = new AuthenticationStandard();
     ((ISupportInitialize)(this)).BeginInit();
     //
     // sqlConnection1
     //
     sqlConnection1.ConnectionString =
         "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=A" +
         "uditTrailTester";
     sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     //
     // auditTrailModule1
     //
     auditTrailModule1.AuditDataItemPersistentType = typeof(AuditDataItemPersistent);
     //
     // validationModule1
     //
     validationModule1.AllowValidationDetailsAccess = true;
     //
     // securityStrategyComplex1
     //
     securityStrategyComplex1.Authentication = authenticationStandard1;
     securityStrategyComplex1.RoleType       = typeof(XpandRole);
     securityStrategyComplex1.UserType       = typeof(SecuritySystemUser);
     //
     // authenticationStandard1
     //
     authenticationStandard1.LogonParametersType = typeof(AuthenticationStandardLogonParameters);
     //
     // AuditTrailTesterAspNetApplication
     //
     ApplicationName = "AuditTrailTester";
     Connection      = sqlConnection1;
     Modules.Add(module1);
     Modules.Add(module2);
     Modules.Add(auditTrailModule1);
     Modules.Add(securityModule1);
     Modules.Add(validationModule1);
     Modules.Add(conditionalAppearanceModule1);
     Modules.Add(logicModule1);
     Modules.Add(xpandAuditTrailModule1);
     Modules.Add(module3);
     Modules.Add(module4);
     Security = securityStrategyComplex1;
     DatabaseVersionMismatch += AuditTrailTesterAspNetApplication_DatabaseVersionMismatch;
     ((ISupportInitialize)(this)).EndInit();
 }
 internal void PageLoad(object sender, RoutedEventArgs e)
 {
     View = (SystemModuleEditView)sender;
     if (View.MD != null)
     {
         //View = (FuncModuleUpdateView)sender;
         View.Title           = "修改";
         View.TitleImg.Source = new BitmapImage(new Uri("pack://siteoforigin:,,,/image/modify.png"));
         md = View.MD;//页面传参
         View.txtID.Text     = md.ID.ToString();
         View.txtCode.Text   = md.Code.ToString();
         View.txtName.Text   = md.Name;
         View.txtRemark.Text = md.Remark;
         View.txtSort.Text   = md.Sort.ToString();
         View.txtURl.Text    = md.Url;
         View.txtUpCode.Text = md.UplevelCode.ToString();
         View.txtUpName.Text = md.UplevelName;
         LoadcmbEnable();
         View.cmbEnable.SelectedValue = md.EnableStatus;
     }
     else
     {
         View.Title           = "添加";
         View.TitleImg.Source = new BitmapImage(new Uri("pack://siteoforigin:,,,/image/add.png"));
         //View.txtgnbh.Focus();
     }
 }
예제 #8
0
        void InitializeComponent() {
            module1 = new SystemModule();
            module2 = new SystemAspNetModule();
            module3 = new XpandSystemTesterModule();
            module4 = new XpandSystemTesterAspNetModule();
            sqlConnection1 = new SqlConnection();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // sqlConnection1
            // 
            sqlConnection1.ConnectionString =
                @"Integrated Security=SSPI;Pooling=false;Data Source=.\SQLEXPRESS;Initial Catalog=XpandSystemTester";
            sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // XpandSystemTesterAspNetApplication
            // 
            this.ApplicationName = "XpandSystemTester";
            this.Connection = sqlConnection1;
            this.Modules.Add(module1);
            this.Modules.Add(module2);
            this.Modules.Add(module3);
            this.Modules.Add(module4);

            this.DatabaseVersionMismatch +=
                new EventHandler<DatabaseVersionMismatchEventArgs>(
                    XpandSystemTesterAspNetApplication_DatabaseVersionMismatch);
            ((ISupportInitialize) (this)).EndInit();
        }
예제 #9
0
        public List <SystemModule> getRoleModuleByRole(int role_id)
        {
            String sql = "SP_GETALLROLEMODULEBYROLE";//Stored procedure name

            try
            {
                SqlCommand oCommand = new SqlCommand(sql);
                oCommand.CommandType = System.Data.CommandType.StoredProcedure;
                oCommand.Parameters.AddWithValue("@ID", role_id);
                oCommand.Parameters[0].Direction = ParameterDirection.Input;
                DataTable           oDataTable       = DAO.getInstance().executeQuery(oCommand);//To execute query
                List <SystemModule> listSystemModule = new List <SystemModule>();
                foreach (DataRow oDataRow in oDataTable.Rows)
                {
                    SystemModule oSystemModule = new SystemModule();
                    oSystemModule.SystemModule_Id = Convert.ToInt32(oDataRow[1].ToString());
                    oSystemModule.Description     = oDataRow[2].ToString();
                    listSystemModule.Add(oSystemModule);
                }
                return(listSystemModule);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally { }
        }
        /// <summary>
        /// Returns true if <paramref name="type"/> is a generic interface type implemented by arrays.
        /// </summary>
        public bool IsGenericArrayInterfaceType(TypeDesc type)
        {
            // Hardcode the fact that all generic interfaces on array types have arity 1
            if (!type.IsInterface || type.Instantiation.Length != 1)
            {
                return(false);
            }

            if (_arrayOfTInterfaces == null)
            {
                DefType[]  implementedInterfaces = SystemModule.GetKnownType("System", "Array`1").ExplicitlyImplementedInterfaces;
                TypeDesc[] interfaceDefinitions  = new TypeDesc[implementedInterfaces.Length];
                for (int i = 0; i < interfaceDefinitions.Length; i++)
                {
                    interfaceDefinitions[i] = implementedInterfaces[i].GetTypeDefinition();
                }
                Interlocked.CompareExchange(ref _arrayOfTInterfaces, interfaceDefinitions, null);
            }

            TypeDesc interfaceDefinition = type.GetTypeDefinition();

            foreach (var arrayInterfaceDefinition in _arrayOfTInterfaces)
            {
                if (interfaceDefinition == arrayInterfaceDefinition)
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #11
0
        private void InitializeComponent() {
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            _module3 = new ValidationTesterModule();
            _module4 = new ValidationTesterAspNetModule();
            _sqlConnection1 = new SqlConnection();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // sqlConnection1
            // 
            _sqlConnection1.ConnectionString =
                @"Integrated Security=SSPI;Pooling=false;Data Source=.\SQLEXPRESS;Initial Catalog=ValidationTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // ValidationTesterAspNetApplication
            // 
            ApplicationName = "ValidationTester";
            Connection = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_module4);

            DatabaseVersionMismatch += ValidationTesterAspNetApplication_DatabaseVersionMismatch;
            ((ISupportInitialize) (this)).EndInit();

        }
예제 #12
0
 private void InitializeComponent()
 {
     systemModule                 = new SystemModule();
     systemAspNetModule           = new SystemAspNetModule();
     webModule                    = new WebModule();
     sqlConnection1               = new SqlConnection();
     cloneObjectModule1           = new CloneObjectModule();
     reportsModule1               = new ReportsModule();
     validationModule1            = new ValidationModule();
     conditionalAppearanceModule1 = new ConditionalAppearanceModule();
     stateMachineModule1          = new StateMachineModule();
     coreModule1                  = new CoreModule();
     securityStrategyComplex1     = new SecurityStrategyComplex();
     securityModule1              = new SecurityModule();
     CoreAuthenticationApp1       = new CoreAuthentication();
     ((ISupportInitialize)this).BeginInit();
     //
     // sqlConnection1
     //
     sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     //
     // reportsModule1
     //
     reportsModule1.EnableInplaceReports = true;
     reportsModule1.ReportDataType       = typeof(ReportData);
     //
     // stateMachineModule1
     //
     stateMachineModule1.StateMachineStorageType = typeof(XpoStateMachine);
     //
     // securityStrategyComplex1
     //
     securityStrategyComplex1.Authentication = CoreAuthenticationApp1;
     securityStrategyComplex1.RoleType       = typeof(Rol);
     securityStrategyComplex1.UserType       = typeof(Usuario);
     //
     // CoreAspNetApplication
     //
     ApplicationName = "CORE";
     LinkNewObjectToParentImmediately = false;
     CheckCompatibilityType           = CheckCompatibilityType.DatabaseSchema;
     Connection = sqlConnection1;
     Modules.Add(systemModule);
     Modules.Add(systemAspNetModule);
     Modules.Add(coreModule1);
     Modules.Add(cloneObjectModule1);
     Modules.Add(reportsModule1);
     Modules.Add(validationModule1);
     Modules.Add(conditionalAppearanceModule1);
     Modules.Add(stateMachineModule1);
     Modules.Add(webModule);
     Modules.Add(securityModule1);
     // TODO: migrate
     // CollectionsEditMode = ViewEditMode.Edit;
     Security = securityStrategyComplex1;
     DatabaseVersionMismatch += CoreAspNetApplication_DatabaseVersionMismatch;
     ((ISupportInitialize)this).EndInit();
 }
 public ServiceMethodPermissionDescriptorAttribute(string metohodName, Permission permission,
                                                   UserType userType = UserType.All, SystemModule systemModule = SystemModule.All, params string[] otherParams)
 {
     MethodName   = metohodName;
     Permission   = permission;
     UserType     = userType;
     SystemModule = systemModule;
     OtherParams  = otherParams;
 }
예제 #14
0
 private void InitializeComponent()
 {
     _module1 = new SystemModule();
     _module2 = new SystemAspNetModule();
     _securityStrategyComplex1 = new SecurityStrategyComplex();
     _authenticationStandard1  = new AuthenticationStandard();
     _module4                     = new XtraDashboardTesterAspNetModule();
     _sqlConnection1              = new SqlConnection();
     _validationModule1           = new ValidationModule();
     _dashboardModule1            = new DashboardModule();
     _validationAspNetModule1     = new ValidationAspNetModule();
     _xtraDashboardWebModule1     = new XtraDashboardWebModule();
     _scriptRecorderModuleBase1   = new ScriptRecorderModuleBase();
     _scriptRecorderAspNetModule1 = new ScriptRecorderAspNetModule();
     _moduleModule1               = new ModuleModule();
     ((ISupportInitialize)this).BeginInit();
     //
     // _securityStrategyComplex1
     //
     _securityStrategyComplex1.Authentication = _authenticationStandard1;
     _securityStrategyComplex1.RoleType       = typeof(XpandPermissionPolicyRole);
     _securityStrategyComplex1.UserType       = typeof(PermissionPolicyUser);
     //
     // _authenticationStandard1
     //
     _authenticationStandard1.LogonParametersType = typeof(AuthenticationStandardLogonParameters);
     //
     // _sqlConnection1
     //
     _sqlConnection1.ConnectionString =
         "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=X" +
         "traDashboardTester";
     _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     //
     // validationModule1
     //
     _validationModule1.AllowValidationDetailsAccess     = true;
     _validationModule1.IgnoreWarningAndInformationRules = false;
     //
     // XtraDashboardTesterAspNetApplication
     //
     ApplicationName = "XtraDashboardTester";
     Connection      = _sqlConnection1;
     Modules.Add(_module1);
     Modules.Add(_module2);
     Modules.Add(_validationModule1);
     Modules.Add(_dashboardModule1);
     Modules.Add(_validationAspNetModule1);
     Modules.Add(_xtraDashboardWebModule1);
     Modules.Add(_scriptRecorderModuleBase1);
     Modules.Add(_scriptRecorderAspNetModule1);
     Modules.Add(_moduleModule1);
     Modules.Add(_module4);
     Security = _securityStrategyComplex1;
     ((ISupportInitialize)this).EndInit();
 }
예제 #15
0
    public virtual SystemModule CopyModule()
    {
        SystemModule sm = SystemModule.CreateInstance <SystemModule>();

        sm.Symbol      = Symbol;
        sm.Age         = Age;
        sm.TerminalAge = TerminalAge;
        sm.Growth      = Growth;
        return(sm);
    }
예제 #16
0
 public ServicePermissionDescriptorAttribute(string serviceName, string serviceId, string tag = "",
                                             int order = 0, SystemModule systemModule = SystemModule.All, params string[] otherParams)
 {
     ServiceId    = Guid.Parse(serviceId);
     ServiceName  = serviceName;
     Tag          = tag;
     Order        = order;
     SystemModule = systemModule;
     OtherParams  = otherParams;
 }
예제 #17
0
        public SystemModuleViewModel BuildNew(SystemModule systemModule)
        {
            var systemModuleViewModel = new SystemModuleViewModel()
            {
                Id    = systemModule.Id,
                Title = systemModule.Title
            };

            return(systemModuleViewModel);
        }
예제 #18
0
 void InitializeComponent()
 {
     this.module1        = new DevExpress.ExpressApp.SystemModule.SystemModule();
     this.module2        = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
     this.module3        = new StateMachineTester.Module.StateMachineTesterModule();
     this.module4        = new StateMachineTester.Module.Web.StateMachineTesterAspNetModule();
     this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
     this.conditionalAppearanceModule1 = new DevExpress.ExpressApp.ConditionalAppearance.ConditionalAppearanceModule();
     this.validationModule1            = new DevExpress.ExpressApp.Validation.ValidationModule();
     this.stateMachineModule1          = new DevExpress.ExpressApp.StateMachine.StateMachineModule();
     this.securityModule1          = new DevExpress.ExpressApp.Security.SecurityModule();
     this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
     this.authenticationStandard1  = new DevExpress.ExpressApp.Security.AuthenticationStandard();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=S" +
                                            "tateMachineTester";
     this.sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     //
     // validationModule1
     //
     this.validationModule1.AllowValidationDetailsAccess = true;
     //
     // stateMachineModule1
     //
     this.stateMachineModule1.StateMachineStorageType = typeof(DevExpress.ExpressApp.StateMachine.Xpo.XpoStateMachine);
     //
     // securityStrategyComplex1
     //
     this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
     this.securityStrategyComplex1.RoleType       = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
     this.securityStrategyComplex1.UserType       = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser);
     //
     // authenticationStandard1
     //
     this.authenticationStandard1.LogonParametersType = typeof(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters);
     //
     // StateMachineTesterAspNetApplication
     //
     this.ApplicationName = "StateMachineTester";
     this.Connection      = this.sqlConnection1;
     this.Modules.Add(this.module1);
     this.Modules.Add(this.module2);
     this.Modules.Add(this.module3);
     this.Modules.Add(this.module4);
     this.Modules.Add(this.conditionalAppearanceModule1);
     this.Modules.Add(this.validationModule1);
     this.Modules.Add(this.stateMachineModule1);
     this.Modules.Add(this.securityModule1);
     this.Security = this.securityStrategyComplex1;
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
예제 #19
0
    protected void btnDel_Click(object sender, EventArgs e)
    {
        CacheHelper.Delete("MODULEVIEW");
        string mkdm = this.hdnModuleCode.Value.ToString();

        if (!SystemModule.DelModule(mkdm))
        {
            this.Page.RegisterStartupScript("warn", "<script language=\"JavaScript\">alert('fsd');</script>");
        }
        this.ShowTaskList();
    }
예제 #20
0
        void InitializeComponent() {
            this.module1 = new DevExpress.ExpressApp.SystemModule.SystemModule();
            this.module2 = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
            this.module3 = new StateMachineTester.Module.StateMachineTesterModule();
            this.module4 = new StateMachineTester.Module.Web.StateMachineTesterAspNetModule();
            this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
            this.conditionalAppearanceModule1 = new DevExpress.ExpressApp.ConditionalAppearance.ConditionalAppearanceModule();
            this.validationModule1 = new DevExpress.ExpressApp.Validation.ValidationModule();
            this.stateMachineModule1 = new DevExpress.ExpressApp.StateMachine.StateMachineModule();
            this.securityModule1 = new DevExpress.ExpressApp.Security.SecurityModule();
            this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
            this.authenticationStandard1 = new DevExpress.ExpressApp.Security.AuthenticationStandard();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // sqlConnection1
            // 
            this.sqlConnection1.ConnectionString = "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=S" +
    "tateMachineTester";
            this.sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // validationModule1
            // 
            this.validationModule1.AllowValidationDetailsAccess = true;
            // 
            // stateMachineModule1
            // 
            this.stateMachineModule1.StateMachineStorageType = typeof(DevExpress.ExpressApp.StateMachine.Xpo.XpoStateMachine);
            // 
            // securityStrategyComplex1
            // 
            this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
            this.securityStrategyComplex1.RoleType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
            this.securityStrategyComplex1.UserType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser);
            // 
            // authenticationStandard1
            // 
            this.authenticationStandard1.LogonParametersType = typeof(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters);
            // 
            // StateMachineTesterAspNetApplication
            // 
            this.ApplicationName = "StateMachineTester";
            this.Connection = this.sqlConnection1;
            this.Modules.Add(this.module1);
            this.Modules.Add(this.module2);
            this.Modules.Add(this.module3);
            this.Modules.Add(this.module4);
            this.Modules.Add(this.conditionalAppearanceModule1);
            this.Modules.Add(this.validationModule1);
            this.Modules.Add(this.stateMachineModule1);
            this.Modules.Add(this.securityModule1);
            this.Security = this.securityStrategyComplex1;
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }
예제 #21
0
 private void InitializeComponent()
 {
     this.module1                  = new DevExpress.ExpressApp.SystemModule.SystemModule();
     this.module2                  = new DevExpress.ExpressApp.Mobile.SystemModule.SystemMobileModule();
     this.module3                  = new EastIPSystemModule();
     this.module4                  = new EastIPSystemMobileModule();
     this.securityModule1          = new DevExpress.ExpressApp.Security.SecurityModule();
     this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
     this.authenticationStandard1  = new DevExpress.ExpressApp.Security.AuthenticationStandard();
     this.objectsModule            = new DevExpress.ExpressApp.Objects.BusinessClassLibraryCustomizationModule();
     this.validationModule         = new DevExpress.ExpressApp.Validation.ValidationModule();
     this.auditTrailModule1        = new DevExpress.ExpressApp.AuditTrail.AuditTrailModule();
     this.dashboardsModule1        = new DevExpress.ExpressApp.Dashboards.DashboardsModule();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // securityStrategyComplex1
     //
     this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
     this.securityStrategyComplex1.RoleType       = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole);
     this.securityStrategyComplex1.UserType       = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser);
     //
     // authenticationStandard1
     //
     this.authenticationStandard1.LogonParametersType = typeof(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters);
     //
     // validationModule
     //
     this.validationModule.AllowValidationDetailsAccess     = true;
     this.validationModule.IgnoreWarningAndInformationRules = false;
     //
     // auditTrailModule1
     //
     this.auditTrailModule1.AuditDataItemPersistentType = typeof(DevExpress.Persistent.BaseImpl.AuditDataItemPersistent);
     //
     // dashboardsModule1
     //
     this.dashboardsModule1.DashboardDataType = typeof(DevExpress.Persistent.BaseImpl.DashboardData);
     //
     // EastIPInternalInvoiceSystemMobileApplication
     //
     this.ApplicationName        = "EastIPInternalInvoiceSystem";
     this.CheckCompatibilityType = DevExpress.ExpressApp.CheckCompatibilityType.DatabaseSchema;
     this.Modules.Add(this.module1);
     this.Modules.Add(this.securityModule1);
     this.Modules.Add(this.module2);
     this.Modules.Add(this.objectsModule);
     this.Modules.Add(this.validationModule);
     this.Modules.Add(this.auditTrailModule1);
     this.Modules.Add(this.dashboardsModule1);
     this.Modules.Add(this.module3);
     this.Modules.Add(this.module4);
     this.Security = this.securityStrategyComplex1;
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
예제 #22
0
        private void FormBaseDuryManager_Load(object sender, EventArgs e)
        {
            // 树控件初始化
            refreshTreeView();
            updateDataGridView(SystemModule.getInctance().getAllSystemModuleInfo());

            if (!m_isManagerMode)
            {
                this.toolStripButtonSave.Visible     = false;
                this.dataGridViewActionList.ReadOnly = true;
            }
        }
예제 #23
0
    public void SetSymbol()
    {
        if (!editModule)
        {
            if (productions.currentProduction != null) //Reflect symbol change on UIModule
            {
                uiModule.GetComponentInChildren <Text>().text =
                    dropdownDictionary[symbolDropdown.value];
            }
            DisablePanels();
            switch (dropdownDictionary[symbolDropdown.value][0])
            {
            case Parametric_Turtle.DRAW:
                currentModule = new LineModule();
                lineBuilder.Init(currentModule as LineModule);
                DrawPanel.gameObject.SetActive(true);
                break;

            case Parametric_Turtle.JOINT_OPEN:
                currentModule = new JointModule();
                jointBuilder.Init(currentModule as JointModule);
                JointPanel.gameObject.SetActive(true);
                break;

            case Parametric_Turtle.OBJECT:
                currentModule = new ObjectModule();
                objectBuilder.Init(currentModule as ObjectModule);
                ObjectPanel.gameObject.SetActive(true);
                break;

            case Parametric_Turtle.ROTATE:
                currentModule = new RotationModule();
                rotationBuilder.Init(currentModule as RotationModule);
                RotationPanel.gameObject.SetActive(true);
                break;

            default:
                currentModule = new SystemModule();
                break;
            }

            SetTerminal();
            growthBuilder.Init(currentModule);
            currentModule.Symbol = dropdownDictionary[symbolDropdown.value][0];
        }
        else
        {
            editModule = false;
        }
    }
예제 #24
0
        void InitializeComponent()
        {
            module1                      = new SystemModule();
            module2                      = new SystemAspNetModule();
            module3                      = new ModelDifferenceTesterModule();
            module4                      = new ModelDifferenceTesterAspNetModule();
            sqlConnection1               = new SqlConnection();
            cloneObjectModule1           = new CloneObjectModule();
            securityModule1              = new SecurityModule();
            _securityStrategyComplex     = new SecurityStrategyComplex();
            _authenticationStandard      = new AuthenticationStandard();
            xpandSecurityModule1         = new XpandSecurityModule();
            modelDifferenceModule1       = new ModelDifferenceModule();
            modelDifferenceAspNetModule1 = new ModelDifferenceAspNetModule();
            ((ISupportInitialize)(this)).BeginInit();
            //
            // sqlConnection1
            //
            sqlConnection1.ConnectionString =
                "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                "odelDifferenceTester";
            sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            //
            // _securityStrategyComplex
            //
            _securityStrategyComplex.Authentication = _authenticationStandard;
            _securityStrategyComplex.UserType       = typeof(SecuritySystemUser);
            _securityStrategyComplex.RoleType       = typeof(SecuritySystemRole);
            //
            // _authenticationStandard
            //

            _authenticationStandard.LogonParametersType = typeof(AuthenticationStandardLogonParameters);
            //
            // ModelDifferenceTesterAspNetApplication
            //
            ApplicationName = "ModelDifferenceTester";
            Connection      = sqlConnection1;
            Modules.Add(module1);
            Modules.Add(module2);
            Modules.Add(module3);
            Modules.Add(cloneObjectModule1);
            Modules.Add(securityModule1);
            Modules.Add(xpandSecurityModule1);
            Modules.Add(modelDifferenceModule1);
            Modules.Add(modelDifferenceAspNetModule1);
            Modules.Add(module4);
            Security = _securityStrategyComplex;
            ((ISupportInitialize)(this)).EndInit();
        }
예제 #25
0
        void InitializeComponent() {
            module1 = new SystemModule();
            module2 = new SystemAspNetModule();
            module3 = new ModelDifferenceTesterModule();
            module4 = new ModelDifferenceTesterAspNetModule();
            sqlConnection1 = new SqlConnection();
            cloneObjectModule1 = new CloneObjectModule();
            securityModule1 = new SecurityModule();
            _securityStrategyComplex = new SecurityStrategyComplex();
            _authenticationStandard = new AuthenticationStandard();
            xpandSecurityModule1 = new XpandSecurityModule();
            modelDifferenceModule1 = new ModelDifferenceModule();
            modelDifferenceAspNetModule1 = new ModelDifferenceAspNetModule();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // sqlConnection1
            // 
            sqlConnection1.ConnectionString =
                "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                "odelDifferenceTester";
            sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // _securityStrategyComplex
            // 
            _securityStrategyComplex.Authentication = _authenticationStandard;
            _securityStrategyComplex.UserType = typeof (SecuritySystemUser);
            _securityStrategyComplex.RoleType = typeof (SecuritySystemRole);
            // 
            // _authenticationStandard
            // 

            _authenticationStandard.LogonParametersType = typeof (AuthenticationStandardLogonParameters);
            // 
            // ModelDifferenceTesterAspNetApplication
            // 
            ApplicationName = "ModelDifferenceTester";
            Connection = sqlConnection1;
            Modules.Add(module1);
            Modules.Add(module2);
            Modules.Add(module3);
            Modules.Add(cloneObjectModule1);
            Modules.Add(securityModule1);
            Modules.Add(xpandSecurityModule1);
            Modules.Add(modelDifferenceModule1);
            Modules.Add(modelDifferenceAspNetModule1);
            Modules.Add(module4);
            Security = _securityStrategyComplex;
            ((ISupportInitialize) (this)).EndInit();
        }
예제 #26
0
        private void deleteUserDutyFromModuleText(string moduleName)
        {
            /* 删除该用户此module对应的所有权限
             * 1、根据moduleText得到moduleID
             * 2、得到ModuleID对应的所有Action的ID
             * 3、根据当前用户ID和acitonID,删除BASE_ACTION_STAFF对应的记录
             */
            int       moduleID = SystemModule.getInctance().getModuleIDFromModuleName(moduleName);
            ArrayList actions  = MainProgram.model.Action.getInctance().getAllActionPkeyFromModuleID(moduleID);

            for (int i = 0; i < actions.Count; i++)
            {
                ActionAndStaff.getInctance().delete(Staff.getInctance().getStaffPkeyFromName(m_userName), (int)actions[i]);
            }
        }
예제 #27
0
 void InitializeComponent()
 {
     this.module1                  = new DevExpress.ExpressApp.SystemModule.SystemModule();
     this.module2                  = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
     this.module3                  = new MapViewTester.Module.MapViewTesterModule();
     this.module4                  = new MapViewTester.Module.Web.MapViewTesterAspNetModule();
     this.sqlConnection1           = new System.Data.SqlClient.SqlConnection();
     this.securityModule1          = new DevExpress.ExpressApp.Security.SecurityModule();
     this.xpandSystemModule1       = new Xpand.ExpressApp.SystemModule.XpandSystemModule();
     this.validationModule1        = new DevExpress.ExpressApp.Validation.ValidationModule();
     this.xpandSystemAspNetModule1 = new Xpand.ExpressApp.Web.SystemModule.XpandSystemAspNetModule();
     this._mapViewWebModule1       = new Xpand.ExpressApp.MapView.Web.MapViewWebModule();
     this.mapViewModule1           = new Xpand.ExpressApp.MapView.MapViewModule();
     this.cloneObjectModule1       = new DevExpress.ExpressApp.CloneObject.CloneObjectModule();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // sqlConnection1
     //
     this.sqlConnection1.ConnectionString = "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                                            "apViewTester";
     this.sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     //
     // securityModule1
     //
     this.securityModule1.UserType = null;
     //
     // validationModule1
     //
     this.validationModule1.AllowValidationDetailsAccess = true;
     //
     // MapViewTesterAspNetApplication
     //
     this.ApplicationName = "MapViewTester";
     this.Connection      = this.sqlConnection1;
     this.Modules.Add(this.module1);
     this.Modules.Add(this.module2);
     this.Modules.Add(this.mapViewModule1);
     this.Modules.Add(this.module3);
     this.Modules.Add(this.securityModule1);
     this.Modules.Add(this.xpandSystemModule1);
     this.Modules.Add(this.validationModule1);
     this.Modules.Add(this.cloneObjectModule1);
     this.Modules.Add(this.xpandSystemAspNetModule1);
     this.Modules.Add(this._mapViewWebModule1);
     this.Modules.Add(this.module4);
     this.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.MapViewTesterAspNetApplication_DatabaseVersionMismatch);
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
예제 #28
0
        //获取模块子成员
        private void GetModuleChildren(ref SystemModule module)
        {
            IList children = new List <SystemModule>();

            SqlHelper.SearchByField("ParentId", module.ModuleId, ref children);
            foreach (var t in children)
            {
                var tmp = t as SystemModule;
                if (module.Children == null)
                {
                    module.Children = new List <SystemModule>();
                }
                module.Children.Add(tmp);
                GetModuleChildren(ref tmp);
            }
        }
예제 #29
0
        internal DefType GetClosestDefType(TypeDesc type)
        {
            if (type.IsArray)
            {
                if (!type.IsArrayTypeWithoutGenericInterfaces())
                {
                    MetadataType arrayShadowType = _arrayOfTType ?? (_arrayOfTType = SystemModule.GetType("System", "Array`1"));
                    return(arrayShadowType.MakeInstantiatedType(((ArrayType)type).ElementType));
                }

                return(GetWellKnownType(WellKnownType.Array));
            }

            Debug.Assert(type is DefType);
            return((DefType)type);
        }
예제 #30
0
        void InitializeComponent()
        {
            _module1            = new SystemModule();
            _module2            = new SystemAspNetModule();
            _module3            = new ModelDifferenceTesterModule();
            _module4            = new ModelDifferenceTesterAspNetModule();
            _sqlConnection1     = new SqlConnection();
            _cloneObjectModule1 = new CloneObjectModule();
            _securityModule1    = new SecurityModule();

            _xpandSecurityModule1         = new XpandSecurityModule();
            _modelDifferenceModule1       = new ModelDifferenceModule();
            _modelDifferenceAspNetModule1 = new ModelDifferenceAspNetModule();
            ((ISupportInitialize)(this)).BeginInit();
            //
            // sqlConnection1
            //
            _sqlConnection1.ConnectionString =
                "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                "odelDifferenceTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            //
            // _securityStrategyComplex
            //

            //
            // _authenticationStandard
            //


            //
            // ModelDifferenceTesterAspNetApplication
            //
            ApplicationName = "ModelDifferenceTester";
            Connection      = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_cloneObjectModule1);
            Modules.Add(_securityModule1);
            Modules.Add(_xpandSecurityModule1);
            Modules.Add(_modelDifferenceModule1);
            Modules.Add(_modelDifferenceAspNetModule1);
            Modules.Add(_module4);
            ((ISupportInitialize)(this)).EndInit();
        }
예제 #31
0
        void InitializeComponent() {
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            _module3 = new StateMachineTesterModule();
            _module4 = new StateMachineTesterAspNetModule();
            _sqlConnection1 = new SqlConnection();
            _conditionalAppearanceModule1 = new DevExpress.ExpressApp.ConditionalAppearance.ConditionalAppearanceModule();
            _validationModule1 = new DevExpress.ExpressApp.Validation.ValidationModule();
            _stateMachineModule1 = new DevExpress.ExpressApp.StateMachine.StateMachineModule();
            _securityModule1 = new DevExpress.ExpressApp.Security.SecurityModule();

            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // sqlConnection1
            // 
            _sqlConnection1.ConnectionString = "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=S" +
    "tateMachineTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // validationModule1
            // 
            _validationModule1.AllowValidationDetailsAccess = true;
            // 
            // stateMachineModule1
            // 
            _stateMachineModule1.StateMachineStorageType = typeof(DevExpress.ExpressApp.StateMachine.Xpo.XpoStateMachine);
            // 
            // securityStrategyComplex1
            // 
            
            // 
            // StateMachineTesterAspNetApplication
            // 
            ApplicationName = "StateMachineTester";
            Connection = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_module4);
            Modules.Add(_conditionalAppearanceModule1);
            Modules.Add(_validationModule1);
            Modules.Add(_stateMachineModule1);
            Modules.Add(_securityModule1);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }
예제 #32
0
        void InitializeComponent()
        {
            _module1        = new SystemModule();
            _module2        = new SystemAspNetModule();
            _module3        = new StateMachineTesterModule();
            _module4        = new StateMachineTesterAspNetModule();
            _sqlConnection1 = new SqlConnection();
            _conditionalAppearanceModule1 = new DevExpress.ExpressApp.ConditionalAppearance.ConditionalAppearanceModule();
            _validationModule1            = new DevExpress.ExpressApp.Validation.ValidationModule();
            _stateMachineModule1          = new DevExpress.ExpressApp.StateMachine.StateMachineModule();
            _securityModule1 = new DevExpress.ExpressApp.Security.SecurityModule();

            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            //
            // sqlConnection1
            //
            _sqlConnection1.ConnectionString = "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=S" +
                                               "tateMachineTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            //
            // validationModule1
            //
            _validationModule1.AllowValidationDetailsAccess = true;
            //
            // stateMachineModule1
            //
            _stateMachineModule1.StateMachineStorageType = typeof(DevExpress.ExpressApp.StateMachine.Xpo.XpoStateMachine);
            //
            // securityStrategyComplex1
            //

            //
            // StateMachineTesterAspNetApplication
            //
            ApplicationName = "StateMachineTester";
            Connection      = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_module4);
            Modules.Add(_conditionalAppearanceModule1);
            Modules.Add(_validationModule1);
            Modules.Add(_stateMachineModule1);
            Modules.Add(_securityModule1);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
        }
예제 #33
0
    private void SetModuleState(string moduleCode)
    {
        DataTable oneModule = SystemModule.GetOneModule(moduleCode);

        if (oneModule.Rows.Count == 1)
        {
            DataRow dataRow = oneModule.Rows[0];
            this.tbxModuleCode.Text     = dataRow["c_mkdm"].ToString();
            this.tbxModuleName.Text     = dataRow["v_mkmc"].ToString();
            this.tbxModuleOrder.Text    = dataRow["i_xh"].ToString();
            this.tbxModulePath.Text     = dataRow["v_cdlj"].ToString();
            this.tbxModuleIcon.Text     = dataRow["v_img"].ToString();
            this.cbBasic.Checked        = Convert.ToBoolean(Convert.ToInt32(dataRow["IsBasic"]));
            this.cbMaintainable.Checked = Convert.ToBoolean(Convert.ToInt32(dataRow["IsMaintainable"]));
            this.TxthelpPath.Text       = dataRow["helpPath"].ToString();
        }
    }
예제 #34
0
    public void AppendModule(SystemModule m)
    {
        SystemModule newMod = m.CopyModule();
        GameObject   newRHS = GameObject.Instantiate(Resources.Load("Prefabs/UI/Module")) as GameObject;

        newRHS.transform.SetParent(panelRHS.transform, false);
        newRHS.transform.SetSiblingIndex(SelectedModule.gameObject.transform.GetSiblingIndex());
        newRHS.GetComponentInChildren <Text>().text = m.Symbol.ToString();

        UIModule uim = newRHS.GetComponent <UIModule>();

        SelectedModule = uim;
        RHS.Insert(SelectedModule.transform.GetSiblingIndex(), uim);
        uim.Production = this;
        uim.Module     = newMod;
        uim.InstantiateUI();
    }
예제 #35
0
        public ActionResult SystemAdd([Bind(Include = "id,organisation_id,parent_id,name,is_module,is_enabled")] SystemModule systemmodule)
        {
            if (ModelState.IsValid && systemmodule.name != null)
            {
                if (systemmodule.is_module == false)
                {
                    systemmodule.parent_id = null;
                }
                db.SystemModules.Add(systemmodule);
                db.SaveChanges();
                return(RedirectToAction("System", "Admin"));
            }

            ViewBag.organisation_id = new SelectList(db.Organisations, "id", "org_name", systemmodule.organisation_id);
            ViewBag.parent_id       = new SelectList(db.SystemModules, "id", "name", systemmodule.parent_id);
            return(View(systemmodule));
        }
예제 #36
0
        void InitializeComponent() {
            module1 = new SystemModule();
            module2 = new SystemAspNetModule();
            module3 = new ModelDifferenceTesterModule();
            module4 = new ModelDifferenceTesterAspNetModule();
            sqlConnection1 = new SqlConnection();
            cloneObjectModule1 = new CloneObjectModule();
            securityModule1 = new SecurityModule();

            securitySimple1 = new SecuritySimple();
            authenticationActiveDirectory1 = new AuthenticationActiveDirectory();
            ((ISupportInitialize)(this)).BeginInit();
            // 
            // sqlConnection1
            // 
            sqlConnection1.ConnectionString =
                "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                "odelDifferenceTester";
            sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // securitySimple1
            // 
            securitySimple1.Authentication = authenticationActiveDirectory1;
            securitySimple1.UserType = typeof(SimpleUser);
            // 
            // authenticationActiveDirectory1
            // 
            authenticationActiveDirectory1.CreateUserAutomatically = true;
            authenticationActiveDirectory1.LogonParametersType = null;
            // 
            // ModelDifferenceTesterAspNetApplication
            // 
            ApplicationName = "ModelDifferenceTester";
            Connection = sqlConnection1;
            Modules.Add(module1);
            Modules.Add(module2);
            Modules.Add(module3);
            Modules.Add(cloneObjectModule1);
            Modules.Add(securityModule1);

            Modules.Add(module4);
            Security = securitySimple1;
            DatabaseVersionMismatch += ModelDifferenceTesterAspNetApplication_DatabaseVersionMismatch;
            ((ISupportInitialize)(this)).EndInit();
        }
예제 #37
0
        private void InitializeComponent(){
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            _module3 = new SystemTesterModule();
            _module4 = new SystemTesterAspNetModule();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // SystemTesterAspNetApplication
            // 
            ApplicationName = "SystemTester";
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_module4);

            DatabaseVersionMismatch += SystemTesterAspNetApplication_DatabaseVersionMismatch;
            ((ISupportInitialize) (this)).EndInit();
        }
예제 #38
0
        private void InitializeComponent() {
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            _module3 = new ModelArtifactStateTesterModule();
            _sqlConnection1 = new SqlConnection();
            _validationModule1 = new ValidationModule();
            _xpandValidationModule1 = new XpandValidationModule();
            _securityModule1 = new SecurityModule();
            _conditionalAppearanceModule1 = new ConditionalAppearanceModule();
            _logicModule1 = new LogicModule();
            _modelArtifactStateModule1 = new ModelArtifactStateModule();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // _sqlConnection1
            // 
            _sqlConnection1.ConnectionString =
                "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                "odelArtifactStateTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // validationModule1
            // 
            _validationModule1.AllowValidationDetailsAccess = true;
            _validationModule1.IgnoreWarningAndInformationRules = false;
            // 
            // ModelArtifactStateTesterAspNetApplication
            // 
            ApplicationName = "ModelArtifactStateTester";
            Connection = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_validationModule1);
            Modules.Add(_xpandValidationModule1);
            Modules.Add(_securityModule1);
            Modules.Add(_conditionalAppearanceModule1);
            Modules.Add(_logicModule1);
            Modules.Add(_modelArtifactStateModule1);
            Modules.Add(_module3);
            ((ISupportInitialize) (this)).EndInit();

        }
예제 #39
0
        void InitializeComponent() {
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            _module3 = new SecurityTesterModule();
            _module4 = new SecurityTesterAspNetModule();
            _sqlConnection1 = new SqlConnection();
            _securityStrategyComplex1 = new SecurityStrategyComplex();
            _authenticationStandard1 = new AnonymousAuthenticationStandard();
            ((ISupportInitialize)(this)).BeginInit();
            // 
            // sqlConnection1
            // 
            _sqlConnection1.ConnectionString =
                @"Integrated Security=SSPI;Pooling=false;Data Source=.\SQLEXPRESS;Initial Catalog=SecurityTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // SecurityTesterAspNetApplication
            // 
            _securityStrategyComplex1.Authentication = _authenticationStandard1;
            _securityStrategyComplex1.RoleType = typeof(XpandRole);
            _securityStrategyComplex1.UserType = typeof(SecuritySystemUser);
            // 
            // authenticationStandard1
            // 
            _authenticationStandard1.LogonParametersType = typeof(AnonymousLogonParameters);
            ApplicationName = "SecurityTester";
            Connection = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_module4);
            Security = _securityStrategyComplex1;

            DatabaseVersionMismatch += SecurityTesterAspNetApplication_DatabaseVersionMismatch;
            ((ISupportInitialize)(this)).EndInit();
        }
예제 #40
0
 void InitializeComponent() {
     module1 = new SystemModule();
     module2 = new SystemAspNetModule();
     module3 = new AuditTrailTesterModule();
     module4 = new AuditTrailTesterAspNetModule();
     sqlConnection1 = new SqlConnection();
     auditTrailModule1 = new AuditTrailModule();
     securityModule1 = new SecurityModule();
     validationModule1 = new ValidationModule();
     conditionalAppearanceModule1 = new ConditionalAppearanceModule();
     logicModule1 = new LogicModule();
     xpandAuditTrailModule1 = new XpandAuditTrailModule();
     securityStrategyComplex1 = new SecurityStrategyComplex();
     authenticationStandard1 = new AuthenticationStandard();
     ((ISupportInitialize) (this)).BeginInit();
     // 
     // sqlConnection1
     // 
     sqlConnection1.ConnectionString =
         "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=A" +
         "uditTrailTester";
     sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     // 
     // auditTrailModule1
     // 
     auditTrailModule1.AuditDataItemPersistentType = typeof (AuditDataItemPersistent);
     // 
     // validationModule1
     // 
     validationModule1.AllowValidationDetailsAccess = true;
     // 
     // securityStrategyComplex1
     // 
     securityStrategyComplex1.Authentication = authenticationStandard1;
     securityStrategyComplex1.RoleType = typeof (XpandRole);
     securityStrategyComplex1.UserType = typeof (SecuritySystemUser);
     // 
     // authenticationStandard1
     // 
     authenticationStandard1.LogonParametersType = typeof (AuthenticationStandardLogonParameters);
     // 
     // AuditTrailTesterAspNetApplication
     // 
     ApplicationName = "AuditTrailTester";
     Connection = sqlConnection1;
     Modules.Add(module1);
     Modules.Add(module2);
     Modules.Add(auditTrailModule1);
     Modules.Add(securityModule1);
     Modules.Add(validationModule1);
     Modules.Add(conditionalAppearanceModule1);
     Modules.Add(logicModule1);
     Modules.Add(xpandAuditTrailModule1);
     Modules.Add(module3);
     Modules.Add(module4);
     Security = securityStrategyComplex1;
     DatabaseVersionMismatch += AuditTrailTesterAspNetApplication_DatabaseVersionMismatch;
     ((ISupportInitialize) (this)).EndInit();
 }
예제 #41
0
        void InitializeComponent()
        {
            this.module1 = new DevExpress.ExpressApp.SystemModule.SystemModule();
            this.module2 = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
            this.module3 = new MapViewTester.Module.MapViewTesterModule();
            this.module4 = new MapViewTester.Module.Web.MapViewTesterAspNetModule();
            this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
            this.securityModule1 = new DevExpress.ExpressApp.Security.SecurityModule();
            this.xpandSystemModule1 = new Xpand.ExpressApp.SystemModule.XpandSystemModule();
            this.validationModule1 = new DevExpress.ExpressApp.Validation.ValidationModule();
            this.xpandSystemAspNetModule1 = new Xpand.ExpressApp.Web.SystemModule.XpandSystemAspNetModule();
            this._mapViewWebModule1 = new Xpand.ExpressApp.MapView.Web.MapViewWebModule();
            this.mapViewModule1 = new Xpand.ExpressApp.MapView.MapViewModule();
            this.cloneObjectModule1 = new DevExpress.ExpressApp.CloneObject.CloneObjectModule();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // sqlConnection1
            // 
            this.sqlConnection1.ConnectionString = "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
    "apViewTester";
            this.sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // securityModule1
            // 
            this.securityModule1.UserType = null;
            // 
            // validationModule1
            // 
            this.validationModule1.AllowValidationDetailsAccess = true;
            // 
            // MapViewTesterAspNetApplication
            // 
            this.ApplicationName = "MapViewTester";
            this.Connection = this.sqlConnection1;
            this.Modules.Add(this.module1);
            this.Modules.Add(this.module2);
            this.Modules.Add(this.mapViewModule1);
            this.Modules.Add(this.module3);
            this.Modules.Add(this.securityModule1);
            this.Modules.Add(this.xpandSystemModule1);
            this.Modules.Add(this.validationModule1);
            this.Modules.Add(this.cloneObjectModule1);
            this.Modules.Add(this.xpandSystemAspNetModule1);
            this.Modules.Add(this._mapViewWebModule1);
            this.Modules.Add(this.module4);
            this.DatabaseVersionMismatch += new System.EventHandler<DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.MapViewTesterAspNetApplication_DatabaseVersionMismatch);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }
예제 #42
0
        private void InitializeComponent(){
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            securityStrategyComplex1 = new SecurityStrategyComplex();
            authenticationStandard1 = new AuthenticationStandard();

            _module4 = new XtraDashboardTesterAspNetModule();
            _sqlConnection1 = new SqlConnection();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // sqlConnection1
            // 
            _sqlConnection1.ConnectionString =
                @"Integrated Security=SSPI;Pooling=false;Data Source=.\SQLEXPRESS;Initial Catalog=XtraDashboardTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
            this.securityStrategyComplex1.RoleType = typeof(XpandRole);
            this.securityStrategyComplex1.UserType = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser);
            // 
            // authenticationStandard1
            // 
            this.authenticationStandard1.LogonParametersType = typeof(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters);
            // 
            // XtraDashboardTesterAspNetApplication
            // 
            ApplicationName = "XtraDashboardTester";
            Connection = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);

            Modules.Add(_module4);
            this.Security = this.securityStrategyComplex1;

            DatabaseVersionMismatch += XtraDashboardTesterAspNetApplication_DatabaseVersionMismatch;
            ((ISupportInitialize) (this)).EndInit();
        }
예제 #43
0
        void InitializeComponent() {
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            _module3 = new ModelDifferenceTesterModule();
            _module4 = new ModelDifferenceTesterAspNetModule();
            _sqlConnection1 = new SqlConnection();
            _cloneObjectModule1 = new CloneObjectModule();
            _securityModule1 = new SecurityModule();
            
            _xpandSecurityModule1 = new XpandSecurityModule();
            _modelDifferenceModule1 = new ModelDifferenceModule();
            _modelDifferenceAspNetModule1 = new ModelDifferenceAspNetModule();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // sqlConnection1
            // 
            _sqlConnection1.ConnectionString =
                "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                "odelDifferenceTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // _securityStrategyComplex
            // 
            
            // 
            // _authenticationStandard
            // 

            
            // 
            // ModelDifferenceTesterAspNetApplication
            // 
            ApplicationName = "ModelDifferenceTester";
            Connection = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module3);
            Modules.Add(_cloneObjectModule1);
            Modules.Add(_securityModule1);
            Modules.Add(_xpandSecurityModule1);
            Modules.Add(_modelDifferenceModule1);
            Modules.Add(_modelDifferenceAspNetModule1);
            Modules.Add(_module4);
            ((ISupportInitialize) (this)).EndInit();
        }
예제 #44
0
    void Awake()
    {
        gameObject.AddComponent("PositionModule");
        Position_Script = gameObject.GetComponent<PositionModule>();
        gameObject.AddComponent("SystemModule");//添加脚本,姓名--刘旋,时间--2013-4-24
        System_Script=gameObject.GetComponent<SystemModule>();
        gameObject.AddComponent("MessageModule");
        Message_Script=gameObject.GetComponent<MessageModule>();
        gameObject.AddComponent("SoftkeyModule");
        Softkey_Script = gameObject.GetComponent<SoftkeyModule>();
        gameObject.AddComponent("ProgramModule");
        Program_Script = gameObject.GetComponent<ProgramModule>();
        gameObject.AddComponent("OffsetSettingModule");
        Offset_Script = gameObject.GetComponent<OffsetSettingModule>();
        gameObject.AddComponent("MDIInputModule");
        MDIInput_Script = gameObject.GetComponent<MDIInputModule>();
        gameObject.AddComponent("MDIFunctionModule");
        MDIFunction_Script = gameObject.GetComponent<MDIFunctionModule>();
        gameObject.AddComponent("MDIEditModule");
        MDIEdit_Script = gameObject.GetComponent<MDIEditModule>();
        gameObject.AddComponent("ModeSelectModule");
        ModeSelect_Script = gameObject.GetComponent<ModeSelectModule>();
        gameObject.AddComponent("FeedrateModule");
        Feedrate_Script = gameObject.GetComponent<FeedrateModule>();
        gameObject.AddComponent("MachineFunctionModule");
        MachineFunction_Script = gameObject.GetComponent<MachineFunctionModule>();
        gameObject.AddComponent("AuxiliaryFunctionModule");
        AuxiliaryFunction_Script = gameObject.GetComponent<AuxiliaryFunctionModule>();
        gameObject.AddComponent("AuxiliaryMoveModule");
        AuxiliaryMove_Script = gameObject.GetComponent<AuxiliaryMoveModule>();
        GameObject.Find("move_control").AddComponent("MoveControl");
        MoveControl_script = GameObject.Find("move_control").GetComponent<MoveControl>();
        GameObject.Find("spindle_control").AddComponent("SpindleControl");
        SpindleControl_script = GameObject.Find("spindle_control").GetComponent<SpindleControl>();
        gameObject.AddComponent("CooSystem");
        gameObject.AddComponent("AutoMove");
        gameObject.AddComponent("CompileNC");
        CooSystem_script = gameObject.GetComponent<CooSystem>();
        CompileNC_script = gameObject.GetComponent<CompileNC>();

        t2d_lock = (Texture2D)Resources.Load("Texture_Panel/Button/lock");
        t2d_unlock = (Texture2D)Resources.Load("Texture_Panel/Button/unlock");
        t2d_alarm = (Texture2D)Resources.Load("Texture_Panel/Button/alarm");
        t2d_zero = (Texture2D)Resources.Load("Texture_Panel/Button/zero");
        t2d_toolnum = (Texture2D)Resources.Load("Texture_Panel/Button/toolnum");
        t2d_em_u = (Texture2D)Resources.Load("Texture_Panel/Button/em_u");
        t2d_em_d = (Texture2D)Resources.Load("Texture_Panel/Button/em_d");
        t2d_Protect = t2d_lock;
        t2d_Emergency = t2d_em_u;

        t2d_ModeSelectEDIT = (Texture2D)Resources.Load("Texture_Panel/Button/mode_edit");
        t2d_ModeSelectDNC = (Texture2D)Resources.Load("Texture_Panel/Button/mode_dnc");
        t2d_ModeSelectAUTO = (Texture2D)Resources.Load("Texture_Panel/Button/mode_auto");
        t2d_ModeSelectMDI = (Texture2D)Resources.Load("Texture_Panel/Button/mode_mdi");
        t2d_ModeSelectHANDLE = (Texture2D)Resources.Load("Texture_Panel/Button/mode_handle");
        t2d_ModeSelectJOG = (Texture2D)Resources.Load("Texture_Panel/Button/mode_jog");
        t2d_ModeSelectREF = (Texture2D)Resources.Load("Texture_Panel/Button/mode_ref");
        if(PlayerPrefs.HasKey("ModeSelect"))
            mode_type = PlayerPrefs.GetInt("ModeSelect");
        else
        {
            PlayerPrefs.SetInt("ModeSelect", 1);
            mode_type = 1;
        }
        switch(mode_type)
        {
        case 1:
            t2d_ModeSelect = t2d_ModeSelectEDIT;
            MenuDisplay = "编辑";
            ProgEDIT = true;
            ProgDNC = false;
            ProgAUTO = false;
            ProgMDI = false;
            ProgHAN = false;
            ProgJOG = false;
            ProgREF = false;
            break;
        case 2:
            t2d_ModeSelect = t2d_ModeSelectDNC;
            MenuDisplay = "DNC";
            ProgEDIT = false;
            ProgDNC = true;
            ProgAUTO = false;
            ProgMDI = false;
            ProgHAN = false;
            ProgJOG = false;
            ProgREF = false;
            break;
        case 3:
            t2d_ModeSelect = t2d_ModeSelectAUTO;
            MenuDisplay = "MEM";
            ProgEDIT = false;
            ProgDNC = false;
            ProgAUTO = true;
            ProgMDI = false;
            ProgHAN = false;
            ProgJOG = false;
            ProgREF = false;
            break;
        case 4:
            t2d_ModeSelect = t2d_ModeSelectMDI;
            MenuDisplay = "MDI";
            ProgEDIT = false;
            ProgDNC = false;
            ProgAUTO = false;
            ProgMDI = true;
            ProgHAN = false;
            ProgJOG = false;
            ProgREF = false;
            break;
        case 5:
            t2d_ModeSelect = t2d_ModeSelectHANDLE;
            MenuDisplay = "HAN";
            ProgEDIT = false;
            ProgDNC = false;
            ProgAUTO = false;
            ProgMDI = false;
            ProgHAN = true;
            ProgJOG = false;
            ProgREF = false;
            break;
        case 6:
            t2d_ModeSelect = t2d_ModeSelectJOG;
            MenuDisplay = "JOG";
            MoveControl_script.speed_to_move = 0.16667F;//内容--JOG模式下,慢常速为10m/min=(10/60)m/s,因此spee-to-move=10/60,姓名--刘旋,时间--2013-4-8
            ProgEDIT = false;
            ProgDNC = false;
            ProgAUTO = false;
            ProgMDI = false;
            ProgHAN = false;
            ProgJOG = true;
            ProgREF = false;
            break;
        case 7:
            t2d_ModeSelect = t2d_ModeSelectREF;
            MenuDisplay = "REF";
            MoveControl_script.speed_to_move = 0.6F;//内容--归零操作的实际速度为5m/min=(5/60)m/s,而实际速度RunningSpeed=speed—to-move*move-rate,因此speed-to-move应设为5/60,姓名--刘旋,时间--2013-4-8
            ProgEDIT = false;
            ProgDNC = false;
            ProgAUTO = false;
            ProgMDI = false;
            ProgHAN = false;
            ProgJOG = false;
            ProgREF = true;
            break;
        }

        t2d_FeedRate_0 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate1");
        t2d_FeedRate_10 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate2");
        t2d_FeedRate_20 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate3");
        t2d_FeedRate_30 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate4");
        t2d_FeedRate_40 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate5");
        t2d_FeedRate_50 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate6");
        t2d_FeedRate_60 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate7");
        t2d_FeedRate_70 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate8");
        t2d_FeedRate_80 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate9");
        t2d_FeedRate_90 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate10");
        t2d_FeedRate_100 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate11");
        t2d_FeedRate_110 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate12");
        t2d_FeedRate_120 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate13");
        t2d_FeedRate_130 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate14");
        t2d_FeedRate_140 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate15");
        t2d_FeedRate_150 = (Texture2D)Resources.Load("Texture_Panel/Button/feedrate16");
        if(PlayerPrefs.HasKey("FeedrateSelect"))
            feedrate_type = PlayerPrefs.GetInt("FeedrateSelect");
        else
        {
            PlayerPrefs.SetInt("FeedrateSelect", 11);
            feedrate_type = 11;
        }
        switch(feedrate_type)
        {
        case 1:
            t2d_feedrate = t2d_FeedRate_0;
            move_rate = 0f;
            break;
        case 2:
            t2d_feedrate = t2d_FeedRate_10;
            move_rate = 0.1f;
            break;
        case 3:
            t2d_feedrate = t2d_FeedRate_20;
            move_rate = 0.2f;
            break;
        case 4:
            t2d_feedrate = t2d_FeedRate_30;
            move_rate = 0.3f;
            break;
        case 5:
            t2d_feedrate = t2d_FeedRate_40;
            move_rate = 0.4f;
            break;
        case 6:
            t2d_feedrate = t2d_FeedRate_50;
            move_rate = 0.5f;
            break;
        case 7:
            t2d_feedrate = t2d_FeedRate_60;
            move_rate = 0.6f;
            break;
        case 8:
            t2d_feedrate = t2d_FeedRate_70;
            move_rate = 0.7f;
            break;
        case 9:
            t2d_feedrate = t2d_FeedRate_80;
            move_rate = 0.8f;
            break;
        case 10:
            t2d_feedrate = t2d_FeedRate_90;
            move_rate = 0.9f;
            break;
        case 11:
            t2d_feedrate = t2d_FeedRate_100;
            move_rate = 1.0f;
            break;
        case 12:
            t2d_feedrate = t2d_FeedRate_110;
            move_rate = 1.1f;
            break;
        case 13:
            t2d_feedrate = t2d_FeedRate_120;
            move_rate = 1.2f;
            break;
        case 14:
            t2d_feedrate = t2d_FeedRate_130;
            move_rate = 1.3f;
            break;
        case 15:
            t2d_feedrate = t2d_FeedRate_140;
            move_rate = 1.4f;
            break;
        case 16:
            t2d_feedrate = t2d_FeedRate_150;
            move_rate = 1.5f;
            break;
        }
        MoveControl_script.move_rate = move_rate;

        t2d_NCPower_on_u = (Texture2D)Resources.Load("Texture_Panel/Button/NCPower_on_u");
        t2d_NCPower_on_d = (Texture2D)Resources.Load("Texture_Panel/Button/NCPower_on_d");
        t2d_NCPower_off_u = (Texture2D)Resources.Load("Texture_Panel/Button/NCPower_off_u");
        t2d_NCPower_off_d = (Texture2D)Resources.Load("Texture_Panel/Button/NCPower_off_d");
        sty_NCPowerOn.normal.background = t2d_NCPower_on_u;
        sty_NCPowerOn.active.background = t2d_NCPower_on_d;
        sty_NCPowerOff.normal.background = t2d_NCPower_off_u;
        sty_NCPowerOff.active.background = t2d_NCPower_off_d;

        t2d_spCW_off_d = (Texture2D)Resources.Load("Texture_Panel/Button/spCW_off_d");
        t2d_spCW_off_u = (Texture2D)Resources.Load("Texture_Panel/Button/spCW_off_u");
        t2d_spCW_on_d = (Texture2D)Resources.Load("Texture_Panel/Button/spCW_on_d");
        t2d_spCW_on_u = (Texture2D)Resources.Load("Texture_Panel/Button/spCW_on_u");
        sty_ButtonCW.normal.background = t2d_spCW_off_u;
        sty_ButtonCW.active.background = t2d_spCW_off_d;

        t2d_spCCW_on_u = (Texture2D)Resources.Load("Texture_Panel/Button/spCCW_on_u");
        t2d_spCCW_on_d = (Texture2D)Resources.Load("Texture_Panel/Button/spCCW_on_d");
        t2d_spCCW_off_u = (Texture2D)Resources.Load("Texture_Panel/Button/spCCW_off_u");
        t2d_spCCW_off_d = (Texture2D)Resources.Load("Texture_Panel/Button/spCCW_off_d");
        sty_ButtonCCW.normal.background = t2d_spCCW_off_u;
        sty_ButtonCCW.active.background = t2d_spCCW_off_d;

        t2d_spStop_on_u = (Texture2D)Resources.Load("Texture_Panel/Button/spStop_on_u");
        t2d_spStop_on_d = (Texture2D)Resources.Load("Texture_Panel/Button/spStop_on_d");
        t2d_spStop_off_u = (Texture2D)Resources.Load("Texture_Panel/Button/spStop_off_u");
        t2d_spStop_off_d = (Texture2D)Resources.Load("Texture_Panel/Button/spStop_off_d");
        sty_ButtonSTOP.normal.background = t2d_spStop_on_u;
        sty_ButtonSTOP.active.background = t2d_spStop_on_d;

        t2d_rapid_on_u = (Texture2D)Resources.Load("Texture_Panel/Button/rapid_on_u");
        t2d_rapid_on_d = (Texture2D)Resources.Load("Texture_Panel/Button/rapid_on_d");
        t2d_rapid_off_u = (Texture2D)Resources.Load("Texture_Panel/Button/rapid_off_u");
        t2d_rapid_off_d = (Texture2D)Resources.Load("Texture_Panel/Button/rapid_off_d");
        sty_ButtonRapid.normal.background = t2d_rapid_off_u;
        sty_ButtonRapid.active.background = t2d_rapid_off_d;

        //内容--为变量赋值,用于实现JOG模式下F0,25%、50%、100%四个按钮的显示
        //姓名--刘旋,时间--2013-4-8
        t2d_f0_on_u=(Texture2D)Resources.Load("Texture_Panel/Button/f0_on_u");
        t2d_f0_on_d=(Texture2D)Resources.Load("Texture_Panel/Button/f0_on_d");
        t2d_f0_off_u=(Texture2D)Resources.Load("Texture_Panel/Button/f0_off_u");
        t2d_f0_off_d=(Texture2D)Resources.Load("Texture_Panel/Button/f0_off_d");
        sty_ButtonF0.normal.background=t2d_f0_off_u;
        sty_ButtonF0.active.background=t2d_f0_off_d;

        t2d_f25_on_u=(Texture2D)Resources.Load("Texture_Panel/Button/f25_on_u");
        t2d_f25_on_d=(Texture2D)Resources.Load("Texture_Panel/Button/f25_on_d");
        t2d_f25_off_u=(Texture2D)Resources.Load("Texture_Panel/Button/f25_off_u");
        t2d_f25_off_d=(Texture2D)Resources.Load("Texture_Panel/Button/f25_off_d");
        sty_ButtonF25.normal.background=t2d_f25_off_u;
        sty_ButtonF25.active.background=t2d_f25_off_d;

        t2d_f50_on_u=(Texture2D)Resources.Load("Texture_Panel/Button/f50_on_u");
        t2d_f50_on_d=(Texture2D)Resources.Load("Texture_Panel/Button/f50_on_d");
        t2d_f50_off_u=(Texture2D)Resources.Load("Texture_Panel/Button/f50_off_u");
        t2d_f50_off_d=(Texture2D)Resources.Load("Texture_Panel/Button/f50_off_d");
        sty_ButtonF50.normal.background=t2d_f50_off_u;
        sty_ButtonF50.active.background=t2d_f50_off_d;

        t2d_f100_on_u=(Texture2D)Resources.Load("Texture_Panel/Button/f100_on_u");
        t2d_f100_on_d=(Texture2D)Resources.Load("Texture_Panel/Button/f100_on_d");
        t2d_f100_off_u=(Texture2D)Resources.Load("Texture_Panel/Button/f100_off_u");
        t2d_f100_off_d=(Texture2D)Resources.Load("Texture_Panel/Button/f100_off_d");
        sty_ButtonF100.normal.background=t2d_f100_off_u;
        sty_ButtonF100.active.background=t2d_f100_off_d;//增加内容到此  2013-4-8

        sty_ButtonYN.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/yminus_off_u");
        sty_ButtonYN.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/yminus_on_d");

        sty_ButtonYP.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/yplus_off_u");
        sty_ButtonYP.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/yplus_on_d");

        sty_ButtonZP.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/zplus_off_u");
        sty_ButtonZP.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/zplus_on_d");

        sty_ButtonZN.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/zminus_off_u");
        sty_ButtonZN.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/zminus_on_d");

        sty_ButtonXP.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/xplus_off_u");
        sty_ButtonXP.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/xplus_on_d");

        sty_ButtonXN.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/xminus_off_u");
        sty_ButtonXN.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/xminus_on_d");

        sty_Button4P.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/4plus_off_u");
        sty_Button4P.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/4plus_on_d");

        sty_Button4N.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/4minus_off_u");
        sty_Button4N.active.background = (Texture2D)Resources.Load("Texture_Panel/Button/4minus_on_d");

        sty_ProgEDITWindowO.font = (Font)Resources.Load("font/STSONG");
        sty_ProgEDITWindowO.fontSize = 16;
        sty_ProgEDITWindowO.normal.textColor = Color.white;

        sty_Title.font = (Font)Resources.Load("font/digifaw");
        sty_Title.fontSize = 15;

        sty_TitleLetter.font = (Font)Resources.Load("font/STSONG");
        sty_TitleLetter.fontSize = 17;

        sty_BigXYZ.font = (Font)Resources.Load("font/LCD");
        sty_BigXYZ.fontSize = 45;

        sty_SmallNum.font = (Font)Resources.Load("font/monoMMM_5");
        sty_SmallNum.fontSize = 14;

        sty_ProgModeName.font = (Font)Resources.Load("font/times");
        sty_ProgModeName.fontSize = 14;

        sty_Star.fontSize = 22;

        sty_Alarm.font = (Font)Resources.Load("font/times");
        sty_Alarm.fontSize = 12;
        sty_Alarm.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/red");
        sty_Alarm.normal.textColor = Color.white;

        sty_BottomChooseMenu.font = (Font)Resources.Load("font/monoMMM_5");
        //sty_BottomChooseMenu.font = (Font)Resources.Load("font/times");
        sty_BottomChooseMenu.fontSize = 14;

        sty_ProgEditProgNum.font = (Font)Resources.Load("font/monoMMM_5");
        sty_ProgEditProgNum.fontSize = 15;
        sty_ProgEditProgNum.normal.textColor = Color.white;

        sty_PosSmallWord.font = (Font)Resources.Load("font/simfang");
        sty_PosSmallWord.fontSize = 15;

        sty_SmallXYZ.font = (Font)Resources.Load("font/times");
        sty_SmallXYZ.fontSize = 17;

        sty_ScreenCover.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/StartScreen");

        sty_ProgEDITWindowFG.font = (Font)Resources.Load("font/simfang");
        sty_ProgEDITWindowFG.fontSize = 15;
        sty_ProgEDITWindowFG.normal.textColor = Color.white;

        sty_BottomAST.font = (Font)Resources.Load("font/times");
        sty_BottomAST.fontSize = 15;
        //sty_BottomAST.normal.textColor = Color.cyan;

        sty_MostWords.font = (Font)Resources.Load("font/simfang");
        sty_MostWords.fontSize = 15;
        //sty_MostWords.normal.textColor = Color.cyan;

        //sty_Code.font = (Font)Resources.Load("font/dutch");
        sty_Code.fontSize = 17;
        sty_Code.fontStyle = FontStyle.Bold;

        sty_ModeCode.fontSize=15;
        sty_ModeCode.fontStyle=FontStyle.Bold;

        //内容--sty-Mode赋值为蓝色
        //姓名--刘旋,时间--2013-3-29
        sty_Mode.fontSize=15;
        sty_Mode.fontStyle=FontStyle.Bold;
        sty_Mode.normal.textColor=Color.blue;

        sty_ProgEDITListWindowNum.font = (Font)Resources.Load("font/monoMMM_5");
        sty_ProgEDITListWindowNum.fontSize = 13;

        sty_Cursor.font = (Font)Resources.Load("font/times");
        sty_Cursor.fontSize = 15;

        sty_Warning.fontSize = 14;
        sty_Warning.normal.textColor = Color.red;

        sty_ScreenBackGround.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/ScreenBackground");

        sty_TopLabel.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/toplabel");

        sty_MessAlarm.font=(Font)Resources.Load("font/simfang");
        sty_MessAlarm.normal.textColor=Color.red;
        sty_MessAlarm.fontSize=13;

        sty_MessRecordID.font=(Font)Resources.Load("font/simfang");
        sty_MessRecordID.normal.textColor=Color.blue;
        sty_MessRecordID.fontSize=13;

        sty_MessRecordTime.font=(Font)Resources.Load("font/simfang");
        sty_MessRecordTime.fontSize=14;

        sty_MessRecordInfo.font=(Font)Resources.Load("font/simfang");
        sty_MessRecordInfo.fontSize=15;

        sty_SysID.font=(Font)Resources.Load("font/monoMMM_5");
        sty_SysID.fontSize=13;

        sty_SysInfo.font=(Font)Resources.Load("font/simfang");
        sty_SysInfo.fontSize=15;
        sty_SysInfo.normal.textColor=Color.blue;

        t2d_BottomButton_u = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_u");
        t2d_BottomButton_d = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_d");

        sty_BottomButtonSmallest.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_smallest");
        sty_BottomButton_1.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_d");
        sty_BottomButton_2.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_u");
        sty_BottomButton_3.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_u");
        sty_BottomButton_4.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_u");
        sty_BottomButton_5.normal.background = (Texture2D)Resources.Load("Texture_Panel/Button/bottombutton_u");

        sty_BottomLabel_1.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/bottomLabel01");
        sty_BottomLabel_2.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/bottomLabel02");
        sty_BottomLabel_3.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/bottomLabel03");
        sty_BottomLabel_4.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/bottomLabel04");

        sty_ClockStyle.fontSize = 14;

        sty_EDITLabel.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EDITLabel");
        sty_EDITLabelWindow.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditWindow");
        sty_EDITLabelBar_1.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditBar01");
        sty_EDITLabelBar_2.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditBar02");
        sty_EDITLabelBar_3.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditBar03");
        sty_ProgSharedWindow.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/ProgSharedWindow");

        sty_EDITCursor.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditCursor");

        sty_EDITTextField.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditCursor");
        sty_EDITTextField.normal.textColor = Color.yellow;
        sty_EDITTextField.fontSize = 17;
        sty_EDITTextField.fontStyle = FontStyle.Bold;

        sty_EDITList.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditList");

        sty_InputTextField.font = (Font)Resources.Load("font/times");
        sty_InputTextField.fontSize = 15;

        sty_OffSet_Coo.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/offset_coo");
        width = 670F;
        height = 650F;
        left = -700f;
        PanelWindowRect = new Rect(left, 30f, width, height);
        EDITText.enabled = false;
        EDITText.font = sty_Code.font;
        EDITText.fontSize = sty_Code.fontSize;
        //EDITText.fontStyle=FontStyle.Bold;
        EDITText.text = "";
        ProgEDITCusorPos = 57f;
        CursorText.enabled = false;
        CursorText.font = sty_Cursor.font;
        CursorText.fontSize = sty_Cursor.fontSize;

        coo_setting_cursor_x = 131f;
        coo_setting_cursor_y = 120f;
        coo_setting_1 = 1;
        coo_setting_2 = 1;

        sty_SettingsBG.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/SettingsBG");

        //设定界面修改---陈振华---03.11
        sty_OffSet_Coo_mini.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/offset_coo_mini");
        sty_OffSet_Coo_mid.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/offset_coo_mid");
        //设定界面修改---陈振华---03.11

        sty_EditListTop.normal.background = (Texture2D)Resources.Load("Texture_Panel/Label/EditListTop");
        OffSetTool = true;
        OffSetSetting = false;
        OffSetCoo = false;

        //刀偏界面完善---张振华---03.30
        sty_MostWords_ToolOffSet.font = (Font)Resources.Load("font/simfang");
        sty_MostWords_ToolOffSet.fontSize = 13;
        ToolOffSetPage_num = 0;    //页面数
        number = 0;                            //序号
        tool_setting = 1;                     //黄色背景序号
        tool_setting_cursor_y = 81.5f;
        tool_setting_cursor_w = 91.5f;
        //刀偏界面完善---张振华---03.30
    }