示例#1
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);
        }
示例#2
0
        public void LoadFileDoc(int _ID)
        {
            string strHTML = "";

            HPCBusinessLogic.DAL.T_NewsDAL dal = new HPCBusinessLogic.DAL.T_NewsDAL();
            T_News obj = dal.load_T_news(_ID);

            strHTML += "<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b>" + obj.News_Tittle + "<o:p></o:p></b></p>";
            strHTML += "<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><br>" + obj.News_Summary + "<u1:p></u1:p></b></p>";
            strHTML += "<p style='text-align:justify'>" + obj.News_Body + "<o:p></o:p></p>";
            if (strHTML.Length > 0)
            {
                SaveAsText(strHTML);
            }
        }