Exemple #1
0
        public static List <ActionStatus> Static_GetList(string constr)
        {
            List <ActionStatus> list = new List <ActionStatus>();

            try
            {
                ActionStatus actionStatus = new ActionStatus(constr);
                return(actionStatus.GetList());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        public static string Static_GetDesc(string constr, byte actionStatusId)
        {
            string result = "";

            try
            {
                ActionStatus actionStatus = new ActionStatus(constr);
                actionStatus = actionStatus.Get(actionStatusId);
                if (actionStatus.ActionStatusDesc != null)
                {
                    result = ((actionStatus.ActionStatusId == 1) ? ("<font color=blue>" + actionStatus.ActionStatusDesc.Trim() + "</font>") : actionStatus.ActionStatusDesc.Trim());
                }
            }
            catch
            {
            }
            return(result);
        }
Exemple #3
0
        public ActionStatus Get(byte actionStatusId)
        {
            ActionStatus actionStatus = new ActionStatus(this.db.ConnectionString);

            try
            {
                List <ActionStatus> listByActionStatusId = actionStatus.GetListByActionStatusId(actionStatusId);
                if (listByActionStatusId.Count > 0)
                {
                    actionStatus = listByActionStatusId[0];
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(actionStatus);
        }
Exemple #4
0
 public static string Static_GetDesc(byte actionStatusId)
 {
     return(ActionStatus.Static_GetDesc("", actionStatusId));
 }
Exemple #5
0
 public static List <ActionStatus> Static_GetList()
 {
     return(ActionStatus.Static_GetList(""));
 }