void ReleaseDesignerOutlets()
        {
            if (BackArrow != null)
            {
                BackArrow.Dispose();
                BackArrow = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (PageTitle != null)
            {
                PageTitle.Dispose();
                PageTitle = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }
        }
Example #3
0
        void ReleaseDesignerOutlets()
        {
            if (IndicatorView != null)
            {
                IndicatorView.Dispose();
                IndicatorView = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (UnreadLabel != null)
            {
                UnreadLabel.Dispose();
                UnreadLabel = null;
            }
        }
Example #4
0
        /// <summary>
        /// Sets up the user interface.
        /// </summary>
        private void SetupGUI()
        {
            lblobjecttoskin.Text       = ElementName;
            btnstretch.BackgroundImage = Properties.Resources.stretchbutton;
            btntile.BackgroundImage    = Properties.Resources.tilebutton;
            btncentre.BackgroundImage  = Properties.Resources.centrebutton;
            btnzoom.BackgroundImage    = Properties.Resources.zoombutton;
            switch (this.ImageLayout)
            {
            case ImageLayout.Stretch:
                btnstretch.BackgroundImage = Properties.Resources.stretchbuttonpressed;
                break;

            case ImageLayout.Tile:
                btntile.BackgroundImage = Properties.Resources.tilebuttonpressed;
                break;

            case ImageLayout.Center:
                btncentre.BackgroundImage = Properties.Resources.centrebuttonpressed;
                break;

            default:
                btnzoom.BackgroundImage = Properties.Resources.zoombuttonpressed;
                break;
            }
            if (ShowMouseImages == true)
            {
                txtmousedownfile.Show();
                txtmouseoverfile.Show();
                Label3.Show();
                Label4.Show();
                picmousedown.Show();
                picmouseover.Show();
                btnmousedownbrowse.Show();
                btnmouseoverbrowse.Show();
                this.Height = MOUSE_IMAGES_WINDOW_HEIGHT;
            }
            else
            {
                txtmousedownfile.Hide();
                txtmouseoverfile.Hide();
                Label3.Hide();
                Label4.Hide();
                picmousedown.Hide();
                picmouseover.Hide();
                btnmousedownbrowse.Hide();
                btnmouseoverbrowse.Hide();
                this.Height = IDLE_ONLY_WINDOW_HEIGHT;
            }
            picidle.BackgroundImage       = IdleImage;
            picidle.BackgroundImageLayout = this.ImageLayout;
            picmousedown.BackgroundImage  = MouseDownImage;
            picidle.BackgroundImageLayout = this.ImageLayout;
            picmouseover.BackgroundImage  = MouseOverImage;
            picidle.BackgroundImageLayout = this.ImageLayout;
            txtidlefile.Text      = idle_filename;
            txtmousedownfile.Text = mousedown_filename;
            txtmouseoverfile.Text = mouseover_filename;
        }
Example #5
0
        void ReleaseDesignerOutlets()
        {
            if (BigImage != null)
            {
                BigImage.Dispose();
                BigImage = null;
            }

            if (Caption != null)
            {
                Caption.Dispose();
                Caption = null;
            }

            if (Description != null)
            {
                Description.Dispose();
                Description = null;
            }

            if (Image1 != null)
            {
                Image1.Dispose();
                Image1 = null;
            }

            if (Image3 != null)
            {
                Image3.Dispose();
                Image3 = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (RepoName != null)
            {
                RepoName.Dispose();
                RepoName = null;
            }

            if (UserImage != null)
            {
                UserImage.Dispose();
                UserImage = null;
            }
        }
        protected override void OnDisappearing()
        {
            base.OnDisappearing();

            Label1.RemoveAllGestureRecognizers();
            Label2.RemoveAllGestureRecognizers();
            Label3.RemoveAllGestureRecognizers();
            Label4.RemoveAllGestureRecognizers();
            Label5.RemoveAllGestureRecognizers();
            Label6.RemoveAllGestureRecognizers();
        }
Example #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            birimlerstore.DataSource = BldSvc.birimal();
            birimlerstore.DataBind();

            grupstore.DataSource = BldSvc.grupal();
            grupstore.DataBind();

            if (AktifKullanici != null)
            {
                ximgCap.Hide();
                xtxtCap.Hide();
                KurumStore.DataSource = BldSvc.kurumno(AktifKullanici);
                KurumStore.DataBind();

                e_mail.Hide();
                Konu.Hide();
                tel.Hide();
                Label2.Hide();
                Label3.Hide();
                BasvuruNo.Hide();
            }
            else
            {
                Tarih.Hide();
                Kurumlar.Hide();
                basvuru.Hide();
                Label5.Hide();
                Label4.Hide();
                Sonuc.Hide();
                BasvuruNo.Hide();
            }

            var kurumId = GetKurumId();

            if (kurumId == 0)
            {
                // Response.Write("Olmaz öyle");
                return;
            }

            var kurum = BldSvc.GetKurumById(kurumId);

            if (kurum == null)
            {
                // Response.Write("Kurum null ");
                return;
            }

            lblKurumAdi.Text = kurum.Adi;

            // var user = (dto_kullanicilar)Session["kullanici"];
            //var kurumid = user.KurumId;
        }
 void FixGesturesUsingXaml()
 {
     //the following is only necessary until Xamarin give us a hook into this I've filed a bugzilla about it
     //https://bugzilla.xamarin.com/show_bug.cgi?id=30467
     //if you don't want to write the following lines of code, then MAKE YOUR VOICE HEARD ON THAT BUG PLEASE! :)
     Label1.ProcessGestureRecognizers();
     Label2.ProcessGestureRecognizers();
     Label3.ProcessGestureRecognizers();
     Label4.ProcessGestureRecognizers();
     Label5.ProcessGestureRecognizers();
     Label6.ProcessGestureRecognizers();
 }
Example #9
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (TextBox1.Text == "www.12padams.com")
     {
         Label3.Show();
         Label3.Text = "Hidden Content Found: Time Distorter";
         TitleScreen.frm95.hiddenpadamsFound = true;
     }
     else
     {
         Label3.Show();
         Label3.Text = "No Content Found";
     }
 }
Example #10
0
        void ReleaseDesignerOutlets()
        {
            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Button1 != null)
            {
                Button1.Dispose();
                Button1 = null;
            }

            if (Button2 != null)
            {
                Button2.Dispose();
                Button2 = null;
            }

            if (Button3 != null)
            {
                Button3.Dispose();
                Button3 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Button4 != null)
            {
                Button4.Dispose();
                Button4 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (Button5 != null)
            {
                Button5.Dispose();
                Button5 = null;
            }
        }
Example #11
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            if (Class_FIO.Employees_position == "1")
            {
                oraConnection.Open();
                try
                {
                    string query_update_q = "Update TECHNOPARK.EMPLOYEES SET FIO = '" + TextBox1.Text + "' WHERE POSITION = 3";
                    oraAdap.UpdateCommand = new OracleCommand(query_update_q, oraConnection);
                    oraAdap.UpdateCommand.ExecuteNonQuery();
                    Label3.DataBind();
                }
                catch
                {
                }

                //Class_FIO.Director = TextBox1.Text;
                //Label3.Text = Class_FIO.Director;
                TextBox1.Text         = String.Empty;
                oraAdap.SelectCommand = new OracleCommand();

                oraAdap.SelectCommand             = new OracleCommand();
                oraAdap.SelectCommand.CommandText = "Select FIO From EMPLOYEES where POSITION=3";
                oraAdap.SelectCommand.Connection  = oraConnection;
                OracleDataReader oraReader1 = oraAdap.SelectCommand.ExecuteReader();
                while (oraReader1.Read())
                {
                    object[] values = new object[oraReader1.FieldCount];
                    oraReader1.GetValues(values);
                    Class_FIO.Director = values[0].ToString();
                }

                oraAdap.SelectCommand.CommandText = "with t as (select FIO as name from EMPLOYEES where POSITION=3) select regexp_replace(t.name, ' (.*)') LASTNAME, regexp_replace(regexp_replace(t.name, ' (.*)|^[^ ]* '),'.*','.',2,1)||regexp_replace(regexp_replace(t.name, '(.*) '),'.*','.',2,1) INITIALS from t";
                oraAdap.SelectCommand.Connection  = oraConnection;
                OracleDataReader oraReader2 = oraAdap.SelectCommand.ExecuteReader();
                while (oraReader2.Read())
                {
                    object[] values = new object[oraReader2.FieldCount];
                    oraReader2.GetValues(values);
                    Class_FIO.DirectorDD = values[0].ToString();
                    Class_FIO.DirectorDD = Class_FIO.DirectorDD + " " + values[1].ToString();
                }
                Label3.Text = Class_FIO.Director;
            }
            else
            {
                Response.Write("<script>alert('Только методист может менять ФИО директора!')</script>");
            }
        }
