示例#1
0
        private void btnSalesReport_Click(object sender, EventArgs e)
        {
            int salesid = 0;
            if(!String.IsNullOrEmpty(this.txtSalesId.Text))
            {
                salesid = Convert.ToInt32(this.txtSalesId.Text);
            }


            //int modelId = cmbModelName.SelectedItem != "" ? Convert.ToInt32(cmbModelName.SelectedValue) : 0;
            frmReportWindow frm = new frmReportWindow();
            frm.LoadReport(2, 1, salesid);
            frm.Show();

        }
示例#2
0
 private void btnReport_Click(object sender, EventArgs e)
 {
     int modelId = cmbModelName.SelectedItem != "" ? Convert.ToInt32(cmbModelName.SelectedValue) : 0;
    frmReportWindow frm=new frmReportWindow();
    frm.LoadReport(1, 1, modelId);
    frm.Show();
 }