private void FillSupplierData() { try { BDSupplierPrimaryKey _supplierPrimaryKey = new BDSupplierPrimaryKey(); _supplierPrimaryKey.SupplierID = _supplierID; _supplier = _bDSupplierWrapper.SelectOne(_supplierPrimaryKey); num_Credit.Value = _supplier.Credit.Value; num_Debit.Value = _supplier.Debit.Value; } catch (Exception) { throw; } }
private void FillSupplierData() { try { BDSupplierPrimaryKey _supplierPrimaryKey = new BDSupplierPrimaryKey(); _supplierPrimaryKey.SupplierID = _supplierID; _supplier = _bDSupplierWrapper.SelectOne(_supplierPrimaryKey); num_Credit.Value = _supplier.Credit.Value; num_Debit.Value = _supplier.Debit.Value; } catch (Exception ex) { MessageBox.Show("حدث خطأ برجاء تكرار العمليه مره اخرى واذا تكرر الخطا برجاءالاتصال بالشخص المصمم للبرنامج وارسال رسالة الخطا التى ستظهر بعد قليل له"); MessageBox.Show(ex.Message); } }
private void LoadControls() { BDSupplierPrimaryKey pk = new BDSupplierPrimaryKey(); pk.SupplierID = SupplierID; supplier = supplierWrapper.SelectOne(pk); tbx_Code.Text = supplier.SupplierCode != null ? supplier.SupplierCode : ""; tbx_Name.Text = supplier.SupplierName; tbx_Address.Text = supplier.Address != null ? supplier.Address : ""; tbx_Pone1.Text = supplier.Phone1 != null ? supplier.Phone1 : ""; tbx_phone2.Text = supplier.phone2 != null ? supplier.phone2 : ""; tbx_Mobile1.Text = supplier.Mobile1 != null ? supplier.Mobile1 : ""; tbx_Mobile2.Text = supplier.Mobile2 != null ? supplier.Mobile2 : ""; tbx_Email.Text = supplier.Email != null ? supplier.Email : ""; chk_IsActive.Checked = supplier.IsActive != null ? (bool)supplier.IsActive : true; }