Ejemplo n.º 1
0
        public void Add(string code)
        {
            PanelModuleCommon.AddButtonClick();
            DialogDefaultRecordAdd dlg = new DialogDefaultRecordAdd();

            dlg.ContinueButtonClick();
            UpdatePanelPosTicket.Instance.SetTicketCode(code);
            UpdatePanelsBottomButtons.SaveButtonClick();
        }
Ejemplo n.º 2
0
        public void Add(string code)
        {
            PanelModuleCommon.AddButtonClick();
            DialogDefaultRecordAdd dlg = new DialogDefaultRecordAdd();

            dlg.ContinueButtonClick();
            UpdatePanelActivity.Instance.SetActivityCode(code);
            UpdatePanelActivity.Instance.SetLongDescription(code);
            Thread.Sleep(2000); // There is a bug in RecTrac Activity Add that this setting of short description and waiting is meant to work around.

            UpdatePanelsBottomButtons.SaveButtonClick();
        }
Ejemplo n.º 3
0
        /// <summary>Activity Section Add requires an activity code to which the section will be added in addition to the section code itself. To use this method one can
        /// set the properties for desired values (like Activity code and Season) or use the default values. </summary>
        /// <param name="code">The code.</param>
        public void Add(string code)
        {
            PanelModuleCommon.AddButtonClick();
            DialogDefaultRecordAdd dlg = new DialogDefaultRecordAdd();

            dlg.ContinueButtonClick();
            UpdatePanelActivitySection.Instance.SetActivityCodeByText(Activity);
            UpdatePanelActivitySection.Instance.SetSection(code);
            UpdatePanelActivitySection.Instance.SetYear(Year);
            UpdatePanelActivitySection.Instance.SetSeasonByText(Season);
            UpdatePanelActivitySection.Instance.SetFacilityByText(FacilityText);
            UpdatePanelActivitySection.Instance.SetBeginDate(BeginDate);
            UpdatePanelActivitySection.Instance.SetEndDate(EndDate);
            UpdatePanelActivitySection.Instance.SetBeginTime(BeginTime);
            UpdatePanelActivitySection.Instance.SetEndTime(EndTime);
            UpdatePanelActivitySection.Instance.ClickAllDays();

            Thread.Sleep(500); // Let the underlying page actions complete.

            UpdatePanelsBottomButtons.SaveButtonClick();
        }