Esempio n. 1
0
        //需要调用窗体名称
        System.Windows.Forms.Control INetUserControl.CreateControl(UFSoft.U8.Framework.Login.UI.clsLogin login, string MenuID, string Paramters)
        {
            UFSoft.U8.Framework.LoginContext.UserData LoginInfo = new UFSoft.U8.Framework.LoginContext.UserData();
            LoginInfo = login.GetLoginInfo();
            string conn = LoginInfo.ConnString;

            conn = Utils.ConvertConn(conn);
            DbHelperSQL.connectionString = conn;

            string sLogUserid   = LoginInfo.UserId;
            string sLogUserName = LoginInfo.UserName;
            string sLogDate     = LoginInfo.operDate;
            string sAccID       = LoginInfo.AccID;

            ClsUserRight clsUser = new ClsUserRight();

            if (clsUser.chkRight(login, "TH_4"))
            {
                GiveBack fm = new GiveBack();
                fm.Conn      = conn;
                fm.sUserID   = sLogUserid;
                fm.sUserName = sLogUserName;
                fm.sLogDate  = sLogDate;
                fm.sAccID    = sAccID;

                this._Title = "工装归还";

                return(fm);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 2
0
    // Update is called once per frame
    void Update()
    {
        if (Left != null)
        {
            gibL = Left.GetComponent <GiveBack>();
        }
        if (right != null)
        {
            gibR = right.GetComponent <GiveBack>();
        }

        if (Input.GetMouseButtonDown(0))
        {
            if (owner != null)
            {
                if (gibL != null)
                {
                    if (owner = gibL.Owner)
                    {
                        gibL.Return = true;
                    }
                }
            }
        }

        if (Input.GetMouseButtonDown(1))
        {
            if (owner != null)
            {
                if (gibL != null)
                {
                    if (owner = gibR.Owner)
                    {
                        gibR.Return = true;
                    }
                }
            }
        }
    }