示例#1
0
        public List <T_FB_BUDGETACCOUNT> FetchSalaryBudget(string companyID, string departmentID)
        {
            string subjectID            = string.Empty;
            T_FB_SYSTEMSETTINGS setting = SystemBLL.GetSetting(null);

            if (setting != null)
            {
                subjectID = setting.SALARYSUBJECTID;
            }
            if (string.IsNullOrEmpty(subjectID))
            {
                return(new List <T_FB_BUDGETACCOUNT>());
            }

            return(FetchBudgetAccount(subjectID, companyID, departmentID, BudgetAccountBLL.AccountObjectType.Deaprtment));
        }
示例#2
0
        /// <summary>
        /// 检查当前月,是否已进行月结
        /// </summary>
        /// <param name="bIsChecked"></param>
        private void IsCheckedAccount(ref bool bIsChecked)
        {
            SystemSettingsDAL   dalSystemSetting = new SystemSettingsDAL();
            T_FB_SYSTEMSETTINGS entRd            = dalSystemSetting.GetObjects().FirstOrDefault();

            if (entRd == null)
            {
                return;
            }

            if (entRd.LASTCHECKDATE != null)
            {
                var checkDate = entRd.LASTCHECKDATE.Value;
                var nowDate   = System.DateTime.Now.Date;
                if (checkDate.Year == nowDate.Year && checkDate.Month == nowDate.Month)
                {
                    bIsChecked = true;
                }
            }
        }
示例#3
0
文件: SystemBLL.cs 项目: jjg0519/OA
        public static T_FB_SYSTEMSETTINGS GetSetting(QueryExpression qe)
        {
            try
            {
                if (etityT_FB_SYSTEMSETTINGS == null)
                {
                    using (FBEntityBLL bll = new FBEntityBLL())
                    {
                        etityT_FB_SYSTEMSETTINGS = bll.GetTable <T_FB_SYSTEMSETTINGS>().FirstOrDefault();
                    }
                }
                etityT_FB_SYSTEMSETTINGS.Settings = Settings;

                return(etityT_FB_SYSTEMSETTINGS);
            }
            catch (Exception ex)
            {
                Tracer.Debug("获取预算初始化信息出错,出错信息:" + ex.ToString());
                throw ex;
            }
        }
示例#4
0
 public static T_FB_SYSTEMSETTINGS CreateT_FB_SYSTEMSETTINGS(string sYSTEMSETTINGSID)
 {
     T_FB_SYSTEMSETTINGS t_FB_SYSTEMSETTINGS = new T_FB_SYSTEMSETTINGS();
     t_FB_SYSTEMSETTINGS.SYSTEMSETTINGSID = sYSTEMSETTINGSID;
     return t_FB_SYSTEMSETTINGS;
 }
示例#5
0
 public void AddToT_FB_SYSTEMSETTINGS(T_FB_SYSTEMSETTINGS t_FB_SYSTEMSETTINGS)
 {
     base.AddObject("T_FB_SYSTEMSETTINGS", t_FB_SYSTEMSETTINGS);
 }