public DataTable laydonvi(THUOCdto p) { int thamso = 1; string[] name = new string[thamso]; object[] values = new object[thamso]; name[0] = "@mathuoc"; values[0] = p.Mathuoc; return ketnoi.laydulieu("donvithuoc", name, values, thamso); }
public int xoathuoc(THUOCdto p) { int thamso = 1; string[] name = new string[thamso]; object[] values = new object[thamso]; name[0] = "@mathuoc"; values[0] = p.Mathuoc; return ketnoi.update("xoathuoc", name, values, thamso); }
public int themthuoc(THUOCdto p) { int thamso = 4; string[] name = new string[thamso]; object[] values = new object[thamso]; name[0] = "@mathuoc"; name[1] = "@tenthuoc"; name[2] = "@dongia"; name[3] = "@donvi"; values[0] = p.Mathuoc; values[1] = p.Tenthuoc; values[2] = p.Dongia; values[3] = p.Donvi; return ketnoi.update("insert_thuoc", name, values, thamso); }
public int xoathuoc(THUOCdto p) { return thuoc.xoathuoc(p); }
public int themthuoc(THUOCdto p) { return thuoc.themthuoc(p); }
public int suathuoc(THUOCdto p) { return thuoc.suathuoc(p); }
public DataTable laydonvithuoc(THUOCdto p) { return thuoc.laydonvi(p); }