예제 #1
0
 public int UpdateLoaiSP(Info.LoaiHHInfo info)
 {
     cn.ExecuteNonQuery("sp_UpdateLOAI_SP",
                        new string[] { "@MA", "@TEN", "@MOTA" },
                        new object[] { info.MA, info.TEN, info.MOTA });
     return(1);
 }
예제 #2
0
        public int DeleteLoaiSP(Info.LoaiHHInfo info)
        {
            int id = cn.ExecuteNonQuery("sp_Deleteloaihh",
                                        new string[] { "@MA" },
                                        new object[] { info.MA });

            return(id);
        }
예제 #3
0
        public int InsertLoaiSP(Info.LoaiHHInfo info)
        {
            int id = cn.ExecuteInsert("sp_InsertLOAI_SP",
                                      new string[] { "@TEN", "@MOTA" },
                                      new object[] { info.TEN, info.MOTA });

            return(id);
        }