protected void btnSubmit_Click(object sender, EventArgs e) { RequiresAuthorization(Authorizations.ImageMulticastTask); if (ddlComputerImage.Text == "Select Image") return; var imageProfile = BLL.ImageProfile.ReadProfile(Convert.ToInt32(ddlImageProfile.SelectedValue)); EndUserMessage = new BLL.Workflows.Multicast(imageProfile, txtClientCount.Text,CloneDeployCurrentUser.Id).Create(); }
protected void btnSubmit_Click(object sender, EventArgs e) { RequiresAuthorization(Authorizations.ImageMulticastTask); if (ddlComputerImage.Text == "Select Image") { return; } var imageProfile = BLL.ImageProfile.ReadProfile(Convert.ToInt32(ddlImageProfile.SelectedValue)); EndUserMessage = new BLL.Workflows.Multicast(imageProfile, txtClientCount.Text, CloneDeployCurrentUser.Id).Create(); }
protected void btnConfirm_Click(object sender, EventArgs e) { var groupId = Convert.ToInt32(Session["groupID"]); var isUnicast = Convert.ToInt32(Session["isGroupUnicast"]); var group = BLL.Group.GetGroup(groupId); if (isUnicast == 1) { RequiresAuthorizationOrManagedGroup(Authorizations.ImageDeployTask, group.Id); var successCount = BLL.Group.StartGroupUnicast(group, CloneDeployCurrentUser.Id); EndUserMessage = "Started " + successCount + " Tasks"; } else { RequiresAuthorizationOrManagedGroup(Authorizations.ImageMulticastTask, group.Id); EndUserMessage = new BLL.Workflows.Multicast(group, CloneDeployCurrentUser.Id).Create(); } Session.Remove("groupID"); Session.Remove("isGroupUnicast"); }
protected void btnConfirm_Click(object sender, EventArgs e) { var groupId = Convert.ToInt32(Session["groupID"]); var isUnicast = Convert.ToInt32(Session["isGroupUnicast"]); var group = BLL.Group.GetGroup(groupId); if (isUnicast == 1) { RequiresAuthorizationOrManagedGroup(Authorizations.ImageDeployTask, group.Id); var successCount = BLL.Group.StartGroupUnicast(group, CloneDeployCurrentUser.Id); EndUserMessage = "Started " + successCount + " Tasks"; } else { RequiresAuthorizationOrManagedGroup(Authorizations.ImageMulticastTask, group.Id); EndUserMessage = new BLL.Workflows.Multicast(group,CloneDeployCurrentUser.Id).Create(); } Session.Remove("groupID"); Session.Remove("isGroupUnicast"); }