예제 #1
0
        public void LoadHome(int pstateid, int brandid, string homename)
        {
            SQSHome.Clear();
            client = new SQSAdminServiceClient();
            client.Endpoint.Address = new System.ServiceModel.EndpointAddress(CommonVariables.WcfEndpoint);
            DataSet ds = client.SQSAdmin_Generic_GetHomeNameBySearch(pstateid, brandid, homename);

            client.Close();
            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                Home b = new Home();
                b.HomeID     = int.Parse(dr["homeid"].ToString());
                b.HomeName   = dr["homename"].ToString();
                b.Configured = bool.Parse(dr["min_area"].ToString());
                SQSHome.Add(b);
            }
        }