Esempio n. 1
0
		///<summary>This in not currently being used.</summary>
		public static void Update(ToolButItem Cur){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),Cur);
				return;
			}
			Crud.ToolButItemCrud.Update(Cur);
		}
Esempio n. 2
0
		///<summary></summary>
		public static long Insert(ToolButItem Cur){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Cur.ToolButItemNum=Meth.GetLong(MethodBase.GetCurrentMethod(),Cur);
				return Cur.ToolButItemNum;
			}
			return Crud.ToolButItemCrud.Insert(Cur);
		}
Esempio n. 3
0
 ///<summary>This in not currently being used.</summary>
 public static void Update(ToolButItem Cur)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), Cur);
         return;
     }
     Crud.ToolButItemCrud.Update(Cur);
 }
Esempio n. 4
0
 ///<summary></summary>
 public static long Insert(ToolButItem Cur)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Cur.ToolButItemNum = Meth.GetLong(MethodBase.GetCurrentMethod(), Cur);
         return(Cur.ToolButItemNum);
     }
     return(Crud.ToolButItemCrud.Insert(Cur));
 }
Esempio n. 5
0
		///<summary>This is not currently being used.</summary>
		public static void Delete(ToolButItem Cur){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),Cur);
				return;
			}
			string command = "DELETE from toolbutitem WHERE ToolButItemNum = '"
				+POut.Long(Cur.ToolButItemNum)+"'";
			Db.NonQ(command);
		}
Esempio n. 6
0
        ///<summary>This is not currently being used.</summary>
        public static void Delete(ToolButItem Cur)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                Meth.GetVoid(MethodBase.GetCurrentMethod(), Cur);
                return;
            }
            string command = "DELETE from toolbutitem WHERE ToolButItemNum = '"
                             + POut.Long(Cur.ToolButItemNum) + "'";

            Db.NonQ(command);
        }
Esempio n. 7
0
        //later include ComputerName.  If blank, then show on all computers.

        ///<summary></summary>
        public static int Compare(ToolButItem item1, ToolButItem item2)
        {
            return(item1.ButtonText.CompareTo(item2.ButtonText));
        }