示例#1
0
 public RsRoutingCheck GetRsRoutingCheckById(string Id)
 {
     using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>())
     {
         RsRoutingCheck model = RsRoutingCheckBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
示例#2
0
 public bool AddRsRoutingCheck(RsRoutingCheck mRsRoutingCheck)
 {
     if (mRsRoutingCheck == null)
     {
         return(false);
     }
     using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>())
     {
         return(RsRoutingCheckBLL.Add(mRsRoutingCheck));
     }
 }
示例#3
0
 public bool DelRsRoutingCheck(string Id)
 {
     using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>())
     {
         try
         {
             RsRoutingCheck item = RsRoutingCheckBLL.GetFirstOrDefault(Id);
             return(RsRoutingCheckBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
示例#4
0
 public bool DelRsRoutingChecks(string[] Ids)
 {
     using (IRsRoutingCheckBLL RsRoutingCheckBLL = BLLContainer.Resolve <IRsRoutingCheckBLL>())
     {
         try
         {
             List <RsRoutingCheck> entitys = new List <RsRoutingCheck>();
             foreach (string id in Ids)
             {
                 RsRoutingCheck item = RsRoutingCheckBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(RsRoutingCheckBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }