Exemplo n.º 1
0
        public Boolean IsClose(Type ownerType)
        {
            if (this.Status == AppInstallerStatus.Stop.Id)
            {
                return(true);
            }

            if (this.Status == AppInstallerStatus.Run.Id)   // 默认状态
            {
                return(!(this.CatId == AppCategory.General || AppCategory.GetByCatId(this.CatId).TypeFullName.Equals(ownerType.FullName)));
            }

            // 自定义
            return(AppMemberShip.IsAppStop(this.Id, ownerType));
        }
Exemplo n.º 2
0
        private void addAppMemberShip(AppInstaller installer, string postValues)
        {
            // 先删掉已有的
            clearAppMemberShip(installer);

            // 增加现在的
            String[] arrValues = postValues.Split(',');
            foreach (String val in arrValues)
            {
                if (strUtil.IsNullOrEmpty(val))
                {
                    continue;
                }
                AppMemberShip am = new AppMemberShip();
                am.AppInstallerId = installer.Id;
                am.MemberTypeName = val.Trim();
                am.insert();
            }
        }
Exemplo n.º 3
0
        private void addAppMemberShip( AppInstaller installer, string postValues )
        {
            // 先删掉已有的
            clearAppMemberShip( installer );

            // 增加现在的
            String[] arrValues = postValues.Split( ',' );
            foreach (String val in arrValues) {

                if (strUtil.IsNullOrEmpty( val )) continue;
                AppMemberShip am = new AppMemberShip();
                am.AppInstallerId = installer.Id;
                am.MemberTypeName = val.Trim();
                am.insert();
            }
        }