示例#1
0
        public static DepartmentEscalationLevel GetDetailsByDepartmentId(int id, int LevelNumber)
        {
            DepartmentEscalationLevel info = null;

            info = BaseDataAccess.GetRecords <DepartmentEscalationLevel>(String.Format("select * from DepartmentEscalationLevels where DepartmentId='{0}' and LevelNumber = '{1}'", id, LevelNumber));
            if (info != null)
            {
                info.Department         = DepartmentDA.GetDetails(info.DepartmentId);
                info.GovernmentOfficial = GovernmentOfficialDA.GetDetails(info.DesignatedOfficialId);
            }
            return(info);
        }
示例#2
0
 public static bool Delete(DepartmentEscalationLevel info)
 {
     return(BaseDataAccess.ExecuteSQL(String.Format("delete from DepartmentEscalationLevels where Id='{0}'", info.Id)));
 }
示例#3
0
 public static bool Update(DepartmentEscalationLevel info)
 {
     return(BaseDataAccess.ExecuteSQL(String.Format("update DepartmentEscalationLevels set DepartmentId='{0}', EscalationLevelName='{1}', DesignatedOfficialId='{2}', LevelNumber='{3}' where Id='{4}'", info.DepartmentId, info.EscalationLevelName, info.DesignatedOfficialId, info.LevelNumber, info.Id)));
 }
示例#4
0
 public static bool Add(DepartmentEscalationLevel info)
 {
     return(BaseDataAccess.ExecuteSQL(String.Format("insert into DepartmentEscalationLevels(DepartmentId,EscalationLevelName, DesignatedOfficialId, LevelNumber) values('{0}','{1}','{2}','{3}')", info.DepartmentId, info.EscalationLevelName, info.DesignatedOfficialId, info.LevelNumber)));
 }
示例#5
0
 /// <summary>
 /// This Function is used to Delete previously added DepartmentEscalationLevel from database and is performed by SuperAdmin Only.
 /// </summary>
 public static bool Delete(DepartmentEscalationLevel info)
 {
     return(DepartmentEscalationLevelDA.Delete(info));
 }
示例#6
0
 /// <summary>
 /// This Function is used to Update previously added DepartmentEscalationLevel in database and is performed by SuperAdmin Only.
 /// </summary>
 public static bool Update(DepartmentEscalationLevel info)
 {
     return(DepartmentEscalationLevelDA.Update(info));
 }
示例#7
0
 /// <summary>
 /// This Function is used to add new DepartmentEscalationLevel to database and is performed by SuperAdmin Only.
 /// </summary>
 public static bool Add(DepartmentEscalationLevel info)
 {
     return(DepartmentEscalationLevelDA.Add(info));
 }