private void Luu()
 {
     BONhanVien.Luu(lsArray);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }
示例#2
0
        private void btnLuu_Click(object sender, RoutedEventArgs e)
        {
            List <Data.BOMenuItemMayIn> lsArray        = new List <Data.BOMenuItemMayIn>();
            List <Data.BOMenuItemMayIn> lsArrayDeleted = new List <Data.BOMenuItemMayIn>();

            foreach (ShowData item in lvData.Items)
            {
                if (item.Values == true)
                {
                    if (item.MenuItemMayIn.MenuItemMayIn.MayInID == 0)
                    {
                        item.MenuItemMayIn.MenuItemMayIn.MayInID = item.MenuItemMayIn.MayIn.MayInID;
                        item.MenuItemMayIn.MenuItemMayIn.MonID   = _Mon.MenuMon.MonID;
                        item.MenuItemMayIn.MenuItemMayIn.Deleted = false;
                        item.MenuItemMayIn.MenuItemMayIn.Visual  = true;
                        lsArray.Add(item.MenuItemMayIn);
                    }
                }
                else
                {
                    if (item.MenuItemMayIn.MenuItemMayIn.MayInID > 0)
                    {
                        lsArrayDeleted.Add(item.MenuItemMayIn);
                    }
                }
            }
            BOMenuItemMayIn.Luu(lsArray, lsArrayDeleted, mTransit);
            LoadDanhSach();
            UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
            messageBox.ShowDialog();
        }
 private void Luu()
 {
     BOLichBieuKhongDinhKy.Luu(lsArray);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     List<Data.BOQuyenNhanVien> lsArray = new List<Data.BOQuyenNhanVien>();
     List<Data.BOQuyenNhanVien> lsArrayDeleted = new List<Data.BOQuyenNhanVien>();
     foreach (ShowData item in lvData.Items)
     {
         if (item.Values == true)
         {
             if (item.QuyenNhanVien.QuyenNhanVien.NhanVienID == 0 || item.QuyenNhanVien.QuyenNhanVien.NhanVienID == null)
             {
                 item.QuyenNhanVien.QuyenNhanVien.NhanVienID = item.QuyenNhanVien.NhanVien.NhanVienID;
                 item.QuyenNhanVien.QuyenNhanVien.QuyenID = mQuyen.MaQuyen;
                 item.QuyenNhanVien.QuyenNhanVien.Deleted = false;
                 item.QuyenNhanVien.QuyenNhanVien.Visual = true;
                 lsArray.Add(item.QuyenNhanVien);
             }
         }
         else
         {
             if (item.QuyenNhanVien.QuyenNhanVien.NhanVienID > 0)
             {
                 lsArrayDeleted.Add(item.QuyenNhanVien);
             }
         }
     }
     BOQuyenNhanVien.Luu(lsArray, lsArrayDeleted, mTransit);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }
示例#5
0
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     BOQuyen.Luu(lsArray);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     List<Data.BOMenuGia> lsArray = new List<Data.BOMenuGia>();
     foreach (Data.BOMenuGia li in lvData.Items)
     {
         lsArray.Add(li);
     }
     BOMenuGia.Luu(lsArray, mTransit);
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
     LoadDanhSachGiaBan();
 }
        private void btnLuu_Click(object sender, RoutedEventArgs e)
        {
            List <Data.BOMenuGia> lsArray = new List <Data.BOMenuGia>();

            foreach (Data.BOMenuGia li in lvData.Items)
            {
                lsArray.Add(li);
            }
            BOMenuGia.Luu(lsArray, mTransit);
            UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
            messageBox.ShowDialog();
            LoadDanhSachGiaBan();
        }
        private void btnLuu_Click(object sender, RoutedEventArgs e)
        {
            List <Data.BOChiTietQuyen> lsArray = new List <Data.BOChiTietQuyen>();

            foreach (Data.BOChiTietQuyen item in lvData.Items)
            {
                lsArray.Add(item);
            }
            BOChiTietQuyen.Luu(lsArray, mTransit);
            LoadDanhSach();
            UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
            messageBox.ShowDialog();
            DialogResult = true;
        }
        private void btnLuu_Click(object sender, RoutedEventArgs e)
        {
            btnLuu.Focus();
            List <Data.BODinhLuong> ls = new List <Data.BODinhLuong>();

            foreach (Data.BODinhLuong s in lvData.Items)
            {
                s.DinhLuong.KichThuocBan = s.DinhLuong.KichThuocBan;
                ls.Add(s);
            }
            BODinhLuong.Luu(ls, lsArrayDeleted, mTransit);
            LoadDanhSach();
            UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
            messageBox.ShowDialog();
        }
        private void btnLuu_Click(object sender, RoutedEventArgs e)
        {
            List <Data.BOMenuKichThuocMon> lsArray = null;

            foreach (ListViewItem li in lvData.Items)
            {
                mItem = (Data.BOMenuKichThuocMon)li.Tag;
                if (mItem.MenuKichThuocMon.KichThuocMonID == 0 || mItem.MenuKichThuocMon.Edit == true)
                {
                    if (lsArray == null)
                    {
                        lsArray = new List <Data.BOMenuKichThuocMon>();
                    }
                    lsArray.Add(mItem);
                }
            }
            BOMenuKichThuocMon.Luu(lsArray, lsArrayDeleted, mTransit);
            LoadDanhSach();
            UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
            messageBox.ShowDialog();
        }
示例#11
0
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     BOQuyen.Luu(lsArray);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     List<Data.BOXuLyKho> lsArray = null;
     foreach (ListViewItem li in lvData.Items)
     {
         mItem = (Data.BOXuLyKho)li.Tag;
         if (mItem.XuLyKho.ChinhKhoID == 0 || mItem.XuLyKho.Edit == true)
         {
             if (lsArray == null)
                 lsArray = new List<Data.BOXuLyKho>();
             lsArray.Add(mItem);
         }
     }
     BOXuLyKho.Luu(lsArray, lsArrayDeleted, mTransit);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }
 private void btnLuu_Click(object sender, RoutedEventArgs e)
 {
     btnLuu.Focus();
     List<Data.BODinhLuong> ls = new List<Data.BODinhLuong>();
     foreach (Data.BODinhLuong s in lvData.Items)
     {
         s.DinhLuong.KichThuocBan = s.DinhLuong.KichThuocBan;
         ls.Add(s);
     }
     BODinhLuong.Luu(ls, lsArrayDeleted, mTransit);
     LoadDanhSach();
     UserControlLibrary.WindowMessageBox messageBox = new UserControlLibrary.WindowMessageBox(mTransit.StringButton.LuuThanhCong);
     messageBox.ShowDialog();
 }