Пример #1
0
        public bool Main(int lCallParamsBlock)
        {
            this.InitializeMessageForm();
            this.ShowSellerResponsabilityMessage();
            if (!sellerResponsabilityMessageForm.IsSellerResponsabilityMessage())
            {
                return(false);
            }

            this.DisableMessageForm();
            this.InitializeViewDialogForm();

            pluginWord.InitializeAll(lCallParamsBlock);

            this.InitConfigDirectories();
            this.ShowGenerateViewDialogForm();

            return(true);
        }
Пример #2
0
        /// <summary>
        /// The "GenerateOrder" function belonging to the "Order" class is the entry point of the supplier orders management module.
        /// If the DLL is selected in the "Computer file" option box corresponding to a supplier in the "Suppliers" dialog box,
        /// the following "GenerateOrder" function is called when the user generates an order for that supplier running
        /// the "File | Orders to suppliers | Generate".
        /// </summary>
        /// <param name="callParamsBlock"></param>
        /// <returns></returns>
        public bool GenerateOrder(int callParamsBlock)
        {
            _pluginWord = new KD.Plugin.Word.Plugin();
            _pluginWord.InitializeAll(callParamsBlock);

            orderInformations  = new OrderInformations(this.CurrentAppli, callParamsBlock);
            Order.rootOrderDir = orderInformations.GetRootOrderDir();
            Order.orderDir     = orderInformations.GetOrderDir();

            Articles articles = SupplierArticleValidInScene();

            orderInformationsFromArticles = new OrderInformations(this.CurrentAppli, callParamsBlock, articles);

            if (this.IsGenerateOrders(articles) && this.IsNotSameNumbers(articles))
            {
                this.mainForm = new MainForm(orderInformations);
                this.Main(articles); //callParamsBlock

                Cursor.Current = Cursors.Arrow;
                return(true);
            }
            return(false);
        }