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)); }
/// <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; } } }
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; } }
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; }
public void AddToT_FB_SYSTEMSETTINGS(T_FB_SYSTEMSETTINGS t_FB_SYSTEMSETTINGS) { base.AddObject("T_FB_SYSTEMSETTINGS", t_FB_SYSTEMSETTINGS); }