Example #1
0
        private void btnDongBo_Click(object sender, EventArgs e)
        {
            string functionName = "SynsNhapThanhPham";

            LockControl.Lock(functionName);
            frmProgress.Instance.Text     = "Đồng bộ dữ liệu";
            frmProgress.Instance.MaxValue = 3;
            frmProgress.Instance.DoWork(SynsNhapThanhPham);
            liChiTiet = SanXuatLenhProvier.GetAllSanXuatLenh(MaKho, MaTrungTam, "GHEPMA");

            CheckTrangthai();
            dgvChiTiet.DataSource = liChiTiet;
        }
Example #2
0
 private void frmDanhSachNhapComBo_Load(object sender, EventArgs e)
 {
     btnTim.Visible = false;
     clsUtils.NullColumnDateTimeGrid(repdtngaylap);
     LoadTrangthai();
     btnTim.Text          = Resources.btnSearch;
     btnChiTiet.Text      = Resources.btnInfor;
     MaTrungTam           = GetMaTrungTam();
     MaKho                = GetMaKho();
     dteLastSync.DateTime = SanXuatLenhProvier.GetMaxDateSanXuatLenh(MaTrungTam);
     //LoadDateTime();
     liChiTiet = SanXuatLenhProvier.GetAllSanXuatLenh(MaKho, MaTrungTam, "GHEPMA");
     CheckTrangthai();
     dgvChiTiet.DataSource = liChiTiet;
 }
Example #3
0
 public void Reload()
 {
     liChiTiet = SanXuatLenhProvier.GetAllSanXuatLenh(MaKho, MaTrungTam, "GHEPMA");
     CheckTrangthai();
     dgvChiTiet.DataSource = liChiTiet;
 }