public static string GetStringDispatchDocumentState(DispatchDocumentState state) { if (state == DispatchDocumentState.Draft) { return("0"); } if (state == DispatchDocumentState.Sent) { return("1"); } if (state == DispatchDocumentState.Aborted) { return("2"); } return("0"); }
public static string GetDispatchDocumentStateName(DispatchDocumentState state) { if (state == DispatchDocumentState.Draft) { return("Borrador"); } if (state == DispatchDocumentState.Sent) { return("Enviado"); } if (state == DispatchDocumentState.Aborted) { return("Anulado"); } return("Borrador"); }
public static int GetIntDispatchDocumentState(DispatchDocumentState state) { if (state == DispatchDocumentState.Draft) { return(0); } if (state == DispatchDocumentState.Sent) { return(1); } if (state == DispatchDocumentState.Aborted) { return(2); } return(0); }