Esempio n. 1
0
		///<summary></summary>
		public static void Update(InstallmentPlan installmentPlan){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				Meth.GetVoid(MethodBase.GetCurrentMethod(),installmentPlan);
				return;
			}
			Crud.InstallmentPlanCrud.Update(installmentPlan);
		}
Esempio n. 2
0
		///<summary></summary>
		public static long Insert(InstallmentPlan installmentPlan){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				installmentPlan.InstallmentPlanNum=Meth.GetLong(MethodBase.GetCurrentMethod(),installmentPlan);
				return installmentPlan.InstallmentPlanNum;
			}
			return Crud.InstallmentPlanCrud.Insert(installmentPlan);
		}
Esempio n. 3
0
 ///<summary></summary>
 public static long Insert(InstallmentPlan installmentPlan)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         installmentPlan.InstallmentPlanNum = Meth.GetLong(MethodBase.GetCurrentMethod(), installmentPlan);
         return(installmentPlan.InstallmentPlanNum);
     }
     return(Crud.InstallmentPlanCrud.Insert(installmentPlan));
 }
Esempio n. 4
0
 ///<summary></summary>
 public static void Update(InstallmentPlan installmentPlan)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), installmentPlan);
         return;
     }
     Crud.InstallmentPlanCrud.Update(installmentPlan);
 }
Esempio n. 5
0
		private void toolBarButInstallPlan_Click() {
			if(InstallmentPlans.GetOneForFam(PatCur.Guarantor)!=null) {
				MsgBox.Show(this,"Family already has an installment plan.");
				return;
			}
			InstallmentPlan installPlan=new InstallmentPlan();
			installPlan.PatNum=PatCur.Guarantor;
			installPlan.DateAgreement=DateTime.Today;
			installPlan.DateFirstPayment=DateTime.Today;
			//InstallmentPlans.Insert(installPlan);
			FormInstallmentPlanEdit FormIPE=new FormInstallmentPlanEdit();
			FormIPE.InstallmentPlanCur=installPlan;
			FormIPE.IsNew=true;
			FormIPE.ShowDialog();
			ModuleSelected(PatCur.PatNum);
		}