Exemple #1
0
            public string ToString(enumStruct e)
            {
                switch (e)
                {
                case enumStruct.MANV:
                    return(MANV.ToString());

                case enumStruct.MAPB:
                    return(MAPB.ToString());

                case enumStruct.TENNV:
                    return(TENNV.ToString());

                case enumStruct.NGAYSINH:
                    return(DateTime.Parse(NGAYSINH.ToString()).ToShortDateString());

                case enumStruct.GIOITINH:
                    return(GIOITINH.ToString());

                case enumStruct.MA_NGS:
                    return(MA_NGS.ToString());

                case enumStruct.BACLUONG:
                    return(BACLUONG.ToString());

                case enumStruct.DIACHI:
                    return(DIACHI.ToString());

                case enumStruct.ACCOUNT:
                    return(ACCOUNT.ToString());

                default:
                    return("");
                }
            }