コード例 #1
0
        private void BtnLoadStreet_Click(object sender, EventArgs e)
        {
            try
            {
                if (CMX_Street.SelectedItem == null)
                {
                    LblStreet.ForeColor = Color.Red;
                }
                else
                {
                    LblStreet.ForeColor = Color.Black;
                    this.vIW_GetPeopleData1TableAdapter.FillByStreet(this.goodShepherdDataSet.VIW_GetPeopleData1, Convert.ToInt32(CMX_Street.Value));

                    //creating a new Report (FBCReport.rpt)
                    ReportDocument reportDocument = new ReportPeopleData();
                    reportDocument.Load("ReportPeopleData.rpt");

                    reportDocument.SetDataSource(goodShepherdDataSet);
                    reportDocument.SetParameterValue("Adress", CMX_Street.Text);

                    CR.ReportSource = reportDocument;
                    //CR.Refresh();
                }
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(ex.Message, this.Name, "BtnLoadStreet_Click");
            }
        }
コード例 #2
0
        private void BtnEduc_Click(object sender, EventArgs e)
        {
            if (CMX_Educ.SelectedItem == null)
            {
                LblEduc.ForeColor = Color.Red;
            }
            else
            {
                this.vIW_GetPeopleData1TableAdapter.FillByEduc(this.goodShepherdDataSet.VIW_GetPeopleData1, Convert.ToInt32(CMX_Educ.Value));
                //creating a new Report (FBCReport.rpt)
                ReportDocument reportDocument = new ReportPeopleData();
                reportDocument.Load("ReportPeopleData.rpt");
                reportDocument.SetDataSource(goodShepherdDataSet);
                reportDocument.SetParameterValue("Adress", "بمرحلة  : " + CMX_Educ.Text);

                CR.ReportSource = reportDocument;
            }
        }
コード例 #3
0
        private void BtnLoadStatus_Click(object sender, EventArgs e)
        {
            if (CMX_Status.SelectedItem == null)
            {
                LblStatus.ForeColor = Color.Red;
            }
            else
            {
                LblStatus.ForeColor = Color.Black;
                this.vIW_GetPeopleData1TableAdapter.FillByStatuse(this.goodShepherdDataSet.VIW_GetPeopleData1, Convert.ToString(CMX_Status.Value));
                //creating a new Report (FBCReport.rpt)
                ReportDocument reportDocument = new ReportPeopleData();
                reportDocument.Load("ReportPeopleData.rpt");
                reportDocument.SetDataSource(goodShepherdDataSet);
                reportDocument.SetParameterValue("Adress", "الحالة الاجتماعية   : " + CMX_Status.Text);

                CR.ReportSource = reportDocument;
            }
        }
コード例 #4
0
        private void BtnServices_Click(object sender, EventArgs e)
        {
            if (CMX_Services.SelectedItem == null)
            {
                LblServices.ForeColor = Color.Red;
            }
            else
            {
                LblServices.ForeColor = Color.Black;
                this.vIW_GetPeopleData1TableAdapter.FillByService(this.goodShepherdDataSet.VIW_GetPeopleData1, BasicClass.vChurchID, Convert.ToInt32(CMX_Services.Value));
                //creating a new Report (FBCReport.rpt)
                ReportDocument reportDocument = new ReportPeopleData();
                reportDocument.Load("ReportPeopleData.rpt");
                reportDocument.SetDataSource(goodShepherdDataSet);
                reportDocument.SetParameterValue("Adress", "بخدمة  : " + CMX_Services.Text);

                CR.ReportSource = reportDocument;
            }
        }
コード例 #5
0
        private void BtnLoadFather_Click(object sender, EventArgs e)
        {
            if (CMX_FatherName.SelectedItem == null)
            {
                LblFather.ForeColor = Color.Red;
            }
            else
            {
                LblFather.ForeColor = Color.Black;
                this.vIW_GetPeopleData1TableAdapter.FillByFrPers(this.goodShepherdDataSet.VIW_GetPeopleData1, Convert.ToInt32(CMX_FatherName.Value));

                //creating a new Report (FBCReport.rpt)
                ReportDocument reportDocument = new ReportPeopleData();
                reportDocument.Load("ReportPeopleData.rpt");
                reportDocument.SetDataSource(goodShepherdDataSet);
                reportDocument.SetParameterValue("Adress", "اب اعتراف  : " + CMX_FatherName.Text);

                CR.ReportSource = reportDocument;
            }
        }
コード例 #6
0
        private void BtnWork_Click(object sender, EventArgs e)
        {
            if (CMX_Work.SelectedItem == null)
            {
                LblWork.ForeColor = Color.Red;
            }
            else if (CMX_CIty.SelectedItem == null)
            {
                LblCity.ForeColor = Color.Red;
            }
            else
            {
                LblWork.ForeColor = Color.Black;
                this.vIW_GetPeopleData1TableAdapter.FillByIsWork(this.goodShepherdDataSet.VIW_GetPeopleData1, Convert.ToString(CMX_Work.Value), BasicClass.vCityID);
                //creating a new Report (FBCReport.rpt)
                ReportDocument reportDocument = new ReportPeopleData();
                reportDocument.Load("ReportPeopleData.rpt");
                reportDocument.SetDataSource(goodShepherdDataSet);
                reportDocument.SetParameterValue("Adress", "حالة العمل : " + CMX_Work.Text);

                CR.ReportSource = reportDocument;
            }
        }
コード例 #7
0
        //--------------------------------------------------------------
        private void BtnLoadCity_Click(object sender, EventArgs e)
        {
            if (CMX_CIty.SelectedItem == null)
            {
                LblCity.ForeColor = Color.Red;
            }
            else
            {
                //CR.ReportSource = null;

                LblCity.ForeColor = Color.Black;
                this.vIW_GetPeopleData1TableAdapter.FillByCity(this.goodShepherdDataSet.VIW_GetPeopleData1, Convert.ToInt32(CMX_CIty.Value));

                //creating a new Report (FBCReport.rpt)
                ReportDocument RPT_City = new ReportPeopleData();
                RPT_City.Load("ReportPeopleData.rpt");
                RPT_City.SetDataSource(goodShepherdDataSet);
                RPT_City.SetParameterValue("Adress", "بمحافظة : " + CMX_CIty.Text);

                CR.ReportSource = RPT_City;
                //CR.Refresh();
            }
        }