/// <summary> /// 获取金蝶数据 /// </summary> /// <param name="procName"></param> /// <param name="year"></param> /// <param name="month"></param> /// <param name="clientCode"></param> /// <returns></returns> public DataTable GetStatement(string procName, int year, int month, string clientCode) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); DataTable dt = null; using (SqlDataReader dr = dal.GetStatement(procName, year, month, clientCode)) { dt = Tools.ConvertDataReaderToDataTable(dr); } return(dt); }
/// <summary> /// 批量替换客户的供货商 /// </summary> /// <param name="OrgSupplier"></param> /// <param name="NewSupplier"></param> /// <returns></returns> public static int ReplaceSupplier(int OrgSupplier, int NewSupplier, int NewSupplier2) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); return(dal.ReplaceSupplier(OrgSupplier, NewSupplier, NewSupplier2)); }
public CM_ClientBLL(int id, bool bycache) : base(DALClassName) { _dal = (CM_ClientDAL)_DAL; FillModel(id, bycache); }
public CM_ClientBLL(int id) : base(DALClassName) { _dal = (CM_ClientDAL)_DAL; FillModel(id); }
public string CheckRealClassifyShowMessage(int ChangeType) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); return(dal.CheckRealClassifyShowMessage(ChangeType, this.Model.ID)); }
public static DataTable GetClientCountByActiveFlag(int OrganizeCity, int Supplier, int ClientType) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); return(dal.GetClientCountByActiveFlag(OrganizeCity, Supplier, ClientType)); }
///<summary> ///CM_ClientBLL ///</summary> public CM_ClientBLL() : base(DALClassName) { _dal = (CM_ClientDAL)_DAL; _m = new CM_Client(); }
public static IList <CM_DIAddressID> GetAddressByClient(int Client) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); return(dal.GetAddressByClient(Client)); }
public int ClientInOrganizeCity_Delete(int Organizecity) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); return(dal.ClientInOrganizeCity_Delete(_m.ID, Organizecity)); }
/// <summary> /// 子户头切换为主户头 /// </summary> /// <param name="SubACClientID">待升级的经销商子户头</param> /// <returns></returns> public static int DISubACUpgrade(int SubACClientID) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); return(dal.DISubACUpgrade(SubACClientID)); }
/// <summary> /// 批量替换客户的客户经理 /// </summary> /// <param name="staff"></param> /// <param name="hospitalstring"></param> /// <returns></returns> public static int ReplaceClientManager(string ClientIDs, int NewClientManager, int ClientType) { CM_ClientDAL dal = (CM_ClientDAL)DataAccess.CreateObject(DALClassName); return(dal.ReplaceClientManager(ClientIDs, NewClientManager, ClientType)); }