Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
     }
 }
Exemple #3
0
 /// <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);
     }
 }
Exemple #4
0
 /// <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);
     }
 }
Exemple #5
0
 /// <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);
     }
 }
Exemple #6
0
 /// <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);
 }
Exemple #7
0
 /// <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);
 }