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