Example #12
0
    public void GetTotalGrossAmt()
    {
        decimal GrossAmt = 0;

        foreach (GridViewRow grv in GridView1.Rows)
        {
            TextBox lblTotAmtt = (TextBox)grv.FindControl("TxtTotal");
            GrossAmt += lblTotAmtt.Text == "" ? 0 : Convert.ToInt32(lblTotAmtt.Text.ToString());
        }

        Label3.Text = GrossAmt.ToString();
        Label3.Focus();
        PurchaseAmnt.Value = Label3.Text;
        LblGrandTot.Text   = Label3.Text;
    }
Example #13
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (TextBox1.Text == "www.12padams.com")
     {
         Label3.Show();
         Label3.Text = "Hidden Content Found: Time Distorter";
         TitleScreen.frm95.hiddenpadamsFound = true;
         if (TitleScreen.frm95.ie != null && ((WinClassicIE4)TitleScreen.frm95.ie.programContent.Controls[0]).currentsite.Title == "12PADAMS")
         {
             ((WinClassicIE4)TitleScreen.frm95.ie.programContent.Controls[0]).webBrowser1.Refresh();
         }
     }
     else
     {
         Label3.Show();
         Label3.Text = "No Content Found";
     }
 }
Example #14
0
        protected override void OnSizeAllocated(double width, double height)
        {
            base.OnSizeAllocated(width, height);

            System.Diagnostics.Debug.WriteLine("deg : OnSizeAllocated");

            if (!First)
            {
                Label1.TranslateTo(50, 50, 1000);
                Label2.TranslateTo(100, 50);
                Label3.TranslateTo(200, 50);

                First = true;
            }

            /*
             *           Label1.LayoutTo(new Rectangle(40, 0, 30, 30));
             * Label2.LayoutTo(new Rectangle(80, 0, 30, 30));
             * Label3.LayoutTo(new Rectangle(100, 0, 30, 30));
             */
        }
