• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Personal类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Personal的典型用法代码示例。如果您正苦于以下问题:C# Personal类的具体用法?C# Personal怎么用?C# Personal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Personal类属于命名空间,在下文中一共展示了Personal类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DetalleDiagramacion

 public DetalleDiagramacion(Deporte deporte, int item, string dia_semana, Sector sector, Horario hora_desde,
     Horario hora_hasta, Personal profesor)
 {
     Deporte = deporte;
     Item = item;
     Dia_semana = dia_semana;
     Sector = sector;
     Hora_desde = hora_desde;
     Hora_hasta = hora_hasta;
     Profesor = profesor;
 }
开发者ID:martinc2015,项目名称:KRISMAGIT,代码行数:11,代码来源:DetalleDiagramacion.cs


示例2: Button1_Click

    protected void Button1_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {
            if (int.Parse(cmbPersonal.SelectedValue) > 0 )
            {
                persona = Personal.FindOne(Expression.Eq("IdEmpleados", int.Parse(cmbPersonal.SelectedValue)));
                FillGrid();
            }

        }
    }
开发者ID:alvaromejiaquiroz,项目名称:proyectomls,代码行数:12,代码来源:TiemposXPersona.aspx.cs


示例3: DetalleDiagramacion

 public DetalleDiagramacion(Diagramacion diagramacion, int item, Dia dia_semana, Sector sector,
     Horario hora_desde, Horario hora_hasta, Personal profesor, bool lugar_confirmado, bool horario_confirmado,
     bool profesor_confirmado)
 {
     Diagramacion = diagramacion;
     Item = item;
     Dia_semana = dia_semana;
     Sector = sector;
     Hora_desde = hora_desde;
     Hora_hasta = hora_hasta;
     Profesor = profesor;
     Lugar_confirmado = lugar_confirmado;
     Horario_confirmado = horario_confirmado;
     Profesor_confirmado = profesor_confirmado;
 }
开发者ID:martinc2015,项目名称:KRISMAGIT,代码行数:15,代码来源:DetalleDiagramacion.cs


示例4: cvPersona_ServerValidate

    protected void cvPersona_ServerValidate(object source, ServerValidateEventArgs args)
    {
        args.IsValid = false;
        persona = Personal.GetById(cmbPersonal.SelectedValue);
        if (persona.email != null)
        {

            args.IsValid = true;

        }
        else
        {
            args.IsValid = false;
            cvPersona.ErrorMessage = persona.Apellido + "," + persona.Nombres + " no tiene un email valido ";
        }
    }
开发者ID:alvaromejiaquiroz,项目名称:proyectomls,代码行数:16,代码来源:PersonalListaCorreo.aspx.cs


示例5: Deserialize

        /// <summary>Takes the remaining content of the stream and deserialze it into the instance.</summary>
        public static Personal.Person Deserialize(Stream stream, Personal.Person instance)
        {
            if (instance.Phone == null)
                instance.Phone = new List<Personal.Person.PhoneNumber>();
            while (true)
            {
                int keyByte = stream.ReadByte();
                if (keyByte == -1)
                    break;
                // Optimized reading of known fields with field ID < 16
                switch (keyByte)
                {
                    // Field 1 LengthDelimited
                    case 10:
                        instance.Name = global::SilentOrbit.ProtocolBuffers.ProtocolParser.ReadString(stream);
                        continue;
                    // Field 2 Varint
                    case 16:
                        instance.Id = (int)global::SilentOrbit.ProtocolBuffers.ProtocolParser.ReadUInt64(stream);
                        continue;
                    // Field 3 LengthDelimited
                    case 26:
                        instance.Email = global::SilentOrbit.ProtocolBuffers.ProtocolParser.ReadString(stream);
                        continue;
                    // Field 4 LengthDelimited
                    case 34:
                        // repeated
                        instance.Phone.Add(Personal.Person.PhoneNumber.DeserializeLengthDelimited(stream));
                        continue;
                }

                var key = global::SilentOrbit.ProtocolBuffers.ProtocolParser.ReadKey((byte)keyByte, stream);

                // Reading field ID > 16 and unknown field ID/wire type combinations
                switch (key.Field)
                {
                    case 0:
                        throw new global::SilentOrbit.ProtocolBuffers.ProtocolBufferException("Invalid field id: 0, something went wrong in the stream");
                    default:
                        global::SilentOrbit.ProtocolBuffers.ProtocolParser.SkipKey(stream, key);
                        break;
                }
            }

            return instance;
        }
