本文整理匯總了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);
}
示例2: CrossThreadInvoke
public static void CrossThreadInvoke(TextChooser t, MethodInvoker m)
{
if (t.InvokeRequired)
{
t.Invoke(m);
}
}
示例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();
}
}
示例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();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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();
}
}
示例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();
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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"];//未結算金額
}
}
}