Example #15
0
        private void op_SampleReady(object pSample)
        {
            // ERROR: Not supported in C#: OnErrorStatement


            if (cursample < 3)
            {
                Label3.Text = "Yes, put your finger again on the sensor for sample #" + Conversion.Str(cursample + 1);
                Label3.Refresh();
            }
            else
            {
                Label3.Text = "Wait for the Verify form";
                Label3.Refresh();
                this.Cursor = System.Windows.Forms.Cursors.Cross;
            }

            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.PictureOrientation. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            pSample.PictureOrientation = DpSdkEngLib.AIOrientation.Or_Portrait;
            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.PictureWidth. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            pSample.PictureWidth = sizeConvertors.pixelToTwips(picSample[cursample].Width, true) / sizeConvertors.twipsPerPixel(true);
            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.PictureHeight. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            pSample.PictureHeight = sizeConvertors.pixelToTwips(picSample[cursample].Height, false) / sizeConvertors.twipsPerPixel(false);
            //UPGRADE_WARNING: Couldn't resolve default property of object pSample.Picture. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            picSample[cursample].Image = pSample.Picture;
            lblEvents.Text             = "Sample ready";

            return;

FPA_Error:
            if (Err().Number == 429)
            {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            }
            else
            {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                // ERROR: Not supported in C#: ResumeStatement
            }
        }
