Exemple #1
0
        public static string GetTrangThaiFrom_T_Quangcao(Object Trangthai)
        {
            string str = "";

            switch (Trangthai.ToString())
            {
            case "12":
                str = CommonLib.ReadXML("lblSatusNVQCPending");
                break;

            case "13":
                str = CommonLib.ReadXML("lblSatusNVQCReturn");
                break;

            case "21":
                str = CommonLib.ReadXML("lblSatusTPQCPending");
                break;

            case "22":
                str = CommonLib.ReadXML("lblSatusTPQCEditor");
                break;

            case "23":
                str = CommonLib.ReadXML("lblSatusTPQCReturn");
                break;

            case "41":
                str = CommonLib.ReadXML("lblSatusTBTPending");
                break;

            case "42":
                str = CommonLib.ReadXML("lblSatusTBTEditor");
                break;

            case "43":
                str = CommonLib.ReadXML("lblSatusTBTReturn");
                break;

            case "51":
                str = CommonLib.ReadXML("lblSatusTLBTPending");
                break;

            case "52":
                str = CommonLib.ReadXML("lblSatusTLBTEditor");
                break;

            case "53":
                str = CommonLib.ReadXML("lblSatusTLBTReturn");
                break;

            case "6":
                str = CommonLib.ReadXML("lblSatusDTPending");
                break;
            }
            return(str);
        }
Exemple #2
0
        //VietnamNews Online status
        public static string GetStatusT_NewsFrom_T_version(Object ID)
        {
            string str    = "";
            int    status = 0;

            HPCBusinessLogic.DAL.T_NewsDAL Dal = new HPCBusinessLogic.DAL.T_NewsDAL();
            if (Dal.load_T_news(Convert.ToInt32(ID)) == null)
            {
                status = 0;
            }
            else
            {
                status = (int)Dal.load_T_news(Convert.ToInt32(ID)).News_Status;
            }
            switch (status)
            {
            case 1: str = CommonLib.ReadXML("lblNhaptinbai"); break;

            case 7: str = CommonLib.ReadXML("lblTrinhbay"); break;

            case 8: str = CommonLib.ReadXML("lblBientap"); break;

            case 9: str = CommonLib.ReadXML("lblDuyettinbai"); break;

            case 12: str = CommonLib.ReadXML("lblTinmoi"); break;

            case 13: str = CommonLib.ReadXML("lblTralainguoinhaptin"); break;

            case 72: str = CommonLib.ReadXML("lblChotrinhbay"); break;

            case 73: str = CommonLib.ReadXML("lblTralaitrinhbay"); break;

            case 82: str = CommonLib.ReadXML("lblChobientap"); break;

            case 83: str = CommonLib.ReadXML("lblTralaibientap"); break;

            case 92: str = CommonLib.ReadXML("lblBaichoduyet"); break;

            case 4: str = CommonLib.ReadXML("lblTinngungdang"); break;

            case 6: str = CommonLib.ReadXML("lblTinxuatban"); break;

            case 55: str = CommonLib.ReadXML("lblTindaxoa"); break;

            default:
                str = "";
                break;
            }
            return(str);
        }
Exemple #3
0
        public static string GetTrangThaiFrom_T_PhienbanQuangcao(Object Trangthai)
        {
            string str = "";

            switch (Trangthai.ToString())
            {
            case "12":
                str = CommonLib.ReadXML("lblActionSendNVQC");
                break;

            case "13":
                str = CommonLib.ReadXML("lblActionReturnNVQC");
                break;

            case "21":
                str = CommonLib.ReadXML("lblActionSendTPQC");
                break;

            case "23":
                str = CommonLib.ReadXML("lblActionRetunTPQC");
                break;

            case "41":
                str = CommonLib.ReadXML("lblActionSendTBTQC");
                break;

            case "43":
                str = CommonLib.ReadXML("lblActionReturnTBTQC");
                break;

            case "51":
                str = CommonLib.ReadXML("lblActionSendTLBTQC");
                break;

            case "53":
                str = CommonLib.ReadXML("lblActionReturnTBTQC");
                break;

            case "6":
                str = CommonLib.ReadXML("lblActionSendDTQC");
                break;
            }
            return(str);
        }
