Exemplo n.º 1
0
 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();
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 /// <summary>Static getter for Email</summary>
 public static string GetContactEmail(IContactPerson that)
 {
     return(that.GetPropertyValue <string>("contactEmail"));
 }
Exemplo n.º 7
0
 /// <summary>Static getter for Mobile</summary>
 public static string GetContactMobile(IContactPerson that)
 {
     return(that.GetPropertyValue <string>("contactMobile"));
 }
Exemplo n.º 8
0
 /// <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;
 }
Exemplo n.º 9
0
        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;
            }
        }
Exemplo n.º 10
0
 private void loadIContactPersontoUI(IContactPerson icontactperson)
 {
     ContactNametxtbox.Text = icontactperson.Name;
     CompanyNametxtbox.Text = icontactperson.CompanyName;
     EmailTextbox.Text = icontactperson.Email;
     TelNoTextbox.Text = icontactperson.Phone;
 }
Exemplo n.º 11
0
        private IContactPerson CreateContactPerson()
        {
            icp = controller.CreateContactPerson(ContactNametxtbox.Text, TelNoTextbox.Text, EmailTextbox.Text,                                         CompanyNametxtbox.Text);

            return icp;
        }