Exemplo n.º 1
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (TransactionView view = new TransactionView())
            {
                view.DisplayFlagButton = true;
                view.DisplayApproveButton = true;
                view.DisplayRejectButton = true;
                view.DisplayPrintButton = true;

                view.GridViewCssClass = "ui table nowrap";
                view.Text = Titles.VoucherVerification;

                //Default Values
                view.DateFromFromFrequencyType = FrequencyType.Today;
                view.DateToFrequencyType = FrequencyType.Today;
                view.Status = "Unverified";

                view.OfficeName = AppUsers.GetCurrent().View.OfficeName;

                view.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                view.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
                view.Catalog = AppUsers.GetCurrentUserDB();

                this.Controls.Add(view);
            }

            this.AddModal();
        }
Exemplo n.º 2
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (TransactionView view = new TransactionView())
            {
                view.DisplayAddButton = true;
                view.DisplayFlagButton = true;
                view.DisplayPrintButton = true;
                view.AddNewPath = "Entry/JournalVoucher.mix";
                view.GridViewCssClass = "ui table nowrap";
                view.Text = Titles.JournalVoucher;

                //Default Values
                view.DateFromFromFrequencyType = FrequencyType.FiscalYearStartDate;
                view.DateToFrequencyType = FrequencyType.FiscalYearEndDate;

                view.Book = "Journal";
                view.PostedBy = AppUsers.GetCurrent().View.UserName;
                view.OfficeName = AppUsers.GetCurrent().View.OfficeName;
                view.Status = "Approved";

                view.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                view.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
                view.Catalog = AppUsers.GetCurrentUserDB();

                this.Controls.Add(view);
            }
        }