Exemplo n.º 1
0
 private void FillCustomerData()
 {
     try
     {
         BDCustomerPrimaryKey _customerPrimaryKey = new BDCustomerPrimaryKey();
         _customerPrimaryKey.CustomerID = _customerID;
         _customer        = _bDCustomerWrapper.SelectOne(_customerPrimaryKey);
         num_Credit.Value = _customer.Credit.Value;
         num_Debit.Value  = _customer.Debit.Value;
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
        private void LoadControls()
        {
            BDCustomerPrimaryKey pk = new BDCustomerPrimaryKey();

            pk.CustomerID        = CustomerID;
            customer             = customerWrapper.SelectOne(pk);
            tbx_Code.Text        = customer.CustomerCode != null ? customer.CustomerCode : "";
            tbx_Name.Text        = customer.CustomerName;
            tbx_Address.Text     = customer.Address != null ? customer.Address : "";
            tbx_Pone1.Text       = customer.Phone1 != null ? customer.Phone1 : "";
            tbx_phone2.Text      = customer.Phone2 != null ? customer.Phone2 : "";
            tbx_Mobile1.Text     = customer.Mobile1 != null ? customer.Mobile1 : "";
            tbx_Mobile2.Text     = customer.Mobile2 != null ? customer.Mobile2 : "";
            tbx_Email.Text       = customer.Email != null ? customer.Email : "";
            chk_IsActive.Checked = customer.IsActive != null ? (bool)customer.IsActive : true;
        }
Exemplo n.º 3
0
 private void FillCustomerData()
 {
     try
     {
         BDCustomerPrimaryKey _customerPrimaryKey = new BDCustomerPrimaryKey();
         _customerPrimaryKey.CustomerID = _customerID;
         _customer        = _bDCustomerWrapper.SelectOne(_customerPrimaryKey);
         num_Credit.Value = _customer.Credit.Value;
         num_Debit.Value  = _customer.Debit.Value;
     }
     catch (Exception ex)
     {
         MessageBox.Show("حدث خطأ برجاء تكرار العمليه مره اخرى واذا تكرر الخطا برجاءالاتصال بالشخص المصمم للبرنامج وارسال رسالة الخطا التى ستظهر بعد قليل له");
         MessageBox.Show(ex.Message);
     }
 }