//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); }
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); }
public static string tinpath(Object strFileName) { if (Convert.ToString(strFileName) != "") { return(System.Configuration.ConfigurationManager.AppSettings["tinpath"] + "/" + CommonLib.CleanHTML(Convert.ToString(strFileName))); } else { return(""); } }