Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            datamgmt appcomp = new datamgmt();

            string[] strinput = new string[10];
            int      nbrinput = 0;



            strinput[0] = txtProductId.Text;
            strinput[1] = txtProductName.Text;
            strinput[2] = txtDescription.Text;
            strinput[3] = txtcost.Text;
            strinput[4] = txtsellingprice.Text;
            strinput[5] = txtStatuts.Text;
            strinput[6] = txtpurchase.Text;
            //    strinput[7] = txtDescription.Text;
            strinput[7] = txtsupplier_ID.Text;;
            strinput[8] = txtOrderId.Text;
            strinput[9] = txtGeneration.Text;


            nbrinput = 10;

            retval = appcomp.showData(strinput, nbrinput, "newInventory");
        }
Пример #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            datamgmt appcomp = new datamgmt();

            string[] strinput = new string[4];
            int      nbrinput = 0;

            strinput[0] = txtemployee.Text;
            strinput[1] = txtLastName.Text;
            strinput[2] = txtEmail.Text;
            strinput[3] = txtPhone.Text;

            nbrinput = 4;

            retval = appcomp.showData(strinput, nbrinput, "Employee");
        }
Пример #3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            datamgmt appcomp = new datamgmt();

            string[] strinput = new string[4];
            int      nbrinput = 0;

            strinput[0] = txtSupportid.Text;
            strinput[1] = txtSupportType.Text;
            strinput[2] = txtSupportDescription.Text;
            strinput[3] = txtSupportcost.Text;


            nbrinput = 4;

            retval = appcomp.showData(strinput, nbrinput, "Support");
        }
Пример #4
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            datamgmt appcomp = new datamgmt();

            string[] strinput = new string[4];
            int      nbrinput = 0;

            strinput[0] = txtPromoName.Text;
            strinput[1] = txtPromoitem.Text;
            strinput[2] = txtPromoStart.Text;
            strinput[3] = txtPromoend.Text;


            nbrinput = 4;

            retval = appcomp.showData(strinput, nbrinput, "newPromotion");
        }
Пример #5
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            datamgmt appcomp = new datamgmt();

            string[] strinput = new string[6];
            int      nbrinput = 0;

            strinput[0] = txtSupplierId.Text;
            strinput[1] = txtCompanyName.Text;
            strinput[2] = txtWebsite.Text;
            strinput[3] = txtEmail.Text;
            strinput[4] = txtPhone.Text;
            strinput[5] = txtFax.Text;

            nbrinput = 6;

            retval = appcomp.showData(strinput, nbrinput, "newSupplier");
        }
Пример #6
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int retval = 0;

            datamgmt appcomp = new datamgmt();

            string[] strinput = new string[7];
            int      nbrinput = 0;

            strinput[0] = txtClearanceId.Text;
            strinput[1] = txtItemName.Text;
            strinput[2] = clearanceDescription.Text;
            strinput[3] = txtActuallyCost.Text;
            strinput[4] = txtClearancePrice.Text;
            strinput[5] = txtsupplier.Text;
            strinput[6] = txtOrderId.Text;

            nbrinput = 7;

            retval = appcomp.showData(strinput, nbrinput, "Clearance");
        }