اليوم كان لي تجربة مع الذكاء الاصطناعي
اعطيته ( 3700 حرف ) تمثل سكربت بناء عده جداول في قاعدة بيانات على بيئة sql server
ثم طلبت منه
انشاء موديلات كل الجداول , لغة الدارت , تضمين كل مفاهيم البرمجة الكائنية التوجة , مفهوم الوراثة و التجريد و تعدد اشكال الاستجابة كـ ( override , virtual , abstract , sealed )
اعطيته ( 3700 حرف ) تمثل سكربت بناء عده جداول في قاعدة بيانات على بيئة sql server
ثم طلبت منه
انشاء موديلات كل الجداول , لغة الدارت , تضمين كل مفاهيم البرمجة الكائنية التوجة , مفهوم الوراثة و التجريد و تعدد اشكال الاستجابة كـ ( override , virtual , abstract , sealed )
👍1
لغة الدارت وتقنية الفلاتر
تفاجئت بأنه قام ببناء الكود بالمعايير التي طلبت منه
// الكلاس الأساسي للجداول
abstract class BaseModel {
int id;
String name;
int status;
String description;
BaseModel(this.id, this.name, this.status, this.description);
// يمكن إضافة الدوال المشتركة هنا
void save();
void update();
}
// موديل SMProductType يرث من BaseModel
class SMProductType extends BaseModel {
SMProductType(int id, String name, int status, String description)
: super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMProductType
}
@override
void update() {
// تنفيذ التحديث لـ SMProductType
}
}
// موديل SMProduct يرث من BaseModel ويضيف خصائص جديدة
class SMProduct extends BaseModel {
String secondName;
int ageDays;
String images;
bool hasExpireDate;
int typeId;
int categoryId;
int measureUnitId;
int userId;
SMProduct(
int id,
String name,
int status,
String description,
this.secondName,
this.ageDays,
this.images,
this.hasExpireDate,
this.typeId,
this.categoryId,
this.measureUnitId,
this.userId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMProduct
}
@override
void update() {
// تنفيذ التحديث لـ SMProduct
}
}
// موديل SMMeasureUnit يرث من BaseModel ويضيف خصائص جديدة
class SMMeasureUnit extends BaseModel {
int upId;
SMMeasureUnit(
int id,
String name,
int status,
String description,
this.upId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMMeasureUnit
}
@override
void update() {
// تنفيذ التحديث لـ SMMeasureUnit
}
}
// موديل SMProductCategory يرث من BaseModel
class SMProductCategory extends BaseModel {
int userId;
SMProductCategory(
int id,
String name,
int status,
String description,
this.userId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMProductCategory
}
@override
void update() {
// تنفيذ التحديث لـ SMProductCategory
}
}
// موديل BSMCostType يرث من BaseModel
class BSMCostType extends BaseModel {
BSMCostType(int id, String name, int status, String description)
: super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ BSMCostType
}
@override
void update() {
// تنفيذ التحديث لـ BSMCostType
}
}
// موديل BSMInvoiceType يرث من BaseModel
class BSMInvoiceType extends BaseModel {
BSMInvoiceType(int id, String name, int status, String description)
: super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ BSMInvoiceType
}
@override
void update() {
// تنفيذ التحديث لـ BSMInvoiceType
}
}
// موديل BSMInvoice يرث من BaseModel ويضيف خصائص جديدة
class BSMInvoice extends BaseModel {
int globalNo;
int branchId;
int typeId;
String currencyId;
int returnBranchId;
int returnTypeId;
int returnId;
double price;
double cost;
DateTime createAt;
String serialNo;
int accountId;
int sessionId;
int userId;
BSMInvoice(
this.globalNo,
this.branchId,
this.typeId,
this.currencyId,
int id,
String name,
int status,
String description,
this.returnBranchId,
this.returnTypeId,
this.returnId,
this.price,
this.cost,
this.createAt,
this.serialNo,
this.accountId,
this.sessionId,
this.userId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ BSMInvoice
}
@override
void update() {
// تنفيذ التحديث لـ BSMInvoice
}
}
abstract class BaseModel {
int id;
String name;
int status;
String description;
BaseModel(this.id, this.name, this.status, this.description);
// يمكن إضافة الدوال المشتركة هنا
void save();
void update();
}
// موديل SMProductType يرث من BaseModel
class SMProductType extends BaseModel {
SMProductType(int id, String name, int status, String description)
: super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMProductType
}
@override
void update() {
// تنفيذ التحديث لـ SMProductType
}
}
// موديل SMProduct يرث من BaseModel ويضيف خصائص جديدة
class SMProduct extends BaseModel {
String secondName;
int ageDays;
String images;
bool hasExpireDate;
int typeId;
int categoryId;
int measureUnitId;
int userId;
SMProduct(
int id,
String name,
int status,
String description,
this.secondName,
this.ageDays,
this.images,
this.hasExpireDate,
this.typeId,
this.categoryId,
this.measureUnitId,
this.userId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMProduct
}
@override
void update() {
// تنفيذ التحديث لـ SMProduct
}
}
// موديل SMMeasureUnit يرث من BaseModel ويضيف خصائص جديدة
class SMMeasureUnit extends BaseModel {
int upId;
SMMeasureUnit(
int id,
String name,
int status,
String description,
this.upId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMMeasureUnit
}
@override
void update() {
// تنفيذ التحديث لـ SMMeasureUnit
}
}
// موديل SMProductCategory يرث من BaseModel
class SMProductCategory extends BaseModel {
int userId;
SMProductCategory(
int id,
String name,
int status,
String description,
this.userId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ SMProductCategory
}
@override
void update() {
// تنفيذ التحديث لـ SMProductCategory
}
}
// موديل BSMCostType يرث من BaseModel
class BSMCostType extends BaseModel {
BSMCostType(int id, String name, int status, String description)
: super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ BSMCostType
}
@override
void update() {
// تنفيذ التحديث لـ BSMCostType
}
}
// موديل BSMInvoiceType يرث من BaseModel
class BSMInvoiceType extends BaseModel {
BSMInvoiceType(int id, String name, int status, String description)
: super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ BSMInvoiceType
}
@override
void update() {
// تنفيذ التحديث لـ BSMInvoiceType
}
}
// موديل BSMInvoice يرث من BaseModel ويضيف خصائص جديدة
class BSMInvoice extends BaseModel {
int globalNo;
int branchId;
int typeId;
String currencyId;
int returnBranchId;
int returnTypeId;
int returnId;
double price;
double cost;
DateTime createAt;
String serialNo;
int accountId;
int sessionId;
int userId;
BSMInvoice(
this.globalNo,
this.branchId,
this.typeId,
this.currencyId,
int id,
String name,
int status,
String description,
this.returnBranchId,
this.returnTypeId,
this.returnId,
this.price,
this.cost,
this.createAt,
this.serialNo,
this.accountId,
this.sessionId,
this.userId,
) : super(id, name, status, description);
@override
void save() {
// تنفيذ الحفظ لـ BSMInvoice
}
@override
void update() {
// تنفيذ التحديث لـ BSMInvoice
}
}
👍3
لغة الدارت وتقنية الفلاتر
// الكلاس الأساسي للجداول abstract class BaseModel { int id; String name; int status; String description; BaseModel(this.id, this.name, this.status, this.description); // يمكن إضافة الدوال المشتركة هنا void save(); void update(); } // موديل…
دقة تطبيق المطلوب 80% من المستوى الاحترافي
الخطأ المتواجد هو عدم ذكر الكلمة المفتاحية
required
مع الحقول التي لا تقبل فرااغ
الخطأ المتواجد هو عدم ذكر الكلمة المفتاحية
required
مع الحقول التي لا تقبل فرااغ
👍1
اللغات والتقنيات الحديثة تتطور بسرعة وبشكل مستمر لذلك
ملاحظة مهمة 📌📌📌
قبل مشاهدة اي فيديو تأكد ان عمره لا يزيد عن سنة
ملاحظة مهمة 📌📌📌
قبل مشاهدة اي فيديو تأكد ان عمره لا يزيد عن سنة
👍5👎1
Phone call
👍2