Esempio n. 1
0
        /// <summary>
        /// Handles the Click event of the btnChoose control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        /// 创建人:桂书丛
        /// 创建时间:2013-03-03
        private void btnChoose_Click(object sender, EventArgs e)
        {
            frmVIPClient.frmVIPSearch myfrmVIPSearch = new CMS.UILayer.frmVIPClient.frmVIPSearch();
            myfrmVIPSearch.ShowDialog();
            DataRow tempDataRow = frmVIPClient.frmVIPSearch.VIPInfo;

            if (tempDataRow != null)
            {
                this.txtCName.Text     = tempDataRow["Name"].ToString();
                this.txtCTelPhone.Text = tempDataRow["TelPhone"].ToString();
                this.txtInfoNote.Text  = "现有:名称为" + this.txtCName.Text + "的开台";
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Fills the input info.
 /// </summary>
 /// 创建人:桂书丛
 /// 创建时间:2013-03-02
 private void FillInputInfo()
 {
     frmVIPClient.frmVIPSearch myfrmVIPSearch = new CMS.UILayer.frmVIPClient.frmVIPSearch();
     myfrmVIPSearch.ShowDialog();
     this.lupPayType.EditValue = VariedDefault.DefaultPayType;
     this.lupPayType.Enabled   = false;
     VIPInfo = frmVIPClient.frmVIPSearch.VIPInfo;
     if (VIPInfo != null)
     {
         this.spDisCount.EditValue  = VIPInfo["Discount"];
         this.spDisCount.Enabled    = false;
         this.txtPayMoney.EditValue = Convert.ToDouble(VIPInfo["VIPCost"]);
         this.VIPID = Convert.ToInt32(VIPInfo["ID"]);
     }
 }