protected void btnLuu_Click(object sender, EventArgs e) { string maphieu = Session["maphieu"].ToString(); string macongty = Session["congty"].ToString(); string ngonngu = Session["languege"].ToString(); string manguoidung = Session["user"].ToString(); string NOIDUNG = CKEditorControl1.Text; DateTime date = DateTime.Now; string ngaydich = DateTime.Parse(date.ToShortDateString()).ToString("dd/MM/yyyy"); PDNSheetFlow kiemtra = PDNSheetFlowDAO.LayPDNSheetFlowCuaBuoc1(maphieu, macongty); int Yn = 4; if (kiemtra == null) { // dal.CapNhatPhieuDich1(manguoidung, macongty, maphieu, txtTieuDe.Text.Trim(), CKEditorControl1.Text.Trim(), date, Yn); db.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues, db.ExecuteQuery <pdna>("select * from pdna where pdno='" + maphieu + "'and GSBH='" + macongty + "' and IdnguoiDich='" + manguoidung + "'")); var list = db.ExecuteQuery <pdna>("select * from pdna where pdno='" + maphieu + "'and GSBH='" + macongty + "' and IdnguoiDich='" + manguoidung + "'"); foreach (pdna phieu1 in list) { if (phieu1.trangthaidich == true) { if (ngonngu == "lbl_VN") { lbThongBao.Text = "Lưu thành công, văn bản đã dịch sẽ gửi đến người nhờ dịch"; } else if (ngonngu == "lbl_TW") { lbThongBao.Text = "审核成功"; } else if (ngonngu == "lbl_EN") { lbThongBao.Text = "Save Success."; } Response.Redirect("frmChiTietDichND.aspx"); } } } else { lbThongbaoloi.Text = "Phiếu này đã được xét duyệt nên không thể sửa được"; } }