示例#1
0
文件: frmCompany.cs 项目: ewin66/RAPH
        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();
        }