Example #1
0
 public static DataSet GetDropDownListAllIncome()
 {
     DataSet incomes = new DataSet();
     SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();
     incomes = sqlIncomeProvider.GetDropDownLisAllIncome();
     return incomes;
 }
Example #2
0
 public static Income GetIncomeByIncomeID(int IncomeID)
 {
     Income income = new Income();
     SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();
     income = sqlIncomeProvider.GetIncomeByIncomeID(IncomeID);
     return income;
 }
Example #3
0
    public static Income GetIncomeByIncomeID(int IncomeID)
    {
        Income            income            = new Income();
        SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();

        income = sqlIncomeProvider.GetIncomeByIncomeID(IncomeID);
        return(income);
    }
Example #4
0
    public static DataSet  GetDropDownListAllIncome()
    {
        DataSet           incomes           = new DataSet();
        SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();

        incomes = sqlIncomeProvider.GetDropDownLisAllIncome();
        return(incomes);
    }
Example #5
0
 public static void LoadIncomePage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
 {
     int recordCount=0;
     int PageSize =  int.Parse(ddlPageSize.SelectedValue);
     SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();
     DataSet ds =  sqlIncomeProvider.GetIncomePageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      incomesPaggination(rptPager,recordCount, pageIndex, PageSize);
 }
Example #6
0
    public static void LoadIncomePage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
    {
        int recordCount = 0;
        int PageSize    = int.Parse(ddlPageSize.SelectedValue);
        SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();
        DataSet           ds = sqlIncomeProvider.GetIncomePageWise(pageIndex, PageSize, out recordCount);

        gv.DataSource = ds;
        gv.DataBind();
        incomesPaggination(rptPager, recordCount, pageIndex, PageSize);
    }
Example #7
0
 public static bool UpdateIncome(Income income)
 {
     SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();
     return sqlIncomeProvider.UpdateIncome(income);
 }
Example #8
0
 public static int InsertIncome(Income income)
 {
     SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();
     return sqlIncomeProvider.InsertIncome(income);
 }
Example #9
0
 public static bool DeleteIncome(int incomeID)
 {
     SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();
     return sqlIncomeProvider.DeleteIncome(incomeID);
 }
Example #10
0
    public static bool DeleteIncome(int incomeID)
    {
        SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();

        return(sqlIncomeProvider.DeleteIncome(incomeID));
    }
Example #11
0
    public static bool UpdateIncome(Income income)
    {
        SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();

        return(sqlIncomeProvider.UpdateIncome(income));
    }
Example #12
0
    public static int InsertIncome(Income income)
    {
        SqlIncomeProvider sqlIncomeProvider = new SqlIncomeProvider();

        return(sqlIncomeProvider.InsertIncome(income));
    }