Beispiel #1
0
 public int SaveCLReason(string clReason, int clID)
 {
     if (Session["user"] == null)
     {
         return(-1000);
     }
     if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 9))
     {
         return(-1001);
     }
     return(CustomLostsDAL.SaveCLReason(clReason, clID));
 }
Beispiel #2
0
 public PagingList <v_customlosts> LoadCustomlostsPaging(int pageSize, int pageIndex)
 {
     if (Session["user"] == null)
     {
         return(null);
     }
     if (!PowerDAL.HasPower((Session["user"] as Users).RoleID.Value, 9))
     {
         return(null);
     }
     return(CustomLostsDAL.LoadCustomlostsPaging(pageSize, pageIndex));
 }
Beispiel #3
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));
 }
Beispiel #4
0
 public string SelectClReason(int clID)
 {
     return(CustomLostsDAL.SelectClReason(clID));
 }