Пример #1
0
 public void UpdateProduct()
 {
     CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
     bool status = rbtStatus.SelectedValue == "Available" ? true : false;
     CSMSService.ManagerUpdateProduct(int.Parse(txtProductID.Text),
                                         txtProductName.Text,
                                         int.Parse(txtCategoryID.Text),
                                         float.Parse(txtImportPrice.Text),
                                         float.Parse(txtUnitPrice.Text),
                                         int.Parse(txtProductQuantity.Text),
                                         status);
 }
Пример #2
0
        public void UpdateProduct()
        {
            CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
            bool status = rbtStatus.SelectedValue == "Available" ? true : false;

            CSMSService.ManagerUpdateProduct(int.Parse(txtProductID.Text),
                                             txtProductName.Text,
                                             int.Parse(txtCategoryID.Text),
                                             float.Parse(txtImportPrice.Text),
                                             float.Parse(txtUnitPrice.Text),
                                             int.Parse(txtProductQuantity.Text),
                                             status);
        }
Пример #3
0
    public void UpdateProduct()
    {
        int productid = int.Parse(txtProductID.Text);
        int categoryid = int.Parse(ddlCategories.SelectedValue);
        float importpirce = float.Parse(txtProductImportPrice.Text);
        float unitprice = float.Parse(txtProductUnitPrice.Text);
        int quantity = int.Parse(txtProductQuantity.Text);
        bool status = false;
        if (rdoProductStatus.SelectedValue.Equals("True"))
        {
            status = true;
        }
        else
        {
            status = false;
        }

        CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
        CSMSService.ManagerUpdateProduct(productid, txtProductName.Text, categoryid,
                                      importpirce, unitprice, quantity, status);
    }
Пример #4
0
    public void UpdateProduct()
    {
        int   productid   = int.Parse(txtProductID.Text);
        int   categoryid  = int.Parse(ddlCategories.SelectedValue);
        float importpirce = float.Parse(txtProductImportPrice.Text);
        float unitprice   = float.Parse(txtProductUnitPrice.Text);
        int   quantity    = int.Parse(txtProductQuantity.Text);
        bool  status      = false;

        if (rdoProductStatus.SelectedValue.Equals("True"))
        {
            status = true;
        }
        else
        {
            status = false;
        }

        CSMSService.CSMSWebservice CSMSService = new CSMSService.CSMSWebservice();
        CSMSService.ManagerUpdateProduct(productid, txtProductName.Text, categoryid,
                                         importpirce, unitprice, quantity, status);
    }