예제 #1
0
        private T ActionMove(object sender, EditFormActionType actionType)
        {
            T row = sender as T;

            using (var useData = new UseData <T>(User, FormName, MasterKey, row))
            {
                return(useData.FindByMove(actionType));
            }
        }
예제 #2
0
 public virtual List <T> ListByCompanyCode(string companyCode)
 {
     using (var useData = new UseData <T>())
     {
         return(typeof(T) == typeof(tbl_Company)
             ? useData.List()
             : useData.List(x => x.GetValue("CompanyCode") != companyCode));
     }
 }