private void UpdateResource()
        {
            ResourceVO item = new ResourceVO
            {
                Product_ID       = code,
                Product_Name     = txtResourceName.Text,
                Warehouse_ID     = Convert.ToInt32(cboResourceWarehouse.SelectedValue),
                Product_Price    = Convert.ToInt32(txtResourceMoney.Text),
                Product_Qty      = Convert.ToInt32(numResourceNum.Value),
                Product_Safety   = Convert.ToInt32(numSafety.Value),
                Product_Category = cboResourceCategory.SelectedValue.ToString(),
                Company_ID       = Convert.ToInt32(cboCompany.SelectedValue)
            };

            try
            {
                StandardService service = new StandardService();
                service.UpdateResource(item);
            }
            catch (Exception err)
            {
                Log.WriteError(err.Message, err);
            }
        }