Ejemplo n.º 1
0
 public frmThanhToanBanHang(UC_PhieuBanHang frm, double Tong)
 {
     InitializeComponent();
     calcEditThanhToan.Value = (decimal)Tong;
     calcEditKhachDua.Focus();
     frmphieubanhang = frm;
 }
Ejemplo n.º 2
0
 private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     navBarGroup3.Visible = true;
     if (FlagTH == 1)
     {
         Table_THNH      = frmTH.GridControlTable();
         DateTimeChon_TH = frmTH.DateTimeChon();
         DatetimeTo_TH   = frmTH.DateTimeFrom();
         DatetimeFrom_TH = frmTH.DateTimeTo();
     }
     if (FlagCT == 1)
     {
         Table_CTNH      = frmCT.GridControlTable();
         DateTimeChon_CT = frmCT.DateTimeChon();
         DatetimeTo_CT   = frmCT.DateTimeFrom();
         DatetimeFrom_CT = frmCT.DateTimeTo();
     }
     groupControl1.ResetText();
     groupControl1.Text = "Phiếu Bán Hàng";
     groupControl1.Controls.Clear();
     frm      = new UC_PhieuBanHang(this);
     frm.Dock = DockStyle.Fill;
     groupControl1.Controls.Add(frm);//thêm user control vào panel
     FlagNhap = 1;
 }
Ejemplo n.º 3
0
 public frmBanHang()
 {
     InitializeComponent();
     DateTimeChon_CT = "Hôm nay";
     DateTimeChon_TH = "Hôm nay";
     DatetimeFrom_CT = DateTime.Now;
     DatetimeTo_CT   = DateTime.Now;
     DatetimeFrom_TH = DateTime.Now;
     DatetimeTo_TH   = DateTime.Now;
     Table_THNH.Reset();
     Table_CTNH.Reset();
     if (FlagTH == 1)
     {
         Table_THNH      = frmTH.GridControlTable();
         DateTimeChon_TH = frmTH.DateTimeChon();
         DatetimeTo_TH   = frmTH.DateTimeFrom();
         DatetimeFrom_TH = frmTH.DateTimeTo();
     }
     if (FlagCT == 1)
     {
         Table_CTNH      = frmCT.GridControlTable();
         DateTimeChon_CT = frmCT.DateTimeChon();
         DatetimeTo_CT   = frmCT.DateTimeFrom();
         DatetimeFrom_CT = frmCT.DateTimeTo();
     }
     groupControl1.ResetText();
     groupControl1.Text = "Phiếu Bán Hàng";
     groupControl1.Controls.Clear();
     frm      = new UC_PhieuBanHang(this);
     frm.Dock = DockStyle.Fill;
     groupControl1.Controls.Add(frm);//thêm user control vào panel
     FlagNhap = 1;
 }
Ejemplo n.º 4
0
 public void ThemPhieuBanHang()
 {
     groupControl1.Text = "Phiếu Bán Hàng";
     groupControl1.Controls.Clear();
     frm      = new UC_PhieuBanHang(this);
     frm.Dock = DockStyle.Fill;
     groupControl1.Controls.Add(frm);//thêm user control vào panel
     navBarGroup3.Visible = true;
 }