Ejemplo n.º 1
0
        protected void CompareTo(String valueWarehouse, int type)
        {
            Cursor.Current = Cursors.WaitCursor;
            FolioOrder                folio        = new FolioOrder(menu);
            List <string>             messages     = new List <string>();
            List <RespFolio.Products> productsRead = ProductsRead();

            //MessageBox.Show("02");
            messages             = folio.CompareTo(productsRead, this.folio);
            comparisonSuccesfull = false;
            if (messages.Count == 0)
            {
                if (MessageBox.Show("¿Desea guardar la lectura?", "OK", MessageBoxButtons.YesNo,
                                    MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
                {
                    messageForm.Save(valueWarehouse, this.folio, type);
                }
                comparisonSuccesfull = true;
            }
            else
            {
                ShowMessages(messages, valueWarehouse, type);
            }
            Cursor.Current = Cursors.Default;
        }
Ejemplo n.º 2
0
        protected void CompareTo(String valueWarehouse)
        {
            Inventory     folio    = new Inventory(menu.configData.url, menu.pathFolderName);
            List <string> messages = new List <string>();
            List <RespInventory.Assets> productsRead = ProductsRead();

            messages             = folio.CompareTo(productsRead, valueWarehouse);
            comparisonSuccesfull = false;
            if (messages.Count == 0)
            {
                if (MessageBox.Show("¿Desea guardar la lectura?", "OK", MessageBoxButtons.YesNo,
                                    MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
                {
                    messageForm.Save(valueWarehouse);
                }
                comparisonSuccesfull = true;
            }
            else
            {
                ShowMessages(messages, valueWarehouse);
            }
        }