Example #16
0
        void ReleaseDesignerOutlets()
        {
            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (LabelBottom != null)
            {
                LabelBottom.Dispose();
                LabelBottom = null;
            }

            if (NextButton != null)
            {
                NextButton.Dispose();
                NextButton = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Example #17
0
        private void start_cmd_Click(System.Object eventSender, System.EventArgs eventArgs)
        {
            // ERROR: Not supported in C#: OnErrorStatement


            //eName.Text = ""
            //eName.Refresh
            Label3.Text = "Put your finger on the senser 4 times -> ";
            Label3.Refresh();
            picSample_Click(picSample[0], new System.EventArgs());

            return;

FPA_Error:
            if (Err().Number == 429)
            {
                Interaction.MsgBox("Driver/Device missing for Finger Print Reader", MsgBoxStyle.Critical);
            }
            else
            {
                Interaction.MsgBox(Err().Number + " " + Err().Description, MsgBoxStyle.Critical);
                // ERROR: Not supported in C#: ResumeStatement
            }
        }
Example #18
0
        private void frm_inicio_Load(object sender, EventArgs e)
        {
            // metodo pone un timer a funcionar para ir mostrado la hora en el sistema y se cambie
            timer1.Start();
            // antes de iniciar el programa implementa parametros para acomodar la interfaz dependiendo de la pantalla de computador
            PictureBox1.SetBounds(Screen.PrimaryScreen.Bounds.Width - 150, 15, PictureBox1.Width, PictureBox1.Height);
            PictureBox2.SetBounds(0, Screen.PrimaryScreen.Bounds.Height - 70, PictureBox2.Width, PictureBox2.Height);
            PictureBox3.SetBounds(Screen.PrimaryScreen.Bounds.Width - 60, 15, PictureBox3.Width, PictureBox3.Height);
            PictureBox4.SetBounds(10, 30, PictureBox4.Width, PictureBox4.Height);
            PictureBox5.SetBounds(this.Width - 200, this.Height - 100, PictureBox5.Width, PictureBox5.Height);
            Label1.SetBounds(100, 30, Label1.Width, Label1.Height);
            nombre.SetBounds(Screen.PrimaryScreen.Bounds.Width - 290, PictureBox1.Height - 40, nombre.Width, nombre.Height);
            Label3.SetBounds(Screen.PrimaryScreen.Bounds.Width - 290, PictureBox1.Height - 15, Label3.Width, Label3.Height);
            Label11.SetBounds(this.Width - 245, this.Height - 120, Label11.Width, Label11.Height);
            Label12.SetBounds(Screen.PrimaryScreen.Bounds.Width - 60, PictureBox3.Height + 15, Label12.Width, Label12.Height);
            Label4.SetBounds(Screen.PrimaryScreen.Bounds.Width - 220, PictureBox1.Height, Label4.Width, Label4.Height);
            pn_principal.SetBounds(PictureBox4.Width + 50, PictureBox4.Height + 40, Panel1.Width + pn_empleados.Width + Pn_pagos.Width + 400, Panel4.Height + Panel1.Height + 100);
            Panel1.SetBounds(PictureBox4.Width + 50, PictureBox4.Height + 40, Panel1.Width, Panel1.Height);
            pn_empleados.SetBounds(Panel1.Width + 350, PictureBox4.Height + 40, pn_empleados.Width, pn_empleados.Height);
            Pn_pagos.SetBounds(pn_empleados.Width + 800, PictureBox4.Height + 40, Pn_pagos.Width, Pn_pagos.Height);
            Panel4.SetBounds(PictureBox4.Width + 50, Panel1.Height + 200, Panel4.Width, Panel4.Height);
            Panel5.SetBounds(Panel4.Width + 350, Panel1.Height + 200, Panel5.Width, Panel5.Height);
            pn_configuracion.SetBounds(Panel5.Width + 800, Panel1.Height + 200, Panel5.Width, Panel5.Height);
            pn_principal.Hide();


            // obtiene los datos del usuario actual por medio de la variable ID

            DataSet ds = conexion.sqlconsulta("Select nombre,puesto,cedula,foto from  tbl_usuarios  where id_usuario='" + ID.ToString() + "'");

            nombre.Text = ds.Tables[0].Rows[0].ItemArray[0].ToString();
            Label3.Text = ds.Tables[0].Rows[0].ItemArray[1].ToString();

            try
            {
                PictureBox1.BackgroundImage       = Image.FromFile(ds.Tables[0].Rows[0].ItemArray[3].ToString());
                PictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            }
            catch (Exception ex)
            {
                PictureBox1.BackgroundImage       = Image.FromFile(@"perfiles\profile.png");
                PictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            }

            var busqueda = new StreamReader("configuracion.cfg");

            String cadena;

            while ((cadena = busqueda.ReadLine()) != null)
            {
                string[] campos = cadena.Split(':');
                if (campos[0].Equals("Fondo"))
                {
                    this.BackgroundImage       = Image.FromFile("fondo/" + campos[1]);
                    this.BackgroundImageLayout = ImageLayout.Stretch;
                }
                cadena = busqueda.ReadLine();
            }


            busqueda.Close();
        }
Example #19
0
 private void actualizacion_Load(object sender, EventArgs e)
 {
     ProgressBar1.Hide();
     Label3.Hide();
     Label4.Hide();
 }
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

            if (CenterListTextField != null)
            {
                CenterListTextField.Dispose();
                CenterListTextField = null;
            }

            if (CiudadListTextField != null)
            {
                CiudadListTextField.Dispose();
                CiudadListTextField = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (mandatoryLabel != null)
            {
                mandatoryLabel.Dispose();
                mandatoryLabel = null;
            }

            if (ModifyButton != null)
            {
                ModifyButton.Dispose();
                ModifyButton = null;
            }

            if (PaisListTextField != null)
            {
                PaisListTextField.Dispose();
                PaisListTextField = null;
            }

            if (TitleViewLabel != null)
            {
                TitleViewLabel.Dispose();
                TitleViewLabel = null;
            }
        }
Example #21
0
        void ReleaseDesignerOutlets()
        {
            if (Caption != null)
            {
                Caption.Dispose();
                Caption = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Image1 != null)
            {
                Image1.Dispose();
                Image1 = null;
            }

            if (Image2 != null)
            {
                Image2.Dispose();
                Image2 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Image3 != null)
            {
                Image3.Dispose();
                Image3 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (Image4 != null)
            {
                Image4.Dispose();
                Image4 = null;
            }

            if (Label4 != null)
            {
                Label4.Dispose();
                Label4 = null;
            }

            if (Number != null)
            {
                Number.Dispose();
                Number = null;
            }

            if (IssueType != null)
            {
                IssueType.Dispose();
                IssueType = null;
            }
        }
Example #22
0
 private void PictureBox1_Click(object sender, EventArgs e)
 {
     ProgressBar1.Show();
     Label3.Show();
     timer1.Start();
 }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Page.Validate();
        if (Page.IsValid)
        {
            int    patientId                 = Convert.ToInt32(Label2.Text);
            int    patientGeneralHealth      = Convert.ToInt32(RadioButtonList2.SelectedValue);
            string patientRegularMedications = TextBox2.Text;
            int    patientAllergyStatus      = Convert.ToInt32(RadioButtonList1.SelectedValue);
            string patientAllergies          = TextBox3.Text;
            int    patientPastSurgeryStatus  = Convert.ToInt32(RadioButtonList5.SelectedValue);
            string patientSurgery1           = TextBox4.Text;
            string patientSurgery1Date       = "1900-01-01";
            if (TextBox4.Text != "")
            {
                patientSurgery1Date = DateTime.ParseExact(TextBox5.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
            }
            string patientSurgery2     = TextBox6.Text;
            string patientSurgery2Date = "1900-01-01";
            if (TextBox6.Text != "")
            {
                patientSurgery2Date = DateTime.ParseExact(TextBox7.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
            }
            string patientSurgery3     = TextBox8.Text;
            string patientSurgery3Date = "1900-01-01";
            if (TextBox8.Text != "")
            {
                patientSurgery3Date = DateTime.ParseExact(TextBox9.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
            }
            int    patientMedicalInsuranceStatus       = Convert.ToInt32(RadioButtonList3.SelectedValue);
            string patientMedicalInsuranceProvider     = "";
            string patientMedicalInsurancePolicyNumber = "";
            if (patientMedicalInsuranceStatus == 1)
            {
                patientMedicalInsuranceProvider     = TextBox15.Text;
                patientMedicalInsurancePolicyNumber = TextBox16.Text;
            }
            string patientHeight          = TextBox10.Text;
            string patientWeight          = TextBox11.Text;
            string patientBloodGroup      = DropDownList1.SelectedItem.Text;
            int    patientAttendingDoctor = Convert.ToInt32(DropDownList2.SelectedValue);
            int    patientAdmissionWard   = Convert.ToInt32(DropDownList3.Text);
            int    patientWardNumber      = Convert.ToInt32(DropDownList5.Text);
            string patientDateOfAdmit     = DateTime.ParseExact(TextBox18.Text, "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString();
            string patientTimeOfAdmit     = TextBox19.Text;
            string patientRemark          = TextBox17.Text;

            RegisterIndoorPatientBL objRegisterIndoorPatientBL = new RegisterIndoorPatientBL();
            Session["ipdId"] = objRegisterIndoorPatientBL.RegisterIndoorPatient(patientId, patientGeneralHealth,
                                                                                patientRegularMedications, patientAllergyStatus, patientAllergies,
                                                                                patientPastSurgeryStatus, patientSurgery1, patientSurgery1Date, patientSurgery2,
                                                                                patientSurgery2Date, patientSurgery3, patientSurgery3Date,
                                                                                patientMedicalInsuranceStatus, patientMedicalInsuranceProvider,
                                                                                patientMedicalInsurancePolicyNumber, patientHeight, patientWeight, patientBloodGroup,
                                                                                patientAttendingDoctor, patientDateOfAdmit,
                                                                                patientTimeOfAdmit, patientRemark);

            AddCaseBL objAddCaseBL = new AddCaseBL();
            int       caseId       = objAddCaseBL.AddCase(patientAttendingDoctor, patientId, patientDateOfAdmit, DateTime.ParseExact("01/01/1900", "dd/MM/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString());

            AddWardEntryBL objAddWardEntryBL = new AddWardEntryBL();
            objAddWardEntryBL.AddWardEntry(patientAdmissionWard, patientWardNumber, patientId, caseId);

            UpdatePatientTypeBL objUpdatePatientTypeBL = new UpdatePatientTypeBL();
            objUpdatePatientTypeBL.UpdatePatientType(patientId, "IN");

            Panel2.Visible = true;
            Label3.Focus();
            TextBox2.Enabled         = false;
            TextBox3.Enabled         = false;
            TextBox4.Enabled         = false;
            TextBox5.Enabled         = false;
            TextBox6.Enabled         = false;
            TextBox7.Enabled         = false;
            TextBox8.Enabled         = false;
            TextBox9.Enabled         = false;
            TextBox10.Enabled        = false;
            TextBox15.Enabled        = false;
            TextBox16.Enabled        = false;
            TextBox17.Enabled        = false;
            TextBox18.Enabled        = false;
            TextBox19.Enabled        = false;
            RadioButtonList1.Enabled = false;
            RadioButtonList2.Enabled = false;
            RadioButtonList3.Enabled = false;
            RadioButtonList5.Enabled = false;
            DropDownList2.Enabled    = false;
            DropDownList3.Enabled    = false;
            DropDownList5.Enabled    = false;
            Button2.Enabled          = false;
            Button1.Enabled          = false;
        }
    }
Example #24
0
        void ReleaseDesignerOutlets()
        {
            if (Field0 != null)
            {
                Field0.Dispose();
                Field0 = null;
            }

            if (Field1 != null)
            {
                Field1.Dispose();
                Field1 = null;
            }

            if (Field2 != null)
            {
                Field2.Dispose();
                Field2 = null;
            }

            if (Field3 != null)
            {
                Field3.Dispose();
                Field3 = null;
            }

            if (Field4 != null)
            {
                Field4.Dispose();
                Field4 = null;
            }

            if (Label0 != null)
            {
                Label0.Dispose();
                Label0 = null;
            }

            if (Label1 != null)
            {
                Label1.Dispose();
                Label1 = null;
            }

            if (Label2 != null)
            {
                Label2.Dispose();
                Label2 = null;
            }

            if (Label3 != null)
            {
                Label3.Dispose();
                Label3 = null;
            }

            if (Label4 != null)
            {
                Label4.Dispose();
                Label4 = null;
            }
        }