Пример #1
0
 private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     WaitDialog.CreateWaitDialog("Đang tải dữ liệu ...", "Bảng Kê Tổng Hợp");
     groupControl1.ResetText();
     groupControl1.Text = "Bảng Giá Tổng Hợp";
     groupControl1.Controls.Clear();
     frmUCBangGia      = new UC_BangKeTongHopBangGia();
     frmUCBangGia.Dock = DockStyle.Fill;
     groupControl1.Controls.Add(frmUCBangGia);//thêm user control vào panel
     WaitDialog.CloseWaitDialog();
 }
Пример #2
0
 public frmCapNhatBangGia(UC_BangKeTongHopBangGia frm, BANGGIA objbanggia)
 {
     InitializeComponent();
     uc_tonghopbanggia       = frm;
     _banggia                = objbanggia;
     txtMaBangGia.Text       = objbanggia.ID;
     txtTenBangGia.Text      = objbanggia.Name_ListPrice;
     dateNgayTao.DateTime    = objbanggia.Refdate;
     lookUpLoaiGia.EditValue = objbanggia.RefType;
     dateBatDau.DateTime     = objbanggia.StartDate;
     dateHetHan.DateTime     = objbanggia.StopDate;
     chkDangDung.Checked     = objbanggia.Active;
     InitLookUp_LoaiBang();
     ReadXml_User();
     gridView1.Invalidate();
     gridView1.IndicatorWidth = 40;
     gridControl1.DataSource  = new BANGGIA_DETAILController().BANGGIA_DETAIL_Get(objbanggia.ID);
 }
Пример #3
0
 public frmThemBangGia(UC_BangKeTongHopBangGia frm)
 {
     InitializeComponent();
     InitLookUp_LoaiBang();
     ReadXml_User();
     gridView1.Invalidate();
     gridView1.IndicatorWidth = 40;
     dateBatDau.DateTime      = DateTime.Now;
     dateHetHan.DateTime      = DateTime.Now;
     dateNgayTao.DateTime     = DateTime.Now;
     txtMaBangGia.Text        = "GL" + String.Format("{0:ddMMyyyy}", dateNgayTao.DateTime);
     txtTenBangGia.Text       = "Bảng Giá Lẻ " + String.Format("{0:dd/MM/yyyy}", dateNgayTao.DateTime);
     dtable.Columns.Add("PRODUCT_ID", typeof(string));
     dtable.Columns.Add("ProductName", typeof(string));
     dtable.Columns.Add("Org_Price_New", typeof(double));
     dtable.Columns.Add("Sale_Price_New", typeof(double));
     dtable.Columns.Add("Retail_Price_New", typeof(double));
     frmbanggia = frm;
 }