protected void DeliveryGridView_RowUpdated(object sender, DevExpress.Web.Data.ASPxDataUpdatedEventArgs e)
        {
            db.Configuration.LazyLoadingEnabled = false;
            int id = (int)e.NewValues["Treatment_Delivery_Id"];
            Treatment_Delivery Delivery = db.Treatment_Delivery.Find(id);

            /*Add it to log file */
            LogData = "data:" + JsonConvert.SerializeObject(Delivery, logFileModule.settings);
            logFileModule.logfile(10, "تعديل حالة التسليم", "update treatment delivery", LogData);
        }
        protected void DeliveryGridView_RowInserted(object sender, DevExpress.Web.Data.ASPxDataInsertedEventArgs e)
        {
            db.Configuration.LazyLoadingEnabled = false;
            List <Treatment_Delivery> List     = db.Treatment_Delivery.ToList();
            Treatment_Delivery        Delivery = List[List.Count - 1];

            /*Add it to log file */
            LogData = "data:" + JsonConvert.SerializeObject(Delivery, logFileModule.settings);
            logFileModule.logfile(10, "اضافة حالة تسليم جديدة", "add treatment delivery", LogData);
        }
        protected void DeliveryGridView_RowDeleted(object sender, DevExpress.Web.Data.ASPxDataDeletedEventArgs e)
        {
            Treatment_Delivery Delivery = new Treatment_Delivery();

            Delivery.Treatment_Delivery_Id      = (int)e.Values["Treatment_Delivery_Id"];
            Delivery.Treatment_Delivery_Name_Ar = (string)e.Values["Treatment_Delivery_Name_Ar"];
            Delivery.Treatment_Delivery_Name_En = (string)e.Values["Treatment_Delivery_Name_En"];

            /*Add it to log file */
            LogData = "data:" + JsonConvert.SerializeObject(Delivery, logFileModule.settings);
            logFileModule.logfile(10, "حذف حالة التسليم", "delete treatment delivery", LogData);
        }