protected void ConfidentialityGridView_RowUpdated(object sender, DevExpress.Web.Data.ASPxDataUpdatedEventArgs e) { db.Configuration.LazyLoadingEnabled = false; int id = (int)e.NewValues["Treatment_Confidentiality_Id"]; Treatment_Confidentiality Confidentiality = db.Treatment_Confidentiality.Find(id); /*Add it to log file */ LogData = "data:" + JsonConvert.SerializeObject(Confidentiality, logFileModule.settings); logFileModule.logfile(10, "تعديل درجة السرية", "update secret level", LogData); }
protected void ConfidentialityGridView_RowInserted(object sender, DevExpress.Web.Data.ASPxDataInsertedEventArgs e) { db.Configuration.LazyLoadingEnabled = false; List <Treatment_Confidentiality> List = db.Treatment_Confidentiality.ToList(); Treatment_Confidentiality Confidentiality = List[List.Count - 1]; /*Add it to log file */ LogData = "data:" + JsonConvert.SerializeObject(Confidentiality, logFileModule.settings); logFileModule.logfile(10, "اضافة درجة سرية", "add a secret level", LogData); }
protected void ConfidentialityGridView_RowDeleted(object sender, DevExpress.Web.Data.ASPxDataDeletedEventArgs e) { Treatment_Confidentiality Confidentiality = new Treatment_Confidentiality(); Confidentiality.Treatment_Confidentiality_Id = (int)e.Values["Treatment_Confidentiality_Id"]; Confidentiality.Treatment_Confidentiality_Name_Ar = (string)e.Values["Treatment_Confidentiality_Name_Ar"]; Confidentiality.Treatment_Confidentiality_Name_En = (string)e.Values["Treatment_Confidentiality_Name_En"]; Confidentiality.Css_Class = (string)e.Values["Css_Class"]; /*Add it to log file */ LogData = "data:" + JsonConvert.SerializeObject(Confidentiality, logFileModule.settings); logFileModule.logfile(10, "حذف درجة سرية", "delete secret level", LogData); }