Ejemplo n.º 1
0
	    public void Insert(string ObjectID,string UserName,DateTime LockTime)
	    {
		    SysLockObject item = new SysLockObject();
		    
            item.ObjectID = ObjectID;
            
            item.UserName = UserName;
            
            item.LockTime = LockTime;
            
	    
		    item.Save(UserName);
	    }
        public void Insert(string MaLuotkham,string LockedFullname,string LockedBy,DateTime LockedTime,string FunctionCode,string FunctionName,string SDesc)
        {
            SysLockObject item = new SysLockObject();

            item.MaLuotkham = MaLuotkham;

            item.LockedFullname = LockedFullname;

            item.LockedBy = LockedBy;

            item.LockedTime = LockedTime;

            item.FunctionCode = FunctionCode;

            item.FunctionName = FunctionName;

            item.SDesc = SDesc;

            item.Save(UserName);
        }
Ejemplo n.º 3
0
        public void Update(string ObjectID,string UserName,DateTime LockTime)
        {
            SysLockObject item = new SysLockObject();
            item.MarkOld();
            item.IsLoaded = true;

            item.ObjectID = ObjectID;

            item.UserName = UserName;

            item.LockTime = LockTime;

            item.Save(UserName);
        }