Exemple #1
0
    private void getWeight(string Indicators2Code)
    {
        DataView dv;

        dv = btc.getWeight(Indicators2Code);
        if (dv.Count != 0)
        {
            txtWeight.Text          = Convert.ToInt32(dv[0]["Weight"]).ToString("#,##0");
            txtAll.Text             = Convert.ToInt32(dv[0]["OffAll"]).ToString("#,##0");
            lblWeightType.InnerText = (Convert.ToInt32(dv[0]["WeightType"]) == 0) ? "%" : "";
        }
        else
        {
            txtWeight.Text          = "0";
            txtAll.Text             = "0";
            lblWeightType.InnerText = "%";
            //Page.ClientScript.RegisterStartupScript(Page.GetType(), "javascript", "CkPercent();", true);
        }
    }