예제 #1
0
        private void SetInvoiceTable()
        {
            _dt_invoice = sql.FilterDataTable(FM_LoginScreen.conString, "InvoiceTable", cb_clientID.Text);
            List <string> invoiceID = new List <string>();

            if (_dt_invoice.Rows.Count == 0)
            {
                cb_invoiceNo.DataSource = new List <string>(); ClearInvoiceInfo(); return;
            }
            for (int dtrows = 0; dtrows < _dt_invoice.Rows.Count; dtrows++)
            {
                invoiceID.Add(Convert.ToString(_dt_invoice.Rows[dtrows][0]));
            }
            //Debug.WriteLine("invoiceID cound = " + invoiceID.Count);
            cb_invoiceNo.DataSource = invoiceID;
            SetInvoiceinfo();
        }
예제 #2
0
 private void Set_Data_Table()
 {
     dt = sql.FilterDataTable(FM_LoginScreen.conString, "InvoiceTable", cb_clientName.Text);
     Set_Invoice_fields();
 }