1 / 14

指導老師:石貴平 張志勇 組員: 施清偉 林靖鐘 丁銘龍 李昂熹 賴聰勝

賣場無線導覽系統. 指導老師:石貴平 張志勇 組員: 施清偉 林靖鐘 丁銘龍 李昂熹 賴聰勝. 完成部分. 資料庫控管系統. 查詢(一般查詢 . 條件查詢) 新增資料 修改資料 刪除資料 特價上架 聊天室SEVER端. PDA端系統. 物品查詢 購物車 連線. RDA 和 Replication 物件使用方法 :. BSTR bstr1=NULL; BSTR bstr2=NULL; BSTR bstr3=NULL; BSTR bstr4=NULL; wchar_t *LocalTableName=L"can";

korbin
Download Presentation

指導老師:石貴平 張志勇 組員: 施清偉 林靖鐘 丁銘龍 李昂熹 賴聰勝

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 賣場無線導覽系統 指導老師:石貴平 張志勇 組員:施清偉 林靖鐘 丁銘龍 李昂熹 賴聰勝

  2. 完成部分

  3. 資料庫控管系統 • 查詢(一般查詢.條件查詢) • 新增資料 • 修改資料 • 刪除資料 • 特價上架 • 聊天室SEVER端

  4. PDA端系統 • 物品查詢 • 購物車 • 連線

  5. RDA和Replication物件使用方法: BSTR bstr1=NULL; BSTR bstr2=NULL; BSTR bstr3=NULL; BSTR bstr4=NULL; wchar_t *LocalTableName=L"can"; wchar_t *SQLSelectString=L"SELECT * FROM can"; //SQL指令 wchar_t *OLEDBConnectionString=L"provider=sqloledb; data source=BLACKJACK\\MARKETSYSTEM_SQL; Initial Catalog=MarketSystem;user id=sa;password=sa密碼"; wchar_t *ErrorTableName=L"errorTable"; bstr1=SysAllocString(LocalTableName); bstr2=SysAllocString(SQLSelectString); bstr3=SysAllocString(OLEDBConnectionString); bstr4=SysAllocString(ErrorTableName); ReplicationRDA test; wchar_t *tempString=TEXT("data source=\\My Documents\\MarketSystem.sdf");

  6. wchar_t *tempString2=TEXT("BLACKJACK\\MARKETSYSTEM_SQL"); test.Replication_SetSubscriber(L"wireless"); test.Replication_SetSubscriberConnectionString(tempString); test.Replication_SetInternetURL(L"http://192.168.1.190/MarketSystemIIS/sscesa20.dll"); test.Replication_SetPublisher(tempString2); test.Replication_SetPublisherLogin(L"sa"); test.Replication_SetPublisherPassword(L"sa密碼"); test.Replication_SetPublisherDatabase(L"MarketSystem"); test.Replication_SetPublication(L"MarketSystem"); test.Replication_SetPublisherSecurityMode(DB_AUTHENTICATION); test.Replication_SetDistributor(tempString2); test.Replication_SetDistributorSecurityMode(DB_AUTHENTICATION); test.Replication_SetDistributorLogin(L"sa"); test.Replication_SetDistributorPassword(L"sa密碼");

  7. HRESULT hr; hr=test.Replication_AddSubscription((REPL_DBADDOPTION)EXISTING_DATABASE,false); if(FAILED(hr)) test.Replication_AddSubscription((REPL_DBADDOPTION)CREATE_DATABASE); test.Replication_Synchronize();); test.RDA_SetInternetURL(TEXT("http://192.168.1.190/MarketSystemIIS/sscesa20.dll")); test.RDA_SetLocalConnectionString(tempString); //test.RDA_Pull((wchar_t*)bstr1,(wchar_t*)bstr2,(wchar_t*)bstr3,TRACKINGON,(wchar_t*)bstr4); test.Replication_DropSubscription((REPL_DBDROPOPTION)DROP_DATABASE); SysFreeString(bstr1); SysFreeString(bstr2); SysFreeString(bstr3); SysFreeString(bstr4);

  8. 網頁端 • 預先購物 • 會員登錄 • 線上查詢

  9. 問題與檢討

More Related