Exemplo n.º 1
0
        public override void InitializeDefaultValues()
        {
            CompanyLogoSelectedFileName = null;
            peLogo.Image = null;
            //if (FormCurrentUI != eFormCurrentUI.NewEntry || (lookupCopySettingFromCompany.Properties.DataSource == null || ((List<CompanyEditListModel>)lookupCopySettingFromCompany.Properties.DataSource).Count == 0))
            //{
            //    lcgSettings.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
            //}
            //if (FormCurrentUI == eFormCurrentUI.NewEntry && (lookupCopySettingFromCompany.Properties.DataSource != null && ((List<CompanyEditListModel>)lookupCopySettingFromCompany.Properties.DataSource).Count > 0))
            //{
            //    lcgSettings.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
            //}

            lcgPayrollMonth.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Always;
            txtCode.Text = DALObject.GenerateNewCode().ToString();

            base.InitializeDefaultValues();
        }