當前位置: 首頁>>代碼示例>>C#>>正文


C# TextChooser.SetDataSource方法代碼示例

本文整理匯總了C#中ServiceStationClient.ComponentUI.TextBox.TextChooser.SetDataSource方法的典型用法代碼示例。如果您正苦於以下問題:C# TextChooser.SetDataSource方法的具體用法?C# TextChooser.SetDataSource怎麽用?C# TextChooser.SetDataSource使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ServiceStationClient.ComponentUI.TextBox.TextChooser的用法示例。


在下文中一共展示了TextChooser.SetDataSource方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: tc_GetDataSourced

 /// <summary>
 /// 設置速查
 /// </summary>
 /// <param name="sqlString"></param>
 void tc_GetDataSourced(TextChooser tc, string sqlString)
 {
     DataTable dvt = CommonFuncCall.GetDataSource(sqlString);
     tc.SetDataSource(dvt);
     if (dvt != null)
     {
         tc.Search();
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:13,代碼來源:UCOldPartsInventoryQuery.cs

示例2: Sup_NameBindData

 /// <summary> 綁定供應商名稱到選擇器
 /// </summary>
 /// <param name="tc"></param>
 /// <param name="sqlString"></param>
 private static void Sup_NameBindData(TextChooser tc, string sqlString)
 {
     DataTable dt = CommonFuncCall.GetDataSource(sqlString);
     tc.SetDataSource(dt);
     if (dt != null)
     {
         tc.Search();
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:13,代碼來源:Choosefrm.cs

示例3: txtcSupplier_GetDataSourced

 void txtcSupplier_GetDataSourced(TextChooser tc, string sqlString)
 {
     try
     {
         string fileds = "sup_code,sup_full_name";
         sqlString = sqlString.Replace("*", fileds);
         DataTable dvt = CommonFuncCall.GetDataSource(sqlString);
         tc.SetDataSource(dvt);
         if (dvt != null)
         {
             tc.Search();
         }
     }
     catch (Exception ex)
     {
         HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:18,代碼來源:Quick.cs

示例4: tc_GetDataSourced

 /// <summary>
 /// 設置速查
 /// </summary>
 /// <param name="sqlString"></param>
 void tc_GetDataSourced(TextChooser tc, string sqlString)
 {
     try
     {
         DataTable dvt = CommonFuncCall.GetDataSource(sqlString);
         tc.SetDataSource(dvt);
         if (dvt != null)
         {
             tc.Search();
         }
     }
     catch (Exception ex)
     {
         HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:20,代碼來源:UCFetchMaterialAddOrEdit.cs

示例5: tc_GetDataSourced

 /// <summary>
 /// 設置速查
 /// </summary>
 /// <param name="sqlString"></param>
 void tc_GetDataSourced(TextChooser tc, string sqlString)
 {
     if (sqlString.Contains("v_vehicle"))
     {
         string fileds = string.Format(" license_plate,vin,engine_num,v_model,v_brand,v_color,turner,cust_code,cust_id,cust_name,cont_name,{0} phone ", EncryptByDB.GetDesFieldValue("cont_phone"));
         sqlString = sqlString.Replace("*", fileds);
     }
     DataTable dvt = CommonFuncCall.GetDataSource(sqlString);
     tc.SetDataSource(dvt);
     if (dvt != null)
     {
         tc.Search();
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:18,代碼來源:UCVehicleManage.cs

示例6: PartsType_NameBindData

        /// <summary> 綁定配件類型名稱到選擇器
        /// </summary>
        /// <param name="tc"></param>
        /// <param name="sqlString"></param>
        private static void PartsType_NameBindData(TextChooser tc, string sqlString)
        {
//            sqlString = string.Format(@"select dic_name from sys_dictionaries where dic_id not in 
//                                      (select parent_id from sys_dictionaries) and dic_name like '%{0}%'", tc.Text);
//            DataTable dt = CommonFuncCall.GetDataSource(sqlString);
//            tc.SetDataSource(dt);
//            if (dt != null)
//            {
//                tc.Search();
//            }
            string dic_ids = string.Empty;
            List<string> list_dic_id=new List<string>();
            CreateTreeViewChildNode(list_dic_id, "sys_parts_category");
            if(list_dic_id.Count>0)
            {
                foreach (string dic_id in list_dic_id)
                {
                    dic_ids += "'" + dic_id + "',";
                }
            }
            dic_ids = dic_ids.Trim(',');
            sqlString = string.Format(@"select dic_name from sys_dictionaries where dic_id in ({0}) and dic_name like '%{1}%'", dic_ids, tc.Text);
            DataTable dt = CommonFuncCall.GetDataSource(sqlString);
            tc.SetDataSource(dt);
            if (dt != null)
            {
                tc.Search();
            }
        }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:33,代碼來源:Choosefrm.cs

示例7: PartsType_NameBindData

 /// <summary> 綁定配件類型名稱到選擇器
 /// </summary>
 /// <param name="tc"></param>
 /// <param name="sqlString"></param>
 private static void PartsType_NameBindData(TextChooser tc, string sqlString)
 {
     sqlString = string.Format(@"select dic_name from sys_dictionaries where dic_id not in 
                               (select parent_id from sys_dictionaries) and dic_name like '%{0}%'", tc.Text);
     DataTable dt = CommonFuncCall.GetDataSource(sqlString);
     tc.SetDataSource(dt);
     if (dt != null)
     {
         tc.Search();
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:15,代碼來源:Choosefrm.cs

示例8: txtcCustName_GetDataSourced

 void txtcCustName_GetDataSourced(TextChooser tc, string sqlString)
 {
     try
     {
         if (sqlString.Contains("tb_customer"))
         {
             string fileds = "cust_name,cust_code";
             sqlString = sqlString.Replace("*", fileds);
         }
         else if (sqlString.Contains("tb_supplier"))
         {
             string fileds = "sup_code,sup_full_name";
             sqlString = sqlString.Replace("*", fileds);
         }
         DataTable dvt = CommonFuncCall.GetDataSource(sqlString);
         tc.SetDataSource(dvt);
         if (dvt != null)
         {
             tc.Search();
         }
     }
     catch (Exception ex)
     {
         HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:26,代碼來源:UCReceivableManage.cs

示例9: txtcCustName_GetDataSourced

        void txtcCustName_GetDataSourced(TextChooser tc, string sqlString)
        {
            try
            {
                if (sqlString.Contains("tb_customer"))
                {

                    string tables = "tb_customer a left join sys_dictionaries b on a.open_bank=b.dic_id ";
                    string fileds = "cust_id,cust_name,cust_code,bank_account,dic_name";
                    sqlString = sqlString.Replace("*", fileds);
                    sqlString = sqlString.Replace("tb_customer", tables);
                }
                else if (sqlString.Contains("tb_supplier"))
                {
                    string fileds = "sup_id,sup_code,sup_full_name";
                    sqlString = sqlString.Replace("*", fileds);
                }
                DataTable dvt = CommonFuncCall.GetDataSource(sqlString);
                tc.SetDataSource(dvt);
                if (dvt != null)
                {
                    tc.Search();
                }
            }
            catch (Exception ex)
            {
                HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex);
            }
        }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:29,代碼來源:UCReceivableAdd.cs


注:本文中的ServiceStationClient.ComponentUI.TextBox.TextChooser.SetDataSource方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。