Пример #1
0
 public bool capnhathucdon(cls_SanPham _thucdon)
 {
     return(data.MyExcuteNonQuery("PSP_ThucDon_CapNhat", CommandType.StoredProcedure
                                  , new SqlParameter("@MaMon", _thucdon.MaMon)
                                  , new SqlParameter("@TenMon", _thucdon.TenMon)
                                  , new SqlParameter("@DonGia", _thucdon.DonGia)));
 }
Пример #2
0
 private void LayDuLieuVaoDTThucDon()
 {
     _thucdon = new cls_SanPham();
     if (!string.IsNullOrEmpty(txtmamon.Text))
     {
         _thucdon.MaMon = txtmamon.Text;
     }
     else
     {
         _thucdon.MaMon = "";
     }
     _thucdon.TenMon = txttenmon.Text;
     _thucdon.DonGia = Convert.ToInt32(txtgiaban.Text);
 }