开发者ID:StepWoodProductions,项目名称:ProtoBuf,代码行数:47,代码来源:Generated.Serializer.cs


示例6: butGuardar_Click

        private void butGuardar_Click(object sender, EventArgs e)
        {
            string sex =""+comboSexo.SelectedItem;

            Personal p = new Personal();
            p.Cedula = textCedula.Text;
            p.Nombre = textNombres.Text;
            p.Apellido = textApellidos.Text;
            p.Cargo = textCargo.Text;
            p.Titulo = textTitulo.Text;
            p.Correo = textCorreo.Text;
            p.Sexo = sex[0];
            p.Ciudad = textCiudad.Text;
            p.Direccion = textDireccion.Text;
            p.Telefono = textTelefono.Text;
            p.Tipo = Convert.ToString(comboTipo.SelectedItem);
            p.DataFoto = ImageToByte(picture);
            PersonalCd.Create(p);

            frmap.dataGridView1.Update();
        }
开发者ID:josehmaza,项目名称:MIREPOSICAPJH,代码行数:21,代码来源:frmRegistrarPersonal.cs


示例7: Usage

		private static void Usage () {

				Console.WriteLine ("brief");
				Console.WriteLine ("");

				{
#pragma warning disable 219
					Reset		Dummy = new Reset ();
#pragma warning restore 219

					Console.Write ("{0}reset ", UsageFlag);
					Console.WriteLine ();

					Console.WriteLine ("    Delete all test profiles");

				}

				{
#pragma warning disable 219
					Device		Dummy = new Device ();
#pragma warning restore 219

					Console.Write ("{0}device ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.DeviceID.Usage (null, "id", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceDescription.Usage (null, "dd", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Default.Usage ("default", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Create new device profile");

				}

				{
#pragma warning disable 219
					Personal		Dummy = new Personal ();
#pragma warning restore 219

					Console.Write ("{0}personal ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.Portal.Usage (null, "portal", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Description.Usage (null, "pd", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Verbose.Usage ("verbose", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Report.Usage ("report", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceNew.Usage ("new", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceUDF.Usage ("dudf", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceID.Usage ("did", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceDescription.Usage ("dd", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Create new personal profile");

				}

				{
#pragma warning disable 219
					Label		Dummy = new Label ();
#pragma warning restore 219

					Console.Write ("{0}label ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.Portal.Usage ("portal", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.UDF.Usage ("udf", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Create new security label");

				}

				{
#pragma warning disable 219
					Add		Dummy = new Add ();
#pragma warning restore 219

					Console.Write ("{0}add ", UsageFlag);
					Console.WriteLine ();

					Console.WriteLine ("    Add user to a label");

				}

				{
#pragma warning disable 219
					Remove		Dummy = new Remove ();
#pragma warning restore 219

					Console.Write ("{0}remove ", UsageFlag);
					Console.WriteLine ();

					Console.WriteLine ("    Remove user from a label");

				}

				{
#pragma warning disable 219
					Rekey		Dummy = new Rekey ();
#pragma warning restore 219

					Console.Write ("{0}rekey ", UsageFlag);
					Console.WriteLine ();

					Console.WriteLine ("    Create a new label key and recryption keys");

//.........这里部分代码省略.........
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:101,代码来源:recrypt.cs


示例8: GetAuthenUser

    /// <summary>
    /// 实现ESB用户到授权用户的装换
    /// </summary>
    /// <param name="person"></param>
    /// <returns></returns>
    public static AuthenUser GetAuthenUser(Personal person)
    {
        AuthenUser authenUser = new AuthenUser();

        authenUser.IsSystemAdmin = (person.permission == 0);
        authenUser.UserID = person.PersonalID;
        authenUser.UserName = person.PersonalName;
        authenUser.LoginName = person.PersonalAccount;
        authenUser.IsVisitor = false;

        return authenUser;
    }
开发者ID:vebin,项目名称:soa,代码行数:17,代码来源:AuthenUser.cs


示例9: Personal

        /// <summary>
        /// Create a new personal profile
        /// </summary>
        /// <param name="Options">Command line parameters</param>
        public override void Personal(Personal Options) {
            SetReporting(Options.Report, Options.Verbose);

            var Address = Options.Portal.Value;
            Utils.Assert((Address != null & Address != ""), "Must specify account");


            // See if the portal exists and will accept the specified account name.
            GetMeshClient(Address);
            var AccountAvailable = MeshClient.Validate(AccountID);

            if (!AccountAvailable.Valid) {
                if (Options.Next.Value) {
                    GetNextAccount();
                    }
                else {
                    Utils.Error("Portal refused account {0} because {1}",
                        Address, AccountAvailable.Reason);
                    }
                }

            // Get / create the device profile if required
            RegistrationDevice RegistrationDevice = null;
            bool Generate = false;
            if (Options.DeviceNew.Value) {
                Generate = true;
                }
            else if (Options.DeviceUDF.Value != null) {
                // use the profile with the specified fingerprint
                var Found = Machine.GetUDF(Options.DeviceUDF.Value, out RegistrationDevice);
                Utils.Assert(Found, "Could not find profile " + Options.DeviceUDF.Value);
                }
            else if (Options.DeviceID.Value != null) {
                // use the profile with the specified ID
                var Found = Machine.GetID(Options.DeviceID.Value, out RegistrationDevice);
                Utils.Assert(Found, "Could not find profile " + Options.DeviceID.Value);
                }
            else if (Machine.Device != null) {
                RegistrationDevice = Machine.Device;
                }
            else {
                Generate = true;
                }

            // Generate a new device profile
            if (Generate) {
                var DeviceID = Utils.Default(Options.DeviceID.Value, "Default");
                var DeviceDescription = Utils.Default(Options.DeviceDescription.Value, "Unknown");

                var NewProfileDevice = new SignedDeviceProfile(DeviceID, DeviceDescription);
                RegistrationDevice = Machine.Add(NewProfileDevice);
                }
            var ProfileDevice = RegistrationDevice.Device;

            var PersonalProfile = new PersonalProfile(ProfileDevice);
            var SignedPersonalProfile = PersonalProfile.Signed;

            // add to the machine registry
            Machine.Add(SignedPersonalProfile, PortalID);

            // Register with the Mesh portal
            var PublishResult = MeshClient.Publish(SignedPersonalProfile);
            Utils.Assert(PublishResult.Status.StatusSuccess(), "Portal refused profile publication request");



            Report("Created new personal profile {0}", SignedPersonalProfile.UDF);
            Report("Device profile is {0}", ProfileDevice.UDF);
            Report("Profile registered to {0}", PortalID);

            }
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:75,代码来源:Dispatch.cs


示例10: btnComenzarCarga_Click

    protected void btnComenzarCarga_Click(object sender, EventArgs e)
    {
        if (IsValid)
        {
            Solicitud Sol = Solicitud.GetById(BiFactory.Sol.Id_Solicitud);
            SolicitudTareasGenerales sol_Tg = SolicitudTareasGenerales.FindFirst(Expression.Eq("IdSolicitud", BiFactory.Sol.Id_Solicitud));

            if (sol_Tg == null)
            {
                sol_Tg = new SolicitudTareasGenerales();
                sol_Tg.IdSolicitud = Sol.Id_Solicitud;
                sol_Tg.Descripcion = Sol.Descripcion;
            }

            sol_Tg.FechaInicio = AntaresHelper.FechaNula();
            sol_Tg.FechaFin = AntaresHelper.FechaNula();
            sol_Tg.Duracion = 0;
            sol_Tg.IdTipotarea = int.Parse(cmbTipoTarea.SelectedValue);
            sol_Tg.IdEmpleado = BiFactory.Empleado.IdEmpleados;
            sol_Tg.SaveAndFlush();

            txtHorasPersonalDia.Text = string.Empty;
            ddlHorasPersonalHoras.SelectedIndex = 0;

            DateTime fechaInicio = Sol.FechaCreacion;
            DateTime fechaFin = DateTime.MinValue;

            this.Persona = Personal.GetById(sol_Tg.IdEmpleado.ToString());
            litHorasPersonalPersona.Text = Persona.Apellido + "," + Persona.Nombres;
            cmpVFecha.ValueToCompare = DateTime.Today.ToString("dd/MM/yyyy");
            FillHorasPersonalGrid(0);

        }
    }
开发者ID:alvaromejiaquiroz,项目名称:proyectomls,代码行数:34,代码来源:TareasGenerales.aspx.cs


示例11: CardInserted

        public void CardInserted(Personal personal)
        {
            if (personal == null)
                return;
            lbl_cid.BeginInvoke(new MethodInvoker(delegate { lbl_cid.Text = personal.Citizenid; }));
            lbl_birthday.BeginInvoke(new MethodInvoker(delegate { lbl_birthday.Text = personal.Birthday.ToString("dd/MM/yyyy"); }));
            lbl_sex.BeginInvoke(new MethodInvoker(delegate { lbl_sex.Text = personal.Sex; }));
            lbl_th_prefix.BeginInvoke(new MethodInvoker(delegate { lbl_th_prefix.Text = personal.Th_Prefix; }));
            lbl_th_firstname.BeginInvoke(new MethodInvoker(delegate { lbl_th_firstname.Text = personal.Th_Firstname; }));
            lbl_th_lastname.BeginInvoke(new MethodInvoker(delegate { lbl_th_lastname.Text = personal.Th_Lastname; }));
            lbl_en_prefix.BeginInvoke(new MethodInvoker(delegate { lbl_en_prefix.Text = personal.En_Prefix; }));
            lbl_en_firstname.BeginInvoke(new MethodInvoker(delegate { lbl_en_firstname.Text = personal.En_Firstname; }));
            lbl_en_lastname.BeginInvoke(new MethodInvoker(delegate { lbl_en_lastname.Text = personal.En_Lastname; }));
            lbl_issue.BeginInvoke(new MethodInvoker(delegate { lbl_issue.Text = personal.Issue.ToString("dd/MM/yyyy"); }));
            lbl_expire.BeginInvoke(new MethodInvoker(delegate { lbl_expire.Text = personal.Expire.ToString("dd/MM/yyyy"); }));
            pictureBox1.BeginInvoke(new MethodInvoker(delegate { pictureBox1.Image = personal.PhotoBitmap; }));

            lbl_alarmMessage.BeginInvoke(new MethodInvoker(delegate { lbl_alarmMessage.Text = "กรุณาตรวจสอบข้อมูล"; }));
            lbl_alarmMessage.BeginInvoke(new MethodInvoker(delegate { lbl_alarmMessage.ForeColor = System.Drawing.Color.Green; }));
            lbl_alarmMessage.BeginInvoke(new MethodInvoker(delegate { lbl_alarmMessage.Visible = true; }));         
        }
开发者ID:kolry,项目名称:ThaiNationalIDCard.Example,代码行数:21,代码来源:frmMain.cs


示例12: Deserialize

 /// <summary>Helper: put the buffer into a MemoryStream before deserializing</summary>
 public static Personal.Person.PhoneNumber Deserialize(byte[] buffer, Personal.Person.PhoneNumber instance)
 {
     using (var ms = new MemoryStream(buffer))
         Deserialize(ms, instance);
     return instance;
 }
开发者ID:4eJI0Be4ur,项目名称:ProtoBuf,代码行数:7,代码来源:Generated.Serializer.cs


示例13: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            if ((Request.QueryString["Id"] != null))
            {
                IdSolicitudRecurso = int.Parse(Request.QueryString["Id"].ToString());

                SolicitudRecursosEmpleados s = SolicitudRecursosEmpleados.FindFirst(Expression.Eq("Id", IdSolicitudRecurso));
                //SolicitudRendicionPersonalHoras ph = SolicitudRendicionPersonalHoras.fin

                IdSolicitud = s.IdSolicitud;
                IdPersona = s.IdEmpleado;
                FechaRango r = Solicitud.PeriodoDesdeHasta(s.IdSolicitud);
                makeCboFecha(r);
                p = Personal.GetById(s.IdEmpleado.ToString());
                txtPersona.Text = p.Apellido + "," + p.Nombres;
            }
        }
        fillGrid();
    }
