Example #1
0
        /////////////////////

        public static bool Afiseaza(Form pEcranPariente, int pIdComandaClient)
        {
            if (pIdComandaClient <= 0)
            {
                return(false);
            }

            BClientiComenzi comanda = new BClientiComenzi(pIdComandaClient);

            return(Afiseaza(pEcranPariente, comanda, comanda.GetClient(), comanda.GetPretSetari()));
        }
Example #2
0
        private void TxtCodDeBare_AfterUpdate(Control sender, string sNumeProprietateAtasata, string sNouaValoare)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                if (this.txtCodDeBare.AreValoare())
                {
                    int             idLucrare = Convert.ToInt32(this.txtCodDeBare.Text);
                    BClientiComenzi comanda   = null;
                    try
                    {
                        comanda = new BClientiComenzi(idLucrare);
                    }
                    catch (Exception)
                    {
                        //Afisam ca nu am gasit lucrarea
                        Mesaj.Informare(this.GetFormParinte(), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.LucrareaNuAFostGasitaInSistem), BMultiLingv.getElementById(BMultiLingv.EnumDictionar.ScanatiCodulDeBare));
                    }

                    if (comanda != null)
                    {
                        TablouDeBord.Clienti.FormDetaliuComanda.Afiseaza(this.GetFormParinte(), comanda, comanda.GetClient(), comanda.GetLucrare(null));
                        this.Close();
                    }
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }