コード例 #1
0
ファイル: Doctor.aspx.cs プロジェクト: aptivasoft/Adio
 public static string[] GetProviderNames(string prefixText, int count)
 {
     List<string> pat_List = new List<string>();
     ProviderInfoDAL ProvInfoDAL = new ProviderInfoDAL();
     DataTable dtProvider = ProvInfoDAL.get_Provider(prefixText, count);
     foreach (DataRow dr in dtProvider.Rows)
     {
         pat_List.Add(AjaxControlToolkit.AutoCompleteExtender.CreateAutoCompleteItem(dr["Doc_LName"].ToString() + ", " + dr["Doc_FName"].ToString(), dr[0].ToString()));
     }
     return pat_List.ToArray();
 }
コード例 #2
0
 /// <summary>
 /// Get the all provider information to the excel ---DS2012
 /// </summary>
 /// <returns>Return datatable object</returns>
 public static DataTable GetProviderInfoToExcel()
 {
     return(ProviderInfoDAL.GetProviderInfoToExcel());
 }
コード例 #3
0
 /// <summary>
 /// Update the provider information by ID  ---DS2012
 /// 修改供应商信息
 /// </summary>
 /// <param name="provider">ProviderInfo model</param>
 /// <returns>Return affected rows which update the provider information by ID</returns>
 public static int UpdatePrivider(ProviderInfoModel provider)
 {
     return(ProviderInfoDAL.UpdateProviderInfo(provider));
 }
コード例 #4
0
 /// <summary>
 /// 根据id查询供应商 ---DS2012
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public static ProviderInfoModel GetProviderInfoById(int id)
 {
     return(ProviderInfoDAL.GetProviderInfoById(id));
 }
コード例 #5
0
 /// <summary>
 /// Delete provider information by id  ---DS2012
 /// 删除供应商
 /// </summary>
 /// <param name="ID">ID(Identity Column)</param>
 /// <returns>Retrun affected rows which delete provider information by id</returns>
 public static int Delprivider(int id)
 {
     return(ProviderInfoDAL.DelProviderInfobyID(id));
 }
コード例 #6
0
 /// <summary>
 /// Add provider information  ---DS2012
 /// 添加供应商
 /// </summary>
 /// <param name="provider">ProviderInfo object</param>
 /// <returns>Return affected rows which add provider information</returns>
 public static int AddPrivider(ProviderInfoModel provider)
 {
     return(ProviderInfoDAL.AddProverderInfo(provider));
 }
コード例 #7
0
 /// <summary>
 /// 根据供应商编号查询供应商是否存在 ---DS2012
 /// </summary>
 /// <param name="Number"></param>
 /// <returns></returns>
 public static bool GetProviderinfoNumber(string Number)
 {
     return(ProviderInfoDAL.GetProviderinfoNumber(Number));
 }
コード例 #8
0
 public static string GetCountryByBank(string BankName)
 {
     return(ProviderInfoDAL.GetCountryByBank(BankName));
 }
コード例 #9
0
 /// <summary>
 /// Judge the ProviderName whether exist by id and providerName before update ---DS2012
 /// </summary>
 /// <param name="Id">Id</param>
 /// <param name="providerName">ProviderName</param>
 /// <returns>Return the counts of the providerName by Id and providerName</returns>
 public static int ProviderNameIsExist(string providerName)
 {
     return(ProviderInfoDAL.ProviderNameIsExist(providerName));
 }
コード例 #10
0
 /// <summary>
 ///Judge the ProviderId whether exist by Id before delete or update  ---ds2012
 /// 修改和删除加盟商时判断加盟商是否存在
 /// </summary>
 /// <param name="Id">Id</param>
 /// <returns>Return the counts of the Provider by Id,返回加盟商数量</returns>
 public static int ProviderIdIsExist(int Id)
 {
     return(ProviderInfoDAL.ProviderIdIsExist(Id));
 }
コード例 #11
0
 /// <summary>
 /// Judge the ProviderId whether has operation by Id before delete ---DS2012
 /// 删除和修改供货商判断是否有业务
 /// </summary>
 /// <param name="Id">Id</param>
 /// <returns>Return the counts of the Provider by Id业务数量</returns>
 public static int ProviderIdWhetherHasOperation(int Id)
 {
     return(ProviderInfoDAL.ProviderIdWhetherHasOperation(Id));
 }