示例#1
0
            public string ToString(enumStruct e)
            {
                switch (e)
                {
                case enumStruct.MADA:
                    return(MADA.ToString());

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

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

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

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

                default:
                    return("");
                }
            }
示例#2
0
            public string ToString(enumStruct e)
            {
                switch (e)
                {
                case enumStruct.MAPB:
                    return(MAPB.ToString());

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

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

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

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

                default:
                    return("");
                }
            }