Exemplo n.º 1
0
 public List <Measures> LoadMeasures(int clID)
 {
     if (Session["user"] == null)
     {
         return(null);
     }
     if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 9))
     {
         return(null);
     }
     return(MeasuresDAL.LoadByCLID(clID));
 }
Exemplo n.º 2
0
 public int InsertMeasures(string meDesc, int clID, int state)
 {
     if (Session["user"] == null)
     {
         return(-1000);
     }
     if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 9))
     {
         return(-1001);
     }
     if (state == 1)
     {
         CustomLostsDAL.UpdateStateTo2(clID);
     }
     return(MeasuresDAL.Insert(meDesc, clID));
 }