Exemple #1
0
 private void ShowVendorList()
 {
     Cursor.Current = Cursors.WaitCursor;
     Reports.frmVendorsList frm = new frmVendorsList();
     frm.SetReportParameters(chkListReportColumns);
     frm.Show();
     Cursor.Current = Cursors.Default;
 }
Exemple #2
0
        private void LoadParametersList()
        {
            IList <string> ParamArray = null;

            chkListReportColumns.Items.Clear();
            switch (cmbReports.Text)
            {
            case "Customers List":
                Reports.frmCustomerList       frm = new frmCustomerList();
                ReportParameterInfoCollection p   = frm.GetReportParamters();
                for (int i = 0; i < p.Count; i++)
                {
                    chkListReportColumns.Items.Add(p[i].Name, true);
                }
                //chkListReportColumns.Items.Add("ID", false);
                //chkListReportColumns.Items.Add("name", true);
                //chkListReportColumns.Items.Add("address", true);
                //chkListReportColumns.Items.Add("phone", true);

                break;

            case "Vendors List":
                Reports.frmVendorsList        frmV      = new frmVendorsList();
                ReportParameterInfoCollection VendParam = frmV.GetReportParamters();
                ParamArray = VendParam[0].Values;
                for (int i = 0; i < ParamArray.Count; i++)
                {
                    chkListReportColumns.Items.Add(ParamArray[i], true);
                }
                break;

            case "Products List":
                Reports.frmProductsList       frmP      = new frmProductsList();
                ReportParameterInfoCollection ProdParam = frmP.GetReportParamters();
                ParamArray = ProdParam[0].Values;
                for (int i = 0; i < ParamArray.Count; i++)
                {
                    chkListReportColumns.Items.Add(ParamArray[i], true);
                }
                break;

            default:
                break;
            }
        }