-
大小: 1.76MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-08-30
- 語言: 其他
- 標簽: 數據采集??webBrowser??
資源簡介
使用webBrowser采集網頁數據,對一些需要登錄,或有驗證的,可以在webBrowser控件中手動登錄或驗證后,在開始批量采集

代碼片段和文件信息
/**??版本信息模板在安裝目錄下,可自行修改。
*?sys_Price.cs
*
*?功?能:?N/A
*?類?名:?sys_Price
*
*?Ver????變更日期?????????????負責人??變更內容
*?───────────────────────────────────
*?V0.01??2016/10/28?17:27:14???N/A????初版
*
*?Copyright?(c)?2012?Maticsoft?Corporation.?All?rights?reserved.
*┌──────────────────────────────────┐
*│ 此技術信息為本公司機密信息,未經本公司書面同意禁止向第三方披露. │
*│ 版權所有:動軟卓越(北京)科技有限公司 │
*└──────────────────────────────────┘
*/
using?System;
using?System.Data;
using?System.Collections.Generic;
using?NGJ.Common;
using?NGJ.Model;
namespace?NGJ.BLL
{
///?
///?sys_Price
///?
public?partial?class?sys_Price
{
private?readonly?NGJ.DAL.sys_Price?dal=new?NGJ.DAL.sys_Price();
public?sys_Price()
{}
#region??BasicMethod
///?
///?得到最大ID
///?
public?int?GetMaxId()
{
return?dal.GetMaxId();
}
///?
///?是否存在該記錄
///?
public?bool?Exists(int?ID)
{
return?dal.Exists(ID);
}
///?
///?增加一條數據
///?
public?int??Add(NGJ.Model.sys_Price?model)
{
return?dal.Add(model);
}
///?
///?更新一條數據
///?
public?bool?Update(NGJ.Model.sys_Price?model)
{
return?dal.Update(model);
}
///?
///?刪除一條數據
///?
public?bool?Delete(int?ID)
{
return?dal.Delete(ID);
}
///?
///?刪除一條數據
///?
public?bool?DeleteList(string?IDlist?)
{
return?dal.DeleteList(IDlist?);
}
///?
///?得到一個對象實體
///?
public?NGJ.Model.sys_Price?GetModel(int?ID)
{
return?dal.GetModel(ID);
}
///?
///?得到一個對象實體,從緩存中
///?
public?NGJ.Model.sys_Price?GetModelByCache(int?ID)
{
string?CacheKey?=?“sys_PriceModel-“?+?ID;
object?objModel?=?NGJ.Common.DataCache.GetCache(CacheKey);
if?(objModel?==?null)
{
try
{
objModel?=?dal.GetModel(ID);
if?(objModel?!=?null)
{
int?ModelCache?=?NGJ.Common.ConfigHelper.GetConfigInt(“ModelCache“);
NGJ.Common.DataCache.SetCache(CacheKey?objModel?DateTime.Now.AddMinutes(ModelCache)?TimeSpan.Zero);
}
}
catch{}
}
return?(NGJ.Model.sys_Price)objModel;
}
///?
///?獲得數據列表
///?
public?DataSet?GetList(string?strWhere)
{
return?dal.GetList(strWhere);
}
///?
///?獲得前幾行數據
///?
public?DataSet?GetList(int?Topstring?strWherestring?filedOrder)
{
return?dal.GetList(TopstrWherefiledOrder);
}
///?
///?獲得數據列表
///?
public?List?GetModelList(string?strWhere)
{
DataSet?ds?=?dal.GetList(strWhere);
return?DataTableToList(ds.Tables[0]);
}
///?
///?獲得數據列表
///?
public?List?DataTableToList(DataTable?dt)
{
List?modelList?=?new?List(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????315??2016-10-31?11:35??ProWebBrowserCaiJi\ProWebBrowserCaiJi\app.config
?????文件?????178688??2016-10-21?10:00??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\Aliyun.MNS.dll
?????文件?????769536??2016-10-21?10:00??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\Aliyun.MNS.pdb
?????文件?????172032??2015-08-04?19:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\Aliyun.OSS.dll
?????文件??????15360??2013-03-20?11:32??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\COM.Excel.dll
?????文件?????145920??2016-10-28?15:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\CSRedis.dll
?????文件?????517632??2016-10-28?15:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\CSRedis.pdb
?????文件????1089536??2013-03-20?11:32??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\Excel.dll
?????文件?????102400??2013-03-20?11:32??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\IBatisNet.Common.dll
?????文件?????249856??2013-03-20?11:33??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\IBatisNet.DataMapper.dll
?????文件?????288768??2016-03-31?17:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\log4net.dll
?????文件?????369152??2013-03-20?11:33??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\MySql.Data.dll
?????文件?????439296??2015-03-26?09:22??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\Newtonsoft.Json.dll
?????文件?????180224??2016-10-28?15:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\NGJ.Common.dll
?????文件?????368128??2016-10-28?15:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\NGJ.Common.pdb
?????文件??????65536??2016-10-21?10:00??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\NGJ.DBUtility.dll
?????文件?????169472??2016-10-21?10:00??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\NGJ.DBUtility.pdb
?????文件??????45056??2013-03-20?11:33??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\OpenSmtp.dll
?????文件??????32256??2016-10-31?11:39??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\ProWebBrowserCaiJi.exe
?????文件????????315??2016-10-31?11:35??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\ProWebBrowserCaiJi.exe.config
?????文件??????73216??2016-10-31?11:39??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\ProWebBrowserCaiJi.pdb
?????文件??????11600??2016-10-31?11:37??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\ProWebBrowserCaiJi.vshost.exe
?????文件????????315??2016-10-31?11:35??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\ProWebBrowserCaiJi.vshost.exe.config
?????文件????????490??2016-07-16?19:44??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\ProWebBrowserCaiJi.vshost.exe.manifest
?????文件??????66048??2015-12-28?18:12??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\Senparc.Weixin.dll
?????文件?????480256??2015-12-28?18:12??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\Senparc.Weixin.MP.dll
?????文件?????847872??2013-03-20?11:33??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\System.Data.SQLite.dll
?????文件??????15872??2016-10-28?15:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\WeiPay.dll
?????文件??????42496??2016-10-28?15:29??ProWebBrowserCaiJi\ProWebBrowserCaiJi\bin\Debug\WeiPay.pdb
?????文件???????5610??2016-10-31?11:33??ProWebBrowserCaiJi\ProWebBrowserCaiJi\BLL_sys_Price.cs
............此處省略39個文件信息
評論
共有 條評論