Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     Reports.FeeReportView fv = new Reports.FeeReportView();
     fv.dataSet = ds;
     fv.purpose = "Fee Collection for between: " + dtFrom.Text + " and  " + dtTo.Text + "";
     fv.Show();
     this.Hide();
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Reports.FeeReportView fv = new Reports.FeeReportView();
     fv.dataSet = ds;
     fv.purpose = "Fee Collection for Class: " + comboClass.Text + " and session " + comboSession.Text + "";
     fv.Show();
     this.Hide();
 }
Exemple #3
0
 private void PrintbySession_Click(object sender, EventArgs e)
 {
     Reports.FeeReportView fv = new Reports.FeeReportView();
     fv.dataSet = ds;
     fv.purpose = "Fee Collection for Session: " + comboSession1.Text + "";
     fv.Show();
     this.Hide();
 }
Exemple #4
0
 private void PrintOverAll_Click(object sender, EventArgs e)
 {
     ds = SqlHelper.ExecuteDataset(Connection.Connection_string, "SelectAllMonthlyFee");
     Reports.FeeReportView fv = new Reports.FeeReportView();
     fv.dataSet = ds;
     fv.purpose = "Overall fee collection";
     fv.Show();
     this.Hide();
 }
Exemple #5
0
        private void btnDailyCollectionPrint_Click(object sender, EventArgs e)
        {
            SqlParameter[] m = new SqlParameter[1];

            m[0] = new SqlParameter("@Date", Convert.ToDateTime(DateTime.Now).ToShortDateString());

            ds = SqlHelper.ExecuteDataset(Connection.Connection_string, "DailyFeeCollection", m);
            Reports.FeeReportView fv = new Reports.FeeReportView();
            fv.dataSet = ds;
            fv.purpose = "Fee Collection for date: " + Convert.ToDateTime(DateTime.Now).ToShortDateString() + "";
            fv.Show();
            this.Hide();
        }
Exemple #6
0
        private void StudentwiseFeePrint_Click(object sender, EventArgs e)
        {
            string Name = string.Empty;
            string cls  = string.Empty;

            string[] chk = txtStudent.Text.Split('_');
            if (chk.Count() > 0)
            {
                Name = chk.ElementAt(0);
                cls  = chk.ElementAt(3);
                Reports.FeeReportView fv = new Reports.FeeReportView();
                fv.dataSet = ds;
                fv.purpose = "Fee Collection for: " + Name + " of class  " + cls + "";
                fv.Show();
                this.Hide();
            }
        }