开发者ID:alvaromejiaquiroz,项目名称:proyectomls,代码行数:21,代码来源:PersonaHoras.aspx.cs


示例14: Usage

		private static void Usage () {

				Console.WriteLine ("brief");
				Console.WriteLine ("");

				{
#pragma warning disable 219
					Reset		Dummy = new Reset ();
#pragma warning restore 219

					Console.Write ("{0}reset ", UsageFlag);
					Console.WriteLine ();

					Console.WriteLine ("    Delete all test profiles");

				}

				{
#pragma warning disable 219
					Device		Dummy = new Device ();
#pragma warning restore 219

					Console.Write ("{0}device ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.DeviceID.Usage (null, "id", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceDescription.Usage (null, "dd", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Default.Usage ("default", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Create new device profile");

				}

				{
#pragma warning disable 219
					Personal		Dummy = new Personal ();
#pragma warning restore 219

					Console.Write ("{0}personal ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.Portal.Usage (null, "portal", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Description.Usage (null, "pd", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Next.Usage ("next", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Verbose.Usage ("verbose", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Report.Usage ("report", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceNew.Usage ("new", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceUDF.Usage ("dudf", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceID.Usage ("did", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceDescription.Usage ("dd", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Create new personal profile");

				}

				{
#pragma warning disable 219
					Register		Dummy = new Register ();
#pragma warning restore 219

					Console.Write ("{0}register ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.UDF.Usage (null, "udf", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Portal.Usage (null, "portal", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Verbose.Usage ("verbose", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Report.Usage ("report", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Register the specified profile at a new portal");

				}

				{
#pragma warning disable 219
					Sync		Dummy = new Sync ();
#pragma warning restore 219

					Console.Write ("{0}sync ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.Portal.Usage ("portal", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.UDF.Usage ("udf", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Verbose.Usage ("verbose", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Report.Usage ("report", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Synchronize local copies of Mesh profiles with the server");

				}

				{
#pragma warning disable 219
					Escrow		Dummy = new Escrow ();
#pragma warning restore 219

					Console.Write ("{0}escrow ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.Quorum.Usage ("quorum", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Shares.Usage ("shares", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Portal.Usage ("portal", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.UDF.Usage ("udf", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Verbose.Usage ("verbose", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Report.Usage ("report", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Create a set of key escrow shares");
//.........这里部分代码省略.........
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:101,代码来源:meshman.cs


示例15: Handle_Personal

		private static void Handle_Personal (
					Shell Dispatch, string[] args, int index) {
			Personal		Options = new Personal ();

			var Registry = new Goedel.Registry.Registry ();

			Options.Portal.Register ("portal", Registry, (int) TagType_Personal.Portal);
			Options.Description.Register ("pd", Registry, (int) TagType_Personal.Description);
			Options.Verbose.Register ("verbose", Registry, (int) TagType_Personal.Verbose);
			Options.Report.Register ("report", Registry, (int) TagType_Personal.Report);
			Options.DeviceNew.Register ("new", Registry, (int) TagType_Personal.DeviceNew);
			Options.DeviceUDF.Register ("dudf", Registry, (int) TagType_Personal.DeviceUDF);
			Options.DeviceID.Register ("did", Registry, (int) TagType_Personal.DeviceID);
			Options.DeviceDescription.Register ("dd", Registry, (int) TagType_Personal.DeviceDescription);

			// looking for parameter Param.Name}
			if (index < args.Length && !IsFlag (args [index][0] )) {
				// Have got the parameter, call the parameter value method
				Options.Portal.Parameter (args [index]);
				index++;
				}
			// looking for parameter Param.Name}
			if (index < args.Length && !IsFlag (args [index][0] )) {
				// Have got the parameter, call the parameter value method
				Options.Description.Parameter (args [index]);
				index++;
				}

#pragma warning disable 162
			for (int i = index; i< args.Length; i++) {
				if 	(!IsFlag (args [i][0] )) {
					throw new System.Exception ("Unexpected parameter: " + args[i]);}			
				string Rest = args [i].Substring (1);

				TagType_Personal TagType = (TagType_Personal) Registry.Find (Rest);

				// here have the cases for what to do with it.

				switch (TagType) {
					case TagType_Personal.Verbose : {
						int OptionParams = Options.Verbose.Tag (Rest);
						
						if (OptionParams>0 && ((i+1) < args.Length)) {
							if 	(!IsFlag (args [i+1][0] )) {
								i++;								
								Options.Verbose.Parameter (args[i]);
								}
							}
						break;
						}
					case TagType_Personal.Report : {
						int OptionParams = Options.Report.Tag (Rest);
						
						if (OptionParams>0 && ((i+1) < args.Length)) {
							if 	(!IsFlag (args [i+1][0] )) {
								i++;								
								Options.Report.Parameter (args[i]);
								}
							}
						break;
						}
					case TagType_Personal.DeviceNew : {
						int OptionParams = Options.DeviceNew.Tag (Rest);
						
						if (OptionParams>0 && ((i+1) < args.Length)) {
							if 	(!IsFlag (args [i+1][0] )) {
								i++;								
								Options.DeviceNew.Parameter (args[i]);
								}
							}
						break;
						}
					case TagType_Personal.DeviceUDF : {
						int OptionParams = Options.DeviceUDF.Tag (Rest);
						
						if (OptionParams>0 && ((i+1) < args.Length)) {
							if 	(!IsFlag (args [i+1][0] )) {
								i++;								
								Options.DeviceUDF.Parameter (args[i]);
								}
							}
						break;
						}
					case TagType_Personal.DeviceID : {
						int OptionParams = Options.DeviceID.Tag (Rest);
						
						if (OptionParams>0 && ((i+1) < args.Length)) {
							if 	(!IsFlag (args [i+1][0] )) {
								i++;								
								Options.DeviceID.Parameter (args[i]);
								}
							}
						break;
						}
					case TagType_Personal.DeviceDescription : {
						int OptionParams = Options.DeviceDescription.Tag (Rest);
						
						if (OptionParams>0 && ((i+1) < args.Length)) {
							if 	(!IsFlag (args [i+1][0] )) {
								i++;								
//.........这里部分代码省略.........
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:101,代码来源:recrypt.cs


示例16: FillSol

    private void FillSol()
    {
        if (Request.QueryString["Id"] != null)
        {
            IdSol = int.Parse(Request.QueryString["Id"].ToString());
            BiFactory.Sol = Solicitud.GetById(IdSol);

        }

        sol_Cap = SolicitudCapacitacion.FindFirst(Expression.Eq("IdSolicitud", BiFactory.Sol.Id_Solicitud));

        if (sol_Cap != null)
        {

            cmbNivelCapacitacion.SelectedValue = sol_Cap.Nivel;
            txtAreaEstudios.Text = sol_Cap.AreaEstudio;
            txtEntidad.Text = sol_Cap.EntidadEducativa;
            txtInstructor.Text = sol_Cap.Instructor;
            txtPuntuacionExamen.Text = sol_Cap.PuntuacionExamen;
            Persona = Personal.GetById(sol_Cap.IdEmpleado.ToString());
            FillHorasPersonalGrid(0);
            MostrarSolicitud();
        }
        else
        {
            Persona = Personal.GetById(BiFactory.Empleado.IdEmpleados.ToString());
        }
        litHorasPersonalPersona.Text = Persona.Apellido + "," + Persona.Nombres;
        //CargarCombos();
    }
开发者ID:alvaromejiaquiroz,项目名称:proyectomls,代码行数:30,代码来源:Capacitacion.aspx.cs


示例17: CargarCombos

 protected void CargarCombos(int IdEmpleado)
 {
     persona = Personal.FindOne(Expression.Eq("IdEmpleados", IdEmpleado));
     cmbPersonal.Items.Clear();
     cmbPersonal.Items.Add(new ListItem(persona.Apellido + "," + persona.Nombres, persona.IdEmpleados.ToString()));
 }
开发者ID:alvaromejiaquiroz,项目名称:proyectomls,代码行数:6,代码来源:TiemposXPersona.aspx.cs


示例18: Personal

		public virtual void Personal ( Personal Options
				) {

			char UsageFlag = '-';
				{
#pragma warning disable 219
					Personal		Dummy = new Personal ();
#pragma warning restore 219

					Console.Write ("{0}personal ", UsageFlag);
					Console.Write ("[{0}] ", Dummy.Portal.Usage (null, "portal", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Description.Usage (null, "pd", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Verbose.Usage ("verbose", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.Report.Usage ("report", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceNew.Usage ("new", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceUDF.Usage ("dudf", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceID.Usage ("did", "value", UsageFlag));
					Console.Write ("[{0}] ", Dummy.DeviceDescription.Usage ("dd", "value", UsageFlag));
					Console.WriteLine ();

					Console.WriteLine ("    Create new personal profile");

				}

				Console.WriteLine ("    {0}\t{1} = [{2}]", "String", 
							"Portal", Options.Portal);
				Console.WriteLine ("    {0}\t{1} = [{2}]", "String", 
							"Description", Options.Description);
				Console.WriteLine ("    {0}\t{1} = [{2}]", "Flag", 
							"Verbose", Options.Verbose);
				Console.WriteLine ("    {0}\t{1} = [{2}]", "Flag", 
							"Report", Options.Report);
				Console.WriteLine ("    {0}\t{1} = [{2}]", "Flag", 
							"DeviceNew", Options.DeviceNew);
				Console.WriteLine ("    {0}\t{1} = [{2}]", "String", 
							"DeviceUDF", Options.DeviceUDF);
				Console.WriteLine ("    {0}\t{1} = [{2}]", "String", 
							"DeviceID", Options.DeviceID);
				Console.WriteLine ("    {0}\t{1} = [{2}]", "String", 
							"DeviceDescription", Options.DeviceDescription);
			Console.WriteLine ("Not Yet Implemented");
			}
开发者ID:hallambaker,项目名称:Mathematical-Mesh,代码行数:42,代码来源:recrypt.cs


示例19: InsertPerson

        public void InsertPerson(Personal entity)
        {
            if (String.IsNullOrEmpty(entity.PersonalID))
                entity.PersonalID = Guid.NewGuid().ToString();

            entity.Insert();
        }
开发者ID:vebin,项目名称:soa,代码行数:7,代码来源:UddiService.asmx.cs


示例20: UpdatePerson

 public void UpdatePerson(Personal entity)
 {
     entity.Update();
 }
开发者ID:vebin,项目名称:soa,代码行数:4,代码来源:UddiService.asmx.cs



注:本文中的Personal类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PersonalCacheStruct类代码示例发布时间:2022-05-24
下一篇:
C# Persona类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap