public FrmScanCheck(BangnaControl bc, MainMenu m) { InitializeComponent(); this.bc = bc; this.menu = m; initConfig(); }
public FrmDoctorView1(BangnaControl bc, FrmSplash splash) { this.bc = bc; login = new Login(bc, splash); login.ShowDialog(this); new Thread(() => { Thread.CurrentThread.IsBackground = true; /* run your code here */ bc.bcDB = new objdb.BangnaHospitalDB(bc.conn); bc.getInit(); }).Start(); splash.Dispose(); if (login.LogonSuccessful.Equals("1")) { initConfig(); new Thread(() => { Thread.CurrentThread.IsBackground = true; /* run your code here */ }).Start(); } else { Application.Exit(); } }
public FrmSearchHn(BangnaControl bc, StatusConnection statusconn) { InitializeComponent(); this.bc = bc; this.statusconn = statusconn; initConfig(); }
public FrmXrayViewDaily(BangnaControl x) { InitializeComponent(); bc = x; initConfig(); }
public FrmDoctorDiag(BangnaControl bc, String title, String hn) { InitializeComponent(); this.bc = bc; this.title = title; this.hn = hn; //this.vsdate = vsdate; //this.preno = preno; status = title; fEdit = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Regular); fEditB = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Bold); fEditBig = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize + 2, FontStyle.Regular); ptt = new Patient(); ptt = bc.bcDB.pttDB.selectPatient(hn); ContextMenu menuGw = new ContextMenu(); menuGw.MenuItems.Add("Template 1", new EventHandler(ContextMenu_Template1)); richTextBox1.ContextMenu = menuGw; rbnSave.Click += RbnSave_Click; rbnBullet.Click += RbnBullet_Click; rbnPaint.Click += RbnPaint_Click; }
public FrmScanEdit(BangnaControl bc) { showFormWaiting(); this.bc = bc; initConfig(); frmFlash.Dispose(); }
public FrmOPD2CheckUP(String hn) { InitializeComponent(); bc = new BangnaControl(); //id = opdcid; initConfig(); }
public FrmScreenCapture(BangnaControl bc) { InitializeComponent(); this.bc = bc; formwidth = this.Width; initConfig(); }
public FrmScanView(BangnaControl bc, String hn) { InitializeComponent(); this.bc = bc; this.hn = hn; initConfig(); }
public FrmOPD21CheckUP(BangnaControl c, String truestar) { InitializeComponent(); bc = c; this.truestar = truestar; initConfig(); }
private void initConfig() { bc = new BangnaControl(); btnPrintOPD21TrueStar.Click += BtnPrintOPD21TrueStar_Click; btnPrintLicenseDriver.Click += BtnPrintLicenseDriver_Click; btnPrnCovid.Click += BtnPrnCovid_Click; }
public Login(BangnaControl bc, FrmSplash splash) { InitializeComponent(); this.bc = bc; this.splash = splash; initConfig(); //new LogWriter("e", "Login InitializeComponent Start Form"); }
public FrmSearchStaff(BangnaControl bc) { this.bc = bc; fEdit = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Regular); fEditB = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Bold); theme1 = new C1ThemeController(); initConfig(); }
public FrmReport(BangnaControl bc, Form this1, String reportname, DataTable dt) { this.bc = bc; //crv = new CrystalReportViewer(); this.reportname = reportname; frmParent = this1; this.dt = dt; //MessageBox.Show("40 ", ""); initConfig(); }
public FrmScreenCaptureUpload(BangnaControl bc, String filename, String hn, String pttname, String vn, String flagVn) { InitializeComponent(); this.bc = bc; this.filename = filename; this.hn = hn; this.pttname = pttname; this.vn = vn; this.flagVn = flagVn; initConfig(); }
public FrmScanAddView(BangnaControl bc, String hn, String vn, String name, String filename, String dsg, String visitdate) { InitializeComponent(); this.bc = bc; this.hn = hn; this.vn = vn; this.name = name; this.filename = filename; this.dgs = dsg; visitDate = visitdate; initConfig(); }
public FrmScanViewEdit(BangnaControl bc, String hn, String vn, String name, Image img, String dscid, String statusOPD) { InitializeComponent(); this.bc = bc; this.hn = hn; this.vn = vn; this.name = name; this.img1 = img; this.dscid = dscid; //visitDate = visitdate; initConfig(); }
public FrmReportNew(BangnaControl bc, String filename) { InitializeComponent(); this.bc = bc; this.reportfilename = filename; }
public FrmBillLabCheck(BangnaControl x) { InitializeComponent(); bc = x; initConfig(); }
public FrmScanView(BangnaControl bc) { InitializeComponent(); this.bc = bc; initConfig(); }
public frmSsnData(BangnaControl bc) { InitializeComponent(); this.bc = bc; initConfig(); }
public FrmReceptionCovidSend(BangnaControl bc) { this.bc = bc; initConfig(); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //new LogWriter("d", "Program Start Form "+ args.Length); BangnaControl bc = new BangnaControl(); if (args.Length == 1) { //MessageBox.Show("hn "+ args[0], ""); //new LogWriter("d", "Program Start Form args[0] " + args[0]); bc.hn = args[0]; //bc.hn = args[0]; } //for (int i = 0; i < args.Length; i++) //{ // string argument = args[i]; // new LogWriter("d","i "+i+ " argument " + argument); // //bc.hn = argument; //} //string[] arguments = Environment.GetCommandLineArgs(); //foreach(String aaa in arguments) //{ // new LogWriter("d", "aaa " + aaa); //} //FrmSplash spl = new FrmSplash(); //spl.Show(); //Application.Run(new gui.MainMenu(bc, spl)); //Application.Run(new gui.FrmBillLabCheck(bc)); //MessageBox.Show("error Main " , ""); //Application.Run(new gui.FrmXrayViewDaily(bc)); try { if (bc.iniC.programLoad.Equals("ScanView")) { FrmScanView1 frm = new FrmScanView1(bc, bc.hn, "show"); //Form1 frm = new Form1(); frm.WindowState = FormWindowState.Maximized; Application.Run(frm); } else if (bc.iniC.programLoad.Equals("ScanAdd")) { FrmSplash spl = new FrmSplash(); spl.Show(); Application.Run(new gui.MainMenu(bc, spl)); //Application.Run(frm); } else if (bc.iniC.programLoad.Equals("XrayImportToPACs")) { Application.Run(new gui.FrmXrayViewDaily(bc)); } else if (bc.iniC.programLoad.Equals("LabOut")) { Application.Run(new gui.FrmScanAddLabOut(bc)); } else if (bc.iniC.programLoad.Equals("nhsoPrint")) { Application.Run(new gui.frmNHSOPrint(bc)); } else if (bc.iniC.programLoad.Equals("screenCapture")) { Application.Run(new gui.FrmScreenCapture(bc)); } else if (bc.iniC.programLoad.Equals("doctorView")) { //new LogWriter("e", "Program doctorView Start Form"); FrmSplash spl = new FrmSplash(); spl.Show(); Application.Run(new gui.FrmDoctorView1(bc, spl)); } else if (bc.iniC.programLoad.Equals("PrintCri")) { FrmSplash spl = new FrmSplash(); spl.Show(); Application.Run(new gui.FrmPrintCri(bc, spl)); } else if (bc.iniC.programLoad.Equals("LabOutReceive")) { //FrmSplash spl = new FrmSplash(); //spl.Show(); //Application.Run(new gui.FrmLabOutReceive(bc)); Application.Run(new gui.FrmLabOutReceive1(bc)); } else if (bc.iniC.programLoad.Equals("LabOutReceiveView")) { Application.Run(new gui.FrmLabOutReceiveView1(bc)); } else if (bc.iniC.programLoad.Equals("NurseScanView")) { Application.Run(new gui.FrmNurseScanView(bc)); } else if (bc.iniC.programLoad.Equals("XrayPACsAdd")) { Application.Run(new gui.FrmXrayPACsAdd(bc)); } else if (bc.iniC.programLoad.Equals("OrOperativeNote")) { Application.Run(new gui.FrmOrOperativeNote(bc, "")); } else if (bc.iniC.programLoad.Equals("BillLabCheck")) { Application.Run(new gui.FrmBillLabCheck(bc)); } else if (bc.iniC.programLoad.Equals("createPDF")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmDocCreatePDF(bc, "", "")); } else if (bc.iniC.programLoad.Equals("OPBKKClaim")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmOPBKKClaim(bc)); } else if (bc.iniC.programLoad.Equals("OPDCovid")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmOPD2CheckUPMain()); } else if (bc.iniC.programLoad.Equals("DfDoctor")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmDfDoctor(bc)); } else if (bc.iniC.programLoad.Equals("PatientNewSmartCard")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmSmartCard(bc)); } else if (bc.iniC.programLoad.Equals("ReceiptionCovidSend")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmReceptionCovidSend(bc)); } else if (bc.iniC.programLoad.Equals("VaccineApprove")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmVaccineApprove(bc)); } else if (bc.iniC.programLoad.Equals("PatientNewSmartCardNoteBook")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmSmartCardNoteBook(bc)); } else if (bc.iniC.programLoad.Equals("vaccineExcel")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmVaccineInsurExcel(bc)); } else if (bc.iniC.programLoad.Equals("Checkup")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.FrmCheckup(bc)); } else if (bc.iniC.programLoad.Equals("ssndata")) { //new LogWriter("d", "args " + args.Length); Application.Run(new gui.frmSsnData(bc)); } else { if (System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToLower().Equals("bangna_hospital_scan_capture")) { //MessageBox.Show("labex", "labex"); Application.Run(new FrmScreenCapture(bc)); } } } catch (Exception ex) { new LogWriter("e", "Program doctorView Start Form"); MessageBox.Show("error Main " + ex.Message, ""); } }
public FrmLabOutReceiveView(BangnaControl bc) { InitializeComponent(); this.bc = bc; initConfig(); }
public FrmDocGroupFm(BangnaControl x) { InitializeComponent(); bc = x; initConfig(); }
public FrmOPDLicenseDriver(BangnaControl c) { InitializeComponent(); bc = c; initConfig(); }
public FrmDocGroupFmEdit(BangnaControl bc) { this.bc = bc; initConfig(); }
public FrmDfDoctor(BangnaControl bc) { this.bc = bc; initConfig(); }
public FrmVaccineInsurExcel(BangnaControl bc) { InitializeComponent(); this.bc = bc; initConfig(); }
public FrmVaccineApprove(BangnaControl bc) { this.bc = bc; initConfig(); }