Beispiel #1
0
        public string GetInput(string inputMessage, bool required)
        {
            IOutputCommand <string> command =
                FrontController.GetInstance().RunCommand
                    ("input.userinput", inputMessage, required) as IOutputCommand <string>;

            return(command.Output);
        }
Beispiel #2
0
        /// <summary>
        /// Gets the current PartModel and opens the bom master for editing.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void openBomMasterLink_OpenLink(object sender, OpenLinkEventArgs e)
        {
            PartModel partModel = modeLookup.EditValue as PartModel;

            if (partModel != null)
            {
                FrontController.GetInstance().RunCommand(
                    PartCommands.ManagePartModelBomMaster, partModel.Id);
            }
        }
Beispiel #3
0
        private void f9CommentsLink_OpenLink(object sender, OpenLinkEventArgs e)
        {
            if (m_item == null)
            {
                return;
            }

            FrontController.GetInstance().RunCommand(
                ServiceCommands.ViewF9Comments, m_item);
        }
Beispiel #4
0
        private void hyperLinkEdit1_OpenLink(object sender, DevExpress.XtraEditors.Controls.OpenLinkEventArgs e)
        {
            BomConfiguration configuration =
                serviceConfigurationsView.GetFocusedRow() as BomConfiguration;

            if (configuration != null)
            {
                FrontController.GetInstance().RunCommand(
                    MaterialCommands.ConsumeBomConfiguration, configuration);
            }
        }
Beispiel #5
0
        public frmMain()
        {
            this._frontController = FrontController.GetInstance();
            this.View_OnQueryRecordsCompletion     = this.RefreshGridData;
            this.View_OnGetLogStatisticsCompletion = this.UpdateDashboard;
            this.View_OnGetCalendarDataCompletion  = this.UpdateCalendarData;
            this.View_OnGetObjectiveDataCompletion = this.UpdateObjectiveData;
            this.View_OnViewReady = OnViewReady;
            this.View_OnShow      = OnShow;

            InitializeComponent();
            this.InitializeRequiredData();
            this.SetTimer();
            this.StartTimer();
        }
Beispiel #6
0
        private void saveAndNewButton_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (Save())
            {
                VerifySaveClose();

                if (m_order.CreatedFromTemplate)
                {
                    FrontController.GetInstance().RunCommand(OrdersCommands.New_FromTemplate);
                }
                else
                {
                    ViewLoader.Instance().CreateFormWithArgs <mainOrderForm>(true,
                                                                             OrderService.CreateOrderAsArg(m_order.OrderType));
                }
            }
        }
Beispiel #7
0
 public void ManageConfiguration(BomConfiguration configuration)
 {
     FrontController.GetInstance().RunCommand(
         PartCommands.ManageBomConfiguration, configuration);
 }