Esempio n. 1
0
        /// <summary>
        /// 选择运输单位
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSelectTransportCompany_SaleFuel_Click(object sender, EventArgs e)
        {
            FrmTransportCompany_Select frm = new FrmTransportCompany_Select("where IsUse=1 order by Name asc");

            if (frm.ShowDialog() == DialogResult.OK)
            {
                this.txt_TransportCompanyName.Text = frm.Output.Name;
            }
        }
        private void btnTransportCompany_Click(object sender, EventArgs e)
        {
            FrmTransportCompany_Select Frm = new FrmTransportCompany_Select(string.Empty);

            Frm.ShowDialog();
            if (Frm.DialogResult == DialogResult.OK)
            {
                this.CmcsTransportCompany = Frm.Output;
            }
        }
        private void btnTransportCompany_Click(object sender, EventArgs e)
        {
            FrmTransportCompany_Select Frm = new FrmTransportCompany_Select();

            Frm.ShowDialog();
            if (Frm.DialogResult == DialogResult.OK)
            {
                cmcsTransportCompany       = Frm.Output;
                this.txt_SupplierName.Text = Frm.Output.Name;
            }
        }