السلام عليكم ورحمة الله اما بعد فاني اردت اعادة برنامج تسير الفواتير الدي قد سبق وطرحته في هذا المنتدى لوجود مشاكل فيه اضن ان مصدرها العلاقات بين الجداول
فلهدا اود من الاخوة مشاركتي في انشاء الجداول للموضوع الاتي
لدينا في كل شهر تصدر فاتورة فيها ( رقم العقد..رقم الفاتورة..تاريخ الفاتورة..تاريخ الدفع..قيمة الفاتورة الاجمالية) وتحتوي كل فاتورة على مجموعة من العدادات(رقم العداد..كمية الاستهلاك..قيمة الاستهلاك..) هدف انشاء هذه الجداول هواتكوين برنامج لتسير هذه الفواتير بحيث يكون لدي نموذج لتسجيل الفواتير يحتوي على نموذج فرعي لتسجيل استهلاك العدادات (ملاحظة مجموعة وارقام العدادات ثابتة وليس بالضرورة كل فاتورة تحوي جميع العدادات اي في بعض الفواتير) .
المهم طلبي واحد وهو تكوين الجداول فقط شكرا مسبقا والله لايضيع اجر المحسنين
function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}