public static string DuyetPhieuNhapThanhPham(int ID) { try { xRPDataContext dts = new xRPDataContext(); var user = (from u in dts.aspnet_Users where u.UserName == HttpContext.Current.User.Identity.Name select u).FirstOrDefault(); var result = dts.Sp_Qlvt_PhieuNhapThanhPham_TinhTrang(ID, user.UserId, "DUYET", Util.GetIP(), Util.GetPCName()).FirstOrDefault(); if (result != null && !string.IsNullOrEmpty(result.Column1)) { return(result.Column1); } return("Đã duyệt phiêu nhập"); } catch (Exception ex) { return("ERROR" + ex.Message); } }