コード例 #1
0
 public static IQueryable <BAN> GetAllTableInOrderPerArea(KHU khu, Transit transit)
 {
     return(from a in GetVisual(transit)
            join b in BOBanHang.GetAllNotCompleted(transit.KaraokeEntities) on a.BanID equals b.BanID
            where a.KhuID == khu.KhuID
            select a);
 }
コード例 #2
0
        public static IQueryable <BAN> GetAllTableNotInOrderPerArea(KHU khu, Transit transit)
        {
            var listIn = GetAllTableInOrderPerArea(khu, transit);

            return(from a in GetVisual(transit)
                   where !listIn.Contains(a) && a.KhuID == khu.KhuID
                   select a);
        }
コード例 #3
0
        public void sua(KHU a)
        {
            KHU x = tim(a.makhu);

            if (x != null)
            {
                x.tenkhu       = a.tenkhu;
                x.soluongtoida = a.soluongtoida;
                tc.capnhat();
            }
        }
コード例 #4
0
        private void CommandBinding_Executed_themKhu(object sender, ExecutedRoutedEventArgs e)
        {
            KHU a = new KHU();

            a.makhu        = txtMakhu.Text;
            a.tenkhu       = txtTenkhu.Text;
            a.soluongtoida = int.Parse(txtSoluongtoida.Text);

            xl.them(a);

            dgKhu.ItemsSource = xl.getDSKhu();;
        }
コード例 #5
0
        private void dgKhu_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            KHU k = (KHU)dgKhu.SelectedItem;

            if (k == null)
            {
                return;
            }
            txtMakhu.Text        = k.makhu;
            txtTenkhu.Text       = k.tenkhu;
            txtSoluongtoida.Text = k.soluongtoida.ToString();
        }
コード例 #6
0
        private void CommandBinding_Executed_xoaKhu(object sender, ExecutedRoutedEventArgs e)
        {
            KHU a = (KHU)dgKhu.SelectedItem;

            xl.xoa(a);

            txtMakhu.Text        = "";
            txtTenkhu.Text       = "";
            txtSoluongtoida.Text = "";

            dgKhu.ItemsSource = xl.getDSKhu();
        }
コード例 #7
0
        private void CommandBinding_Executed_timkiemKhu(object sender, ExecutedRoutedEventArgs e)
        {
            KHU a = xl.tim(txtMakhu.Text);

            if (a == null)
            {
                MessageBox.Show("Không tìm thấy!");
            }
            else
            {
                //MessageBox.Show("Mã khu: " + a.makhu + "\nTên khu: " + a.tenkhu + "\nSố lượng tối đa: " + a.soluongtoida);
                dgKhu.ItemsSource = xl.getDSKhu().Where(x => x.makhu == a.makhu);
            }
        }
コード例 #8
0
 public IQueryable <BAN> GetAllTableNotInOrderPerArea(KHU khu)
 {
     return(Data.BOBan.GetAllTableNotInOrderPerArea(khu, mTransit));
 }
コード例 #9
0
 public void xoa(KHU k)
 {
     dskhu.DeleteOnSubmit(k);
     tc.capnhat();
 }
コード例 #10
0
 public void them(KHU k)
 {
     k.makhu = k.makhu.ToUpper();
     dskhu.InsertOnSubmit(k);
     tc.capnhat();
 }
コード例 #11
0
 public static IQueryable <BAN> GetVisualTablePerArea(KHU khu, Transit transit)
 {
     return(from a in GetVisual(transit)
            where a.KhuID == khu.KhuID
            select a);
 }
コード例 #12
0
 public IQueryable <BAN> GetVisualTablePerArea(KHU khu)
 {
     frBan.Refresh();
     return(GetVisualTablePerArea(khu, mTransit));
 }
コード例 #13
0
 public IQueryable <BAN> GetAllTablePerArea(KHU khu)
 {
     frBan.Refresh();
     return(frBan.Query().Where(o => o.KhuID == khu.KhuID && o.Deleted == false));
 }
コード例 #14
0
 public IQueryable <BAN> GetVisualTablePerArea(KHU khu)
 {
     return(Data.BOBan.GetVisualTablePerArea(khu, mTransit));
 }
コード例 #15
0
 public IQueryable <BAN> GetAllTableInOrderPerArea(KHU khu, int banID)
 {
     return(from a in Data.BOBan.GetAllTableInOrderPerArea(khu, mTransit)
            where a.BanID != banID || banID == 0
            select a);
 }