Example #1
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                var taskId = GetAllValues();

                var task = AryaServices.CreateAryaTask(taskId, Guid.Parse(projectId.Value), txtProjectDesc.Text,
                                                       Path.Combine(projectId.Value, folderGuid.Value), Guid.Parse(userId.Value), typeof(ImportWorker));

                AryaServices.SendEmail(task, false, null, ddlProject.SelectedItem.Text,
                                       ((SiteMaster)Page.Master).Email, "http://" + Request.Url.Authority + Request.ApplicationPath);

                Response.Redirect("Status.aspx");
            }
        }
Example #2
0
        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            if (!Page.IsValid)
            {
                return;
            }

            var args = SaveParameters();

            if (args == null)
            {
                LblMessage.Text = "There was a problem saving the parameters.";
                return;
            }

            var task = AryaServices.CreateAryaTask(Guid.NewGuid(), Guid.Parse(ddlModel.SelectedValue), args.JobDescription,
                                                   Path.Combine(ddlModel.SelectedValue, args.Id.ToString()), Guid.Parse(UserId.Value), ExportType);

            AryaServices.SendEmail(task, false, null, ddlModel.SelectedItem.Text, ((SiteMaster)Page.Master).Email, "http://" + Request.Url.Authority + Request.ApplicationPath);
            //Response.Redirect("Status.aspx?ProjectID=" + ddlModel.SelectedValue + "&JobType=" + ExportType);
            Response.Redirect("Status.aspx");
        }