Example #1
0
		///<summary></summary>
		public static long Insert(TerminalActive te) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				te.TerminalActiveNum=Meth.GetLong(MethodBase.GetCurrentMethod(),te);
				return te.TerminalActiveNum;
			}
			return Crud.TerminalActiveCrud.Insert(te);
		}
Example #2
0
		///<summary></summary>
		public static void Update(TerminalActive te) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),te);
				return;
			}
			Crud.TerminalActiveCrud.Update(te);
		}
		///<summary></summary>
		public TerminalActive Copy() {
			TerminalActive t=new TerminalActive();
			t.TerminalActiveNum=TerminalActiveNum;
			t.ComputerName=ComputerName;
			t.TerminalStatus=TerminalStatus;
			t.PatNum=PatNum;
			return t;
		}
Example #4
0
		///<summary></summary>
		public static void Delete(TerminalActive te) {
			if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) {
				Meth.GetVoid(MethodBase.GetCurrentMethod(),te);
				return;
			}
			string command="DELETE FROM terminalactive WHERE TerminalActiveNum ="+POut.Long(te.TerminalActiveNum);
			Db.NonQ(command);
		}
Example #5
0
 ///<summary></summary>
 public static void Update(TerminalActive te)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), te);
         return;
     }
     Crud.TerminalActiveCrud.Update(te);
 }
Example #6
0
 ///<summary></summary>
 public static long Insert(TerminalActive te)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         te.TerminalActiveNum = Meth.GetLong(MethodBase.GetCurrentMethod(), te);
         return(te.TerminalActiveNum);
     }
     return(Crud.TerminalActiveCrud.Insert(te));
 }
Example #7
0
        ///<summary></summary>
        public TerminalActive Copy()
        {
            TerminalActive t = new TerminalActive();

            t.TerminalActiveNum = TerminalActiveNum;
            t.ComputerName      = ComputerName;
            t.TerminalStatus    = TerminalStatus;
            t.PatNum            = PatNum;
            return(t);
        }
Example #8
0
        ///<summary></summary>
        public static void Delete(TerminalActive te)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                Meth.GetVoid(MethodBase.GetCurrentMethod(), te);
                return;
            }
            string command = "DELETE FROM terminalactive WHERE TerminalActiveNum =" + POut.Long(te.TerminalActiveNum);

            Db.NonQ(command);
        }
Example #9
0
		private void FormTerminal_Load(object sender,EventArgs e) {
			multInput.IsQuestionnaire=true;
			labelConnection.Visible=false;
			TerminalActives.DeleteAllForComputer(Environment.MachineName);
			TerminalActive terminal=new TerminalActive();
			terminal.ComputerName=Environment.MachineName;
			terminal.TerminalStatus=TerminalStatusEnum.Standby;
			TerminalActives.Insert(terminal);
			tabMain.Visible=false;
			butSubmit.Visible=false;
			TerminalStatus=TerminalStatusEnum.Standby;
		}
Example #10
0
		private void FormTerminal_Load(object sender,EventArgs e) {
			this.Size=System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size;
			this.Location=new Point(0,0);
			labelConnection.Visible=false;
			if(IsSimpleMode) {
				timer1.Enabled=false;
				textWelcome.Visible=false;
			}
			else {
				//tell the database that a terminal is newly active on this computer.
				TerminalActives.DeleteAllForComputer(Environment.MachineName);
				TerminalActive terminal=new TerminalActive();
				terminal.ComputerName=Environment.MachineName;
				TerminalActives.Insert(terminal);
				UnloadPatient();
				//do not load a patient
			}
		}