Пример #1
0
        private void Form_SellProducts_Load(object sender, EventArgs e)
        {
            txtusers.Text     = LoginController.employeelogined.Rows[0]["EmployeeName"].ToString();
            txtuseauther.Text = LoginController.userlogined.Rows[0]["UserAuther"].ToString();
            txtBillno.Text    = cntrl_sell.SellBill().ToString();
            timer1.Start();
            txtDate.Text = DateTime.Now.ToString("yyyy/MM/dd");

            cbRoom.DataSource       = cntrl_sell.get_roomComb();
            cbRoom.DisplayMember    = "RoomNo";
            cbRoom.ValueMember      = "RoomID";
            cbRoom.Text             = ".......ເລືອກຫ້ອງ......";
            dgvRoomCheck.DataSource = new DataTable();
            dgvRoomCheck.Visible    = false;

            cbProductType.DataSource    = cntrl_sell.getProductType();
            cbProductType.DisplayMember = "ProductTypeName";
            cbProductType.ValueMember   = "ProductTypeID";
            cbProductType.Text          = ".......ເລືອກປະເພດສິນຄ້່າ......";
            dgvProStock.DataSource      = new DataTable();
            rdb_SaleRoom.Checked        = false;
            rdbSaleOther.Checked        = false;
        }