示例#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;
            }
        }
示例#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);
        }
示例#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);
        }
示例#4
0
 public static string Static_GetDesc(byte actionStatusId)
 {
     return(ActionStatus.Static_GetDesc("", actionStatusId));
 }
示例#5
0
 public static List <ActionStatus> Static_GetList()
 {
     return(ActionStatus.Static_GetList(""));
 }