예제 #1
0
 public static void AddNewBooks(string iSBN, string bookname, string authorname, string publishname, string classificationname, double money, string remarks)
 {
     if (mode == 0)
     {
         ODBCConnector.AddNewBooks(iSBN, bookname, authorname, publishname, classificationname, money, remarks);
     }
     else//mode==1
     {
         ADOConnector.AddNewBooks(iSBN, bookname, authorname, publishname, classificationname, money, remarks);
     }
 }
예제 #2
0
 public static DataSet ShowSalesReport(string starttime, string endtime)
 {
     if (mode == 0)
     {
         return(ODBCConnector.ShowSalesReport(starttime, endtime));
     }
     else//mode==1
     {
         return(ADOConnector.ShowSalesReport(starttime, endtime));
     }
 }
예제 #3
0
 public static void AddNewSysUser(string name, string pwd, string power)
 {
     if (mode == 0)
     {
         ODBCConnector.AddNewSysUser(name, pwd, power);
     }
     else//mode==1
     {
         ADOConnector.AddNewSysUser(name, pwd, power);
     }
 }
예제 #4
0
 public static DataSet GetAllEmails()
 {
     if (mode == 0)
     {
         return(ODBCConnector.GetAllEmails());
     }
     else//mode==1
     {
         return(ADOConnector.GetAllEmails());
     }
 }
예제 #5
0
 public static string GetPrice(string isbn)
 {
     if (mode == 0)
     {
         return(ODBCConnector.GetPrice(isbn));
     }
     else//mode==1
     {
         return(ADOConnector.GetPrice(isbn));
     }
 }
예제 #6
0
 public static void ExecuteStem(String SqlStem)
 {
     if (mode == 0)
     {
         ODBCConnector.ExecuteStem(SqlStem);
     }
     else//mode==1
     {
         ADOConnector.ExecuteStem(SqlStem);
     }
 }
예제 #7
0
        /*
         * 0 表示ODBC连接
         * 1 表示ADO连接
         */

        public static void SetArgs(string name, string user, string pwd)
        {
            if (mode == 0)
            {
                ODBCConnector.SetArgs(name, user, pwd);
            }
            else//mode==1
            {
                ADOConnector.SetArgs(name, user, pwd);
            }
        }
예제 #8
0
 public static DataSet SelectVipSumBuy(string vipnum)
 {
     if (mode == 0)
     {
         return(ODBCConnector.SelectVipSumBuy(vipnum));
     }
     else//mode==1
     {
         return(ADOConnector.SelectVipSumBuy(vipnum));
     }
 }
예제 #9
0
 public static string GetPower(string name)
 {
     if (mode == 0)
     {
         return(ODBCConnector.GetPower(name));
     }
     else//mode==1
     {
         return(ADOConnector.GetPower(name));
     }
 }
예제 #10
0
 public static void ChangeAdminPwd(string oldpwd_sha1, string newpwd_sha1)
 {
     if (mode == 0)
     {
         ODBCConnector.ChangeAdminPwd(oldpwd_sha1, newpwd_sha1);
     }
     else//mode==1
     {
         ADOConnector.ChangeAdminPwd(oldpwd_sha1, newpwd_sha1);
     }
 }
예제 #11
0
 public static DataSet SelectSellListTable(string starttime, string endtime)
 {
     if (mode == 0)
     {
         return(ODBCConnector.SelectSellListTable(starttime, endtime));
     }
     else//mode==1
     {
         return(ADOConnector.SelectSellListTable(starttime, endtime));
     }
 }
예제 #12
0
 public static DataSet SelectBookInfoTable(int mode, string str)
 {
     if (mode == 0)
     {
         return(ODBCConnector.SelectBookInfoTable(mode, str));
     }
     else//mode==1
     {
         return(ADOConnector.SelectBookInfoTable(mode, str));
     }
 }
예제 #13
0
 public static void Replenishment(int mode, string isbn, int num)
 {
     if (mode == 0)
     {
         ODBCConnector.Replenishment(mode, isbn, num);
     }
     else//mode==1
     {
         ADOConnector.Replenishment(mode, isbn, num);
     }
 }
