Beispiel #1
0
        private void be_newposition_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            Frm_FreeBit frm_free = new Frm_FreeBit();

            frm_free.swapdata["parent"] = this;

            if (frm_free.ShowDialog() == DialogResult.OK)
            {
                string regionId, bitDesc;
                int    i_bi005;
                regionId            = this.swapdata["regionId"].ToString();
                bitDesc             = this.swapdata["bitDesc"].ToString();
                i_bi005             = Convert.ToInt32(this.swapdata["bi005"]);
                s_bitId_new         = RegAction.GetBitId(regionId, i_bi005, bitDesc);
                be_newposition.Text = RegAction.GetBitFullName(regionId, i_bi005, bitDesc);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 选择寄存位置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void be_position_Click(object sender, EventArgs e)
        {
            Frm_FreeBit frm_free = new Frm_FreeBit();

            frm_free.swapdata["parent"] = this;

            if (frm_free.ShowDialog() == DialogResult.OK)
            {
                regionId = this.swapdata["regionId"].ToString();
                bitDesc  = this.swapdata["bitDesc"].ToString();
                i_bi005  = Convert.ToInt32(this.swapdata["bi005"]);

                bitId                   = RegAction.GetBitId(regionId, i_bi005, bitDesc);
                be_position.Text        = RegAction.GetBitFullName(regionId, i_bi005, bitDesc);
                bitPrice                = RegAction.GetBitPrice(regionId, i_bi005, bitDesc);
                txtedit_price.EditValue = bitPrice;

                this.CalcHJ();
            }
        }