Exemplo n.º 1
0
        private void bt_PrintBill_Click(object sender, EventArgs e)
        {
            string ilbHealRecordID = lb_HealRecordID.Text.Trim();

            if ((ilbHealRecordID != null) && (ilbHealRecordID != string.Empty))
            {
                foreach (Form form in Application.OpenForms) //คำสั่งห้ามเปิดซ้อนสอง
                {
                    if (form.GetType() == typeof(FrmBillSerMe))
                    {
                        form.Activate();
                        return;
                    }
                }
                FrmBillSerMe iFrmBillSerMe = new FrmBillSerMe();
                iFrmBillSerMe.MdiParent = MainForm.ActiveForm;
                iFrmBillSerMe.Show();
                iFrmBillSerMe.txb_ReferID.Text = lb_HealRecordID.Text;
                //iFrmNRePort31.lb_PetID.Text = .Text;
            }
            else
            {
                MessageBox.Show("ไม่พบรหัสประวัติการรักษา");
            }
        }
Exemplo n.º 2
0
 private void bt_DetailBill_Click(object sender, EventArgs e)
 {
     if ((lb_HealRecordID.Text != string.Empty) && (lb_HealRecordID.Text != null))
     {
         foreach (Form form in Application.OpenForms) //คำสั่งห้ามเปิดซ้อนสอง
         {
             if (form.GetType() == typeof(FrmBillSerMe))
             {
                 form.Activate();
                 return;
             }
         }
         FrmBillSerMe iFrmBillSerMe = new FrmBillSerMe();
         iFrmBillSerMe.MdiParent = MainForm.ActiveForm;
         iFrmBillSerMe.Show();
         iFrmBillSerMe.txb_ReferID.Text = lb_HealDetailID.Text;
     }
 }
Exemplo n.º 3
0
        private void bt_Print_Click(object sender, EventArgs e)
        {
            AddHealRecord();
            foreach (Form form in Application.OpenForms) //คำสั่งห้ามเปิดซ้อนสอง
            {
                if (form.GetType() == typeof(FrmBillSerMe))
                {
                    form.Activate();
                    return;
                }
            }
            FrmBillSerMe iFrmBillSerMe = new FrmBillSerMe();

            iFrmBillSerMe.MdiParent        = MainForm.ActiveForm;
            iFrmBillSerMe.txb_ReferID.Text = lb_HealRecordID.Text;
            iFrmBillSerMe.Show();
            //iCloseHealRecord = "Print";
            //this.Close();
        }
Exemplo n.º 4
0
 private void bt_HealBill_Click(object sender, EventArgs e)
 {
     if ((txb_PetProfileID.Text != null) && (txb_PetProfileID.Text != string.Empty))
     {
         foreach (Form form in Application.OpenForms) //คำสั่งห้ามเปิดซ้อนสอง
         {
             if (form.GetType() == typeof(FrmBillSerMe))
             {
                 form.Activate();
                 return;
             }
         }
         FrmBillSerMe iFrmBillSerMe = new FrmBillSerMe();
         iFrmBillSerMe.MdiParent = MainForm.ActiveForm;
         iFrmBillSerMe.Show();
         iFrmBillSerMe.txb_ReferID.Text = lb_HealRecordID.Text;
         //iFrmNRePort31.lb_PetID.Text = txb_PetProfileID.Text;
         //this.Close();
     }
     else
     {
         MessageBox.Show("กรุณาเลือกสัตว์ไข้", "ไม่พบสัตว์ไข้");
     }
 }