public static string ToStringEnum(this eBoeType pBoeType) { switch (pBoeType) { case eBoeType.Outgoing: return(strOutgoing); case eBoeType.Incoming: return(strIncoming); default: return(string.Empty); } }
public static string GetName(this eBoeType CardType) { switch (CardType) { case eBoeType.Outgoing: return("Transação de Saida"); case eBoeType.Incoming: return("Transação de Entrada"); default: return(string.Empty); } }
public bool GetByBoeNum(int pBoeNum, eBoeType pBoeType) { TableQuery myQuery = new TableQuery(this); myQuery.Where.Add(new QueryParam(m_BoeNum, pBoeNum)); myQuery.Where.Add(new QueryParam(m_BoeType, pBoeType.ToStringEnum())); DataTable myData = GetData(myQuery); if (myData.Rows.Count > 0) { FillFields(myData.Rows[0]); return(true); } else { return(false); } }