Esempio n. 1
0
        /// <summary>
        /// 打开人员揭示界面
        /// </summary>
        private void btnUserTotalShow_Click(object sender, EventArgs e)
        {
            if (Program._frmProduce_UserTotalShow == null)
            {
                frmProduce_UserTotalShow frm = new frmProduce_UserTotalShow(lookmyteamName.Text, dateOperDate1.Text);
            }
            else
            {
                Program._frmProduce_UserTotalShow.parMyteamName = lookmyteamName.Text.ToString();
                Program._frmProduce_UserTotalShow.parDdateOperDate = dateOperDate1.Text.ToString();
            }
            this.TopMost = false;
            this.Hide();

            Program._frmProduce_UserTotalShow.Show();
            Program._frmProduce_UserTotalShow.TopMost = true;
            ////自动刷新
            // //btnRef_Click(null,null)

        }
Esempio n. 2
0
        private void ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                if (e.Item.Tag != null)
                {
                    Cursor currentCursor = Cursor.Current;
                    Cursor.Current = Cursors.WaitCursor;
                    //人员揭示
                    if (e.Item.Tag.ToString().ToLower() == "usertotalshow")
                    {
                        if (Program._frmProduce_UserTotalShow != null)
                        {
                            Program._frmProduce_UserTotalShow.TopMost = true;
                            Program._frmProduce_UserTotalShow.Show();
                        }
                        else
                        {
                            frmProduce_UserTotalShow frm = new frmProduce_UserTotalShow("", "");
                            frm.Show();
                        }

                        return;
                    }
                    else
                    {
                        if (Program._frmProduce_UserTotalShow != null)
                        {
                            Program._frmProduce_UserTotalShow.TopMost = false;
                        }
                    }
                    if (Program._frmProduce_TeamAttend != null)
                    {
                        Program._frmProduce_TeamAttend.TopMost = false;
                    }
                    if (Program._frmProduce_TeamChange != null)
                    {
                        Program._frmProduce_TeamChange.TopMost = false;
                    }
                    //
                    if (e.Link.Item.Tag.ToString() == "Exit")
                    {
                        //common._its_accessdb = null;
                        this.Close();
                        return;
                    }
                    //关于
                    if (e.Item.Tag.ToString().ToLower() == "about")
                    {
                        MachineSystem.TabPage.frmAbout frm = new MachineSystem.TabPage.frmAbout();
                        frm.ShowDialog();
                        return;
                    }


                    if (!CheckExistsForm(e.Item.Tag.ToString().ToString()))
                    {
                        ShowForm(e.Link.Item.Tag.ToString());
                    }

                    Cursor.Current = currentCursor;
                }
            }
            catch (Exception ex)
            {
                XtraMsgBox.Show(ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 3
0
        private void frmMenu_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            Stopwatch s = new Stopwatch();
            Program.logFlagStart(log, s, "主菜单 Load:");
            try
            {
                this.Text += " " + EnumDefine.VersionNo;
                if (CommParg.mfrmMenu == null)
                    CommParg.mfrmMenu = this;

                SetFormOpen();//显示窗体
                GetGetUserImageURL();

                Program.logFlagEnd(log, s, "主菜单 Load:");

                Application.DoEvents();

                if (Common._authornm != null)
                {
                    if (Common._authornm != "")
                    {
                        if (Common._authornm.IndexOf("班长", 0, Common._authornm.Length) >= 0)
                        {
                            //班长登录场合
                            frmProduce_UserTotalShow frm = new frmProduce_UserTotalShow(Common._myTeamName, DateTime.Now.ToString("yyyy-MM-dd HH:mm"));

                            frm.TopMost = true;
                            frm.Show();//打开平板人员揭示
                            return;
                        }
                    }
                }
            }
            catch (Exception ex)
            {

                throw ex;
            }
            finally
            {
                this.Cursor = Cursors.Default;

            }

        }
Esempio n. 4
0
 //关位
 private void linkLabelGuanwei_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     frmProduce_UserTotalShow frm = new frmProduce_UserTotalShow("","");
     frm.Show();
 }