本文整理匯總了C#中ServiceStationClient.ComponentUI.TextBox.TextChooser.Focus方法的典型用法代碼示例。如果您正苦於以下問題:C# TextChooser.Focus方法的具體用法?C# TextChooser.Focus怎麽用?C# TextChooser.Focus使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ServiceStationClient.ComponentUI.TextBox.TextChooser
的用法示例。
在下文中一共展示了TextChooser.Focus方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: 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"];//未結算金額
}
}
}
示例2: ImportYingFu2
/// <summary>
/// 導入應付
/// </summary>
/// <param name="txtcCust"></param>
/// <param name="lblCust"></param>
void ImportYingFu2(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.PAYMENT).ToString());
frmPayment frmDocuments = new frmPayment(txtcCust.Tag.ToString());
if (frmDocuments.ShowDialog() == DialogResult.OK)
{
BindDocuments2(frmDocuments.listRows);
}
}
示例3: 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);
}
}