本文整理汇总了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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}