本文整理汇总了C#中CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法的典型用法代码示例。如果您正苦于以下问题:C# CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法的具体用法?C# CmsWebServiceClient.SaveIsActiveEquipmentStateAsync怎么用?C# CmsWebServiceClient.SaveIsActiveEquipmentStateAsync使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CmsWebServiceClient
的用法示例。
在下文中一共展示了CmsWebServiceClient.SaveIsActiveEquipmentStateAsync方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReinstateElectrical
private void ReinstateElectrical(QuickElectrical quickElectrical)
{
var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) => { mViewModel.ProcessSearchFilter(); };
cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.ElectricalEquipment, quickElectrical.Id, true, CMS.User.Id);
}
示例2: RemovePipe
private void RemovePipe(QuickPipe quickPipe)
{
if (!CMS.EffectivePrivileges.PipeTab.CanDelete && !CMS.EffectivePrivileges.AdminTab.CanModify)
{
return;
}
var popupDialog = new AddPipeRevisionHistoryDialog(quickPipe.Id, quickPipe.Name);
popupDialog.Show();
popupDialog.Closed +=
(s2, e2) =>
{
if (popupDialog.DialogResult.HasValue && popupDialog.DialogResult.Value)
{
var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
{
//Calls MainPage.CloseTab()
EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(quickPipe);
};
cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Pipe, quickPipe.Id, false, CMS.User.Id);
}
};
}
示例3: RemoveMechanicalEquipment
private void RemoveMechanicalEquipment(QuickMechanical quickMechanical)
{
if (!CMS.EffectivePrivileges.MechanicalTab.CanDelete && !CMS.EffectivePrivileges.AdminTab.CanModify)
{
return;
}
//PopupDialog popupDialog = new PopupDialog(PopupDialogType.ConfirmDelete,
// String.Format("Delete '{0}' Mechanical Equipment?", quickMechanical.Name));
var dialog = new AddMechanicalRevisionHistoryDialog(quickMechanical.Id, quickMechanical.Name);
dialog.Show();
dialog.Closed +=
(s1, e1) =>
{
if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
{
var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
{
//Calls MainPage.CloseTab()
EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(quickMechanical);
};
cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.MechanicalEquipment, quickMechanical.Id, false, CMS.User.Id);
}
};
}
示例4: RemoveButtonHandler
private void RemoveButtonHandler(object parameter)
{
var popupDialog = new AddInstrumentRevisionHistoryDialog(Instrument.Id, Instrument.Name);
popupDialog.Show();
popupDialog.Closed +=
(s2, e2) =>
{
if (popupDialog.DialogResult.HasValue && popupDialog.DialogResult.Value)
{
var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s1, e1) =>
{
//Calls mainpage.CloseTab();
EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(new QuickInstrument {Id = Instrument.Id, Name = Instrument.Name});
EventAggregator.GetEvent<PrismEvents.RefreshNavigationEvent>().Publish(new QuickInstrument());
};
cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Instrument, Instrument.Id, false, CMS.User.Id);
}
};
}
示例5: ReinstateControlSystem
private void ReinstateControlSystem(QuickControlSystem quickControlSystem)
{
CmsWebServiceClient cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
{
quickControlSystem.IsActive = true;
EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(quickControlSystem);
};
cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Control, quickControlSystem.Id, true, CMS.User.Id);
}
示例6: DeleteCommandHandler
private void DeleteCommandHandler(object parameter)
{
var popupDialog = new AddControlSystemRevisionHistoryDialog(ControlSystem.Id, ControlSystem.Name);
popupDialog.Show();
popupDialog.Closed +=
(s2, e2) =>
{
if (popupDialog.DialogResult.HasValue && popupDialog.DialogResult.Value)
{
var cmsWebServiceClient = new CmsWebServiceClient(Utils.WcfBinding, Utils.WcfEndPoint);
cmsWebServiceClient.SaveIsActiveEquipmentStateCompleted += (s, e) =>
{
//Calls MainPage.CloseTab()
EventAggregator.GetEvent<PrismEvents.CloseTabPrismEvent>().Publish(new QuickControlSystem {Id = ControlSystem.Id, Name = ControlSystem.Name});
EventAggregator.GetEvent<PrismEvents.RefreshNavigationEvent>().Publish(new QuickControlSystem());
};
cmsWebServiceClient.SaveIsActiveEquipmentStateAsync(CommonUtils.ModelType.Control, ControlSystem.Id, false, CMS.User.Id);
}
};
}