Exemplo n.º 1
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            this.TitleLabel.Text = Titles.JournalVoucherEntry;
            this.ValueDateLiteral.Text = Titles.ValueDate;
            this.ReferenceNumberLiteral.Text = Titles.ReferenceNumber;
            this.StatementReferenceLiteral.Text = Titles.StatementReference;
            this.AccountNumberLiteral.Text = Titles.AccountNumber;
            this.AccountLiteral.Text = Titles.Account;
            this.CashRepositoryLiteral.Text = Titles.CashRepository;
            this.CurrencyLiteral.Text = Titles.Currency;
            this.DebitLiteral.Text = Titles.Debit;
            this.CreditLiteral.Text = Titles.Credit;
            this.ERLiteral.Text = Titles.ER;
            this.LCDebitLiteral.Text = Titles.LCDebit;
            this.LCCreditLiteral.Text = Titles.LCCredit;
            this.ActionLiteral.Text = Titles.Action;
            this.CostCenterLiteral.Text = Titles.CostCenter;
            this.DebitTotalLiteral.Text = Titles.DebitTotal;
            this.CreditTotalLiteral.Text = Titles.CreditTotal;
            this.PostTransactionLiteral.Text = Titles.PostTransaction;
            this.AddInputButton.Value = Titles.Add;
            this.ValueDateTextBox.OfficeId = AppUsers.GetCurrentLogin().View.OfficeId.ToInt();
            this.BookDateTextBox.OfficeId = AppUsers.GetCurrentLogin().View.OfficeId.ToInt();

            using (Attachment attachment = new Attachment())
            {
                this.Placeholder1.Controls.Add(attachment);
            }
        }
Exemplo n.º 2
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            if (!this.IsRestrictedMode)
            {
                this.TitleLiteral.Text = Titles.UploadAttachments;

                using (Attachment attachment = new Attachment(AppUsers.GetCurrentUserDB()))
                {
                    attachment.ShowSaveButton = true;
                    this.Placeholder1.Controls.Add(attachment);
                }
            }

            this.SubTitleLiteral.Text = Titles.ViewAttachments;
            this.OKLiteral.Text = Titles.OK;
            this.SetOverridePath();
        }
Exemplo n.º 3
0
        private static void CreateAttachmentPanel(Control container)
        {
            using (HtmlGenericControl header = new HtmlGenericControl("h2"))
            {
                header.ID = "attachmentToggler";
                header.InnerText = Titles.AttachmentsPlus;
                container.Controls.Add(header);
            }

            using (HtmlGenericControl attachmentContainer = new HtmlGenericControl("div"))
            {
                attachmentContainer.ID = "attachment";
                attachmentContainer.Attributes.Add("class", "ui segment initially hidden");

                using (Attachment attachment = new Attachment())
                {
                    attachment.ShowSaveButton = false;
                    attachmentContainer.Controls.Add(attachment);
                }
                container.Controls.Add(attachmentContainer);
            }
        }