Esempio n. 1
0
        public static void beginbmall()
        {
            //try {
            WaitFormService.Show();
            //WaitFormService.SetText("正在刷新财务科目信息,请稍候…………");
            wcoding.wcodingfinance wcoding = new newfeixiang.wcoding.wcodingfinance();
            begin_class.dt_cw_prg_all = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");

            begin_class.dt_cw_prg_all_bottom = begin_class.dt_cw_prg_all.Copy();
            DataView  dataView    = begin_class.dt_cw_prg_all_bottom.DefaultView;
            DataTable dt_Distinct = dataView.ToTable(true, "上级ID");    //注:其中ToTable()的第一个参数为是否DISTINCT

            foreach (DataRow row in dt_Distinct.Rows)
            {
                string topidtempid = row["上级ID"].ToString();

                DataRow[] dt_temp = begin_class.dt_cw_prg_all_bottom.Select("ID='" + topidtempid + "'");
                foreach (DataRow dr in dt_temp)
                {
                    begin_class.dt_cw_prg_all_bottom.Rows.Remove(dr);
                }
            }

            #region 生成凭证控件需要的表

            #endregion

            WaitFormService.Close();
            //}
            //catch (Exception ex)
            //{
            //    ex.errormess();
            //}
        }
Esempio n. 2
0
        private void customerwcodingsub_Shown(object sender, EventArgs e)
        {
            WaitFormService.Show();
            wcoding.wcodingfinance wcoding = new newfeixiang.wcoding.wcodingfinance();
            DataTable dt = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");

            WaitFormService.Close();

            qg_grid_tree1.DataSource = dt;
        }
Esempio n. 3
0
        private void Form1_Shown(object sender, EventArgs e)
        {
            //Control c = null; ;
            //MainForm m = (MainForm)MdiParent;
            //foreach (Control trol in m.Controls)
            //{
            //    if (trol is Panel)
            //    {
            //        c = trol;
            //        //ToolTip toolTip = new ToolTip();

            //        //int times = 3000000;
            //        //string ly = "aaaaadd 的";

            //        //toolTip.IsBalloon = true;// 不显示为气泡弹窗,气泡的箭头会乱跑
            //        //toolTip.ToolTipIcon = ToolTipIcon.Info;
            //        //toolTip.SetToolTip(c, "");
            //        //toolTip.ShowAlways = true;// 总是显示
            //        //toolTip.UseAnimation = true;
            //        //toolTip.UseFading = true;

            //        ////toolTip.Hide(trol);
            //        //toolTip.Show(ly, c, c.Width / 2, c.Height / 2, times);
            //    }
            //}
            //c = this;
            //    int times = 3000000;
            //    string ly = "aaaaadd 的";

            //    toolTip.IsBalloon = true;// 不显示为气泡弹窗,气泡的箭头会乱跑
            //    toolTip.ToolTipIcon = ToolTipIcon.Info;
            //    toolTip.SetToolTip(c, "");
            //    toolTip.ShowAlways = true;// 总是显示
            //    toolTip.UseAnimation = true;
            //    toolTip.UseFading = true;

            //    //toolTip.Hide(trol);
            //    toolTip.Show(ly, c, c.Width / 2, c.Height / 2, times);

            //Thread thread = new Thread(ThreadFuntion);
            //thread.IsBackground = true;
            //thread.Start();
            //TestDelegate d = Test;
            //d.BeginInvoke((Control)label1, null, null);
            WaitFormService.Show();
            WaitFormService.SetText("d,请稍候…………");

            wcoding.wcodingfinance wcoding = new newfeixiang.wcoding.wcodingfinance();
            DataTable dt = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");

            WaitFormService.SetText("我是第二个,请稍候…………");
            dt = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");
            WaitFormService.SetText("我是第三个哟我是第三个哟我是第三个哟我是第三个哟,请稍候…………");
            dt = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");
            dt = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");
            dt = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");
            dt = wcoding.wcodingfinancetreesql4(begin_class.allmax, "1", 1, "");
            WaitFormService.Close();
            //toolTip.Hide(this);
            qg_grid_tree1.DataSource = dt;
        }