Ejemplo n.º 1
0
        private void grvDanhSach_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                if (grvDanhSach.FocusedRowHandle < 0)
                {
                    return;
                }
                ChungTuXuatTieuHaoInfornew item = (ChungTuXuatTieuHaoInfornew)grvDanhSach.GetFocusedRow();
                if (item == null)
                {
                    return;
                }
                frm_PhieuNhapTieuHao frm = new frm_PhieuNhapTieuHao(item.IdChungTu, item.SoChungTu, item.NgayXuatHang.ToString(),
                                                                    item.SoChungTuGoc, item.IdChungTuGoc, item.TrangThai, item.HoTen, item.TenTrungTam, item.TenKho, item.NguoiXuat,
                                                                    item.GhiChu, item.IdNhanVienGiao, item.NgayLap.ToString(), item.IdKho);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    liDM = NhapTieuHaoProvider.GetListXuatTieuHao();
                    grcDanhSach.DataSource = liDM;
                }
            }
            catch (Exception ex)
            {
#if DEBUG
                MessageBox.Show(ex.ToString(), Declare.titleError, MessageBoxButtons.OK, MessageBoxIcon.Error);
#else
                MessageBox.Show(ex.Message, Declare.titleError, MessageBoxButtons.OK, MessageBoxIcon.Error);
#endif
                EventLogProvider.Instance.WriteLog(ex.ToString()
                                                   + "\nUser: "******"\nKho: " + Declare.IdKho,
                                                   this.Name);
            }
        }
 public frm_ChiTietMaVachNhapTieuHao(frm_PhieuNhapTieuHao frm, ChungTuCTHanghoaBasePairInfo li, List <ChungTu_ChiTietHangHoaXTHInfo> liChiTiet, int idChungTuChiTiet)
     : base(li)
 {
     this.frm              = frm;
     this.liHangHoa        = li;
     this.liChiTiet        = liChiTiet;
     this.IdChungTuChiTiet = idChungTuChiTiet;
 }
Ejemplo n.º 3
0
        private void btnMoPhieu_Click(object sender, EventArgs e)
        {
            if (grvDanhSach.FocusedRowHandle < 0)
            {
                return;
            }
            ChungTuXuatTieuHaoInfornew item = (ChungTuXuatTieuHaoInfornew)grvDanhSach.GetFocusedRow();
            frm_PhieuNhapTieuHao       frm  = new frm_PhieuNhapTieuHao(item.IdChungTu, item.SoChungTu, item.NgayXuatHang.ToString(),
                                                                       item.SoChungTuGoc, item.IdChungTuGoc, item.TrangThai, item.HoTen, item.TenTrungTam, item.TenKho, item.NguoiXuat,
                                                                       item.GhiChu, item.IdNhanVienGiao, item.NgayLap.ToString(), item.IdKho);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                liDM = NhapTieuHaoProvider.GetListXuatTieuHao();
                grcDanhSach.DataSource = liDM;
            }
        }