Esempio n. 1
0
		///<summary></summary>
		public static void Update(GradingScaleItem gradingScaleItem){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				Meth.GetVoid(MethodBase.GetCurrentMethod(),gradingScaleItem);
				return;
			}
			Crud.GradingScaleItemCrud.Update(gradingScaleItem);
		}
Esempio n. 2
0
		///<summary></summary>
		public static long Insert(GradingScaleItem gradingScaleItem){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				gradingScaleItem.GradingScaleItemNum=Meth.GetLong(MethodBase.GetCurrentMethod(),gradingScaleItem);
				return gradingScaleItem.GradingScaleItemNum;
			}
			return Crud.GradingScaleItemCrud.Insert(gradingScaleItem);
		}
Esempio n. 3
0
		private void butAdd_Click(object sender,EventArgs e) {
			GradingScaleItem gradingScaleItemNew=new GradingScaleItem();
			gradingScaleItemNew.GradingScaleNum=_gradingScaleCur.GradingScaleNum;//Must be set prior to edit window being open if a new item.
			gradingScaleItemNew.IsNew=true;
			FormGradingScaleItemEdit FormGSIE=new FormGradingScaleItemEdit(gradingScaleItemNew);
			FormGSIE.ShowDialog();
			FillGrid();
		}
Esempio n. 4
0
 ///<summary></summary>
 public static void Update(GradingScaleItem gradingScaleItem)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), gradingScaleItem);
         return;
     }
     Crud.GradingScaleItemCrud.Update(gradingScaleItem);
 }
Esempio n. 5
0
 ///<summary></summary>
 public static long Insert(GradingScaleItem gradingScaleItem)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         gradingScaleItem.GradingScaleItemNum = Meth.GetLong(MethodBase.GetCurrentMethod(), gradingScaleItem);
         return(gradingScaleItem.GradingScaleItemNum);
     }
     return(Crud.GradingScaleItemCrud.Insert(gradingScaleItem));
 }
Esempio n. 6
0
		public FormGradingScaleItemEdit(GradingScaleItem gradingScaleItemCur) {
			InitializeComponent();
			Lan.F(this);
			_gradingScaleItemCur=gradingScaleItemCur;
		}