private void LoadSystemInfo()
    {
        Power.PowerService service = new Power.PowerService();
        DataSet ds = service.Get_SystemInfo("IsWebMap=1",strAccount);

        ddlSystemInfo.Items.Clear();
        if (ds != null&&ds.Tables.Count>0 && ds.Tables[0].Rows.Count > 0)
        {
            ddlSystemInfo.DataSource = ds;
            ddlSystemInfo.DataTextField = "SystemName";
            ddlSystemInfo.DataValueField = "SystemNo";
            ddlSystemInfo.DataBind();

            ddlSystemInfo.SelectedIndex = 0;
        }
    }
Пример #2
0
    private void LoadSystemInfo()
    {
        Power.PowerService service = new Power.PowerService();
        DataTable dt = service.Get_SystemInfo("IsWebMap='True'", strAccount).Tables[0];
        if (dt != null)
        {
            ddlSystemInfo.DataSource = dt;
            ddlSystemInfo.DataTextField = "SystemName";
            ddlSystemInfo.DataValueField = "SystemNo";
            ddlSystemInfo.DataBind();

            LoadequipmentWithOutSet();
        }
    }