///<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); }
///<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; }
///<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); }
///<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 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)); }
///<summary></summary> public TerminalActive Copy() { TerminalActive t = new TerminalActive(); t.TerminalActiveNum = TerminalActiveNum; t.ComputerName = ComputerName; t.TerminalStatus = TerminalStatus; t.PatNum = PatNum; return(t); }
///<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); }
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; }
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 } }