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; }
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)); }
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; }
public void DeleteC_CasNumberRule(C_CasNumberRule data) { Factory.DaoC_CasNumberRule().Delete(data); }
public void UpdateC_CasNumberRule(C_CasNumberRule data) { Factory.DaoC_CasNumberRule().Update(data); }
public C_CasNumberRule SaveC_CasNumberRule(C_CasNumberRule data) { return Factory.DaoC_CasNumberRule().Save(data); }
public IList<C_CasNumberRule> GetC_CasNumberRule(C_CasNumberRule data) { return BasicMngr.GetCasNumberRule(data); }
public C_CasNumberRule SelectById(C_CasNumberRule data) { return (C_CasNumberRule)base.SelectById(data); }
public Boolean Delete(C_CasNumberRule data) { return base.Delete(data); }
public Boolean Update(C_CasNumberRule data) { return base.Update(data); }
public C_CasNumberRule Save(C_CasNumberRule data) { return (C_CasNumberRule)base.Save(data); }