Beispiel #1
0
		///<summary></summary>
		public static long Insert(RecallTrigger trigger) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				trigger.RecallTriggerNum=Meth.GetLong(MethodBase.GetCurrentMethod(),trigger);
				return trigger.RecallTriggerNum;
			}
			return Crud.RecallTriggerCrud.Insert(trigger);
		}
Beispiel #2
0
 ///<summary></summary>
 public static long Insert(RecallTrigger trigger)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         trigger.RecallTriggerNum = Meth.GetLong(MethodBase.GetCurrentMethod(), trigger);
         return(trigger.RecallTriggerNum);
     }
     return(Crud.RecallTriggerCrud.Insert(trigger));
 }
Beispiel #3
0
 private void butAddTrigger_Click(object sender,EventArgs e)
 {
     FormProcCodes FormP=new FormProcCodes();
     FormP.IsSelectionMode=true;
     FormP.ShowDialog();
     if(FormP.DialogResult!=DialogResult.OK){
         return;
     }
     RecallTrigger trigger=new RecallTrigger();
     trigger.CodeNum=FormP.SelectedCodeNum;
     //RecallTypeNum handled during save.
     TriggerList.Add(trigger);
     FillTriggers();
 }