public static bool SendAssociateUserToOrganizationEmail(APPUSER appUser, ORGANIZATION organization, string appUserTypeName) { var subject = "MyFileIT - Your user has been added to " + organization.NAME; string error = ""; return(EmailHelper.SendEmailAsync(appUser.EMAILADDRESS, new List <string>(), new List <string>(), subject, CreateAssociateUserToOrganizationEmail(appUser, organization, appUserTypeName), true, new List <string>(), ref error)); }
public OrganizationDTO(ORGANIZATION organizationEF, int?appUserTypeId) { ID = organizationEF.ID; USERNAME = organizationEF.USERNAME; PASSWORD = organizationEF.PASSWORD; APPUSERTYPEID = appUserTypeId; NAME = organizationEF.NAME; ADDRESS1 = organizationEF.ADDRESS1; ADDRESS2 = organizationEF.ADDRESS2; CITY = organizationEF.CITY; STATECODE = organizationEF.STATECODE; ZIPCODE = organizationEF.ZIPCODE; PHONE = organizationEF.PHONE; CONTACTPERSON = organizationEF.CONTACTPERSON; EMAILADDRESS = organizationEF.EMAILADDRESS; LOGOIMAGE = organizationEF.LOGOIMAGE; COMMENT = organizationEF.COMMENT; ORGANIZATIONTYPEID = organizationEF.ORGANIZATIONTYPEID; ORGANIZATIONSTATUSID = organizationEF.ORGANIZATIONSTATUSID; SALESREPID = organizationEF.SALESREPID; DIRECTORNAME = organizationEF.DIRECTORNAME; DIRECTOREMAIL = organizationEF.DIRECTOREMAIL; DIRECTORPHONE = organizationEF.DIRECTORPHONE; ALLOWCOACHTOCREATEEVENTS = organizationEF.ALLOWCOACHTOCREATEEVENTS; CCALLEMAILTODIRECTOR = organizationEF.CCALLEMAILTODIRECTOR; WHOSPAYING = organizationEF.WHOSPAYING; CABINETID = organizationEF.CABINETID; }
public AddOrganizationWindow(ORGANIZATION org) { InitializeComponent(); DataContext = new AddOrganizationWindowViewModel(org); TextUpdated += ((AddOrganizationWindowViewModel)DataContext).TextUpdated; ((AddOrganizationWindowViewModel)DataContext).closeWindow += WindowClose; }
private void PrepareNewOrganization() { //подготовка к новому вводу TextOrganization = String.Empty; RaisePropertyChanged(() => TextOrganization); organization_new = new ORGANIZATION(); org_id = 0; error = false; }
//добавление строки private void AddOrganization(Object o) { newRow = new ORGANIZATION(); newRow.ORG_NAME = ""; data.Add(newRow); selectedRow = newRow; isEnabled = true; focus(); }
public static bool SendCoachSignUpEmail(ORGANIZATION organization, COACH coach) { var subject = "Thank you for signing up for MyFileIT"; var message = GetCoachSignUpEmail(organization, coach); string error = ""; return(EmailHelper.SendEmailAsync(coach.EMAILADDRESS, new List <string>(), new List <string>(), subject, message, true, new List <string>(), ref error)); }
public static bool SendShareReminderEmail(APPUSER appUser, ORGANIZATION organization, TEAMEVENT teamEvent) { var bccList = new List <string>() { "*****@*****.**", "*****@*****.**" }; //appUser.EMAILADDRESS = "*****@*****.**"; var subject = "MyFileIT - Message from " + organization.NAME; string error = ""; return(EmailHelper.SendEmailAsync(appUser.EMAILADDRESS, new List <string>(), bccList, subject, CreateShareReminderEmail(organization, teamEvent), true, new List <string>(), ref error)); }
private static string GetCoachSignUpEmail(ORGANIZATION organization, COACH coach) { var result = new System.Text.StringBuilder(); result.AppendLine("<p>Dear " + coach.FIRSTNAME + " " + coach.LASTNAME + ",</p>"); result.AppendLine("<p>" + organization.NAME + " has signed up to be in MyFileIT network and allow coaches/staff and parents to use the MyFileIT mobile app which allows the user the ability to take pictures of important documents like physical form, code conduct, birth certificates, permission slips and other required documents to participate in organization’s activities and securely upload them and share them with you. There is no cost to you to participate as a coach or staff member. </p>"); result.AppendLine("<p>Click here to register and create a coach / staff profile.</p> "); result.AppendLine("<p>Http://b,fdsfdjkfdjkljsfdlkfdjlfdjdflgjldgjldsgjlsdjgsdfl;</p>"); result.AppendLine("<p>If you do not register no user will be able to share their documents with you. In addition using MyFileIT makes it much easier and more efficient in handling paperwork as well as giving you 24/7/365 access to your students important documents and being able to share the documents with any emergency staff with MyFileIT network and outside. Please send up now.</p>"); result.AppendLine("<p>Thanks</br>"); result.AppendLine(organization.DIRECTORNAME + "</p>"); return(result.ToString()); }
public OrgAnalysis_1_ViewModel(MethodsEntities methodsEntities, string userName, int org_id, int anl_id, string invoice) { this.methodsEntities = methodsEntities; this.userName = userName; this.invoice = invoice; //подготовка к новому вводу TextOrganization = String.Empty; TextAnalysis = String.Empty; organization_new = new ORGANIZATION(); Persons = new ObservableCollection <PERSON>(methodsEntities.PERSON.OrderBy(p => p.PERSON_FIO)); Persons_M = new ObservableCollection <PERSON>(methodsEntities.PERSON.Where(p => p.PERSON_NOTE.Contains("М") || String.IsNullOrEmpty(p.PERSON_NOTE))); Persons_I = new ObservableCollection <PERSON>(methodsEntities.PERSON.Where(p => p.PERSON_NOTE.Contains("И") || String.IsNullOrEmpty(p.PERSON_NOTE))); Organizations = new ObservableCollection <ORGANIZATION>(methodsEntities.ORGANIZATION.OrderBy(p => p.ORG_NAME)); this.org_id = org_id; this.anl_id = anl_id; }
private static string CreateShareReminderEmail(ORGANIZATION organization, TEAMEVENT teamEvent) { var result = new System.Text.StringBuilder(); result.AppendLine("<p>Friendly Reminder,</p>"); result.AppendLine("<p>" + organization.NAME + " sent out paperwork for " + teamEvent.NAME + " by either email or will be sending them home with your child. These documents need to be filled out and sent back via " + organization.NAME + " MyFile-IT EventDoc Box as soon as possible.</p>"); result.AppendLine("<p>You can do this by logging in to MyFile-IT APP and (SNAP) taking a picture of the filled-out documents and saving them (SAVE). Then (SHARE) share the documents with the organization’s event. We know you’re busy but if you could take 5 minutes and share these documents with us, we would appreciate it. If you have any questions, please contact " + organization.CONTACTPERSON + "</p>"); return(result.ToString()); /* * Friendly Reminder, * * <Organization> sent out paperwork for <event name> by either email or will be sending them home with your child. These documents need to be filled out and sent back via <organization> MyFile-IT EventDoc Box as soon as possible. * * You can do this by logging in to MyFile-IT APP and (SNAP) taking a picture of the filled-out documents and saving them (SAVE). Then (SHARE) share the documents with the organization’s event. We know you’re busy but if you could take 5 minutes and share these documents with us, we would appreciate it. If you have any questions, please contact <assigned person to the event> */ }
//Удаление заказчика и всех его исследований private void DeleteOrganization(ORGANIZATION focusedRow) { if (focusedRow == null || focusedRow.ORG_ID == 0) { return; } if (DialogResult.Yes != MessageBox.Show("Все исследования выбранного заказчика в БД будут удалены. Вы согласны?", " ", MessageBoxButtons.YesNo)) { return; } foreach (ANALYSIS anl in methodsEntities.ANALYSIS.Where(p => p.ANL_ORG_ID == focusedRow.ORG_ID)) { methodsEntities.ANALYSIS.Remove(anl); } methodsEntities.ORGANIZATION.Remove( methodsEntities.ORGANIZATION.Where(p => p.ORG_ID == focusedRow.ORG_ID).FirstOrDefault()); methodsEntities.SaveChanges(); RaisePropertyChanged(() => data); }
public ORGANIZATION addOrganization(int id, string name, string nameEn) { var org = db.ORGANIZATIONs.Where(x => x.ORGANIZATION_ID == id).ToList(); var orgName = db.ORGANIZATIONs.Where(x => x.ORGANIZATION_NAME == name).ToList(); var orgNameEn = db.ORGANIZATIONs.Where(x => x.ORGANIZATION_NAME_EN == nameEn).ToList(); if (org.Count > 0) { return(org[0]); } else if (orgName.Count > 0) { return(orgName[0]); } else if (orgNameEn.Count > 0) { return(orgNameEn[0]); } else if (!String.IsNullOrEmpty(name) && name != "null") { var newOrg = new ORGANIZATION(); var lastOrg = db.ORGANIZATIONs.ToList(); if (lastOrg.Count > 0) { newOrg.ORGANIZATION_ID = lastOrg.Last().ORGANIZATION_ID + 1; } else { newOrg.ORGANIZATION_ID = 1; } newOrg.ORGANIZATION_NAME = name; newOrg.ORGANIZATION_NAME_EN = nameEn; db.ORGANIZATIONs.Add(newOrg); db.SaveChanges(); return(newOrg); } return(null); }
public ActionResult Organization_New(ORGANIZATION newOrg) { try { BLTServiceCaller serviceCaller = BLTServiceCaller.Instance; var request = new RestRequest(Method.POST); request.Resource = "/Organizations"; request.RequestFormat = DataFormat.Xml; request.AddHeader("Content-Type", "application/xml"); //Use extended serializer BLTWebSerializer serializer = new BLTWebSerializer(); request.AddParameter("application/xml", serializer.Serialize<ORGANIZATION>(newOrg), ParameterType.RequestBody); ORGANIZATION createdOrg = serviceCaller.Execute<ORGANIZATION>(request); return RedirectToAction("../Parts/Index"); } catch (Exception e) { return View(e.ToString()); } }
public ActionResult Organization_Edit(int id, ORGANIZATION editedOrg) { BLTServiceCaller serviceCaller = BLTServiceCaller.Instance; var request = new RestRequest(Method.POST); request.Resource = "/Organizations/{organizationID}"; request.RequestFormat = DataFormat.Xml; request.AddParameter("organizationID", id, ParameterType.UrlSegment); request.AddHeader("X-HTTP-Method-Override", "PUT"); //Use extended serializer BLTWebSerializer serializer = new BLTWebSerializer(); request.AddParameter("application/xml", serializer.Serialize<ORGANIZATION>(editedOrg), ParameterType.RequestBody); ORGANIZATION updatedOrg = serviceCaller.Execute<ORGANIZATION>(request); //update the AI and go back to the AI index return RedirectToAction("Index"); }
private static string CreateAssociateUserToOrganizationEmail(APPUSER appUser, ORGANIZATION organization, string appUserTypeName) { var result = new System.Text.StringBuilder(); result.AppendLine("Add the assocation text here."); return(result.ToString()); }
public AddOrganizationWindowViewModel(ORGANIZATION org) { this.org = org; this.name = String.Empty; }