Exemple #1
0
        private void HienThiDuLieu()
        {
            string maphieu  = "201411170065";
            string macongty = "LTY";

            pdna layphieu = pnaDAO.TimVanBanTheoMa(maphieu, macongty, true);

            Label1.Text   = Server.HtmlDecode(layphieu.pdmemovn);
            TextBox1.Text = HttpUtility.HtmlDecode(layphieu.pdmemovn);
            string abccc = Label1.Text.ToString();
        }
Exemple #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            StringBuilder html     = new StringBuilder();
            string        userid   = "00002";
            string        congty   = "LTY";
            string        pdno     = "201411180094";
            string        maphieu  = "201411180094";
            string        macongty = "LTY";

            pdna   layphieu = pnaDAO.TimVanBanTheoMa(maphieu, macongty, true);
            string noidung2 = "- Mã văn bản 单号: " + "<br/>";

            noidung2 += "- Tiêu đề 题目:" + " <br/>";

            noidung2 += "- Ngày tạo 创建于:" + " <br/>";
            noidung2 += "- Người trình duyệt 寄件者:" + " <br/>";
            noidung2 += "noi dung" + layphieu.pdmemovn + "<br/>";

            noidung2 += "Hoac thay vao day " + "<br/>";

            noidung2 += "<a href=\"http://*****:*****@footgear.com.vn";
            string touser = "******";

            // Until.SendMailNguoiDich(from, touser, pdno, noidung2);
            // Until.SendMailNguoiTao(from, touser, YourSubject.Text, noidung2);
            Until.SendMailNguoiDuyet(from, touser, YourSubject.Text, noidung2 + strBody);

            lblMsgSend.Text    = "Your Comments after sending the mail";
            lblMsgSend.Visible = true;
            YourSubject.Text   = "";
            YourEmail.Text     = "";
            YourName.Text      = "";
            Comments.Text      = "";
        }