Ejemplo n.º 1
0
        private void setControls()
        {
            _gridTools.setValue(dataGridView1, txtName, UsersEntity.FIELD_NAME);
            _gridTools.setValue(dataGridView1, txtFamily, UsersEntity.FIELD_FAMILY);
            _gridTools.setValue(dataGridView1, txtUserName, UsersEntity.FIELD_USERNAME);
            _gridTools.setValue(dataGridView1, txtPassword, UsersEntity.FIELD_PASSWORD);
            _gridTools.setValue(dataGridView1, cmbUserType, UsersEntity.FIELD_USER_TYPE);
            _gridTools.setComboBoxItemValue(dataGridView1, cmbLetterPattern, UsersEntity.FIELD_LETTER_PATTERN_ID);

            if (_gridTools.getCurrentRowValue(dataGridView1, UsersEntity.FIELD_ACTIVE) != null)
            {
                cbActive.Checked = _gridTools.getCurrentRowValue(dataGridView1, UsersEntity.FIELD_ACTIVE).ToString().Equals("1");
            }
            if (UsersBS.ADMIN.ToString().Equals(cmbUserType.SelectedIndex + 1 + ""))
            {
                btnLetterFormPerm.Visible   = false;
                btnMenuPersmission.Visible  = false;
                btnChequeFieldsPerm.Visible = false;
            }
            else
            {
                btnLetterFormPerm.Visible   = true;
                btnMenuPersmission.Visible  = true;
                btnChequeFieldsPerm.Visible = true;
            }
        }
Ejemplo n.º 2
0
        private void setControls()
        {
            _gridTools.setValue(txtInsuranceType, InsuranceTypeData.InsuranceCaption_FIELD);
            _gridTools.setValue(cmbDaysBeforExp, InsuranceTypeData.DAYSBEFOREXP_FIELD, "text");
            string val = _gridTools.getCurrentRowValue(InsuranceTypeData.INSURANCETYPECOLOR_FIELD) + "";

            if (val != null)
            {
                pnlColor.BackColor = ColorTranslator.FromHtml(val);
            }
        }
Ejemplo n.º 3
0
 private void setControls()
 {
     _gridTools.setValue(txtName, UsersData.name_FIELD);
     _gridTools.setValue(txtFamily, UsersData.family_FIELD);
     _gridTools.setValue(txtUserName, UsersData.userName_FIELD);
     _gridTools.setValue(txtUserName, UsersData.userName_FIELD);
     _gridTools.setValue(txtPassword, UsersData.password_FIELD);
     _gridTools.setValue(cmbUserType, UsersData.userType_FIELD);
 }