예제 #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");
        }