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)); }
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(); } }
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(); } }