Ejemplo n.º 1
0
        public void initDate(Turno t)
        {
            lblValor.Text    = t.Caixa.ToString();;
            lblUser.Text     = UserCurrent.getCurrentUser().Nome;
            lblDataHora.Text = t.Data.ToString();
            string rootPath = Application.StartupPath;

            Company company = SystemInfoCurrent.getCurrentCompany();

            xrlblCompany.Text = company.Empresa;
            xrlblNif.Text     = "NIF: " + company.Nif;
            xrlblTel.Text     = "Telefone: " + company.Tel;
        }
Ejemplo n.º 2
0
        public Cabecalho()
        {
            InitializeComponent();

            Company company = SystemInfoCurrent.getCurrentCompany();

            DataCompany.DataSource = company;
            string urlLogo = Application.StartupPath + company.UrlLogo;

            if (File.Exists(urlLogo))
            {
                xrPictureBox2.ImageUrl = urlLogo;
            }
        }
Ejemplo n.º 3
0
        public void initData(Invoice invoiceData)
        {
            string rootPath = Application.StartupPath;

            Company company = SystemInfoCurrent.getCurrentCompany();

            invoiceDataSource.DataSource = invoiceData;
            xrlblCompany.Text            = company.Empresa;
            xrlblNif.Text      = "NIF: " + company.Nif;
            xrlblTel.Text      = "Telefone: " + company.Tel;
            xrlblAddress.Text += company.Endereco;

            if (File.Exists(rootPath + company.UrlLogo))
            {
                xrPictureLogo.ImageUrl = rootPath + company.UrlLogo;
            }



            // xrlblSite.Text = company.UrlSite;
            xrlblSite.Text = "Software de gestão desenvolvido e assistido pela Fenitech Soluctions, " + SystemInfoCurrent.SystemInfo.UrlSite;
        }