Esempio n. 1
0
        /// <summary>
        /// Loads UserMasterMaintenanceForm
        /// Fill Country combobox
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UserMasterForm_Load(object sender, EventArgs e)
        {
            FormDatatableFromVo();

            ComboBind(Country_cmb, cntryLangDatatable, "countrycode", "LocaleId");

            ComboBind(FactoryCode_cmb, factoryDatatable, "code", "code");

            UserCode_txt.Select();

            Update_btn.Enabled = Delete_btn.Enabled = false;
        }
Esempio n. 2
0
        /// <summary>
        /// Handles Load event for user data Insert/Update operations
        /// Loading user data for update user data and binding controls with selected user record
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddUserMasterForm_Load(object sender, EventArgs e)
        {
            FormDatatableFromVo();

            ComboBind(Country_cmb, cntryLangDatatable, "countrycode", "LocaleId");

            ComboBind(FactoryCode_cmb, factoryDatatable, "code", "code");

            UserCode_txt.Select();

            if (string.Equals(mode, CommonConstants.MODE_UPDATE))
            {
                LoadUserData(updateData);
                UserCode_txt.Enabled = false;
                UserName_txt.Select();
            }
        }
Esempio n. 3
0
        /// <summary>
        /// event to clear the controls of search criteria
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Clear_btn_Click(object sender, EventArgs e)
        {
            UserCode_txt.Text = string.Empty;

            UserName_txt.Text = string.Empty;

            Country_cmb.SelectedIndex = -1;

            //Language_cmb.DataSource = null;

            //Language_cmb.Enabled = false;

            FactoryCode_cmb.SelectedIndex = -1;

            Userdetails_dgv.DataSource = null;

            UserCode_txt.Select();
            Update_btn.Enabled = Delete_btn.Enabled = false;
        }