Esempio n. 1
0
        public ActionResult Js()
        {
            string js = EnumToJsonHelper.GetJs();

            js += EnumToJsonHelper.GetMenuObject();
            return(Content(js));
        }
Esempio n. 2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);



            //加载缓存修改文
            ResourceManager.LoadCache();
            //注册枚举值
            EnumToJsonHelper.Reg(typeof(EAudite),
                                 typeof(EBadType),
                                 typeof(ECusType),
                                 typeof(EInType),
                                 typeof(EEquipmentStatus),
                                 typeof(EIsDelete),
                                 typeof(ELocalType),
                                 typeof(EMoveType),
                                 typeof(EOutType),
                                 typeof(EProductType),
                                 typeof(EReturnStatus),
                                 typeof(EStorageType),
                                 typeof(EOpType),
                                 typeof(ECheckType),
                                 typeof(EReturnType),
                                 typeof(EChange),
                                 typeof(EOrderStatus),
                                 typeof(EOrderType),
                                 typeof(ESupType),
                                 typeof(EDataSourceType),
                                 typeof(EReportType),
                                 typeof(EElementType),
                                 typeof(ESequence),
                                 typeof(EUnit),
                                 typeof(EBool));

            SetVersion();

            //初始化规则
            SequenceProvider sequenceProvider = new SequenceProvider();

            sequenceProvider.Init();
        }
Esempio n. 3
0
 /// <summary>
 /// 注册枚举值
 /// </summary>
 private void RegEnum()
 {
     EnumToJsonHelper.Reg(typeof(EAudite),
                          typeof(EBadType),
                          typeof(ECusType),
                          typeof(EInType),
                          typeof(EEquipmentStatus),
                          typeof(EIsDelete),
                          typeof(ELocalType),
                          typeof(EMoveType),
                          typeof(EOutType),
                          typeof(EProductType),
                          typeof(EReturnStatus),
                          typeof(EStorageType),
                          typeof(EOpType),
                          typeof(ECheckType),
                          typeof(EReturnType),
                          typeof(EChange),
                          typeof(EOrderStatus),
                          typeof(EOrderType),
                          typeof(ESupType),
                          typeof(EDataSourceType),
                          typeof(EReportType),
                          typeof(EElementType),
                          typeof(ESequence),
                          typeof(EFinanceStatus),
                          typeof(EPayType),
                          typeof(EFinanceType),
                          typeof(EPurchaseType),
                          typeof(EResourceType),
                          typeof(EPurchaseStatus),
                          typeof(EProductPackage),
                          typeof(EAllocateType),
                          typeof(ESaleReturnStatus),
                          typeof(EPurchaseReturnStatus),
                          typeof(EBool));
 }