예제 #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);
		}
예제 #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);
		}
예제 #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();
		}
예제 #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);
 }
예제 #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));
 }
예제 #6
0
		public FormGradingScaleItemEdit(GradingScaleItem gradingScaleItemCur) {
			InitializeComponent();
			Lan.F(this);
			_gradingScaleItemCur=gradingScaleItemCur;
		}