Esempio n. 1
0
		///<summary></summary>
		public static void Update(ResellerService resellerService){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				Meth.GetVoid(MethodBase.GetCurrentMethod(),resellerService);
				return;
			}
			Crud.ResellerServiceCrud.Update(resellerService);
		}
Esempio n. 2
0
		///<summary></summary>
		public static long Insert(ResellerService resellerService){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				resellerService.ResellerServiceNum=Meth.GetLong(MethodBase.GetCurrentMethod(),resellerService);
				return resellerService.ResellerServiceNum;
			}
			return Crud.ResellerServiceCrud.Insert(resellerService);
		}
Esempio n. 3
0
 ///<summary></summary>
 public static void Update(ResellerService resellerService)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), resellerService);
         return;
     }
     Crud.ResellerServiceCrud.Update(resellerService);
 }
Esempio n. 4
0
 ///<summary></summary>
 public static long Insert(ResellerService resellerService)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         resellerService.ResellerServiceNum = Meth.GetLong(MethodBase.GetCurrentMethod(), resellerService);
         return(resellerService.ResellerServiceNum);
     }
     return(Crud.ResellerServiceCrud.Insert(resellerService));
 }
		private void butAdd_Click(object sender,EventArgs e) {
			//Only Jordan should be able to add services.
			if(!Security.IsAuthorized(Permissions.SecurityAdmin)) {
				return;
			}
			ResellerService resellerService=new ResellerService();
			resellerService.ResellerNum=ResellerCur.ResellerNum;
			FormResellerServiceEdit FormRSE=new FormResellerServiceEdit(resellerService);
			FormRSE.IsNew=true;
			FormRSE.ShowDialog();
			if(FormRSE.DialogResult==DialogResult.OK) {
				FillGridServices();
			}
		}
Esempio n. 6
0
		public FormResellerServiceEdit(ResellerService resellerService) {
			ResellerServiceCur=resellerService;
			InitializeComponent();
			Lan.F(this);
		}