本文整理汇总了C#中CmsEquipmentDatabase.CmsWebService.Issue类的典型用法代码示例。如果您正苦于以下问题:C# Issue类的具体用法?C# Issue怎么用?C# Issue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Issue类属于CmsEquipmentDatabase.CmsWebService命名空间,在下文中一共展示了Issue类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: IssueTrackingControl
public IssueTrackingControl(Issue issue)
{
// Required to initialize variables
InitializeComponent();
mIssue = issue;
ViewModel = new IssueTrackingViewModel(mIssue) {View = this};
ViewModel.DataLoaded += () =>
{
DataContext = ViewModel;
if (ControlLoaded != null)
{
ControlLoaded();
}
Loaded += (s, a) =>
{
ViewModel.RaisePropertyChanged("Ranking");
Utils.ResetOriginalValues(this);
Utils.SetUpChangeEvents(this, EventAggregator, mIssue);
};
};
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:25,代码来源:IssueTrackingControl.xaml.cs
示例2: CategoriesPicker
public CategoriesPicker(Issue issue)
{
InitializeComponent();
mCategoryPickerModel = new CategoryPickerModel(issue);
mCategoryPickerModel.View = this;
DataContext = mCategoryPickerModel;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:7,代码来源:CategoriesPicker.xaml.cs
示例3: IssueFilesViewModel
public IssueFilesViewModel(Issue issue)
{
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
cmsWebServiceClient.GetAttachmentTypesCompleted += (s, e) =>
{
mAttachmentTypes = e.Result;
cmsWebServiceClient.GetIssueFilesCompleted += (s1, e1) =>
{
mIssue.IssueFiles.Clear();
foreach (IssueFile attachment in e1.Result)
{
attachment.Issue = mIssue;//this brings i the distribution list we need to set padlock.
attachment.AttachmentTypes = mAttachmentTypes;
mIssue.IssueFiles.Add(attachment);
}
if (DataLoaded != null)
{
DataLoaded();
}
RaisePropertyChanged("Attachments");
};
cmsWebServiceClient.GetIssueFilesAsync(mIssue.Id);
};
cmsWebServiceClient.GetAttachmentTypesAsync();
AddButton = new DelegateCommand<object>(AddButtonHandler, CanAddHandler);
DeleteButton = new DelegateCommand<object>(DeleteButtonHandler, CanDeleteHandler);
ExportButton = new DelegateCommand<object>(ExportButtonHandler, x => true);
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:35,代码来源:IssueFilesViewModel.cs
示例4: IssueControlViewModel
public IssueControlViewModel(Issue issue, IssueControl view)
{
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
View = view;
mOriginalStatusId = mIssue.IssueStatusId;
BuildClassificationsListBasedOnSelectedIssueType();
GetIssueSubTypes();
CategoriesPickerButton = new DelegateCommand<object>(CategoriesPickerButtonHandler, CanClickCategoriesButtonHandler);
PromptCategoriesPickerButton = new DelegateCommand<object>(PromptCategoriesPickerButtonHandler, CanClickCategoriesButtonHandler);
AreaButtonClick = new DelegateCommand<object>(AreasPickerButtonHandler, CanClickAreasButtonHandler);
KeyStakeholdersButtonClick = new DelegateCommand<object>(KeyStakeholdersPickerButtonHandler, CanClickKeyStakeholdersButtonHandler);
StartDateCommand = new DelegateCommand<object>(StartButtonButtonHandler, CanClickStartButtonCommand);
EndDateCommand = new DelegateCommand<object>(EndButtonButtonHandler, CanClickEndButtonCommand);
GetAvailableStatuses(true);
mIssueCategories = new ObservableCollection<IssueCategory>(CMS.Cache.IssueCategories);
mAssignedToUsers = new List<QuickUser>(CMS.Cache.ActiveUsers);
mProjectSupervisors = new List<QuickUser>(CMS.Cache.ActiveUsers);
//Add inactive users to the collection, if we don't it will throw javascript exception with GeneralPosition '-1,1' ...
Utils.GetAndAddInactiverUserToList(AssignedToUsers, mIssue.CurrentlyAssignedToId);
//Add inactive users to the collection, if we don't it will throw javascript exception with GeneralPosition '-1,1' ...
Utils.GetAndAddInactiverUserToList(ProjectSupervisors, mIssue.ProjectSupervisorId);
mStatuses = new List<IssueStatus>();
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:31,代码来源:IssueControlViewModel.cs
示例5: IssueSystemReferencesViewModel
public IssueSystemReferencesViewModel(Issue issue)
{
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
var getSystemReferencesTask = DatabaseLoader.GetSystemReferences(mIssue.Id);
List<Task> tasks = new List<Task> {getSystemReferencesTask};
Task.Factory.ContinueWhenAll(tasks.ToArray(), x =>
{
CMS.UiFactory.StartNew(() =>
{
//SystemReferences
mIssue.SystemReferences = getSystemReferencesTask.Result;
mIssue.ModifiedObjects.SystemReferenceModified = true;
Utils.SetUpChangeEvents(View, EventAggregator, mIssue);
RaisePropertyChanged("SystemReferences");
mDictionary = Utils.BuildDictionaryForCollection(mIssue.SystemReferences.Select(r => r.Id).ToList());
if (DataLoaded != null) { DataLoaded(); }
});
});
AddButton = new DelegateCommand<object>(AddHandler, CanAdd);
DeleteButton = new DelegateCommand<object>(DeleteHandler, CanDelete);
EditButton = new DelegateCommand<object>(EditHandler, CanModify);
SelectButton = new DelegateCommand<object>(SelectHandler, CanModify);
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:30,代码来源:IssueSystemReferencesViewModel.cs
示例6: IssueTrackingViewModel
public IssueTrackingViewModel(Issue issue)
{
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
var getIssueEffordsTask = DatabaseLoader.GetIssueEffords();
var getIssueRewardsTask = DatabaseLoader.GetIssueRewards();
var getCalculatedRatingCoefficientsTask = DatabaseLoader.GetCalculatedRatingCoefficients();
var tasks = new List<Task> {getIssueEffordsTask, getIssueRewardsTask, getCalculatedRatingCoefficientsTask};
Task.Factory.ContinueWhenAll(tasks.ToArray(), x =>
{
CMS.UiFactory.StartNew(() =>
{
mIssue.ModifiedObjects.SystemReferenceModified = true;
Utils.SetUpChangeEvents(View, EventAggregator, mIssue);
RaisePropertyChanged("SystemReferences");
//IssueEffords
mEffortList = getIssueEffordsTask.Result.OrderBy(e => e.Ordinal).ToList();
//IssueRewards
mRewardList = getIssueRewardsTask.Result.OrderBy(r => r.Ordinal).ToList();
//CalculatedRatingCoefficients
mCalculatedRatingCoefficients = getCalculatedRatingCoefficientsTask.Result;
if (DataLoaded != null)
{
DataLoaded();
}
});
});
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:35,代码来源:IssueTrackingViewModel.cs
示例7: IssueSystemReferencesControl
public IssueSystemReferencesControl(Issue issue)
{
// Required to initialize variables
InitializeComponent();
mIssue = issue;
ViewModel = new IssueSystemReferencesViewModel(mIssue)
{
View = this
};
ViewModel.DataLoaded += () =>
{
DataContext = ViewModel;
if (ControlLoaded != null)
{
ControlLoaded();
}
Loaded += (s, a) =>
{
TelerikGrid.DataLoaded += (s1, e1) =>
{
Utils.ResetOriginalValues(TelerikGrid);
Utils.SetUpChangeEvents(TelerikGrid, EventAggregator, mIssue);
};
Utils.ResetOriginalValues(this);
Utils.SetUpChangeEvents(this, EventAggregator, mIssue);
};
};
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:33,代码来源:IssueSystemReferencesControl.xaml.cs
示例8: IssueRelatedOverridesControl
public IssueRelatedOverridesControl(Issue issue)
{
if (DesignerProperties.IsInDesignTool) { return; }
InitializeComponent();
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
Loaded += ControlLoaded;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:8,代码来源:IssueRelatedOverridesControl.xaml.cs
示例9: IssueKpiControlViewModel
public IssueKpiControlViewModel(Issue issue, IssueKpiControl view)
{
mView = view;
mIssue = issue;
CompositionInitializer.SatisfyImports(this);
mTimer.Interval = TimeSpan.FromMilliseconds(500);
mTimer.Tick += RefreshKpiTable;
CmsWebServiceClient cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
IssueKpis = new List<IssueKpiTableViewModel>();
AddButtonCommand = new DelegateCommand<object>(AddButtonHandler, CanExecuteAddButtonHandler);
RemoveButtonCommand = new DelegateCommand<object>(RemoveButtonHandler, CanExecuteRemoveButtonHandler);
ShowHideBaselineCommand = new DelegateCommand<object>(ShowHideBaselineHandler, x => true);
IsBusy = true;
cmsWebServiceClient.GetIssueKpiVarianceCodesCompleted += (s1, e1) =>
{
IssueKpiVarianceCodes = e1.Result;
RaisePropertyChanged("IssueKpiVarianceCodes");
cmsWebServiceClient.GetIssueKpisCompleted += (s, e) =>
{
mIssue.IssueKpis = e.Result;
DatabaseLoader.GetIssueSettings().ContinueWith(getIssueFinancialSettingsTask =>
{
CMS.UiFactory.StartNew(() =>
{
mIssueSetting = getIssueFinancialSettingsTask.Result;
foreach (var issueKpi in mIssue.IssueKpis)
{
var financialTableItem = new IssueKpiTableViewModel(issueKpi, IssueKpiVarianceCodes, view,
CanUserModifyActuals(), mIssueSetting);
mIssueKpis.Add(financialTableItem);
}
mIssueKpis = mIssueKpis.OrderBy(x => x.Date).ToList();
RaisePropertyChanged("IssueKpis");
//mDictionary = Utils.BuildDictionaryForCollection(mIssue.IssueFinancials.Select(x => x.Id).ToList());
mIssue.ModifiedObjects.KpisModified = true;
if (view.ViewModelLoaded != null)
{
view.ViewModelLoaded();
}
IsBusy = false;
});
});
};
cmsWebServiceClient.GetIssueKpisAsync(mIssue.Id);
};
cmsWebServiceClient.GetIssueKpiVarianceCodesAsync();
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:58,代码来源:IssueKpiControlViewModel.cs
示例10: IssueRelatedDocumentControl
public IssueRelatedDocumentControl(Issue issue)
{
InitializeComponent();
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
Loaded += ControlLoaded;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:9,代码来源:IssueRelatedDocumentControl.xaml.cs
示例11: ApprovalsControl
public ApprovalsControl(Issue issue)
{
if (DesignerProperties.IsInDesignTool) { return; }
// Required to initialize variables
InitializeComponent();
mApprovalViewModel = new ApprovalViewModel(issue);
DataContext = mApprovalViewModel;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:9,代码来源:ApprovalsControl.xaml.cs
示例12: CloseoutControl
public CloseoutControl(Issue issue)
{
if (DesignerProperties.IsInDesignTool) { return; }
// Required to initialize variables
InitializeComponent();
mCloseoutViewModel = new CloseoutViewModel(issue);
DataContext = mCloseoutViewModel;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:9,代码来源:CloseoutControl.xaml.cs
示例13: RiskReviewDialog
public RiskReviewDialog(Issue issue, CommonUtils.RiskType riskType)
{
if (DesignerProperties.IsInDesignTool){return;}
// Required to initialize variables
InitializeComponent();
RiskReviewDialogViewModel riskReviewDialogViewModel = new RiskReviewDialogViewModel(issue, riskType, this);
DataContext = riskReviewDialogViewModel;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:9,代码来源:RiskReviewDialog.xaml.cs
示例14: CanViewSensitiveIssues
/// <summary>
///
/// </summary>
/// <param name="user">Optional paramete. If not specified logged in user will be used</param>
/// <returns></returns>
public bool CanViewSensitiveIssues(Issue issue, User user = null)
{
if (user == null)
{
user = CMS.User;
}
return true;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:14,代码来源:UserEffectivePrivileges.cs
示例15: RiskReviewViewModel
public RiskReviewViewModel(Issue issue)
{
mIssue = issue;
InitialRiskButtonClick = new DelegateCommand<object>(InitialRiskButtonClickHandler, CanModifyHandler);
FinalRiskButtonClick = new DelegateCommand<object>(FinalRiskButtonClickHandler, CanModifyHandler);
ExistingRiskButtonClick = new DelegateCommand<object>(ExistingRiskButtonClickHandler, CanModifyHandler);
GetHighestRisks();
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:10,代码来源:RiskReviewViewModel.cs
示例16: IssueRelatedElectricalControl
public IssueRelatedElectricalControl(Issue issue)
{
if (DesignerProperties.IsInDesignTool){return;}
// Required to initialize variables
InitializeComponent();
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
Loaded += ControlLoaded;
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:11,代码来源:IssueRelatedElectricalControl.xaml.cs
示例17: CopyIssueOptionsModel
public CopyIssueOptionsModel(Issue issue)
{
mIssue = issue;
BuildOptions();
DialogTitle = string.Format("Copy of Issue #{0}", issue.Id);
OkButtonCommand = new DelegateCommand<object>(OkButtonHander, CanExecuteOkButtonHandler);
CancelButtonCommand = new DelegateCommand<object>(CancelButtonHander, CanExecuteOkButtonHandler);
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:11,代码来源:CopyIssueOptionsModel.cs
示例18: AddEditIssueLearningDialog
public AddEditIssueLearningDialog(Issue issue)
{
InitializeComponent();
AddEditIssueLearningModel viewModel = new AddEditIssueLearningModel(issue);
DataContext = viewModel;
this.Title = @"Add Learning";
viewModel.ViewModelLoaded += () => Utils.ResetOriginalValues(this);
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:11,代码来源:AddEditIssueLearningDialog.xaml.cs
示例19: IssueRelatedIssuesViewModel
public IssueRelatedIssuesViewModel(Issue issue)
{
CompositionInitializer.SatisfyImports(this);
mIssue = issue;
IsBusy = true;
CMS.UiFactory.StartNew(LoadData);
DeleteIssueButton = new DelegateCommand<object>(DeleteIssueHandler, CanDelete);
CreateCommand = new DelegateCommand<object>(AddRelatedIssueHandler, CanCreate);
LinkCommand = new DelegateCommand<object>(LinkIssueButtonHandler, CanLink);
ViewCommand = new DelegateCommand<object>(OpenIssueButtonHandler, CanView);
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:12,代码来源:IssueRelatedIssueViewModel.cs
示例20: IssueDistributionModel
public IssueDistributionModel(Issue issue)
{
mIssue = issue;
CmsWebServiceClient cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
CompositionInitializer.SatisfyImports(this);
cmsWebServiceClient.GetIssueDistributionUsersAsync(mIssue.Id);
cmsWebServiceClient.GetIssueDistributionUsersCompleted += (cmsWebServiceClient_GetIssueDistributionUsersCompleted);
AddButtonCommand = new DelegateCommand<object>(AddButtonHander, CanExecuteAddButtonHandler);
RemoveButtonCommand = new DelegateCommand<object>(RemoveButtonHander, CanExecuteDeleteButtonHandler);
}
开发者ID:barrett2474,项目名称:CMS2,代码行数:12,代码来源:IssueDistributionModel.cs
注:本文中的CmsEquipmentDatabase.CmsWebService.Issue类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论