public GMSLineClass(string catchRowGuid, string rowGuid, double?length, double?weight,
                     double?gonadWeight, Sex sex, FishCrabGMS gms, string taxaName,
                     Taxa taxa, fad3DataStatus dataStatus, int sequence)
 {
     RowGuid      = rowGuid;
     CatchRowGUID = catchRowGuid;
     Length       = length;
     Weight       = weight;
     GonadWeight  = gonadWeight;
     Sex          = sex;
     GMS          = gms;
     TaxaName     = taxaName;
     Taxa         = taxa;
     DataStatus   = dataStatus;
     Sequence     = sequence;
     GMSNumeric   = (int)gms;
 }
        public static FishCrabGMS GMSStageFromString(string stage, Taxa taxa)
        {
            FishCrabGMS myStage = FishCrabGMS.AllTaxaNotDetermined;

            switch (taxa)
            {
            case Taxa.Fish:
                switch (stage)
                {
                case "Not determined":
                    myStage = FishCrabGMS.AllTaxaNotDetermined;
                    break;

                case "Juvenile":
                    myStage = FishCrabGMS.FishJuvenile;
                    break;

                case "Immature":
                    myStage = FishCrabGMS.FishStg1Immature;
                    break;

                case "Maturing":
                    myStage = FishCrabGMS.FishStg2Maturing;
                    break;

                case "Mature":
                    myStage = FishCrabGMS.FishStg3Mature;
                    break;

                case "Gravid":
                    myStage = FishCrabGMS.FishStg4Gravid;
                    break;

                case "Spent":
                    myStage = FishCrabGMS.FishStg5Spent;
                    break;
                }
                break;

            case Taxa.Crabs:
                switch (stage)
                {
                case "Not determined":
                    myStage = FishCrabGMS.AllTaxaNotDetermined;
                    break;

                case "Immature":
                    myStage = FishCrabGMS.FemaleCrabImmature;
                    break;

                case "Mature":
                    myStage = FishCrabGMS.FemaleCrabMature;
                    break;

                case "Berried":
                    myStage = FishCrabGMS.FemaleCrabBerried;
                    break;
                }
                break;

            default:
                myStage = FishCrabGMS.AllTaxaNotDetermined;
                break;
            }

            return(myStage);
        }
        public static string GMSStageToString(Taxa taxa, FishCrabGMS stage)
        {
            string gms_stage = "";

            switch (taxa.ToString())
            {
            case "To_be_determined":
                break;

            case "Fish":
                switch (stage)
                {
                case FishCrabGMS.AllTaxaNotDetermined:
                    gms_stage = "Not determined";
                    break;

                case FishCrabGMS.FishJuvenile:
                    gms_stage = "Juvenile";
                    break;

                case FishCrabGMS.FishStg1Immature:
                    gms_stage = "Immature";
                    break;

                case FishCrabGMS.FishStg2Maturing:
                    gms_stage = "Maturing";
                    break;

                case FishCrabGMS.FishStg3Mature:
                    gms_stage = "Mature";
                    break;

                case FishCrabGMS.FishStg4Gravid:
                    gms_stage = "Gravid";
                    break;

                case FishCrabGMS.FishStg5Spent:
                    gms_stage = "Spent";
                    break;
                }
                break;

            case "Shrimps":
                break;

            case "Cephalopods":
                break;

            case "Crabs":
                switch (stage)
                {
                case FishCrabGMS.AllTaxaNotDetermined:
                    gms_stage = "Not determined";
                    break;

                case FishCrabGMS.FemaleCrabImmature:
                    gms_stage = "Immature";
                    break;

                case FishCrabGMS.FemaleCrabMature:
                    gms_stage = "Mature";
                    break;

                case FishCrabGMS.FemaleCrabBerried:
                    gms_stage = "Berried";
                    break;
                }
                break;

            case "Shells":
                break;

            case "Lobsters":
                break;

            case "Sea_cucumbers":
                break;

            case "Sea_urchins":
                break;
            }
            return(gms_stage);
        }