Exemple #1
0
    public DataTable GetTime(ConnectionSql con)
    {
        SortedList s1 = new SortedList();

        s1.Add("@mode", "BindActive");
        DataTable dt = con.GetDataTableSP("SP_MstShiftMaster", s1);

        return(dt);
    }
Exemple #2
0
    public void display()
    {
        SortedList s = new SortedList();

        s.Add("@mode", "Display");
        DataTable dt = con.GetDataTableSP("SP_Post", s);

        if (dt != null && dt.Rows.Count > 0)
        {
            datalist1.DataSource = dt;
            datalist1.DataBind();
        }
    }