예제 #1
0
        public IList<C_CasNumberRule> GetCasNumberRule(C_CasNumberRule data)
        {
            //Obtiene la lisata de el Regulator a Mirar //MetaMaster
            IList<MMaster> regulatorList = Factory.DaoMMaster().Select(
                new MMaster { MetaType = new MType { Code = data.Rule.MetaType.Code } })
                .OrderBy(f=>f.NumOrder).ToList();

            //Obtiene la lista de las Regulaciones existentes
            IList<C_CasNumberRule> casNumberList = Factory.DaoC_CasNumberRule().Select(data);

            try
            {
                //Left Outer Join entregando Regualciones FULL
                casNumberList = (from ori in regulatorList
                                 join rule in casNumberList on ori.MetaMasterID equals rule.Rule.MetaMasterID into g
                                 from rule in g.DefaultIfEmpty()
                                 select new C_CasNumberRule { 
                                     Rule = ori, 
                                     CasNumber = data.CasNumber, 
                                     RuleValue = rule == null ? "" : rule.RuleValue,
                                     CreatedBy = rule == null ? "" : rule.CreatedBy,
                                     CreationDate = rule == null ? null : rule.CreationDate, 
                                     RowID = rule == null ? 0 : rule.RowID })
                                 .ToList();
            }
            catch { }

            return casNumberList;

        }
예제 #2
0
        public override Boolean Equals(object obj)
        {
            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }
            C_CasNumberRule castObj = (C_CasNumberRule)obj;

            return((castObj != null) &&
                   (this.RowID == castObj.RowID));
        }
예제 #3
0
        public IList<C_CasNumberRule> Select(C_CasNumberRule data)
        {

                IList<C_CasNumberRule> datos = new List<C_CasNumberRule>();

                datos = GetHsql(data).List<C_CasNumberRule>();
                if (!Factory.IsTransactional)
                    Factory.Commit();
                return datos;
            
        }
예제 #4
0
 public void DeleteC_CasNumberRule(C_CasNumberRule data) { Factory.DaoC_CasNumberRule().Delete(data); }
예제 #5
0
 public void UpdateC_CasNumberRule(C_CasNumberRule data) { Factory.DaoC_CasNumberRule().Update(data); }
예제 #6
0
 public C_CasNumberRule SaveC_CasNumberRule(C_CasNumberRule data) { return Factory.DaoC_CasNumberRule().Save(data); }
예제 #7
0
 public IList<C_CasNumberRule> GetC_CasNumberRule(C_CasNumberRule data) { return BasicMngr.GetCasNumberRule(data); }
예제 #8
0
 public C_CasNumberRule SelectById(C_CasNumberRule data)
 {
     return (C_CasNumberRule)base.SelectById(data);
 }
예제 #9
0
 public Boolean Delete(C_CasNumberRule data)
 {
     return base.Delete(data);
 }
예제 #10
0
 public Boolean Update(C_CasNumberRule data)
 {
     return base.Update(data);
 }
예제 #11
0
 public C_CasNumberRule Save(C_CasNumberRule data)
 {
     return (C_CasNumberRule)base.Save(data);
 }