Beispiel #1
0
 public static MyCustomerBL getDataByShopIdNPhone(Int32 ShopID, string strPhone)
 {
     SummitDS.View_MyCustomerDataTable thisTable = getAdapter().GetDataByShopIDNPhone(ShopID, strPhone);
     if (thisTable != null && thisTable.Rows.Count > 0)
     {
         return(BuildFromRow(thisTable.Rows[0]));
     }
     return(null);
 }
Beispiel #2
0
 public static MyCustomerBL getDataByUserId(Int32 UserId)
 {
     SummitDS.View_MyCustomerDataTable thisTable = getAdapter().GetDataByUserId(UserId);
     if (thisTable != null && thisTable.Rows.Count > 0)
     {
         return(BuildFromRow(thisTable.Rows[0]));
     }
     return(null);
 }
Beispiel #3
0
        public static List <MyCustomerBL> getDataByShopIDandMobileList(Int32 iShopID, string strPhone)
        {
            SummitDS.View_MyCustomerDataTable thisTable = getAdapter().GetDataByShopIDNPhone(iShopID, strPhone);
            List <MyCustomerBL> lstCustomerList         = null;

            if (thisTable != null && thisTable.Rows.Count > 0)
            {
                lstCustomerList = BuildFromTable(thisTable);
            }
            return(lstCustomerList);
        }
Beispiel #4
0
        public static List <MyCustomerBL> getCustomersList(int shopId)
        {
            SummitDS.View_MyCustomerDataTable thisTable = getAdapter().GetDataByShopId(shopId);
            List <MyCustomerBL> lstCustomerList         = null;

            if (thisTable != null && thisTable.Rows.Count > 0)
            {
                lstCustomerList = BuildFromTable(thisTable);
            }
            return(lstCustomerList);
        }