public ManageCompanyController() { _dropdown = new DropdownBindController(); _compRepo = new Company(); _ContactPersonRepo = new ContactPerson(); _OrgRepo = new Organization(); _BankRepo = new Bank(); _templateRepo = new doorserve.Repository.EmailSmsTemplate.Template(); _emailSmsServices = new Repository.EmailsmsServices(); }
public ClientDataController() { _RepoUploadFile = new UploadFiles(); _dropdown = new DropdownBindController(); _RepoCallLog = new CallLog(); _centerRepo = new Center(); _contactPerson = new ContactPerson(); _emailSmsServices = new EmailsmsServices(); _templateRepo = new Template(); }
public ManageClientsController() { _client = new Client(); dropdown = new DropdownBindController(); _bank = new Bank(); _contactPerson = new ContactPerson(); _templateRepo = new doorserve.Repository.EmailSmsTemplate.Template(); _emailSmsServices = new Repository.EmailsmsServices(); _service = new Services(); }
public ManageServiceProvidersController() { _provider = new Provider(); dropdown = new DropdownBindController(); _bank = new Bank(); _contactPerson = new ContactPerson(); _RepoUploadFile = new UploadFiles(); _templateRepo = new doorserve.Repository.EmailSmsTemplate.Template(); _emailSmsServices = new Repository.EmailsmsServices(); _services = new Services(); }
public static ICompanyContactPerson GetCompanyContactPerson(IDalSession session, IContactCompany company, IContactPerson person) { List<ICriterion> expressions = new List<ICriterion>(); expressions.Add(Expression.Eq("ContactPerson.Key", person.Key)); expressions.Add(Expression.Eq("Company.Key", company.Key)); IList companyContactPersons = session.GetList(typeof(CompanyContactPerson), expressions); if (companyContactPersons != null && companyContactPersons.Count == 1) return (ICompanyContactPerson)companyContactPersons[0]; else return null; }
/// <summary>Static getter for Email</summary> public static string GetContactEmail(IContactPerson that) { return(that.GetPropertyValue <string>("contactEmail")); }
/// <summary>Static getter for Mobile</summary> public static string GetContactMobile(IContactPerson that) { return(that.GetPropertyValue <string>("contactMobile")); }
/// <summary> /// Initializes a new instance of the <see cref="T:B4F.TotalGiro.CRM.CompanyContact">CompanyContact</see> class. /// </summary> public CompanyContactPerson(IContactPerson Person, IContactCompany Company) { this.ContactPerson = Person; this.Company = Company; }
private static bool LookupContactPersonByBSN(IDalSession session, string BurgerServiceNummer, out IContactPerson lookUp) { if (BurgerServiceNummer != "000000000") lookUp = B4F.TotalGiro.CRM.ContactMapper.GetContactbyBSN(session, BurgerServiceNummer); else lookUp = null; if (lookUp != null) { return true; } else { return false; } }
private void loadIContactPersontoUI(IContactPerson icontactperson) { ContactNametxtbox.Text = icontactperson.Name; CompanyNametxtbox.Text = icontactperson.CompanyName; EmailTextbox.Text = icontactperson.Email; TelNoTextbox.Text = icontactperson.Phone; }
private IContactPerson CreateContactPerson() { icp = controller.CreateContactPerson(ContactNametxtbox.Text, TelNoTextbox.Text, EmailTextbox.Text, CompanyNametxtbox.Text); return icp; }