Ejemplo n.º 1
0
        private void txtAssociatedBillNo_Click(object sender, EventArgs e)
        {
            if (cmbSiteSource.SelectedIndex == 2)
            {
                FormQueryInfo frm = QueryInfoDialog.GetFeedBackBill("", "");
                frm.ShowDialog();

                if ((string)frm.GetDataItem("反馈单号") != null)
                {
                    txtAssociatedBillNo.ReadOnly = true;

                    txtAssociatedBillNo.Text = (string)frm.GetDataItem("反馈单号");
                    txtApplicant.Tag         = m_personnerServer.GetPersonnelViewInfoByName((string)frm.GetDataItem("反馈人"));
                    txtApplicant.Text        = (string)frm.GetDataItem("反馈人");

                    dtpxtApplicant.Value = (DateTime)frm.GetDataItem("反馈日期");
                    txtBugDescribe.Text  = (string)frm.GetDataItem("故障说明");

                    txtBugDescribe.ReadOnly = true;
                    txtApplicant.Enabled    = false;
                    dtpxtApplicant.Enabled  = false;
                }
            }
            else
            {
                txtAssociatedBillNo.ReadOnly = false;
            }
        }