예제 #1
0
 public DataTable GetAllCategories()
 {
     CmdCAP             = new SqlCommand();
     CmdCAP.CommandText = "spGetAllProducts_Category";
     CmdCAP.CommandType = CommandType.StoredProcedure;
     dt = CommonDbFunctions.SetToDataTable(CmdCAP);
     return(dt);
 }
예제 #2
0
 public DataTable getbrands()
 {
     CmdCAP             = new SqlCommand();
     CmdCAP.CommandText = "sp_getitembrand";
     CmdCAP.CommandType = CommandType.StoredProcedure;
     dt = CommonDbFunctions.SetToDataTable(CmdCAP);
     return(dt);
 }
예제 #3
0
 public DataTable getdescitems(int vid)
 {
     CmdCAP = new SqlCommand();
     CmdCAP.Parameters.Add(CommonDbFunctions.AddParameter("@vid", SqlDbType.Int, 100, vid));
     CmdCAP.CommandText = "sp_getvendoritemdesclist";
     CmdCAP.CommandType = CommandType.StoredProcedure;
     dt = CommonDbFunctions.SetToDataTable(CmdCAP);
     return(dt);
 }
예제 #4
0
        public DataTable getmaterialwork()
        {
            CmdCAP = new SqlCommand();

            CmdCAP.CommandText = "sp_getitemworktype";
            CmdCAP.CommandType = CommandType.StoredProcedure;
            dt = CommonDbFunctions.SetToDataTable(CmdCAP);
            return(dt);
        }
예제 #5
0
 public DataTable bindvendors()
 {
     CmdCAP = new SqlCommand();
     //CmdCAP.Parameters.Add(CommonDbFunctions.AddParameter("@Imode", SqlDbType.VarChar, 100, "select"));
     CmdCAP.CommandText = "getvendors";
     CmdCAP.CommandType = CommandType.StoredProcedure;
     dt = CommonDbFunctions.SetToDataTable(CmdCAP);
     return(dt);
 }
예제 #6
0
 public DataTable bindpcategories(int pid)
 {
     CmdCAP = new SqlCommand();
     CmdCAP.Parameters.Add(CommonDbFunctions.AddParameter("@pid", SqlDbType.Int, 0, pid));
     CmdCAP.CommandText = "sp_Products_Category";
     CmdCAP.CommandType = CommandType.StoredProcedure;
     dt = CommonDbFunctions.SetToDataTable(CmdCAP);
     return(dt);
 }
예제 #7
0
 public DataTable getitemname(int vid, int prodscatid)
 {
     CmdCAP = new SqlCommand();
     CmdCAP.Parameters.Add(CommonDbFunctions.AddParameter("@vid", SqlDbType.Int, 100, vid));
     CmdCAP.Parameters.Add(CommonDbFunctions.AddParameter("@prod_subcat_id", SqlDbType.Int, 100, prodscatid));
     CmdCAP.CommandText = "sp_getitemnames";
     CmdCAP.CommandType = CommandType.StoredProcedure;
     dt = CommonDbFunctions.SetToDataTable(CmdCAP);
     return(dt);
 }
예제 #8
0
 public DataTable bindsubcatbyvid(int prod_cat_id, int vid)
 {
     CmdCAP = new SqlCommand();
     CmdCAP.Parameters.Add(CommonDbFunctions.AddParameter("@prod_cat_id", SqlDbType.Int, 0, prod_cat_id));
     CmdCAP.Parameters.Add(CommonDbFunctions.AddParameter("@vid", SqlDbType.Int, 0, vid));
     CmdCAP.CommandText = "Sp_Products_Subcategorybyvid";
     CmdCAP.CommandType = CommandType.StoredProcedure;
     dt = CommonDbFunctions.SetToDataTable(CmdCAP);
     return(dt);
 }