public CreerDocumentEntree(int piece = 0)
        {
            InitializeComponent();

            decimalSeprerator = new CultureInfo("us-US");
            Thread.CurrentThread.CurrentCulture = decimalSeprerator;

            lite = new DatabaseLite();
            lite.creatConnection();

            listeMateriaux = new DataTable();
            listeDepots    = new DataTable();

            listeMateriaux.Columns.Add("reference", typeof(Int64));
            listeMateriaux.Columns.Add("designation", typeof(String));

            listeDepots.Columns.Add("reference", typeof(Int64));
            listeDepots.Columns.Add("designation", typeof(String));

            materiel.DataSource    = listeMateriaux;
            materiel.DisplayMember = "designation";
            materiel.ValueMember   = "reference";

            depotCombo.DataSource    = listeDepots;
            depotCombo.DisplayMember = "designation";
            depotCombo.ValueMember   = "reference";

            this.typePiece = piece;
            initField();
            //materiel.SelectedIndex = -1;

            changeTitle();
        }
Esempio n. 2
0
 public Materiaux()
 {
     InitializeComponent();
     lite = new DatabaseLite();
     lite.creatConnection();
     loadMateriaux();
 }
Esempio n. 3
0
        public ModifierMateriel(long matid)
        {
            matId = matid;
            InitializeComponent();
            index = -1;
            lite  = new DatabaseLite();
            lite.creatConnection();

            typesuivi = new DataTable();
            typesuivi.Columns.Add("reference", typeof(int));
            typesuivi.Columns.Add("designation", typeof(String));
            suivistock.DataSource    = typesuivi;
            suivistock.DisplayMember = "designation";
            suivistock.ValueMember   = "reference";

            listeFamille = new DataTable();
            listeFamille.Columns.Add("reference", typeof(Int64));
            listeFamille.Columns.Add("designation", typeof(String));
            listeFamille.Columns.Add("code", typeof(String));

            initFamille();
            famille.DataSource    = listeFamille;
            famille.DisplayMember = "designation";
            famille.ValueMember   = "reference";

            if (index != -1)
            {
                famille.SelectedIndex = index;
            }

            matref.Text = matId.ToString();
        }
Esempio n. 4
0
 public Depots()
 {
     InitializeComponent();
     lite = new DatabaseLite();
     lite.creatConnection();
     fetchAllDepots();
 }
Esempio n. 5
0
        public EntreeHS()
        {
            InitializeComponent();
            lite = new DatabaseLite();
            lite.creatConnection();

            decimalSeprerator = new CultureInfo("us-US");
            Thread.CurrentThread.CurrentCulture = decimalSeprerator;

            traitement = new traitementHS();

            listMateriaux = new DataTable();
            listMateriaux.Columns.Add("reference", typeof(Int64));
            listMateriaux.Columns.Add("designation", typeof(String));
            listMateriaux.Rows.Add(-1, "");

            provenancehs = new DataTable();
            provenancehs.Columns.Add("reference", typeof(int));
            provenancehs.Columns.Add("designation", typeof(String));
            initProvenance();

            loadMateriaux();
            materiel.DataSource    = listMateriaux;
            materiel.DisplayMember = "designation";
            materiel.ValueMember   = "reference";
        }
Esempio n. 6
0
 public Familles()
 {
     InitializeComponent();
     loaded = 0;
     lite   = new DatabaseLite();
     lite.creatConnection();
     loadFamille();
 }
Esempio n. 7
0
        public GestionRisques()
        {
            InitializeComponent();
            lite = new DatabaseLite();
            lite.creatConnection();
            choixRupture = 1;

            getMateriaux();
        }
Esempio n. 8
0
 public DocumentsStocks()
 {
     InitializeComponent();
     decimalSeprerator = new CultureInfo("us-US");
     Thread.CurrentThread.CurrentCulture = decimalSeprerator;
     lite = new DatabaseLite();
     lite.creatConnection();
     dateDebutFiltre = DateTime.Now.AddYears(-1).Date.ToString("yyyy-MM-dd");
     dateFinFiltre   = DateTime.Now.AddYears(1).Date.ToString("yyyy-MM-dd");
     choixDocument   = 0;
     formLoaded      = 0;
     getAllDocuments();
 }
Esempio n. 9
0
        public ModifierFamille(String code, String design)
        {
            fa_code   = code;
            fa_design = design;

            InitializeComponent();
            codefam.Text   = code;
            designfam.Text = design;

            lite = new DatabaseLite();
            lite.creatConnection();

            Text = "FAMILLE:  " + fa_design;
        }
Esempio n. 10
0
        public StatsParMateriaux()
        {
            InitializeComponent();
            lite = new DatabaseLite();
            lite.creatConnection();

            listeMateriaux = new DataTable();
            listeMateriaux.Columns.Add("reference", typeof(Int64));
            listeMateriaux.Columns.Add("designation", typeof(String));
            loadDataTable();
            materiauxListCombo.DataSource    = listeMateriaux;
            materiauxListCombo.DisplayMember = "designation";
            materiauxListCombo.ValueMember   = "reference";
        }
Esempio n. 11
0
        public ModifierDepot(int refdepot, String intitudepot, String adrd)
        {
            InitializeComponent();

            lite = new DatabaseLite();
            lite.creatConnection();

            refDepot      = refdepot;
            intitu        = intitudepot;
            adrdepot      = adrd;
            intitule.Text = intitu;
            adr.Text      = adrd;

            Text = "DEPOT:  " + intitu;
        }
Esempio n. 12
0
        public CreerMateriaux()
        {
            InitializeComponent();
            lite = new DatabaseLite();
            lite.creatConnection();
            listeFamille = new DataTable();
            listeFamille.Columns.Add("reference", typeof(int));
            listeFamille.Columns.Add("designation", typeof(String));
            listeFamille.Rows.Add(-1, "");
            initFamille();
            artFamille.DataSource    = listeFamille;
            artFamille.DisplayMember = "designation";
            artFamille.ValueMember   = "reference";

            typesuivi = new DataTable();
            typesuivi.Columns.Add("reference", typeof(int));
            typesuivi.Columns.Add("designation", typeof(String));
            typesuivi.Rows.Add(1, "Entree/Sortie");
            typesuivi.Rows.Add(2, "Sortie Uniquement");
            suivistock.DataSource    = typesuivi;
            suivistock.DisplayMember = "designation";
            suivistock.ValueMember   = "reference";
        }
Esempio n. 13
0
 public CreerFamilles()
 {
     InitializeComponent();
     lite = new DatabaseLite();
     lite.creatConnection();
 }
Esempio n. 14
0
 public traitementHS()
 {
     mo_type = 0;
     lite    = new DatabaseLite();
     lite.creatConnection();
 }