示例#1
0
        private bool CheckLogOut()
        {
            try
            {
                //LogOut();
                Load_UcLogin();

                SQLLog.Addlog(0, "LogOut", "LogOut By " + ClassProperty.GetCurrentName, ClassProperty.permisUserID,
                              ClassProperty.IPMachine, ClassProperty.MachineName);

                return(true);
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
                return(false);
            }
        }
示例#2
0
        private bool CheckLogin()
        {
            try
            {
                SQLLog.Addlog(0, "Login", "Login By " + ClassProperty.GetCurrentName, ClassProperty.permisUserID,
                              ClassProperty.IPMachine, ClassProperty.MachineName);

                SQLImage.UpdateBranchImg(1, PicProduct);

                this.FindForm().DialogResult = DialogResult.OK;

                return(true);
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
                return(false);
            }
        }
示例#3
0
        private bool CheckLogin()
        {
            try
            {
                FrmMain frm = new FrmMain();
                {
                    SQLLog.Addlog(0, "Login", "Login By " + ClassProperty.GetCurrentName, ClassProperty.permisUserID,
                                  ClassProperty.IPMachine, ClassProperty.MachineName);

                    SQLImage.UpdateBranchImg(1, PicProduct);

                    this.Hide();
                    frm.Show();
                }

                return(true);
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message);
                return(false);
            }
        }