Exemple #4
0
        public static string GetActionName(Object ID)
        {
            HPCBusinessLogic.DAL.TinBaiDAL Dal = new HPCBusinessLogic.DAL.TinBaiDAL();
            string str            = "";
            string doituongdaxuly = "";
            double Trangthai      = 0;

            if (ID != DBNull.Value)
            {
                doituongdaxuly = Dal.Sp_SelectOneFromT_PhienBan(double.Parse(ID.ToString())).Doituong_DangXuly;
                Trangthai      = Dal.Sp_SelectOneFromT_PhienBan(double.Parse(ID.ToString())).Trangthai;
            }
            switch (doituongdaxuly.Trim())
            {
            case "PVHCM":
                if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblActionReturnReporterHCM");
                }
                break;

            case "PVHN":
                if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblActionReturnReporterHN");
                }
                break;

            case "MOREINFO":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblActionSendMoreInfo");
                }
                else
                {
                    str = CommonLib.ReadXML("lblActionReturnMoreInfo");
                }
                break;

            case "DESKHN":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblActionSendDeskHN");
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblActionReturnDeskHN");
                }
                else if (Trangthai == 5)
                {
                    str = CommonLib.ReadXML("lblActionBaigacDeskHN");
                }
                break;

            case "DESKHCM":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblActionSendDeskHCM");
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblActionReturnDeskHCM");
                }
                else if (Trangthai == 5)
                {
                    str = CommonLib.ReadXML("lblActionBaigacDeskHCM");
                }
                break;

            case "CHIEF":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblActionSendChief");
                }
                else
                {
                    str = CommonLib.ReadXML("lblActionReturnChief");
                }
                break;

            case "EXPATHN":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblActionSendExpatHN");
                }
                else
                {
                    str = CommonLib.ReadXML("lblActionReturnExpatHN");
                }
                break;

            case "EXPATHCM":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblActionSendExpatHCM");
                }
                else
                {
                    str = CommonLib.ReadXML("lblActionReturnExpatHCM");
                }
                break;

            case "DT":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblActionSendDesigner");
                }
                break;
            }
            return(str);
        }
Exemple #5
0
        //end
        //VietnamNews newspapers
        public static string GetTrangThaiFrom_T_version(Object ID)
        {
            string str = "";
            string Doituongdangxuly = "";
            double Trangthai        = 0;

            HPCBusinessLogic.DAL.TinBaiDAL Dal = new HPCBusinessLogic.DAL.TinBaiDAL();
            if (Dal.load_T_news(Convert.ToInt32(ID)) != null)
            {
                Doituongdangxuly = Dal.load_T_news(Convert.ToInt32(ID)).Doituong_DangXuly;
                Trangthai        = Dal.load_T_news(Convert.ToInt32(ID)).Trangthai;
            }
            switch (Doituongdangxuly)
            {
            case "PVHCM":
                if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusReporterHCMBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #DAA520\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusReporterHCMTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #DAA520\"></div>";
                }
                break;

            case "PVHN":
                if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusReporterHNBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FFD700\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusReporterHNTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FFD700\"></div>";
                }
                break;

            case "MOREINFO":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblSatusMoreInfoTinmoi") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #20B2AA\"></div>";
                }
                else if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusMoreInBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #20B2AA\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusMoreInTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #20B2AA\"></div>";
                }
                else if (Trangthai == 4)
                {
                    str = CommonLib.ReadXML("lblThungrac") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FF3030\"></div>";
                }
                break;

            case "EXPATHN":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblSatusExpatHNTinmoi") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #CD853F\"></div>";
                }
                else if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusExpatHNBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #CD853F\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusExpatHNTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #CD853F\"></div>";
                }
                else if (Trangthai == 4)
                {
                    str = CommonLib.ReadXML("lblThungrac") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FF3030\"></div>";
                }
                break;

            case "EXPATHCM":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblSatusExpatHCMTinmoi") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #F4A460\"></div>";
                }
                else if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusExpatHCMBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #F4A460\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusExpatHCMTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #F4A460\"></div>";
                }
                else if (Trangthai == 4)
                {
                    str = CommonLib.ReadXML("lblThungrac") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FF3030\"></div>";
                }
                break;

            case "DESKHN":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHNTinmoi") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #0000FF\"></div>";
                }
                else if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHNBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #0000FF\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHNTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #0000FF\"></div>";
                }
                else if (Trangthai == 4)
                {
                    str = CommonLib.ReadXML("lblThungrac") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FF3030\"></div>";
                }
                else if (Trangthai == 5)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHNBaigac") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FFCC99\"></div>";
                }
                break;

            case "DESKHCM":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHCMTinmoi") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #00008B\"></div>";
                }
                else if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHCMBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #00008B\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHCMTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #00008B\"></div>";
                }
                else if (Trangthai == 4)
                {
                    str = CommonLib.ReadXML("lblThungrac") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FF3030\"></div>";
                }
                else if (Trangthai == 5)
                {
                    str = CommonLib.ReadXML("lblSatusDeskHCMBaigac");
                }
                break;


            case "CHIEF":
                if (Trangthai == 1)
                {
                    str = CommonLib.ReadXML("lblSatusChiefTinmoi") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #8B4513\"></div>";
                }
                else if (Trangthai == 2)
                {
                    str = CommonLib.ReadXML("lblSatusChiefBientap") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #8B4513\"></div>";
                }
                else if (Trangthai == 3)
                {
                    str = CommonLib.ReadXML("lblSatusChiefTralai") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #8B4513\"></div>";
                }
                else if (Trangthai == 4)
                {
                    str = CommonLib.ReadXML("lblThungrac") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #FF3030\"></div>";
                }
                break;


            case "DT":
                str = CommonLib.ReadXML("lblSatusDesignerTinmoi") + "</br><div style=\"float: left; width: 100%; height: 20px; background-color: #32CD32\"></div>";
                break;
            }
            return(str);
        }