コード例 #1
0
        public VentesADate()
        {
            InitializeComponent();
            sqlserver = new SqlserverConnection();

            arrColumnLefts  = new List <int>();
            arrColumnWidths = new List <int>();
            iRow            = 0;
        }
コード例 #2
0
        public Form1()
        {
            InitializeComponent();
            connector = new SqlserverConnection();

            productList = new DataTable();
            productList.Columns.Add("reference", typeof(String));
            productList.Columns.Add("designation", typeof(String));

            listeArticle.DataSource    = productList;
            listeArticle.DisplayMember = "designation";
            listeArticle.ValueMember   = "reference";
        }
コード例 #3
0
        public GestionReliquat()
        {
            InitializeComponent();
            sqlconn = new SqlserverConnection();
            head    = null;

            arrColumnLefts  = new List <int>();
            arrColumnWidths = new List <int>();
            iRow            = 0;

            printPreviewDialog1.ClientSize = new System.Drawing.Size(960, 700);
            printPreviewDialog1.Location   = new System.Drawing.Point(29, 29);
        }
コード例 #4
0
        public Preparation()
        {
            InitializeComponent();
            dbcon = new SqlserverConnection();

            listeArticles = new DataTable();
            listeArticles.Columns.Add("reference", typeof(String));
            listeArticles.Columns.Add("designation", typeof(String));
            listeArticles.Columns.Add("prix vente", typeof(Decimal));

            articles.DataSource    = listeArticles;
            articles.DisplayMember = "designation";
            articles.ValueMember   = "reference";

            getArticles();
        }
コード例 #5
0
        private int choix;/*
                           * vaut 0 si l'operation est basee sur les factures, 1 si il s'agit des devis
                           */

        public AnalyseArticles()
        {
            server = new SqlserverConnection();
            cnnp   = server.getConnector();
        }
コード例 #6
0
 public StockHebdo(int vendu = 1)
 {
     this.vendu = vendu;
     articles   = null;
     sqlsrv     = new SqlserverConnection();
 }