private void MainWindow_Load_1(object sender, EventArgs e)
        {
            serviceDA = new View.MateWSLocal.DBControllerWSClient();
            employee emp = new employee();

            emp = serviceDA.queryEmployeeByUsername(currentUser.user1);
            lblNameUser.Text = emp.name + " " + emp.lastName + " " + emp.secondLastName;
        }
Esempio n. 2
0
        private void PurchaseForm_Load(object sender, EventArgs e)
        {
            txtIdProv.Text      = "Ingrese ID Proovedor";
            txtIdProv.ForeColor = Color.Gray;
            serviceDA           = new View.MateWSLocal.DBControllerWSClient();
            employee emp = new employee();

            emp = serviceDA.queryEmployeeByUsername(currentUser.user1);
            userLabelContent.Text = emp.name + " " + emp.lastName + " " + emp.secondLastName;
            purchases             = new BindingList <purchase>(serviceDA.queryAllPurchase());
            String ultimoSerialCode = purchases[purchases.Count() - 1].serialCode;
            String nuevoSerialCode  = "C" + (int.Parse(ultimoSerialCode.Substring(1)) + 1).ToString("000000");

            txtSerialCode.Text = nuevoSerialCode;
        }