Ejemplo n.º 1
0
        private void AddUpdatePanel(Panel p)
        {
            this.messageLabel = new Label();

            this.updatePanel    = new UpdatePanel();
            this.updatePanel.ID = "ScrudUpdatePanel";
            this.updatePanel.ChildrenAsTriggers = true;
            this.updatePanel.UpdateMode         = UpdatePanelUpdateMode.Conditional;

            this.updatePanel.ContentTemplateContainer.Controls.Add(this.topCommandPanel.GetCommandPanel("top"));
            this.updatePanel.ContentTemplateContainer.Controls.Add(this.messageLabel);
            this.updatePanel.ContentTemplateContainer.Controls.Add(this.gridPanel);
            this.updatePanel.ContentTemplateContainer.Controls.Add(this.formPanel);
            this.updatePanel.ContentTemplateContainer.Controls.Add(this.bottomCommandPanel.GetCommandPanel("bottom"));

            //Bottom command panel.
            this.userIdHidden       = new HiddenField();
            this.userIdHidden.ID    = "UserIdHidden";
            this.userIdHidden.Value = CurrentSession.GetUserName();

            this.officeCodeHidden       = new HiddenField();
            this.officeCodeHidden.ID    = "OfficeCodeHidden";
            this.officeCodeHidden.Value = CurrentSession.GetOfficeName();

            this.updatePanel.ContentTemplateContainer.Controls.Add(this.userIdHidden);
            this.updatePanel.ContentTemplateContainer.Controls.Add(this.officeCodeHidden);
            p.Controls.Add(this.updatePanel);
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.BranchNameLiteral.Text          = CurrentSession.GetOfficeName();
     this.SignOutLiteral.Text             = Resources.Titles.SignOut;
     this.UserGreetingLiteral.Text        = String.Format(CultureInfo.CurrentCulture, Resources.Labels.UserGreeting, CurrentSession.GetUserName());
     this.ChangePasswordLiteral.Text      = Resources.Titles.ChangePassword;
     this.ManageProfileLiteral.Text       = Resources.Titles.ManageProfile;
     this.MixERPDocumentationLiteral.Text = Resources.Titles.MixERPDocumentation;
     this.NotificationLiteral.Text        = Resources.Titles.Notifications;
 }
Ejemplo n.º 3
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   = CurrentSession.GetUserName();
                view.OfficeName = CurrentSession.GetOfficeName();
                view.Status     = "Approved";

                this.Controls.Add(view);
            }
        }
        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 = CurrentSession.GetOfficeName();

                this.Controls.Add(view);
            }

            this.AddModal();
        }
Ejemplo n.º 5
0
 public override void OnControlLoad(object sender, EventArgs e)
 {
     this.OfficeInputText.Value   = CurrentSession.GetOfficeName();
     this.CurrencyInputText.Value = "NPR";//Todo
 }