freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

crm20xx內部使用手冊v1(編輯修改稿)

2024-11-15 11:17 本頁面
 

【文章內容簡介】 ield: 父字段的名稱 sub2mainField: 查詢實體中父字段的名稱 用途: 關聯(lián)字段過濾查詢(例如省份過濾城市,城市過濾區(qū)縣) 操作步驟: 1. 直接在客戶端調用該函數(shù) , 示例代碼如下: //省份過濾城市 function new_provinceid_onchange() { rt_lookupCustomerEntity(new_city,new_cityid,new_provinceid,new_provinceid)。 } 第二章 服務器端基礎類( ) 常用數(shù)據(jù)庫操作類 Config類 定義: public class Config{..} 用途: 操作 配置文件 主要成員 : 1. private void Load() 使用 IO 操作讀取 配置文件 2. public void Save() 將修改后的 XML 配置文檔保存到文件中 3. public string GetValueByName(string name) 根據(jù)在配置文件中配置的 SQL 連接字符串名稱來獲取對應的數(shù)據(jù)庫連接字符串 ,示例如下: private static Config _config = new Config()。 public static IDataBase GetDataBase(string type) { string connect = 。 try { connect = (type)。 } catch 10 { connect = 。 } if (connect != null amp。amp。 connect != ) { return new OleDataBase(connect)。 } else { return new DataBase()。 } } DataBase類 和 IDataBase接口 定義: public class DataBase : IDataBase{..} public interface IDataBase{…} 用途: 提供常用的數(shù)據(jù)庫操作 主要成員 : DataBase 類實現(xiàn)了 IDataBase 接口,包括對數(shù)據(jù)操作的常用方法。 public class CrmData // 僅為部分 CrmData類代碼 { private IDataBase _db。 private IDataBase _defaultDb。 public CrmData() { _db = new DataBase()。 } protected IDataBase Db { get { if (_db == null) _db = new DataBase()。 return _db。 } set { _db = value。 } } protected IDataBase DefaultDb { 11 get { if (_defaultDb == null) _defaultDb = new DataBase((new Config()).connectionStringDefault)。 return _defaultDb。 } set { _defaultDb = value。 } } 1. 執(zhí)行 SQL 查詢語句 ,如 : public void Execute(string sqlText) public Query(string sql) public QueryDataSet(string sql) public object QueryScalar(string sql) 2. 執(zhí)行存儲過程 ,如 : public string ExecuteProc(string procName, string paramValue) public object ExecuteProc(string procName, object[] paramsValue) 具體參數(shù)描述可以查看源碼的注釋 示例代碼: public class AssessApplyForm:CrmData { public AssessApplyForm(IDataBase db) : base(db) { } public AssessApplyForm() : base() { } public string Submit(string id) { try { string sqlmain = (update new_assetproject set new_assessmentstatus = 1 where deletionstatecode=0 and new_assetprojectid=( 234。161。167。SELECT new_assetproject FROM new_assessapplyform WHERE new_assessapplyformid=39。{0}39。) 234。?, id)。 (sqlmain)。 return 。 12 } catch (Exception ex) { (ex)。 return 。 } } DataBaseManager 類 定義: public class DataBaseManager{..} 用途: 獲取在 對應的 IDataBase接口實例 主要成員 : 1. public static IDataBase GetDataBase(string type) { string connect = 。 try { connect = (type)。 } catch { connect = 。 } if (connect != null amp。amp。 connect != ) { return new OleDataBase(connect)。 } else { return new DataBase()。 } } 參數(shù) type 為 配置的連接字符串名稱 ,配置文件參考: setting name=connectionString value=Server=localhost。Database=bys_mscrm。uid=sa。pwd=p@ssw0rd / setting name=connectionStringDefault value=Data Source=localhost。Integrated Security=SSPI。Initial Catalog=bys_mscrm。 / 13 PersisitBroker 類 定義: public class PersisitBroker{..} 用途: 提供通用的對象的 CRUD(創(chuàng)建、讀取、修改、刪除) 操作 主要成員 : 1. 構造函數(shù) (1) public PersisitBroker() 無參的構造函數(shù),默認為當前用戶 操作 (2) public PersisitBroker(bool isUseAdminAccount) 指定為管理員 操作 (3) public PersisitBroker(string name) 支持多組織的數(shù)據(jù)庫,默認為當前用戶操作 (4) public PersisitBroker(string name ,bool isUseAdminAccount) 支持多組織的數(shù)據(jù)庫,指定為管理員操作 2. 用戶 ID (1) public Guid GetCurrenUserId() 獲取當前用戶 ID (2) public Guid GetAdminUserId() 獲取 CRM 管理員 ID 3. CRUD(創(chuàng)建、讀取、修改、刪除) 操作 (1) public Guid Create( obj, OwnerType ot) 創(chuàng)建操作,在數(shù)據(jù)庫創(chuàng)建一條數(shù)據(jù) (2) public void Update( obj, OwnerType ot) 更新操作,在數(shù)據(jù)庫更新一條數(shù)據(jù) (3) public void Delete(string typeName, string id) typeName: 實體名稱 刪除操作 ,根據(jù)主鍵來刪除 指定實體的 數(shù)據(jù) (4) public void DeleteByWhere(string typeName, string where) 根據(jù) where 條件來刪除 指定實體的數(shù)據(jù) (5) public T RetrieveT(string typeName, string id) where T : , new() 讀取 操作 ,根據(jù)主鍵來獲取指定實體的數(shù)據(jù) 14 (6) public T RetrieveT(string typeName, string strSql, Dictionarystring, object paramList) where T : , new() 根據(jù) 指定的 Sql獲取結果集中的第一條數(shù)據(jù) (7) public IListT RetrieveMultipleT(string typeName, string sql) where T : , new() 根 據(jù) 指定的 Sql獲取指定實體的多條數(shù)據(jù) (8) public IListT RetrieveMultipleT(string typeName, string sql, Dictionarystring, object paramList) where T : , new() 根據(jù) 指定的 Sql 和 指定的參數(shù) 獲取指定實體的多條數(shù)據(jù) (9) public IListT RetrieveMultipleT(string typeName, string sql, Dictionarystring, object paramList, string orderby, int pageSize, int pageIndex,out int recordCount) where T : , new() 根據(jù) 指定的 Sql、指定的參數(shù)
點擊復制文檔內容
法律信息相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1