Example #1
0
		///<summary></summary>
		public static void Update(DrugUnit drugUnit){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				Meth.GetVoid(MethodBase.GetCurrentMethod(),drugUnit);
				return;
			}
			Crud.DrugUnitCrud.Update(drugUnit);
		}
Example #2
0
		///<summary></summary>
		public static long Insert(DrugUnit drugUnit){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				drugUnit.DrugUnitNum=Meth.GetLong(MethodBase.GetCurrentMethod(),drugUnit);
				return drugUnit.DrugUnitNum;
			}
			return Crud.DrugUnitCrud.Insert(drugUnit);
		}
Example #3
0
 ///<summary></summary>
 public static void Update(DrugUnit drugUnit)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), drugUnit);
         return;
     }
     Crud.DrugUnitCrud.Update(drugUnit);
 }
Example #4
0
 ///<summary></summary>
 public static long Insert(DrugUnit drugUnit)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         drugUnit.DrugUnitNum = Meth.GetLong(MethodBase.GetCurrentMethod(), drugUnit);
         return(drugUnit.DrugUnitNum);
     }
     return(Crud.DrugUnitCrud.Insert(drugUnit));
 }