예제 #14
0
 public static DataSet ShowIncomeStat(int mode)
 {
     if (mode == 0)
     {
         return(ODBCConnector.ShowIncomeStat(mode));
     }
     else//mode==1
     {
         return(ADOConnector.ShowIncomeStat(mode));
     }
 }
예제 #15
0
 public static DataSet SelectVipTTable()
 {
     if (mode == 0)
     {
         return(ODBCConnector.SelectVipTTable());
     }
     else//mode==1
     {
         return(ADOConnector.SelectVipTTable());
     }
 }
예제 #16
0
 public static void ChangeDiscount(int mode, string text)
 {
     if (mode == 0)
     {
         ODBCConnector.ChangeDiscount(mode, text);
     }
     else//mode==1
     {
         ADOConnector.ChangeDiscount(mode, text);
     }
 }
예제 #17
0
 public static String GetNewVipNum()
 {
     if (mode == 0)
     {
         return(ODBCConnector.GetNewVipNum());
     }
     else//mode==1
     {
         return(ADOConnector.GetNewVipNum());
     }
 }
예제 #18
0
 public static void ChangePrice(string isbn, string price)
 {
     if (mode == 0)
     {
         ODBCConnector.ChangePrice(isbn, price);
     }
     else//mode==1
     {
         ADOConnector.ChangePrice(isbn, price);
     }
 }
예제 #19
0
 public static void AddNewVip(string num, string name, string pwd_sha1, string phone, string mail)
 {
     if (mode == 0)
     {
         ODBCConnector.AddNewVip(num, name, pwd_sha1, phone, mail);
     }
     else//mode==1
     {
         ADOConnector.AddNewVip(num, name, pwd_sha1, phone, mail);
     }
 }
예제 #20
0
 public static DataSet ShowAllSysUsers()
 {
     if (mode == 0)
     {
         return(ODBCConnector.ShowAllSysUsers());
     }
     else//mode==1
     {
         return(ADOConnector.ShowAllSysUsers());
     }
 }
예제 #21
0
 public static void UpgradeVipLevel(string num)
 {
     if (mode == 0)
     {
         ODBCConnector.UpgradeVipLevel(num);
     }
     else//mode==1
     {
         ADOConnector.UpgradeVipLevel(num);
     }
 }
예제 #22
0
 public static bool TestConn(string name, string user, string pwd)
 {
     if (mode == 0)
     {
         return(ODBCConnector.TestConn(name, user, pwd));
     }
     else//mode==1
     {
         return(ADOConnector.TestConn(name, user, pwd));
     }
 }
예제 #23
0
 public static void ChangeVipInfo(string num, string name, string pwd_sha1, string phone, string mail)
 {
     if (mode == 0)
     {
         ODBCConnector.ChangeVipInfo(num, name, pwd_sha1, phone, mail);
     }
     else//mode==1
     {
         ADOConnector.ChangeVipInfo(num, name, pwd_sha1, phone, mail);
     }
 }
예제 #24
0
 public static String Get_Pwd(String str)
 {
     if (mode == 0)
     {
         return(ODBCConnector.Get_Pwd(str));
     }
     else//mode==1
     {
         return(ADOConnector.Get_Pwd(str));
     }
 }
예제 #25
0
 public static String FindBestSellingBook(string starttime, string endtime)
 {
     if (mode == 0)
     {
         return(ODBCConnector.FindBestSellingBook(starttime, endtime));
     }
     else//mode==1
     {
         return(ADOConnector.FindBestSellingBook(starttime, endtime));
     }
 }
예제 #26
0
 public static int InquireBookNumbers(string iSBN)
 {
     if (mode == 0)
     {
         return(ODBCConnector.InquireBookNumbers(iSBN));
     }
     else//mode==1
     {
         return(ADOConnector.InquireBookNumbers(iSBN));
     }
 }
예제 #27
0
 public static void AddToSellList(long vipNum, string iSBN, string time, int num, double money, string tranMode, string tranNum, string remarks)
 {
     if (mode == 0)
     {
         ODBCConnector.AddToSellList(vipNum, iSBN, time, num, money, tranMode, tranNum, remarks);
     }
     else//mode==1
     {
         ADOConnector.AddToSellList(vipNum, iSBN, time, num, money, tranMode, tranNum, remarks);
     }
 }