Beispiel #1
0
        private XElement ConvertBank(BE.bank bank) //convert objet bank in XELEMENT
        {
            XElement newbank = new XElement("bank",
                                            new XElement("BankNum", bank.bankNum),
                                            new XElement("BankName", bank.bankName), new XElement("City", bank.city),
                                            new XElement("Branch_Bank", bank.branchBank), new XElement("AdressBank", bank.adressBank),
                                            new XElement("AccountNum", bank.accountNum));

            return(newbank);
        }
 public ADD_EMPLOYEE(BL.IBL Bl)//ctor
 {
     this.bl = Bl;
     InitializeComponent();
     employee         = new BE.Employee();
     BANK             = new bank();
     this.DataContext = employee;
     bl = BL.FactoryBL.GetBL();
     showDataGridView();
     this.degreeComboBox.ItemsSource = Enum.GetValues(typeof(BE.Degree));
     comboboxyeshouv();
 }
Beispiel #3
0
        }                                                                                                                                                                                                                                                            //ctor

        public Employee(string lastname_ = null, string value2 = null, DateTime dateTime = default(DateTime), int v1 = 0, int v2 = 0, int v3 = 0, int B_NUM = 0, string B_NAME = null, string CITY = null, int B_BRANCHS = 0, string B_aDDRESS = null, Degree d = 0) // with parameters
        {
            bankdetails            = new bank();
            this.lastName          = lastname_;
            this.firstName         = value2;
            this.birthDate         = dateTime;
            this.age               = v1;
            this.ID                = v2;
            this.phone             = v3;
            bankdetails.bankNum    = B_NUM;
            bankdetails.bankName   = B_NAME;
            bankdetails.city       = CITY;
            bankdetails.branchBank = B_BRANCHS;
            bankdetails.adressBank = B_aDDRESS;
            degree = d;
        }
        public update_Employee(BL.IBL Bl)//ctor
        {
            this.bl = Bl;
            InitializeComponent();
            employee         = new BE.Employee();
            BANK             = new bank();
            this.DataContext = employee;

            bl = BL.FactoryBL.GetBL();
            showDataGridView();
            foreach (int id in bl.return_names_id_employee())
            {
                comboBox.Items.Add(id);
            }
            this.degreeComboBox.ItemsSource = Enum.GetValues(typeof(BE.Degree));
            comboboxyeshouv();
        }