Ejemplo n.º 1
0
 public bool XoaCTPXuat(Businessobject.ChiTietPX objec)
 {
     try
     {
         SqlCommand cmd = new SqlCommand("delete from CTPXuat where MAPX='" + objec.MaPX + "'");
         m_ds.ExecuteNoneQuery(cmd);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
        public bool insertCTPX(Businessobject.ChiTietPX ctpx)
        {
            SqlCommand cmd = new SqlCommand("insert into CTPXuat values('" + ctpx.MaPX + "','" +
                                            ctpx.MaHang + "','" +
                                            ctpx.SoLuong + "',N'" +
                                            ctpx.NgayXuat + "','" +
                                            ctpx.DonGia + "','" +
                                            ctpx.Thue + "',N'" +
                                            ctpx.Manhanvien + "',N'" +
                                            ctpx.Makhachhang + "')");

            m_ds.ExecuteNoneQuery(cmd);
            return(true);
        }