示例#1
0
 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();
     }
 }
示例#3
0
 public FrmSearchHn(BangnaControl bc, StatusConnection statusconn)
 {
     InitializeComponent();
     this.bc         = bc;
     this.statusconn = statusconn;
     initConfig();
 }
示例#4
0
        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;
        }
示例#6
0
 public FrmScanEdit(BangnaControl bc)
 {
     showFormWaiting();
     this.bc = bc;
     initConfig();
     frmFlash.Dispose();
 }
示例#7
0
 public FrmOPD2CheckUP(String hn)
 {
     InitializeComponent();
     bc = new BangnaControl();
     //id = opdcid;
     initConfig();
 }
 public FrmScreenCapture(BangnaControl bc)
 {
     InitializeComponent();
     this.bc   = bc;
     formwidth = this.Width;
     initConfig();
 }
示例#9
0
 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;
 }
示例#12
0
 public Login(BangnaControl bc, FrmSplash splash)
 {
     InitializeComponent();
     this.bc     = bc;
     this.splash = splash;
     initConfig();
     //new LogWriter("e", "Login InitializeComponent Start Form");
 }
示例#13
0
        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();
        }
示例#14
0
 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();
 }
示例#18
0
 public FrmReportNew(BangnaControl bc, String filename)
 {
     InitializeComponent();
     this.bc             = bc;
     this.reportfilename = filename;
 }
 public FrmBillLabCheck(BangnaControl x)
 {
     InitializeComponent();
     bc = x;
     initConfig();
 }
示例#20
0
 public FrmScanView(BangnaControl bc)
 {
     InitializeComponent();
     this.bc = bc;
     initConfig();
 }
示例#21
0
 public frmSsnData(BangnaControl bc)
 {
     InitializeComponent();
     this.bc = bc;
     initConfig();
 }
示例#22
0
 public FrmReceptionCovidSend(BangnaControl bc)
 {
     this.bc = bc;
     initConfig();
 }
示例#23
0
        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();
 }
示例#25
0
 public FrmDocGroupFm(BangnaControl x)
 {
     InitializeComponent();
     bc = x;
     initConfig();
 }
 public FrmOPDLicenseDriver(BangnaControl c)
 {
     InitializeComponent();
     bc = c;
     initConfig();
 }
 public FrmDocGroupFmEdit(BangnaControl bc)
 {
     this.bc = bc;
     initConfig();
 }
示例#28
0
 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();
 }