Ejemplo n.º 1
0
        /// <summary>
        /// 根据单据模块获取配置
        /// </summary>
        /// <param name="hepler"></param>
        /// <param name="itype"></param>
        /// <returns></returns>
        public static Sys_Rec_RefDepend Comm_Ref_Config(this HtmlHelper hepler, string itype)
        {
            Sys_Rec_RefDepend    model    = new Sys_Rec_RefDepend();
            ADOSys_Rec_RefDepend instance = new ADOSys_Rec_RefDepend();
            var list = instance.GetListByWhere(" and RefDepend_Code='" + itype + "' ");

            if (list.Count > 0)
            {
                model = list[0];
            }
            else
            {
                model = null;
            }
            return(model);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 根据条件获取List
 /// </summary>
 /// <param name='strCondition'>条件(' AND Code='11'')</param>
 /// <returns>list</returns>
 public List <Sys_Rec_RefDepend> GetListByCode(string strCondition)
 {
     return(instance.GetListByWhere(strCondition));
 }