예제 #1
0
        private void MFOSLicitaciones_Load(object sender, EventArgs e)
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy";
            Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortTimePattern = "HH:mm:ss";
            Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongTimePattern  = "HH:mm:ss";
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
            this.MdiParent = MFMdi.ActiveForm;
            this.Left      = 0;
            this.Top       = 0;

            //Para pruebas
            //lblIDooss.Text = "0";
            //lblCorrelativo.Text = "0";

            CargaAutocomplete();
            CargaGrid();
            CargaGridOs();
            WSLicitaciones.WSLicitaciones WSLic = new WSLicitaciones.WSLicitaciones();
            WSLic.Url    = mdlGenerales.DireccionWS + "FazServices/WSLicitaciones.asmx";
            DSDevuelveOs = WSLic.DevuelveAntiguedadOs(mdlGenerales.Conexion, lblIDooss.Text.ToString());
            DTMainOs     = DSDevuelveOs.Tables[0];
            int Horas = 0;

            foreach (DataRow row in DTMainOs.Rows)
            {
                Horas = int.Parse(row[0].ToString());
            }

            Bloquear(Int32.Parse(lblIDooss.Text.ToString()), Horas, mdlGenerales.STRUsuario);
        }