Пример #1
0
 public DataView getDS(string TypeName)
 {
     if (TypeName == "Measure")
     {
         Hownet.BLL.Measure bllM = new Measure();
         return(bllM.GetAllList().Tables[0].DefaultView);
     }
     else if (TypeName == "Company")
     {
         Hownet.BLL.Company bllC = new Company();
         return(bllC.GetList("TypeID=1").Tables[0].DefaultView);
     }
     else if (TypeName == "Materiel")
     {
         Hownet.BLL.Materiel bllMat = new Materiel();
         return(bllMat.GetList("AttributeID=1").Tables[0].DefaultView);
     }
     else if (TypeName == "VerifyMan")
     {
         Hownet.BLL.Users bllU = new Users();
         return(bllU.GetAllList().Tables[0].DefaultView);
     }
     else if (TypeName == "ProductsType")
     {
         Hownet.BLL.MaterielType bllMT = new MaterielType();
         return(bllMT.GetList("AttributeID=1").Tables[0].DefaultView);
     }
     else
     {
         DataView dv = new DataView();
         return(dv);
     }
 }