当前位置: 首页>>代码示例>>C#>>正文


C# TextBox.TextChooser类代码示例

本文整理汇总了C#中ServiceStationClient.ComponentUI.TextBox.TextChooser的典型用法代码示例。如果您正苦于以下问题:C# TextChooser类的具体用法?C# TextChooser怎么用?C# TextChooser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TextChooser类属于ServiceStationClient.ComponentUI.TextBox命名空间,在下文中一共展示了TextChooser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: CrossThreadInvoke

 public static void CrossThreadInvoke(TextChooser t, MethodInvoker m)
 {
     if (t.InvokeRequired)
     {
         t.Invoke(m);
     }
 }
开发者ID:caocf,项目名称:workspace-kepler,代码行数:7,代码来源:SlienceWorker.cs

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: ImportYingShou2

 /// <summary>
 /// 导入应收
 /// </summary>
 /// <param name="txtcCust"></param>
 /// <param name="lblCust"></param>
 void ImportYingShou2(TextChooser txtcCust, Label lblCust)
 {
     if (txtcCust.Tag == null)
     {
         MessageBoxEx.Show(string.Format("请选择{0}!", lblCust.Text.TrimEnd(':')));
         txtcCust.Focus();
         return;
     }
     //frmReceivable frmDocuments = new frmReceivable(txtcCust.Tag.ToString());
     frmReceivableByVerification frmDocuments = new frmReceivableByVerification(txtcCust.Tag.ToString());
     if (frmDocuments.ShowDialog() == DialogResult.OK)
     {
         BindDocuments2(frmDocuments.listRows);
     }
 }
开发者ID:caocf,项目名称:workspace-kepler,代码行数:20,代码来源:UCAccountVerificationAdd.cs

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: ImportYuFu

 /// <summary>
 /// 导入预付
 /// </summary>
 /// <param name="txtcCust"></param>
 /// <param name="lblCust"></param>
 void ImportYuFu(TextChooser txtcCust, Label lblCust)
 {
     if (txtcCust.Tag == null)
     {
         MessageBoxEx.Show(string.Format("请选择{0}!", lblCust.Text.TrimEnd(':')));
         txtcCust.Focus();
         return;
     }
     //frmBalanceDocuments frmDocuments = new frmBalanceDocuments(DataSources.EnumOrderType.PAYMENT, txtcCust.Tag.ToString(), ((int)DataSources.EnumPaymentType.ADVANCES).ToString());
     frmPaymentByAdvances frmDocuments = new frmPaymentByAdvances(txtcCust.Tag.ToString());
     if (frmDocuments.ShowDialog() == DialogResult.OK)
     {
         StringBuilder sbWhere = new StringBuilder();
         sbWhere.AppendFormat("order_id in ({0})", frmDocuments.ids);
         sbWhere.AppendFormat(" and wait_money>0");
         DataTable dt = DBHelper.GetTable("", "v_parts_purchase_order_payment", "*", sbWhere.ToString(), "", "");
         foreach (DataRow dr in dt.Rows)
         {
             DataGridViewRow dgvr = dgvDocuments.Rows[dgvDocuments.Rows.Add()];
             dgvr.Cells[colOrderName.Name].Value = "采购订单";//单据名称
             dgvr.Cells[colOrderNum.Name].Value = dr["order_num"];//单据编号
             dgvr.Cells[colOrderID.Name].Value = dr["sale_billing_id"];//单据ID
             //dgvr.Cells[colOrderDate.Name].Value = Common.UtcLongToLocalDateTime(dr["receivables_date"]);//单据日期
             dgvr.Cells[colMoney.Name].Value = dr["prepaid_money"];//开单金额
             dgvr.Cells[colSettledMoney.Name].Value = dr["money"];//已结算金额
             dgvr.Cells[colWaitMoney.Name].Value = dr["wait_money"];//未结算金额
         }
     }
 }
开发者ID:caocf,项目名称:workspace-kepler,代码行数:34,代码来源:UCAccountVerificationAdd.cs


注:本文中的ServiceStationClient.ComponentUI.TextBox.TextChooser类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。