當前位置: 首頁>>代碼示例>>C#>>正文


C# TextChooser.Focus方法代碼示例

本文整理匯總了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"];//未結算金額
         }
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:34,代碼來源:UCAccountVerificationAdd.cs

示例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);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:20,代碼來源:UCAccountVerificationAdd.cs

示例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);
     }
 }
開發者ID:caocf,項目名稱:workspace-kepler,代碼行數:20,代碼來源:UCAccountVerificationAdd.cs


注:本文中的ServiceStationClient.ComponentUI.TextBox.TextChooser.Focus方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。