Esempio n. 1
0
        public GUI_SUPLIER()
        {
            InitializeComponent();
            BUS_Suplier bus_suplier = new BUS_Suplier();
            String      nextID      = bus_suplier.nextID();

            tbId.Text = nextID.ToString();
        }
Esempio n. 2
0
        public void LoadComboBoxSuplier()
        {
            BUS_Suplier        bus_suplier = new BUS_Suplier();
            List <DTO_Suplier> listSuplier = bus_suplier.SelectAll();

            cbSuplier.DataSource    = listSuplier;
            cbSuplier.DisplayMember = "DISPLAYNAME";
            cbSuplier.ValueMember   = "ID";
        }
Esempio n. 3
0
        private void btReset_Click_1(object sender, EventArgs e)
        {
            BUS_Suplier bus_suplier = new BUS_Suplier();
            String      id          = bus_suplier.nextID();

            tbId.Text          = id.ToString();
            tbName.Text        = String.Empty;
            tbAddress.Text     = String.Empty;
            tbPhoneNumber.Text = String.Empty;
            dtContract.Value   = DateTime.Now;
        }
Esempio n. 4
0
        private void GUI_SUPLIER_Load(object sender, EventArgs e)
        {
            BUS_Suplier        bus_suplier = new BUS_Suplier();
            List <DTO_Suplier> listSuplier = bus_suplier.SelectAll();

            dataGridSuplier.AutoGenerateColumns = false;
            dataGridSuplier.AllowUserToAddRows  = false;
            dataGridSuplier.DataSource          = listSuplier;

            ID.DataPropertyName           = "ID";
            DISPLAYNAME.DataPropertyName  = "DISPLAYNAME";
            ADDRESS.DataPropertyName      = "ADDRESS";
            PHONENUMBER.DataPropertyName  = "PHONENUMBER";
            CONTRACTDATE.DataPropertyName = "CONTRACTDATE";
        }