public void set(YCXUAT yc) { label1.Text += " " + yc.ID; label2.Text += " " + yc.NGAY.ToString("dd/MM/yyyy"); label3.Text += " " + yc.CUAHANG.TENCH; gridControl2.DataSource = BUS.QLNHAP_BUS.loadpn(yc.ID); }
public static int sua(YCXUAT yc) { try { DAO.QLXUAT.sua(yc); return(1); } catch (Exception ex) { Console.WriteLine(ex.Message); return(0); } }
public void set(YCXUAT yc, int manv, List <SANPHAM> ds) { dssp = ds; px.ID = yc.ID; px.IDCH = yc.IDCH; px.CUAHANG = yc.CUAHANG; px.IDNV = manv; px.GHICHU = yc.GHICHU; richTextBox2.Text = px.GHICHU; textBox1.Text = px.CUAHANG.TENCH; List <CTYCX> ctdh = BUS.QLXUAT_BUS.loadyc(yc.ID); foreach (var ct in ctdh) { CTPX ctt = new CTPX(); ctt.ID = ct.ID; ctt.IDSP = ct.IDSP; ctt.SANPHAM = ct.SANPHAM; ctt.SL = ct.SL; ctt.GHICHU = ct.GHICHU; dsct.Add(ctt); } gridControl2.DataSource = dsct; }
public static void xoa(YCXUAT yc) { DAO.QLXUAT.xoa(yc); }
public static void xoa(YCXUAT yc) { db.YCXUATs.Remove(yc); db.SaveChanges(); }
public static void sua(YCXUAT yc) { db.Entry(yc).State = EntityState.Modified; db.SaveChanges(); }
public static void them(YCXUAT yc) { db.YCXUATs.Add(yc); db.SaveChanges(); }