예제 #1
0
파일: RefAttaches.cs 프로젝트: mnisl/OD
		///<summary></summary>
		public static void Update(RefAttach attach){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),attach);
				return;
			}
			Crud.RefAttachCrud.Update(attach);
		}
예제 #2
0
파일: RefAttaches.cs 프로젝트: mnisl/OD
		///<summary></summary>
		public static long Insert(RefAttach attach) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				attach.RefAttachNum=Meth.GetLong(MethodBase.GetCurrentMethod(),attach);
				return attach.RefAttachNum;
			}
			return Crud.RefAttachCrud.Insert(attach);
		}
예제 #3
0
파일: RefAttaches.cs 프로젝트: mnisl/OD
		///<summary></summary>
		public static void Delete(RefAttach attach){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),attach);
				return;
			}
			string command= "DELETE FROM refattach "
				+"WHERE refattachnum = '"+attach.RefAttachNum+"'";
 			Db.NonQ(command);
		}		
예제 #4
0
        ///<summary></summary>
        public static void Delete(RefAttach attach)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                Meth.GetVoid(MethodBase.GetCurrentMethod(), attach);
                return;
            }
            string command = "UPDATE refattach SET ItemOrder=ItemOrder-1 WHERE PatNum=" + POut.Long(attach.PatNum)
                             + " AND ItemOrder > " + POut.Int(attach.ItemOrder);

            Db.NonQ(command);
            command = "DELETE FROM refattach "
                      + "WHERE refattachnum = " + POut.Long(attach.RefAttachNum);
            Db.NonQ(command);
        }