Esempio n. 1
0
        private void setControl(String rowId)
        {
            //ComboBoxItem aa = new ComboBoxItem();
            lot = lc.selectLottobyPk(rowId);

            txtInput.Text = lot.number;
            txtUp.Text    = lot.up;
            txtTod.Text   = lot.tod;
            txtDown.Text  = lot.down;
            txtRowId.Text = lot.rowId;

            txtLotId.Text = lot.lottoId;

            cboThoo.SelectedItem  = lc.getCboItem(cboThoo, lot.thooId);
            cboStaff.SelectedItem = lc.getCboItem(cboStaff, lot.staffId);
            cboSale.SelectedItem  = lc.getCboItem(cboSale, lot.saleId);
            //cboThoo.SelectedValue = lc.getCboItem(cboThoo, lot.thooId);
            cboYear.Text            = lot.yearId;
            cboMonth.SelectedValue  = lot.monthId;
            cboPeriod.SelectedValue = lot.periodId;
            //rw.dateReward;
        }