public frmBillManager(frmMainUI_Staff f)
 {
     InitializeComponent();
     frm_main                 = f;
     bindingSource            = new BindingSource();
     orderBLL                 = new OrderBLL();
     bindingSourceOrderDetail = new BindingSource();
     orderDetailBLL           = new OrderDetailBLL();
 }
 public frmReport(frmMainUI_Staff f, int kbc)
 {
     InitializeComponent();
     fmain          = f;
     kieuBaoCao     = kbc;
     orderBLL       = new OrderBLL();
     bindingSource  = new BindingSource();
     orderDetailBLL = new OrderDetailBLL();
     accesoryBLL    = new AccesoryBLL();
 }
Esempio n. 3
0
 public frmSale(frmMainUI_Staff fm, int _staffId)
 {
     InitializeComponent();
     cbx_Producer.SelectedIndex = 0;
     cbx_Category.SelectedIndex = 0;
     cbx_Producer.ForeColor     = Color.DarkGray;
     cbx_Category.ForeColor     = Color.DarkGray;
     this.FormBorderStyle       = FormBorderStyle.None;
     staffId       = _staffId;
     fmain         = fm;
     bindingSource = new BindingSource();
 }
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string account  = txt_User.Text.ToString();
            string password = txt_Password.Text.ToString();
            int    staffId  = staffbll.SignIn(account, password);

            if (staffId > 0)
            {
                frmMainUI_Staff frm = new frmMainUI_Staff(staffId);
                frm.ShowDialog();
                this.Close();
            }
        }
        public frmCustomer(frmMainUI_Staff f)
        {
            InitializeComponent();
            frm_main      = f;
            customerbll   = new CustomerBLL();
            bindingSource = new BindingSource();

            bunifuCustomDataGrid1.Columns.Add("STT", "STT");
            bindingSource.DataSource            = customerbll.GetAllCustomer();
            bunifuCustomDataGrid1.MultiSelect   = false;
            bunifuCustomDataGrid1.ReadOnly      = true;
            bunifuCustomDataGrid1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            CreateDataGridView();
        }
 public frmAccessories(frmMainUI_Staff f)
 {
     InitializeComponent();
     frm_main      = f;
     bindingSource = new BindingSource();
     cbx_Producer.SelectedIndex = 0;
     cbx_Category.SelectedIndex = 0;
     cbx_Producer.ForeColor     = Color.DarkGray;
     cbx_Category.ForeColor     = Color.DarkGray;
     bunifuCustomDataGridAccessory.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     bunifuCustomDataGridAccessory.MultiSelect   = false;
     bunifuCustomDataGridAccessory.ReadOnly      = true;
     dgv_Detail.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     dgv_Detail.MultiSelect   = false;
     dgv_Detail.ReadOnly      = true;
 }
 public frmStaffManager(frmMainUI_Staff f)
 {
     InitializeComponent();
     fmain = f;
     Custom_Theme();
     staffbll  = new StaffBLL();
     roleTypes = new List <string>()
     {
         "Quản lý", "Nhân viên thủ kho", "Nhân viên bán hàng"
     };
     cbx_Role.DataSource        = roleTypes;
     dtp_BirthDate.Format       = DateTimePickerFormat.Custom;
     dtp_BirthDate.CustomFormat = "dd/MM/yyyy";
     bindingSource            = new BindingSource();
     bindingSource.DataSource = staffbll.GetAllStaffDto();
     CreateDataGridView();
 }