//load date void LoadDate() { comboBoxCurrncy.DataSource = Acn.GetAllCurnncy(); comboBoxCurrncy.ValueMember = "الرقم"; comboBoxCurrncy.DisplayMember = "الاسم"; combAccountDaeen.DataSource = Acn.GETALLAccountSub(); combAccountDaeen.ValueMember = "الرقم"; combAccountDaeen.DisplayMember = "الاسم"; combAccountMadden.DataSource = Acn.GETALLAccountSub(); combAccountMadden.ValueMember = "الرقم"; combAccountMadden.DisplayMember = "الاسم"; txtMoany.Text = ""; txtNote.Text = ""; dateTimePicker1.Value = DateTime.Now.Date; if (checkBox1.Checked) { dataGrideSimple.DataSource = Acn.GetSimpleByDate(dateTimePicker1.Value.Date, dateTimePicker1.Value.Date.AddDays(1)); } }
// تحميل البيانات void LoadDate() { // جلب العملات comboBoxCurrncyName.DataSource = Acn.GetAllCurnncy(); comboBoxCurrncyName.ValueMember = "الرقم"; comboBoxCurrncyName.DisplayMember = "الاسم"; // جلب الحسابات الفرعية comboBoxAccountName.DataSource = Acn.GETALLAccountSub(); comboBoxAccountName.ValueMember = "الرقم"; comboBoxAccountName.DisplayMember = "الاسم"; //اختيار البحث خلال يوم افتراض comboBoxSaerch.SelectedIndex = 0; dateTimePickerStart.Value = DateTime.Now.Date; dateTimePickerEND.Value = DateTime.Now.Date; // DateStart = dateTimePickerStart.Value; // DateEnd = DateStart.AddDays(1) ; }
void LoadDate() { comboBoxAccountClient.DataSource = Acn.GETALLAccountSubForSpend(); comboBoxAccountClient.ValueMember = "الرقم"; comboBoxAccountClient.DisplayMember = "الاسم"; comboBoxCurrncy.DataSource = Acn.GetAllCurnncy(); comboBoxCurrncy.ValueMember = "الرقم"; comboBoxCurrncy.DisplayMember = "الاسم"; dateTimePicker1.Value = DateTime.Now.Date; // جلب اسم حسابات الصرف والقبض // comboBoxAccoutnCashier.Text = Acn.GetAccountSystemNameByID(2); comboBoxAccoutnCashier.DataSource = Acn.GetAccountSystemByID(2);//جلب حسابات الصندوق comboBoxAccoutnCashier.ValueMember = "الرقم"; comboBoxAccoutnCashier.DisplayMember = "الاسم"; textBoxAcoountNumber.Text = Acn.GetAccountNumberByID(Convert.ToInt32(comboBoxAccountClient.SelectedValue)).ToString(); if (checkBoxShowAtDay.Checked) { dataGridView1.DataSource = Acn.GetSpendByDate(dateTimePicker1.Value, dateTimePicker1.Value.AddDays(1)); } txtMount.Text = ""; txtNote.Text = ""; textBoxmnalt.Text = ""; }