Example #1
0
		///<summary></summary>
		public static long Insert(EvaluationDef evaluationDef){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				evaluationDef.EvaluationDefNum=Meth.GetLong(MethodBase.GetCurrentMethod(),evaluationDef);
				return evaluationDef.EvaluationDefNum;
			}
			return Crud.EvaluationDefCrud.Insert(evaluationDef);
		}
Example #2
0
 ///<summary></summary>
 public static void Update(EvaluationDef evaluationDef)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), evaluationDef);
         return;
     }
     Crud.EvaluationDefCrud.Update(evaluationDef);
 }
Example #3
0
 ///<summary></summary>
 public static long Insert(EvaluationDef evaluationDef)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         evaluationDef.EvaluationDefNum = Meth.GetLong(MethodBase.GetCurrentMethod(), evaluationDef);
         return(evaluationDef.EvaluationDefNum);
     }
     return(Crud.EvaluationDefCrud.Insert(evaluationDef));
 }
Example #4
0
		///<summary></summary>
		public static void Update(EvaluationDef evaluationDef){
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb){
				Meth.GetVoid(MethodBase.GetCurrentMethod(),evaluationDef);
				return;
			}
			Crud.EvaluationDefCrud.Update(evaluationDef);
		}
Example #5
0
		public FormEvaluationDefEdit(EvaluationDef evalDefCur) {
			InitializeComponent();
			Lan.F(this);
			_evalDefCur=evalDefCur;
		}
Example #6
0
		private void butAdd_Click(object sender,EventArgs e) {
			EvaluationDef evalDef=new EvaluationDef();
			evalDef.IsNew=true;
			evalDef.EvaluationDefNum=EvaluationDefs.Insert(evalDef);
			FormEvaluationDefEdit FormEDE=new FormEvaluationDefEdit(evalDef);
			FormEDE.ShowDialog();
			if(FormEDE.DialogResult==DialogResult.OK) {
				FillGrid();
			}
		}