Esempio n. 1
0
        private void butnew_Click(object sender, System.EventArgs e)
        {
            try
            {
                this.Cursor          = PubStaticFun.WaitCursor();
                this.buttask.Visible = true;

                Frmpdsh f     = new Frmpdsh(_menuTag, _chineseName, _mdiParent);
                Point   point = new Point(160, 75);
                f.Location  = point;
                f.MdiParent = _mdiParent;
                f.Show();
                //f.Add_sum_pdcsmx();


                this.buttask.Visible = false;
            }
            catch (System.Exception err)
            {
                MessageBox.Show(err.Message);
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }
Esempio n. 2
0
        public object GetObject()
        {
            if (_functionName == "")
            {
                throw new Exception("引出函数名不能为空!");
            }
            Form f = null;

            switch (_functionName)
            {
            case "Fun_ts_yp_pd_cx":
            case "Fun_ts_yp_pd_yf_cx":
                Frmpdsh Frmpdsh = new Frmpdsh((MenuTag)CommunicateValue[0], Convert.ToString(CommunicateValue[1]), _mdiParent);
                if (_mdiParent != null)
                {
                    Frmpdsh.MdiParent = _mdiParent;
                }
                Frmpdsh.FillDj(new Guid(Convert.ToString(CommunicateValue[2])), true);
                Frmpdsh.Show();
                Frmpdsh.FindRecord((int)CommunicateValue[4], 0);
                return(Frmpdsh);

            default:
                throw new Exception("引出函数名称错误!");
            }
            return(f);
        }
Esempio n. 3
0
        private void butsh_Click(object sender, System.EventArgs e)
        {
            int       nrow = this.myDataGrid1.CurrentCell.RowNumber;
            DataTable tb   = (DataTable)this.myDataGrid1.DataSource;

            if (tb.Rows.Count == 0)
            {
                return;
            }

            Frmpdsh f     = new Frmpdsh(_menuTag, _chineseName, _mdiParent);
            Point   point = new Point(160, 75);

            f.Location  = point;
            f.MdiParent = _mdiParent;
            f.Show();
            f.FillDj(new Guid(tb.Rows[nrow]["id"].ToString()), true);
        }