Exemplo n.º 1
0
 private void txtProj_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     try
     {
         if (txtProj.Tag == null)
         {
             frmObjectSearch frm = new frmObjectSearch();
             frm.ShowDialog();
             if (frm.mProj != null && frm.mProj.Id > 0)
             {
                 this.txtProj.Tag  = frm.mProj;
                 this.txtProj.Text = frm.mProj.OBJECTNAME;
                 //绑定项目成员
                 BindProjTeam(frm.mProj);
             }
             else
             {
                 this.txtProj.Tag  = null;
                 this.txtProj.Text = "";
             }
         }
     }
     catch (Exception ex)
     {
         MessageHelper.ShowMessage(ex.Message);
     }
 }
Exemplo n.º 2
0
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            frmObjectSearch frm = new frmObjectSearch();

            frm.ShowDialog();
            if (frm.mProj != null)
            {
                TB_PROJECT proj = frm.mProj;
                this.txtProj.Text = proj.OBJECTNAME;
                this.txtProj.Tag  = proj;
            }
            BindExpenseData();
        }