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


C# TextChooser.SetBindTable方法代碼示例

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


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

示例1: BindCustomer

 /// <summary>
 /// 綁定客戶速查
 /// </summary>
 /// <param name="txtCustCode"></param>
 public void BindCustomer(TextChooser txtCustCode)
 {
     //設置客戶編碼速查
     txtCustCode.SetBindTable("tb_customer", "cust_code", "cust_name");
     txtCustCode.GetDataSourced += new TextChooser.GetDataSourceHandler(txtcCustName_GetDataSourced);
     //txtCustCode.DataBacked += new TextChooser.DataBackHandler(txtcCustName_DataBacked);
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:11,代碼來源:Quick.cs

示例2: SupperNameChoose

 /// <summary> 供應商名稱速查選擇器
 /// </summary>
 /// <param name="ContorlName">控件ID</param>
 /// <param name="delDataBack">回調函數</param>
 public static void SupperNameChoose(TextChooser ContorlName, GreetingDelegate delDataBack)
 {
     string table = "tb_supplier";
     string valueColumn = "sup_full_name";
     //設置表和顯示字段
     ContorlName.SetBindTable(table, valueColumn);
     ContorlName.GetDataSourced += new TextChooser.GetDataSourceHandler(Sup_NameBindData);
     if (delDataBack != null)
     {
         ContorlName.DataBacked -= new TextChooser.DataBackHandler(delDataBack);
         ContorlName.DataBacked += new TextChooser.DataBackHandler(delDataBack);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:17,代碼來源:Choosefrm.cs

示例3: CusCodeChoose

 /// <summary> 客戶編碼速查選擇器
 /// </summary>
 /// <param name="ContorlName">控件ID</param>
 /// <param name="delDataBack">回調函數</param>
 public static void CusCodeChoose(TextChooser ContorlName, GreetingDelegate delDataBack)
 {
     string table = "tb_customer";
     string displayColumn = "cust_code";
     string valueColumn = "cust_name";
     //設置表和顯示字段
     ContorlName.SetBindTable(table, displayColumn, valueColumn);
     ContorlName.GetDataSourced += new TextChooser.GetDataSourceHandler(Cus_CodeBindData);
     if (delDataBack != null)
     {
         ContorlName.DataBacked -= new TextChooser.DataBackHandler(delDataBack);
         ContorlName.DataBacked += new TextChooser.DataBackHandler(delDataBack);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:18,代碼來源:Choosefrm.cs

示例4: PartsCarModelNameChoose

 /// <summary> 配件車型名稱速查選擇器
 /// </summary>
 /// <param name="ContorlName">控件ID</param>
 /// <param name="delDataBack">回調函數</param>
 public static void PartsCarModelNameChoose(TextChooser ContorlName, GreetingDelegate delDataBack)
 {
     string table = "tb_vehicle_models";
     string valueColumn = "vm_name";
     //設置表和顯示字段
     ContorlName.SetBindTable(table, valueColumn);
     ContorlName.GetDataSourced += new TextChooser.GetDataSourceHandler(PartsCarModel_NameBindData);
     if (delDataBack != null)
     {
         ContorlName.DataBacked -= new TextChooser.DataBackHandler(delDataBack);
         ContorlName.DataBacked += new TextChooser.DataBackHandler(delDataBack);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:17,代碼來源:Choosefrm.cs

示例5: PartsTypeNameChoose

 /// <summary> 配件類型名稱速查選擇器
 /// </summary>
 /// <param name="ContorlName">控件ID</param>
 /// <param name="delDataBack">回調函數</param>
 public static void PartsTypeNameChoose(TextChooser ContorlName, GreetingDelegate delDataBack)
 {
     string table = "sys_dictionaries";
     string valueColumn = "dic_name";
     //設置表和顯示字段
     ContorlName.SetBindTable(table, valueColumn);
     ContorlName.GetDataSourced += new TextChooser.GetDataSourceHandler(PartsType_NameBindData);
     if (delDataBack != null)
     {
         ContorlName.DataBacked -= new TextChooser.DataBackHandler(delDataBack);
         ContorlName.DataBacked += new TextChooser.DataBackHandler(delDataBack);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:17,代碼來源:Choosefrm.cs

示例6: BindParts

 /// <summary>
 /// 綁定配件速查
 /// </summary>
 /// <param name="txtcParts"></param>
 public void BindParts(TextChooser txtcParts)
 {
     txtcParts.SetBindTable("tb_parts", "ser_parts_code", "parts_name");
     txtcParts.GetDataSourced += new TextChooser.GetDataSourceHandler(txtcParts_GetDataSourced);
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:9,代碼來源:Quick.cs

示例7: BindSupplier

 /// <summary>
 /// 綁定供應商速查
 /// </summary>
 /// <param name="txtcSupplier"></param>
 public void BindSupplier(TextChooser txtcSupplier)
 {
     //設置供應商編碼速查
     txtcSupplier.SetBindTable("tb_supplier", "sup_code", "sup_full_name");
     txtcSupplier.GetDataSourced += new TextChooser.GetDataSourceHandler(txtcSupplier_GetDataSourced);
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:10,代碼來源:Quick.cs


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